@vonage/vivid 5.28.1 → 5.30.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 (239) hide show
  1. package/accordion/definition.js +1 -2
  2. package/accordion-item/definition.js +1 -2
  3. package/action-group/definition.js +1 -2
  4. package/alert/definition.js +1 -2
  5. package/audio-player/definition.js +1 -2
  6. package/audio-player/index.cjs +1 -1
  7. package/audio-player/index.js +1 -5
  8. package/avatar/definition.js +1 -2
  9. package/badge/definition.js +1 -2
  10. package/banner/definition.js +1 -2
  11. package/banner/index.cjs +1 -1
  12. package/banner/index.js +1 -1
  13. package/breadcrumb/definition.js +1 -2
  14. package/bundled/char-count.cjs +1 -1
  15. package/bundled/char-count.js +1 -1
  16. package/bundled/decorate.js +1 -1
  17. package/bundled/definition12.cjs +2 -1
  18. package/bundled/definition12.js +2 -1
  19. package/bundled/definition16.cjs +1 -1
  20. package/bundled/definition16.js +2 -5
  21. package/bundled/definition17.cjs +1 -1
  22. package/bundled/definition17.js +1 -1
  23. package/bundled/definition18.cjs +1 -1
  24. package/bundled/definition18.js +1 -1
  25. package/bundled/definition19.cjs +2 -2
  26. package/bundled/definition19.js +10 -25
  27. package/bundled/definition21.cjs +1 -1
  28. package/bundled/definition21.js +1 -1
  29. package/bundled/definition25.cjs +4 -4
  30. package/bundled/definition25.js +4 -4
  31. package/bundled/definition5.cjs +1 -1
  32. package/bundled/definition5.js +3 -6
  33. package/bundled/listbox.cjs +1 -1
  34. package/bundled/listbox.js +1 -5
  35. package/bundled/numberConverter.cjs +1 -1
  36. package/bundled/numberConverter.js +1 -1
  37. package/bundled/option.cjs +1 -1
  38. package/bundled/option.js +1 -5
  39. package/bundled/picker-field.template.cjs +5 -3
  40. package/bundled/picker-field.template.js +20 -17
  41. package/bundled/repeat.cjs +1 -1
  42. package/bundled/repeat.js +1 -5
  43. package/bundled/single-value-picker.cjs +1 -1
  44. package/bundled/single-value-picker.js +5 -15
  45. package/bundled/slottable-request.cjs +2 -2
  46. package/bundled/slottable-request.js +31 -34
  47. package/bundled/time-selection-picker.template.cjs +1 -1
  48. package/bundled/time-selection-picker.template.js +1 -1
  49. package/bundled/vivid-element.cjs +2 -2
  50. package/bundled/vivid-element.js +16 -38
  51. package/button/definition.js +1 -2
  52. package/calendar/definition.js +1 -2
  53. package/card/definition.js +1 -2
  54. package/checkbox/definition.js +1 -2
  55. package/color-picker/definition.js +1 -2
  56. package/color-picker/index.cjs +1 -1
  57. package/color-picker/index.js +3 -5
  58. package/combobox/definition.js +1 -2
  59. package/combobox/index.cjs +1 -1
  60. package/combobox/index.js +1 -5
  61. package/contextual-help/definition.js +1 -2
  62. package/country/definition.js +1 -2
  63. package/country-group/definition.js +1 -2
  64. package/country-group/index.cjs +1 -1
  65. package/country-group/index.js +1 -5
  66. package/custom-elements.json +521 -217
  67. package/data-grid/definition.js +1 -2
  68. package/data-grid/index.cjs +2 -2
  69. package/data-grid/index.js +16 -44
  70. package/date-picker/definition.js +1 -2
  71. package/date-range-picker/definition.js +1 -2
  72. package/date-range-picker/index.cjs +1 -1
  73. package/date-range-picker/index.js +7 -18
  74. package/date-time-picker/definition.js +1 -2
  75. package/dial-pad/definition.js +1 -2
  76. package/dial-pad/index.cjs +1 -1
  77. package/dial-pad/index.js +1 -5
  78. package/dialog/definition.js +1 -2
  79. package/elevation/definition.js +1 -2
  80. package/empty-state/definition.js +1 -2
  81. package/empty-state/index.cjs +2 -2
  82. package/empty-state/index.js +3 -3
  83. package/fab/definition.js +1 -2
  84. package/fab/index.cjs +1 -1
  85. package/fab/index.js +2 -5
  86. package/file-picker/definition.js +1 -2
  87. package/file-picker/index.js +1 -0
  88. package/flag/definition.js +1 -2
  89. package/form-field/definition.js +1 -2
  90. package/header/definition.js +1 -2
  91. package/kbd-key/definition.js +1 -2
  92. package/kbd-shortcut/definition.js +1 -2
  93. package/layout/definition.js +1 -2
  94. package/lib/date-picker/date-picker.d.ts +4 -0
  95. package/lib/date-range-picker/date-range-picker.d.ts +2 -0
  96. package/lib/date-time-picker/date-time-picker.d.ts +4 -0
  97. package/lib/empty-state/definition.d.ts +1 -1
  98. package/lib/empty-state/empty-state.d.ts +3 -1
  99. package/lib/number-field/definition.d.ts +1 -1
  100. package/lib/number-field/number-field.d.ts +3 -1
  101. package/lib/rich-text-editor/rte/features/base.d.ts +2 -1
  102. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +2 -0
  103. package/lib/rich-text-editor/rte/features/inline-image.d.ts +1 -0
  104. package/lib/rich-text-editor/rte/features/suggest.d.ts +7 -1
  105. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +3 -0
  106. package/lib/rich-text-editor/rte/utils/color.d.ts +1 -0
  107. package/lib/rich-text-editor/rte/utils/flatten-slice.d.ts +2 -0
  108. package/lib/rich-text-editor/rte/utils/sanitization.d.ts +2 -0
  109. package/lib/time-picker/time-picker.d.ts +2 -0
  110. package/listbox/definition.js +1 -2
  111. package/listbox/index.cjs +1 -1
  112. package/listbox/index.js +4 -8
  113. package/locales/de-DE.cjs +1 -1
  114. package/locales/de-DE.js +1 -1
  115. package/locales/en-GB.cjs +1 -1
  116. package/locales/en-GB.js +1 -1
  117. package/locales/en-US.js +1 -2
  118. package/locales/ja-JP.cjs +1 -1
  119. package/locales/ja-JP.js +1 -1
  120. package/locales/zh-CN.cjs +1 -1
  121. package/locales/zh-CN.js +1 -1
  122. package/menu/definition.js +1 -2
  123. package/menu-item/definition.js +1 -2
  124. package/nav/definition.js +1 -2
  125. package/nav-disclosure/definition.js +1 -2
  126. package/nav-item/definition.js +1 -2
  127. package/note/definition.js +1 -2
  128. package/number-field/definition.js +1 -2
  129. package/number-field/index.cjs +16 -14
  130. package/number-field/index.js +49 -31
  131. package/package.json +21 -21
  132. package/pagination/definition.js +1 -2
  133. package/pagination/index.cjs +1 -1
  134. package/pagination/index.js +2 -13
  135. package/platform-switch/definition.js +1 -2
  136. package/platform-switch/index.cjs +1 -1
  137. package/platform-switch/index.js +1 -7
  138. package/popover/definition.js +1 -2
  139. package/popover/index.js +1 -0
  140. package/popup/definition.js +1 -2
  141. package/progress/definition.js +1 -2
  142. package/progress-ring/definition.js +1 -2
  143. package/radio/definition.js +1 -2
  144. package/radio-group/definition.js +1 -2
  145. package/radio-group/index.cjs +13 -2
  146. package/radio-group/index.js +21 -14
  147. package/range-slider/definition.js +1 -2
  148. package/rich-text-editor/definition.js +1 -2
  149. package/rich-text-editor/index.cjs +14 -14
  150. package/rich-text-editor/index.js +2099 -2010
  151. package/rich-text-view/definition.js +1 -2
  152. package/searchable-select/definition.js +1 -2
  153. package/searchable-select/index.cjs +1 -1
  154. package/searchable-select/index.js +4 -24
  155. package/select/definition.js +1 -2
  156. package/selectable-box/definition.js +1 -2
  157. package/selectable-box/index.cjs +1 -1
  158. package/selectable-box/index.js +2 -5
  159. package/shared/picker-field/mixins/calendar-picker.d.ts +1 -0
  160. package/shared/picker-field/mixins/calendar-picker.template.d.ts +1 -0
  161. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +1 -0
  162. package/shared/picker-field/mixins/single-date-picker.d.ts +1 -0
  163. package/shared/picker-field/mixins/single-value-picker.d.ts +1 -0
  164. package/shared/picker-field/mixins/time-selection-picker.d.ts +1 -0
  165. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +2 -0
  166. package/shared/picker-field/picker-field.d.ts +38 -31
  167. package/side-drawer/definition.js +1 -2
  168. package/side-drawer/index.cjs +1 -1
  169. package/side-drawer/index.js +2 -5
  170. package/simple-color-picker/definition.js +1 -2
  171. package/split-button/definition.js +1 -2
  172. package/split-button/index.cjs +1 -1
  173. package/split-button/index.js +4 -10
  174. package/status/definition.js +1 -2
  175. package/styles/fonts/spezia-variable.css +33 -21
  176. package/switch/definition.js +1 -2
  177. package/switch/index.cjs +1 -1
  178. package/switch/index.js +1 -1
  179. package/tab/definition.js +1 -2
  180. package/tab-panel/definition.js +1 -2
  181. package/table/definition.js +1 -2
  182. package/tabs/definition.js +1 -2
  183. package/tabs/index.cjs +1 -1
  184. package/tabs/index.js +1 -1
  185. package/tag/definition.js +1 -2
  186. package/tag/index.cjs +1 -1
  187. package/tag/index.js +2 -2
  188. package/tag-group/definition.js +1 -2
  189. package/text-area/definition.js +1 -2
  190. package/text-field/definition.js +1 -2
  191. package/toggletip/definition.js +1 -2
  192. package/tooltip/definition.js +1 -2
  193. package/tree-item/definition.js +1 -2
  194. package/tree-view/definition.js +1 -2
  195. package/unbundled/decorate.cjs +1 -1
  196. package/unbundled/decorate.js +1 -1
  197. package/unbundled/definition11.cjs +1 -1
  198. package/unbundled/definition11.js +1 -1
  199. package/unbundled/definition16.cjs +1 -1
  200. package/unbundled/definition16.js +1 -1
  201. package/unbundled/definition2.cjs +4 -4
  202. package/unbundled/definition2.js +4 -4
  203. package/unbundled/definition28.cjs +5 -1
  204. package/unbundled/definition28.js +5 -1
  205. package/unbundled/definition29.cjs +1 -1
  206. package/unbundled/definition29.js +1 -1
  207. package/unbundled/definition30.cjs +1 -1
  208. package/unbundled/definition30.js +1 -1
  209. package/unbundled/definition42.cjs +3 -2
  210. package/unbundled/definition42.js +3 -2
  211. package/unbundled/definition50.cjs +1 -1
  212. package/unbundled/definition50.js +1 -1
  213. package/unbundled/definition55.cjs +41 -8
  214. package/unbundled/definition55.js +41 -8
  215. package/unbundled/definition6.cjs +1 -1
  216. package/unbundled/definition6.js +1 -1
  217. package/unbundled/definition61.cjs +21 -2
  218. package/unbundled/definition61.js +21 -2
  219. package/unbundled/definition63.cjs +169 -42
  220. package/unbundled/definition63.js +164 -37
  221. package/unbundled/definition72.cjs +1 -0
  222. package/unbundled/definition72.js +1 -0
  223. package/unbundled/definition74.cjs +2 -1
  224. package/unbundled/definition74.js +2 -1
  225. package/unbundled/definition76.cjs +1 -1
  226. package/unbundled/definition76.js +1 -1
  227. package/unbundled/en-US.cjs +1 -1
  228. package/unbundled/en-US.js +1 -1
  229. package/unbundled/numberConverter.cjs +1 -1
  230. package/unbundled/numberConverter.js +1 -1
  231. package/unbundled/picker-field.template.cjs +6 -1
  232. package/unbundled/picker-field.template.js +6 -1
  233. package/unbundled/vivid-element.cjs +1 -1
  234. package/unbundled/vivid-element.js +1 -1
  235. package/video-player/definition.js +1 -2
  236. package/video-player/index.cjs +18 -18
  237. package/video-player/index.js +630 -1220
  238. package/visually-hidden/definition.js +1 -2
  239. package/vivid.api.json +159 -4
