q2-tecton-elements 1.71.4 → 1.73.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 (415) hide show
  1. package/dist/bundle-report.json +32564 -26687
  2. package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
  3. package/dist/cjs/click-elsewhere_3.cjs.entry.js +85 -20
  4. package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
  5. package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
  6. package/dist/cjs/{index-SpDCZABA.js → index-BqyWHpNu.js} +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{q2-action-group_2.cjs.entry.js → q2-action-group.cjs.entry.js} +1 -89
  9. package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
  10. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-badge_2.cjs.entry.js +113 -12
  12. package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
  13. package/dist/cjs/q2-calendar.cjs.entry.js +14 -7
  14. package/dist/cjs/q2-card-image.cjs.entry.js +4 -4
  15. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  16. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  17. package/dist/cjs/q2-carousel.cjs.entry.js +20 -6
  18. package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
  19. package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
  20. package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
  21. package/dist/cjs/q2-checkbox-group.cjs.entry.js +3 -3
  22. package/dist/cjs/q2-checkbox_2.cjs.entry.js +9 -6
  23. package/dist/cjs/q2-context.cjs.entry.js +6 -5
  24. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
  26. package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
  27. package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
  28. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  29. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  30. package/dist/cjs/q2-dropdown.cjs.entry.js +4 -4
  31. package/dist/cjs/q2-editable-field.cjs.entry.js +51 -37
  32. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  33. package/dist/cjs/q2-file-picker.cjs.entry.js +60 -4
  34. package/dist/cjs/q2-form.cjs.entry.js +1 -1
  35. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  36. package/dist/cjs/q2-icon.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-item.cjs.entry.js +21 -3
  38. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  39. package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
  40. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-message.cjs.entry.js +3 -3
  42. package/dist/cjs/q2-meter.cjs.entry.js +2 -2
  43. package/dist/cjs/q2-modal.cjs.entry.js +59 -17
  44. package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
  45. package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
  46. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  47. package/dist/cjs/q2-otp.cjs.entry.js +5 -5
  48. package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
  49. package/dist/cjs/q2-pill.cjs.entry.js +8 -5
  50. package/dist/cjs/q2-radio-group.cjs.entry.js +22 -4
  51. package/dist/cjs/q2-radio.cjs.entry.js +3 -3
  52. package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
  53. package/dist/cjs/q2-resize-observer.cjs.entry.js +92 -0
  54. package/dist/cjs/q2-search.cjs.entry.js +4 -4
  55. package/dist/cjs/q2-section.cjs.entry.js +7 -7
  56. package/dist/cjs/q2-select.cjs.entry.js +41 -21
  57. package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
  58. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  59. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  60. package/dist/cjs/q2-surface.cjs.entry.js +1 -1
  61. package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
  62. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  63. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  64. package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
  65. package/dist/cjs/q2-toast.cjs.entry.js +1 -1
  66. package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
  67. package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
  68. package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -3
  69. package/dist/collection/collection-manifest.json +2 -0
  70. package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
  71. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
  72. package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
  73. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  74. package/dist/collection/components/q2-btn/q2-btn.css +152 -146
  75. package/dist/collection/components/q2-btn/q2-btn.js +10 -4
  76. package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +229 -20
  77. package/dist/collection/components/q2-calendar/q2-calendar.css +3 -0
  78. package/dist/collection/components/q2-calendar/q2-calendar.js +20 -7
  79. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  80. package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +26 -15
  81. package/dist/collection/components/q2-card/test/q2-card-test.vr.js +4 -0
  82. package/dist/collection/components/q2-card-image/q2-card-image.css +89 -134
  83. package/dist/collection/components/q2-card-image/q2-card-image.js +4 -4
  84. package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +4 -0
  85. package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
  86. package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +45 -0
  87. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  88. package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
  89. package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
  90. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
  91. package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
  92. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
  93. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
  94. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
  95. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
  96. package/dist/collection/components/q2-checkbox/q2-checkbox.css +2 -2
  97. package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
  98. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +2 -0
  99. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
  100. package/dist/collection/components/q2-context/q2-context.css +5 -0
  101. package/dist/collection/components/q2-context/q2-context.js +4 -3
  102. package/dist/collection/components/q2-context/test/q2-context-test.vr.js +14 -4
  103. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  104. package/dist/collection/components/q2-data-table/q2-data-table.css +6 -0
  105. package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
  106. package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +52 -0
  107. package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
  108. package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
  109. package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
  110. package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
  111. package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
  112. package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
  113. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  114. package/dist/collection/components/q2-dropdown/q2-dropdown.css +2 -0
  115. package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
  116. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.vr.js +30 -0
  117. package/dist/collection/components/q2-editable-field/q2-editable-field.css +2 -0
  118. package/dist/collection/components/q2-editable-field/q2-editable-field.js +59 -45
  119. package/dist/collection/components/q2-example/q2-example.js +1 -1
  120. package/dist/collection/components/q2-file-picker/q2-file-picker.css +27 -0
  121. package/dist/collection/components/q2-file-picker/q2-file-picker.js +98 -2
  122. package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +22 -0
  123. package/dist/collection/components/q2-form/q2-form.js +1 -1
  124. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  125. package/dist/collection/components/q2-input/q2-input.css +67 -1
  126. package/dist/collection/components/q2-input/q2-input.js +160 -15
  127. package/dist/collection/components/q2-input/test/q2-input-test.vr.js +35 -0
  128. package/dist/collection/components/q2-item/q2-item.css +3 -1
  129. package/dist/collection/components/q2-item/q2-item.js +19 -1
  130. package/dist/collection/components/q2-item/test/q2-item-test.vr.js +8 -2
  131. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  132. package/dist/collection/components/q2-list/q2-list.js +1 -1
  133. package/dist/collection/components/q2-message/q2-message.css +5 -5
  134. package/dist/collection/components/q2-message/q2-message.js +1 -1
  135. package/dist/collection/components/q2-meter/q2-meter.js +1 -1
  136. package/dist/collection/components/q2-modal/q2-modal.css +40 -3
  137. package/dist/collection/components/q2-modal/q2-modal.js +100 -16
  138. package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +32 -7
  139. package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
  140. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  141. package/dist/collection/components/q2-option-list/q2-option-list.js +33 -4
  142. package/dist/collection/components/q2-otp/q2-otp.js +4 -4
  143. package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
  144. package/dist/collection/components/q2-pill/q2-pill.css +2 -2
  145. package/dist/collection/components/q2-pill/q2-pill.js +6 -3
  146. package/dist/collection/components/q2-popover/q2-popover.css +4 -2
  147. package/dist/collection/components/q2-popover/q2-popover.js +50 -14
  148. package/dist/collection/components/q2-radio/q2-radio.css +158 -104
  149. package/dist/collection/components/q2-radio/q2-radio.js +5 -2
  150. package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +25 -2
  151. package/dist/collection/components/q2-radio-group/q2-radio-group.css +39 -2
  152. package/dist/collection/components/q2-radio-group/q2-radio-group.js +73 -4
  153. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +43 -1
  154. package/dist/collection/components/q2-relative-time/q2-relative-time.js +2 -2
  155. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  156. package/dist/collection/components/q2-search/q2-search.css +2 -0
  157. package/dist/collection/components/q2-search/q2-search.js +6 -3
  158. package/dist/collection/components/q2-section/q2-section.css +2 -0
  159. package/dist/collection/components/q2-section/q2-section.js +6 -6
  160. package/dist/collection/components/q2-select/q2-select.css +3 -0
  161. package/dist/collection/components/q2-select/q2-select.js +48 -22
  162. package/dist/collection/components/q2-select/test/q2-select-test.vr.js +13 -0
  163. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  164. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
  165. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  166. package/dist/collection/components/q2-surface/q2-surface.js +1 -1
  167. package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
  168. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  169. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  170. package/dist/collection/components/q2-tag/q2-tag.js +6 -3
  171. package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
  172. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
  173. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +5 -3
  174. package/dist/collection/utils/chart-keyboard.js +76 -0
  175. package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
  176. package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
  177. package/dist/collection/utils/index.js +2 -2
  178. package/dist/collection/utils/test/vr-helpers.js +16 -2
  179. package/dist/components/charting.js +1603 -1532
  180. package/dist/components/dataSample.js +7 -7
  181. package/dist/components/index.js +57 -53
  182. package/dist/components/index2.js +3 -3
  183. package/dist/components/q2-action-sheet.js +224 -103
  184. package/dist/components/q2-avatar2.js +8 -8
  185. package/dist/components/q2-btn2.js +2 -2
  186. package/dist/components/q2-calendar.js +15 -10
  187. package/dist/components/q2-card-image.js +24 -24
  188. package/dist/components/q2-carousel-pane2.js +3 -3
  189. package/dist/components/q2-carousel.js +37 -24
  190. package/dist/components/q2-chart-area.js +415 -369
  191. package/dist/components/q2-chart-bar.js +193 -148
  192. package/dist/components/q2-chart-donut.js +185 -158
  193. package/dist/components/q2-checkbox-group.js +12 -12
  194. package/dist/components/q2-checkbox2.js +12 -12
  195. package/dist/components/q2-context.js +30 -29
  196. package/dist/components/q2-currency.js +9 -9
  197. package/dist/components/q2-data-table.js +111 -111
  198. package/dist/components/q2-date-calendar.d.ts +11 -0
  199. package/dist/components/q2-date-calendar.js +5 -0
  200. package/dist/components/q2-date-calendar2.js +678 -0
  201. package/dist/components/q2-date-picker.d.ts +11 -0
  202. package/dist/components/q2-date-picker.js +5 -0
  203. package/dist/components/q2-date-picker2.js +875 -0
  204. package/dist/components/q2-detail.js +3 -3
  205. package/dist/components/q2-dropdown.js +13 -13
  206. package/dist/components/q2-editable-field.js +45 -36
  207. package/dist/components/q2-example.js +11 -11
  208. package/dist/components/q2-file-picker.js +71 -11
  209. package/dist/components/q2-form.js +6 -6
  210. package/dist/components/q2-formatted-text.js +2 -2
  211. package/dist/components/q2-input2.js +268 -163
  212. package/dist/components/q2-item2.js +33 -23
  213. package/dist/components/q2-legend2.js +7 -7
  214. package/dist/components/q2-list2.js +6 -6
  215. package/dist/components/q2-message2.js +29 -29
  216. package/dist/components/q2-meter.js +7 -7
  217. package/dist/components/q2-modal.js +94 -76
  218. package/dist/components/q2-month-picker.js +17 -17
  219. package/dist/components/q2-mutation-observer.js +1 -1
  220. package/dist/components/q2-optgroup2.js +7 -7
  221. package/dist/components/q2-option-list2.js +52 -32
  222. package/dist/components/q2-otp.js +8 -8
  223. package/dist/components/q2-pagination.js +67 -67
  224. package/dist/components/q2-pill.js +17 -15
  225. package/dist/components/q2-popover2.js +77 -53
  226. package/dist/components/q2-radio-group.js +70 -40
  227. package/dist/components/q2-radio.js +40 -55
  228. package/dist/components/q2-relative-time.js +5 -5
  229. package/dist/components/q2-resize-observer2.js +23 -23
  230. package/dist/components/q2-search.js +6 -6
  231. package/dist/components/q2-section.js +33 -33
  232. package/dist/components/q2-select2.js +47 -40
  233. package/dist/components/q2-stepper-pane.js +17 -13
  234. package/dist/components/q2-stepper-vertical.js +4 -4
  235. package/dist/components/q2-stepper.js +57 -57
  236. package/dist/components/q2-surface.js +3 -3
  237. package/dist/components/q2-tab-container.js +18 -18
  238. package/dist/components/q2-tab-pane.js +2 -2
  239. package/dist/components/q2-tag2.js +8 -6
  240. package/dist/components/q2-textarea.js +3 -3
  241. package/dist/components/sectorHelper.js +78 -78
  242. package/dist/components/tecton-tab-pane.js +12 -11
  243. package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
  244. package/dist/esm/click-elsewhere_3.entry.js +85 -20
  245. package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
  246. package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
  247. package/dist/esm/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
  248. package/dist/esm/loader.js +1 -1
  249. package/dist/esm/{q2-action-group_2.entry.js → q2-action-group.entry.js} +3 -90
  250. package/dist/esm/q2-action-sheet.entry.js +99 -19
  251. package/dist/esm/q2-avatar.entry.js +1 -1
  252. package/dist/esm/q2-badge_2.entry.js +113 -12
  253. package/dist/esm/q2-btn_2.entry.js +2 -2
  254. package/dist/esm/q2-calendar.entry.js +14 -7
  255. package/dist/esm/q2-card-image.entry.js +4 -4
  256. package/dist/esm/q2-card.entry.js +1 -1
  257. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  258. package/dist/esm/q2-carousel.entry.js +20 -6
  259. package/dist/esm/q2-chart-area.entry.js +38 -7
  260. package/dist/esm/q2-chart-bar.entry.js +39 -8
  261. package/dist/esm/q2-chart-donut.entry.js +31 -13
  262. package/dist/esm/q2-checkbox-group.entry.js +3 -3
  263. package/dist/esm/q2-checkbox_2.entry.js +9 -6
  264. package/dist/esm/q2-context.entry.js +6 -5
  265. package/dist/esm/q2-currency.entry.js +1 -1
  266. package/dist/esm/q2-data-table.entry.js +7 -7
  267. package/dist/esm/q2-date-calendar.entry.js +450 -0
  268. package/dist/esm/q2-date-picker_2.entry.js +965 -0
  269. package/dist/esm/q2-detail.entry.js +2 -2
  270. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  271. package/dist/esm/q2-dropdown.entry.js +4 -4
  272. package/dist/esm/q2-editable-field.entry.js +51 -37
  273. package/dist/esm/q2-example.entry.js +1 -1
  274. package/dist/esm/q2-file-picker.entry.js +60 -4
  275. package/dist/esm/q2-form.entry.js +1 -1
  276. package/dist/esm/q2-formatted-text.entry.js +1 -1
  277. package/dist/esm/q2-icon.entry.js +1 -1
  278. package/dist/esm/q2-item.entry.js +21 -3
  279. package/dist/esm/q2-legend.entry.js +1 -1
  280. package/dist/esm/q2-link_2.entry.js +2 -2
  281. package/dist/esm/q2-loc.entry.js +1 -1
  282. package/dist/esm/q2-message.entry.js +3 -3
  283. package/dist/esm/q2-meter.entry.js +2 -2
  284. package/dist/esm/q2-modal.entry.js +59 -17
  285. package/dist/esm/q2-month-picker.entry.js +3 -3
  286. package/dist/esm/q2-mutation-observer.entry.js +1 -1
  287. package/dist/esm/q2-option.entry.js +1 -1
  288. package/dist/esm/q2-otp.entry.js +5 -5
  289. package/dist/esm/q2-pagination.entry.js +4 -4
  290. package/dist/esm/q2-pill.entry.js +8 -5
  291. package/dist/esm/q2-radio-group.entry.js +22 -4
  292. package/dist/esm/q2-radio.entry.js +3 -3
  293. package/dist/esm/q2-relative-time.entry.js +3 -3
  294. package/dist/esm/q2-resize-observer.entry.js +90 -0
  295. package/dist/esm/q2-search.entry.js +4 -4
  296. package/dist/esm/q2-section.entry.js +7 -7
  297. package/dist/esm/q2-select.entry.js +41 -21
  298. package/dist/esm/q2-stepper-pane.entry.js +2 -2
  299. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  300. package/dist/esm/q2-stepper.entry.js +2 -2
  301. package/dist/esm/q2-surface.entry.js +1 -1
  302. package/dist/esm/q2-tab-container.entry.js +2 -2
  303. package/dist/esm/q2-tab-pane.entry.js +1 -1
  304. package/dist/esm/q2-tecton-elements.js +1 -1
  305. package/dist/esm/q2-textarea.entry.js +2 -2
  306. package/dist/esm/q2-toast.entry.js +1 -1
  307. package/dist/esm/q2-tooltip.entry.js +1 -1
  308. package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
  309. package/dist/esm/tecton-tab-pane.entry.js +5 -3
  310. package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
  311. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +98 -54
  312. package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
  313. package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
  314. package/dist/q2-tecton-elements/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
  315. package/dist/q2-tecton-elements/{q2-action-group_2.entry.js → q2-action-group.entry.js} +35 -113
  316. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
  317. package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
  318. package/dist/q2-tecton-elements/q2-badge_2.entry.js +240 -140
  319. package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
  320. package/dist/q2-tecton-elements/q2-calendar.entry.js +18 -13
  321. package/dist/q2-tecton-elements/q2-card-image.entry.js +9 -9
  322. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  323. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
  324. package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
  325. package/dist/q2-tecton-elements/q2-chart-area.entry.js +190 -144
  326. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +382 -338
  327. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +186 -160
  328. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +8 -8
  329. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +21 -19
  330. package/dist/q2-tecton-elements/q2-context.entry.js +18 -17
  331. package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
  332. package/dist/q2-tecton-elements/q2-data-table.entry.js +38 -38
  333. package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
  334. package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
  335. package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
  336. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
  337. package/dist/q2-tecton-elements/q2-dropdown.entry.js +10 -10
  338. package/dist/q2-tecton-elements/q2-editable-field.entry.js +50 -41
  339. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  340. package/dist/q2-tecton-elements/q2-file-picker.entry.js +62 -7
  341. package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
  342. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  343. package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
  344. package/dist/q2-tecton-elements/q2-item.entry.js +27 -17
  345. package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
  346. package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
  347. package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
  348. package/dist/q2-tecton-elements/q2-message.entry.js +30 -30
  349. package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
  350. package/dist/q2-tecton-elements/q2-modal.entry.js +61 -45
  351. package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
  352. package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
  353. package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
  354. package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
  355. package/dist/q2-tecton-elements/q2-pagination.entry.js +20 -20
  356. package/dist/q2-tecton-elements/q2-pill.entry.js +43 -41
  357. package/dist/q2-tecton-elements/q2-radio-group.entry.js +55 -34
  358. package/dist/q2-tecton-elements/q2-radio.entry.js +38 -53
  359. package/dist/q2-tecton-elements/q2-relative-time.entry.js +11 -11
  360. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +81 -0
  361. package/dist/q2-tecton-elements/q2-search.entry.js +7 -7
  362. package/dist/q2-tecton-elements/q2-section.entry.js +25 -25
  363. package/dist/q2-tecton-elements/q2-select.entry.js +28 -21
  364. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +19 -15
  365. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
  366. package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
  367. package/dist/q2-tecton-elements/q2-surface.entry.js +3 -3
  368. package/dist/q2-tecton-elements/q2-tab-container.entry.js +15 -15
  369. package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
  370. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  371. package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
  372. package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
  373. package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
  374. package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
  375. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +8 -7
  376. package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
  377. package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
  378. package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
  379. package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
  380. package/dist/types/components/q2-card-image/q2-card-image.d.ts +1 -1
  381. package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
  382. package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
  383. package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
  384. package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
  385. package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
  386. package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
  387. package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
  388. package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
  389. package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
  390. package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
  391. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
  392. package/dist/types/components/q2-dropdown/test/q2-dropdown-test.vr.d.ts +1 -0
  393. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +20 -2
  394. package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +20 -0
  395. package/dist/types/components/q2-input/q2-input.d.ts +32 -4
  396. package/dist/types/components/q2-item/q2-item.d.ts +3 -0
  397. package/dist/types/components/q2-modal/q2-modal.d.ts +10 -1
  398. package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
  399. package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
  400. package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
  401. package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +18 -2
  402. package/dist/types/components/q2-search/q2-search.d.ts +3 -1
  403. package/dist/types/components/q2-select/q2-select.d.ts +12 -4
  404. package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
  405. package/dist/types/components.d.ts +1112 -195
  406. package/dist/types/global.d.ts +1 -0
  407. package/dist/types/index.d.ts +1 -0
  408. package/dist/types/utils/chart-keyboard.d.ts +16 -0
  409. package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
  410. package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
  411. package/dist/types/utils/test/vr-helpers.d.ts +2 -0
  412. package/package.json +3 -3
  413. package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
  414. package/dist/esm/q2-optgroup.entry.js +0 -68
  415. package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cqkz7Bnm.js';
