@vonage/vivid 5.30.0 → 5.31.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.
Files changed (39) hide show
  1. package/bundled/definition25.cjs +4 -4
  2. package/bundled/definition25.js +4 -4
  3. package/bundled/text-field.cjs +1 -1
  4. package/bundled/text-field.js +1 -1
  5. package/bundled/vivid-element.cjs +1 -1
  6. package/bundled/vivid-element.js +27 -1
  7. package/custom-elements.json +4413 -4437
  8. package/lib/rich-text-editor/rte/feature.d.ts +0 -1
  9. package/lib/rich-text-editor/rte/features/base.d.ts +9 -0
  10. package/lib/rich-text-editor/rte/features/bold.d.ts +5 -1
  11. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +5 -1
  12. package/lib/rich-text-editor/rte/features/hard-break.d.ts +4 -0
  13. package/lib/rich-text-editor/rte/features/inline-image.d.ts +4 -0
  14. package/lib/rich-text-editor/rte/features/italic.d.ts +5 -1
  15. package/lib/rich-text-editor/rte/features/link.d.ts +5 -1
  16. package/lib/rich-text-editor/rte/features/list.d.ts +6 -0
  17. package/lib/rich-text-editor/rte/features/monospace.d.ts +5 -1
  18. package/lib/rich-text-editor/rte/features/strikethrough.d.ts +5 -1
  19. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +4 -1
  20. package/lib/rich-text-editor/rte/features/underline.d.ts +5 -1
  21. package/lib/rich-text-editor/rte/public-interface.d.ts +1 -1
  22. package/number-field/index.cjs +1 -1
  23. package/number-field/index.js +1 -1
  24. package/package.json +6 -6
  25. package/rich-text-editor/index.cjs +1 -1
  26. package/rich-text-editor/index.js +176 -160
  27. package/shared/foundation/vivid-element/vivid-element.browser-spec.d.ts +1 -0
  28. package/shared/foundation/vivid-element/vivid-element.d.ts +8 -8
  29. package/unbundled/definition2.cjs +4 -4
  30. package/unbundled/definition2.js +4 -4
  31. package/unbundled/definition55.cjs +1 -1
  32. package/unbundled/definition55.js +1 -1
  33. package/unbundled/definition63.cjs +73 -46
  34. package/unbundled/definition63.js +73 -46
  35. package/unbundled/text-field.cjs +1 -1
  36. package/unbundled/text-field.js +1 -1
  37. package/unbundled/vivid-element.cjs +54 -1
  38. package/unbundled/vivid-element.js +55 -2
  39. 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: "fontSize",
1740
+ markName: markNames$7.fontSize,
1731
1741
  onNodeName: block.node
1732
1742
  }));
1733
- return [this.contribution({ markName: "fontSize" })];
1743
+ return [this.contribution({ markName: markNames$7.fontSize })];
1734
1744
  }
