@vonage/vivid 3.53.0 → 3.55.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 (311) hide show
  1. package/accordion/index.cjs +0 -14
  2. package/accordion/index.js +0 -14
  3. package/accordion-item/index.cjs +0 -11
  4. package/accordion-item/index.js +0 -11
  5. package/action-group/index.cjs +0 -2
  6. package/action-group/index.js +0 -2
  7. package/alert/index.cjs +0 -23
  8. package/alert/index.js +0 -23
  9. package/appearance-ui/index.cjs +11 -12
  10. package/appearance-ui/index.js +11 -12
  11. package/audio-player/index.cjs +0 -28
  12. package/audio-player/index.js +0 -28
  13. package/avatar/index.cjs +0 -6
  14. package/avatar/index.js +0 -6
  15. package/badge/index.cjs +0 -9
  16. package/badge/index.js +0 -9
  17. package/banner/index.cjs +0 -22
  18. package/banner/index.js +0 -22
  19. package/breadcrumb/index.cjs +0 -8
  20. package/breadcrumb/index.js +0 -8
  21. package/breadcrumb-item/index.cjs +0 -15
  22. package/breadcrumb-item/index.js +0 -15
  23. package/button/index.cjs +0 -18
  24. package/button/index.js +0 -18
  25. package/calendar/index.cjs +0 -4
  26. package/calendar/index.js +0 -4
  27. package/calendar-event/index.cjs +0 -4
  28. package/calendar-event/index.js +0 -4
  29. package/card/index.cjs +0 -9
  30. package/card/index.js +0 -9
  31. package/checkbox/index.cjs +0 -14
  32. package/checkbox/index.js +0 -14
  33. package/combobox/index.cjs +0 -31
  34. package/combobox/index.js +0 -31
  35. package/custom-elements.json +396 -55
  36. package/data-grid/index.cjs +0 -11
  37. package/data-grid/index.js +0 -11
  38. package/date-picker/index.cjs +0 -34
  39. package/date-picker/index.js +0 -34
  40. package/date-range-picker/index.cjs +0 -34
  41. package/date-range-picker/index.js +0 -34
  42. package/dial-pad/index.cjs +0 -28
  43. package/dial-pad/index.js +0 -28
  44. package/dialog/index.cjs +0 -23
  45. package/dialog/index.js +0 -23
  46. package/divider/index.cjs +0 -3
  47. package/divider/index.js +0 -3
  48. package/elevation/index.cjs +0 -2
  49. package/elevation/index.js +0 -2
  50. package/empty-state/index.cjs +0 -7
  51. package/empty-state/index.js +0 -7
  52. package/fab/index.cjs +0 -15
  53. package/fab/index.js +0 -15
  54. package/file-picker/index.cjs +0 -23
  55. package/file-picker/index.js +0 -23
  56. package/header/index.cjs +0 -3
  57. package/header/index.js +0 -3
  58. package/icon/index.cjs +0 -5
  59. package/icon/index.js +0 -5
  60. package/index.cjs +0 -44
  61. package/index.js +0 -44
  62. package/layout/index.cjs +0 -2
  63. package/layout/index.js +0 -2
  64. package/lib/appearance-ui/appearance-ui.d.ts +1 -1
  65. package/lib/audio-player/audio-player.d.ts +4 -0
  66. package/lib/audio-player/locale.d.ts +2 -0
  67. package/lib/combobox/combobox.d.ts +1 -0
  68. package/lib/dial-pad/dial-pad.d.ts +4 -0
  69. package/lib/enums.d.ts +1 -0
  70. package/lib/menu/menu.d.ts +2 -3
  71. package/lib/nav-disclosure/nav-disclosure.d.ts +5 -0
  72. package/lib/text-anchor/text-anchor.d.ts +1 -1
  73. package/lib/video-player/vivid-video-svg.d.ts +1 -0
  74. package/listbox/index.cjs +1 -15
  75. package/listbox/index.js +1 -15
  76. package/locales/en-GB.cjs +3 -1
  77. package/locales/en-GB.js +3 -1
  78. package/locales/en-US.cjs +3 -1
  79. package/locales/en-US.js +3 -1
  80. package/locales/ja-JP.cjs +3 -1
  81. package/locales/ja-JP.js +3 -1
  82. package/locales/zh-CN.cjs +3 -1
  83. package/locales/zh-CN.js +3 -1
  84. package/menu/index.cjs +0 -25
  85. package/menu/index.js +0 -25
  86. package/menu-item/index.cjs +0 -15
  87. package/menu-item/index.js +0 -15
  88. package/nav/index.cjs +0 -1
  89. package/nav/index.js +0 -1
  90. package/nav-disclosure/index.cjs +0 -10
  91. package/nav-disclosure/index.js +0 -10
  92. package/nav-item/index.cjs +0 -15
  93. package/nav-item/index.js +0 -15
  94. package/note/index.cjs +0 -11
  95. package/note/index.js +0 -11
  96. package/number-field/index.cjs +0 -26
  97. package/number-field/index.js +0 -26
  98. package/option/index.cjs +0 -13
  99. package/option/index.js +0 -13
  100. package/package.json +1 -1
  101. package/pagination/index.cjs +0 -21
  102. package/pagination/index.js +0 -21
  103. package/popup/index.cjs +0 -20
  104. package/popup/index.js +0 -20
  105. package/progress/index.cjs +0 -4
  106. package/progress/index.js +0 -4
  107. package/progress-ring/index.cjs +0 -4
  108. package/progress-ring/index.js +0 -4
  109. package/radio/index.cjs +0 -6
  110. package/radio/index.js +0 -6
  111. package/radio-group/index.cjs +0 -9
  112. package/radio-group/index.js +0 -9
  113. package/range-slider/index.cjs +0 -17
  114. package/range-slider/index.js +0 -17
  115. package/select/index.cjs +0 -31
  116. package/select/index.js +0 -31
  117. package/selectable-box/index.cjs +0 -18
  118. package/selectable-box/index.js +0 -18
  119. package/shared/affix.cjs +6 -7
  120. package/shared/affix.js +6 -7
  121. package/shared/anchored.cjs +39 -46
  122. package/shared/anchored.js +39 -46
  123. package/shared/calendar-event.cjs +10 -11
  124. package/shared/calendar-event.js +10 -11
  125. package/shared/definition.cjs +8 -9
  126. package/shared/definition.js +8 -9
  127. package/shared/definition10.cjs +1 -1
  128. package/shared/definition10.js +1 -1
  129. package/shared/definition11.cjs +20 -21
  130. package/shared/definition11.js +20 -21
  131. package/shared/definition12.cjs +1 -1
  132. package/shared/definition12.js +1 -1
  133. package/shared/definition13.cjs +9 -14
  134. package/shared/definition13.js +9 -14
  135. package/shared/definition14.cjs +13 -14
  136. package/shared/definition14.js +13 -14
  137. package/shared/definition15.cjs +1 -1
  138. package/shared/definition15.js +1 -1
  139. package/shared/definition16.cjs +16 -3
  140. package/shared/definition16.js +16 -3
  141. package/shared/definition17.cjs +155 -166
  142. package/shared/definition17.js +155 -166
  143. package/shared/definition19.cjs +2 -2
  144. package/shared/definition19.js +2 -2
  145. package/shared/definition2.cjs +1 -1
  146. package/shared/definition2.js +1 -1
  147. package/shared/definition20.cjs +34 -18
  148. package/shared/definition20.js +34 -18
  149. package/shared/definition21.cjs +17 -18
  150. package/shared/definition21.js +17 -18
  151. package/shared/definition22.cjs +2 -2
  152. package/shared/definition22.js +2 -2
  153. package/shared/definition23.cjs +7 -8
  154. package/shared/definition23.js +7 -8
  155. package/shared/definition24.cjs +7 -8
  156. package/shared/definition24.js +7 -8
  157. package/shared/definition25.cjs +2 -2
  158. package/shared/definition25.js +2 -2
  159. package/shared/definition26.cjs +6 -7
  160. package/shared/definition26.js +6 -7
  161. package/shared/definition27.cjs +3 -3
  162. package/shared/definition27.js +3 -3
  163. package/shared/definition28.cjs +9 -10
  164. package/shared/definition28.js +9 -10
  165. package/shared/definition29.cjs +60 -57
  166. package/shared/definition29.js +60 -57
  167. package/shared/definition3.cjs +9 -10
  168. package/shared/definition3.js +9 -10
  169. package/shared/definition30.cjs +4 -2
  170. package/shared/definition30.js +4 -2
  171. package/shared/definition31.cjs +20 -9
  172. package/shared/definition31.js +20 -9
  173. package/shared/definition32.cjs +1 -1
  174. package/shared/definition32.js +1 -1
  175. package/shared/definition33.cjs +1 -1
  176. package/shared/definition33.js +1 -1
  177. package/shared/definition34.cjs +6 -7
  178. package/shared/definition34.js +6 -7
  179. package/shared/definition35.cjs +1 -1
  180. package/shared/definition35.js +1 -1
  181. package/shared/definition36.cjs +6 -7
  182. package/shared/definition36.js +6 -7
  183. package/shared/definition37.cjs +1 -1
  184. package/shared/definition37.js +1 -1
  185. package/shared/definition38.cjs +7 -8
  186. package/shared/definition38.js +7 -8
  187. package/shared/definition39.cjs +8 -9
  188. package/shared/definition39.js +8 -9
  189. package/shared/definition4.cjs +14 -15
  190. package/shared/definition4.js +14 -15
  191. package/shared/definition40.cjs +7 -8
  192. package/shared/definition40.js +7 -8
  193. package/shared/definition41.cjs +1 -1
  194. package/shared/definition41.js +1 -1
  195. package/shared/definition42.cjs +3 -3
  196. package/shared/definition42.js +3 -3
  197. package/shared/definition43.cjs +1 -1
  198. package/shared/definition43.js +1 -1
  199. package/shared/definition44.cjs +11 -12
  200. package/shared/definition44.js +11 -12
  201. package/shared/definition45.cjs +8 -9
  202. package/shared/definition45.js +8 -9
  203. package/shared/definition46.cjs +9 -10
  204. package/shared/definition46.js +9 -10
  205. package/shared/definition47.cjs +15 -16
  206. package/shared/definition47.js +15 -16
  207. package/shared/definition48.cjs +6 -7
  208. package/shared/definition48.js +6 -7
  209. package/shared/definition5.cjs +113 -33
  210. package/shared/definition5.js +113 -33
  211. package/shared/definition50.cjs +9 -10
  212. package/shared/definition50.js +9 -10
  213. package/shared/definition51.cjs +8 -9
  214. package/shared/definition51.js +8 -9
  215. package/shared/definition52.cjs +5 -6
  216. package/shared/definition52.js +5 -6
  217. package/shared/definition53.cjs +12 -13
  218. package/shared/definition53.js +12 -13
  219. package/shared/definition54.cjs +2 -2
  220. package/shared/definition54.js +2 -2
  221. package/shared/definition55.cjs +121 -63
  222. package/shared/definition55.js +121 -63
  223. package/shared/definition56.cjs +1 -1
  224. package/shared/definition56.js +1 -1
  225. package/shared/definition57.cjs +1 -1
  226. package/shared/definition57.js +1 -1
  227. package/shared/definition58.cjs +1 -1
  228. package/shared/definition58.js +1 -1
  229. package/shared/definition59.cjs +5 -6
  230. package/shared/definition59.js +5 -6
  231. package/shared/definition6.cjs +10 -11
  232. package/shared/definition6.js +10 -11
  233. package/shared/definition60.cjs +1 -1
  234. package/shared/definition60.js +1 -1
  235. package/shared/definition61.cjs +317 -15
  236. package/shared/definition61.js +317 -15
  237. package/shared/definition62.cjs +6 -7
  238. package/shared/definition62.js +6 -7
  239. package/shared/definition63.cjs +11 -15
  240. package/shared/definition63.js +11 -15
  241. package/shared/definition7.cjs +8 -9
  242. package/shared/definition7.js +8 -9
  243. package/shared/definition8.cjs +13 -14
  244. package/shared/definition8.js +13 -14
  245. package/shared/definition9.cjs +5 -6
  246. package/shared/definition9.js +5 -6
  247. package/shared/enums.cjs +1 -0
  248. package/shared/enums.js +1 -0
  249. package/shared/icon.cjs +23 -9
  250. package/shared/icon.js +24 -10
  251. package/shared/index.cjs +38 -19
  252. package/shared/index.js +38 -19
  253. package/shared/index2.cjs +30 -26
  254. package/shared/index2.js +30 -26
  255. package/shared/listbox.cjs +6 -7
  256. package/shared/listbox.js +6 -7
  257. package/shared/presentationDate.cjs +40 -50
  258. package/shared/presentationDate.js +40 -50
  259. package/shared/radio.cjs +6 -7
  260. package/shared/radio.js +6 -7
  261. package/shared/slider.template.cjs +1 -1
  262. package/shared/slider.template.js +1 -1
  263. package/shared/text-anchor.cjs +6 -7
  264. package/shared/text-anchor.js +6 -7
  265. package/shared/text-field.cjs +1 -1
  266. package/shared/text-field.js +1 -1
  267. package/shared/utils/numberConverter.d.ts +2 -0
  268. package/side-drawer/index.cjs +0 -3
  269. package/side-drawer/index.js +0 -3
  270. package/slider/index.cjs +0 -10
  271. package/slider/index.js +0 -10
  272. package/split-button/index.cjs +0 -13
  273. package/split-button/index.js +0 -13
  274. package/styles/core/all.css +1 -1
  275. package/styles/core/theme.css +1 -1
  276. package/styles/core/typography.css +1 -1
  277. package/styles/tokens/theme-dark.css +4 -4
  278. package/styles/tokens/theme-light.css +4 -4
  279. package/styles/tokens/vivid-2-compat.css +1 -1
  280. package/switch/index.cjs +0 -8
  281. package/switch/index.js +0 -8
  282. package/tab/index.cjs +0 -9
  283. package/tab/index.js +0 -9
  284. package/tab-panel/index.cjs +0 -1
  285. package/tab-panel/index.js +0 -1
  286. package/tabs/index.cjs +0 -16
  287. package/tabs/index.js +0 -16
  288. package/tag/index.cjs +0 -9
  289. package/tag/index.js +0 -9
  290. package/tag-group/index.cjs +0 -2
  291. package/tag-group/index.js +0 -2
  292. package/text-anchor/index.cjs +0 -10
  293. package/text-anchor/index.js +0 -10
  294. package/text-area/index.cjs +0 -19
  295. package/text-area/index.js +0 -19
  296. package/text-field/index.cjs +0 -20
  297. package/text-field/index.js +0 -20
  298. package/time-picker/index.cjs +0 -31
  299. package/time-picker/index.js +0 -31
  300. package/toggletip/index.cjs +0 -22
  301. package/toggletip/index.js +0 -22
  302. package/tooltip/index.cjs +0 -22
  303. package/tooltip/index.js +0 -22
  304. package/tree-item/index.cjs +0 -14
  305. package/tree-item/index.js +0 -14
  306. package/tree-view/index.cjs +0 -9
  307. package/tree-view/index.js +0 -9
  308. package/video-player/index.cjs +0 -12
  309. package/video-player/index.js +0 -12
  310. package/vivid.api.json +21 -0
  311. package/style.css +0 -1