2
- import { o as overrideFocus, l as loc } from './index-Cps4jSQM.js';
2
+ import { o as overrideFocus, i as isEventFromElement, l as loc } from './index-CP8pXJ-l.js';
3
+ import { _ as __extends, ad as createSymbol, ae as enterEmphasis, af as leaveEmphasis, A as updateProps, M as saveOldStyle, y as initProps, W as getLabelStatesModels, ag as normalizeSymbolOffset, ah as ZRImage, V as extend, X as setLabelStyle, Z as toggleHoverEmphasis, h as getECData, ai as removeElement, aj as normalizeSymbolSize, O as Group, L as traverseElements, ak as isObject, H as SeriesModel, F as map, al as isDimensionStacked, K as isNumber, am as createFloat32Array, e as PathProxy, an as cubicRootAt, ao as cubicAt, c as Path, ap as bind, aq as convertToColorString, d as defaults, $ as setStatesStylesFromModel, ar as queryDataIndex, Q as ChartView, as as setStatesFlag, g as isFunction, at as ZRText, au as interpolateRawValues, x as labelInner, v as each, av as LinearGradient, S as SPECIAL_STATES, aw as lerp, ax as createRenderPlanner, ay as cubicSubdivide, az as fromPoints, aA as clonePath, aB as Polygon, R as Sector, U as Rect, B as BoundingRect, P as Point, T as Transformable, l as lerp$1, aC as getAnimationConfig, E as isArray, m as makeInner, aD as normalizeToArray, aE as SERIES_UNIVERSAL_TRANSITION_PROP, aF as createHashMap, aG as DataDiffer, o as filter, aH as Displayable, aI as getOldStyle, a4 as use, a7 as createChartKeyboardNavigation, a8 as init, a9 as chartPointDescription, aa as formatValue, ab as getCSSProperty, ac as isValidColor, a5 as install$1, a6 as install$2 } from './charting-DFXJklqs.js';
3
4
  import { m as mirrorEmit } from './mirror-emit-DUjY_ucm.js';