@@ -13,6 +13,8 @@ import { n as textFieldDefinition, r as TextField } from "./definition26.js";
13
13
  import { n as tooltipDefinition, r as Tooltip } from "./definition27.js";
14
14
  import { t as ListboxOption } from "./option.js";
15
15
  import { t as listboxOptionDefinition } from "./definition29.js";
16
+ import { t as Optgroup } from "./optgroup.js";
17
+ import { t as optgroupDefinition } from "./definition30.js";
16
18
  import { t as dividerDefinition } from "./definition36.js";
17
19
  import { a as featureFacade, c as impl, i as contributionPriority, n as removeSymbol, o as getFeatureImpl, r as RteFeatureImpl, s as sortedContributions, t as dispatchSlottableRequest } from "./slottable-request.js";
18
20
  import { n as selectDefinition, r as Select } from "./definition64.js";
@@ -462,6 +464,26 @@ var sanitizeLinkHref = (url) => {
462
464
  ...domPurifyConfig
463
465
  }).querySelector("a").getAttribute("href") ?? "";
464
466
  };
467
+ /** Whether a URL is safe to use as an anchor href. */
468
+ var isSafeLinkHref = (url) => sanitizeLinkHref(url) !== "";
469
+ var RELATIVE_HREF_REGEXP = /^(?:[/?#]|\.{1,2}\/)/;
470
+ /**
471
+ * Whether a URL is acceptable as a link href: safe, and either an absolute URL
472
+ * or relative to the current document. Relative hrefs are supported, so this is
473
+ * deliberately weaker than requiring a scheme, but a bare word like "invalid"
474
+ * is still rejected.
475
+ */
476
+ var isValidLinkHref = (url) => {
477
+ const href = url.trim();
478
+ if (!href || !isSafeLinkHref(href)) return false;
479
+ if (RELATIVE_HREF_REGEXP.test(href)) return true;
480
+ try {
481
+ new URL(href);
482
+ return true;
483
+ } catch {
484
+ return false;
485
+ }
486
+ };
465
487
  /**
466
488
  * Sanitize potentially dangerous URLs, like "javascript:", in image src attributes.
467
489
  * Returns empty string if the URL is unsafe.
@@ -910,6 +932,54 @@ var RteConfigImpl = class {
910
932
  }
911
933
  };
912
934
  //#endregion
935
+ //#region src/lib/rich-text-editor/rte/utils/flatten-slice.ts
936
+ /**
937
+ * Splits a fragment into lines of inline content, collapsing all block structure.
938
+ * Each textblock becomes one line; container blocks (e.g. lists) are recursed into.
939
+ * Block nodes which are neither textblocks nor containers have no inline content
940
+ * to contribute and are dropped.
941
+ */
942
+ var linesOfInlineContent = (fragment) => {
943
+ const lines = [];
944
+ let inlineRun;
945
+ fragment.forEach((node) => {
946
+ if (node.isInline) {
947
+ if (!inlineRun) {
948
+ inlineRun = [];
949
+ lines.push(inlineRun);
950
+ }
951
+ inlineRun.push(node);
952
+ return;
953
+ }
954
+ inlineRun = void 0;
955
+ if (node.isTextblock) {
956
+ const inlineChildren = [];
957
+ node.content.forEach((child) => inlineChildren.push(child));
958
+ lines.push(inlineChildren);
959
+ } else lines.push(...linesOfInlineContent(node.content));
960
+ });
961
+ return lines;
962
+ };
963
+ /**
964
+ * Collapses a slice spanning multiple blocks into a single run of inline content,
965
+ * so that it can be inserted into a document which only permits one block.
966
+ *
967
+ * Lines are joined with a hardBreak where the schema has one, preserving the
968
+ * visual line structure. Without hardBreak the schema offers no way to mark a
969
+ * line boundary, so lines are concatenated directly.
970
+ *
971
+ * Slices that already hold a single line are returned unchanged, to keep the
972
+ * original open depths and let ProseMirror insert them as it normally would.
973
+ */
974
+ var flattenSliceToInline = (slice, schema) => {
975
+ const lines = linesOfInlineContent(slice.content);
976
+ if (lines.length <= 1) return slice;
977
+ const hardBreak = schema.nodes.hardBreak;
978
+ const separator = hardBreak ? [hardBreak.create()] : [];
979
+ const inline = lines.flatMap((line, index) => index === 0 ? line : [...separator, ...line]);
980
+ return new Slice(Fragment.fromArray(inline), 0, 0);
981
+ };
982
+ //#endregion
913
983
  //#region src/lib/rich-text-editor/rte/utils/ui.ts
914
984
  var isPropBinding = (prop) => typeof prop === "function";
915
985
  var on = (event, prop, handler) => [
@@ -1411,6 +1481,10 @@ var RteBaseImpl = class extends RteFeatureImpl {
1411
1481
  text: { group: "inline" }
1412
1482
  } })];
