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,20 +1,20 @@
1
1
  import { proxyCustomElement as t, HTMLElement as e, createEvent as i, h as n, transformTag as o } from "@stencil/core/internal/client";
2
2
 
3
- import { o as a, i as r, l as s, d as l } from "./index2.js";
3
+ import { l as a, o as r, i as s, d as l } from "./index2.js";
4
4
 
5
5
  import { m as c } from "./mirror-emit.js";
6
6
 
7
- import { bd as h, V as d, _ as u, aF as f, be as p, bf as v, bc as g, bg as m, E as b, bh as w, bi as y, y as x, a1 as S, J as T, x as M, bj as C, aT as L, b8 as I, j as k, bk as A, F as P, bl as V, bm as z, bn as D, bo as N, d as R, bp as O, bq as U, br as H, bs as B, bt as W, bu as F, bv as E, bw as j, bx as X, by as G, bz as Y, bA as q, bB as $, bC as K, aR as _, bD as J, b6 as Z, bE as Q, bF as tt, bG as et, a as it, aa as nt, b7 as ot, bH as at, aH as rt, bI as st, a5 as lt, m as ct, o as ht, a7 as dt, G as ut, z as ft, am as pt, bJ as vt, bK as gt, b as mt, bL as bt, b9 as wt, bM as yt, bN as xt, bO as St, c as Tt, bP as Mt, aI as Ct, ah as Lt, aJ as It, bQ as kt, u as At, bR as Pt, a2 as Vt, aD as zt, X as Dt, bS as Nt, U as Rt, aj as Ot, C as Ut, i as Ht, s as Bt, A as Wt, t as Ft, g as Et, bT as jt, bU as Xt, ar as Gt, at as Yt, bV as qt, bW as $t, bX as Kt, S as _t, bY as Jt, ag as Zt, af as Qt, ab as te, ac as ee } from "./charting.js";
7
+ import { bf as h, V as d, _ as u, aH as f, bg as p, bh as v, be as g, bi as m, E as b, bj as y, bk as w, y as x, a1 as S, J as T, x as M, bl as L, aV as C, ba as I, j as k, bm as A, F as P, bn as V, bo as z, bp as D, bq as N, d as R, br as O, bs as H, bt as U, bu as B, bv as W, bw as F, bx as E, by as j, bz as X, bA as G, bB as Y, bC as q, bD as $, bE as K, aT as _, bF as J, b8 as Z, bG as Q, bH as tt, bI as et, a as it, aa as nt, b9 as ot, bJ as at, aJ as rt, bK as st, a5 as lt, m as ct, o as ht, a7 as dt, G as ut, z as ft, ao as pt, bL as vt, bM as gt, b as mt, bN as bt, bb as yt, bO as wt, bP as xt, bQ as St, c as Tt, bR as Mt, aK as Lt, aj as Ct, aL as It, bS as kt, u as At, bT as Pt, a2 as Vt, aF as zt, X as Dt, bU as Nt, U as Rt, al as Ot, C as Ht, i as Ut, s as Bt, A as Wt, t as Ft, g as Et, bV as jt, bW as Xt, at as Gt, av as Yt, bX as qt, bY as $t, bZ as Kt, S as _t, b_ as Jt, ai as Zt, ah as Qt, ad as te, ac as ee, af as ie } from "./charting.js";
8
8
 
9
- import { d as ie } from "./click-elsewhere2.js";
9
+ import { d as ne } from "./click-elsewhere2.js";
10
10
 
11
- import { d as ne } from "./q2-icon2.js";
11
+ import { d as oe } from "./q2-icon2.js";
12
12
 
13
- import { d as oe } from "./q2-legend2.js";
13
+ import { d as ae } from "./q2-legend2.js";
14
14
 
15
- import { l as ae, a as re, g as se, s as le, b as ce, i as he } from "./sectorHelper.js";
15
+ import { l as re, a as se, g as le, s as ce, b as he, i as de } from "./sectorHelper.js";
16
16
 