4
- import { _ as __extends, ab as createSymbol, ac as enterEmphasis, ad as leaveEmphasis, A as updateProps, M as saveOldStyle, y as initProps, W as getLabelStatesModels, ae as normalizeSymbolOffset, af as ZRImage, V as extend, X as setLabelStyle, Z as toggleHoverEmphasis, h as getECData, ag as removeElement, ah as normalizeSymbolSize, O as Group, L as traverseElements, ai as isObject, H as SeriesModel, F as map, aj as isDimensionStacked, K as isNumber, ak as createFloat32Array, e as PathProxy, al as cubicRootAt, am as cubicAt, c as Path, an as bind, ao as convertToColorString, d as defaults, $ as setStatesStylesFromModel, ap as queryDataIndex, Q as ChartView, aq as setStatesFlag, g as isFunction, ar as ZRText, as as interpolateRawValues, x as labelInner, v as each, at as LinearGradient, S as SPECIAL_STATES, au as lerp, av as createRenderPlanner, aw as cubicSubdivide, ax as fromPoints, ay as clonePath, az as Polygon, R as Sector, U as Rect, B as BoundingRect, P as Point, T as Transformable, l as lerp$1, aA as getAnimationConfig, E as isArray, m as makeInner, aB as normalizeToArray, aC as SERIES_UNIVERSAL_TRANSITION_PROP, aD as createHashMap, aE as DataDiffer, o as filter, aF as Displayable, aG as getOldStyle, a4 as use, a7 as init, a8 as getCSSProperty, a9 as isValidColor, aa as formatValue, a5 as install$1, a6 as install$2 } from './charting-DOZct-UB.js';
5
- import { g as getDefaultLabel, c as createSeriesData, b as getDefaultInterpolatedLabel, i as isCoordinateSystemType, h as createGridClipPath, j as createPolarClipPath, d as dataSample, e as install$3, f as install$4 } from './dataSample-Dm1zpQNi.js';
5
+ import { g as getDefaultLabel, c as createSeriesData, b as getDefaultInterpolatedLabel, i as isCoordinateSystemType, h as createGridClipPath, j as createPolarClipPath, d as dataSample, e as install$3, f as install$4 } from './dataSample-CP_VKNqt.js';
6
6
 
