Merge branch 'master' into uso2archive
This commit is contained in:
commit
608c73402f
|
@ -371,6 +371,7 @@ function SectionsEditor() {
|
||||||
await initSections(sections, {
|
await initSections(sections, {
|
||||||
replace: replaceOldStyle,
|
replace: replaceOldStyle,
|
||||||
focusOn: replaceOldStyle ? 0 : false,
|
focusOn: replaceOldStyle ? 0 : false,
|
||||||
|
keepDirty: true,
|
||||||
});
|
});
|
||||||
helpPopup.close();
|
helpPopup.close();
|
||||||
}
|
}
|
||||||
|
@ -473,6 +474,7 @@ function SectionsEditor() {
|
||||||
async function initSections(src, {
|
async function initSections(src, {
|
||||||
focusOn = 0,
|
focusOn = 0,
|
||||||
replace = false,
|
replace = false,
|
||||||
|
keepDirty = false, // used by import
|
||||||
} = {}) {
|
} = {}) {
|
||||||
if (replace) {
|
if (replace) {
|
||||||
sections.forEach(s => s.remove(true));
|
sections.forEach(s => s.remove(true));
|
||||||
|
@ -505,7 +507,7 @@ function SectionsEditor() {
|
||||||
if (si) forceRefresh = y < si.scrollY2 && (y += si.cms[i].parentHeight) > si.scrollY;
|
if (si) forceRefresh = y < si.scrollY2 && (y += si.cms[i].parentHeight) > si.scrollY;
|
||||||
insertSectionAfter(src[i], null, forceRefresh, si && si.cms[i]);
|
insertSectionAfter(src[i], null, forceRefresh, si && si.cms[i]);
|
||||||
setGlobalProgress(i, src.length);
|
setGlobalProgress(i, src.length);
|
||||||
dirty.clear();
|
if (!keepDirty) dirty.clear();
|
||||||
if (i === focusOn) sections[i].cm.focus();
|
if (i === focusOn) sections[i].cm.focus();
|
||||||
}
|
}
|
||||||
if (!si) requestAnimationFrame(fitToAvailableSpace);
|
if (!si) requestAnimationFrame(fitToAvailableSpace);
|
||||||
|
|
|
@ -101,6 +101,7 @@ self.parserlib = (() => {
|
||||||
'push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | ' +
|
'push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | ' +
|
||||||
'menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | ' +
|
'menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | ' +
|
||||||
'outline-tree | range | field | combo-box | signature | password | normal',
|
'outline-tree | range | field | combo-box | signature | password | normal',
|
||||||
|
'aspect-ratio': 'auto || [ <nonnegative-num> / <nonnegative-num> ]',
|
||||||
'azimuth': '<azimuth>',
|
'azimuth': '<azimuth>',
|
||||||
|
|
||||||
'backdrop-filter': '<filter-function-list> | none',
|
'backdrop-filter': '<filter-function-list> | none',
|
||||||
|
@ -182,6 +183,7 @@ self.parserlib = (() => {
|
||||||
'clip-path': '<clip-source> | <clip-path> | none',
|
'clip-path': '<clip-source> | <clip-path> | none',
|
||||||
'clip-rule': 'nonzero | evenodd',
|
'clip-rule': 'nonzero | evenodd',
|
||||||
'color': '<color>',
|
'color': '<color>',
|
||||||
|
'color-adjust': 'economy | exact',
|
||||||
'color-interpolation': 'auto | sRGB | linearRGB',
|
'color-interpolation': 'auto | sRGB | linearRGB',
|
||||||
'color-interpolation-filters': 'auto | sRGB | linearRGB',
|
'color-interpolation-filters': 'auto | sRGB | linearRGB',
|
||||||
'color-profile': 1,
|
'color-profile': 1,
|
||||||
|
@ -284,6 +286,7 @@ self.parserlib = (() => {
|
||||||
'font-variant-position': 'normal | sub | super',
|
'font-variant-position': 'normal | sub | super',
|
||||||
'font-variation-settings': 'normal | [ <string> <number> ]#',
|
'font-variation-settings': 'normal | [ <string> <number> ]#',
|
||||||
'font-weight': '<font-weight>',
|
'font-weight': '<font-weight>',
|
||||||
|
'forced-color-adjust': 'auto | none',
|
||||||
'-ms-flex-align': 1,
|
'-ms-flex-align': 1,
|
||||||
'-ms-flex-order': 1,
|
'-ms-flex-order': 1,
|
||||||
'-ms-flex-pack': 1,
|
'-ms-flex-pack': 1,
|
||||||
|
@ -681,7 +684,6 @@ self.parserlib = (() => {
|
||||||
dpcm: 'resolution',
|
dpcm: 'resolution',
|
||||||
dppx: 'resolution',
|
dppx: 'resolution',
|
||||||
x: 'resolution',
|
x: 'resolution',
|
||||||
ar: 'dimension',
|
|
||||||
};
|
};
|
||||||
// Sticky `y` flag must be used in expressions used with peekTest and readMatch
|
// Sticky `y` flag must be used in expressions used with peekTest and readMatch
|
||||||
const rxIdentStart = /[-\\_a-zA-Z\u00A0-\uFFFF]/u;
|
const rxIdentStart = /[-\\_a-zA-Z\u00A0-\uFFFF]/u;
|
||||||
|
@ -703,7 +705,6 @@ self.parserlib = (() => {
|
||||||
!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(p),
|
!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(p),
|
||||||
'<angle>': p => p.type === 'angle' || p.isCalc,
|
'<angle>': p => p.type === 'angle' || p.isCalc,
|
||||||
'<angle-or-0>': p => p.text === '0' || p.type === 'angle' || p.isCalc,
|
'<angle-or-0>': p => p.text === '0' || p.type === 'angle' || p.isCalc,
|
||||||
'<aspect-ratio>': p => p.units && lowerCmp(p.units, 'ar'),
|
|
||||||
'<attr>': vtIsAttr,
|
'<attr>': vtIsAttr,
|
||||||
'<attachment>': 'scroll | fixed | local',
|
'<attachment>': 'scroll | fixed | local',
|
||||||
'<bg-image>': '<image> | none',
|
'<bg-image>': '<image> | none',
|
||||||
|
@ -806,7 +807,7 @@ self.parserlib = (() => {
|
||||||
|
|
||||||
const VTComplex = {
|
const VTComplex = {
|
||||||
'<align-content>': 'normal | <baseline-position> | <content-distribution> | ' +
|
'<align-content>': 'normal | <baseline-position> | <content-distribution> | ' +
|
||||||
'<aspect-ratio> <content-distribution>? | <overflow-position>? <content-position>',
|
'<overflow-position>? <content-position>',
|
||||||
'<align-self>':
|
'<align-self>':
|
||||||
'auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>',
|
'auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>',
|
||||||
'<auto-repeat>':
|
'<auto-repeat>':
|
||||||
|
@ -917,7 +918,7 @@ self.parserlib = (() => {
|
||||||
'<grid-template-rows>': '<grid-template-columns>',
|
'<grid-template-rows>': '<grid-template-columns>',
|
||||||
'<hsl-color>': '[ <number> | <angle> ] <percentage>{2} [ / <nonnegative-num-pct> ]? | ' +
|
'<hsl-color>': '[ <number> | <angle> ] <percentage>{2} [ / <nonnegative-num-pct> ]? | ' +
|
||||||
'[ <number> | <angle> ] , <percentage>#{2} [ , <nonnegative-num-pct> ]?',
|
'[ <number> | <angle> ] , <percentage>#{2} [ , <nonnegative-num-pct> ]?',
|
||||||
'<justify-content>': 'normal | <content-distribution> | <aspect-ratio> <content-distribution>? | ' +
|
'<justify-content>': 'normal | <content-distribution> | ' +
|
||||||
'<overflow-position>? [ <content-position> | left | right ]',
|
'<overflow-position>? [ <content-position> | left | right ]',
|
||||||
'<justify-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? ' +
|
'<justify-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? ' +
|
||||||
'[ <self-position> | left | right ]',
|
'[ <self-position> | left | right ]',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user