@@ -907,11 +907,11 @@ __decorate([
907
907
  observable
908
908
  ], DataGridCell$1.prototype, "columnDefinition", void 0);
909
909
 
910
- const dataGridStyles = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}\n";
910
+ const dataGridStyles = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}";
911
911
 
912
- const dataGridRowStyles = ".base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([aria-selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}\n";
912
+ const dataGridRowStyles = ".base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([aria-selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}";
913
913
 
914
- const dataGridCellStyles = ":host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}.base{display:flex;box-sizing:border-box;align-items:center;padding:14px 12px;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))));color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}:host(:is([aria-selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;inline-size:100%;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, nowrap)}.header-icon{margin-inline-start:auto}\n";
914
+ const dataGridCellStyles = ":host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}.base{display:flex;box-sizing:border-box;align-items:center;padding:14px 12px;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) );color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}:host(:is([aria-selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;inline-size:100%;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, nowrap)}.header-icon{margin-inline-start:auto}";
915
915
 
916
916
  const DataGridCellSortStates = {
917
917
  none: "none",
@@ -936,13 +936,12 @@ const DataGridCellRole = {
936
936
  };
937
937
 
938
938
  var __defProp$2 = Object.defineProperty;
939
- var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
940
939
  var __decorateClass$2 = (decorators, target, key, kind) => {
941
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
940
+ var result = void 0 ;
942
941
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
943
942
  if (decorator = decorators[i])
944
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
945
- if (kind && result)
943
+ result = (decorator(target, key, result) ) || result;
944
+ if (result)
946
945
  __defProp$2(target, key, result);
947
946
  return result;
948
947
  };
@@ -954,144 +953,6 @@ const DataGridSelectionMode = {
954
953
  multiCell: "multi-cell"
955
954
  };
956
955
  class DataGrid extends DataGrid$1 {
957
- constructor() {
958
- super();
959
- this.#handleKeypress = (e) => {
960
- if (e.key === "Enter" || e.key === " ") {
961
- this.#handleClick(e);
962
- }
963
- };
964
- this.#handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
965
- if (target.getAttribute("role") !== "gridcell")
966
- return;
967
- if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
968
- this.#handleCellSelection({ target, ctrlKey, shiftKey, metaKey });
969
- return;
970
- }
971
- if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
972
- this.#handleRowSelection({ target, ctrlKey, shiftKey, metaKey });
973
- }
974
- };
975
- this.#handleCellSelection = ({
976
- target,
977
- ctrlKey,
978
- shiftKey,
979
- metaKey
980
- }) => {
981
- const cell = target;
982
- if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) {
983
- this.#setSelectedState(cell, !this.#selectedCells.includes(cell));
984
- } else {
985
- const cacheTargetSelection = cell.getAttribute("aria-selected") === "true";
986
- this.#resetSelection();
987
- this.#setSelectedState(cell, !cacheTargetSelection);
988
- }
989
- };
990
- this.#handleRowSelection = ({
991
- target,
992
- ctrlKey,
993
- shiftKey,
994
- metaKey
995
- }) => {
996
- const row = target.parentNode;
997
- if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) {
998
- this.#setSelectedState(row, !this.#selectedRows.includes(row));
999
- } else {
1000
- const cacheTargetSelection = row.getAttribute("aria-selected") === "true";
1001
- this.#resetSelection();
1002
- this.#setSelectedState(row, !cacheTargetSelection);
1003
- }
1004
- };
1005
- this.#changeHandler = {
1006
- handleChange(dataGrid, propertyName) {
1007
- if (propertyName === "columnDefinitions") {
1008
- if (dataGrid.$fastController.isConnected) {
1009
- dataGrid.toggleGeneratedHeader();
1010
- }
1011
- }
1012
- }
1013
- };
1014
- this.#setSelectedState = (cell, selectedState) => {
1015
- cell.setAttribute("aria-selected", selectedState.toString());
1016
- };
1017
- this.#resetSelection = () => {
1018
- if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
1019
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1020
- (cell) => this.#setSelectedState(cell, false)
1021
- );
1022
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1023
- (row) => row.removeAttribute("aria-selected")
1024
- );
1025
- }
1026
- if (this.selectionMode === DataGridSelectionMode.none) {
1027
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1028
- (cell) => cell.removeAttribute("aria-selected")
1029
- );
1030
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1031
- (row) => row.removeAttribute("aria-selected")
1032
- );
1033
- }
1034
- if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
1035
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1036
- (cell) => cell.removeAttribute("aria-selected")
1037
- );
1038
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1039
- (row) => row.setAttribute("aria-selected", "false")
1040
- );
1041
- }
1042
- };
1043
- this.#initSelections = () => {
1044
- if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
1045
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1046
- (cell) => !cell.hasAttribute("aria-selected") && this.#setSelectedState(cell, false)
1047
- );
1048
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1049
- (row) => row.removeAttribute("aria-selected")
1050
- );
1051
- }
1052
- if (this.selectionMode === DataGridSelectionMode.none) {
1053
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1054
- (cell) => cell.removeAttribute("aria-selected")
1055
- );
1056
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1057
- (row) => row.removeAttribute("aria-selected")
1058
- );
1059
- }
1060
- if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
1061
- Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1062
- (cell) => cell.removeAttribute("aria-selected")
1063
- );
1064
- Array.from(this.querySelectorAll('[role="row"]')).forEach(
1065
- (row) => !row.hasAttribute("aria-selected") && row.setAttribute("aria-selected", "false")
1066
- );
1067
- }
1068
- };
1069
- this.addEventListener("click", this.#handleClick);
1070
- this.addEventListener("keydown", this.#handleKeypress);
1071
- const privates = this;
1072
- privates.toggleGeneratedHeader = () => {
1073
- if (privates.generatedHeader !== null) {
1074
- this.removeChild(privates.generatedHeader);
1075
- privates.generatedHeader = null;
1076
- }
1077
- if (this.generateHeader !== GenerateHeaderOptions.none && this.columnDefinitions !== null) {
1078
- const generatedHeaderElement = document.createElement(
1079
- this.rowElementTag
1080
- );
1081
- privates.generatedHeader = generatedHeaderElement;
1082
- privates.generatedHeader.columnDefinitions = this.columnDefinitions;
1083
- privates.generatedHeader.gridTemplateColumns = this.gridTemplateColumns;
1084
- privates.generatedHeader.rowType = this.generateHeader === GenerateHeaderOptions.sticky ? DataGridRowTypes.stickyHeader : DataGridRowTypes.header;
1085
- if (this.firstChild !== null || privates.rowsPlaceholder !== null) {
1086
- this.insertBefore(
1087
- generatedHeaderElement,
1088
- this.firstChild !== null ? this.firstChild : privates.rowsPlaceholder
1089
- );
1090
- }
1091
- return;
1092
- }
1093
- };
1094
- }
1095
956
  /**
1096
957
  *
1097
958
  *
@@ -1121,11 +982,89 @@ class DataGrid extends DataGrid$1 {
1121
982
  }
1122
983
  this.#resetSelection();
1123
984
  }
1124
- #handleKeypress;
1125
- #handleClick;
1126
- #handleCellSelection;
1127
- #handleRowSelection;
1128
- #changeHandler;
985
+ #handleKeypress = (e) => {
986
+ if (e.key === "Enter" || e.key === " ") {
987
+ this.#handleClick(e);
988
+ }
989
+ };
990
+ #handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
991
+ if (target.getAttribute("role") !== "gridcell")
992
+ return;
993
+ if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
994
+ this.#handleCellSelection({ target, ctrlKey, shiftKey, metaKey });
995
+ return;
996
+ }
997
+ if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
998
+ this.#handleRowSelection({ target, ctrlKey, shiftKey, metaKey });
999
+ }
1000
+ };
1001
+ #handleCellSelection = ({
1002
+ target,
1003
+ ctrlKey,
1004
+ shiftKey,
1005
+ metaKey
1006
+ }) => {
1007
+ const cell = target;
1008
+ if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) {
1009
+ this.#setSelectedState(cell, !this.#selectedCells.includes(cell));
1010
+ } else {
1011
+ const cacheTargetSelection = cell.getAttribute("aria-selected") === "true";
1012
+ this.#resetSelection();
1013
+ this.#setSelectedState(cell, !cacheTargetSelection);
1014
+ }
1015
+ };
1016
+ #handleRowSelection = ({
1017
+ target,
1018
+ ctrlKey,
1019
+ shiftKey,
1020
+ metaKey
1021
+ }) => {
1022
+ const row = target.parentNode;
1023
+ if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) {
1024
+ this.#setSelectedState(row, !this.#selectedRows.includes(row));
1025
+ } else {
1026
+ const cacheTargetSelection = row.getAttribute("aria-selected") === "true";
1027
+ this.#resetSelection();
1028
+ this.#setSelectedState(row, !cacheTargetSelection);
1029
+ }
1030
+ };
1031
+ constructor() {
1032
+ super();
1033
+ this.addEventListener("click", this.#handleClick);
1034
+ this.addEventListener("keydown", this.#handleKeypress);
1035
+ const privates = this;
1036
+ privates.toggleGeneratedHeader = () => {
1037
+ if (privates.generatedHeader !== null) {
1038
+ this.removeChild(privates.generatedHeader);
1039
+ privates.generatedHeader = null;
1040
+ }
1041
+ if (this.generateHeader !== GenerateHeaderOptions.none && this.columnDefinitions !== null) {
1042
+ const generatedHeaderElement = document.createElement(
1043
+ this.rowElementTag
1044
+ );
1045
+ privates.generatedHeader = generatedHeaderElement;
1046
+ privates.generatedHeader.columnDefinitions = this.columnDefinitions;
1047
+ privates.generatedHeader.gridTemplateColumns = this.gridTemplateColumns;
1048
+ privates.generatedHeader.rowType = this.generateHeader === GenerateHeaderOptions.sticky ? DataGridRowTypes.stickyHeader : DataGridRowTypes.header;
1049
+ if (this.firstChild !== null || privates.rowsPlaceholder !== null) {
1050
+ this.insertBefore(
1051
+ generatedHeaderElement,
1052
+ this.firstChild !== null ? this.firstChild : privates.rowsPlaceholder
1053
+ );
1054
+ }
1055
+ return;
1056
+ }
1057
+ };
1058
+ }
1059
+ #changeHandler = {
1060
+ handleChange(dataGrid, propertyName) {
1061
+ if (propertyName === "columnDefinitions") {
1062
+ if (dataGrid.$fastController.isConnected) {
1063
+ dataGrid.toggleGeneratedHeader();
1064
+ }
1065
+ }
1066
+ }
1067
+ };
1129
1068
  connectedCallback() {
1130
1069
  super.connectedCallback();
1131
1070
  Observable.getNotifier(this).subscribe(
@@ -1140,9 +1079,61 @@ class DataGrid extends DataGrid$1 {
1140
1079
  "columnDefinitions"
1141
1080
  );
1142
1081
  }
1143
- #setSelectedState;
1144
- #resetSelection;
1145
- #initSelections;
1082
+ #setSelectedState = (cell, selectedState) => {
1083
+ cell.setAttribute("aria-selected", selectedState.toString());
1084
+ };
1085
+ #resetSelection = () => {
1086
+ if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
1087
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1088
+ (cell) => this.#setSelectedState(cell, false)
1089
+ );
1090
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1091
+ (row) => row.removeAttribute("aria-selected")
1092
+ );
1093
+ }
1094
+ if (this.selectionMode === DataGridSelectionMode.none) {
1095
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1096
+ (cell) => cell.removeAttribute("aria-selected")
1097
+ );
1098
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1099
+ (row) => row.removeAttribute("aria-selected")
1100
+ );
1101
+ }
1102
+ if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
1103
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1104
+ (cell) => cell.removeAttribute("aria-selected")
1105
+ );
1106
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1107
+ (row) => row.setAttribute("aria-selected", "false")
1108
+ );
1109
+ }
1110
+ };
1111
+ #initSelections = () => {
1112
+ if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
1113
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1114
+ (cell) => !cell.hasAttribute("aria-selected") && this.#setSelectedState(cell, false)
1115
+ );
1116
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1117
+ (row) => row.removeAttribute("aria-selected")
1118
+ );
1119
+ }
1120
+ if (this.selectionMode === DataGridSelectionMode.none) {
1121
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1122
+ (cell) => cell.removeAttribute("aria-selected")
1123
+ );
1124
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1125
+ (row) => row.removeAttribute("aria-selected")
1126
+ );
1127
+ }
1128
+ if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
1129
+ Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
1130
+ (cell) => cell.removeAttribute("aria-selected")
1131
+ );
1132
+ Array.from(this.querySelectorAll('[role="row"]')).forEach(
1133
+ (row) => !row.hasAttribute("aria-selected") && row.setAttribute("aria-selected", "false")
1134
+ );
1135
+ }
1136
+ };
1146
1137
  static generateColumns(rowData) {
1147
1138
  return Object.keys(rowData).map((property, index) => {
1148
1139
  return {
@@ -1154,19 +1145,18 @@ class DataGrid extends DataGrid$1 {
1154
1145
  }
1155
1146
  __decorateClass$2([
1156
1147
  observable
1157
- ], DataGrid.prototype, "slottedRowElements", 2);
1148
+ ], DataGrid.prototype, "slottedRowElements");
1158
1149
  __decorateClass$2([
1159
1150
  attr({ attribute: "selection-mode" })
1160
- ], DataGrid.prototype, "selectionMode", 2);
1151
+ ], DataGrid.prototype, "selectionMode");
1161
1152
 
1162
1153
  var __defProp$1 = Object.defineProperty;
1163
- var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
1164
1154
  var __decorateClass$1 = (decorators, target, key, kind) => {
1165
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
1155
+ var result = void 0 ;
1166
1156
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1167
1157
  if (decorator = decorators[i])
1168
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1169
- if (kind && result)
1158
+ result = (decorator(target, key, result) ) || result;
1159
+ if (result)
1170
1160
  __defProp$1(target, key, result);
1171
1161
  return result;
1172
1162
  };
@@ -1178,7 +1168,7 @@ class DataGridRow extends DataGridRow$1 {
1178
1168
  }
1179
1169
  __decorateClass$1([
1180
1170
  attr({ attribute: "aria-selected" })
1181
- ], DataGridRow.prototype, "ariaSelected", 2);
1171
+ ], DataGridRow.prototype, "ariaSelected");
1182
1172
 
1183
1173
  function createRowItemTemplate(context) {
1184
1174
  const rowTag = context.tagFor(DataGridRow);
@@ -1232,13 +1222,12 @@ const DataGridTemplate = (context) => {
1232
1222
  };
1233
1223
 
1234
1224
  var __defProp = Object.defineProperty;
1235
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
1236
1225
  var __decorateClass = (decorators, target, key, kind) => {
1237
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
1226
+ var result = void 0 ;
1238
1227
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1239
1228
  if (decorator = decorators[i])
1240
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1241
- if (kind && result)
1229
+ result = (decorator(target, key, result) ) || result;
1230
+ if (result)
1242
1231
  __defProp(target, key, result);
1243
1232
  return result;
1244
1233
  };
@@ -1302,10 +1291,10 @@ class DataGridCell extends DataGridCell$1 {
1302
1291
  }
1303
1292
  __decorateClass([
1304
1293
  attr({ attribute: "aria-selected", mode: "fromView" })
1305
- ], DataGridCell.prototype, "ariaSelected", 2);
1294
+ ], DataGridCell.prototype, "ariaSelected");
1306
1295
  __decorateClass([
1307
1296
  attr({ attribute: "aria-sort" })
1308
- ], DataGridCell.prototype, "ariaSort", 2);
1297
+ ], DataGridCell.prototype, "ariaSort");
1309
1298
 
1310
1299
  function createCellItemTemplate(context) {
1311
1300
  const cellTag = context.tagFor(DataGridCell);
@@ -46,7 +46,7 @@ var __accessCheck = (obj, member, msg) => {
46
46
  };
47
47
  var __privateGet = (obj, member, getter) => {
48
48
  __accessCheck(obj, member, "read from private field");
49
- return getter ? getter.call(obj) : member.get(obj);
49
+ return member.get(obj);
50
50
  };
51
51
  var __privateAdd = (obj, member, value) => {
52
52
  if (member.has(obj))
@@ -55,7 +55,7 @@ var __privateAdd = (obj, member, value) => {
55
55
  };
56
56
  var __privateSet = (obj, member, value, setter) => {
57
57
  __accessCheck(obj, member, "write to private field");
58
- setter ? setter.call(obj, value) : member.set(obj, value);
58
+ member.set(obj, value);
59
59
  return value;
60
60
  };
61
61
  var __privateMethod = (obj, member, method) => {
@@ -44,7 +44,7 @@ var __accessCheck = (obj, member, msg) => {
44
44
  };
45
45
  var __privateGet = (obj, member, getter) => {
46
46
  __accessCheck(obj, member, "read from private field");
47
- return getter ? getter.call(obj) : member.get(obj);
47
+ return member.get(obj);
48
48
  };
49
49
  var __privateAdd = (obj, member, value) => {
50
50
  if (member.has(obj))
@@ -53,7 +53,7 @@ var __privateAdd = (obj, member, value) => {
53
53
  };
54
54
  var __privateSet = (obj, member, value, setter) => {
55
55
  __accessCheck(obj, member, "write to private field");
56
- setter ? setter.call(obj, value) : member.set(obj, value);
56
+ member.set(obj, value);
57
57
  return value;
58
58
  };
59
59
  var __privateMethod = (obj, member, method) => {
@@ -188,7 +188,7 @@ index.__decorate([
188
188
  index.observable
189
189
  ], Accordion$1.prototype, "accordionItems", void 0);
190
190
 
191
- const styles = ".base{display:flex;box-sizing:border-box;flex-direction:column}::slotted(:not(:only-of-type)){border-bottom:1px solid var(--vvd-color-neutral-200)}\n";
191
+ const styles = ".base{display:flex;box-sizing:border-box;flex-direction:column}::slotted(:not(:only-of-type)){border-bottom:1px solid var(--vvd-color-neutral-200)}";
192
192
 
193
193
  class Accordion extends Accordion$1 {
194
194
  constructor() {
@@ -186,7 +186,7 @@ __decorate([
186
186
  observable
187
187
  ], Accordion$1.prototype, "accordionItems", void 0);
188
188
 
189
- const styles = ".base{display:flex;box-sizing:border-box;flex-direction:column}::slotted(:not(:only-of-type)){border-bottom:1px solid var(--vvd-color-neutral-200)}\n";
189
+ const styles = ".base{display:flex;box-sizing:border-box;flex-direction:column}::slotted(:not(:only-of-type)){border-bottom:1px solid var(--vvd-color-neutral-200)}";
190
190
 
191
191
  class Accordion extends Accordion$1 {
192
192
  constructor() {
@@ -13,16 +13,15 @@ const classNames = require('./class-names.cjs');
13
13
  const ref = require('./ref.cjs');
14
14
  const keyCodes = require('./key-codes2.cjs');
15
15
 
16
- const styles = ":host{display:inline-block;margin:16px;inline-size:230px}.base{display:grid;box-sizing:border-box;grid-template-rows:80px 1fr auto}.digits{display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);inline-size:100%}.phone-field{align-self:flex-start;grid-column:1/-1}.digit-btn{--vvd-button-accent-primary: var(--_appearance-color-text);display:flex;overflow:hidden;flex-direction:column;border-radius:16px;box-shadow:0 0 0 1px var(--_appearance-color-outline);inline-size:100%}.digit-btn{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.digit-btn:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}.digit-btn:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--vvd-color-neutral-100)}.digit-btn{--_connotation-color-contrast: var(--vvd-dial-pad-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-soft: var(--vvd-dial-pad-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-dial-pad-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-fierce: var(--vvd-dial-pad-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm-all: var(--vvd-dial-pad-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-faint: var(--vvd-dial-pad-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-dim: var(--vvd-dial-pad-accent-dim, var(--vvd-color-neutral-200))}.digit-btn:not(.disabled) .digit-btn-num{color:var(--vvd-color-canvas-text)}.call-btn{margin-top:32px;grid-column:1/-1}\n";
16
+ const styles = ":host{display:inline-block;margin:16px;inline-size:230px}.base{display:grid;box-sizing:border-box;grid-template-rows:80px 1fr auto}.base.no-input{grid-template-rows:1fr auto}.digits{display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);inline-size:100%}.phone-field{align-self:flex-start;grid-column:1/-1}.digit-btn{--vvd-button-accent-primary: var(--_appearance-color-text);display:flex;overflow:hidden;flex-direction:column;border-radius:16px;box-shadow:0 0 0 1px var(--_appearance-color-outline);inline-size:100%}.digit-btn{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.digit-btn:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm-all)}.digit-btn:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--vvd-color-neutral-100)}.digit-btn{--_connotation-color-contrast: var(--vvd-dial-pad-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-soft: var(--vvd-dial-pad-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-dial-pad-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-fierce: var(--vvd-dial-pad-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm-all: var(--vvd-dial-pad-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-faint: var(--vvd-dial-pad-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-dim: var(--vvd-dial-pad-accent-dim, var(--vvd-color-neutral-200))}.digit-btn:not(.disabled) .digit-btn-num{color:var(--vvd-color-canvas-text)}.call-btn{margin-top:32px;grid-column:1/-1}";
17
17
 
18
18
  var __defProp = Object.defineProperty;
19
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
20
19
  var __decorateClass = (decorators, target, key, kind) => {
21
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
20
+ var result = void 0 ;
22
21
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
23
22
  if (decorator = decorators[i])
24
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
25
- if (kind && result)
23
+ result = (decorator(target, key, result) ) || result;
24
+ if (result)
26
25
  __defProp(target, key, result);
27
26
  return result;
28
27
  };
@@ -34,8 +33,12 @@ class DialPad extends index.FoundationElement {
34
33
  this.value = "";
35
34
  this.pattern = "^[0-9#*]*$";
36
35
  this.disabled = false;
36
+ this.pending = false;
37
37
  this.callActive = false;
38
38
  this.noCall = false;
39
+ this.noInput = false;
40
+ this.endCallButtonLabel = null;
41
+ this.callButtonLabel = null;
39
42
  /**
40
43
  *
41
44
  * @internal
@@ -100,30 +103,42 @@ class DialPad extends index.FoundationElement {
100
103
  }
101
104
  __decorateClass([
102
105
  index.attr({ attribute: "helper-text" })
103
- ], DialPad.prototype, "helperText", 2);
106
+ ], DialPad.prototype, "helperText");
104
107
  __decorateClass([
105
108
  index.attr
106
- ], DialPad.prototype, "placeholder", 2);
109
+ ], DialPad.prototype, "placeholder");
107
110
  __decorateClass([
108
111
  index.attr({ mode: "fromView" })
109
- ], DialPad.prototype, "value", 2);
112
+ ], DialPad.prototype, "value");
110
113
  __decorateClass([
111
114
  index.attr({ mode: "fromView" })
112
- ], DialPad.prototype, "pattern", 2);
115
+ ], DialPad.prototype, "pattern");
113
116
  __decorateClass([
114
117
  index.attr({ mode: "boolean" })
115
- ], DialPad.prototype, "disabled", 2);
118
+ ], DialPad.prototype, "disabled");
119
+ __decorateClass([
120
+ index.attr({ mode: "boolean" })
121
+ ], DialPad.prototype, "pending");
116
122
  __decorateClass([
117
123
  index.attr({ attribute: "call-active", mode: "boolean" })
118
- ], DialPad.prototype, "callActive", 2);
124
+ ], DialPad.prototype, "callActive");
119
125
  __decorateClass([
120
126
  index.attr({ mode: "boolean", attribute: "no-call" })
121
- ], DialPad.prototype, "noCall", 2);
127
+ ], DialPad.prototype, "noCall");
128
+ __decorateClass([
129
+ index.attr({ mode: "boolean", attribute: "no-input" })
130
+ ], DialPad.prototype, "noInput");
131
+ __decorateClass([
132
+ index.attr({ attribute: "end-call-button-label" })
133
+ ], DialPad.prototype, "endCallButtonLabel");
134
+ __decorateClass([
135
+ index.attr({ attribute: "call-button-label" })
136
+ ], DialPad.prototype, "callButtonLabel");
122
137
  applyMixins.applyMixins(DialPad, localized.Localized);
123
138
 
124
- const getClasses = (_) => classNames.classNames("base");
139
+ const getClasses = ({ noInput }) => classNames.classNames("base", ["no-input", Boolean(noInput)]);
125
140
  function handleKeyDown(x, e) {
126
- if (e.key === keyCodes.keyEnter) {
141
+ if (e.key === keyCodes.keyEnter && !x.pending && !x.disabled && !x.callActive && !x.noCall && x.value.length > 0 && e.target instanceof HTMLInputElement) {
127
142
  x._onDial();
128
143
  } else {
129
144
  const key = e.key === "*" ? "Asterisk" : e.key === "#" ? "Hashtag" : e.key;
@@ -140,7 +155,7 @@ function handleKeyDown(x, e) {
140
155
  function renderTextField(textFieldTag, buttonTag) {
141
156
  return index.html`<${textFieldTag} ${ref.ref(
142
157
  "_textFieldEl"
143
- )} class="phone-field" internal-part
158
+ )} class="phone-field" internal-part type="tel"
144
159
  value="${(x) => x.value}" placeholder="${(x) => x.placeholder}"
145
160
  ?disabled="${(x) => x.disabled}" helper-text="${(x) => x.helperText}" pattern="${(x) => x.pattern}"
146
161
  aria-label="${(x) => x.locale.dialPad.inputLabel}"
@@ -151,7 +166,7 @@ function renderTextField(textFieldTag, buttonTag) {
151
166
  (x) => x.value && x.value.length && x.value.length > 0,
152
167
  index.html`<${buttonTag}
153
168
  slot="action-items" size='super-condensed' icon="backspace-line" aria-label="${(x) => x.deleteAriaLabel || x.locale.dialPad.deleteLabel}"
154
- appearance='ghost' ?disabled="${(x) => x.disabled}" @click="${(x) => x._deleteLastCharacter()}">
169
+ appearance='ghost' ?disabled="${(x) => x.disabled || x.callActive}" @click="${(x) => x._deleteLastCharacter()}">
155
170
  </${buttonTag}>`
156
171
  )}
157
172
  </${textFieldTag}>`;
@@ -203,8 +218,9 @@ function renderDialButton(buttonTag) {
203
218
  icon="${(x) => x.callActive ? "disable-call-line" : "call-line"}"
204
219
  connotation="${(x) => x.callActive ? "alert" : "cta"}"
205
220
  ?disabled="${(x) => x.disabled}"
221
+ ?pending="${(x) => x.pending}"
206
222
  @click="${(x) => x._onDial()}"
207
- label="${(x) => x.callActive ? x.locale.dialPad.endCallButtonLabel : x.locale.dialPad.callButtonLabel}">
223
+ label="${(x) => x.callActive ? x.endCallButtonLabel || x.locale.dialPad.endCallButtonLabel : x.callButtonLabel || x.locale.dialPad.callButtonLabel}">
208
224
  </${buttonTag}>`;
209
225
  }
210
226
  const DialPadTemplate = (context) => {
@@ -212,7 +228,7 @@ const DialPadTemplate = (context) => {
212
228
  const iconTag = context.tagFor(icon.Icon);
213
229
  const textFieldTag = context.tagFor(definition$1.TextField);
214
230
  return index.html` <div class="${getClasses}">
215
- ${renderTextField(textFieldTag, buttonTag)}
231
+ ${when.when((x) => !x.noInput, renderTextField(textFieldTag, buttonTag))}
216
232
  <div class="digits">${renderDigits(buttonTag, iconTag)}</div>
217
233
  ${when.when((x) => !x.noCall, renderDialButton(buttonTag))}
218
234
  </div>`;