17
- var de = /** @class */ function(t) {
17
+ var ue = /** @class */ function(t) {
18
18
  function TooltipModel() {
19
19
  var e = null !== t && t.apply(this, arguments) || this;
20
20
  return e.type = TooltipModel.type, e;
@@ -96,7 +96,7 @@ function testStyle(t) {
96
96
  if (v.domSupported) for (var e = document.documentElement.style, i = 0, n = t.length; i < n; i++) if (t[i] in e) return t[i];
97
97
  }
98
98
 
99
- var ue = testStyle([ "transform", "webkitTransform", "OTransform", "MozTransform", "msTransform" ]);
99
+ var fe = testStyle([ "transform", "webkitTransform", "OTransform", "MozTransform", "msTransform" ]);
100
100
 
101
101
  function toCSSVendorPrefix(t, e) {
102
102
  if (!t) return e;
@@ -106,7 +106,7 @@ function toCSSVendorPrefix(t, e) {
106
106
  }
107
107
 
108
108
  /* global document, window */
109
- var fe = toCSSVendorPrefix(testStyle([ "webkitTransition", "transition", "OTransition", "MozTransition", "msTransition" ]), "transition"), pe = toCSSVendorPrefix(ue, "transform"), ve = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (v.transform3dSupported ? "will-change:transform;" : "");
109
+ var pe = toCSSVendorPrefix(testStyle([ "webkitTransition", "transition", "OTransition", "MozTransition", "msTransition" ]), "transition"), ve = toCSSVendorPrefix(fe, "transform"), ge = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (v.transform3dSupported ? "will-change:transform;" : "");
110
110
 
111
111
  function assembleTransform(t, e, i) {
112
112
  // If using float on style, the final width of the dom might
@@ -116,7 +116,7 @@ function assembleTransform(t, e, i) {
116
116
  if (!v.transformSupported) return i ? "top:" + o + ";left:" + n + ";" : [ [ "top", o ], [ "left", n ] ];
117
117
  // support transform
118
118
  var a = v.transform3dSupported, r = "translate" + (a ? "3d" : "") + "(" + n + "," + o + (a ? ",0" : "") + ")";
119
- return i ? "top:0;left:0;" + pe + ":" + r + ";" : [ [ "top", 0 ], [ "left", 0 ], [ ue, r ] ];
119
+ return i ? "top:0;left:0;" + ve + ":" + r + ";" : [ [ "top", 0 ], [ "left", 0 ], [ fe, r ] ];
120
120
  }
121
121
 
122
122
  /**
@@ -124,13 +124,13 @@ function assembleTransform(t, e, i) {
124
124
  * @return {string}
125
125
  * @inner
126
126
  */ function assembleCssText(t, e, i) {
127
- var n = [], o = t.get("transitionDuration"), a = t.get("backgroundColor"), r = t.get("shadowBlur"), s = t.get("shadowColor"), l = t.get("shadowOffsetX"), c = t.get("shadowOffsetY"), d = t.getModel("textStyle"), u = C(t, "html"), f = l + "px " + c + "px " + r + "px " + s;
127
+ var n = [], o = t.get("transitionDuration"), a = t.get("backgroundColor"), r = t.get("shadowBlur"), s = t.get("shadowColor"), l = t.get("shadowOffsetX"), c = t.get("shadowOffsetY"), d = t.getModel("textStyle"), u = L(t, "html"), f = l + "px " + c + "px " + r + "px " + s;
128
128
  return n.push("box-shadow:" + f),
129
129
  // Animation transition. Do not animate when transitionDuration is 0.
130
130
  e && o && n.push(function(t, e) {
131
131
  var i = "cubic-bezier(0.23,1,0.32,1)", n = " " + t / 2 + "s " + i, o = "opacity" + n + ",visibility" + n;
132
- return e || (n = " " + t + "s " + i, o += v.transformSupported ? "," + pe + n : ",left" + n + ",top" + n),
133
- fe + ":" + o;
132
+ return e || (n = " " + t + "s " + i, o += v.transformSupported ? "," + ve + n : ",left" + n + ",top" + n),
133
+ pe + ":" + o;
134
134
  }(o, i)), a && n.push("background-color:" + a),
135
135
  // Border style
136
136
  T([ "width", "color", "radius" ], (function(e) {
@@ -162,7 +162,7 @@ function makeStyleCoord$1(t, e, i, n, o) {
162
162
  var r = a && a.getViewportRoot();
163
163
  r &&
164
164
  // Some APPs might use scale on body, so we support CSS transform here.
165
- y(t, r, i, n, o);
165
+ w(t, r, i, n, o);
166
166
  } else {
167
167
  t[0] = n, t[1] = o;
168
168
  // xy should be based on canvas root. But tooltipContent is
@@ -174,7 +174,7 @@ function makeStyleCoord$1(t, e, i, n, o) {
174
174
  t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
175
175
  }
176
176
 
177
- var ge = /** @class */ function() {
177
+ var me = /** @class */ function() {
178
178
  function TooltipHTMLContent(t, e) {
179
179
  if (this._show = !1, this._styleCoord = [ 0, 0, 0, 0 ], this._enterable = !0, this._alwaysShowContent = !1,
180
180
  this._firstShow = !0, this._longHide = !0, v.wxa) return null;
@@ -200,7 +200,7 @@ var ge = /** @class */ function() {
200
200
  // Try trigger zrender event to avoid mouse
201
201
  // in and out shape too frequently
202
202
  var e = n.handler, i = n.painter.getViewportRoot();
203
- w(i, t, !0), e.dispatch("mousemove", t);
203
+ y(i, t, !0), e.dispatch("mousemove", t);
204
204
  }
205
205
  }, i.onmouseleave = function() {
206
206
  // set `_inContent` to `false` before `hideLater`
@@ -229,7 +229,7 @@ var ge = /** @class */ function() {
229
229
  }, TooltipHTMLContent.prototype.show = function(t, e) {
230
230
  clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
231
231
  var i = this.el, n = i.style, o = this._styleCoord;
232
- i.innerHTML ? n.cssText = ve + assembleCssText(t, !this._firstShow, this._longHide) + assembleTransform(o[0], o[1], !0) + "border-color:" + x(e) + ";" + (t.get("extraCssText") || "") + ";pointer-events:" + (this._enterable ? "auto" : "none") : n.display = "none",
232
+ i.innerHTML ? n.cssText = ge + assembleCssText(t, !this._firstShow, this._longHide) + assembleTransform(o[0], o[1], !0) + "border-color:" + x(e) + ";" + (t.get("extraCssText") || "") + ";pointer-events:" + (this._enterable ? "auto" : "none") : n.display = "none",
233
233
  this._show = !0, this._firstShow = !1, this._longHide = !1;
234
234
  }, TooltipHTMLContent.prototype.setContent = function(t, e, i, n, o) {
235
235
  var a = this.el;
@@ -241,8 +241,8 @@ var ge = /** @class */ function() {
241
241
  e = x(e);
242
242
  var a, r = function(t) {
243
243
  return "left" === t ? "right" : "right" === t ? "left" : "top" === t ? "bottom" : "top";
244
- }(i), s = Math.max(1.5 * Math.round(o), 6), l = "", c = pe + ":";
245
- L([ "left", "right" ], r) > -1 ? (l += "top:50%", c += "translateY(-50%) rotate(" + (a = "left" === r ? -225 : -45) + "deg)") : (l += "left:50%",
244
+ }(i), s = Math.max(1.5 * Math.round(o), 6), l = "", c = ve + ":";
245
+ C([ "left", "right" ], r) > -1 ? (l += "top:50%", c += "translateY(-50%) rotate(" + (a = "left" === r ? -225 : -45) + "deg)") : (l += "left:50%",
246
246
  c += "translateX(-50%) rotate(" + (a = "top" === r ? 225 : 45) + "deg)");
247
247
  var h = a * Math.PI / 180, d = s + o, u = d * Math.abs(Math.cos(h)) + d * Math.abs(Math.sin(h)), f = e + " solid " + o + "px;";
248
248
  return '<div style="position:absolute;width:' + s + "px;height:" + s + "px;z-index:-1;" + (l += ";" + r + ":-" + Math.round(100 * ((u - Math.SQRT2 * o) / 2 + Math.SQRT2 * o - (u - d) / 2)) / 100 + "px") + ";" + c + ";border-bottom:" + f + "border-right:" + f + "background-color:" + n + ';"></div>';
@@ -301,7 +301,7 @@ var ge = /** @class */ function() {
301
301
  var t = this.el.parentNode;
302
302
  t && t.removeChild(this.el), this.el = this._container = null;
303
303
  }, TooltipHTMLContent;
304
- }(), me = /** @class */ function() {
304
+ }(), be = /** @class */ function() {
305
305
  function TooltipRichContent(t) {
306
306
  this._show = !1, this._styleCoord = [ 0, 0, 0, 0 ], this._alwaysShowContent = !1,
307
307
  this._enterable = !0, this._zr = t.getZr(), makeStyleCoord(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2);
@@ -332,7 +332,7 @@ var ge = /** @class */ function() {
332
332
  borderColor: n,
333
333
  textShadowColor: r.get("textShadowColor"),
334
334
  fill: i.get([ "textStyle", "color" ]),
335
- padding: C(i, "richText"),
335
+ padding: L(i, "richText"),
336
336
  verticalAlign: "top",
337
337
  align: "left"
338
338
  },
@@ -404,7 +404,7 @@ function makeStyleCoord(t, e, i, n) {
404
404
  t[0] = i, t[1] = n, t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
405
405
  }
406
406
 
407
- var be = new d({
407
+ var ye = new d({
408
408
  shape: {
409
409
  x: -1,
410
410
  y: -1,
@@ -419,7 +419,7 @@ var be = new d({
419
419
  return u(TooltipView, t), TooltipView.prototype.init = function(t, e) {
420
420
  if (!v.node && e.getDom()) {
421
421
  var i = t.getComponent("tooltip"), n = this._renderMode = V(i.get("renderMode"));
422
- this._tooltipContent = "richText" === n ? new me(e) : new ge(e, {
422
+ this._tooltipContent = "richText" === n ? new be(e) : new me(e, {
423
423
  appendTo: i.get("appendToBody", !0) ? "body" : i.get("appendTo", !0)
424
424
  });
425
425
  }
@@ -526,7 +526,7 @@ var be = new d({
526
526
  positionDefault: "bottom"
527
527
  }, o);
528
528
  } else if (n.tooltip && null != n.x && null != n.y) {
529
- var l = be;
529
+ var l = ye;
530
530
  l.x = n.x, l.y = n.y, l.update(), R(l).tooltipConfig = {
531
531
  name: null,
532
532
  option: n.tooltip
@@ -599,7 +599,7 @@ var be = new d({
599
599
  if ("legend" === R(i).ssrType)
600
600
  // Don't trigger tooltip for legend tooltip item
601
601
  return;
602
- this._lastDataByCoordSys = null, U(i, (function(t) {
602
+ this._lastDataByCoordSys = null, H(i, (function(t) {
603
603
  // Always show item tooltip if mouse is on the element with dataIndex
604
604
  return null != R(t).dataIndex ? (o = t, !0) :
605
605
  // Tooltip provided directly. Like legend.
@@ -615,7 +615,7 @@ var be = new d({
615
615
  var i = t.get("showDelay");
616
616
  e = M(e, this), clearTimeout(this._showTimout), i > 0 ? this._showTimout = setTimeout(e, i) : e();
617
617
  }, TooltipView.prototype._showAxisTooltip = function(t, e) {
618
- var i = this._ecModel, n = this._tooltipModel, o = [ e.offsetX, e.offsetY ], a = buildTooltipModel([ e.tooltipOption ], n), r = this._renderMode, s = [], l = H("section", {
618
+ var i = this._ecModel, n = this._tooltipModel, o = [ e.offsetX, e.offsetY ], a = buildTooltipModel([ e.tooltipOption ], n), r = this._renderMode, s = [], l = U("section", {
619
619
  blocks: [],
620
620
  noHeader: !0
621
621
  }), c = [], h = new E;
@@ -623,7 +623,7 @@ var be = new d({
623
623
  T(t.dataByAxis, (function(t) {
624
624
  var e = i.getComponent(t.axisDim + "Axis", t.axisIndex), o = t.value;
625
625
  if (e && null != o) {
626
- var a = B(o, e.axis, i, t.seriesDataIndices, t.valueLabelOpt), d = H("section", {
626
+ var a = B(o, e.axis, i, t.seriesDataIndices, t.valueLabelOpt), d = U("section", {
627
627
  header: a,
628
628
  noHeader: !W(a),
629
629
  sortBlocks: !0,
@@ -671,9 +671,9 @@ var be = new d({
671
671
  // Pre-create marker style for makers. Users can assemble richText
672
672
  // text in `formatter` callback and use those markers style.
673
673
  v.marker = g.makeTooltipMarker("item", x(v.color), d);
674
- var m = j(s.formatTooltip(l, !1, c)), b = f.get("order"), w = f.get("valueFormatter"), y = m.frag, S = y ? X(w ? it({
675
- valueFormatter: w
676
- }, y) : y, g, d, b, n.get("useUTC"), f.get("textStyle")) : m.text, T = "item_" + s.name + "_" + l;
674
+ var m = j(s.formatTooltip(l, !1, c)), b = f.get("order"), y = f.get("valueFormatter"), w = m.frag, S = w ? X(y ? it({
675
+ valueFormatter: y
676
+ }, w) : w, g, d, b, n.get("useUTC"), f.get("textStyle")) : m.text, T = "item_" + s.name + "_" + l;
677
677
  this._showOrMove(f, (function() {
678
678
  this._showTooltipContent(f, S, v, T, t.offsetX, t.offsetY, t.position, t.target, g);
679
679
  })),
@@ -899,7 +899,7 @@ function isCenterAlign(t) {
899
899
  return "center" === t || "middle" === t;
900
900
  }
901
901
 
902
- var ye = /** @class */ function(t) {
902
+ var xe = /** @class */ function(t) {
903
903
  function LegendModel() {
904
904
  var e = null !== t && t.apply(this, arguments) || this;
905
905
  return e.type = LegendModel.type, e.layoutMode = {
@@ -1011,7 +1011,7 @@ var ye = /** @class */ function(t) {
1011
1011
  }));
1012
1012
  }, LegendModel.prototype.isSelected = function(t) {
1013
1013
  var e = this.option.selected;
1014
- return !(e.hasOwnProperty(t) && !e[t]) && L(this._availableNames, t) >= 0;
1014
+ return !(e.hasOwnProperty(t) && !e[t]) && C(this._availableNames, t) >= 0;
1015
1015
  }, LegendModel.prototype.getOrient = function() {
1016
1016
  return "vertical" === this.get("orient") ? {
1017
1017
  index: 1,
@@ -1094,13 +1094,13 @@ var ye = /** @class */ function(t) {
1094
1094
  show: !1
1095
1095
  }
1096
1096
  }, LegendModel;
1097
- }(f), xe = pt, Se = T, Te = ut, Me = /** @class */ function(t) {
1097
+ }(f), Se = pt, Te = T, Me = ut, Le = /** @class */ function(t) {
1098
1098
  function LegendView() {
1099
1099
  var e = null !== t && t.apply(this, arguments) || this;
1100
1100
  return e.type = LegendView.type, e.newlineDisabled = !1, e;
1101
1101
  }
1102
1102
  return u(LegendView, t), LegendView.prototype.init = function() {
1103
- this.group.add(this._contentGroup = new Te), this.group.add(this._selectorGroup = new Te),
1103
+ this.group.add(this._contentGroup = new Me), this.group.add(this._selectorGroup = new Me),
1104
1104
  this._isFirstRender = !0;
1105
1105
  },
1106
1106
  /**
@@ -1163,11 +1163,11 @@ var ye = /** @class */ function(t) {
1163
1163
  var s = this.getContentGroup(), l = lt(), c = e.get("selectedMode"), h = [];
1164
1164
  i.eachRawSeries((function(t) {
1165
1165
  !t.get("legendHoverLink") && h.push(t.id);
1166
- })), Se(e.getData(), (function(o, a) {
1166
+ })), Te(e.getData(), (function(o, a) {
1167
1167
  var r = o.get("name");
1168
1168
  // Use empty string or \n as a newline string
1169
1169
  if (!this.newlineDisabled && ("" === r || "\n" === r)) {
1170
- var d = new Te;
1170
+ var d = new Me;
1171
1171
  // @ts-ignore
1172
1172
  return d.newline = !0, void s.add(d);
1173
1173
  }
@@ -1177,7 +1177,7 @@ var ye = /** @class */ function(t) {
1177
1177
  // Legend to control series.
1178
1178
  if (u) {
1179
1179
  var f = u.getData(), p = f.getVisual("legendLineStyle") || {}, v = f.getVisual("legendIcon"), g = f.getVisual("style"), m = this._createItem(u, r, a, o, e, t, p, g, v, c, n);
1180
- m.on("click", xe(dispatchSelectAction, r, null, n, h)).on("mouseover", xe(dispatchHighlightAction, u.name, null, n, h)).on("mouseout", xe(dispatchDownplayAction, u.name, null, n, h)),
1180
+ m.on("click", Se(dispatchSelectAction, r, null, n, h)).on("mouseover", Se(dispatchHighlightAction, u.name, null, n, h)).on("mouseout", Se(dispatchDownplayAction, u.name, null, n, h)),
1181
1181
  i.ssr && m.eachChild((function(t) {
1182
1182
  var e = R(t);
1183
1183
  e.seriesIndex = u.seriesIndex, e.dataIndex = a, e.ssrType = "legend";
@@ -1199,7 +1199,7 @@ var ye = /** @class */ function(t) {
1199
1199
  }));
1200
1200
  var g = this._createItem(s, r, a, o, e, t, {}, f, p, c, n);
1201
1201
  // FIXME: consider different series has items with the same name.
1202
- g.on("click", xe(dispatchSelectAction, null, r, n, h)).on("mouseover", xe(dispatchHighlightAction, null, r, n, h)).on("mouseout", xe(dispatchDownplayAction, null, r, n, h)),
1202
+ g.on("click", Se(dispatchSelectAction, null, r, n, h)).on("mouseover", Se(dispatchHighlightAction, null, r, n, h)).on("mouseout", Se(dispatchDownplayAction, null, r, n, h)),
1203
1203
  i.ssr && g.eachChild((function(t) {
1204
1204
  var e = R(t);
1205
1205
  e.seriesIndex = s.seriesIndex, e.dataIndex = a, e.ssrType = "legend";
@@ -1209,7 +1209,7 @@ var ye = /** @class */ function(t) {
1209
1209
  }), this), o && this._createSelector(o, e, n, a, r);
1210
1210
  }, LegendView.prototype._createSelector = function(t, e, i, n, o) {
1211
1211
  var a = this.getSelectorGroup();
1212
- Se(t, (function(t) {
1212
+ Te(t, (function(t) {
1213
1213
  var n = t.type, o = new P({
1214
1214
  style: {
1215
1215
  x: 0,
@@ -1234,14 +1234,14 @@ var ye = /** @class */ function(t) {
1234
1234
  }), bt(o);
1235
1235
  }));
1236
1236
  }, LegendView.prototype._createItem = function(t, e, i, n, o, a, r, s, l, c, h) {
1237
- var u = t.visualDrawType, f = o.get("itemWidth"), p = o.get("itemHeight"), v = o.isSelected(e), m = n.get("symbolRotate"), w = n.get("symbolKeepAspect"), y = n.get("icon"), x = function(t, e, i, n, o, a, r) {
1237
+ var u = t.visualDrawType, f = o.get("itemWidth"), p = o.get("itemHeight"), v = o.isSelected(e), m = n.get("symbolRotate"), y = n.get("symbolKeepAspect"), w = n.get("icon"), x = function(t, e, i, n, o, a, r) {
1238
1238
  /**
1239
1239
  * Use series style if is inherit;
1240
1240
  * elsewise, use legend style
1241
1241
  */
1242
1242
  function handleCommonProps(t, e) {
1243
1243
  // If lineStyle.width is 'auto', it is set to be 2 if series has border
1244
- "auto" === t.lineWidth && (t.lineWidth = e.lineWidth > 0 ? 2 : 0), Se(t, (function(i, n) {
1244
+ "auto" === t.lineWidth && (t.lineWidth = e.lineWidth > 0 ? 2 : 0), Te(t, (function(i, n) {
1245
1245
  "inherit" === t[n] && (t[n] = e[n]);
1246
1246
  }));
1247
1247
  }
@@ -1284,10 +1284,10 @@ var ye = /** @class */ function(t) {
1284
1284
  itemStyle: l,
1285
1285
  lineStyle: u
1286
1286
  };
1287
- }(l = y || l || "roundRect", n, r, s, u, v, h), S = new Te, T = n.getModel("textStyle");
1288
- if (!b(t.getLegendIcon) || y && "inherit" !== y) {
1287
+ }(l = w || l || "roundRect", n, r, s, u, v, h), S = new Me, T = n.getModel("textStyle");
1288
+ if (!b(t.getLegendIcon) || w && "inherit" !== w) {
1289
1289
  // Use default legend icon policy for most series
1290
- var M = "inherit" === y && t.getData().getVisual("symbol") ? "inherit" === m ? t.getData().getVisual("symbolRotate") : m : 0;
1290
+ var M = "inherit" === w && t.getData().getVisual("symbol") ? "inherit" === m ? t.getData().getVisual("symbolRotate") : m : 0;
1291
1291
  // No rotation for no icon
1292
1292
  S.add(function(t) {
1293
1293
  var e = t.icon || "roundRect", i = Tt(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill, t.symbolKeepAspect);
@@ -1301,7 +1301,7 @@ var ye = /** @class */ function(t) {
1301
1301
  icon: l,
1302
1302
  iconRotate: M,
1303
1303
  itemStyle: x.itemStyle,
1304
- symbolKeepAspect: w
1304
+ symbolKeepAspect: y
1305
1305
  }));
1306
1306
  } else
1307
1307
  // Series has specific way to define legend icon
@@ -1312,18 +1312,18 @@ var ye = /** @class */ function(t) {
1312
1312
  iconRotate: m,
1313
1313
  itemStyle: x.itemStyle,
1314
1314
  lineStyle: x.lineStyle,
1315
- symbolKeepAspect: w
1315
+ symbolKeepAspect: y
1316
1316
  }));
1317
- var C = "left" === a ? f + 5 : -5, L = a, I = o.get("formatter"), k = e;
1317
+ var L = "left" === a ? f + 5 : -5, C = a, I = o.get("formatter"), k = e;
1318
1318
  g(I) && I ? k = I.replace("{name}", null != e ? e : "") : b(I) && (k = I(e));
1319
1319
  var A = v ? T.getTextColor() : n.get("inactiveColor");
1320
1320
  S.add(new P({
1321
- style: wt(T, {
1321
+ style: yt(T, {
1322
1322
  text: k,
1323
- x: C,
1323
+ x: L,
1324
1324
  y: p / 2,
1325
1325
  fill: A,
1326
- align: L,
1326
+ align: C,
1327
1327
  verticalAlign: "middle"
1328
1328
  }, {
1329
1329
  inheritColor: A
@@ -1337,7 +1337,7 @@ var ye = /** @class */ function(t) {
1337
1337
  fill: "transparent"
1338
1338
  }
1339
1339
  }), z = n.getModel("tooltip");
1340
- return z.get("show") && yt({
1340
+ return z.get("show") && wt({
1341
1341
  el: V,
1342
1342
  componentModel: o,
1343
1343
  itemName: e,
@@ -1508,7 +1508,7 @@ function makeSelectedMap(t, e) {
1508
1508
  }
1509
1509
 
1510
1510
  function install$3(t) {
1511
- t.registerComponentModel(ye), t.registerComponentView(Me), t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter),
1511
+ t.registerComponentModel(xe), t.registerComponentView(Le), t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter),
1512
1512
  t.registerSubTypeDefaulter("legend", (function() {
1513
1513
  return "plain";
1514
1514
  })), function(t) {
@@ -1549,7 +1549,7 @@ var Ce = /** @class */ function(t) {
1549
1549
  */ return u(ScrollableLegendModel, t), ScrollableLegendModel.prototype.setScrollDataIndex = function(t) {
1550
1550
  this.option.scrollDataIndex = t;
1551
1551
  }, ScrollableLegendModel.prototype.init = function(e, i, n) {
1552
- var o = Ct(e);
1552
+ var o = Lt(e);
1553
1553
  t.prototype.init.call(this, e, i, n), mergeAndNormalizeLayoutParams(this, e, o);
1554
1554
  },
1555
1555
  /**
@@ -1557,7 +1557,7 @@ var Ce = /** @class */ function(t) {
1557
1557
  */
1558
1558
  ScrollableLegendModel.prototype.mergeOption = function(e, i) {
1559
1559
  t.prototype.mergeOption.call(this, e, i), mergeAndNormalizeLayoutParams(this, this.option, e);
1560
- }, ScrollableLegendModel.type = "legend.scroll", ScrollableLegendModel.defaultOption = Lt(ye.defaultOption, {
1560
+ }, ScrollableLegendModel.type = "legend.scroll", ScrollableLegendModel.defaultOption = Ct(xe.defaultOption, {
1561
1561
  scrollDataIndex: 0,
1562
1562
  pageButtonItemGap: 5,
1563
1563
  pageButtonGap: null,
@@ -1575,7 +1575,7 @@ var Ce = /** @class */ function(t) {
1575
1575
  },
1576
1576
  animationDurationUpdate: 800
1577
1577
  }), ScrollableLegendModel;
1578
- }(ye);
1578
+ }(xe);
1579
1579
 
1580
1580
  // Do not `ignoreSize` to enable setting {left: 10, right: 10}.
1581
1581
  function mergeAndNormalizeLayoutParams(t, e, i) {
@@ -1586,15 +1586,15 @@ function mergeAndNormalizeLayoutParams(t, e, i) {
1586
1586
  });
1587
1587
  }
1588
1588
 
1589
- var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ function(t) {
1589
+ var Ie = ut, ke = [ "width", "height" ], Ae = [ "x", "y" ], Pe = /** @class */ function(t) {
1590
1590
  function ScrollableLegendView() {
1591
1591
  var e = null !== t && t.apply(this, arguments) || this;
1592
1592
  return e.type = ScrollableLegendView.type, e.newlineDisabled = !0, e._currentIndex = 0,
1593
1593
  e;
1594
1594
  }
1595
1595
  return u(ScrollableLegendView, t), ScrollableLegendView.prototype.init = function() {
1596
- t.prototype.init.call(this), this.group.add(this._containerGroup = new Le), this._containerGroup.add(this.getContentGroup()),
1597
- this.group.add(this._controllerGroup = new Le);
1596
+ t.prototype.init.call(this), this.group.add(this._containerGroup = new Ie), this._containerGroup.add(this.getContentGroup()),
1597
+ this.group.add(this._controllerGroup = new Ie);
1598
1598
  },
1599
1599
  /**
1600
1600
  * @override
@@ -1645,7 +1645,7 @@ var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ f
1645
1645
  * @override
1646
1646
  */
1647
1647
  ScrollableLegendView.prototype.layoutInner = function(t, e, i, n, o, a) {
1648
- var r = this.getSelectorGroup(), s = t.getOrient().index, l = Ie[s], c = ke[s], h = Ie[1 - s], d = ke[1 - s];
1648
+ var r = this.getSelectorGroup(), s = t.getOrient().index, l = ke[s], c = Ae[s], h = ke[1 - s], d = Ae[1 - s];
1649
1649
  o && xt(
1650
1650
  // Buttons in selectorGroup always layout horizontally
1651
1651
  "horizontal", r, t.get("selectorItemGap", !0));
@@ -1684,24 +1684,24 @@ var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ f
1684
1684
  // Calculate `mainRect` and set `clipPath`.
1685
1685
  // mainRect should not be calculated by `this.group.getBoundingRect()`
1686
1686
  // for sake of the overflow.
1687
- var w = {
1687
+ var y = {
1688
1688
  x: 0,
1689
1689
  y: 0
1690
1690
  };
1691
1691
  // Consider content may be overflow (should be clipped).
1692
- if (w[o] = p ? i[o] : u[o], w[a] = Math.max(u[a], f[a]),
1692
+ if (y[o] = p ? i[o] : u[o], y[a] = Math.max(u[a], f[a]),
1693
1693
  // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.
1694
- w[r] = Math.min(0, f[r] + m[1 - n]), c.__rectSize = i[o], p) {
1695
- var y = {
1694
+ y[r] = Math.min(0, f[r] + m[1 - n]), c.__rectSize = i[o], p) {
1695
+ var w = {
1696
1696
  x: 0,
1697
1697
  y: 0
1698
1698
  };
1699
- y[o] = Math.max(i[o] - f[o] - b, 0), y[a] = w[a], c.setClipPath(new d({
1700
- shape: y
1699
+ w[o] = Math.max(i[o] - f[o] - b, 0), w[a] = y[a], c.setClipPath(new d({
1700
+ shape: w
1701
1701
  })),
1702
1702
  // Consider content may be larger than container, container rect
1703
1703
  // can not be obtained from `containerGroup.getBoundingRect()`.
1704
- c.__rectSize = y[o];
1704
+ c.__rectSize = w[o];
1705
1705
  } else
1706
1706
  // Do not remove or ignore controller. Keep them set as placeholders.
1707
1707
  h.eachChild((function(t) {
@@ -1718,7 +1718,7 @@ var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ f
1718
1718
  },
1719
1719
  // When switch from "show controller" to "not show controller", view should be
1720
1720
  // updated immediately without animation, otherwise causes weird effect.
1721
- p ? t : null), this._updatePageInfoView(t, x), w;
1721
+ p ? t : null), this._updatePageInfoView(t, x), y;
1722
1722
  }, ScrollableLegendView.prototype._pageGo = function(t, e, i) {
1723
1723
  var n = this._getPageInfo(e)[t];
1724
1724
  null != n && i.dispatchAction({
@@ -1748,7 +1748,7 @@ var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ f
1748
1748
  * }
1749
1749
  */
1750
1750
  ScrollableLegendView.prototype._getPageInfo = function(t) {
1751
- var e = t.get("scrollDataIndex", !0), i = this.getContentGroup(), n = this._containerGroup.__rectSize, o = t.getOrient().index, a = Ie[o], r = ke[o], s = this._findTargetItemIndex(e), l = i.children(), c = l[s], h = l.length, d = h ? 1 : 0, u = {
1751
+ var e = t.get("scrollDataIndex", !0), i = this.getContentGroup(), n = this._containerGroup.__rectSize, o = t.getOrient().index, a = ke[o], r = Ae[o], s = this._findTargetItemIndex(e), l = i.children(), c = l[s], h = l.length, d = h ? 1 : 0, u = {
1752
1752
  contentPosition: [ i.x, i.y ],
1753
1753
  pageCount: d,
1754
1754
  pageIndex: d - 1,
@@ -1804,10 +1804,10 @@ var Le = ut, Ie = [ "width", "height" ], ke = [ "x", "y" ], Ae = /** @class */ f
1804
1804
  })), null != e ? e : i) : 0;
1805
1805
  var e, i;
1806
1806
  }, ScrollableLegendView.type = "legend.scroll", ScrollableLegendView;
1807
- }(Me);
1807
+ }(Le);
1808
1808
 
1809
1809
  function install$2(t) {
1810
- nt(install$3), t.registerComponentModel(Ce), t.registerComponentView(Ae),
1810
+ nt(install$3), t.registerComponentModel(Ce), t.registerComponentView(Pe),
1811
1811
  /*
1812
1812
  * Licensed to the Apache Software Foundation (ASF) under one
1813
1813
  * or more contributor license agreements. See the NOTICE file
@@ -1867,7 +1867,7 @@ function install$2(t) {
1867
1867
  }(t);
1868
1868
  }
1869
1869
 
1870
- var Pe = 2 * Math.PI, Ve = Math.PI / 180;
1870
+ var Ve = 2 * Math.PI, ze = Math.PI / 180;
1871
1871
 
1872
1872
  function getViewRect(t, e) {
1873
1873
  return _(t.getBoxLayoutParams(), {
@@ -1896,20 +1896,20 @@ function getBasicPieLayout(t, e) {
1896
1896
 
1897
1897
  function pieLayout(t, e, i) {
1898
1898
  e.eachSeriesByType(t, (function(t) {
1899
- var e = t.getData(), n = e.mapDimension("value"), o = getViewRect(t, i), a = getBasicPieLayout(t, i), r = a.cx, s = a.cy, l = a.r, c = a.r0, h = -t.get("startAngle") * Ve, d = t.get("endAngle"), u = t.get("padAngle") * Ve;
1900
- d = "auto" === d ? h - Pe : -d * Ve;
1901
- var f = t.get("minAngle") * Ve + u, p = 0;
1899
+ var e = t.getData(), n = e.mapDimension("value"), o = getViewRect(t, i), a = getBasicPieLayout(t, i), r = a.cx, s = a.cy, l = a.r, c = a.r0, h = -t.get("startAngle") * ze, d = t.get("endAngle"), u = t.get("padAngle") * ze;
1900
+ d = "auto" === d ? h - Ve : -d * ze;
1901
+ var f = t.get("minAngle") * ze + u, p = 0;
1902
1902
  e.each(n, (function(t) {
1903
1903
  !isNaN(t) && p++;
1904
1904
  }));
1905
- var v = e.getSum(n), g = Math.PI / (v || p) * 2, m = t.get("clockwise"), b = t.get("roseType"), w = t.get("stillShowZeroSum"), y = e.getDataExtent(n);
1905
+ var v = e.getSum(n), g = Math.PI / (v || p) * 2, m = t.get("clockwise"), b = t.get("roseType"), y = t.get("stillShowZeroSum"), w = e.getDataExtent(n);
1906
1906
  // Sum may be 0
1907
- y[0] = 0;
1907
+ w[0] = 0;
1908
1908
  var x = m ? 1 : -1, S = [ h, d ], T = x * u / 2;
1909
1909
  Pt(S, !m), h = S[0], d = S[1];
1910
- var M = ze(t);
1910
+ var M = De(t);
1911
1911
  M.startAngle = h, M.endAngle = d, M.clockwise = m;
1912
- var C = Math.abs(d - h), L = C, I = 0, k = h;
1912
+ var L = Math.abs(d - h), C = L, I = 0, k = h;
1913
1913
  // In the case some sector angle is smaller than minAngle
1914
1914
  // Some sector is constrained by minAngle and padAngle
1915
1915
  // Rest sectors needs recalculate angle
@@ -1930,7 +1930,7 @@ function pieLayout(t, e, i) {
1930
1930
  }); else {
1931
1931
  (
1932
1932
  // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?
1933
- n = "area" !== b ? 0 === v && w ? g : t * g : C / p) < f ? (n = f, L -= f) : I += t;
1933
+ n = "area" !== b ? 0 === v && y ? g : t * g : L / p) < f ? (n = f, C -= f) : I += t;
1934
1934
  var o = k + x * n, a = 0, h = 0;
1935
1935
  // calculate display angle
1936
1936
  u > n ? h = a = k + x * n / 2 : (a = k + T, h = o - T), e.setItemLayout(i, {
@@ -1941,14 +1941,14 @@ function pieLayout(t, e, i) {
1941
1941
  cx: r,
1942
1942
  cy: s,
1943
1943
  r0: c,
1944
- r: b ? zt(t, y, [ c, l ]) : l
1944
+ r: b ? zt(t, w, [ c, l ]) : l
1945
1945
  }), k = o;
1946
1946
  }
1947
- })), L < Pe && p)
1947
+ })), C < Ve && p)
1948
1948
  // Average the angle if rest angle is not enough after all angles is
1949
1949
  // Constrained by minAngle and padAngle
1950
- if (L <= .001) {
1951
- var A = C / p;
1950
+ if (C <= .001) {
1951
+ var A = L / p;
1952
1952
  e.each(n, (function(t, i) {
1953
1953
  if (!isNaN(t)) {
1954
1954
  var n = e.getItemLayout(i);
@@ -1958,7 +1958,7 @@ function pieLayout(t, e, i) {
1958
1958
  n.startAngle = o, n.endAngle = a;
1959
1959
  }
1960
1960
  }));
1961
- } else g = L / I, k = h, e.each(n, (function(t, i) {
1961
+ } else g = C / I, k = h, e.each(n, (function(t, i) {
1962
1962
  if (!isNaN(t)) {
1963
1963
  var n = e.getItemLayout(i), o = n.angle === f ? f : t * g, a = 0, r = 0;
1964
1964
  o < u ? r = a = k + x * o / 2 : (a = k + T, r = k + x * o - T), n.startAngle = a,
@@ -1968,7 +1968,7 @@ function pieLayout(t, e, i) {
1968
1968
  }));
1969
1969
  }
1970
1970
 
1971
- var ze = Vt();
1971
+ var De = Vt();
1972
1972
 
1973
1973
  /*
1974
1974
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -2008,7 +2008,7 @@ var ze = Vt();
2008
2008
  * KIND, either express or implied. See the License for the
2009
2009
  * specific language governing permissions and limitations
2010
2010
  * under the License.
2011
- */ var De = Math.PI / 180;
2011
+ */ var Ne = Math.PI / 180;
2012
2012
 
2013
2013
  function adjustSingleSide(t, e, i, n, o, a, r, s, l, c) {
2014
2014
  if (!(t.length < 2)) {
@@ -2093,12 +2093,12 @@ function isPositionCenter(t) {
2093
2093
  }
2094
2094
 
2095
2095
  function pieLabelLayout(t) {
2096
- var e, i, n = t.getData(), o = [], a = !1, r = (t.get("minShowLabelAngle") || 0) * De, s = n.getLayout("viewRect"), l = n.getLayout("r"), c = s.width, h = s.x, d = s.y, u = s.height;
2096
+ var e, i, n = t.getData(), o = [], a = !1, r = (t.get("minShowLabelAngle") || 0) * Ne, s = n.getLayout("viewRect"), l = n.getLayout("r"), c = s.width, h = s.x, d = s.y, u = s.height;
2097
2097
  function setNotShow(t) {
2098
2098
  t.ignore = !0;
2099
2099
  }
2100
2100
  n.each((function(t) {
2101
- var s = n.getItemGraphicEl(t), d = s.shape, u = s.getTextContent(), f = s.getTextGuideLine(), p = n.getItemModel(t), v = p.getModel("label"), g = v.get("position") || p.get([ "emphasis", "label", "position" ]), m = v.get("distanceToLabelLine"), b = v.get("alignTo"), w = K(v.get("edgeDistance"), c), y = v.get("bleedMargin"), x = p.getModel("labelLine"), S = x.get("length");
2101
+ var s = n.getItemGraphicEl(t), d = s.shape, u = s.getTextContent(), f = s.getTextGuideLine(), p = n.getItemModel(t), v = p.getModel("label"), g = v.get("position") || p.get([ "emphasis", "label", "position" ]), m = v.get("distanceToLabelLine"), b = v.get("alignTo"), y = K(v.get("edgeDistance"), c), w = v.get("bleedMargin"), x = p.getModel("labelLine"), S = x.get("length");
2102
2102
  S = K(S, c);
2103
2103
  var M = x.get("length2");
2104
2104
  if (M = K(M, c), Math.abs(d.endAngle - d.startAngle) < r) return T(u.states, setNotShow),
@@ -2108,28 +2108,28 @@ function pieLabelLayout(t) {
2108
2108
  for (var e in t.states) if (!1 === t.states[e].ignore) return !0;
2109
2109
  return !1;
2110
2110
  }(u)) {
2111
- var C, L, I, k, A = (d.startAngle + d.endAngle) / 2, P = Math.cos(A), V = Math.sin(A);
2111
+ var L, C, I, k, A = (d.startAngle + d.endAngle) / 2, P = Math.cos(A), V = Math.sin(A);
2112
2112
  e = d.cx, i = d.cy;
2113
2113
  var z = "inside" === g || "inner" === g;
2114
- if ("center" === g) C = d.cx, L = d.cy, k = "center"; else {
2114
+ if ("center" === g) L = d.cx, C = d.cy, k = "center"; else {
2115
2115
  var D = (z ? (d.r + d.r0) / 2 * P : d.r * P) + e, N = (z ? (d.r + d.r0) / 2 * V : d.r * V) + i;
2116
- if (C = D + 3 * P, L = N + 3 * V, !z) {
2116
+ if (L = D + 3 * P, C = N + 3 * V, !z) {
2117
2117
  // For roseType
2118
- var R = D + P * (S + l - d.r), O = N + V * (S + l - d.r), U = R + (P < 0 ? -1 : 1) * M;
2118
+ var R = D + P * (S + l - d.r), O = N + V * (S + l - d.r), H = R + (P < 0 ? -1 : 1) * M;
2119
2119
  // Adjust textX because text align of edge is opposite
2120
- C = "edge" === b ? P < 0 ? h + w : h + c - w : U + (P < 0 ? -m : m), L = O, I = [ [ D, N ], [ R, O ], [ U, O ] ];
2120
+ L = "edge" === b ? P < 0 ? h + y : h + c - y : H + (P < 0 ? -m : m), C = O, I = [ [ D, N ], [ R, O ], [ H, O ] ];
2121
2121
  }
2122
2122
  k = z ? "center" : "edge" === b ? P > 0 ? "right" : "left" : P > 0 ? "left" : "right";
2123
2123
  }
2124
- var H = Math.PI, B = 0, W = v.get("rotate");
2125
- if (ht(W)) B = W * (H / 180); else if ("center" === g) B = 0; else if ("radial" === W || !0 === W) {
2126
- B = P < 0 ? -A + H : -A;
2124
+ var U = Math.PI, B = 0, W = v.get("rotate");
2125
+ if (ht(W)) B = W * (U / 180); else if ("center" === g) B = 0; else if ("radial" === W || !0 === W) {
2126
+ B = P < 0 ? -A + U : -A;
2127
2127
  } else if ("tangential" === W && "outside" !== g && "outer" !== g) {
2128
2128
  var F = Math.atan2(P, V);
2129
- F < 0 && (F = 2 * H + F), V > 0 && (F = H + F), B = F - H;
2129
+ F < 0 && (F = 2 * U + F), V > 0 && (F = U + F), B = F - U;
2130
2130
  }
2131
2131
  // Not sectorShape the inside label
2132
- if (a = !!B, u.x = C, u.y = L, u.rotation = B, u.setStyle({
2132
+ if (a = !!B, u.x = L, u.y = C, u.rotation = B, u.setStyle({
2133
2133
  verticalAlign: "middle"
2134
2134
  }), z) {
2135
2135
  u.setStyle({
@@ -2155,8 +2155,8 @@ function pieLabelLayout(t) {
2155
2155
  textAlign: k,
2156
2156
  labelDistance: m,
2157
2157
  labelAlignTo: b,
2158
- edgeDistance: w,
2159
- bleedMargin: y,
2158
+ edgeDistance: y,
2159
+ bleedMargin: w,
2160
2160
  rect: j,
2161
2161
  unconstrainedWidth: j.width,
2162
2162
  labelStyleWidth: u.style.width
@@ -2184,7 +2184,7 @@ function pieLabelLayout(t) {
2184
2184
  var g;
2185
2185
  if (!isPositionCenter(g = t[u]) && g.linePoints) {
2186
2186
  f = g.label, p = g.linePoints;
2187
- var m = "edge" === g.labelAlignTo, b = f.style.padding, w = b ? b[1] + b[3] : 0, y = f.style.backgroundColor ? 0 : w, x = g.rect.width + y, S = p[1][0] - p[2][0];
2187
+ var m = "edge" === g.labelAlignTo, b = f.style.padding, y = b ? b[1] + b[3] : 0, w = f.style.backgroundColor ? 0 : y, x = g.rect.width + w, S = p[1][0] - p[2][0];
2188
2188
  m ? f.x < e ? p[2][0] = r + g.edgeDistance + x + g.labelDistance : p[2][0] = r + o - g.edgeDistance - x - g.labelDistance : (f.x < e ? p[2][0] = f.x + g.labelDistance : p[2][0] = f.x - g.labelDistance,
2189
2189
  p[1][0] = p[2][0] + S), p[1][1] = p[2][1] = f.y;
2190
2190
  }
@@ -2200,14 +2200,14 @@ function pieLabelLayout(t) {
2200
2200
  b && (b.x += v.x, b.y += v.y);
2201
2201
  }
2202
2202
  if (g) {
2203
- var w = p.linePoints;
2204
- m || !w ? (T(g.states, setNotShow), g.ignore = !0) : (ae(w, p.minTurnAngle), re(w, p.surfaceNormal, p.maxSurfaceAngle),
2203
+ var y = p.linePoints;
2204
+ m || !y ? (T(g.states, setNotShow), g.ignore = !0) : (re(y, p.minTurnAngle), se(y, p.surfaceNormal, p.maxSurfaceAngle),
2205
2205
  g.setShape({
2206
- points: w
2206
+ points: y
2207
2207
  }),
2208
2208
  // Set the anchor to the midpoint of sector
2209
2209
  v.__hostTarget.textGuideLineConfig = {
2210
- anchor: new Dt(w[0][0], w[0][1])
2210
+ anchor: new Dt(y[0][0], y[0][1])
2211
2211
  });
2212
2212
  }
2213
2213
  }
@@ -2215,7 +2215,7 @@ function pieLabelLayout(t) {
2215
2215
 
2216
2216
  /**
2217
2217
  * Piece of pie including Sector, Label, LabelLine
2218
- */ var Ne = /** @class */ function(t) {
2218
+ */ var Re = /** @class */ function(t) {
2219
2219
  function PiePiece(e, i, n) {
2220
2220
  var o = t.call(this) || this;
2221
2221
  o.z2 = 2;
@@ -2223,7 +2223,7 @@ function pieLabelLayout(t) {
2223
2223
  return o.setTextContent(a), o.updateData(e, i, n, !0), o;
2224
2224
  }
2225
2225
  return u(PiePiece, t), PiePiece.prototype.updateData = function(t, e, i, n) {
2226
- var o = this, a = t.hostModel, r = t.getItemModel(e), s = r.getModel("emphasis"), l = t.getItemLayout(e), c = it(se(r.getModel("itemStyle"), l, !0), l);
2226
+ var o = this, a = t.hostModel, r = t.getItemModel(e), s = r.getModel("emphasis"), l = t.getItemLayout(e), c = it(le(r.getModel("itemStyle"), l, !0), l);
2227
2227
  // Ignore NaN data.
2228
2228
  if (isNaN(c.startAngle))
2229
2229
  // Use NaN shape to avoid drawing shape.
@@ -2234,20 +2234,20 @@ function pieLabelLayout(t) {
2234
2234
  a.ecModel.ssr ? (
2235
2235
  // Use scale animation in SSR mode(opacity?)
2236
2236
  // Because CSS SVG animation doesn't support very customized shape animation.
2237
- Ht(o, {
2237
+ Ut(o, {
2238
2238
  scaleX: 0,
2239
2239
  scaleY: 0
2240
2240
  }, a, {
2241
2241
  dataIndex: e,
2242
2242
  isFrom: !0
2243
- }), o.originX = c.cx, o.originY = c.cy) : "scale" === h ? (o.shape.r = l.r0, Ht(o, {
2243
+ }), o.originX = c.cx, o.originY = c.cy) : "scale" === h ? (o.shape.r = l.r0, Ut(o, {
2244
2244
  shape: {
2245
2245
  r: l.r
2246
2246
  }
2247
2247
  }, a, e)) : null != i ? (o.setShape({
2248
2248
  startAngle: i,
2249
2249
  endAngle: i
2250
- }), Ht(o, {
2250
+ }), Ut(o, {
2251
2251
  shape: {
2252
2252
  startAngle: l.startAngle,
2253
2253
  endAngle: l.endAngle
@@ -2266,12 +2266,12 @@ function pieLabelLayout(t) {
2266
2266
  var d = (l.startAngle + l.endAngle) / 2, u = a.get("selectedOffset"), f = Math.cos(d) * u, p = Math.sin(d) * u, v = r.getShallow("cursor");
2267
2267
  v && o.attr("cursor", v), this._updateLabel(a, t, e), o.ensureState("emphasis").shape = it({
2268
2268
  r: l.r + (s.get("scale") && s.get("scaleSize") || 0)
2269
- }, se(s.getModel("itemStyle"), l)), it(o.ensureState("select"), {
2269
+ }, le(s.getModel("itemStyle"), l)), it(o.ensureState("select"), {
2270
2270
  x: f,
2271
2271
  y: p,
2272
- shape: se(r.getModel([ "select", "itemStyle" ]), l)
2272
+ shape: le(r.getModel([ "select", "itemStyle" ]), l)
2273
2273
  }), it(o.ensureState("blur"), {
2274
- shape: se(r.getModel([ "blur", "itemStyle" ]), l)
2274
+ shape: le(r.getModel([ "blur", "itemStyle" ]), l)
2275
2275
  });
2276
2276
  var g = o.getTextGuideLine(), m = o.getTextContent();
2277
2277
  g && it(g.ensureState("select"), {
@@ -2310,13 +2310,13 @@ function pieLabelLayout(t) {
2310
2310
  var d = this.getTextGuideLine();
2311
2311
  d || (d = new jt, this.setTextGuideLine(d)),
2312
2312
  // Default use item visual color
2313
- le(this, ce(o), {
2313
+ ce(this, he(o), {
2314
2314
  stroke: s,
2315
2315
  opacity: Xt(a.get([ "lineStyle", "opacity" ]), l, 1)
2316
2316
  });
2317
2317
  }
2318
2318
  }, PiePiece;
2319
- }(Rt), Re = /** @class */ function(t) {
2319
+ }(Rt), Oe = /** @class */ function(t) {
2320
2320
  function PieView() {
2321
2321
  var e = null !== t && t.apply(this, arguments) || this;
2322
2322
  return e.ignoreLabelLineUpdate = !0, e;
@@ -2331,14 +2331,14 @@ function pieLabelLayout(t) {
2331
2331
  // remove empty-circle if it exists
2332
2332
  // when all data are filtered, show lightgray empty circle
2333
2333
  if (this._emptyCircleSector && s.remove(this._emptyCircleSector), 0 === a.count() && t.get("showEmptyCircle")) {
2334
- var h = ze(t), d = new Rt({
2334
+ var h = De(t), d = new Rt({
2335
2335
  shape: it(getBasicPieLayout(t, i), h)
2336
2336
  });
2337
2337
  d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = d,
2338
2338
  s.add(d);
2339
2339
  }
2340
2340
  a.diff(r).add((function(t) {
2341
- var e = new Ne(a, t, o);
2341
+ var e = new Re(a, t, o);
2342
2342
  a.setItemGraphicEl(t, e), s.add(e);
2343
2343
  })).update((function(t, e) {
2344
2344
  var i = r.getItemGraphicEl(e);
@@ -2356,7 +2356,7 @@ function pieLabelLayout(t) {
2356
2356
  return a <= i.r && a >= i.r0;
2357
2357
  }
2358
2358
  }, PieView.type = "pie", PieView;
2359
- }(Ut);
2359
+ }(Ht);
2360
2360
 
2361
2361
  // Pie view
2362
2362
  /*
@@ -2402,7 +2402,7 @@ function pieLabelLayout(t) {
2402
2402
  * LegendVisualProvider is an bridge that pick encoded color from data and
2403
2403
  * provide to the legend component.
2404
2404
  */
2405
- var Oe = /** @class */ function() {
2405
+ var He = /** @class */ function() {
2406
2406
  function LegendVisualProvider(
2407
2407
  // Function to get data after filtered. It stores all the encoding info
2408
2408
  t,
@@ -2422,7 +2422,7 @@ var Oe = /** @class */ function() {
2422
2422
  }, LegendVisualProvider.prototype.getItemVisual = function(t, e) {
2423
2423
  return this._getDataWithEncodedVisual().getItemVisual(t, e);
2424
2424
  }, LegendVisualProvider;
2425
- }(), Ue = Vt(), He = /** @class */ function(t) {
2425
+ }(), Ue = Vt(), Be = /** @class */ function(t) {
2426
2426
  function PieSeriesModel() {
2427
2427
  return null !== t && t.apply(this, arguments) || this;
2428
2428
  }
@@ -2432,7 +2432,7 @@ var Oe = /** @class */ function() {
2432
2432
  t.prototype.init.apply(this, arguments),
2433
2433
  // Enable legend selection for each data item
2434
2434
  // Use a function instead of direct access because data reference may changed
2435
- this.legendVisualProvider = new Oe(M(this.getData, this), M(this.getRawData, this)),
2435
+ this.legendVisualProvider = new He(M(this.getData, this), M(this.getRawData, this)),
2436
2436
  this._defaultLabelLine(e);
2437
2437
  },
2438
2438
  /**
@@ -2588,7 +2588,7 @@ var Oe = /** @class */ function() {
2588
2588
  }(_t);
2589
2589
 
2590
2590
  nt([ function(t) {
2591
- nt(ot), t.registerComponentModel(de), t.registerComponentView(we),
2591
+ nt(ot), t.registerComponentModel(ue), t.registerComponentView(we),
2592
2592
  /**
2593
2593
  * @action
2594
2594
  * @property {string} type
@@ -2609,7 +2609,7 @@ nt([ function(t) {
2609
2609
  }, function(t) {
2610
2610
  nt(install$3), nt(install$2);
2611
2611
  }, function(t) {
2612
- t.registerChartView(Re), t.registerSeriesModel(He), Jt("pie", t.registerAction),
2612
+ t.registerChartView(Oe), t.registerSeriesModel(Be), Jt("pie", t.registerAction),
2613
2613
  t.registerLayout(pt(pieLayout, "pie")), t.registerProcessor(function(t) {
2614
2614
  return {
2615
2615
  seriesType: t,
@@ -2642,9 +2642,9 @@ nt([ function(t) {
2642
2642
  }
2643
2643
  };
2644
2644
  }("pie"));
2645
- }, Zt, Qt, he ]);
2645
+ }, Zt, Qt, de ]);
2646
2646
 
2647
- const Be = t(class extends e {
2647
+ const We = t(class extends e {
2648
2648
  constructor(t) {
2649
2649
  super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.change = i(this, "change", 7),
2650
2650
  this.click = i(this, "click", 7), this.tctChange = i(this, "tctChange", 7), this.tctClick = i(this, "tctClick", 7),
@@ -2652,7 +2652,7 @@ const Be = t(class extends e {
2652
2652
  id: null,
2653
2653
  value: null,
2654
2654
  name: null
2655
- },
2655
+ }, this.keyboardAnnouncement = "",
2656
2656
  /** An array of objects that contain the data to be displayed. */
2657
2657
  this.data = [],
2658
2658
  /** The amount which the slice will scale when hovered. */
@@ -2691,11 +2691,11 @@ const Be = t(class extends e {
2691
2691
  c(this, [ "click", "tctClick" ], i);
2692
2692
  }, this.onButtonKeyDown = t => {
2693
2693
  const {selectedId: e, data: i} = this;
2694
+ if (!i.length || t.altKey || t.ctrlKey || t.metaKey || t.shiftKey) return;
2694
2695
  let n = this.getIndexById(e) || 0;
2695
2696
  switch (t.key) {
2696
2697
  case "ArrowUp":
2697
2698
  case "ArrowDown":
2698
- case " ":
2699
2699
  t.preventDefault();
2700
2700
  break;
2701
2701
 
@@ -2716,12 +2716,24 @@ const Be = t(class extends e {
2716
2716
  break;
2717
2717
 
2718
2718
  case "Escape":
2719
- this.clearSelection();
2719
+ return t.preventDefault(), this.clearSelection(), void (this.keyboardAnnouncement = a(this.summaryName || "tecton.element.chartDonut.button.summaryName"));
2720
+
2721
+ case "Home":
2722
+ case "End":
2723
+ t.preventDefault(), n = "Home" === t.key ? 0 : i.length - 1, this.chart.dispatchAction({
2724
+ type: "select",
2725
+ seriesId: "pie",
2726
+ dataIndex: n
2727
+ });
2720
2728
  break;
2721
2729
 
2722
2730
  default:
2723
2731
  return;
2724
2732
  }
2733
+ if ([ "ArrowLeft", "ArrowRight", "Home", "End" ].includes(t.key)) {
2734
+ const t = i[n];
2735
+ this.keyboardAnnouncement = te(t.name, this.displayValue(t.value), n, i.length);
2736
+ }
2725
2737
  }, this.onClickElsewhere = t => {
2726
2738
  t.stopPropagation(), this.clearSelection();
2727
2739
  }, this.onContainerClick = t => {
@@ -2778,17 +2790,17 @@ const Be = t(class extends e {
2778
2790
  this.hoveredId = null, this.selectedId = null;
2779
2791
  }
2780
2792
  componentDidLoad() {
2781
- const t = te(this.chartContainer);
2793
+ const t = ee(this.chartContainer);
2782
2794
  this.cacheComputedStyles(), this.colors = this.getColors(), this.resizeObserver = new ResizeObserver((() => this.resizeChart())),
2783
2795
  this.resizeObserver.observe(this.hostElement), this.updateChart(t), this.setupChartEvents(t),
2784
2796
  this.checkSelectedId(), this.chart = t, this.setLegendData(), this.selectById(this.selectedId),
2785
- a(this.hostElement);
2797
+ r(this.hostElement);
2786
2798
  }
2787
2799
  // #endregion
2788
2800
  // #region Listeners
2789
2801
  delegateFocus(t) {
2790
- var e;
2791
- r(t, this.hostElement) && this.isClickable && (null === (e = this.centerButtonElement) || void 0 === e || e.focus());
2802
+ var e, i;
2803
+ s(t, this.hostElement) && (this.isClickable ? null === (e = this.centerButtonElement) || void 0 === e || e.focus() : this.data.length && (null === (i = this.chartContainer) || void 0 === i || i.focus()));
2792
2804
  }
2793
2805
  // #endregion
2794
2806
  // #region Public Methods API
@@ -2847,7 +2859,8 @@ const Be = t(class extends e {
2847
2859
  this.chart && this.updateChart(this.chart);
2848
2860
  }
2849
2861
  dataUpdated() {
2850
- this.chart && (this.colors = this.getColors(), this.updateChart(this.chart), this.setLegendData());
2862
+ this.keyboardAnnouncement = "", this.chart && (this.colors = this.getColors(), this.updateChart(this.chart),
2863
+ this.setLegendData());
2851
2864
  }
2852
2865
  innerRadiusUpdated() {
2853
2866
  const {innerRadius: t, outerRadius: e} = this, i = parseFloat(t), n = parseFloat(e);
@@ -2880,7 +2893,7 @@ const Be = t(class extends e {
2880
2893
  ...this.getDataById(i),
2881
2894
  color: this.colors[n]
2882
2895
  } : {
2883
- name: s(this.summaryName || "tecton.element.chartDonut.button.summaryName"),
2896
+ name: a(this.summaryName || "tecton.element.chartDonut.button.summaryName"),
2884
2897
  icon: this.summaryIcon,
2885
2898
  value: e.reduce(((t, e) => t + e.value), 0),
2886
2899
  color: null
@@ -2907,7 +2920,7 @@ const Be = t(class extends e {
2907
2920
  const t = [ 1, 3, 8, 4, 2, 10, 7, 11, 6, 9, 12, 5 ].map((t => "--comp-color-" + t));
2908
2921
  return this.data.reduce(((e, i, n) => {
2909
2922
  let o = t[n % t.length];
2910
- return i.color && (o = i.color), e.push(ee(o, this.chartContainerStyles, this.hostElementStyles) || o),
2923
+ return i.color && (o = i.color), e.push(ie(o, this.chartContainerStyles, this.hostElementStyles) || o),
2911
2924
  e;
2912
2925
  }), []);
2913
2926
  }
@@ -2971,7 +2984,8 @@ const Be = t(class extends e {
2971
2984
  }));
2972
2985
  }
2973
2986
  updateChart(t) {
2974
- return this.validateColor(), t.setOption({
2987
+ var e;
2988
+ this.validateColor(), t.setOption({
2975
2989
  tooltip: {
2976
2990
  show: !1
2977
2991
  },
@@ -3010,7 +3024,9 @@ const Be = t(class extends e {
3010
3024
  minAngle: this.getMinSliceSizeAsAngle(),
3011
3025
  data: this.data
3012
3026
  } ]
3013
- });
3027
+ }),
3028
+ // The clickable variant handles keyboard interaction on its native center button.
3029
+ null === (e = this.chartContainer) || void 0 === e || e.setAttribute("role", this.isClickable ? "img" : "application");
3014
3030
  }
3015
3031
  validateColor() {
3016
3032
  // check if there is name duplicated, then custom style using `itemStyle` object will be used.
@@ -3025,12 +3041,13 @@ const Be = t(class extends e {
3025
3041
  // #endregion
3026
3042
  // #region Render Methods
3027
3043
  renderCenterBlock() {
3028
- const {icon: t, name: e, value: i, color: o} = this.centerData, {isClickable: a} = this, r = a ? "button" : "div", l = this.displayValue(i), c = a ? {
3044
+ const {icon: t, name: e, value: i, color: o} = this.centerData, {isClickable: r} = this, s = r ? "button" : "div", l = this.displayValue(i), c = r ? {
3029
3045
  onKeyDown: this.onButtonKeyDown,
3046
+ onBlur: () => this.keyboardAnnouncement = "",
3030
3047
  onClick: this.onButtonClick,
3031
3048
  ref: t => this.centerButtonElement = t,
3032
- "aria-describedby": "center-card-description",
3033
- "aria-roledescription": s("tecton.element.chartDonut.button.roleDescription")
3049
+ "aria-describedby": "center-card-description chart-keyboard-instructions",
3050
+ "aria-roledescription": a("tecton.element.chartDonut.button.roleDescription")
3034
3051
  } : null;
3035
3052
  return n("div", {
3036
3053
  class: "center-card-container",
@@ -3041,7 +3058,10 @@ const Be = t(class extends e {
3041
3058
  }, n("div", {
3042
3059
  id: "center-card-description",
3043
3060
  class: "sr"
3044
- }, s("tecton.element.chartDonut.button.description")), n(r, {
3061
+ }, a("tecton.element.chartDonut.button.description")), n("div", {
3062
+ id: "chart-keyboard-instructions",
3063
+ class: "sr"
3064
+ }, a("tecton.element.chart.keyboardInstructions")), n(s, {
3045
3065
  class: "center-card",
3046
3066
  "test-id": "centerCard",
3047
3067
  ...c
@@ -3060,27 +3080,33 @@ const Be = t(class extends e {
3060
3080
  }
3061
3081
  render() {
3062
3082
  return n("click-elsewhere", {
3063
- key: "27c21f281ef0746c9bd9d7235fa1833df7711e4d",
3083
+ key: "54e5d16621ac527fec69834b2c1cc1e7d2c6540b",
3064
3084
  onChange: this.onClickElsewhere
3065
3085
  }, n("figure", {
3066
- key: "8356a94846a4319b682e3bc3171e6a71afb228f8"
3086
+ key: "61e0c1e30fed4e89816d228c1c190b5bd38991a3"
3067
3087
  }, n("div", {
3068
- key: "a6b016aaa11371fdff673eb8cd7508bb5f3ce852",
3088
+ key: "0685b804780ebdf17d7bfe5956306a027c3c9dba",
3069
3089
  class: "container"
3070
3090
  }, n("div", {
3071
- key: "862baeb8b1c1e096c92d260bc7340666875f9763",
3091
+ key: "458dfa5c6ad8d704de66d4d51461e2d7b28ba13c",
3072
3092
  ref: t => this.chartContainer = t,
3073
- "aria-describedby": this.isClickable ? void 0 : "center-card-description",
3093
+ "aria-describedby": this.isClickable ? void 0 : "center-card-description chart-keyboard-instructions",
3074
3094
  class: "chart-container",
3075
- role: "img",
3095
+ role: this.isClickable ? "img" : "application",
3076
3096
  "test-id": "chartContainer",
3077
3097
  onClick: this.onContainerClick,
3078
- tabIndex: this.isClickable ? void 0 : 0,
3079
- onKeyDown: this.isClickable ? void 0 : this.onButtonKeyDown
3080
- }), this.renderCenterBlock()), this.showLegend && n("figcaption", {
3081
- key: "24f16b0d7afd3a6433c58cd8eb6806785fc938e5"
3098
+ tabIndex: !this.isClickable && this.data.length ? 0 : void 0,
3099
+ onKeyDown: this.isClickable ? void 0 : this.onButtonKeyDown,
3100
+ onBlur: () => this.keyboardAnnouncement = ""
3101
+ }), this.renderCenterBlock(), n("div", {
3102
+ key: "105396c05b8aa162b1c0515cb4b96dadafcca911",
3103
+ class: "sr",
3104
+ role: "status",
3105
+ "aria-atomic": "true"
3106
+ }, this.keyboardAnnouncement)), this.showLegend && n("figcaption", {
3107
+ key: "c6462ae033852ff7fa09d752e4fc8860608448c6"
3082
3108
  }, n("q2-legend", {
3083
- key: "6bd27b69926b77181ab16726bb4e79c91e4dcc37",
3109
+ key: "d8f1ceb9b46392264b306d316d1fb6066b2f5b4d",
3084
3110
  class: "legend",
3085
3111
  data: this.legendData,
3086
3112
  format: this.format,
@@ -3146,6 +3172,7 @@ const Be = t(class extends e {
3146
3172
  summaryIcon: [ 513, "summary-icon" ],
3147
3173
  summaryName: [ 513, "summary-name" ],
3148
3174
  hoveredId: [ 32 ],
3175
+ keyboardAnnouncement: [ 32 ],
3149
3176
  legendData: [ 32 ],
3150
3177
  clearSelection: [ 64 ],
3151
3178
  getChartOptions: [ 64 ],
@@ -3183,26 +3210,26 @@ const Be = t(class extends e {
3183
3210
  } ]
3184
3211
  } ]);
3185
3212
 
3186
- const We = Be, defineCustomElement = function() {
3213
+ const Fe = We, defineCustomElement = function() {
3187
3214
  if ("undefined" == typeof customElements) return;
3188
3215
  [ "q2-chart-donut", "click-elsewhere", "q2-icon", "q2-legend" ].forEach((t => {
3189
3216
  switch (t) {
3190
3217
  case "q2-chart-donut":
3191
- customElements.get(o(t)) || customElements.define(o(t), Be);
3218
+ customElements.get(o(t)) || customElements.define(o(t), We);
3192
3219
  break;
3193
3220
 
3194
3221
  case "click-elsewhere":
3195
- customElements.get(o(t)) || ie();
3222
+ customElements.get(o(t)) || ne();
3196
3223
  break;
3197
3224
 
3198
3225
  case "q2-icon":
3199
- customElements.get(o(t)) || ne();
3226
+ customElements.get(o(t)) || oe();
3200
3227
  break;
3201
3228
 
3202
3229
  case "q2-legend":
3203
- customElements.get(o(t)) || oe();
3230
+ customElements.get(o(t)) || ae();
3204
3231
  }
3205
3232
  }));
3206
3233
  };
3207
3234
 
3208
- export { We as Q2ChartDonut, defineCustomElement }
3235
+ export { Fe as Q2ChartDonut, defineCustomElement }