@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
@@ -24,15 +24,22 @@ import { t as N } from "../bundled/mixins.js";
24
24
  import { t as P } from "../bundled/definition20.js";
25
25
  import { t as F } from "../bundled/divider.js";
26
26
  //#region src/lib/number-field/number-field.scss?inline
27
- var I = ".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}.base{--_text-field-gutter-end:70px}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}", L = C(["fieldset", "ghost"], "fieldset"), R = {
27
+ var I = ".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}.base{--_text-field-gutter-end:70px}.base.no-steppers{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5)}.base.no-steppers.size-condensed{--_text-field-gutter-end:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control::-webkit-outer-spin-button,.control::-webkit-inner-spin-button{appearance:none}.control-buttons{z-index:1;display:flex;position:absolute;right:3px}.control-buttons[hidden]{display:none}.readonly .control-buttons,.disabled .control-buttons{pointer-events:none}.control-buttons .divider{margin-block:8px}.control-buttons>*{flex-shrink:0}", L = C(["fieldset", "ghost"], "fieldset"), R = {
28
28
  up: 1,
29
29
  down: -1
30
- };
31
- function z(e, t) {
32
- let n = parseFloat(e.value), r = isNaN(n) ? e.min > 0 ? e.min : e.max < 0 ? e.max : e.min ? 0 : t * e.step : n + t * e.step;
33
- e.value = Number(r.toFixed(12)).toString(), e._updatedValueAnnouncement = e.locale.numberField.updatedValueAnnouncement(e._presentationValue);
30
+ }, z = 1;
31
+ function B(e, t) {
32
+ let n = e._numericStep, r = parseFloat(e.value), i = isNaN(r) ? e.min > 0 ? e.min : e.max < 0 ? e.max : e.min ? 0 : t * n : r + t * n;
33
+ e.value = Number(i.toFixed(12)).toString(), e._updatedValueAnnouncement = e.locale.numberField.updatedValueAnnouncement(e._presentationValue);
34
34
  }
35
- var B = (e) => {
35
+ var V = {
36
+ toView(e) {
37
+ return e === "any" ? "any" : i.toView(e);
38
+ },
39
+ fromView(e) {
40
+ return typeof e == "string" && e.trim().toLowerCase() === "any" ? "any" : i.fromView(e);
41
+ }
42
+ }, H = (e) => {
36
43
  let t = e.source;
37
44
  return {
38
45
  invalidCharacters: RegExp(`[^0-9\\-+e${t}]`, "g"),
@@ -40,12 +47,18 @@ var B = (e) => {
40
47
  trailingDecimalSeparator: RegExp(`${t}$`),
41
48
  decimalSeparator: e
42
49
  };
43
- }, V = B(/\./), H = B(/,/), U = /^-?((\d*\.\d+)|(\d+))$/, W = class extends A(N(j(M(k(b(e(S(w(s))))))))) {
50
+ }, U = H(/\./), W = H(/,/), G = /^-?((\d*\.\d+)|(\d+))$/, K = class extends A(N(j(M(k(b(e(S(w(s))))))))) {
44
51
  constructor(...e) {
45
- super(...e), this.proxy = document.createElement("input"), this.readOnly = !1, this.autofocus = !1, this.step = 1, this.isUserInput = !1, this._presentationValue = "", this._updatedValueAnnouncement = "", this.incrementButtonAriaLabel = null, this.decrementButtonAriaLabel = null;
52
+ super(...e), this.proxy = document.createElement("input"), this.readOnly = !1, this.autofocus = !1, this.step = 1, this.noSteppers = !1, this.isUserInput = !1, this._presentationValue = "", this._updatedValueAnnouncement = "", this.incrementButtonAriaLabel = null, this.decrementButtonAriaLabel = null;
46
53
  }
47
54
  stepChanged(e, t) {
48
- this.proxy.setAttribute("step", Number.isFinite(t) ? t.toString() : "");
55
+ this.proxy.setAttribute("step", t === "any" ? "any" : Number.isFinite(t) ? t.toString() : ""), this.validate();
56
+ }
57
+ get _hasSteppers() {
58
+ return !this.noSteppers && this.step !== "any";
59
+ }
60
+ get _numericStep() {
61
+ return this.step === "any" ? z : this.step;
49
62
  }
50
63
  maxChanged(e, t) {
51
64
  this.max = Math.max(t, this.min ?? t), this.proxy.max = this.max.toString(), this.validate();
@@ -60,10 +73,10 @@ var B = (e) => {
60
73
  this.value = e.toString();
61
74
  }
62
75
  valueChanged(e, t) {
63
- this.value = U.test(t) ? t : "", t === this.value && (this.control && !this.isUserInput && (this._presentationValue = this.#e(this.value)), super.valueChanged(e, this.value), e !== void 0 && !this.isUserInput && (this.$emit("input"), this.$emit("change")));
76
+ this.value = G.test(t) ? t : "", t === this.value && (this.control && !this.isUserInput && (this._presentationValue = this.#e(this.value)), super.valueChanged(e, this.value), e !== void 0 && !this.isUserInput && (this.$emit("input"), this.$emit("change")));
64
77
  }
65
78
  get _numberPatterns() {
66
- return this.locale.common.useCommaAsDecimalSeparator ? H : V;
79
+ return this.locale.common.useCommaAsDecimalSeparator ? W : U;
67
80
  }
68
81
  #e(e) {
69
82
  return e.replace(".", this.locale.common.useCommaAsDecimalSeparator ? "," : ".");
@@ -73,16 +86,16 @@ var B = (e) => {
73
86
  }
74
87
  #n(e) {
75
88
  let t = e.replace(this._numberPatterns.trailingDecimalSeparator, "").replace(this._numberPatterns.decimalSeparator, ".");
76
- return U.test(t) ? t : "";
89
+ return G.test(t) ? t : "";
77
90
  }
78
91
  validate() {
79
92
  super.validate(this.control);
80
93
  }
81
94
  stepUp() {
82
- z(this, R.up);
95
+ B(this, R.up);
83
96
  }
84
97
  stepDown() {
85
- z(this, R.down);
98
+ B(this, R.down);
86
99
  }
87
100
  connectedCallback() {
88
101
  super.connectedCallback(), this.proxy.setAttribute("type", "number"), this.validate(), this._presentationValue = this.#e(this.value), this.autofocus && n.enqueue(() => {
@@ -109,52 +122,57 @@ var B = (e) => {
109
122
  h([a({
110
123
  attribute: "readonly",
111
124
  mode: "boolean"
112
- })], W.prototype, "readOnly", void 0), h([a({ mode: "boolean" })], W.prototype, "autofocus", void 0), h([a], W.prototype, "placeholder", void 0), h([a], W.prototype, "list", void 0), h([a({ converter: i })], W.prototype, "maxlength", void 0), h([a({ converter: i })], W.prototype, "minlength", void 0), h([a({ converter: i })], W.prototype, "size", void 0), h([a()], W.prototype, "scale", void 0), h([a({ converter: i })], W.prototype, "step", void 0), h([a({ converter: i })], W.prototype, "max", void 0), h([a({ converter: i })], W.prototype, "min", void 0), h([t], W.prototype, "defaultSlottedNodes", void 0), h([t], W.prototype, "_presentationValue", void 0), h([t], W.prototype, "_updatedValueAnnouncement", void 0), h([a({ attribute: "increment-button-aria-label" })], W.prototype, "incrementButtonAriaLabel", void 0), h([a({ attribute: "decrement-button-aria-label" })], W.prototype, "decrementButtonAriaLabel", void 0), h([a], W.prototype, "appearance", void 0), h([a], W.prototype, "shape", void 0), h([a], W.prototype, "autoComplete", void 0);
125
+ })], K.prototype, "readOnly", void 0), h([a({ mode: "boolean" })], K.prototype, "autofocus", void 0), h([a], K.prototype, "placeholder", void 0), h([a], K.prototype, "list", void 0), h([a({ converter: i })], K.prototype, "maxlength", void 0), h([a({ converter: i })], K.prototype, "minlength", void 0), h([a({ converter: i })], K.prototype, "size", void 0), h([a()], K.prototype, "scale", void 0), h([a({ converter: V })], K.prototype, "step", void 0), h([a({
126
+ attribute: "no-steppers",
127
+ mode: "boolean"
128
+ })], K.prototype, "noSteppers", void 0), h([a({ converter: i })], K.prototype, "max", void 0), h([a({ converter: i })], K.prototype, "min", void 0), h([t], K.prototype, "defaultSlottedNodes", void 0), h([t], K.prototype, "_presentationValue", void 0), h([t], K.prototype, "_updatedValueAnnouncement", void 0), h([a({ attribute: "increment-button-aria-label" })], K.prototype, "incrementButtonAriaLabel", void 0), h([a({ attribute: "decrement-button-aria-label" })], K.prototype, "decrementButtonAriaLabel", void 0), h([a], K.prototype, "appearance", void 0), h([a], K.prototype, "shape", void 0), h([a], K.prototype, "autoComplete", void 0);
113
129
  //#endregion
114
130
  //#region src/lib/number-field/number-field.template.ts
115
- function G() {
131
+ function q() {
116
132
  return o` <label for="control" class="label">
117
133
  ${(e) => e.label}
118
134
  </label>`;
119
135
  }
120
- function K(e) {
136
+ function J(e) {
121
137
  return e.shape === m.Pill ? m.Pill : null;
122
138
  }
123
- function q(e) {
139
+ function Y(e) {
124
140
  return e.disabled || e.readOnly ? "-1" : null;
125
141
  }
126
- function J(e) {
142
+ function X(e) {
127
143
  let t = e.tagFor(T), n = e.tagFor(F);
128
144
  return o`
129
- <div class="control-buttons" ?inert="${(e) => e.disabled || e.readOnly}">
145
+ <div class="control-buttons"
146
+ ?hidden="${(e) => !e._hasSteppers}"
147
+ ?inert="${(e) => e.disabled || e.readOnly}">
130
148
  <${t} id="subtract" icon="minus-line"
131
149
  ?disabled="${(e) => e.disabled || e.readOnly}"
132
- aria-label=${(e) => e.decrementButtonAriaLabel || e.locale.numberField.decrementButtonLabel(e.step)}
133
- shape="${K}"
150
+ aria-label=${(e) => e.decrementButtonAriaLabel || e.locale.numberField.decrementButtonLabel(e._numericStep)}
151
+ shape="${J}"
134
152
  type="button"
135
153
  size="${(e) => e.scale === "condensed" ? "super-condensed" : "condensed"}"
136
- tabindex="${q}"
154
+ tabindex="${Y}"
137
155
  @click="${(e) => e.stepDown()}"></${t}>
138
156
  <${n} class="divider" orientation="vertical"></${n}>
139
157
  <${t} id="add" icon="plus-line"
140
158
  ?disabled="${(e) => e.disabled || e.readOnly}"
141
- aria-label=${(e) => e.incrementButtonAriaLabel || e.locale.numberField.incrementButtonLabel(e.step)}
142
- shape="${K}"
159
+ aria-label=${(e) => e.incrementButtonAriaLabel || e.locale.numberField.incrementButtonLabel(e._numericStep)}
160
+ shape="${J}"
143
161
  type="button"
144
162
  size="${(e) => e.scale === "condensed" ? "super-condensed" : "condensed"}"
145
- tabindex="${q}"
163
+ tabindex="${Y}"
146
164
  @click="${(e) => e.stepUp()}"></${t}>
147
165
  </div>
148
166
  `;
149
167
  }
150
168
  //#endregion
151
169
  //#region src/lib/number-field/definition.ts
152
- var Y = c("number-field", W, (e) => {
170
+ var Z = c("number-field", K, (e) => {
153
171
  let t = e.tagFor(p);
154
172
  return o`
155
- <div class="base ${(e) => g("connotation-accent", `appearance-${L.parse(e.appearance)}`, "with-idle", "with-hover", "with-disabled", "with-readonly", "with-error", "with-success", ["error", !!e.errorValidationMessage], ["disabled", e.disabled], ["has-value", !!e.value], ["readonly", e.readOnly], ["placeholder", !!e.placeholder], [`shape-${e.shape}`, !!e.shape], ["no-label", !e.label], ["success", !!e.successText], [`size-${e.scale}`, !!e.scale])}">
173
+ <div class="base ${(e) => g("connotation-accent", `appearance-${L.parse(e.appearance)}`, "with-idle", "with-hover", "with-disabled", "with-readonly", "with-error", "with-success", ["error", !!e.errorValidationMessage], ["disabled", e.disabled], ["has-value", !!e.value], ["readonly", e.readOnly], ["placeholder", !!e.placeholder], [`shape-${e.shape}`, !!e.shape], ["no-label", !e.label], ["success", !!e.successText], [`size-${e.scale}`, !!e.scale], ["no-steppers", !e._hasSteppers])}">
156
174
  <div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp}>
157
- ${d((e) => e.label, G())}
175
+ ${d((e) => e.label, q())}
158
176
  <slot name="contextual-help" ${l("_contextualHelpSlottedContent")}></slot>
159
177
  </div>
160
178
  <div class="fieldset">
@@ -183,7 +201,7 @@ var Y = c("number-field", W, (e) => {
183
201
  ${u("control")}
184
202
  />
185
203
  </div>
186
- ${() => J(e)}
204
+ ${() => X(e)}
187
205
  </div>
188
206
  ${(t) => t._getFeedbackTemplate(e)}
189
207
  <${t} id="value-announcement" role="status" aria-atomic="true">
@@ -203,5 +221,5 @@ var Y = c("number-field", W, (e) => {
203
221
  });
204
222
  //#endregion
205
223
  //#region src/lib/number-field/index.ts
206
- r(Y)();
224
+ r(Z)();
207
225
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "5.28.1",
3
+ "version": "5.30.0",
4
4
  "homepage": "https://apps.vivid.vonage.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/Vonage/vivid-3/issues"
@@ -43,28 +43,28 @@
43
43
  "@microsoft/fast-element": "^2.10.5",
44
44
  "@microsoft/fast-web-utilities": "^6.0.0",
45
45
  "date-fns": "^4.4.0",
46
- "dompurify": "^3.4.14",
46
+ "dompurify": "^3.4.16",
47
47
  "prosemirror-commands": "^1.7.2",
48
- "prosemirror-dropcursor": "^1.8.3",
48
+ "prosemirror-dropcursor": "^1.8.4",
49
49
  "prosemirror-gapcursor": "^1.4.1",
50
- "prosemirror-history": "^1.5.0",
50
+ "prosemirror-history": "^1.5.1",
51
51
  "prosemirror-inputrules": "^1.5.1",
52
52
  "prosemirror-keymap": "^1.2.3",
53
53
  "prosemirror-model": "1.25.4",
54
- "prosemirror-schema-basic": "^1.2.4",
54
+ "prosemirror-schema-basic": "^1.2.5",
55
55
  "prosemirror-state": "^1.4.4",
56
- "prosemirror-transform": "^1.12.0",
56
+ "prosemirror-transform": "^1.12.2",
57
57
  "prosemirror-view": "1.41.8",
58
58
  "scroll-into-view-if-needed": "^3.1.0",
59
59
  "uuid": "^14.0.2",
60
60
  "vanilla-colorful": "^0.7.2",
61
- "video.js": "^8.24.0"
61
+ "video.js": "^8.24.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@custom-elements-manifest/analyzer": "^0.5.7",
65
- "@microsoft/api-extractor": "^7.59.0",
66
- "@testing-library/dom": "^10.4.1",
67
- "@testing-library/user-event": "^14.6.6",
65
+ "@microsoft/api-extractor": "^7.59.4",
66
+ "@testing-library/dom": "^10.4.2",
67
+ "@testing-library/user-event": "^14.6.7",
68
68
  "@types/node": "^20.19.43",
69
69
  "@vitest/browser": "^4.1.11",
70
70
  "@vitest/browser-playwright": "^4.1.11",
@@ -72,40 +72,40 @@
72
72
  "cem-plugin-jsdoc-example": "^0.0.9",
73
73
  "cem-plugin-jsdoc-function": "^0.0.5",
74
74
  "cem-plugin-readonly": "^0.0.5",
75
- "concurrently": "^9.2.4",
75
+ "concurrently": "^9.2.5",
76
76
  "dialog-polyfill": "^0.5.6",
77
77
  "element-internals-polyfill": "^3.0.2",
78
- "eslint": "^10.8.1",
78
+ "eslint": "^10.12.0",
79
79
  "eslint-formatter-compact": "^9.0.1",
80
80
  "eslint-plugin-barrel-files": "^3.0.1",
81
81
  "glob": "^13.0.6",
82
- "sass": "^1.102.0",
82
+ "sass": "^1.105.1",
83
83
  "stylelint": "^16.26.1",
84
- "tsx": "^4.23.13",
84
+ "tsx": "^4.23.15",
85
85
  "typescript": "5.9.3",
86
- "vite": "^8.2.2",
86
+ "vite": "^8.3.4",
87
87
  "vite-plugin-dts": "^4.5.4",
88
88
  "vite-plugin-static-copy": "^3.4.0",
89
89
  "vitest": "^4.1.11",
90
90
  "vitest-axe": "^0.1.0",
91
91
  "vitest-fetch-mock": "^0.4.5",
92
- "wait-on": "^9.1.0",
93
- "@repo/browser-tests": "1.0.0",
94
- "@repo/cem-analyzer-plugins": "1.0.0",
92
+ "wait-on": "^9.5.1",
95
93
  "@repo/eslint-config": "1.0.0",
96
94
  "@repo/eslint-plugin-repo": "1.0.0",
95
+ "@repo/cem-analyzer-plugins": "1.0.0",
97
96
  "@repo/internal-test-utils": "1.0.0",
98
- "@repo/metadata-extractor": "1.0.0",
99
97
  "@repo/sass": "1.0.0",
100
98
  "@repo/stylelint-config": "1.0.0",
101
99
  "@repo/styles": "1.0.0",
102
100
  "@repo/tokens": "1.0.0",
103
101
  "@repo/tools": "1.0.0",
104
- "@repo/typescript-config": "1.0.0",
105
102
  "@repo/vite-config": "1.0.0",
106
103
  "@repo/vitest-config": "1.0.0",
104
+ "@repo/typescript-config": "1.0.0",
107
105
  "@repo/vvd-jsx": "1.0.0",
108
- "@vonage/vivid-icons": "4.12.0"
106
+ "@vonage/vivid-icons": "4.13.0",
107
+ "@repo/browser-tests": "1.0.0",
108
+ "@repo/metadata-extractor": "1.0.0"
109
109
  },
110
110
  "customElements": "custom-elements.json",
111
111
  "scripts": {
@@ -1,2 +1 @@
1
- import { n as registerPagination, r as Pagination, t as paginationDefinition } from "../unbundled/definition56.js";
2
- export { Pagination as VwcPaginationElement, paginationDefinition, registerPagination };
1
+ export { r as VwcPaginationElement, t as paginationDefinition, n as registerPagination } from "../unbundled/definition56.js";
@@ -1,4 +1,4 @@
1
- const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/repeat.cjs"),r=require("../bundled/slotted.cjs"),i=require("../bundled/children.cjs"),a=require("../bundled/ref.cjs"),o=require("../bundled/when.cjs"),s=require("../bundled/enums.cjs"),c=require("../bundled/decorate.cjs"),l=require("../bundled/class-names.cjs"),u=require("../bundled/definition5.cjs");var d=`.control{justify-content:space-between;display:inline-flex}.control:not(.shape-pill){border-radius:4px}.control.shape-pill{border-radius:16px}.buttons-wrapper{column-gap:4px;display:flex}.vwc-pagination-button[size=super-condensed]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.vwc-pagination-button[size=condensed]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.vwc-pagination-button[size=normal]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.vwc-pagination-button::part(button){padding-inline:0}.dots{text-align:center;align-self:center}.dots:not(.size-super-condensed){font:var(--vvd-typography-base-bold)}.dots.size-super-condensed{font:var(--vvd-typography-base-condensed-bold);inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.dots.size-condensed{inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.dots.size-normal{inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}`,f=7,p={fromView:e=>parseInt(e,10),toView:e=>e.toString()},m=class extends e.t(t.t){get pagesList(){return Array(this.total<f?this.total:f).fill(0).map((e,t,n)=>{if(t===0)return 1;if(t===n.length-1)return this.total;if(this.selectedIndex!==void 0&&this.total>f){if(this.selectedIndex<4&&t===5)return`...`;if(this.selectedIndex>=4&&this.selectedIndex<=this.total-5){if(t>1&&t<5)return this.selectedIndex+(t-2);if(t===1||t===5)return`...`}if(this.selectedIndex>this.total-5){if(t>1)return this.total-(6-t);if(t===1)return`...`}}return t+1})}constructor(){super(),this.navIcons=!1,this.total=0,this.selectedIndex=0,this.addEventListener(`tabpressed`,e=>{let{value:t,shiftKey:n}=e.detail,r=this.paginationButtons.findIndex(e=>Number(e.label)===t),i=n?-1:1,a=r+i;if(a<0){this.prevButton.focus();return}if(a>this.paginationButtons.length-1){this.nextButton.focus();return}this.paginationButtons&&this.paginationButtons[r+i].focus()})}totalChanged(e,t){if(t<0){this.total=0;return}this.#t()}selectedIndexChanged(e,t){e!==void 0&&(this.$emit(`pagination-change`,{selectedIndex:t,total:this.total,oldIndex:e}),this.#t())}paginationButtonsChanged(e,t){t.forEach(e=>{e.shadowRoot.querySelector(`button`).setAttribute(`part`,`button`)})}get#e(){return Math.max(0,Math.min(this.selectedIndex??0,this.total-1))}#t(){this.selectedIndex!==this.#e&&window.queueMicrotask(()=>{this.selectedIndex!==this.#e&&(this.selectedIndex=this.#e)})}};c.t([t.m],m.prototype,`size`,void 0),c.t([t.m],m.prototype,`shape`,void 0),c.t([t.A],m.prototype,`paginationButtons`,void 0),c.t([t.A],m.prototype,`prevButton`,void 0),c.t([t.A],m.prototype,`nextButton`,void 0),c.t([t.m({attribute:`nav-icons`,mode:`boolean`})],m.prototype,`navIcons`,void 0),c.t([t.j],m.prototype,`pagesList`,null),c.t([t.m({mode:`reflect`,converter:p})],m.prototype,`total`,void 0),c.t([t.m({mode:`reflect`,converter:p,attribute:`selected-index`})],m.prototype,`selectedIndex`,void 0);var h=[s.a.SuperCondensed,s.a.Condensed,s.a.Normal],g=[s.i.Rounded,s.i.Pill],_=(e,{parent:t})=>t.selectedIndex=Number(e)-1,v=(e,{event:t,parent:n})=>{(t.key===` `||t.key===`Enter`)&&_(e,{parent:n}),t.key===`Tab`&&t.target.dispatchEvent(new CustomEvent(`tabpressed`,{detail:{value:e,shiftKey:t.shiftKey},bubbles:!0,composed:!0}))},y=e=>l.t(`control`);function b(e,{parent:t}){return t.selectedIndex===Number(e)-1?`filled`:`ghost`}var x=e=>t.p` ${o.t(e=>e!==`...`,t.p`
1
+ const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/repeat.cjs"),r=require("../bundled/slotted.cjs"),i=require("../bundled/children.cjs"),a=require("../bundled/ref.cjs"),o=require("../bundled/when.cjs"),s=require("../bundled/enums.cjs"),c=require("../bundled/decorate.cjs"),l=require("../bundled/class-names.cjs"),u=require("../bundled/definition5.cjs");var d=`.control{justify-content:space-between;display:inline-flex}.control:not(.shape-pill){border-radius:4px}.control.shape-pill{border-radius:16px}.buttons-wrapper{column-gap:4px;display:flex}.vwc-pagination-button[size=super-condensed]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.vwc-pagination-button[size=condensed]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.vwc-pagination-button[size=normal]{--base-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.vwc-pagination-button::part(button){padding-inline:0}.dots{text-align:center;align-self:center}.dots:not(.size-super-condensed){font:var(--vvd-typography-base-bold)}.dots.size-super-condensed{font:var(--vvd-typography-base-condensed-bold);inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.dots.size-condensed{inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.dots.size-normal{inline-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}`,f=7,p={fromView:e=>parseInt(e,10),toView:e=>e.toString()},m=class extends e.t(t.t){get pagesList(){return Array(this.total<f?this.total:f).fill(0).map((e,t,n)=>{if(t===0)return 1;if(t===n.length-1)return this.total;if(this.selectedIndex!==void 0&&this.total>f){if(this.selectedIndex<4&&t===5)return`...`;if(this.selectedIndex>=4&&this.selectedIndex<=this.total-5){if(t>1&&t<5)return this.selectedIndex+(t-2);if(t===1||t===5)return`...`}if(this.selectedIndex>this.total-5){if(t>1)return this.total-(6-t);if(t===1)return`...`}}return t+1})}constructor(){super(),this.navIcons=!1,this.total=0,this.selectedIndex=0,this.addEventListener(`tabpressed`,e=>{let{value:t,shiftKey:n}=e.detail,r=this.paginationButtons.findIndex(e=>Number(e.label)===t),i=n?-1:1,a=r+i;a<0?this.prevButton.focus():a>this.paginationButtons.length-1?this.nextButton.focus():this.paginationButtons&&this.paginationButtons[r+i].focus()})}totalChanged(e,t){t<0?this.total=0:this.#t()}selectedIndexChanged(e,t){e!==void 0&&(this.$emit(`pagination-change`,{selectedIndex:t,total:this.total,oldIndex:e}),this.#t())}paginationButtonsChanged(e,t){t.forEach(e=>{e.shadowRoot.querySelector(`button`).setAttribute(`part`,`button`)})}get#e(){return Math.max(0,Math.min(this.selectedIndex??0,this.total-1))}#t(){this.selectedIndex!==this.#e&&window.queueMicrotask(()=>{this.selectedIndex!==this.#e&&(this.selectedIndex=this.#e)})}};c.t([t.m],m.prototype,`size`,void 0),c.t([t.m],m.prototype,`shape`,void 0),c.t([t.A],m.prototype,`paginationButtons`,void 0),c.t([t.A],m.prototype,`prevButton`,void 0),c.t([t.A],m.prototype,`nextButton`,void 0),c.t([t.m({attribute:`nav-icons`,mode:`boolean`})],m.prototype,`navIcons`,void 0),c.t([t.j],m.prototype,`pagesList`,null),c.t([t.m({mode:`reflect`,converter:p})],m.prototype,`total`,void 0),c.t([t.m({mode:`reflect`,converter:p,attribute:`selected-index`})],m.prototype,`selectedIndex`,void 0);var h=[s.a.SuperCondensed,s.a.Condensed,s.a.Normal],g=[s.i.Rounded,s.i.Pill],_=(e,{parent:t})=>t.selectedIndex=Number(e)-1,v=(e,{event:t,parent:n})=>{(t.key===` `||t.key===`Enter`)&&_(e,{parent:n}),t.key===`Tab`&&t.target.dispatchEvent(new CustomEvent(`tabpressed`,{detail:{value:e,shiftKey:t.shiftKey},bubbles:!0,composed:!0}))},y=e=>l.t(`control`);function b(e,{parent:t}){return t.selectedIndex===Number(e)-1?`filled`:`ghost`}var x=e=>t.p` ${o.t(e=>e!==`...`,t.p`
2
2
  <${e} class="vwc-pagination-button"
3
3
  label="${e=>e}"
4
4
  appearance="${b}"
@@ -37,24 +37,13 @@ var y = ".control{justify-content:space-between;display:inline-flex}.control:not
37
37
  constructor() {
38
38
  super(), this.navIcons = !1, this.total = 0, this.selectedIndex = 0, this.addEventListener("tabpressed", (e) => {
39
39
  let { value: t, shiftKey: n } = e.detail, r = this.paginationButtons.findIndex((e) => Number(e.label) === t), i = n ? -1 : 1, a = r + i;
40
- if (a < 0) {
41
- this.prevButton.focus();
42
- return;
43
- }
44
- if (a > this.paginationButtons.length - 1) {
45
- this.nextButton.focus();
46
- return;
47
- }
40
+ a < 0 ? this.prevButton.focus() : a > this.paginationButtons.length - 1 ? this.nextButton.focus() :
48
41
  /* v8 ignore else -- @preserve */
49
42
  this.paginationButtons && this.paginationButtons[r + i].focus();
50
43
  });
51
44
  }
52
45
  totalChanged(e, t) {
53
- if (t < 0) {
54
- this.total = 0;
55
- return;
56
- }
57
- this.#t();
46
+ t < 0 ? this.total = 0 : this.#t();
58
47
  }
59
48
  selectedIndexChanged(e, t) {
60
49
  e !== void 0 && (this.$emit("pagination-change", {
@@ -1,2 +1 @@
1
- import { n as registerPlatformSwitch, r as PlatformSwitch, t as platformSwitchDefinition } from "../unbundled/definition57.js";
2
- export { PlatformSwitch as VwcPlatformSwitchElement, platformSwitchDefinition, registerPlatformSwitch };
1
+ export { r as VwcPlatformSwitchElement, t as platformSwitchDefinition, n as registerPlatformSwitch } from "../unbundled/definition57.js";
@@ -1 +1 @@
1
- const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/decorate.cjs"),r=require("../bundled/platform.cjs");var i=`:host{display:contents}`,a=class extends e.t{slottedContentChanged(){this.#e()}#e(){let e=this.slottedContent.filter(e=>e instanceof HTMLElement),t=!1;for(let n of e){if(t){n.hidden=!0;continue}this.#t(n)?(n.hidden=!1,t=!0):n.hidden=!0}}#t(e){let t=r.t()?`apple`:`standard`,n=e.dataset.keyboard;return n===void 0||n===t}};n.t([e.A],a.prototype,`slottedContent`,void 0);var o=e.u(`platform-switch`,a,()=>e.p`<slot ${t.t(`slottedContent`)}></slot>`,[],{styles:i});e.d(o)();
1
+ const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/decorate.cjs"),r=require("../bundled/platform.cjs");var i=`:host{display:contents}`,a=class extends e.t{slottedContentChanged(){this.#e()}#e(){let e=this.slottedContent.filter(e=>e instanceof HTMLElement),t=!1;for(let n of e)t?n.hidden=!0:this.#t(n)?(n.hidden=!1,t=!0):n.hidden=!0}#t(e){let t=r.t()?`apple`:`standard`,n=e.dataset.keyboard;return n===void 0||n===t}};n.t([e.A],a.prototype,`slottedContent`,void 0);var o=e.u(`platform-switch`,a,()=>e.p`<slot ${t.t(`slottedContent`)}></slot>`,[],{styles:i});e.d(o)();
@@ -9,13 +9,7 @@ var c = ":host{display:contents}", l = class extends r {
9
9
  }
10
10
  #e() {
11
11
  let e = this.slottedContent.filter((e) => e instanceof HTMLElement), t = !1;
12
- for (let n of e) {
13
- if (t) {
14
- n.hidden = !0;
15
- continue;
16
- }
17
- this.#t(n) ? (n.hidden = !1, t = !0) : n.hidden = !0;
18
- }
12
+ for (let n of e) t ? n.hidden = !0 : this.#t(n) ? (n.hidden = !1, t = !0) : n.hidden = !0;
19
13
  }
20
14
  #t(e) {
21
15
  let t = s() ? "apple" : "standard", n = e.dataset.keyboard;
@@ -1,2 +1 @@
1
- import { n as registerPopover, r as Popover, t as popoverDefinition } from "../unbundled/definition58.js";
2
- export { Popover as VwcPopoverElement, popoverDefinition, registerPopover };
1
+ export { r as VwcPopoverElement, t as popoverDefinition, n as registerPopover } from "../unbundled/definition58.js";
package/popover/index.js CHANGED
@@ -116,6 +116,7 @@ var I = class extends e(g(o)) {
116
116
  strategy: "fixed",
117
117
  middleware: this.#s
118
118
  });
119
+ /* v8 ignore if -- @preserve */
119
120
  this.open && (this.#f(e), this.arrow && this._arrowEl && this.#p(e));
120
121
  }
121
122
  #f(e) {
@@ -1,2 +1 @@
1
- import { i as Popup, n as registerPopup, t as popupDefinition } from "../unbundled/definition9.js";
2
- export { Popup as VwcPopupElement, popupDefinition, registerPopup };
1
+ export { i as VwcPopupElement, t as popupDefinition, n as registerPopup } from "../unbundled/definition9.js";
@@ -1,2 +1 @@
1
- import { n as registerProgress, r as Progress, t as progressDefinition } from "../unbundled/definition59.js";
2
- export { Progress as VwcProgressElement, progressDefinition, registerProgress };
1
+ export { r as VwcProgressElement, t as progressDefinition, n as registerProgress } from "../unbundled/definition59.js";
@@ -1,2 +1 @@
1
- import { n as registerProgressRing, r as ProgressRing, t as progressRingDefinition } from "../unbundled/definition5.js";
2
- export { ProgressRing as VwcProgressRingElement, progressRingDefinition, registerProgressRing };
1
+ export { r as VwcProgressRingElement, t as progressRingDefinition, n as registerProgressRing } from "../unbundled/definition5.js";
@@ -1,2 +1 @@
1
- import { n as registerRadio, r as Radio, t as radioDefinition } from "../unbundled/definition60.js";
2
- export { Radio as VwcRadioElement, radioDefinition, registerRadio };
1
+ export { r as VwcRadioElement, t as radioDefinition, n as registerRadio } from "../unbundled/definition60.js";
@@ -1,2 +1 @@
1
- import { n as registerRadioGroup, r as RadioGroup, t as radioGroupDefinition } from "../unbundled/definition61.js";
2
- export { RadioGroup as VwcRadioGroupElement, radioGroupDefinition, registerRadioGroup };
1
+ export { r as VwcRadioGroupElement, t as radioGroupDefinition, n as registerRadioGroup } from "../unbundled/definition61.js";
@@ -1,4 +1,4 @@
1
- const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/when.cjs"),r=require("../bundled/decorate.cjs"),i=require("../bundled/aria.cjs"),a=require("../bundled/key-codes.cjs"),o=require("../bundled/delegates-aria.cjs"),s=require("../bundled/feedback-message.cjs"),c=require("../bundled/mixins.cjs"),l=require("../bundled/definition16.cjs");var u=`.base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:8px;display:flex}.positioning-region{flex-wrap:wrap;gap:8px;display:flex}.positioning-region.vertical{flex-direction:column}fieldset{border:none;margin:0;padding:0;display:block}legend{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);margin-block-end:8px;padding:0}`,d=class extends c.t(e.t){constructor(...e){super(...e),this.errorValidationMessage=``,this.orientation=i.t.horizontal,this.slottedRadioButtons=[],this.radioErrorHandler=e=>{let t=e.target;this.errorValidationMessage=t.errorValidationMessage||``},this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(e=>{e!==t&&(e.checked=!1)}),this.value=t.value,this.#t(t)),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let n=e[t];!this.isInsideToolbar&&!n.readOnly&&(n.checked=!0),n.focus()},this.moveRightOffGroup=()=>{let e=this.nextElementSibling;e instanceof HTMLElement&&e.focus()},this.moveLeftOffGroup=()=>{let e=this.previousElementSibling;e instanceof HTMLElement&&e.focus()},this.moveRight=e=>{let t=e.target,n=this.#e,r=n.indexOf(t)+1;if(r===n.length&&this.isInsideToolbar&&e.key===`ArrowRight`){this.moveRightOffGroup();return}r===n.length&&(r=0),this.moveToRadioByIndex(n,r)},this.moveLeft=e=>{let t=e.target,n=this.#e,r=n.indexOf(t)-1;if(this.isInsideToolbar&&e.key===`ArrowLeft`&&r<0){this.moveLeftOffGroup();return}r=r<0?n.length-1:r,this.moveToRadioByIndex(n,r)},this.keydownHandler=e=>{switch(e.key){case a.a:this.checkFocusedRadio(e.target);return;case a.r:case a.t:this.moveRight(e);return;case a.n:case a.i:this.moveLeft(e);return;default:return!0}}}requiredChanged(){this.slottedRadioButtons.forEach(e=>{e.required=!!this.required})}readOnlyChanged(){this.slottedRadioButtons.forEach(e=>{e.readOnly=!!this.readOnly})}disabledChanged(){this.slottedRadioButtons.forEach(e=>{e.disabled=!!this.disabled})}nameChanged(){this.slottedRadioButtons.forEach(e=>{e.setAttribute(`name`,this.name)})}valueChanged(){this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0)}),this.$emit(`change`)}handleSlotChange(){this.errorText&&this.slottedRadioButtons.forEach(e=>{e.errorText=this.errorText})}errorTextChanged(e,t){this.errorValidationMessage=t||``}get#e(){return this.slottedRadioButtons.filter(e=>!e.disabled)}slottedRadioButtonsChanged(){this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get isInsideToolbar(){return!!this.closest(`[role="toolbar"]`)}connectedCallback(){super.connectedCallback(),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener(`change`,this.radioChangeHandler),e.removeEventListener(`invalid`,this.radioErrorHandler)})}setupRadioButtons(){let e=!1;for(let t of this.slottedRadioButtons)this.name!==void 0&&t.setAttribute(`name`,this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.required&&(t.required=!0),this.value&&this.value===t.value?(t.checked=!0,this.#t(t),e=!0):t.checked=!1,t.addEventListener(`change`,this.radioChangeHandler),t.addEventListener(`invalid`,this.radioErrorHandler);if(this.value===void 0&&this.slottedRadioButtons.length>0){let t=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`));if(t.length>0&&!e){let e=t[t.length-1];e.checked=!0,this.#t(e)}else this.#t(this.slottedRadioButtons[0])}}focusInHandler(e){this.#t(e.target)}#t(e){e.setAttribute(`tabindex`,`0`);for(let t of this.slottedRadioButtons)t!==e&&t.setAttribute(`tabindex`,`-1`)}checkFocusedRadio(e){e.readOnly||(e.checked=!0)}};r.t([e.m],d.prototype,`label`,void 0),r.t([e.m({attribute:`required`,mode:`boolean`})],d.prototype,`required`,void 0),r.t([e.m({attribute:`readonly`,mode:`boolean`})],d.prototype,`readOnly`,void 0),r.t([e.m({attribute:`disabled`,mode:`boolean`})],d.prototype,`disabled`,void 0),r.t([e.m],d.prototype,`name`,void 0),r.t([e.m],d.prototype,`value`,void 0),r.t([e.A],d.prototype,`errorValidationMessage`,void 0),r.t([e.m({attribute:`error-text`})],d.prototype,`errorText`,void 0),r.t([e.m],d.prototype,`orientation`,void 0),r.t([e.A],d.prototype,`slottedRadioButtons`,void 0);var f=e.u(`radio-group`,d,r=>{let a=r.tagFor(l.r,!0);return e.p`
1
+ const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cjs"),n=require("../bundled/when.cjs"),r=require("../bundled/decorate.cjs"),i=require("../bundled/aria.cjs"),a=require("../bundled/key-codes.cjs"),o=require("../bundled/delegates-aria.cjs"),s=require("../bundled/feedback-message.cjs"),c=require("../bundled/mixins.cjs"),l=require("../bundled/definition16.cjs");var u=`.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}.base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:8px;display:flex}.positioning-region{flex-wrap:wrap;gap:8px;display:flex}.positioning-region.vertical{flex-direction:column}fieldset{border:none;margin:0;padding:0;display:block}legend{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);margin-block-end:8px;padding:0}`,d=class extends c.t(e.t){constructor(...e){super(...e),this.errorValidationMessage=``,this.orientation=i.t.horizontal,this.slottedRadioButtons=[],this.radioErrorHandler=e=>{let t=e.target;this.errorValidationMessage=t.errorValidationMessage||``},this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(e=>{e!==t&&(e.checked=!1)}),this.value=t.value,this.#t(t)),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let n=e[t];!this.isInsideToolbar&&!n.readOnly&&(n.checked=!0),n.focus()},this.moveRightOffGroup=()=>{let e=this.nextElementSibling;e instanceof HTMLElement&&e.focus()},this.moveLeftOffGroup=()=>{let e=this.previousElementSibling;e instanceof HTMLElement&&e.focus()},this.moveRight=e=>{let t=e.target,n=this.#e,r=n.indexOf(t)+1;r===n.length&&this.isInsideToolbar&&e.key===`ArrowRight`?this.moveRightOffGroup():(r===n.length&&(r=0),this.moveToRadioByIndex(n,r))},this.moveLeft=e=>{let t=e.target,n=this.#e,r=n.indexOf(t)-1;this.isInsideToolbar&&e.key===`ArrowLeft`&&r<0?this.moveLeftOffGroup():(r=r<0?n.length-1:r,this.moveToRadioByIndex(n,r))},this.keydownHandler=e=>{if(!this.slottedRadioButtons.includes(e.target))return!0;switch(e.key){case a.a:this.checkFocusedRadio(e.target);return;case a.r:case a.t:this.moveRight(e);return;case a.n:case a.i:this.moveLeft(e);return;default:return!0}}}get _hasContextualHelp(){return(this._contextualHelpSlottedContent?.length??0)>0}requiredChanged(){this.slottedRadioButtons.forEach(e=>{e.required=!!this.required})}readOnlyChanged(){this.slottedRadioButtons.forEach(e=>{e.readOnly=!!this.readOnly})}disabledChanged(){this.slottedRadioButtons.forEach(e=>{e.disabled=!!this.disabled})}nameChanged(){this.slottedRadioButtons.forEach(e=>{e.setAttribute(`name`,this.name)})}valueChanged(){this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0)}),this.$emit(`change`)}handleSlotChange(){this.errorText&&this.slottedRadioButtons.forEach(e=>{e.errorText=this.errorText})}errorTextChanged(e,t){this.errorValidationMessage=t||``}get#e(){return this.slottedRadioButtons.filter(e=>!e.disabled)}slottedRadioButtonsChanged(){this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get isInsideToolbar(){return!!this.closest(`[role="toolbar"]`)}connectedCallback(){super.connectedCallback(),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener(`change`,this.radioChangeHandler),e.removeEventListener(`invalid`,this.radioErrorHandler)})}setupRadioButtons(){let e=!1;for(let t of this.slottedRadioButtons)this.name!==void 0&&t.setAttribute(`name`,this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.required&&(t.required=!0),this.value&&this.value===t.value?(t.checked=!0,this.#t(t),e=!0):t.checked=!1,t.addEventListener(`change`,this.radioChangeHandler),t.addEventListener(`invalid`,this.radioErrorHandler);if(this.value===void 0&&this.slottedRadioButtons.length>0){let t=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`));if(t.length>0&&!e){let e=t[t.length-1];e.checked=!0,this.#t(e)}else this.#t(this.slottedRadioButtons[0])}}focusInHandler(e){this.slottedRadioButtons.includes(e.target)&&this.#t(e.target)}#t(e){e.setAttribute(`tabindex`,`0`);for(let t of this.slottedRadioButtons)t!==e&&t.setAttribute(`tabindex`,`-1`)}checkFocusedRadio(e){e.readOnly||(e.checked=!0)}};r.t([e.m],d.prototype,`label`,void 0),r.t([e.A],d.prototype,`_contextualHelpSlottedContent`,void 0),r.t([e.m({attribute:`required`,mode:`boolean`})],d.prototype,`required`,void 0),r.t([e.m({attribute:`readonly`,mode:`boolean`})],d.prototype,`readOnly`,void 0),r.t([e.m({attribute:`disabled`,mode:`boolean`})],d.prototype,`disabled`,void 0),r.t([e.m],d.prototype,`name`,void 0),r.t([e.m],d.prototype,`value`,void 0),r.t([e.A],d.prototype,`errorValidationMessage`,void 0),r.t([e.m({attribute:`error-text`})],d.prototype,`errorText`,void 0),r.t([e.m],d.prototype,`orientation`,void 0),r.t([e.A],d.prototype,`slottedRadioButtons`,void 0);var f=e.u(`radio-group`,d,r=>{let a=r.tagFor(l.r,!0);return e.p`
2
2
  <template
3
3
  @keydown="${(e,t)=>e.keydownHandler(t.event)}"
4
4
  @focusin="${(e,t)=>e.focusInHandler(t.event)}"
@@ -8,7 +8,18 @@ const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/slotted.cj
8
8
  ${o.n({role:`radiogroup`,ariaDisabled:e=>e.disabled,ariaReadOnly:e=>e.readOnly,ariaOrientation:e=>e.orientation,ariaInvalid:e=>e.errorText?`true`:`false`,ariaLabelledBy:`label`,ariaDescribedBy:e=>e._feedbackDescribedBy})}
9
9
  class="control positioning-region ${e=>e.orientation===i.t.horizontal?`horizontal`:`vertical`}"
10
10
  >
11
- ${n.t(e=>e.label,e.p`<legend id="label">${e=>e.label}</legend>`)}
11
+ <legend
12
+ class="label-wrapper"
13
+ ?hidden="${e=>!e.label&&!e._hasContextualHelp}"
14
+ >
15
+ ${n.t(e=>e.label,e.p`<span id="label" class="label"
16
+ >${e=>e.label}</span
17
+ >`)}
18
+ <slot
19
+ name="contextual-help"
20
+ ${t.t(`_contextualHelpSlottedContent`)}
21
+ ></slot>
22
+ </legend>
12
23
  <slot
13
24
  ${t.t({property:`slottedRadioButtons`,filter:t.r(a)})}
14
25
  @slotchange="${e=>e.handleSlotChange()}"
@@ -9,7 +9,7 @@ import { n as _ } from "../bundled/feedback-message.js";
9
9
  import { t as v } from "../bundled/mixins.js";
10
10
  import { r as y, t as b } from "../bundled/definition16.js";
11
11
  //#region src/lib/radio-group/radio-group.scss?inline
12
- var x = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:8px;display:flex}.positioning-region{flex-wrap:wrap;gap:8px;display:flex}.positioning-region.vertical{flex-direction:column}fieldset{border:none;margin:0;padding:0;display:block}legend{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);margin-block-end:8px;padding:0}", S = class extends v(i) {
12
+ var x = ".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}.base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:8px;display:flex}.positioning-region{flex-wrap:wrap;gap:8px;display:flex}.positioning-region.vertical{flex-direction:column}fieldset{border:none;margin:0;padding:0;display:block}legend{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);margin-block-end:8px;padding:0}", S = class extends v(i) {
13
13
  constructor(...e) {
14
14
  super(...e), this.errorValidationMessage = "", this.orientation = u.horizontal, this.slottedRadioButtons = [], this.radioErrorHandler = (e) => {
15
15
  let t = e.target;
@@ -30,19 +30,12 @@ var x = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:colu
30
30
  e instanceof HTMLElement && e.focus();
31
31
  }, this.moveRight = (e) => {
32
32
  let t = e.target, n = this.#e, r = n.indexOf(t) + 1;
33
- if (r === n.length && this.isInsideToolbar && e.key === "ArrowRight") {
34
- this.moveRightOffGroup();
35
- return;
36
- }
37
- r === n.length && (r = 0), this.moveToRadioByIndex(n, r);
33
+ r === n.length && this.isInsideToolbar && e.key === "ArrowRight" ? this.moveRightOffGroup() : (r === n.length && (r = 0), this.moveToRadioByIndex(n, r));
38
34
  }, this.moveLeft = (e) => {
39
35
  let t = e.target, n = this.#e, r = n.indexOf(t) - 1;
40
- if (this.isInsideToolbar && e.key === "ArrowLeft" && r < 0) {
41
- this.moveLeftOffGroup();
42
- return;
43
- }
44
- r = r < 0 ? n.length - 1 : r, this.moveToRadioByIndex(n, r);
36
+ this.isInsideToolbar && e.key === "ArrowLeft" && r < 0 ? this.moveLeftOffGroup() : (r = r < 0 ? n.length - 1 : r, this.moveToRadioByIndex(n, r));
45
37
  }, this.keydownHandler = (e) => {
38
+ if (!this.slottedRadioButtons.includes(e.target)) return !0;
46
39
  switch (e.key) {
47
40
  case d:
48
41
  this.checkFocusedRadio(e.target);
@@ -59,6 +52,9 @@ var x = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:colu
59
52
  }
60
53
  };
61
54
  }
55
+ get _hasContextualHelp() {
56
+ return (this._contextualHelpSlottedContent?.length ?? 0) > 0;
57
+ }
62
58
  requiredChanged() {
63
59
  this.slottedRadioButtons.forEach((e) => {
64
60
  e.required = !!this.required;
@@ -121,7 +117,7 @@ var x = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:colu
121
117
  }
122
118
  }
123
119
  focusInHandler(e) {
124
- this.#t(e.target);
120
+ this.slottedRadioButtons.includes(e.target) && this.#t(e.target);
125
121
  }
126
122
  #t(e) {
127
123
  e.setAttribute("tabindex", "0");
@@ -131,7 +127,7 @@ var x = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:colu
131
127
  e.readOnly || (e.checked = !0);
132
128
  }
133
129
  };
134
- l([n], S.prototype, "label", void 0), l([n({
130
+ l([n], S.prototype, "label", void 0), l([e], S.prototype, "_contextualHelpSlottedContent", void 0), l([n({
135
131
  attribute: "required",
136
132
  mode: "boolean"
137
133
  })], S.prototype, "required", void 0), l([n({
@@ -163,7 +159,18 @@ var C = a("radio-group", S, (e) => {
163
159
  })}
164
160
  class="control positioning-region ${(e) => e.orientation === u.horizontal ? "horizontal" : "vertical"}"
165
161
  >
166
- ${c((e) => e.label, r`<legend id="label">${(e) => e.label}</legend>`)}
162
+ <legend
163
+ class="label-wrapper"
164
+ ?hidden="${(e) => !e.label && !e._hasContextualHelp}"
165
+ >
166
+ ${c((e) => e.label, r`<span id="label" class="label"
167
+ >${(e) => e.label}</span
168
+ >`)}
169
+ <slot
170
+ name="contextual-help"
171
+ ${s("_contextualHelpSlottedContent")}
172
+ ></slot>
173
+ </legend>
167
174
  <slot
168
175
  ${s({
169
176
  property: "slottedRadioButtons",
@@ -1,2 +1 @@
1
- import { n as registerRangeSlider, r as RangeSlider, t as rangeSliderDefinition } from "../unbundled/definition62.js";
2
- export { RangeSlider as VwcRangeSliderElement, rangeSliderDefinition, registerRangeSlider };
1
+ export { r as VwcRangeSliderElement, t as rangeSliderDefinition, n as registerRangeSlider } from "../unbundled/definition62.js";
@@ -1,2 +1 @@
1
- import { A as RichTextEditor, C as RtePlaceholderFeature, D as RteConfig, E as RteBase, O as RteHtmlSerializer, S as RteHardBreakFeature, T as RteTextBlockPickerFeature, _ as RteStrikethroughFeature, a as RteKeyboardShortcutsFeature, b as RteBoldFeature, c as RteToolbarButtonFeature, d as RteInlineImageFeature, f as RteLinkFeature, g as RteMonospaceFeature, h as RteTextColorPickerFeature, i as RteSuggestFeature, k as RteHtmlParser, l as RteDropHandlerFeature, m as RteListFeature, n as richTextEditorDefinition, o as RteInputRuleFeature, p as RteAlignmentFeature, r as RteCharacterCountFeature, s as RteAtomFeature, t as registerRichTextEditor, u as RteFileHandlerFeature, v as RteUnderlineFeature, w as RteToolbarFeature, x as RteFontSizePickerFeature, y as RteItalicFeature } from "../unbundled/definition63.js";
2
- export { RteAlignmentFeature, RteAtomFeature, RteBase, RteBoldFeature, RteCharacterCountFeature, RteConfig, RteDropHandlerFeature, RteFileHandlerFeature, RteFontSizePickerFeature, RteHardBreakFeature, RteHtmlParser, RteHtmlSerializer, RteInlineImageFeature, RteInputRuleFeature, RteItalicFeature, RteKeyboardShortcutsFeature, RteLinkFeature, RteListFeature, RteMonospaceFeature, RtePlaceholderFeature, RteStrikethroughFeature, RteSuggestFeature, RteTextBlockPickerFeature, RteTextColorPickerFeature, RteToolbarButtonFeature, RteToolbarFeature, RteUnderlineFeature, RichTextEditor as VwcRichTextEditorElement, registerRichTextEditor, richTextEditorDefinition };
1
+ export { p as RteAlignmentFeature, s as RteAtomFeature, E as RteBase, b as RteBoldFeature, r as RteCharacterCountFeature, D as RteConfig, l as RteDropHandlerFeature, u as RteFileHandlerFeature, x as RteFontSizePickerFeature, S as RteHardBreakFeature, k as RteHtmlParser, O as RteHtmlSerializer, d as RteInlineImageFeature, o as RteInputRuleFeature, y as RteItalicFeature, a as RteKeyboardShortcutsFeature, f as RteLinkFeature, m as RteListFeature, g as RteMonospaceFeature, C as RtePlaceholderFeature, _ as RteStrikethroughFeature, i as RteSuggestFeature, T as RteTextBlockPickerFeature, h as RteTextColorPickerFeature, c as RteToolbarButtonFeature, w as RteToolbarFeature, v as RteUnderlineFeature, A as VwcRichTextEditorElement, t as registerRichTextEditor, n as richTextEditorDefinition } from "../unbundled/definition63.js";