@vonage/vivid 5.30.0 → 5.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +25 -26
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +5 -5
- package/bundled/char-count.cjs +2 -2
- package/bundled/char-count.js +2 -3
- package/bundled/definition25.cjs +4 -4
- package/bundled/definition25.js +4 -4
- package/bundled/definition4.cjs +17 -10
- package/bundled/definition4.js +17 -10
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +3 -4
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +11 -10
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +12 -17
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +7 -9
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +36 -8
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +7 -9
- package/custom-elements.json +237 -1956
- package/lib/accordion-item/accordion-item.d.ts +13 -7
- package/lib/action-group/action-group.d.ts +13 -7
- package/lib/alert/alert.d.ts +26 -14
- package/lib/audio-player/audio-player.d.ts +13 -7
- package/lib/avatar/avatar.d.ts +13 -7
- package/lib/badge/badge.d.ts +13 -7
- package/lib/banner/banner.d.ts +39 -21
- package/lib/breadcrumb/breadcrumb.d.ts +13 -7
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +13 -7
- package/lib/button/button.d.ts +39 -21
- package/lib/calendar-event/calendar-event.d.ts +13 -7
- package/lib/card/card.d.ts +13 -7
- package/lib/checkbox/checkbox.d.ts +84 -48
- package/lib/color-picker/color-picker.d.ts +98 -56
- package/lib/combobox/combobox.d.ts +98 -56
- package/lib/country-group/country-group.d.ts +26 -14
- package/lib/data-grid/data-grid-cell.d.ts +26 -14
- package/lib/data-grid/data-grid-row.d.ts +13 -7
- package/lib/date-picker/date-picker.d.ts +162 -114
- package/lib/date-range-picker/date-range-picker.d.ts +82 -58
- package/lib/date-time-picker/date-time-picker.d.ts +164 -116
- package/lib/dial-pad/dial-pad.d.ts +13 -7
- package/lib/dialog/dialog.d.ts +26 -14
- package/lib/divider/divider.d.ts +13 -7
- package/lib/fab/fab.d.ts +13 -7
- package/lib/file-picker/file-picker.d.ts +98 -56
- package/lib/header/header.d.ts +13 -7
- package/lib/listbox/listbox.d.ts +41 -23
- package/lib/menu/menu.d.ts +30 -18
- package/lib/menu-item/menu-item.d.ts +39 -21
- package/lib/nav/nav.d.ts +13 -7
- package/lib/nav-disclosure/nav-disclosure.d.ts +26 -14
- package/lib/nav-item/nav-item.d.ts +28 -16
- package/lib/note/note.d.ts +13 -7
- package/lib/number-field/number-field.d.ts +124 -70
- package/lib/optgroup/optgroup.d.ts +13 -7
- package/lib/option/option.d.ts +26 -14
- package/lib/pagination/pagination.d.ts +13 -7
- package/lib/popover/popover.d.ts +26 -14
- package/lib/progress/progress.d.ts +13 -7
- package/lib/progress-ring/progress-ring.d.ts +13 -7
- package/lib/radio/radio.d.ts +45 -27
- package/lib/radio-group/radio-group.d.ts +13 -7
- package/lib/range-slider/range-slider.d.ts +40 -22
- package/lib/rich-text-editor/rich-text-editor.d.ts +30 -18
- package/lib/rich-text-editor/rte/feature.d.ts +0 -1
- package/lib/rich-text-editor/rte/features/base.d.ts +9 -0
- package/lib/rich-text-editor/rte/features/bold.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/hard-break.d.ts +4 -0
- package/lib/rich-text-editor/rte/features/inline-image.d.ts +4 -0
- package/lib/rich-text-editor/rte/features/italic.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/link.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/list.d.ts +6 -0
- package/lib/rich-text-editor/rte/features/monospace.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/strikethrough.d.ts +5 -1
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +4 -1
- package/lib/rich-text-editor/rte/features/underline.d.ts +5 -1
- package/lib/rich-text-editor/rte/public-interface.d.ts +1 -1
- package/lib/searchable-select/option-tag.d.ts +13 -7
- package/lib/searchable-select/searchable-select.d.ts +124 -70
- package/lib/select/select.d.ts +124 -70
- package/lib/selectable-box/selectable-box.d.ts +13 -7
- package/lib/simple-color-picker/simple-color-picker.d.ts +31 -19
- package/lib/slider/slider.d.ts +39 -21
- package/lib/split-button/split-button.d.ts +39 -21
- package/lib/status/status.d.ts +13 -7
- package/lib/switch/switch.d.ts +26 -14
- package/lib/tab/tab.d.ts +39 -21
- package/lib/tab-panel/tab-panel.d.ts +13 -7
- package/lib/table/table-cell.d.ts +13 -7
- package/lib/table/table-header-cell.d.ts +13 -7
- package/lib/table/table-row.d.ts +13 -7
- package/lib/table/table-sorting-button.d.ts +26 -14
- package/lib/tag/tag.d.ts +39 -21
- package/lib/tag-group/tag-group.d.ts +13 -7
- package/lib/text-area/text-area.d.ts +112 -64
- package/lib/text-field/text-field.d.ts +125 -71
- package/lib/time-picker/time-picker.d.ts +82 -58
- package/lib/toggletip/toggletip.d.ts +30 -18
- package/lib/tooltip/tooltip.d.ts +30 -18
- package/lib/tree-item/tree-item.d.ts +26 -14
- package/lib/tree-view/tree-view.d.ts +13 -7
- package/lib/video-player/video-player.d.ts +13 -7
- package/listbox/index.cjs +1 -1
- package/listbox/index.js +3 -4
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +5 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/package.json +10 -10
- package/rich-text-editor/index.cjs +1 -1
- package/rich-text-editor/index.js +176 -160
- package/shared/aria/aria-mixin.d.ts +11 -5
- package/shared/aria/delegates-aria.d.ts +13 -7
- package/shared/aria/host-semantics.d.ts +13 -7
- package/shared/color-picker/base-color-picker.d.ts +14 -8
- package/shared/deprecation/replaced-props.d.ts +12 -6
- package/shared/feedback/feedback-message.d.ts +13 -7
- package/shared/feedback/mixins.d.ts +26 -14
- package/shared/foundation/button/button.d.ts +26 -14
- package/shared/foundation/form-associated/form-associated.d.ts +26 -14
- package/shared/foundation/vivid-element/vivid-element.d.ts +43 -25
- package/shared/framework/reactive-controller.d.ts +12 -6
- package/shared/listbox/with-options-filter.d.ts +14 -8
- package/shared/listbox/with-options.d.ts +28 -16
- package/shared/patterns/affix.d.ts +26 -14
- package/shared/patterns/anchored.d.ts +34 -22
- package/shared/patterns/char-count/char-count.d.ts +14 -8
- package/shared/patterns/form-elements/form-element.d.ts +14 -8
- package/shared/patterns/form-elements/with-contextual-help.d.ts +14 -8
- package/shared/patterns/form-elements/with-error-text.d.ts +18 -12
- package/shared/patterns/form-elements/with-success-text.d.ts +13 -7
- package/shared/patterns/kbd-shortcut.d.ts +13 -7
- package/shared/patterns/linkable.d.ts +13 -7
- package/shared/patterns/localized.d.ts +30 -18
- package/shared/patterns/trapped-focus.d.ts +13 -7
- package/shared/picker-field/mixins/calendar-picker.d.ts +41 -29
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +41 -29
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +13 -7
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +41 -29
- package/shared/picker-field/mixins/single-date-picker.d.ts +41 -29
- package/shared/picker-field/mixins/single-value-picker.d.ts +39 -27
- package/shared/picker-field/mixins/time-selection-picker.d.ts +43 -31
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +82 -58
- package/shared/picker-field/picker-field.d.ts +98 -57
- package/unbundled/anchored.cjs +39 -37
- package/unbundled/anchored.js +39 -37
- package/unbundled/calendar-picker.template.cjs +7 -5
- package/unbundled/calendar-picker.template.js +7 -5
- package/unbundled/char-count.cjs +3 -9
- package/unbundled/char-count.js +3 -9
- package/unbundled/definition2.cjs +4 -4
- package/unbundled/definition2.js +4 -4
- package/unbundled/definition5.cjs +17 -10
- package/unbundled/definition5.js +17 -10
- package/unbundled/definition50.cjs +3 -4
- package/unbundled/definition50.js +3 -4
- package/unbundled/definition52.cjs +6 -2
- package/unbundled/definition52.js +6 -2
- package/unbundled/definition55.cjs +1 -1
- package/unbundled/definition55.js +1 -1
- package/unbundled/definition63.cjs +73 -46
- package/unbundled/definition63.js +73 -46
- package/unbundled/form-element.cjs +3 -4
- package/unbundled/form-element.js +3 -4
- package/unbundled/localized.cjs +15 -11
- package/unbundled/localized.js +15 -11
- package/unbundled/picker-field.template.cjs +22 -24
- package/unbundled/picker-field.template.js +22 -24
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +10 -10
- package/unbundled/time-selection-picker.template.js +10 -10
- package/unbundled/vivid-element.cjs +65 -8
- package/unbundled/vivid-element.js +66 -9
- package/unbundled/with-error-text.cjs +11 -10
- package/unbundled/with-error-text.js +11 -10
- package/vivid.api.json +12 -12
|
@@ -1469,6 +1469,14 @@ var RteInputRulesFeatureImpl = class extends RteFeatureImpl {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
//#endregion
|
|
1471
1471
|
//#region src/lib/rich-text-editor/rte/features/base.ts
|
|
1472
|
+
var nodeNames$3 = {
|
|
1473
|
+
doc: "doc",
|
|
1474
|
+
text: "text",
|
|
1475
|
+
paragraph: "paragraph",
|
|
1476
|
+
heading1: "heading1",
|
|
1477
|
+
heading2: "heading2",
|
|
1478
|
+
heading3: "heading3"
|
|
1479
|
+
};
|
|
1472
1480
|
var RteBaseImpl = class extends RteFeatureImpl {
|
|
1473
1481
|
constructor(config) {
|
|
1474
1482
|
super();
|
|
@@ -1477,8 +1485,8 @@ var RteBaseImpl = class extends RteFeatureImpl {
|
|
|
1477
1485
|
}
|
|
1478
1486
|
getSchema() {
|
|
1479
1487
|
return [this.contribution({ nodes: {
|
|
1480
|
-
doc: { content: this.config?.singleBlock ? "block" : "block+" },
|
|
1481
|
-
text: { group: "inline" }
|
|
1488
|
+
[nodeNames$3.doc]: { content: this.config?.singleBlock ? "block" : "block+" },
|
|
1489
|
+
[nodeNames$3.text]: { group: "inline" }
|
|
1482
1490
|
} })];
|
|
1483
1491
|
}
|
|
1484
1492
|
getPlugins(_rte) {
|
|
@@ -1525,7 +1533,7 @@ var RteBaseImpl = class extends RteFeatureImpl {
|
|
|
1525
1533
|
};
|
|
1526
1534
|
}
|
|
1527
1535
|
};
|
|
1528
|
-
var RteBase = featureFacade(RteBaseImpl);
|
|
1536
|
+
var RteBase = Object.assign(featureFacade(RteBaseImpl), { nodes: nodeNames$3 });
|
|
1529
1537
|
//#endregion
|
|
1530
1538
|
//#region src/lib/rich-text-editor/rte/features/text-block-picker.ts
|
|
1531
1539
|
var RteTextBlockPickerFeatureImpl = class extends RteFeatureImpl {
|
|
@@ -1682,13 +1690,14 @@ var RtePlaceholderFeatureImpl = class extends RteFeatureImpl {
|
|
|
1682
1690
|
var RtePlaceholderFeature = featureFacade(RtePlaceholderFeatureImpl);
|
|
1683
1691
|
//#endregion
|
|
1684
1692
|
//#region src/lib/rich-text-editor/rte/features/hard-break.ts
|
|
1693
|
+
var nodeNames$2 = { hardBreak: "hardBreak" };
|
|
1685
1694
|
var RteHardBreakFeatureImpl = class extends RteFeatureImpl {
|
|
1686
1695
|
constructor(..._args) {
|
|
1687
1696
|
super(..._args);
|
|
1688
1697
|
this.name = "RteHardBreakFeature";
|
|
1689
1698
|
}
|
|
1690
1699
|
getSchema() {
|
|
1691
|
-
return [this.contribution({ nodes: { hardBreak: {
|
|
1700
|
+
return [this.contribution({ nodes: { [nodeNames$2.hardBreak]: {
|
|
1692
1701
|
inline: true,
|
|
1693
1702
|
group: "inline",
|
|
1694
1703
|
selectable: false,
|
|
@@ -1710,10 +1719,11 @@ var RteHardBreakFeatureImpl = class extends RteFeatureImpl {
|
|
|
1710
1719
|
return [this.contribution(keymap(keyBindings), contributionPriority.high)];
|
|
1711
1720
|
}
|
|
1712
1721
|
};
|
|
1713
|
-
var RteHardBreakFeature = featureFacade(RteHardBreakFeatureImpl);
|
|
1722
|
+
var RteHardBreakFeature = Object.assign(featureFacade(RteHardBreakFeatureImpl), { nodes: nodeNames$2 });
|
|
1714
1723
|
//#endregion
|
|
1715
1724
|
//#region src/lib/rich-text-editor/rte/features/font-size-picker.ts
|
|
1716
1725
|
var mixedFontSize = Symbol("mixedFontSize");
|
|
1726
|
+
var markNames$7 = { fontSize: "fontSize" };
|
|
1717
1727
|
var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
|
|
1718
1728
|
constructor(config) {
|
|
1719
1729
|
super();
|
|
@@ -1727,13 +1737,13 @@ var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
1727
1737
|
}
|
|
1728
1738
|
getTextblockMarks() {
|
|
1729
1739
|
if (this.config?.onBlocks) return this.config.onBlocks.map((block) => this.contribution({
|
|
1730
|
-
markName:
|
|
1740
|
+
markName: markNames$7.fontSize,
|
|
1731
1741
|
onNodeName: block.node
|
|
1732
1742
|
}));
|
|
1733
|
-
return [this.contribution({ markName:
|
|
1743
|
+
return [this.contribution({ markName: markNames$7.fontSize })];
|
|
1734
1744
|
}
|
|
1735
1745
|
getSchema() {
|
|
1736
|
-
|
|
1746
|
+
const markSpec = {
|
|
1737
1747
|
attrs: { size: { validate: "string" } },
|
|
1738
1748
|
parseDOM: [{
|
|
1739
1749
|
tag: "span[style*='font-size']",
|
|
@@ -1764,7 +1774,8 @@ var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
1764
1774
|
}
|
|
1765
1775
|
return null;
|
|
1766
1776
|
}
|
|
1767
|
-
}
|
|
1777
|
+
};
|
|
1778
|
+
return [this.contribution({ marks: { [markNames$7.fontSize]: markSpec } })];
|
|
1768
1779
|
}
|
|
1769
1780
|
getPlugins() {
|
|
1770
1781
|
return [this.contribution(keymap({
|
|
@@ -1849,7 +1860,7 @@ var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
1849
1860
|
};
|
|
1850
1861
|
}
|
|
1851
1862
|
};
|
|
1852
|
-
var RteFontSizePickerFeature = featureFacade(RteFontSizePickerFeatureImpl);
|
|
1863
|
+
var RteFontSizePickerFeature = Object.assign(featureFacade(RteFontSizePickerFeatureImpl), { marks: markNames$7 });
|
|
1853
1864
|
//#endregion
|
|
1854
1865
|
//#region src/lib/rich-text-editor/rte/features/internal/text-style.ts
|
|
1855
1866
|
var RteTextStyleFeatureImpl = class extends RteFeatureImpl {
|
|
@@ -1867,14 +1878,15 @@ var RteTextStyleFeatureImpl = class extends RteFeatureImpl {
|
|
|
1867
1878
|
};
|
|
1868
1879
|
//#endregion
|
|
1869
1880
|
//#region src/lib/rich-text-editor/rte/features/bold.ts
|
|
1881
|
+
var markNames$6 = { bold: "bold" };
|
|
1870
1882
|
var RteBoldFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
1871
1883
|
constructor(..._args) {
|
|
1872
1884
|
super(..._args);
|
|
1873
1885
|
this.name = "RteBoldFeature";
|
|
1874
|
-
this.markName =
|
|
1886
|
+
this.markName = markNames$6.bold;
|
|
1875
1887
|
}
|
|
1876
1888
|
getSchema() {
|
|
1877
|
-
return [this.contribution({ marks: { bold: marks.strong } })];
|
|
1889
|
+
return [this.contribution({ marks: { [markNames$6.bold]: marks.strong } })];
|
|
1878
1890
|
}
|
|
1879
1891
|
getPlugins(rte) {
|
|
1880
1892
|
return [this.contribution(keymap({ "Mod-b": toggleMark(rte.schema.marks.bold) }))];
|
|
@@ -1890,17 +1902,18 @@ var RteBoldFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
|
1890
1902
|
}, 1)];
|
|
1891
1903
|
}
|
|
1892
1904
|
};
|
|
1893
|
-
var RteBoldFeature = featureFacade(RteBoldFeatureImpl);
|
|
1905
|
+
var RteBoldFeature = Object.assign(featureFacade(RteBoldFeatureImpl), { marks: markNames$6 });
|
|
1894
1906
|
//#endregion
|
|
1895
1907
|
//#region src/lib/rich-text-editor/rte/features/italic.ts
|
|
1908
|
+
var markNames$5 = { italic: "italic" };
|
|
1896
1909
|
var RteItalicFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
1897
1910
|
constructor(..._args) {
|
|
1898
1911
|
super(..._args);
|
|
1899
1912
|
this.name = "RteItalicFeature";
|
|
1900
|
-
this.markName =
|
|
1913
|
+
this.markName = markNames$5.italic;
|
|
1901
1914
|
}
|
|
1902
1915
|
getSchema() {
|
|
1903
|
-
return [this.contribution({ marks: { italic: marks.em } })];
|
|
1916
|
+
return [this.contribution({ marks: { [markNames$5.italic]: marks.em } })];
|
|
1904
1917
|
}
|
|
1905
1918
|
getPlugins(rte) {
|
|
1906
1919
|
return [this.contribution(keymap({ "Mod-i": toggleMark(rte.schema.marks.italic) }))];
|
|
@@ -1916,17 +1929,18 @@ var RteItalicFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
|
1916
1929
|
}, 2)];
|
|
1917
1930
|
}
|
|
1918
1931
|
};
|
|
1919
|
-
var RteItalicFeature = featureFacade(RteItalicFeatureImpl);
|
|
1932
|
+
var RteItalicFeature = Object.assign(featureFacade(RteItalicFeatureImpl), { marks: markNames$5 });
|
|
1920
1933
|
//#endregion
|
|
1921
1934
|
//#region src/lib/rich-text-editor/rte/features/underline.ts
|
|
1935
|
+
var markNames$4 = { underline: "underline" };
|
|
1922
1936
|
var RteUnderlineFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
1923
1937
|
constructor(..._args) {
|
|
1924
1938
|
super(..._args);
|
|
1925
1939
|
this.name = "RteUnderlineFeature";
|
|
1926
|
-
this.markName =
|
|
1940
|
+
this.markName = markNames$4.underline;
|
|
1927
1941
|
}
|
|
1928
1942
|
getSchema() {
|
|
1929
|
-
return [this.contribution({ marks: { underline: {
|
|
1943
|
+
return [this.contribution({ marks: { [markNames$4.underline]: {
|
|
1930
1944
|
parseDOM: [{ tag: "u" }],
|
|
1931
1945
|
toDOM() {
|
|
1932
1946
|
return ["u", 0];
|
|
@@ -1947,17 +1961,18 @@ var RteUnderlineFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
|
1947
1961
|
}, 3)];
|
|
1948
1962
|
}
|
|
1949
1963
|
};
|
|
1950
|
-
var RteUnderlineFeature = featureFacade(RteUnderlineFeatureImpl);
|
|
1964
|
+
var RteUnderlineFeature = Object.assign(featureFacade(RteUnderlineFeatureImpl), { marks: markNames$4 });
|
|
1951
1965
|
//#endregion
|
|
1952
1966
|
//#region src/lib/rich-text-editor/rte/features/strikethrough.ts
|
|
1967
|
+
var markNames$3 = { strikethrough: "strikethrough" };
|
|
1953
1968
|
var RteStrikethroughFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
1954
1969
|
constructor(..._args) {
|
|
1955
1970
|
super(..._args);
|
|
1956
1971
|
this.name = "RteStrikethroughFeature";
|
|
1957
|
-
this.markName =
|
|
1972
|
+
this.markName = markNames$3.strikethrough;
|
|
1958
1973
|
}
|
|
1959
1974
|
getSchema() {
|
|
1960
|
-
return [this.contribution({ marks: { strikethrough: {
|
|
1975
|
+
return [this.contribution({ marks: { [markNames$3.strikethrough]: {
|
|
1961
1976
|
parseDOM: [{ tag: "s" }, { tag: "del" }],
|
|
1962
1977
|
toDOM() {
|
|
1963
1978
|
return ["s", 0];
|
|
@@ -1981,23 +1996,24 @@ var RteStrikethroughFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
|
1981
1996
|
}, 4)];
|
|
1982
1997
|
}
|
|
1983
1998
|
};
|
|
1984
|
-
var RteStrikethroughFeature = featureFacade(RteStrikethroughFeatureImpl);
|
|
1999
|
+
var RteStrikethroughFeature = Object.assign(featureFacade(RteStrikethroughFeatureImpl), { marks: markNames$3 });
|
|
1985
2000
|
//#endregion
|
|
1986
2001
|
//#region src/lib/rich-text-editor/rte/features/monospace.style.scss?inline
|
|
1987
2002
|
var monospace_style_default = "tt{font:var(--vvd-typography-base-code);font-variant-ligatures:unset;font-feature-settings:unset;font-size:unset;font-weight:unset;line-height:unset}";
|
|
1988
2003
|
//#endregion
|
|
1989
2004
|
//#region src/lib/rich-text-editor/rte/features/monospace.ts
|
|
2005
|
+
var markNames$2 = { monospace: "monospace" };
|
|
1990
2006
|
var RteMonospaceFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
1991
2007
|
constructor(..._args) {
|
|
1992
2008
|
super(..._args);
|
|
1993
2009
|
this.name = "RteMonospaceFeature";
|
|
1994
|
-
this.markName =
|
|
2010
|
+
this.markName = markNames$2.monospace;
|
|
1995
2011
|
}
|
|
1996
2012
|
getStyles() {
|
|
1997
2013
|
return [this.contribution(monospace_style_default)];
|
|
1998
2014
|
}
|
|
1999
2015
|
getSchema() {
|
|
2000
|
-
return [this.contribution({ marks: { monospace: {
|
|
2016
|
+
return [this.contribution({ marks: { [markNames$2.monospace]: {
|
|
2001
2017
|
parseDOM: [{ tag: "tt" }, { tag: "code" }],
|
|
2002
2018
|
toDOM() {
|
|
2003
2019
|
return ["tt", 0];
|
|
@@ -2018,7 +2034,7 @@ var RteMonospaceFeatureImpl = class extends RteTextStyleFeatureImpl {
|
|
|
2018
2034
|
}, 5)];
|
|
2019
2035
|
}
|
|
2020
2036
|
};
|
|
2021
|
-
var RteMonospaceFeature = featureFacade(RteMonospaceFeatureImpl);
|
|
2037
|
+
var RteMonospaceFeature = Object.assign(featureFacade(RteMonospaceFeatureImpl), { marks: markNames$2 });
|
|
2022
2038
|
//#endregion
|
|
2023
2039
|
//#region src/lib/rich-text-editor/rte/utils/color.ts
|
|
2024
2040
|
/**
|
|
@@ -2065,6 +2081,7 @@ function markApplies(doc, ranges, type) {
|
|
|
2065
2081
|
return false;
|
|
2066
2082
|
}
|
|
2067
2083
|
var mixedColor = Symbol("mixedColor");
|
|
2084
|
+
var markNames$1 = { textColor: "textColor" };
|
|
2068
2085
|
var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
|
|
2069
2086
|
constructor(config) {
|
|
2070
2087
|
super();
|
|
@@ -2077,10 +2094,10 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
2077
2094
|
}
|
|
2078
2095
|
getTextblockMarks() {
|
|
2079
2096
|
if (this.config?.onBlocks) return this.config.onBlocks.map((block) => this.contribution({
|
|
2080
|
-
markName:
|
|
2097
|
+
markName: markNames$1.textColor,
|
|
2081
2098
|
onNodeName: block.node
|
|
2082
2099
|
}));
|
|
2083
|
-
return [this.contribution({ markName:
|
|
2100
|
+
return [this.contribution({ markName: markNames$1.textColor })];
|
|
2084
2101
|
}
|
|
2085
2102
|
getSchema() {
|
|
2086
2103
|
const parseColor = (color) => {
|
|
@@ -2088,7 +2105,7 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
2088
2105
|
if (parsedColor === null) return false;
|
|
2089
2106
|
return { color: parsedColor };
|
|
2090
2107
|
};
|
|
2091
|
-
return [this.contribution({ marks: { textColor: {
|
|
2108
|
+
return [this.contribution({ marks: { [markNames$1.textColor]: {
|
|
2092
2109
|
attrs: { color: { validate: "string" } },
|
|
2093
2110
|
parseDOM: [{
|
|
2094
2111
|
tag: "span[data-text-color]",
|
|
@@ -2184,14 +2201,16 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
2184
2201
|
};
|
|
2185
2202
|
}
|
|
2186
2203
|
};
|
|
2187
|
-
var RteTextColorPickerFeature = Object.assign(featureFacade(RteTextColorPickerFeatureImpl), {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2193
|
-
|
|
2194
|
-
|
|
2204
|
+
var RteTextColorPickerFeature = Object.assign(featureFacade(RteTextColorPickerFeatureImpl), {
|
|
2205
|
+
marks: markNames$1,
|
|
2206
|
+
/**
|
|
2207
|
+
* Normalizes a CSS color into its canonical CSSOM serialization, so that
|
|
2208
|
+
* colors written in different notations can be compared. Nothing is resolved
|
|
2209
|
+
* against the document, so values such as `var(--brand)` or `inherit` are
|
|
2210
|
+
* returned unchanged. Returns `null` if the value is not a valid CSS color.
|
|
2211
|
+
*/
|
|
2212
|
+
normalizeCssColor
|
|
2213
|
+
});
|
|
2195
2214
|
//#endregion
|
|
2196
2215
|
//#region src/lib/rich-text-editor/rte/features/list.style.scss?inline
|
|
2197
2216
|
var list_style_default = ".rich-text ul,.rich-text ol{padding-inline-start:1.5em}.rich-text li{list-style-position:inside}";
|
|
@@ -2278,6 +2297,11 @@ var sinkLi = (listType, $li, tr) => {
|
|
|
2278
2297
|
var sinkNode = (rte, listType, $node, tr) => {
|
|
2279
2298
|
tr.step(new ReplaceAroundStep($node.before(), $node.after(), $node.start(), $node.end(), new Slice(Fragment.from(listType.create(null, [rte.schema.nodes.listItem.create(rte.textblockAttrs.extractFromNode($node.parent))])), 0, 0), 2));
|
|
2280
2299
|
};
|
|
2300
|
+
var nodeNames$1 = {
|
|
2301
|
+
listItem: "listItem",
|
|
2302
|
+
bulletList: "bulletList",
|
|
2303
|
+
numberedList: "numberedList"
|
|
2304
|
+
};
|
|
2281
2305
|
var RteListFeatureImpl = class extends RteFeatureImpl {
|
|
2282
2306
|
constructor(config) {
|
|
2283
2307
|
super();
|
|
@@ -2290,7 +2314,7 @@ var RteListFeatureImpl = class extends RteFeatureImpl {
|
|
|
2290
2314
|
}
|
|
2291
2315
|
getSchema(textblockAttrs) {
|
|
2292
2316
|
return [this.contribution({ nodes: {
|
|
2293
|
-
listItem: {
|
|
2317
|
+
[nodeNames$1.listItem]: {
|
|
2294
2318
|
content: "inline*",
|
|
2295
2319
|
attrs: textblockAttrs.attrs,
|
|
2296
2320
|
defining: true,
|
|
@@ -2306,7 +2330,7 @@ var RteListFeatureImpl = class extends RteFeatureImpl {
|
|
|
2306
2330
|
];
|
|
2307
2331
|
}
|
|
2308
2332
|
},
|
|
2309
|
-
...this.config.bulletList ? { bulletList: {
|
|
2333
|
+
...this.config.bulletList ? { [nodeNames$1.bulletList]: {
|
|
2310
2334
|
group: "block list",
|
|
2311
2335
|
content: "(listItem | list)+",
|
|
2312
2336
|
parseDOM: [{ tag: "ul" }],
|
|
@@ -2314,7 +2338,7 @@ var RteListFeatureImpl = class extends RteFeatureImpl {
|
|
|
2314
2338
|
return ["ul", 0];
|
|
2315
2339
|
}
|
|
2316
2340
|
} } : {},
|
|
2317
|
-
...this.config.numberedList ? { numberedList: {
|
|
2341
|
+
...this.config.numberedList ? { [nodeNames$1.numberedList]: {
|
|
2318
2342
|
group: "block list",
|
|
2319
2343
|
content: "(listItem | list)+",
|
|
2320
2344
|
parseDOM: [{ tag: "ol" }],
|
|
@@ -2444,7 +2468,7 @@ var RteListFeatureImpl = class extends RteFeatureImpl {
|
|
|
2444
2468
|
else return false;
|
|
2445
2469
|
}
|
|
2446
2470
|
};
|
|
2447
|
-
var RteListFeature = featureFacade(RteListFeatureImpl);
|
|
2471
|
+
var RteListFeature = Object.assign(featureFacade(RteListFeatureImpl), { nodes: nodeNames$1 });
|
|
2448
2472
|
//#endregion
|
|
2449
2473
|
//#region src/lib/rich-text-editor/rte/features/alignment.ts
|
|
2450
2474
|
var alignments = [
|
|
@@ -2571,6 +2595,7 @@ function convertToLink(state, matchedText, start, end) {
|
|
|
2571
2595
|
if (trailingChars) tr.replaceWith(linkEnd, end, state.schema.text(trailingChars));
|
|
2572
2596
|
return tr;
|
|
2573
2597
|
}
|
|
2598
|
+
var markNames = { link: "link" };
|
|
2574
2599
|
var RteLinkFeatureImpl = class extends RteFeatureImpl {
|
|
2575
2600
|
constructor(..._args) {
|
|
2576
2601
|
super(..._args);
|
|
@@ -2587,7 +2612,7 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
|
|
|
2587
2612
|
return [this.contribution(link_style_default)];
|
|
2588
2613
|
}
|
|
2589
2614
|
getSchema() {
|
|
2590
|
-
return [this.contribution({ marks: { link: {
|
|
2615
|
+
return [this.contribution({ marks: { [markNames.link]: {
|
|
2591
2616
|
attrs: { href: { validate: "string" } },
|
|
2592
2617
|
inclusive: false,
|
|
2593
2618
|
parseDOM: [{
|
|
@@ -2607,7 +2632,7 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
|
|
|
2607
2632
|
} } }, contributionPriority.high)];
|
|
2608
2633
|
}
|
|
2609
2634
|
getTextblockMarks() {
|
|
2610
|
-
return [this.contribution({ markName:
|
|
2635
|
+
return [this.contribution({ markName: markNames.link })];
|
|
2611
2636
|
}
|
|
2612
2637
|
getInputRules() {
|
|
2613
2638
|
const linkRegex = new RegExp(`${linkPattern}$`);
|
|
@@ -2840,7 +2865,7 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
|
|
|
2840
2865
|
};
|
|
2841
2866
|
}
|
|
2842
2867
|
};
|
|
2843
|
-
var RteLinkFeature = featureFacade(RteLinkFeatureImpl);
|
|
2868
|
+
var RteLinkFeature = Object.assign(featureFacade(RteLinkFeatureImpl), { marks: markNames });
|
|
2844
2869
|
//#endregion
|
|
2845
2870
|
//#region src/lib/rich-text-editor/rte/features/inline-image.style.scss?inline
|
|
2846
2871
|
var inline_image_style_default = ".inline-image-wrapper{vertical-align:text-bottom;display:inline-block}.inline-image{block-size:auto;display:block}.inline-image-popover{align-items:center;gap:4px;padding:8px;display:flex}.inline-image-placeholder{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);font-feature-settings:normal;font-variant-ligatures:normal;overflow-wrap:normal;pointer-events:none;white-space:normal}";
|
|
@@ -2931,6 +2956,7 @@ var InlineImageView = class {
|
|
|
2931
2956
|
this.setContent(null);
|
|
2932
2957
|
}
|
|
2933
2958
|
};
|
|
2959
|
+
var nodeNames = { inlineImage: "inlineImage" };
|
|
2934
2960
|
var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
|
|
2935
2961
|
constructor(config = {}) {
|
|
2936
2962
|
super();
|
|
@@ -2941,7 +2967,7 @@ var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
|
|
|
2941
2967
|
return [this.contribution(inline_image_style_default)];
|
|
2942
2968
|
}
|
|
2943
2969
|
getSchema() {
|
|
2944
|
-
|
|
2970
|
+
const inlineImage = {
|
|
2945
2971
|
inline: true,
|
|
2946
2972
|
group: "inline",
|
|
2947
2973
|
selectable: true,
|
|
@@ -2999,7 +3025,8 @@ var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
|
|
|
2999
3025
|
if (naturalHeight) attrs.height = naturalHeight;
|
|
3000
3026
|
return ["img", attrs];
|
|
3001
3027
|
}
|
|
3002
|
-
}
|
|
3028
|
+
};
|
|
3029
|
+
return [this.contribution({ nodes: { [nodeNames.inlineImage]: inlineImage } })];
|
|
3003
3030
|
}
|
|
3004
3031
|
getPlugins(rte) {
|
|
3005
3032
|
let popover;
|
|
@@ -3104,7 +3131,7 @@ var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
|
|
|
3104
3131
|
return null;
|
|
3105
3132
|
}
|
|
3106
3133
|
};
|
|
3107
|
-
var RteInlineImageFeature = featureFacade(RteInlineImageFeatureImpl);
|
|
3134
|
+
var RteInlineImageFeature = Object.assign(featureFacade(RteInlineImageFeatureImpl), { nodes: nodeNames });
|
|
3108
3135
|
//#endregion
|
|
3109
3136
|
//#region src/shared/utils/promise.ts
|
|
3110
3137
|
var resolvePromise = async (promise) => {
|
|
@@ -13,7 +13,7 @@ var FormElement = (Base) => {
|
|
|
13
13
|
this.errorValidationMessage = "";
|
|
14
14
|
this.forceErrorDisplay = false;
|
|
15
15
|
this.hasBeenTouched = false;
|
|
16
|
-
this
|
|
16
|
+
this._handleInvalidEvent = () => {
|
|
17
17
|
this.forceErrorDisplay = true;
|
|
18
18
|
this.validate();
|
|
19
19
|
};
|
|
@@ -32,13 +32,12 @@ var FormElement = (Base) => {
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
connectedCallback() {
|
|
34
34
|
super.connectedCallback();
|
|
35
|
-
this.proxy.addEventListener("invalid", this
|
|
35
|
+
this.proxy.addEventListener("invalid", this._handleInvalidEvent);
|
|
36
36
|
}
|
|
37
|
-
#handleInvalidEvent;
|
|
38
37
|
/** @internal */
|
|
39
38
|
disconnectedCallback() {
|
|
40
39
|
super.disconnectedCallback();
|
|
41
|
-
this.proxy.removeEventListener("invalid", this
|
|
40
|
+
this.proxy.removeEventListener("invalid", this._handleInvalidEvent);
|
|
42
41
|
}
|
|
43
42
|
/** @internal */
|
|
44
43
|
formResetCallback() {
|
|
@@ -13,7 +13,7 @@ var FormElement = (Base) => {
|
|
|
13
13
|
this.errorValidationMessage = "";
|
|
14
14
|
this.forceErrorDisplay = false;
|
|
15
15
|
this.hasBeenTouched = false;
|
|
16
|
-
this
|
|
16
|
+
this._handleInvalidEvent = () => {
|
|
17
17
|
this.forceErrorDisplay = true;
|
|
18
18
|
this.validate();
|
|
19
19
|
};
|
|
@@ -32,13 +32,12 @@ var FormElement = (Base) => {
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
connectedCallback() {
|
|
34
34
|
super.connectedCallback();
|
|
35
|
-
this.proxy.addEventListener("invalid", this
|
|
35
|
+
this.proxy.addEventListener("invalid", this._handleInvalidEvent);
|
|
36
36
|
}
|
|
37
|
-
#handleInvalidEvent;
|
|
38
37
|
/** @internal */
|
|
39
38
|
disconnectedCallback() {
|
|
40
39
|
super.disconnectedCallback();
|
|
41
|
-
this.proxy.removeEventListener("invalid", this
|
|
40
|
+
this.proxy.removeEventListener("invalid", this._handleInvalidEvent);
|
|
42
41
|
}
|
|
43
42
|
/** @internal */
|
|
44
43
|
formResetCallback() {
|
package/unbundled/localized.cjs
CHANGED
|
@@ -27,6 +27,12 @@ var Localized = (Base) => {
|
|
|
27
27
|
/** Mixin for Localized elements that need to observe locale changes. */
|
|
28
28
|
var WithObservableLocale = (Base) => {
|
|
29
29
|
class WithObservableLocaleElement extends Localized(Base) {
|
|
30
|
+
constructor(..._args) {
|
|
31
|
+
super(..._args);
|
|
32
|
+
this._localeChangeHandler = { handleChange: () => {
|
|
33
|
+
this.localeChanged();
|
|
34
|
+
} };
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* Called whenever the locale changes.
|
|
32
38
|
* @internal
|
|
@@ -35,22 +41,20 @@ var WithObservableLocale = (Base) => {
|
|
|
35
41
|
localeChanged() {}
|
|
36
42
|
connectedCallback() {
|
|
37
43
|
super.connectedCallback();
|
|
38
|
-
this
|
|
44
|
+
this._startObservingLocaleChanges();
|
|
39
45
|
}
|
|
40
46
|
disconnectedCallback() {
|
|
41
47
|
super.disconnectedCallback();
|
|
42
|
-
this
|
|
48
|
+
this._stopObservingLocaleChanges();
|
|
43
49
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
#startObservingLocaleChanges() {
|
|
49
|
-
this.#localeChangeObserver = _microsoft_fast_element.Observable.binding(() => this.locale, this.#localeChangeHandler);
|
|
50
|
-
this.#localeChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
50
|
+
/** @internal */
|
|
51
|
+
_startObservingLocaleChanges() {
|
|
52
|
+
this._localeChangeObserver = _microsoft_fast_element.Observable.binding(() => this.locale, this._localeChangeHandler);
|
|
53
|
+
this._localeChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
/** @internal */
|
|
56
|
+
_stopObservingLocaleChanges() {
|
|
57
|
+
this._localeChangeObserver.dispose();
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
return WithObservableLocaleElement;
|
package/unbundled/localized.js
CHANGED
|
@@ -27,6 +27,12 @@ var Localized = (Base) => {
|
|
|
27
27
|
/** Mixin for Localized elements that need to observe locale changes. */
|
|
28
28
|
var WithObservableLocale = (Base) => {
|
|
29
29
|
class WithObservableLocaleElement extends Localized(Base) {
|
|
30
|
+
constructor(..._args) {
|
|
31
|
+
super(..._args);
|
|
32
|
+
this._localeChangeHandler = { handleChange: () => {
|
|
33
|
+
this.localeChanged();
|
|
34
|
+
} };
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* Called whenever the locale changes.
|
|
32
38
|
* @internal
|
|
@@ -35,22 +41,20 @@ var WithObservableLocale = (Base) => {
|
|
|
35
41
|
localeChanged() {}
|
|
36
42
|
connectedCallback() {
|
|
37
43
|
super.connectedCallback();
|
|
38
|
-
this
|
|
44
|
+
this._startObservingLocaleChanges();
|
|
39
45
|
}
|
|
40
46
|
disconnectedCallback() {
|
|
41
47
|
super.disconnectedCallback();
|
|
42
|
-
this
|
|
48
|
+
this._stopObservingLocaleChanges();
|
|
43
49
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
#startObservingLocaleChanges() {
|
|
49
|
-
this.#localeChangeObserver = Observable.binding(() => this.locale, this.#localeChangeHandler);
|
|
50
|
-
this.#localeChangeObserver.observe(this, ExecutionContext.default);
|
|
50
|
+
/** @internal */
|
|
51
|
+
_startObservingLocaleChanges() {
|
|
52
|
+
this._localeChangeObserver = Observable.binding(() => this.locale, this._localeChangeHandler);
|
|
53
|
+
this._localeChangeObserver.observe(this, ExecutionContext.default);
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
/** @internal */
|
|
56
|
+
_stopObservingLocaleChanges() {
|
|
57
|
+
this._localeChangeObserver.dispose();
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
return WithObservableLocaleElement;
|
|
@@ -38,18 +38,18 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super();
|
|
40
40
|
this.readOnly = false;
|
|
41
|
-
this
|
|
41
|
+
this._onFocusIn = () => {
|
|
42
42
|
this.$emit("focus", void 0, { bubbles: false });
|
|
43
43
|
};
|
|
44
|
-
this
|
|
44
|
+
this._onFocusOut = () => {
|
|
45
45
|
this.$emit("blur", void 0, { bubbles: false });
|
|
46
46
|
};
|
|
47
47
|
this.proxy = document.createElement("input");
|
|
48
|
-
this
|
|
48
|
+
this._localeChangeHandler = { handleChange: () => {
|
|
49
49
|
this._updatePresentationValue();
|
|
50
50
|
} };
|
|
51
51
|
this._popupOpen = false;
|
|
52
|
-
this
|
|
52
|
+
this._dismissOnClickOutside = (event) => {
|
|
53
53
|
if (!this._popupOpen) return;
|
|
54
54
|
const path = event.composedPath();
|
|
55
55
|
if (![this._dialogEl, this._pickerButtonEl].some((element) => path.includes(element))) this._closePopup(false);
|
|
@@ -60,37 +60,35 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
60
60
|
/** @internal */
|
|
61
61
|
connectedCallback() {
|
|
62
62
|
super.connectedCallback();
|
|
63
|
-
document.addEventListener("click", this
|
|
64
|
-
this.addEventListener("focusin", this
|
|
65
|
-
this.addEventListener("focusout", this
|
|
66
|
-
this
|
|
63
|
+
document.addEventListener("click", this._dismissOnClickOutside);
|
|
64
|
+
this.addEventListener("focusin", this._onFocusIn);
|
|
65
|
+
this.addEventListener("focusout", this._onFocusOut);
|
|
66
|
+
this._startObservingLocaleChanges();
|
|
67
67
|
}
|
|
68
68
|
/** @internal */
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
super.disconnectedCallback();
|
|
71
|
-
document.removeEventListener("click", this
|
|
72
|
-
this.removeEventListener("focusin", this
|
|
73
|
-
this.removeEventListener("focusout", this
|
|
74
|
-
this
|
|
71
|
+
document.removeEventListener("click", this._dismissOnClickOutside);
|
|
72
|
+
this.removeEventListener("focusin", this._onFocusIn);
|
|
73
|
+
this.removeEventListener("focusout", this._onFocusOut);
|
|
74
|
+
this._stopObservingLocaleChanges();
|
|
75
75
|
}
|
|
76
|
-
#onFocusIn;
|
|
77
|
-
#onFocusOut;
|
|
78
76
|
/** @internal */
|
|
79
77
|
validate() {
|
|
80
78
|
if (this.proxy) this.proxy.setCustomValidity(this._getCustomValidationError() ?? "");
|
|
81
79
|
super.validate(this._textFieldEl?.querySelector("input") ?? void 0);
|
|
82
80
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this
|
|
87
|
-
this.#localeChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
81
|
+
/** @internal */
|
|
82
|
+
_startObservingLocaleChanges() {
|
|
83
|
+
this._localeChangeObserver = _microsoft_fast_element.Observable.binding(() => this.locale, this._localeChangeHandler);
|
|
84
|
+
this._localeChangeObserver.observe(this, _microsoft_fast_element.ExecutionContext.default);
|
|
88
85
|
}
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
/** @internal */
|
|
87
|
+
_stopObservingLocaleChanges() {
|
|
88
|
+
this._localeChangeObserver.dispose();
|
|
91
89
|
}
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
/** @internal */
|
|
91
|
+
_openPopupIfPossible() {
|
|
94
92
|
/* v8 ignore else -- @preserve */
|
|
95
93
|
if (!this.readOnly) this._popupOpen = true;
|
|
96
94
|
}
|
|
@@ -124,7 +122,7 @@ var PickerField = class extends require_with_contextual_help.WithContextualHelp(
|
|
|
124
122
|
/** @internal */
|
|
125
123
|
_onPickerButtonClick() {
|
|
126
124
|
if (this._popupOpen) this._closePopup();
|
|
127
|
-
else this
|
|
125
|
+
else this._openPopupIfPossible();
|
|
128
126
|
}
|
|
129
127
|
/** @internal */
|
|
130
128
|
_onOkClick() {
|