7
7
  var Symbol = /** @class */function (_super) {
8
8
  __extends(Symbol, _super);
@@ -3982,7 +3982,7 @@ function installUniversalTransition(registers) {
3982
3982
  });
3983
3983
  }
3984
3984
 
3985
- const q2ChartAreaCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{width:var(--tct-area-chart-width, 100%);height:var(--tct-area-chart-height, 100%);display:block}.container{width:100%;height:100%}.chart-container{width:100%;height:100%}`;
3985
+ const q2ChartAreaCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{width:var(--tct-area-chart-width, 100%);height:var(--tct-area-chart-height, 100%);display:block}.container{position:relative;width:100%;height:100%}.chart-keyboard-value{position:absolute;top:0;right:0;padding:var(--app-scale-1x);background:var(--t-base);color:var(--t-text);pointer-events:none}.chart-container{width:100%;height:100%}`;
3986
3986
 
3987
3987
  use([install$1, install, install$2, installUniversalTransition, install$3, install$4]);
3988
3988
  const Q2ChartArea = class {
@@ -3990,6 +3990,18 @@ const Q2ChartArea = class {
3990
3990
  registerInstance(this, hostRef);
3991
3991
  this.change = createEvent(this, "change", 7);
3992
3992
  this.tctChange = createEvent(this, "tctChange", 7);
3993
+ this.keyboard = createChartKeyboardNavigation({
3994
+ getChart: () => this.chart,
3995
+ getData: () => this.data,
3996
+ onChange: index => {
3997
+ this.keyboardIndex = index;
3998
+ if (index !== null)
3999
+ mirrorEmit(this, ['change', 'tctChange'], { index, data: this.data[index] });
4000
+ },
4001
+ });
4002
+ // #endregion
4003
+ // #region State Properties
4004
+ this.keyboardIndex = null;
3993
4005
  /** An array of objects that contain the data to be displayed. */
3994
4006
  this.data = [];
3995
4007
  /** Controls visibility of labels on the name axis. */
@@ -4019,6 +4031,7 @@ const Q2ChartArea = class {
4019
4031
  // #endregion
4020
4032
  // #region Component Lifecycle Events
4021
4033
  disconnectedCallback() {
4034
+ this.keyboard.onBlur();
4022
4035
  // CRITICAL: Dispose eCharts instance to prevent memory leaks
4023
4036
  // eCharts holds references to canvas, event listeners, and animation frames
4024
4037
  if (this.chart) {
@@ -4045,6 +4058,13 @@ const Q2ChartArea = class {
4045
4058
  overrideFocus(this.hostElement);
4046
4059
  }
4047
4060
  // #endregion
4061
+ // #region Listeners
4062
+ delegateFocus(event) {
4063
+ var _a;
4064
+ if (isEventFromElement(event, this.hostElement) && this.data.length)
4065
+ (_a = this.chartContainer) === null || _a === void 0 ? void 0 : _a.focus();
4066
+ }
4067
+ // #endregion
4048
4068
  // #region Public Methods API
4049
4069
  /**
4050
4070
  * A method to fire change event on hover on a point.
@@ -4063,9 +4083,18 @@ const Q2ChartArea = class {
4063
4083
  if (!this.chart)
4064
4084
  return;
4065
4085
  this.updateChart(this.chart);
4086
+ this.keyboard.refresh();
4066
4087
  }
4067
4088
  // #endregion
4068
4089
  // #region Local Methods
4090
+ get keyboardDescription() {
4091
+ var _a;
4092
+ const datum = this.data[this.keyboardIndex];
4093
+ if (this.keyboardIndex === null || !datum)
4094
+ return '';
4095
+ const decimals = ((_a = this.formatModifier) === null || _a === void 0 ? void 0 : _a.includes('dec')) ? this.formatModifier.replace('dec', '') : 0;
4096
+ return chartPointDescription(datum.name, formatValue(datum.value || 0, { type: this.format, decimals }), this.keyboardIndex, this.data.length);
4097
+ }
4069
4098
  cacheComputedStyles() {
4070
4099
  this.chartContainerStyles = getComputedStyle(this.chartContainer);
4071
4100
  this.hostElementStyles = getComputedStyle(this.hostElement);
@@ -4115,7 +4144,7 @@ const Q2ChartArea = class {
4115
4144
  });
4116
4145
  }
4117
4146
  updateChart(chart) {
4118
- var _a;
4147
+ var _a, _b;
4119
4148
  const decimals = ((_a = this.formatModifier) === null || _a === void 0 ? void 0 : _a.includes('dec')) ? this.formatModifier.replace('dec', '') : 0;
4120
4149
  const valueAxis = {
4121
4150
  type: 'value',
@@ -4178,7 +4207,7 @@ const Q2ChartArea = class {
4178
4207
  min: this.xMin,
4179
4208
  max: this.xMax,
4180
4209
  };
4181
- return chart.setOption({
4210
+ chart.setOption({
4182
4211
  aria: {
4183
4212
  enabled: true,
4184
4213
  },
@@ -4223,11 +4252,13 @@ const Q2ChartArea = class {
4223
4252
  },
4224
4253
  ],
4225
4254
  });
4255
+ // ECharts ARIA sets role="img" when options change; retain the keyboard interaction role.
4256
+ (_b = this.chartContainer) === null || _b === void 0 ? void 0 : _b.setAttribute('role', 'application');
4226
4257
  }
4227
4258
  // #endregion
4228
4259
  // #region Render Methods
4229
4260
  render() {
4230
- return (h("div", { key: '247b79eca7719feab470918648f223675483daf8', class: "container" }, h("div", { key: '349272c0ece24581f05dcadb81d7a19dd71eaa2d', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "areaChartContainer" })));
4261
+ return (h("div", { key: 'de38ac1c05ff6c85091069a691c5e2d51ba360ed', class: "container" }, h("div", { key: 'e45310470e9429714bd15100d01692b102963545', ref: el => (this.chartContainer = el), class: "chart-container", role: "application", tabIndex: this.data.length ? 0 : -1, "aria-describedby": "chart-keyboard-instructions", onFocus: this.keyboard.onFocus, onBlur: this.keyboard.onBlur, onKeyDown: this.keyboard.onKeyDown, "test-id": "areaChartContainer" }), h("div", { key: '45493b2498b17ab331fdff4487bd05874732c75e', id: "chart-keyboard-instructions", class: "sr" }, loc('tecton.element.chart.keyboardInstructions')), h("div", { key: '9d0a71f228271efde15c7ff4e0bae2a1144a8c9c', class: this.keyboardIndex === null ? 'sr' : 'chart-keyboard-value', role: "status", "aria-atomic": "true" }, this.keyboardDescription)));
4231
4262
  }
4232
4263
  get hostElement() { return getElement(this); }
4233
4264
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-Cqkz7Bnm.js';
2
- import { o as overrideFocus, l as loc } from './index-Cps4jSQM.js';
3
- import { _ as __extends, v as each, H as SeriesModel, I as inheritDefaultOption, c as Path, J as calculateTextPosition, K as isNumber, E as isArray, L as traverseElements, y as initProps, A as updateProps, M as saveOldStyle, x as labelInner, N as removeElementWithFadeOut, O as Group, F as map, h as getECData, Q as ChartView, R as Sector, U as Rect, V as extend, W as getLabelStatesModels, X as setLabelStyle, Y as setLabelValueAnimation, Z as toggleHoverEmphasis, $ as setStatesStylesFromModel, a0 as throttle, a1 as curry, a2 as layout, a3 as createProgressiveLayout, a4 as use, a5 as install$1, a6 as install$2, a7 as init, a8 as getCSSProperty, a9 as isValidColor, aa as formatValue } from './charting-DOZct-UB.js';
4
- import { c as createSeriesData, a as createClipPath, i as isCoordinateSystemType, g as getDefaultLabel, b as getDefaultInterpolatedLabel, d as dataSample, e as install$3, f as install$4 } from './dataSample-Dm1zpQNi.js';
5
- import { g as getSectorCornerRadius, i as installLabelLayout } from './sectorHelper--RMGWGAy.js';
2
+ import { o as overrideFocus, i as isEventFromElement, l as loc } from './index-CP8pXJ-l.js';
3
+ import { _ as __extends, v as each, H as SeriesModel, I as inheritDefaultOption, c as Path, J as calculateTextPosition, K as isNumber, E as isArray, L as traverseElements, y as initProps, A as updateProps, M as saveOldStyle, x as labelInner, N as removeElementWithFadeOut, O as Group, F as map, h as getECData, Q as ChartView, R as Sector, U as Rect, V as extend, W as getLabelStatesModels, X as setLabelStyle, Y as setLabelValueAnimation, Z as toggleHoverEmphasis, $ as setStatesStylesFromModel, a0 as throttle, a1 as curry, a2 as layout, a3 as createProgressiveLayout, a4 as use, a5 as install$1, a6 as install$2, a7 as createChartKeyboardNavigation, a8 as init, a9 as chartPointDescription, aa as formatValue, ab as getCSSProperty, ac as isValidColor } from './charting-DFXJklqs.js';
4
+ import { c as createSeriesData, a as createClipPath, i as isCoordinateSystemType, g as getDefaultLabel, b as getDefaultInterpolatedLabel, d as dataSample, e as install$3, f as install$4 } from './dataSample-CP_VKNqt.js';
5
+ import { g as getSectorCornerRadius, i as installLabelLayout } from './sectorHelper-DBtkWtpl.js';
6
6
 
7
7
  var BaseBarSeriesModel = /** @class */function (_super) {
8
8
  __extends(BaseBarSeriesModel, _super);
@@ -1253,12 +1253,24 @@ function install(registers) {
1253
1253
  });
1254
1254
  }
1255
1255
 
1256
- const q2ChartBarCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{width:var(--tct-bar-chart-width, 100%);height:var(--tct-bar-chart-height, 100%);display:block}.container{width:100%;height:100%}.chart-container{width:100%;height:100%}`;
1256
+ const q2ChartBarCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{width:var(--tct-bar-chart-width, 100%);height:var(--tct-bar-chart-height, 100%);display:block}.container{position:relative;width:100%;height:100%}.chart-keyboard-value{position:absolute;top:0;right:0;padding:var(--app-scale-1x);background:var(--t-base);color:var(--t-text);pointer-events:none}.chart-container{width:100%;height:100%}`;
1257
1257
 
1258
1258
  use([install$1, install, install$2, installLabelLayout, install$3, install$4]);
1259
1259
  const Q2ChartBar = class {
1260
1260
  constructor(hostRef) {
1261
1261
  registerInstance(this, hostRef);
1262
+ this.keyboard = createChartKeyboardNavigation({
1263
+ getChart: () => this.chart,
1264
+ getData: () => this.data,
1265
+ onChange: index => (this.keyboardIndex = index),
1266
+ getOrder: () => {
1267
+ const indices = this.data.map((_, index) => index);
1268
+ return this.sort ? indices.sort((a, b) => this.data[b].value - this.data[a].value) : indices;
1269
+ },
1270
+ });
1271
+ // #endregion
1272
+ // #region State Properties
1273
+ this.keyboardIndex = null;
1262
1274
  /** An array of objects that contain the data to be displayed. */
1263
1275
  this.data = [];
1264
1276
  /** Controls visibility of labels on the name axis. */
@@ -1286,6 +1298,7 @@ const Q2ChartBar = class {
1286
1298
  // #endregion
1287
1299
  // #region Component Lifecycle Events
1288
1300
  disconnectedCallback() {
1301
+ this.keyboard.onBlur();
1289
1302
  // Remove event listeners
1290
1303
  window.removeEventListener('resize', this.resizeEventListener);
1291
1304
  // Clean up chart instance
@@ -1315,14 +1328,30 @@ const Q2ChartBar = class {
1315
1328
  overrideFocus(this.hostElement);
1316
1329
  }
1317
1330
  // #endregion
1331
+ // #region Listeners
1332
+ delegateFocus(event) {
1333
+ var _a;
1334
+ if (isEventFromElement(event, this.hostElement) && this.data.length)
1335
+ (_a = this.chartContainer) === null || _a === void 0 ? void 0 : _a.focus();
1336
+ }
1337
+ // #endregion
1318
1338
  // #region Watchers
1319
1339
  propsUpdates() {
1320
1340
  if (!this.chart)
1321
1341
  return;
1322
1342
  this.updateChart(this.chart);
1343
+ this.keyboard.refresh();
1323
1344
  }
1324
1345
  // #endregion
1325
1346
  // #region Local Methods
1347
+ get keyboardDescription() {
1348
+ var _a;
1349
+ const datum = this.data[this.keyboardIndex];
1350
+ if (this.keyboardIndex === null || !datum)
1351
+ return '';
1352
+ const decimals = ((_a = this.formatModifier) === null || _a === void 0 ? void 0 : _a.includes('dec')) ? this.formatModifier.replace('dec', '') : 0;
1353
+ return chartPointDescription(datum.name, formatValue(datum.value || 0, { type: this.format, decimals }), this.sort ? [...this.data].sort((a, b) => b.value - a.value).indexOf(datum) : this.keyboardIndex, this.data.length);
1354
+ }
1326
1355
  cacheComputedStyles() {
1327
1356
  this.chartContainerStyles = getComputedStyle(this.chartContainer);
1328
1357
  this.hostElementStyles = getComputedStyle(this.hostElement);
@@ -1365,7 +1394,7 @@ const Q2ChartBar = class {
1365
1394
  chart.on('finished', this.chartFinishedListener);
1366
1395
  }
1367
1396
  updateChart(chart) {
1368
- var _a;
1397
+ var _a, _b;
1369
1398
  const decimals = ((_a = this.formatModifier) === null || _a === void 0 ? void 0 : _a.includes('dec')) ? this.formatModifier.replace('dec', '') : 0;
1370
1399
  const valueAxis = {
1371
1400
  type: 'value',
@@ -1394,7 +1423,7 @@ const Q2ChartBar = class {
1394
1423
  alignWithLabel: this.offsetDataNames,
1395
1424
  },
1396
1425
  };
1397
- return chart.setOption({
1426
+ chart.setOption({
1398
1427
  aria: {
1399
1428
  enabled: true,
1400
1429
  },
@@ -1430,11 +1459,13 @@ const Q2ChartBar = class {
1430
1459
  },
1431
1460
  ],
1432
1461
  });
1462
+ // ECharts ARIA sets role="img" when options change; retain the keyboard interaction role.
1463
+ (_b = this.chartContainer) === null || _b === void 0 ? void 0 : _b.setAttribute('role', 'application');
1433
1464
  }
1434
1465
  // #endregion
1435
1466
  // #region Render Methods
1436
1467
  render() {
1437
- return (h("div", { key: '36a77a29d5e06363f2cd2267c298429cd2ef9864', class: "container" }, h("div", { key: 'e7382ecf3ed8323ffbf1c57a78c870d7d7c4b718', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "barChartContainer" })));
1468
+ return (h("div", { key: '2764d138c5aee7d65df3361a7d4720e00ba13368', class: "container" }, h("div", { key: '864b3f1d5987a101ab008e37e99c874cc411c143', ref: el => (this.chartContainer = el), class: "chart-container", role: "application", tabIndex: this.data.length ? 0 : -1, "aria-describedby": "chart-keyboard-instructions", onFocus: this.keyboard.onFocus, onBlur: this.keyboard.onBlur, onKeyDown: this.keyboard.onKeyDown, "test-id": "barChartContainer" }), h("div", { key: '3b6aa42b27e86f75cd4d1fc3d2efe823b950864c', id: "chart-keyboard-instructions", class: "sr" }, loc('tecton.element.chart.keyboardInstructions')), h("div", { key: '5d216b8ccce18ea77f136fd43ab81db335b38d89', class: this.keyboardIndex === null ? 'sr' : 'chart-keyboard-value', role: "status", "aria-atomic": "true" }, this.keyboardDescription)));
1438
1469
  }
1439
1470
  get hostElement() { return getElement(this); }
1440
1471
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cqkz7Bnm.js';
2
- import { o as overrideFocus, i as isEventFromElement, l as loc, g as isMobile } from './index-Cps4jSQM.js';
2
+ import { l as loc, o as overrideFocus, i as isEventFromElement, g as isMobile } from './index-CP8pXJ-l.js';
3
3
  import { m as mirrorEmit } from './mirror-emit-DUjY_ucm.js';
4
- import { br as normalizeCssArray, U as Rect, _ as __extends, aX as ComponentModel, bs as toCamelCase, bt as env, bq as isString, bu as isDom, g as isFunction, bv as normalizeEvent, bw as transformLocalCoord, ao as convertToColorString, E as isArray, v as each$1, an as bind, bx as getPaddingFromTooltipModel, z as indexOf, r as retrieve2, ai as isObject, by as throwError, ar as ZRText, bz as getTooltipRenderMode, bA as createOrUpdate, bB as clear, bC as register, h as getECData, bD as findPointFromSeries, bE as findEventDispatcher, bF as createTooltipMarkup, bG as getValueLabel, bH as trim, bI as getAxisRawValue, bJ as TooltipMarkupStyleCreator, bK as normalizeTooltipFormatResult, bL as buildTooltipMarkup, bM as clone, bN as encodeHTML, bO as format, bP as formatTpl, p as parsePercent, b6 as getLayoutRect, bQ as unregister, bl as ComponentView, bR as preParseFinder, bS as queryReferringComponents, bT as Model, V as extend, a4 as use, bm as install$5, bU as noop, aZ as merge, bV as isNameSpecified, aD as createHashMap, F as map, K as isNumber, o as filter, O as Group$2, d as defaults, a1 as curry$1, bW as parse, bX as stringify, X as setLabelStyle, bY as enableHoverEmphasis, bn as createTextStyle, bZ as setTooltipConfig, b_ as box, b$ as createOrUpdatePatternFromDecal, ab as createSymbol, c0 as hasOwn, a_ as getLayoutParams, I as inheritDefaultOption, a$ as mergeLayoutParam, c1 as createIcon, A as updateProps, c2 as normalizeArcAngles, m as makeInner, aV as linearMap, P as Point, t as shiftLayoutOnY, R as Sector, N as removeElementWithFadeOut, Q as ChartView, y as initProps, M as saveOldStyle, $ as setStatesStylesFromModel, Z as toggleHoverEmphasis, W as getLabelStatesModels, a as Polyline, c3 as retrieve3, aJ as prepareSeriesDataSchema, aL as SeriesData, c4 as makeSeriesEncodeForNameBased, c5 as getPercentSeats, c6 as defaultEmphasis, H as SeriesModel, c7 as createLegacyDataSelectAction, a6 as install$6, a5 as install$7, a7 as init, a8 as getCSSProperty } from './charting-DOZct-UB.js';
5
- import { l as limitTurnAngle, a as limitSurfaceAngle, g as getSectorCornerRadius, s as setLabelLineStyle, b as getLabelLineStatesModels, i as installLabelLayout } from './sectorHelper--RMGWGAy.js';
4
+ import { bt as normalizeCssArray, U as Rect, _ as __extends, aZ as ComponentModel, bu as toCamelCase, bv as env, bs as isString, bw as isDom, g as isFunction, bx as normalizeEvent, by as transformLocalCoord, aq as convertToColorString, E as isArray, v as each$1, ap as bind, bz as getPaddingFromTooltipModel, z as indexOf, r as retrieve2, ak as isObject, bA as throwError, at as ZRText, bB as getTooltipRenderMode, bC as createOrUpdate, bD as clear, bE as register, h as getECData, bF as findPointFromSeries, bG as findEventDispatcher, bH as createTooltipMarkup, bI as getValueLabel, bJ as trim, bK as getAxisRawValue, bL as TooltipMarkupStyleCreator, bM as normalizeTooltipFormatResult, bN as buildTooltipMarkup, bO as clone, bP as encodeHTML, bQ as format, bR as formatTpl, p as parsePercent, b8 as getLayoutRect, bS as unregister, bn as ComponentView, bT as preParseFinder, bU as queryReferringComponents, bV as Model, V as extend, a4 as use, bo as install$5, bW as noop, a$ as merge, bX as isNameSpecified, aF as createHashMap, F as map, K as isNumber, o as filter, O as Group$2, d as defaults, a1 as curry$1, bY as parse, bZ as stringify, X as setLabelStyle, b_ as enableHoverEmphasis, bp as createTextStyle, b$ as setTooltipConfig, c0 as box, c1 as createOrUpdatePatternFromDecal, ad as createSymbol, c2 as hasOwn, b0 as getLayoutParams, I as inheritDefaultOption, b1 as mergeLayoutParam, c3 as createIcon, A as updateProps, c4 as normalizeArcAngles, m as makeInner, aX as linearMap, P as Point, t as shiftLayoutOnY, R as Sector, N as removeElementWithFadeOut, Q as ChartView, y as initProps, M as saveOldStyle, $ as setStatesStylesFromModel, Z as toggleHoverEmphasis, W as getLabelStatesModels, a as Polyline, c5 as retrieve3, aL as prepareSeriesDataSchema, aN as SeriesData, c6 as makeSeriesEncodeForNameBased, c7 as getPercentSeats, c8 as defaultEmphasis, H as SeriesModel, c9 as createLegacyDataSelectAction, a6 as install$6, a5 as install$7, a9 as chartPointDescription, a8 as init, ab as getCSSProperty } from './charting-DFXJklqs.js';
5
+ import { l as limitTurnAngle, a as limitSurfaceAngle, g as getSectorCornerRadius, s as setLabelLineStyle, b as getLabelLineStatesModels, i as installLabelLayout } from './sectorHelper-DBtkWtpl.js';
6
6
 
7
7
  function makeBackground(rect, componentModel) {
8
8
  var padding = normalizeCssArray(componentModel.get('padding'));
@@ -4046,6 +4046,7 @@ const Q2ChartDonut = class {
4046
4046
  this.tctChange = createEvent(this, "tctChange", 7);
4047
4047
  this.tctClick = createEvent(this, "tctClick", 7);
4048
4048
  this.defaultRecord = { id: null, value: null, name: null };
4049
+ this.keyboardAnnouncement = '';
4049
4050
  /** An array of objects that contain the data to be displayed. */
4050
4051
  this.data = [];
4051
4052
  /** The amount which the slice will scale when hovered. */
@@ -4085,6 +4086,8 @@ const Q2ChartDonut = class {
4085
4086
  };
4086
4087
  this.onButtonKeyDown = (event) => {
4087
4088
  const { selectedId, data } = this;
4089
+ if (!data.length || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
4090
+ return;
4088
4091
  let selectedIndex = this.getIndexById(selectedId) || 0;
4089
4092
  switch (event.key) {
4090
4093
  case 'ArrowUp':
@@ -4114,14 +4117,23 @@ const Q2ChartDonut = class {
4114
4117
  });
4115
4118
  break;
4116
4119
  case 'Escape':
4120
+ event.preventDefault();
4117
4121
  this.clearSelection();
4118
- break;
4119
- case ' ':
4122
+ this.keyboardAnnouncement = loc(this.summaryName || 'tecton.element.chartDonut.button.summaryName');
4123
+ return;
4124
+ case 'Home':
4125
+ case 'End':
4120
4126
  event.preventDefault();
4127
+ selectedIndex = event.key === 'Home' ? 0 : data.length - 1;
4128
+ this.chart.dispatchAction({ type: 'select', seriesId: 'pie', dataIndex: selectedIndex });
4121
4129
  break;
4122
4130
  default:
4123
4131
  return;
4124
4132
  }
4133
+ if (['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
4134
+ const datum = data[selectedIndex];
4135
+ this.keyboardAnnouncement = chartPointDescription(datum.name, this.displayValue(datum.value), selectedIndex, data.length);
4136
+ }
4125
4137
  };
4126
4138
  this.onClickElsewhere = (event) => {
4127
4139
  event.stopPropagation();
@@ -4221,12 +4233,13 @@ const Q2ChartDonut = class {
4221
4233
  // #endregion
4222
4234
  // #region Listeners
4223
4235
  delegateFocus(event) {
4224
- var _a;
4236
+ var _a, _b;
4225
4237
  if (!isEventFromElement(event, this.hostElement))
4226
4238
  return;
4227
- if (!this.isClickable)
4228
- return;
4229
- (_a = this.centerButtonElement) === null || _a === void 0 ? void 0 : _a.focus();
4239
+ if (this.isClickable)
4240
+ (_a = this.centerButtonElement) === null || _a === void 0 ? void 0 : _a.focus();
4241
+ else if (this.data.length)
4242
+ (_b = this.chartContainer) === null || _b === void 0 ? void 0 : _b.focus();
4230
4243
  }
4231
4244
  // #endregion
4232
4245
  // #region Public Methods API
@@ -4297,6 +4310,7 @@ const Q2ChartDonut = class {
4297
4310
  this.updateChart(this.chart);
4298
4311
  }
4299
4312
  dataUpdated() {
4313
+ this.keyboardAnnouncement = '';
4300
4314
  if (!this.chart)
4301
4315
  return;
4302
4316
  this.colors = this.getColors();
@@ -4472,8 +4486,9 @@ const Q2ChartDonut = class {
4472
4486
  });
4473
4487
  }
4474
4488
  updateChart(chart) {
4489
+ var _a;
4475
4490
  this.validateColor();
4476
- return chart.setOption({
4491
+ chart.setOption({
4477
4492
  tooltip: {
4478
4493
  show: false,
4479
4494
  },
@@ -4515,6 +4530,8 @@ const Q2ChartDonut = class {
4515
4530
  },
4516
4531
  ],
4517
4532
  });
4533
+ // The clickable variant handles keyboard interaction on its native center button.
4534
+ (_a = this.chartContainer) === null || _a === void 0 ? void 0 : _a.setAttribute('role', this.isClickable ? 'img' : 'application');
4518
4535
  }
4519
4536
  validateColor() {
4520
4537
  // check if there is name duplicated, then custom style using `itemStyle` object will be used.
@@ -4538,20 +4555,21 @@ const Q2ChartDonut = class {
4538
4555
  const props = isClickable
4539
4556
  ? {
4540
4557
  onKeyDown: this.onButtonKeyDown,
4558
+ onBlur: () => (this.keyboardAnnouncement = ''),
4541
4559
  onClick: this.onButtonClick,
4542
4560
  ref: el => (this.centerButtonElement = el),
4543
- 'aria-describedby': 'center-card-description',
4561
+ 'aria-describedby': 'center-card-description chart-keyboard-instructions',
4544
4562
  'aria-roledescription': loc('tecton.element.chartDonut.button.roleDescription'),
4545
4563
  }
4546
4564
  : null;
4547
- return (h("div", { class: "center-card-container", style: { width: `calc(${this.innerRadius})`, height: `calc(${this.innerRadius})` } }, h("div", { id: "center-card-description", class: "sr" }, loc('tecton.element.chartDonut.button.description')), h(TagName, { class: "center-card", "test-id": "centerCard", ...props }, !!icon && (h("q2-icon", { type: icon, style: color && {
4565
+ return (h("div", { class: "center-card-container", style: { width: `calc(${this.innerRadius})`, height: `calc(${this.innerRadius})` } }, h("div", { id: "center-card-description", class: "sr" }, loc('tecton.element.chartDonut.button.description')), h("div", { id: "chart-keyboard-instructions", class: "sr" }, loc('tecton.element.chart.keyboardInstructions')), h(TagName, { class: "center-card", "test-id": "centerCard", ...props }, !!icon && (h("q2-icon", { type: icon, style: color && {
4548
4566
  '--tct-icon-stroke-primary': color,
4549
4567
  '--tct-icon-stroke-secondary': color,
4550
4568
  color,
4551
4569
  } })), !!name && h("div", { class: "name" }, name), !isNaN(value) && h("div", { class: "value" }, displayValue))));
4552
4570
  }
4553
4571
  render() {
4554
- return (h("click-elsewhere", { key: '27c21f281ef0746c9bd9d7235fa1833df7711e4d', onChange: this.onClickElsewhere }, h("figure", { key: '8356a94846a4319b682e3bc3171e6a71afb228f8' }, h("div", { key: 'a6b016aaa11371fdff673eb8cd7508bb5f3ce852', class: "container" }, h("div", { key: '862baeb8b1c1e096c92d260bc7340666875f9763', ref: el => (this.chartContainer = el), "aria-describedby": !this.isClickable ? 'center-card-description' : undefined, class: "chart-container", role: "img", "test-id": "chartContainer", onClick: this.onContainerClick, tabIndex: !this.isClickable ? 0 : undefined, onKeyDown: !this.isClickable ? this.onButtonKeyDown : undefined }), this.renderCenterBlock()), this.showLegend && (h("figcaption", { key: '24f16b0d7afd3a6433c58cd8eb6806785fc938e5' }, h("q2-legend", { key: '6bd27b69926b77181ab16726bb4e79c91e4dcc37', class: "legend", data: this.legendData, format: this.format, currencyRound: this.currencyRound, hoveredItemId: this.legendHoveredId, onClick: this.onLegendClick, onMouseleave: this.onLegendMouseleave, onMouseenter: this.onLegendMouseenter, selectedItemId: this.selectedId }))))));
4572
+ return (h("click-elsewhere", { key: '54e5d16621ac527fec69834b2c1cc1e7d2c6540b', onChange: this.onClickElsewhere }, h("figure", { key: '61e0c1e30fed4e89816d228c1c190b5bd38991a3' }, h("div", { key: '0685b804780ebdf17d7bfe5956306a027c3c9dba', class: "container" }, h("div", { key: '458dfa5c6ad8d704de66d4d51461e2d7b28ba13c', ref: el => (this.chartContainer = el), "aria-describedby": !this.isClickable ? 'center-card-description chart-keyboard-instructions' : undefined, class: "chart-container", role: this.isClickable ? 'img' : 'application', "test-id": "chartContainer", onClick: this.onContainerClick, tabIndex: !this.isClickable && this.data.length ? 0 : undefined, onKeyDown: !this.isClickable ? this.onButtonKeyDown : undefined, onBlur: () => (this.keyboardAnnouncement = '') }), this.renderCenterBlock(), h("div", { key: '105396c05b8aa162b1c0515cb4b96dadafcca911', class: "sr", role: "status", "aria-atomic": "true" }, this.keyboardAnnouncement)), this.showLegend && (h("figcaption", { key: 'c6462ae033852ff7fa09d752e4fc8860608448c6' }, h("q2-legend", { key: 'd8f1ceb9b46392264b306d316d1fb6066b2f5b4d', class: "legend", data: this.legendData, format: this.format, currencyRound: this.currencyRound, hoveredItemId: this.legendHoveredId, onClick: this.onLegendClick, onMouseleave: this.onLegendMouseleave, onMouseenter: this.onLegendMouseenter, selectedItemId: this.selectedId }))))));
4555
4573
  }
4556
4574
  get hostElement() { return getElement(this); }
4557
4575
  static get watchers() { return {
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-Cqkz7Bnm.js';
2
- import { c as createGuid, r as renderLabel } from './index-Cps4jSQM.js';
2
+ import { c as createGuid, r as renderLabel } from './index-CP8pXJ-l.js';
3
3
  import { m as mirrorEmit } from './mirror-emit-DUjY_ucm.js';
4
4
  import { h as hasValidChildren } from './component-DaQM9u3s.js';
5
5
 
6
- const q2CheckboxGroupCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{--comp-default-checkbox-group-margin:var(--tct-checkbox-group-margin-top, var(--t-checkbox-group-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-checkbox-group-margin-bottom, var(--t-checkbox-group-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-checkbox-group-margin, var(--comp-default-checkbox-group-margin))}fieldset{padding:var(--tct-checkbox-group-fieldset-padding, 0);margin:0;border:0;position:relative}.label-row{display:grid;grid-template-columns:1fr 24px;grid-template-areas:"label icon";column-gap:var(--tct-checkbox-group-label-column-gap, var(--app-scale-2x, 10px));color:var(--tct-checkbox-group-label-font-color, inherit);font-size:var(--tct-checkbox-group-label-font-size, inherit);font-weight:var(--tct-checkbox-group-label-font-weight, 600);text-transform:var(--tct-checkbox-group-label-text-transform, none);letter-spacing:var(--tct-checkbox-group-label-letter-spacing, inherit)}.label-row q2-icon{grid-area:icon;margin-top:-2px;margin-bottom:-2px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.slot-container{--comp-default-container-margin:var(--app-scale-1x, 5px) 0;margin:var(--tct-checkbox-group-container-margin, var(--comp-default-container-margin));padding:var(--tct-checkbox-group-container-padding, var(--app-scale-1x, 5px));border-width:var(--tct-checkbox-group-border-width, 1px);border-color:transparent;border-style:solid;border-radius:var(--tct-checkbox-group-border-radius, var(--app-border-radius-1, 4px))}:host([has-error]) .slot-container{border-color:var(--tct-checkbox-group-error-border-color, var(--const-stoplight-alert, #d20a0a))}:host([has-error=false]) .slot-container{border-color:transparent}.optional-tag{margin-left:var(--tct-checkbox-group-label-optional-margin-left, var(--app-scale-1x, 5px));color:var(--tct-checkbox-group-label-optional-color, var(--t-checkbox-group-label-optional-color, var(--tct-a11y-color, var(--t-a11y-color, var(--tct-a11y-gray-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--t-gray-d1, var(--app-gray-d1, rgba(77, 77, 77, 0.77))))))))))));font-size:var(--tct-checkbox-group-label-optional-font-size, var(--const-px-12, 12px));font-weight:var(--tct-checkbox-group-label-optional-font-weight, 400)}.flexed{margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.flexed.left{justify-content:left}`;
6
+ const q2CheckboxGroupCss = () => `*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{--comp-default-checkbox-group-margin:var(--tct-checkbox-group-margin-top, var(--t-checkbox-group-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-checkbox-group-margin-bottom, var(--t-checkbox-group-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-checkbox-group-margin, var(--comp-default-checkbox-group-margin))}fieldset{padding:var(--tct-checkbox-group-fieldset-padding, 0);margin:0;border:0;position:relative}.label-row{display:grid;grid-template-columns:1fr 24px;grid-template-areas:"label icon";column-gap:var(--tct-checkbox-group-label-column-gap, var(--app-scale-2x, 10px));color:var(--tct-checkbox-group-label-font-color, inherit);font-size:var(--tct-checkbox-group-label-font-size, inherit);font-weight:var(--tct-checkbox-group-label-font-weight, 600);text-transform:var(--tct-checkbox-group-label-text-transform, none);letter-spacing:var(--tct-checkbox-group-label-letter-spacing, inherit);line-height:var(--tct-checkbox-group-label-line-height, inherit)}.label-row q2-icon{grid-area:icon;margin-top:-2px;margin-bottom:-2px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.slot-container{--comp-default-container-margin:var(--app-scale-1x, 5px) 0;margin:var(--tct-checkbox-group-container-margin, var(--comp-default-container-margin));padding:var(--tct-checkbox-group-container-padding, var(--app-scale-1x, 5px));border-width:var(--tct-checkbox-group-border-width, 1px);border-color:transparent;border-style:solid;border-radius:var(--tct-checkbox-group-border-radius, var(--app-border-radius-1, 4px))}:host([has-error]) .slot-container{border-color:var(--tct-checkbox-group-error-border-color, var(--const-stoplight-alert, #d20a0a))}:host([has-error=false]) .slot-container{border-color:transparent}.optional-tag{margin-left:var(--tct-checkbox-group-label-optional-margin-left, var(--app-scale-1x, 5px));color:var(--tct-checkbox-group-label-optional-color, var(--t-checkbox-group-label-optional-color, var(--tct-a11y-color, var(--t-a11y-color, var(--tct-a11y-gray-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--t-gray-d1, var(--app-gray-d1, rgba(77, 77, 77, 0.77))))))))))));font-size:var(--tct-checkbox-group-label-optional-font-size, var(--const-px-12, 12px));font-weight:var(--tct-checkbox-group-label-optional-font-weight, 400)}.flexed{margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center}.flexed.left{justify-content:left}`;
7
7
 
8
8
  const Q2CheckboxGroup = class {
9
9
  constructor(hostRef) {
@@ -120,7 +120,7 @@ const Q2CheckboxGroup = class {
120
120
  render() {
121
121
  const showLabel = this.label || this.optional || this.readonly;
122
122
  const showLabelRow = (showLabel && !this.hideLabel) || this.hasError;
123
- return (h(Fragment, { key: '4e9159cc489b8c2ed9adf3c8263355994364780e' }, showLabelRow && (h("div", { key: '85c21ddc03d2abaf4e78b1922dcf3705ec673fc9', class: "label-row" }, showLabel && !this.hideLabel && h("div", { key: '071eb3359b048a5e7f89f7c525362e065707a8fe', class: "group-legend" }, renderLabel(this)), this.hasError && (h("q2-icon", { key: '76a591fb52671d43351322faa488608128320183', type: "error", "test-id": "iconError" })))), h("fieldset", { key: '0bcc9a5419df7ab0bf2abfc6189983e6cf5bd779', onChange: this.onInnerCheckboxChange, "aria-invalid": this.hasError ? `${this.hasError}` : undefined }, showLabel && h("legend", { key: 'c6a5f3ec8289091b6d113a36d2fed9b83a5c7088', class: "sr-only" }, renderLabel(this)), this.inputDom())));
123
+ return (h(Fragment, { key: 'ed664b9829dbea3e8e6fe3809dd2528a2a37b011' }, showLabelRow && (h("div", { key: '101b950b7aacfbc6dab450ad2c13a7a86af40936', class: "label-row" }, showLabel && !this.hideLabel && h("div", { key: '70330c12aefedf7f7b7f7cbe4e0a745cca667181', class: "group-legend" }, renderLabel(this)), this.hasError && (h("q2-icon", { key: '31eb9fac43cbf80696276c7d96945a3f267610d3', type: "error", "test-id": "iconError" })))), h("fieldset", { key: '200264b3fb882445dc5610155e28b137e2334ad2', onChange: this.onInnerCheckboxChange, "aria-invalid": this.hasError ? `${this.hasError}` : undefined }, showLabel && h("legend", { key: 'ef85eb7ca6ef53496a5fc7d0198f03d3a8fb129e', class: "sr-only" }, renderLabel(this)), this.inputDom())));
124
124
  }
125
125
  get hostElement() { return getElement(this); }
126
126
  static get watchers() { return {