1735
1745
  getSchema() {
1736
- return [this.contribution({ marks: { fontSize: {
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 = "bold";
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 = "italic";
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 = "underline";
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 = "strikethrough";
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 = "monospace";
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: "textColor",
2097
+ markName: markNames$1.textColor,
2081
2098
  onNodeName: block.node
2082
2099
  }));
2083
- return [this.contribution({ markName: "textColor" })];
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
- * Normalizes a CSS color into its canonical CSSOM serialization, so that
2190
- * colors written in different notations can be compared. Nothing is resolved
2191
- * against the document, so values such as `var(--brand)` or `inherit` are
2192
- * returned unchanged. Returns `null` if the value is not a valid CSS color.
2193
- */
2194
- normalizeCssColor });
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: "link" })];
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
- return [this.contribution({ nodes: { inlineImage: {
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) => {
@@ -1,5 +1,5 @@
1
1
  //#region src/lib/text-field/text-field.scss?inline
2
- var text_field_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
2
+ var text_field_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);max-inline-size:var(--text-field-input-inline-size,auto);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "text_field_default", {
5
5
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region src/lib/text-field/text-field.scss?inline
2
- var text_field_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
2
+ var text_field_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_text-field-border-radius:8px;--_text-field-pill-border-radius:24px;grid-template-columns:min-content 1fr max-content;align-items:center;gap:4px;width:100%;display:inline-grid}.base.size-condensed{--_text-field-gutter-start:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2);--_text-field-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8)) / 2);--_text-field-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_text-field-border-radius:4px}.base{user-select:none}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){font:var(--vvd-typography-base);grid-area:1/1/auto/4;box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.label-wrapper{grid-area:1/1/auto/4}.char-count+.label-wrapper{grid-column:1/3}.fieldset{background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);max-inline-size:var(--text-field-input-inline-size,auto);grid-column:1/4;align-items:center;padding-block:0;transition:color .2s,background-color .2s;display:flex;position:relative}.fieldset:after{border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";pointer-events:none;inline-size:100%;transition:box-shadow .2s;display:block;position:absolute}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){font:inherit;text-align:inherit;outline:#0000;box-sizing:border-box!important;border-radius:inherit!important;width:100%!important;margin:initial!important;appearance:none!important;block-size:100%!important;color:inherit!important;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;background-color:#0000!important;border:0!important}.control:not(slot,:focus),.control::slotted(input:not(:focus)){text-overflow:ellipsis!important}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control::slotted(input:autofill),.control:not(slot):autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);line-height:1;position:absolute;inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.base:not(.has-activedescendant) .fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){.base:not(.has-activedescendant) .wrapper:focus-within:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}}:host([internal-part]) .fieldset{font:var(--vvd-typography-heading-4);background-color:#0000;line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
3
3
  //#endregion
4
4
  export { text_field_default as t };
@@ -346,7 +346,7 @@ var ReplacedPropHandling = (Base) => {
346
346
  */
347
347
  var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControllerHostSupport(_microsoft_fast_element.FASTElement))) {
348
348
  static {
349
- this.VIVID_VERSION = "5.30.0";
349
+ this.VIVID_VERSION = "5.31.0";
350
350
  }
351
351
  /**
352
352
  * Add data-vvd-component attribute with component name globally,
@@ -367,6 +367,59 @@ var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControll
367
367
  super.focus(...args);
368
368
  }
369
369
  };
370
+ patchElementControllerForCustomElement();
371
+ /**
372
+ * Works around https://github.com/microsoft/fast/issues/7745.
373
+ *
374
+ * `ElementController.forCustomElement` subscribes a closure over the element to
375
+ * the notifier of the element's `FASTElementDefinition` and never unsubscribes.
376
+ * The definition is a per-tag singleton that lives as long as the custom element
377
+ * registry, so every element ever constructed — plus its detached subtree — is
378
+ * retained for the lifetime of the page.
379
+ *
380
+ * This replacement ties the subscription to the element's connected lifetime
381
+ * instead, so a removed element becomes collectable.
382
+ */
383
+ function patchElementControllerForCustomElement() {
384
+ let strategy = _microsoft_fast_element.ElementController;
385
+ const originalSetStrategy = _microsoft_fast_element.ElementController.setStrategy;
386
+ _microsoft_fast_element.ElementController.setStrategy = function(newStrategy) {
387
+ strategy = newStrategy;
388
+ originalSetStrategy.call(this, newStrategy);
389
+ };
390
+ const subscribers = /* @__PURE__ */ new WeakMap();
391
+ _microsoft_fast_element.ElementController.forCustomElement = function(element, override = false) {
392
+ const existing = element.$fastController;
393
+ if (existing !== void 0 && !override) return existing;
394
+ const definition = _microsoft_fast_element.FASTElementDefinition.getForInstance(element);
395
+ if (definition === void 0) throw new Error("Missing element definition");
396
+ const controller = new strategy(element, definition);
397
+ element.$fastController = controller;
398
+ let subscriber = subscribers.get(element);
399
+ if (subscriber === void 0) {
400
+ subscriber = { handleChange: () => {
401
+ _microsoft_fast_element.ElementController.forCustomElement(element, true);
402
+ element.$fastController.connect();
403
+ } };
404
+ subscribers.set(element, subscriber);
405
+ }
406
+ const definitionSubscriber = subscriber;
407
+ const notifier = _microsoft_fast_element.Observable.getNotifier(definition);
408
+ const connect = controller.connect.bind(controller);
409
+ const disconnect = controller.disconnect.bind(controller);
410
+ controller.connect = () => {
411
+ notifier.subscribe(definitionSubscriber, "template");
412
+ notifier.subscribe(definitionSubscriber, "shadowOptions");
413
+ connect();
414
+ };
415
+ controller.disconnect = () => {
416
+ disconnect();
417
+ notifier.unsubscribe(definitionSubscriber, "template");
418
+ notifier.unsubscribe(definitionSubscriber, "shadowOptions");
419
+ };
420
+ return controller;
421
+ };
422
+ }
370
423
  //#endregion
371
424
  Object.defineProperty(exports, "VividElement", {
372
425
  enumerable: true,
@@ -1,4 +1,4 @@
1
- import { DOM, FASTElement, FASTElementDefinition, Observable, attr, html } from "@microsoft/fast-element";
1
+ import { DOM, ElementController, FASTElement, FASTElementDefinition, Observable, attr, html } from "@microsoft/fast-element";
2
2
  //#region src/shared/design-system/createRegisterFunction.ts
3
3
  function resolve(templateOrResolveFunction, ctx) {
4
4
  if (templateOrResolveFunction instanceof Function) return templateOrResolveFunction(ctx);
@@ -346,7 +346,7 @@ var ReplacedPropHandling = (Base) => {
346
346
  */
347
347
  var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControllerHostSupport(FASTElement))) {
348
348
  static {
349
- this.VIVID_VERSION = "5.30.0";
349
+ this.VIVID_VERSION = "5.31.0";
350
350
  }
351
351
  /**
352
352
  * Add data-vvd-component attribute with component name globally,
@@ -367,5 +367,58 @@ var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControll
367
367
  super.focus(...args);
368
368
  }
369
369
  };
370
+ patchElementControllerForCustomElement();
371
+ /**
372
+ * Works around https://github.com/microsoft/fast/issues/7745.
373
+ *
374
+ * `ElementController.forCustomElement` subscribes a closure over the element to
375
+ * the notifier of the element's `FASTElementDefinition` and never unsubscribes.
376
+ * The definition is a per-tag singleton that lives as long as the custom element
377
+ * registry, so every element ever constructed — plus its detached subtree — is
378
+ * retained for the lifetime of the page.
379
+ *
380
+ * This replacement ties the subscription to the element's connected lifetime
381
+ * instead, so a removed element becomes collectable.
382
+ */
383
+ function patchElementControllerForCustomElement() {
384
+ let strategy = ElementController;
385
+ const originalSetStrategy = ElementController.setStrategy;
386
+ ElementController.setStrategy = function(newStrategy) {
387
+ strategy = newStrategy;
388
+ originalSetStrategy.call(this, newStrategy);
389
+ };
390
+ const subscribers = /* @__PURE__ */ new WeakMap();
391
+ ElementController.forCustomElement = function(element, override = false) {
392
+ const existing = element.$fastController;
393
+ if (existing !== void 0 && !override) return existing;
394
+ const definition = FASTElementDefinition.getForInstance(element);
395
+ if (definition === void 0) throw new Error("Missing element definition");
396
+ const controller = new strategy(element, definition);
397
+ element.$fastController = controller;
398
+ let subscriber = subscribers.get(element);
399
+ if (subscriber === void 0) {
400
+ subscriber = { handleChange: () => {
401
+ ElementController.forCustomElement(element, true);
402
+ element.$fastController.connect();
403
+ } };
404
+ subscribers.set(element, subscriber);
405
+ }
406
+ const definitionSubscriber = subscriber;
407
+ const notifier = Observable.getNotifier(definition);
408
+ const connect = controller.connect.bind(controller);
409
+ const disconnect = controller.disconnect.bind(controller);
410
+ controller.connect = () => {
411
+ notifier.subscribe(definitionSubscriber, "template");
412
+ notifier.subscribe(definitionSubscriber, "shadowOptions");
413
+ connect();
414
+ };
415
+ controller.disconnect = () => {
416
+ disconnect();
417
+ notifier.unsubscribe(definitionSubscriber, "template");
418
+ notifier.unsubscribe(definitionSubscriber, "shadowOptions");
419
+ };
420
+ return controller;
421
+ };
422
+ }
370
423
  //#endregion
371
424
  export { ariaValueProperties as a, subscribeToAriaPropertyChanges as c, createRegisterFunction as d, ariaIdrefsProperties as i, unsubscribeFromAriaPropertyChanges as l, replaces as n, handleAriaPropertyChange as o, ariaAttributeName as r, publishAriaPropertyChange as s, VividElement as t, defineVividComponent as u };