1413
1483
  }
1484
+ getPlugins(_rte) {
1485
+ if (!this.config?.singleBlock) return [];
1486
+ return [this.contribution(new Plugin({ props: { transformPasted: (slice, view) => flattenSliceToInline(slice, view.state.schema) } }))];
1487
+ }
1414
1488
  getFeatures() {
1415
1489
  return [
1416
1490
  this,
@@ -1665,8 +1739,11 @@ var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
1665
1739
  tag: "span[style*='font-size']",
1666
1740
  getAttrs: (node) => {
1667
1741
  const size = node.getAttribute("style").match(/font-size:\s*([^;]+)/)?.[1]?.trim();
1668
- if (size) return { size };
1669
- return false;
1742
+ if (!size) return false;
1743
+ const parsedSize = this.config?.parseSizeFromHtml ? this.config.parseSizeFromHtml(size) : size;
1744
+ if (parsedSize === null) return false;
1745
+ if (this.config?.restrictToOptions && !this.fontSizes.some((fs) => fs.size === parsedSize)) return false;
1746
+ return { size: parsedSize };
1670
1747
  }
1671
1748
  }],
1672
1749
  toDOM: (mark) => {
@@ -1943,6 +2020,36 @@ var RteMonospaceFeatureImpl = class extends RteTextStyleFeatureImpl {
1943
2020
  };
1944
2021
  var RteMonospaceFeature = featureFacade(RteMonospaceFeatureImpl);
1945
2022
  //#endregion
2023
+ //#region src/lib/rich-text-editor/rte/utils/color.ts
2024
+ /**
2025
+ * Normalizes a CSS color into its canonical CSSOM serialization, so that colors
2026
+ * written in different notations can be compared:
2027
+ *
2028
+ * ```ts
2029
+ * normalizeCssColor('#000'); // -> 'rgb(0, 0, 0)'
2030
+ * normalizeCssColor('rgb(0 0 0 / 50%)'); // -> 'rgba(0, 0, 0, 0.5)'
2031
+ * normalizeCssColor('not-a-color'); // -> null
2032
+ * ```
2033
+ *
2034
+ * Only the notation is canonicalized – nothing is resolved against the document.
2035
+ * Values the CSSOM keeps as-is are returned as-is, which means equal colors do not
2036
+ * necessarily normalize to the same string:
2037
+ *
2038
+ * ```ts
2039
+ * normalizeCssColor('BLACK'); // -> 'black', not 'rgb(0, 0, 0)'
2040
+ * normalizeCssColor('var(--brand)'); // -> 'var(--brand)', never the resolved color
2041
+ * normalizeCssColor('color-mix(in srgb, red, blue)'); // -> 'color-mix(in srgb, red, blue)'
2042
+ * normalizeCssColor('inherit'); // -> 'inherit'
2043
+ * ```
2044
+ *
2045
+ * The exact behavior is browser dependent.
2046
+ */
2047
+ var normalizeCssColor = (color) => {
2048
+ const probe = document.createElement("div");
2049
+ probe.style.color = color;
2050
+ return probe.style.color || null;
2051
+ };
2052
+ //#endregion
1946
2053
  //#region src/lib/rich-text-editor/rte/features/text-color-picker.ts
1947
2054
  function markApplies(doc, ranges, type) {
1948
2055
  for (let i = 0; i < ranges.length; i++) {
@@ -1976,18 +2083,19 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
1976
2083
  return [this.contribution({ markName: "textColor" })];
1977
2084
  }
1978
2085
  getSchema() {
2086
+ const parseColor = (color) => {
2087
+ const parsedColor = this.config?.parseColorFromHtml ? this.config.parseColorFromHtml(color) : color;
2088
+ if (parsedColor === null) return false;
2089
+ return { color: parsedColor };
2090
+ };
1979
2091
  return [this.contribution({ marks: { textColor: {
1980
2092
  attrs: { color: { validate: "string" } },
1981
2093
  parseDOM: [{
1982
2094
  tag: "span[data-text-color]",
1983
- getAttrs: (dom) => {
1984
- return { color: dom.getAttribute("data-text-color") };
1985
- }
2095
+ getAttrs: (dom) => parseColor(dom.getAttribute("data-text-color"))
1986
2096
  }, {
1987
2097
  style: "color",
1988
- getAttrs: (value) => {
1989
- return { color: value };
1990
- }
2098
+ getAttrs: (value) => parseColor(value)
1991
2099
  }],
1992
2100
  toDOM(node) {
1993
2101
  const { color } = node.attrs;
@@ -2076,7 +2184,14 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
2076
2184
  };
2077
2185
  }
2078
2186
  };
2079
- var RteTextColorPickerFeature = featureFacade(RteTextColorPickerFeatureImpl);
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 });
2080
2195
  //#endregion
2081
2196
  //#region src/lib/rich-text-editor/rte/features/list.style.scss?inline
2082
2197
  var list_style_default = ".rich-text ul,.rich-text ol{padding-inline-start:1.5em}.rich-text li{list-style-position:inside}";
@@ -2606,14 +2721,6 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
2606
2721
  if (from === to) return "";
2607
2722
  return state.doc.textBetween(from, to, " ");
2608
2723
  };
2609
- const isValidUrl = (url) => {
2610
- try {
2611
- new URL(url);
2612
- return true;
2613
- } catch {
2614
- return false;
2615
- }
2616
- };
2617
2724
  return [this.contribution({
2618
2725
  section: "insert",
2619
2726
  render: (ctx) => {
@@ -2638,13 +2745,11 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
2638
2745
  updateValidation();
2639
2746
  }
2640
2747
  });
2748
+ const isApplyDisabled = () => !(textField.value.length && isValidLinkHref(urlField.value));
2641
2749
  const applyButton = createButton(ctx, {
2642
2750
  label: () => ctx.rte.getLocale().richTextEditor.apply,
2643
2751
  variant: "popover-primary",
2644
- disabled: () => {
2645
- const link = this.getCurrentLink(ctx.view.state);
2646
- return !(link && link.text.length && isValidUrl(link.href));
2647
- },
2752
+ disabled: isApplyDisabled,
2648
2753
  onClick: () => {
2649
2754
  const { state, dispatch } = ctx.view;
2650
2755
  this.insertLink(rte, urlField.value, textField.value)(state, dispatch);
@@ -2652,7 +2757,7 @@ var RteLinkFeatureImpl = class extends RteFeatureImpl {
2652
2757
  }
2653
2758
  });
2654
2759
  const updateValidation = () => {
2655
- applyButton.querySelector("[data-vvd-component=\"button\"]").disabled = !(textField.value.length && isValidUrl(urlField.value));
2760
+ applyButton.querySelector("[data-vvd-component=\"button\"]").disabled = isApplyDisabled();
2656
2761
  };
2657
2762
  const menu = createMenu(ctx, {
2658
2763
  label: () => ctx.rte.getLocale().richTextEditor.hyperlink,
@@ -2873,7 +2978,7 @@ var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
2873
2978
  return {
2874
2979
  imageUrl,
2875
2980
  alt: dom.getAttribute("alt") || "",
2876
- size: dom.style.maxWidth || null,
2981
+ size: this.config.parseSizeFromHtml ? this.config.parseSizeFromHtml(dom) : dom.style.maxWidth || null,
2877
2982
  naturalWidth: parseDimension(dom.getAttribute("width")),
2878
2983
  naturalHeight: parseDimension(dom.getAttribute("height"))
2879
2984
  };
@@ -3380,6 +3485,7 @@ var RteKeyboardShortcutsFeature = featureFacade(RteKeyboardShortcutsFeatureImpl)
3380
3485
  var suggest_style_default = ".suggest-popover{flex-direction:column;gap:2px;max-block-size:408px;min-inline-size:128px;max-inline-size:248px;padding:4px;display:flex}.suggest-loading-widget{vertical-align:middle;white-space:normal;align-items:center;margin-inline-start:2px;display:inline-flex}.suggest-empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}";
3381
3486
  //#endregion
3382
3487
  //#region src/lib/rich-text-editor/rte/features/suggest.ts
3488
+ var isSuggestionGroup = (entry) => "suggestions" in entry;
3383
3489
  var isPopoverOpen = (state) => Boolean(state?.suggestions && !state.dismissed);
3384
3490
  var popoverShowsResults = (state) => isPopoverOpen(state) && state.suggestions.items.length > 0;
3385
3491
  function findMatch(state, regex) {
@@ -3418,7 +3524,7 @@ var RteSuggestFeatureImpl = class extends RteFeatureImpl {
3418
3524
  dispatch({
3419
3525
  type: "load",
3420
3526
  generation: gen,
3421
- suggestions
3527
+ entries: suggestions
3422
3528
  });
3423
3529
  }
3424
3530
  constructor(featureId, options) {
@@ -3460,16 +3566,20 @@ var RteSuggestFeatureImpl = class extends RteFeatureImpl {
3460
3566
  };
3461
3567
  const action = tr.getMeta(this.pluginKey);
3462
3568
  if (prevState && action) switch (action.type) {
3463
- case "load": return {
3464
- ...prevState,
3465
- suggestions: {
3466
- generation: action.generation,
3467
- items: action.suggestions,
3468
- selectedIndex: 0,
3469
- visibleFocus: false
3470
- },
3471
- loadingDecoration: loadingDecoration(false)
3472
- };
3569
+ case "load": {
3570
+ const entries = action.entries.filter((entry) => !isSuggestionGroup(entry) || entry.suggestions.length > 0);
3571
+ return {
3572
+ ...prevState,
3573
+ suggestions: {
3574
+ generation: action.generation,
3575
+ entries,
3576
+ items: entries.flatMap((entry) => isSuggestionGroup(entry) ? entry.suggestions : [entry]),
3577
+ selectedIndex: 0,
3578
+ visibleFocus: false
3579
+ },
3580
+ loadingDecoration: loadingDecoration(false)
3581
+ };
3582
+ }
3473
3583
  case "navigate": {
3474
3584
  /* v8 ignore next 3 -- defensive: navigate is only dispatched after results are loaded @preserve */
3475
3585
  if (!prevState.suggestions?.items.length) return prevState;
@@ -3558,15 +3668,17 @@ var RteSuggestFeatureImpl = class extends RteFeatureImpl {
3558
3668
  }));
3559
3669
  return;
3560
3670
  }
3561
- for (const [index, suggestion] of suggestions.items.entries()) {
3671
+ const createOption = (suggestion, index, scrollTarget) => {
3562
3672
  const item = rte.createComponent(ListboxOption);
3563
3673
  item.text = suggestion.text;
3564
3674
  item.textSecondary = suggestion.textSecondary;
3675
+ item.icon = suggestion.icon;
3565
3676
  if (index === suggestions.selectedIndex) {
3566
3677
  item.selected = true;
3567
3678
  if (suggestions.visibleFocus) item._highlighted = true;
3679
+ const target = scrollTarget ?? item;
3568
3680
  queueMicrotask(() => {
3569
- item.scrollIntoView({ block: "nearest" });
3681
+ target.scrollIntoView({ block: "nearest" });
3570
3682
  });
3571
3683
  }
3572
3684
  item.addEventListener("click", (e) => {
@@ -3574,7 +3686,21 @@ var RteSuggestFeatureImpl = class extends RteFeatureImpl {
3574
3686
  e.stopPropagation();
3575
3687
  this.selectSuggestion(view, suggestState, suggestion);
3576
3688
  });
3577
- content.appendChild(item);
3689
+ return item;
3690
+ };
3691
+ let index = 0;
3692
+ for (const entry of suggestions.entries) {
3693
+ if (!isSuggestionGroup(entry)) {
3694
+ content.appendChild(createOption(entry, index++));
3695
+ continue;
3696
+ }
3697
+ const group = rte.createComponent(Optgroup);
3698
+ const label = document.createElement("span");
3699
+ label.slot = "label";
3700
+ label.textContent = entry.label;
3701
+ group.appendChild(label);
3702
+ for (const [i, suggestion] of entry.suggestions.entries()) group.appendChild(createOption(suggestion, index++, i === 0 ? group : void 0));
3703
+ content.appendChild(group);
3578
3704
  }
3579
3705
  };
3580
3706
  return {
@@ -3672,6 +3798,7 @@ var richTextEditorDefinition = defineVividComponent("rich-text-editor", RichText
3672
3798
  dividerDefinition,
3673
3799
  selectDefinition,
3674
3800
  listboxOptionDefinition,
3801
+ optgroupDefinition,
3675
3802
  buttonDefinition,
3676
3803
  tooltipDefinition,
3677
3804
  menuDefinition,
@@ -48,6 +48,7 @@ var Switch = class extends require_delegates_aria.DelegatesAria(require_form_ass
48
48
  this.proxy = document.createElement("input");
49
49
  this.initialValue = "on";
50
50
  this.keypressHandler = (e) => {
51
+ if (this.readOnly || this.disabled) return;
51
52
  if (e.key === _microsoft_fast_web_utilities.keySpace || e.key === _microsoft_fast_web_utilities.keyEnter) this.checked = !this.checked;
52
53
  };
53
54
  this.clickHandler = () => {
@@ -48,6 +48,7 @@ var Switch = class extends DelegatesAria(CheckableFormAssociated(VividElement))
48
48
  this.proxy = document.createElement("input");
49
49
  this.initialValue = "on";
50
50
  this.keypressHandler = (e) => {
51
+ if (this.readOnly || this.disabled) return;
51
52
  if (e.key === keySpace || e.key === keyEnter) this.checked = !this.checked;
52
53
  };
53
54
  this.clickHandler = () => {
@@ -79,7 +79,8 @@ var TabTemplate = (context) => {
79
79
  <div
80
80
  class="${(x) => (0, _microsoft_fast_web_utilities.classNames)("base", `connotation-${x.active ? tabConnotation.parse(x.connotation) : "accent"}`, "appearance-ghost", "with-idle", "with-hover", "with-active", "with-disabled", [`shape-${x.shape}`, Boolean(x.shape)], ["disabled", x.disabled], ["selected", x.active], ["icon-trailing", x.iconTrailing], ["removable", x.removable])}"
81
81
  >
82
- ${(x) => affixIconTemplate(x.icon, require_affix.IconWrapper.Slot)} ${(x) => x.label}
82
+ ${(x) => affixIconTemplate(x.icon, require_affix.IconWrapper.Slot)}
83
+ ${(x) => x.label ? _microsoft_fast_element.html`<span>${x.label}</span>` : null}
83
84
  ${(x) => x.removable ? renderDismissButton(context) : null}
84
85
  </div>
85
86
  </template>
@@ -79,7 +79,8 @@ var TabTemplate = (context) => {
79
79
  <div
80
80
  class="${(x) => classNames("base", `connotation-${x.active ? tabConnotation.parse(x.connotation) : "accent"}`, "appearance-ghost", "with-idle", "with-hover", "with-active", "with-disabled", [`shape-${x.shape}`, Boolean(x.shape)], ["disabled", x.disabled], ["selected", x.active], ["icon-trailing", x.iconTrailing], ["removable", x.removable])}"
81
81
  >
82
- ${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)} ${(x) => x.label}
82
+ ${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)}
83
+ ${(x) => x.label ? html`<span>${x.label}</span>` : null}
83
84
  ${(x) => x.removable ? renderDismissButton(context) : null}
84
85
  </div>
85
86
  </template>
@@ -7,7 +7,7 @@ const require_definition$1 = require("./definition74.cjs");
7
7
  let _microsoft_fast_element = require("@microsoft/fast-element");
8
8
  let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
9
9
  //#region src/lib/tabs/tabs.scss?inline
10
- var tabs_default = ":host{display:block}.base{--_tabs-tablist-gutter:8px;--_tabs-active-indicator-stroke-width:2px;box-sizing:border-box;display:grid}.base.orientation-vertical{block-size:inherit;grid-template-rows:1fr;grid-template-columns:auto 1fr;overflow:hidden}.base:not(.orientation-vertical){block-size:var(--tabs-block-size,auto);grid-template-rows:auto 1fr;grid-template-columns:1fr;max-block-size:100%}.base.layout-stretch .scroll-shadow{flex:1}.base:not(.orientation-vertical) .scroll-shadow{isolation:isolate;position:relative;overflow:hidden}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.start-scroll:after,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{content:\"\";opacity:0;inline-size:10px;transition:opacity .1s;position:absolute;inset-block:0}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before{z-index:1;box-shadow:inset 7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-start:0}.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{box-shadow:inset -7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-end:0}.tabs{display:flex;overflow:hidden}.base.orientation-vertical .tabs{box-shadow:1px 0 0 0 var(--vvd-color-neutral-300);flex-direction:column}.base.orientation-horizontal .tabs{border-bottom:1px solid var(--vvd-color-neutral-300);flex-direction:row}.tablist{box-sizing:border-box;color:var(--_appearance-color-text);display:grid;position:relative;overflow:hidden}.base.layout-stretch .tablist{--_tab-justify-content:center;--_tabs-tablist-column:1fr}.tablist .base:not(.layout-stretch){--_tabs-tablist-column:auto}.base.orientation-vertical .tablist{padding:var(--_tabs-tablist-gutter);place-self:flex-start end;row-gap:var(--_tabs-tablist-gutter);grid-row:1/2;grid-template-rows:auto;grid-template-columns:auto 1fr;block-size:fit-content;min-block-size:100%;inline-size:100%}.base:not(.orientation-vertical) .tablist{justify-content:flex-start;column-gap:var(--_tabs-tablist-gutter);grid-auto-columns:var(--_tabs-tablist-column);inline-size:fit-content;min-inline-size:100%;padding-inline:var(--_tabs-tablist-gutter);grid-template-rows:auto auto;grid-auto-flow:column}.base.has-action-items.orientation-vertical .tablist{padding-block-end:0}.base.has-action-items:not(.orientation-vertical) .tablist{padding-inline-end:0}.tablist-wrapper{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.tablist-wrapper ::-webkit-scrollbar{width:4px}.tablist-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.tablist-wrapper ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base:not(.orientation-vertical) .tablist-wrapper{align-self:end;inline-size:100%;overflow:auto hidden}.base.orientation-vertical .tablist-wrapper{block-size:100%;overflow:hidden auto}.tablist-wrapper::-webkit-scrollbar{display:none}slot[name=action-items]{display:flex}.base.has-action-items.orientation-horizontal slot[name=action-items]{margin-inline:var(--_tabs-tablist-gutter);align-items:center}.base.has-action-items.orientation-vertical slot[name=action-items]{margin-block:var(--_tabs-tablist-gutter)}.tabpanel{box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0}.base.scroll .tabpanel{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin;overflow-y:auto}.base.scroll .tabpanel ::-webkit-scrollbar{width:4px}.base.scroll .tabpanel ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base.scroll .tabpanel ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base.gutters-small .tabpanel{padding:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)))}.active-indicator{background:currentColor;margin-inline-start:calc(var(--_tabs-tablist-gutter) * -1)}.base.orientation-vertical .active-indicator{block-size:80%;inline-size:var(--_tabs-active-indicator-stroke-width);border-radius:2px;grid-area:1/1;align-self:center}.base:not(.orientation-vertical) .active-indicator{z-index:1;block-size:var(--_tabs-active-indicator-stroke-width);inline-size:calc(var(--_tabs-active-tab-inline-size));border-radius:2px;grid-area:2/1;position:absolute;inset-block-end:0;inset-inline-start:8px}.activeIndicatorTransition{transition:transform .2s ease-out,inline-size .2s ease-out}@media (prefers-reduced-motion:reduce){.activeIndicatorTransition{transition-duration:.01ms}}";
10
+ var tabs_default = ":host{display:block}.base{--_tabs-tablist-gutter:8px;--_tabs-active-indicator-stroke-width:2px;box-sizing:border-box;display:grid}.base.orientation-vertical{block-size:inherit;grid-template-rows:minmax(0,1fr);grid-template-columns:auto minmax(0,1fr);overflow:hidden}.base:not(.orientation-vertical){block-size:var(--tabs-block-size,auto);grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);max-block-size:100%}.base.layout-stretch .scroll-shadow{flex:1}.base:not(.orientation-vertical) .scroll-shadow{isolation:isolate;position:relative;overflow:hidden}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.start-scroll:after,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{content:\"\";opacity:0;inline-size:10px;transition:opacity .1s;position:absolute;inset-block:0}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before{z-index:1;box-shadow:inset 7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-start:0}.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{box-shadow:inset -7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-end:0}.tabs{display:flex;overflow:hidden}.base.orientation-vertical .tabs{box-shadow:1px 0 0 0 var(--vvd-color-neutral-300);flex-direction:column}.base.orientation-horizontal .tabs{border-bottom:1px solid var(--vvd-color-neutral-300);flex-direction:row}.tablist{box-sizing:border-box;color:var(--_appearance-color-text);display:grid;position:relative;overflow:hidden}.base.layout-stretch .tablist{--_tab-justify-content:center;--_tabs-tablist-column:1fr}.tablist .base:not(.layout-stretch){--_tabs-tablist-column:auto}.base.orientation-vertical .tablist{padding:var(--_tabs-tablist-gutter);place-self:flex-start end;row-gap:var(--_tabs-tablist-gutter);grid-row:1/2;grid-template-rows:auto;grid-template-columns:auto 1fr;block-size:fit-content;min-block-size:100%;inline-size:100%}.base:not(.orientation-vertical) .tablist{justify-content:flex-start;column-gap:var(--_tabs-tablist-gutter);grid-auto-columns:var(--_tabs-tablist-column);inline-size:fit-content;min-inline-size:100%;padding-inline:var(--_tabs-tablist-gutter);grid-template-rows:auto auto;grid-auto-flow:column}.base.has-action-items.orientation-vertical .tablist{padding-block-end:0}.base.has-action-items:not(.orientation-vertical) .tablist{padding-inline-end:0}.tablist-wrapper{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.tablist-wrapper ::-webkit-scrollbar{width:4px}.tablist-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.tablist-wrapper ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base:not(.orientation-vertical) .tablist-wrapper{align-self:end;inline-size:100%;overflow:auto hidden}.base.orientation-vertical .tablist-wrapper{block-size:100%;overflow:hidden auto}.tablist-wrapper::-webkit-scrollbar{display:none}slot[name=action-items]{display:flex}.base.has-action-items.orientation-horizontal slot[name=action-items]{margin-inline:var(--_tabs-tablist-gutter);align-items:center}.base.has-action-items.orientation-vertical slot[name=action-items]{margin-block:var(--_tabs-tablist-gutter)}.tabpanel{box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0}.base.scroll .tabpanel{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin;overflow-y:auto}.base.scroll .tabpanel ::-webkit-scrollbar{width:4px}.base.scroll .tabpanel ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base.scroll .tabpanel ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base.gutters-small .tabpanel{padding:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)))}.active-indicator{background:currentColor;margin-inline-start:calc(var(--_tabs-tablist-gutter) * -1)}.base.orientation-vertical .active-indicator{block-size:80%;inline-size:var(--_tabs-active-indicator-stroke-width);border-radius:2px;grid-area:1/1;align-self:center}.base:not(.orientation-vertical) .active-indicator{z-index:1;block-size:var(--_tabs-active-indicator-stroke-width);inline-size:calc(var(--_tabs-active-tab-inline-size));border-radius:2px;grid-area:2/1;position:absolute;inset-block-end:0;inset-inline-start:8px}.activeIndicatorTransition{transition:transform .2s ease-out,inline-size .2s ease-out}@media (prefers-reduced-motion:reduce){.activeIndicatorTransition{transition-duration:.01ms}}";
11
11
  //#endregion
12
12
  //#region src/lib/tabs/tabs.ts
13
13
  var ACTIVE_TAB_WIDTH = "--_tabs-active-tab-inline-size";
@@ -7,7 +7,7 @@ import { n as tabDefinition, r as Tab } from "./definition74.js";
7
7
  import { Updates, attr, html, observable, ref, slotted } from "@microsoft/fast-element";
8
8
  import { classNames, keyArrowDown, keyArrowUp, keyEnd, keyHome, limit, uniqueId } from "@microsoft/fast-web-utilities";
9
9
  //#region src/lib/tabs/tabs.scss?inline
10
- var tabs_default = ":host{display:block}.base{--_tabs-tablist-gutter:8px;--_tabs-active-indicator-stroke-width:2px;box-sizing:border-box;display:grid}.base.orientation-vertical{block-size:inherit;grid-template-rows:1fr;grid-template-columns:auto 1fr;overflow:hidden}.base:not(.orientation-vertical){block-size:var(--tabs-block-size,auto);grid-template-rows:auto 1fr;grid-template-columns:1fr;max-block-size:100%}.base.layout-stretch .scroll-shadow{flex:1}.base:not(.orientation-vertical) .scroll-shadow{isolation:isolate;position:relative;overflow:hidden}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.start-scroll:after,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{content:\"\";opacity:0;inline-size:10px;transition:opacity .1s;position:absolute;inset-block:0}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before{z-index:1;box-shadow:inset 7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-start:0}.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{box-shadow:inset -7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-end:0}.tabs{display:flex;overflow:hidden}.base.orientation-vertical .tabs{box-shadow:1px 0 0 0 var(--vvd-color-neutral-300);flex-direction:column}.base.orientation-horizontal .tabs{border-bottom:1px solid var(--vvd-color-neutral-300);flex-direction:row}.tablist{box-sizing:border-box;color:var(--_appearance-color-text);display:grid;position:relative;overflow:hidden}.base.layout-stretch .tablist{--_tab-justify-content:center;--_tabs-tablist-column:1fr}.tablist .base:not(.layout-stretch){--_tabs-tablist-column:auto}.base.orientation-vertical .tablist{padding:var(--_tabs-tablist-gutter);place-self:flex-start end;row-gap:var(--_tabs-tablist-gutter);grid-row:1/2;grid-template-rows:auto;grid-template-columns:auto 1fr;block-size:fit-content;min-block-size:100%;inline-size:100%}.base:not(.orientation-vertical) .tablist{justify-content:flex-start;column-gap:var(--_tabs-tablist-gutter);grid-auto-columns:var(--_tabs-tablist-column);inline-size:fit-content;min-inline-size:100%;padding-inline:var(--_tabs-tablist-gutter);grid-template-rows:auto auto;grid-auto-flow:column}.base.has-action-items.orientation-vertical .tablist{padding-block-end:0}.base.has-action-items:not(.orientation-vertical) .tablist{padding-inline-end:0}.tablist-wrapper{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.tablist-wrapper ::-webkit-scrollbar{width:4px}.tablist-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.tablist-wrapper ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base:not(.orientation-vertical) .tablist-wrapper{align-self:end;inline-size:100%;overflow:auto hidden}.base.orientation-vertical .tablist-wrapper{block-size:100%;overflow:hidden auto}.tablist-wrapper::-webkit-scrollbar{display:none}slot[name=action-items]{display:flex}.base.has-action-items.orientation-horizontal slot[name=action-items]{margin-inline:var(--_tabs-tablist-gutter);align-items:center}.base.has-action-items.orientation-vertical slot[name=action-items]{margin-block:var(--_tabs-tablist-gutter)}.tabpanel{box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0}.base.scroll .tabpanel{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin;overflow-y:auto}.base.scroll .tabpanel ::-webkit-scrollbar{width:4px}.base.scroll .tabpanel ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base.scroll .tabpanel ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base.gutters-small .tabpanel{padding:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)))}.active-indicator{background:currentColor;margin-inline-start:calc(var(--_tabs-tablist-gutter) * -1)}.base.orientation-vertical .active-indicator{block-size:80%;inline-size:var(--_tabs-active-indicator-stroke-width);border-radius:2px;grid-area:1/1;align-self:center}.base:not(.orientation-vertical) .active-indicator{z-index:1;block-size:var(--_tabs-active-indicator-stroke-width);inline-size:calc(var(--_tabs-active-tab-inline-size));border-radius:2px;grid-area:2/1;position:absolute;inset-block-end:0;inset-inline-start:8px}.activeIndicatorTransition{transition:transform .2s ease-out,inline-size .2s ease-out}@media (prefers-reduced-motion:reduce){.activeIndicatorTransition{transition-duration:.01ms}}";
10
+ var tabs_default = ":host{display:block}.base{--_tabs-tablist-gutter:8px;--_tabs-active-indicator-stroke-width:2px;box-sizing:border-box;display:grid}.base.orientation-vertical{block-size:inherit;grid-template-rows:minmax(0,1fr);grid-template-columns:auto minmax(0,1fr);overflow:hidden}.base:not(.orientation-vertical){block-size:var(--tabs-block-size,auto);grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);max-block-size:100%}.base.layout-stretch .scroll-shadow{flex:1}.base:not(.orientation-vertical) .scroll-shadow{isolation:isolate;position:relative;overflow:hidden}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.start-scroll:after,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:before,.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{content:\"\";opacity:0;inline-size:10px;transition:opacity .1s;position:absolute;inset-block:0}.base:not(.orientation-vertical) .scroll-shadow.start-scroll:before{z-index:1;box-shadow:inset 7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-start:0}.base:not(.orientation-vertical) .scroll-shadow.end-scroll:after{box-shadow:inset -7px 1px 5px -3px var(--vvd-color-neutral-950);opacity:.2;inset-inline-end:0}.tabs{display:flex;overflow:hidden}.base.orientation-vertical .tabs{box-shadow:1px 0 0 0 var(--vvd-color-neutral-300);flex-direction:column}.base.orientation-horizontal .tabs{border-bottom:1px solid var(--vvd-color-neutral-300);flex-direction:row}.tablist{box-sizing:border-box;color:var(--_appearance-color-text);display:grid;position:relative;overflow:hidden}.base.layout-stretch .tablist{--_tab-justify-content:center;--_tabs-tablist-column:1fr}.tablist .base:not(.layout-stretch){--_tabs-tablist-column:auto}.base.orientation-vertical .tablist{padding:var(--_tabs-tablist-gutter);place-self:flex-start end;row-gap:var(--_tabs-tablist-gutter);grid-row:1/2;grid-template-rows:auto;grid-template-columns:auto 1fr;block-size:fit-content;min-block-size:100%;inline-size:100%}.base:not(.orientation-vertical) .tablist{justify-content:flex-start;column-gap:var(--_tabs-tablist-gutter);grid-auto-columns:var(--_tabs-tablist-column);inline-size:fit-content;min-inline-size:100%;padding-inline:var(--_tabs-tablist-gutter);grid-template-rows:auto auto;grid-auto-flow:column}.base.has-action-items.orientation-vertical .tablist{padding-block-end:0}.base.has-action-items:not(.orientation-vertical) .tablist{padding-inline-end:0}.tablist-wrapper{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.tablist-wrapper ::-webkit-scrollbar{width:4px}.tablist-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.tablist-wrapper ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base:not(.orientation-vertical) .tablist-wrapper{align-self:end;inline-size:100%;overflow:auto hidden}.base.orientation-vertical .tablist-wrapper{block-size:100%;overflow:hidden auto}.tablist-wrapper::-webkit-scrollbar{display:none}slot[name=action-items]{display:flex}.base.has-action-items.orientation-horizontal slot[name=action-items]{margin-inline:var(--_tabs-tablist-gutter);align-items:center}.base.has-action-items.orientation-vertical slot[name=action-items]{margin-block:var(--_tabs-tablist-gutter)}.tabpanel{box-sizing:border-box;block-size:100%;min-block-size:0;min-inline-size:0}.base.scroll .tabpanel{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin;overflow-y:auto}.base.scroll .tabpanel ::-webkit-scrollbar{width:4px}.base.scroll .tabpanel ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base.scroll .tabpanel ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base.gutters-small .tabpanel{padding:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) - calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)))}.active-indicator{background:currentColor;margin-inline-start:calc(var(--_tabs-tablist-gutter) * -1)}.base.orientation-vertical .active-indicator{block-size:80%;inline-size:var(--_tabs-active-indicator-stroke-width);border-radius:2px;grid-area:1/1;align-self:center}.base:not(.orientation-vertical) .active-indicator{z-index:1;block-size:var(--_tabs-active-indicator-stroke-width);inline-size:calc(var(--_tabs-active-tab-inline-size));border-radius:2px;grid-area:2/1;position:absolute;inset-block-end:0;inset-inline-start:8px}.activeIndicatorTransition{transition:transform .2s ease-out,inline-size .2s ease-out}@media (prefers-reduced-motion:reduce){.activeIndicatorTransition{transition-duration:.01ms}}";
11
11
  //#endregion
12
12
  //#region src/lib/tabs/tabs.ts
13
13
  var ACTIVE_TAB_WIDTH = "--_tabs-active-tab-inline-size";
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/video.js@8.24.0/node_modules/video.js/dist/lang/en.json
1
+ //#region ../../node_modules/.pnpm/video.js@8.24.1/node_modules/video.js/dist/lang/en.json
2
2
  var en_exports = /* @__PURE__ */ require("./rolldown-runtime.cjs").__exportAll({
3
3
  Background: () => Background,
4
4
  Black: () => Black,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime.js";
2
- //#region ../../node_modules/.pnpm/video.js@8.24.0/node_modules/video.js/dist/lang/en.json
2
+ //#region ../../node_modules/.pnpm/video.js@8.24.1/node_modules/video.js/dist/lang/en.json
3
3
  var en_exports = /* @__PURE__ */ __exportAll({
4
4
  Background: () => Background,
5
5
  Black: () => Black,
@@ -15,7 +15,7 @@ var PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
15
15
  //#region ../icons/dist/index.mjs
16
16
  var e = {
17
17
  name: "@vonage/vivid-icons",
18
- version: "4.12.0",
18
+ version: "4.13.0",
19
19
  type: "module",
20
20
  exports: {
21
21
  ".": {
@@ -15,7 +15,7 @@ var PLACEHOLDER_ICON = `<svg width="80%" height="80%" viewBox="0 0 64 64">
15
15
  //#region ../icons/dist/index.mjs
16
16
  var e = {
17
17
  name: "@vonage/vivid-icons",
18
- version: "4.12.0",
18
+ version: "4.13.0",
19
19
  type: "module",
20
20
  exports: {
21
21
  ".": {
@@ -1,5 +1,6 @@
1
1
  const require_vivid_element = require("./vivid-element.cjs");
2
2
  const require_decorate = require("./decorate.cjs");
3
+ const require_component_enum = require("./component-enum.cjs");
3
4
  const require_form_associated = require("./form-associated.cjs");
4
5
  const require_localized = require("./localized.cjs");
5
6
  const require_definition = require("./definition6.cjs");
@@ -14,9 +15,10 @@ const require_trapped_focus = require("./trapped-focus.cjs");
14
15
  let _microsoft_fast_element = require("@microsoft/fast-element");
15
16
  let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
16
17
  //#region src/shared/picker-field/picker-field.scss?inline
17
- var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;display:inline-block}.control{inline-size:100%}.dialog{flex-direction:column;display:inline-flex}.dialog--padded{gap:12px;padding:12px}.dialog .footer{justify-content:flex-end;align-items:center;gap:8px;padding:8px;display:flex}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";
18
+ var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;display:inline-block}.control{inline-size:100%}.picker-button-icon[disabled],.picker-button-icon[readonly]{--_picker-field-disabled-icon-color:var(--vvd-color-neutral-600)}.dialog{flex-direction:column;display:inline-flex}.dialog--padded{gap:12px;padding:12px}.dialog .footer{justify-content:flex-end;align-items:center;gap:8px;padding:8px;display:flex}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";
18
19
  //#endregion
19
20
  //#region src/shared/picker-field/picker-field.ts
21
+ var pickerFieldAppearance = require_component_enum.componentEnum(["fieldset", "ghost"], "fieldset");
20
22
  /**
21
23
  * Base class for picker fields. Picker fields consist of a text field with a button that opens a popup that allows
22
24
  * picking values.
@@ -138,6 +140,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
138
140
  attribute: "readonly",
139
141
  mode: "boolean"
140
142
  })], PickerField.prototype, "readOnly", void 0);
143
+ require_decorate.__decorate([_microsoft_fast_element.attr], PickerField.prototype, "appearance", void 0);
141
144
  require_decorate.__decorate([_microsoft_fast_element.observable], PickerField.prototype, "_popupOpen", void 0);
142
145
  require_decorate.__decorate([_microsoft_fast_element.observable], PickerField.prototype, "_presentationValue", void 0);
143
146
  //#endregion
@@ -151,6 +154,7 @@ var PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, padde
151
154
  <${textFieldTag} id='text-field'
152
155
  ${(0, _microsoft_fast_element.ref)("_textFieldEl")}
153
156
  class='control'
157
+ appearance='${(x) => pickerFieldAppearance.parse(x.appearance)}'
154
158
  label='${(x) => x.label}'
155
159
  helper-text='${(x) => x.helperText}'
156
160
  error-text='${(x) => x.errorValidationMessage}'
@@ -175,6 +179,7 @@ var PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, padde
175
179
  ></slot>
176
180
  <${buttonTag}
177
181
  id='picker-button'
182
+ class="picker-button-icon"
178
183
  ${(0, _microsoft_fast_element.ref)("_pickerButtonEl")}
179
184
  slot='action-items'
180
185
  size='condensed'
@@ -1,5 +1,6 @@
1
1
  import { t as VividElement } from "./vivid-element.js";
2
2
  import { t as __decorate } from "./decorate.js";
3
+ import { t as componentEnum } from "./component-enum.js";
3
4
  import { n as FormAssociated } from "./form-associated.js";
4
5
  import { t as Localized } from "./localized.js";
5
6
  import { i as Button } from "./definition6.js";
@@ -14,9 +15,10 @@ import { t as TrappedFocus } from "./trapped-focus.js";
14
15
  import { ExecutionContext, Observable, attr, html, observable, ref, slotted } from "@microsoft/fast-element";
15
16
  import { classNames } from "@microsoft/fast-web-utilities";
16
17
  //#region src/shared/picker-field/picker-field.scss?inline
17
- var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;display:inline-block}.control{inline-size:100%}.dialog{flex-direction:column;display:inline-flex}.dialog--padded{gap:12px;padding:12px}.dialog .footer{justify-content:flex-end;align-items:center;gap:8px;padding:8px;display:flex}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";
18
+ var picker_field_default = ":host{display:inline-block}.base{inline-size:100%;display:inline-block}.control{inline-size:100%}.picker-button-icon[disabled],.picker-button-icon[readonly]{--_picker-field-disabled-icon-color:var(--vvd-color-neutral-600)}.dialog{flex-direction:column;display:inline-flex}.dialog--padded{gap:12px;padding:12px}.dialog .footer{justify-content:flex-end;align-items:center;gap:8px;padding:8px;display:flex}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";
18
19
  //#endregion
19
20
  //#region src/shared/picker-field/picker-field.ts
21
+ var pickerFieldAppearance = componentEnum(["fieldset", "ghost"], "fieldset");
20
22
  /**
21
23
  * Base class for picker fields. Picker fields consist of a text field with a button that opens a popup that allows
22
24
  * picking values.
@@ -138,6 +140,7 @@ __decorate([attr({
138
140
  attribute: "readonly",
139
141
  mode: "boolean"
140
142
  })], PickerField.prototype, "readOnly", void 0);
143
+ __decorate([attr], PickerField.prototype, "appearance", void 0);
141
144
  __decorate([observable], PickerField.prototype, "_popupOpen", void 0);
142
145
  __decorate([observable], PickerField.prototype, "_presentationValue", void 0);
143
146
  //#endregion
@@ -151,6 +154,7 @@ var PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, padde
151
154
  <${textFieldTag} id='text-field'
152
155
  ${ref("_textFieldEl")}
153
156
  class='control'
157
+ appearance='${(x) => pickerFieldAppearance.parse(x.appearance)}'
154
158
  label='${(x) => x.label}'
155
159
  helper-text='${(x) => x.helperText}'
156
160
  error-text='${(x) => x.errorValidationMessage}'
@@ -175,6 +179,7 @@ var PickerFieldTemplate = (context, popupContentTemplate, { withSeparator, padde
175
179
  ></slot>
176
180
  <${buttonTag}
177
181
  id='picker-button'
182
+ class="picker-button-icon"
178
183
  ${ref("_pickerButtonEl")}
179
184
  slot='action-items'
180
185
  size='condensed'
@@ -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.28.1";
349
+ this.VIVID_VERSION = "5.30.0";
350
350
  }
351
351
  /**
352
352
  * Add data-vvd-component attribute with component name globally,
@@ -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.28.1";
349
+ this.VIVID_VERSION = "5.30.0";
350
350
  }
351
351
  /**
352
352
  * Add data-vvd-component attribute with component name globally,
@@ -1,2 +1 @@
1
- import { n as videoPlayerDefinition, r as VideoPlayer, t as registerVideoPlayer } from "../unbundled/definition83.js";
2
- export { VideoPlayer as VwcVideoPlayerElement, registerVideoPlayer, videoPlayerDefinition };
1
+ export { r as VwcVideoPlayerElement, t as registerVideoPlayer, n as videoPlayerDefinition } from "../unbundled/definition83.js";