q2-tecton-elements 1.51.0 → 1.52.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 (613) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +16 -5
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-9aa4a776.js → index-07285783.js} +86 -2
  4. package/dist/cjs/index-07285783.js.map +1 -0
  5. package/dist/cjs/{index-14c3693c.js → index-e7e68b1e.js} +40 -5
  6. package/dist/cjs/index-e7e68b1e.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/q2-action-group.cjs.entry.js +2 -2
  9. package/dist/cjs/q2-action-sheet.cjs.entry.js +3 -3
  10. package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/q2-badge_7.cjs.entry.js +49 -44
  12. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  13. package/dist/cjs/q2-calendar.cjs.entry.js +17 -20
  14. package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/q2-card.cjs.entry.js +4 -2
  16. package/dist/cjs/q2-card.cjs.entry.js.map +1 -1
  17. package/dist/cjs/q2-carousel-pane.cjs.entry.js +4 -4
  18. package/dist/cjs/q2-carousel.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-chart-area.cjs.entry.js +16 -3
  20. package/dist/cjs/q2-chart-area.cjs.entry.js.map +1 -1
  21. package/dist/cjs/q2-chart-bar.cjs.entry.js +3 -3
  22. package/dist/cjs/q2-chart-donut.cjs.entry.js +19 -3
  23. package/dist/cjs/q2-chart-donut.cjs.entry.js.map +1 -1
  24. package/dist/cjs/q2-checkbox-group.cjs.entry.js +6 -5
  25. package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
  26. package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
  27. package/dist/cjs/q2-currency.cjs.entry.js +14 -2
  28. package/dist/cjs/q2-currency.cjs.entry.js.map +1 -1
  29. package/dist/cjs/q2-data-table.cjs.entry.js +3 -3
  30. package/dist/cjs/q2-data-table.cjs.entry.js.map +1 -1
  31. package/dist/cjs/q2-detail.cjs.entry.js +3 -3
  32. package/dist/cjs/q2-dropdown-item.cjs.entry.js +12 -14
  33. package/dist/cjs/q2-dropdown-item.cjs.entry.js.map +1 -1
  34. package/dist/cjs/q2-dropdown.cjs.entry.js +7 -5
  35. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  36. package/dist/cjs/q2-editable-field.cjs.entry.js +3 -3
  37. package/dist/cjs/q2-example.cjs.entry.js +145 -0
  38. package/dist/cjs/q2-example.cjs.entry.js.map +1 -0
  39. package/dist/cjs/q2-formatted-text.cjs.entry.js +2 -2
  40. package/dist/cjs/q2-item.cjs.entry.js +3 -3
  41. package/dist/cjs/q2-legend.cjs.entry.js +2 -2
  42. package/dist/cjs/q2-link.cjs.entry.js +4 -4
  43. package/dist/cjs/q2-link.cjs.entry.js.map +1 -1
  44. package/dist/cjs/q2-list.cjs.entry.js +6 -7
  45. package/dist/cjs/q2-list.cjs.entry.js.map +1 -1
  46. package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
  47. package/dist/cjs/q2-loc.cjs.entry.js +52 -3
  48. package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
  49. package/dist/cjs/q2-message.cjs.entry.js +3 -3
  50. package/dist/cjs/q2-month-picker.cjs.entry.js +4 -4
  51. package/dist/cjs/q2-optgroup.cjs.entry.js +5 -4
  52. package/dist/cjs/q2-optgroup.cjs.entry.js.map +1 -1
  53. package/dist/cjs/q2-option-list.cjs.entry.js +2 -2
  54. package/dist/cjs/q2-option.cjs.entry.js +50 -33
  55. package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
  56. package/dist/cjs/q2-pagination.cjs.entry.js +11 -7
  57. package/dist/cjs/q2-pagination.cjs.entry.js.map +1 -1
  58. package/dist/cjs/q2-pill.cjs.entry.js +19 -18
  59. package/dist/cjs/q2-pill.cjs.entry.js.map +1 -1
  60. package/dist/cjs/q2-radio-group.cjs.entry.js +5 -5
  61. package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
  62. package/dist/cjs/q2-radio.cjs.entry.js +3 -3
  63. package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
  64. package/dist/cjs/q2-resize-observer.cjs.entry.js +2 -2
  65. package/dist/cjs/q2-section.cjs.entry.js +8 -6
  66. package/dist/cjs/q2-section.cjs.entry.js.map +1 -1
  67. package/dist/cjs/q2-select.cjs.entry.js +6 -5
  68. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  69. package/dist/cjs/q2-stepper-pane.cjs.entry.js +5 -4
  70. package/dist/cjs/q2-stepper-pane.cjs.entry.js.map +1 -1
  71. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +16 -4
  72. package/dist/cjs/q2-stepper-vertical.cjs.entry.js.map +1 -1
  73. package/dist/cjs/q2-stepper.cjs.entry.js +6 -4
  74. package/dist/cjs/q2-stepper.cjs.entry.js.map +1 -1
  75. package/dist/cjs/q2-tag.cjs.entry.js +6 -4
  76. package/dist/cjs/q2-tag.cjs.entry.js.map +1 -1
  77. package/dist/cjs/q2-tecton-elements.cjs.js +2 -2
  78. package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
  79. package/dist/cjs/q2-tooltip.cjs.entry.js +2 -2
  80. package/dist/cjs/{shapes-be198cc0.js → shapes-5d45fc11.js} +2 -2
  81. package/dist/cjs/{shapes-be198cc0.js.map → shapes-5d45fc11.js.map} +1 -1
  82. package/dist/cjs/tecton-tab-pane.cjs.entry.js +3 -3
  83. package/dist/collection/collection-manifest.json +1 -0
  84. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  85. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  86. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  87. package/dist/collection/components/q2-calendar/q2-calendar.js +16 -18
  88. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  89. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  90. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +27 -0
  91. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
  92. package/dist/collection/components/q2-card/q2-card.js +2 -0
  93. package/dist/collection/components/q2-card/q2-card.js.map +1 -1
  94. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  95. package/dist/collection/components/q2-chart-area/q2-chart-area.js +42 -1
  96. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  97. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js +15 -0
  98. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
  99. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  100. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +41 -1
  101. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  102. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js +11 -0
  103. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
  104. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +30 -23
  105. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +4 -3
  106. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
  107. package/dist/collection/components/q2-currency/q2-currency.js +37 -1
  108. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  109. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js +34 -23
  110. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
  111. package/dist/collection/components/q2-data-table/q2-data-table.js +1 -1
  112. package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
  113. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js +6 -4
  114. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
  115. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  116. package/dist/collection/components/q2-dropdown/q2-dropdown.css +5 -0
  117. package/dist/collection/components/q2-dropdown/q2-dropdown.js +10 -4
  118. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  119. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +59 -14
  120. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
  121. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.css +29 -11
  122. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js +9 -11
  123. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
  124. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js +108 -74
  125. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
  126. package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
  127. package/dist/collection/components/q2-example/q2-example.css +66 -0
  128. package/dist/collection/components/q2-example/q2-example.js +312 -0
  129. package/dist/collection/components/q2-example/q2-example.js.map +1 -0
  130. package/dist/collection/components/q2-example/test/q2-example.e2e.js +27 -0
  131. package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -0
  132. package/dist/collection/components/q2-example/test/q2-example.spec.js +126 -0
  133. package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -0
  134. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  135. package/dist/collection/components/q2-input/formatting/alpha.spec.js +10 -0
  136. package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -0
  137. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js +7 -0
  138. package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -0
  139. package/dist/collection/components/q2-input/formatting/currency.spec.js +20 -0
  140. package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -0
  141. package/dist/collection/components/q2-input/formatting/date.js +1 -1
  142. package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
  143. package/dist/collection/components/q2-input/formatting/date.spec.js +17 -0
  144. package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -0
  145. package/dist/collection/components/q2-input/formatting/numeric.spec.js +32 -0
  146. package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -0
  147. package/dist/collection/components/q2-input/formatting/phone.spec.js +16 -0
  148. package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -0
  149. package/dist/collection/components/q2-input/formatting/postal.js +1 -1
  150. package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
  151. package/dist/collection/components/q2-input/formatting/postal.spec.js +28 -0
  152. package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -0
  153. package/dist/collection/components/q2-input/formatting/ssn.spec.js +7 -0
  154. package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -0
  155. package/dist/collection/components/q2-input/formatting/tin.spec.js +7 -0
  156. package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -0
  157. package/dist/collection/components/q2-input/q2-input.js +58 -44
  158. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  159. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js +259 -2106
  160. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  161. package/dist/collection/components/q2-input/test/q2-input-test.spec.js +4035 -0
  162. package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -0
  163. package/dist/collection/components/q2-item/q2-item.js +1 -1
  164. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  165. package/dist/collection/components/q2-link/q2-link.css +17 -20
  166. package/dist/collection/components/q2-link/q2-link.js +2 -2
  167. package/dist/collection/components/q2-link/q2-link.js.map +1 -1
  168. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js +6 -6
  169. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
  170. package/dist/collection/components/q2-list/q2-list.js +4 -5
  171. package/dist/collection/components/q2-list/q2-list.js.map +1 -1
  172. package/dist/collection/components/q2-loc/q2-loc.js +66 -4
  173. package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
  174. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js +19 -30
  175. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
  176. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js +164 -0
  177. package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -0
  178. package/dist/collection/components/q2-message/q2-message.js +1 -1
  179. package/dist/collection/components/q2-optgroup/q2-optgroup.js +3 -2
  180. package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
  181. package/dist/collection/components/q2-option/q2-option.css +1 -1
  182. package/dist/collection/components/q2-option/q2-option.js +57 -34
  183. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  184. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js +110 -106
  185. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
  186. package/dist/collection/components/q2-option/test/q2-option-test.spec.js +532 -0
  187. package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -0
  188. package/dist/collection/components/q2-pagination/q2-pagination.js +9 -5
  189. package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
  190. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +18 -1
  191. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
  192. package/dist/collection/components/q2-pill/q2-pill.js +18 -17
  193. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  194. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js +128 -57
  195. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
  196. package/dist/collection/components/q2-popover/q2-popover.js +17 -4
  197. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  198. package/dist/collection/components/q2-radio/q2-radio.js +1 -1
  199. package/dist/collection/components/q2-radio-group/q2-radio-group.css +19 -9
  200. package/dist/collection/components/q2-radio-group/q2-radio-group.js +2 -2
  201. package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
  202. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  203. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  204. package/dist/collection/components/q2-section/q2-section.js +6 -4
  205. package/dist/collection/components/q2-section/q2-section.js.map +1 -1
  206. package/dist/collection/components/q2-select/q2-select.js +5 -3
  207. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  208. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +123 -62
  209. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
  210. package/dist/collection/components/q2-stepper/q2-stepper.js +4 -2
  211. package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
  212. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -2
  213. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
  214. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +46 -2
  215. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
  216. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js +26 -0
  217. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
  218. package/dist/collection/components/q2-tab-container/q2-tab-container.js +4 -3
  219. package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
  220. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  221. package/dist/collection/components/q2-tag/q2-tag.js +5 -2
  222. package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
  223. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +55 -4
  224. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
  225. package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
  226. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  227. package/dist/collection/utils/helpers.js +63 -41
  228. package/dist/collection/utils/helpers.js.map +1 -1
  229. package/dist/collection/utils/index.js +83 -0
  230. package/dist/collection/utils/index.js.map +1 -1
  231. package/dist/components/index.js +2 -0
  232. package/dist/components/index.js.map +1 -1
  233. package/dist/components/index2.js +84 -1
  234. package/dist/components/index2.js.map +1 -1
  235. package/dist/components/q2-action-group.js +1 -1
  236. package/dist/components/q2-action-sheet.js +1 -1
  237. package/dist/components/q2-avatar2.js +1 -1
  238. package/dist/components/q2-calendar.js +16 -18
  239. package/dist/components/q2-calendar.js.map +1 -1
  240. package/dist/components/q2-card.js +2 -0
  241. package/dist/components/q2-card.js.map +1 -1
  242. package/dist/components/q2-carousel-pane.js +2 -2
  243. package/dist/components/q2-chart-area.js +16 -2
  244. package/dist/components/q2-chart-area.js.map +1 -1
  245. package/dist/components/q2-chart-bar.js +1 -1
  246. package/dist/components/q2-chart-donut.js +19 -2
  247. package/dist/components/q2-chart-donut.js.map +1 -1
  248. package/dist/components/q2-checkbox-group.js +5 -4
  249. package/dist/components/q2-checkbox-group.js.map +1 -1
  250. package/dist/components/q2-currency.js +15 -2
  251. package/dist/components/q2-currency.js.map +1 -1
  252. package/dist/components/q2-data-table.js +1 -1
  253. package/dist/components/q2-data-table.js.map +1 -1
  254. package/dist/components/q2-detail.js +1 -1
  255. package/dist/components/q2-dropdown-item2.js +12 -26
  256. package/dist/components/q2-dropdown-item2.js.map +1 -1
  257. package/dist/components/q2-dropdown.js +6 -3
  258. package/dist/components/q2-dropdown.js.map +1 -1
  259. package/dist/components/q2-editable-field.js +1 -1
  260. package/dist/components/q2-example.d.ts +11 -0
  261. package/dist/components/q2-example.js +170 -0
  262. package/dist/components/q2-example.js.map +1 -0
  263. package/dist/components/q2-formatted-text.js +1 -1
  264. package/dist/components/q2-input2.js +41 -37
  265. package/dist/components/q2-input2.js.map +1 -1
  266. package/dist/components/q2-item.js +1 -1
  267. package/dist/components/q2-legend2.js +1 -1
  268. package/dist/components/q2-link.js +3 -3
  269. package/dist/components/q2-link.js.map +1 -1
  270. package/dist/components/q2-list.js +4 -5
  271. package/dist/components/q2-list.js.map +1 -1
  272. package/dist/components/q2-loc.js +55 -2
  273. package/dist/components/q2-loc.js.map +1 -1
  274. package/dist/components/q2-message2.js +1 -1
  275. package/dist/components/q2-month-picker.js +2 -2
  276. package/dist/components/q2-optgroup2.js +3 -2
  277. package/dist/components/q2-optgroup2.js.map +1 -1
  278. package/dist/components/q2-option-list2.js +1 -1
  279. package/dist/components/q2-option2.js +52 -33
  280. package/dist/components/q2-option2.js.map +1 -1
  281. package/dist/components/q2-pagination.js +9 -5
  282. package/dist/components/q2-pagination.js.map +1 -1
  283. package/dist/components/q2-pill.js +18 -17
  284. package/dist/components/q2-pill.js.map +1 -1
  285. package/dist/components/q2-popover2.js +16 -4
  286. package/dist/components/q2-popover2.js.map +1 -1
  287. package/dist/components/q2-radio-group.js +3 -3
  288. package/dist/components/q2-radio-group.js.map +1 -1
  289. package/dist/components/q2-radio.js +1 -1
  290. package/dist/components/q2-relative-time.js +1 -1
  291. package/dist/components/q2-resize-observer2.js +1 -1
  292. package/dist/components/q2-section.js +6 -4
  293. package/dist/components/q2-section.js.map +1 -1
  294. package/dist/components/q2-select2.js +6 -4
  295. package/dist/components/q2-select2.js.map +1 -1
  296. package/dist/components/q2-stepper-pane.js +3 -2
  297. package/dist/components/q2-stepper-pane.js.map +1 -1
  298. package/dist/components/q2-stepper-vertical.js +16 -3
  299. package/dist/components/q2-stepper-vertical.js.map +1 -1
  300. package/dist/components/q2-stepper.js +4 -2
  301. package/dist/components/q2-stepper.js.map +1 -1
  302. package/dist/components/q2-tab-container.js +4 -3
  303. package/dist/components/q2-tab-container.js.map +1 -1
  304. package/dist/components/q2-tab-pane.js +1 -1
  305. package/dist/components/q2-tag.js +5 -2
  306. package/dist/components/q2-tag.js.map +1 -1
  307. package/dist/components/q2-textarea.js +1 -1
  308. package/dist/components/tecton-tab-pane.js +2 -2
  309. package/dist/esm/click-elsewhere_2.entry.js +16 -5
  310. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  311. package/dist/esm/{index-1e1ce94e.js → index-7a5365e2.js} +40 -5
  312. package/dist/esm/index-7a5365e2.js.map +1 -0
  313. package/dist/esm/{index-844fc010.js → index-d18e2a20.js} +86 -3
  314. package/dist/esm/index-d18e2a20.js.map +1 -0
  315. package/dist/esm/loader.js +3 -3
  316. package/dist/esm/q2-action-group.entry.js +2 -2
  317. package/dist/esm/q2-action-sheet.entry.js +3 -3
  318. package/dist/esm/q2-avatar.entry.js +2 -2
  319. package/dist/esm/q2-badge_7.entry.js +49 -44
  320. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  321. package/dist/esm/q2-calendar.entry.js +17 -20
  322. package/dist/esm/q2-calendar.entry.js.map +1 -1
  323. package/dist/esm/q2-card.entry.js +4 -2
  324. package/dist/esm/q2-card.entry.js.map +1 -1
  325. package/dist/esm/q2-carousel-pane.entry.js +4 -4
  326. package/dist/esm/q2-carousel.entry.js +2 -2
  327. package/dist/esm/q2-chart-area.entry.js +16 -3
  328. package/dist/esm/q2-chart-area.entry.js.map +1 -1
  329. package/dist/esm/q2-chart-bar.entry.js +3 -3
  330. package/dist/esm/q2-chart-donut.entry.js +19 -3
  331. package/dist/esm/q2-chart-donut.entry.js.map +1 -1
  332. package/dist/esm/q2-checkbox-group.entry.js +6 -5
  333. package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
  334. package/dist/esm/q2-checkbox.entry.js +2 -2
  335. package/dist/esm/q2-currency.entry.js +14 -2
  336. package/dist/esm/q2-currency.entry.js.map +1 -1
  337. package/dist/esm/q2-data-table.entry.js +3 -3
  338. package/dist/esm/q2-data-table.entry.js.map +1 -1
  339. package/dist/esm/q2-detail.entry.js +3 -3
  340. package/dist/esm/q2-dropdown-item.entry.js +12 -14
  341. package/dist/esm/q2-dropdown-item.entry.js.map +1 -1
  342. package/dist/esm/q2-dropdown.entry.js +7 -5
  343. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  344. package/dist/esm/q2-editable-field.entry.js +3 -3
  345. package/dist/esm/q2-example.entry.js +141 -0
  346. package/dist/esm/q2-example.entry.js.map +1 -0
  347. package/dist/esm/q2-formatted-text.entry.js +2 -2
  348. package/dist/esm/q2-item.entry.js +3 -3
  349. package/dist/esm/q2-legend.entry.js +2 -2
  350. package/dist/esm/q2-link.entry.js +4 -4
  351. package/dist/esm/q2-link.entry.js.map +1 -1
  352. package/dist/esm/q2-list.entry.js +6 -7
  353. package/dist/esm/q2-list.entry.js.map +1 -1
  354. package/dist/esm/q2-loading-element.entry.js +2 -2
  355. package/dist/esm/q2-loc.entry.js +52 -3
  356. package/dist/esm/q2-loc.entry.js.map +1 -1
  357. package/dist/esm/q2-message.entry.js +3 -3
  358. package/dist/esm/q2-month-picker.entry.js +4 -4
  359. package/dist/esm/q2-optgroup.entry.js +5 -4
  360. package/dist/esm/q2-optgroup.entry.js.map +1 -1
  361. package/dist/esm/q2-option-list.entry.js +2 -2
  362. package/dist/esm/q2-option.entry.js +50 -33
  363. package/dist/esm/q2-option.entry.js.map +1 -1
  364. package/dist/esm/q2-pagination.entry.js +11 -7
  365. package/dist/esm/q2-pagination.entry.js.map +1 -1
  366. package/dist/esm/q2-pill.entry.js +19 -18
  367. package/dist/esm/q2-pill.entry.js.map +1 -1
  368. package/dist/esm/q2-radio-group.entry.js +5 -5
  369. package/dist/esm/q2-radio-group.entry.js.map +1 -1
  370. package/dist/esm/q2-radio.entry.js +3 -3
  371. package/dist/esm/q2-relative-time.entry.js +3 -3
  372. package/dist/esm/q2-resize-observer.entry.js +2 -2
  373. package/dist/esm/q2-section.entry.js +8 -6
  374. package/dist/esm/q2-section.entry.js.map +1 -1
  375. package/dist/esm/q2-select.entry.js +6 -5
  376. package/dist/esm/q2-select.entry.js.map +1 -1
  377. package/dist/esm/q2-stepper-pane.entry.js +5 -4
  378. package/dist/esm/q2-stepper-pane.entry.js.map +1 -1
  379. package/dist/esm/q2-stepper-vertical.entry.js +16 -4
  380. package/dist/esm/q2-stepper-vertical.entry.js.map +1 -1
  381. package/dist/esm/q2-stepper.entry.js +6 -4
  382. package/dist/esm/q2-stepper.entry.js.map +1 -1
  383. package/dist/esm/q2-tag.entry.js +6 -4
  384. package/dist/esm/q2-tag.entry.js.map +1 -1
  385. package/dist/esm/q2-tecton-elements.js +3 -3
  386. package/dist/esm/q2-textarea.entry.js +3 -3
  387. package/dist/esm/q2-tooltip.entry.js +2 -2
  388. package/dist/esm/{shapes-36183b2a.js → shapes-c7e1a3fa.js} +2 -2
  389. package/dist/esm/{shapes-36183b2a.js.map → shapes-c7e1a3fa.js.map} +1 -1
  390. package/dist/esm/tecton-tab-pane.entry.js +3 -3
  391. package/dist/q2-tecton-elements/action-sheet-e64cb6f7.js +77 -0
  392. package/dist/q2-tecton-elements/{p-b7554a79.js.map → action-sheet-e64cb6f7.js.map} +1 -1
  393. package/dist/q2-tecton-elements/app-globals-0f993ce5.js +4 -0
  394. package/dist/q2-tecton-elements/{p-e1255160.js.map → app-globals-0f993ce5.js.map} +1 -1
  395. package/dist/q2-tecton-elements/charting-1abfb877.js +34872 -0
  396. package/dist/q2-tecton-elements/{p-2941aafa.js.map → charting-1abfb877.js.map} +1 -1
  397. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js +410 -0
  398. package/dist/q2-tecton-elements/click-elsewhere_2.entry.js.map +1 -0
  399. package/dist/q2-tecton-elements/dataSample-7b62e101.js +2602 -0
  400. package/dist/q2-tecton-elements/{p-ad80aef0.js.map → dataSample-7b62e101.js.map} +1 -1
  401. package/dist/q2-tecton-elements/index-3184c760.js +18168 -0
  402. package/dist/q2-tecton-elements/{p-f1e887f5.js.map → index-3184c760.js.map} +1 -1
  403. package/dist/q2-tecton-elements/index-7a5365e2.js +1792 -0
  404. package/dist/q2-tecton-elements/index-7a5365e2.js.map +1 -0
  405. package/dist/q2-tecton-elements/index-d18e2a20.js +323 -0
  406. package/dist/q2-tecton-elements/index-d18e2a20.js.map +1 -0
  407. package/dist/q2-tecton-elements/q2-action-group.entry.js +56 -0
  408. package/dist/q2-tecton-elements/{p-5637c486.entry.js.map → q2-action-group.entry.js.map} +1 -1
  409. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +1480 -0
  410. package/dist/q2-tecton-elements/{p-188eb162.entry.js.map → q2-action-sheet.entry.js.map} +1 -1
  411. package/dist/q2-tecton-elements/q2-avatar.entry.js +101 -0
  412. package/dist/q2-tecton-elements/{p-07d1c3ae.entry.js.map → q2-avatar.entry.js.map} +1 -1
  413. package/dist/q2-tecton-elements/q2-badge_7.entry.js +5449 -0
  414. package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -0
  415. package/dist/q2-tecton-elements/q2-calendar.entry.js +1313 -0
  416. package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -0
  417. package/dist/q2-tecton-elements/q2-card.entry.js +170 -0
  418. package/dist/q2-tecton-elements/q2-card.entry.js.map +1 -0
  419. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +130 -0
  420. package/dist/q2-tecton-elements/{p-7aef0c08.entry.js.map → q2-carousel-pane.entry.js.map} +1 -1
  421. package/dist/q2-tecton-elements/q2-carousel.entry.js +4613 -0
  422. package/dist/q2-tecton-elements/{p-e216ef3f.entry.js.map → q2-carousel.entry.js.map} +1 -1
  423. package/dist/q2-tecton-elements/q2-chart-area.entry.js +4330 -0
  424. package/dist/q2-tecton-elements/q2-chart-area.entry.js.map +1 -0
  425. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +1479 -0
  426. package/dist/q2-tecton-elements/{p-7906f49e.entry.js.map → q2-chart-bar.entry.js.map} +1 -1
  427. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +4537 -0
  428. package/dist/q2-tecton-elements/q2-chart-donut.entry.js.map +1 -0
  429. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +166 -0
  430. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -0
  431. package/dist/q2-tecton-elements/q2-checkbox.entry.js +223 -0
  432. package/dist/q2-tecton-elements/{p-b7de110e.entry.js.map → q2-checkbox.entry.js.map} +1 -1
  433. package/dist/q2-tecton-elements/q2-currency.entry.js +153 -0
  434. package/dist/q2-tecton-elements/q2-currency.entry.js.map +1 -0
  435. package/dist/q2-tecton-elements/q2-data-table.entry.js +622 -0
  436. package/dist/q2-tecton-elements/{p-7903cd15.entry.js.map → q2-data-table.entry.js.map} +1 -1
  437. package/dist/q2-tecton-elements/q2-detail.entry.js +128 -0
  438. package/dist/q2-tecton-elements/{p-f5f23659.entry.js.map → q2-detail.entry.js.map} +1 -1
  439. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +146 -0
  440. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js.map +1 -0
  441. package/dist/q2-tecton-elements/q2-dropdown.entry.js +432 -0
  442. package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -0
  443. package/dist/q2-tecton-elements/q2-editable-field.entry.js +296 -0
  444. package/dist/q2-tecton-elements/{p-896c7008.entry.js.map → q2-editable-field.entry.js.map} +1 -1
  445. package/dist/q2-tecton-elements/q2-example.entry.js +152 -0
  446. package/dist/q2-tecton-elements/q2-example.entry.js.map +1 -0
  447. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +73 -0
  448. package/dist/q2-tecton-elements/{p-7c9f8b62.entry.js.map → q2-formatted-text.entry.js.map} +1 -1
  449. package/dist/q2-tecton-elements/q2-item.entry.js +158 -0
  450. package/dist/q2-tecton-elements/{p-7c9a0122.entry.js.map → q2-item.entry.js.map} +1 -1
  451. package/dist/q2-tecton-elements/q2-legend.entry.js +146 -0
  452. package/dist/q2-tecton-elements/{p-ff8f1a32.entry.js.map → q2-legend.entry.js.map} +1 -1
  453. package/dist/q2-tecton-elements/q2-link.entry.js +83 -0
  454. package/dist/q2-tecton-elements/q2-link.entry.js.map +1 -0
  455. package/dist/q2-tecton-elements/q2-list.entry.js +100 -0
  456. package/dist/q2-tecton-elements/q2-list.entry.js.map +1 -0
  457. package/dist/q2-tecton-elements/q2-loading-element.entry.js +36 -0
  458. package/dist/q2-tecton-elements/{p-a068c84c.entry.js.map → q2-loading-element.entry.js.map} +1 -1
  459. package/dist/q2-tecton-elements/q2-loc.entry.js +82 -0
  460. package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -0
  461. package/dist/q2-tecton-elements/q2-message.entry.js +99 -0
  462. package/dist/q2-tecton-elements/{p-8d2b02e1.entry.js.map → q2-message.entry.js.map} +1 -1
  463. package/dist/q2-tecton-elements/q2-month-picker.entry.js +198 -0
  464. package/dist/q2-tecton-elements/{p-8d07cf91.entry.js.map → q2-month-picker.entry.js.map} +1 -1
  465. package/dist/q2-tecton-elements/q2-optgroup.entry.js +88 -0
  466. package/dist/q2-tecton-elements/q2-optgroup.entry.js.map +1 -0
  467. package/dist/q2-tecton-elements/q2-option-list.entry.js +585 -0
  468. package/dist/q2-tecton-elements/{p-a5d0e252.entry.js.map → q2-option-list.entry.js.map} +1 -1
  469. package/dist/q2-tecton-elements/q2-option.entry.js +110 -0
  470. package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -0
  471. package/dist/q2-tecton-elements/q2-pagination.entry.js +377 -0
  472. package/dist/q2-tecton-elements/q2-pagination.entry.js.map +1 -0
  473. package/dist/q2-tecton-elements/q2-pill.entry.js +434 -0
  474. package/dist/q2-tecton-elements/q2-pill.entry.js.map +1 -0
  475. package/dist/q2-tecton-elements/q2-radio-group.entry.js +227 -0
  476. package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -0
  477. package/dist/q2-tecton-elements/q2-radio.entry.js +144 -0
  478. package/dist/q2-tecton-elements/{p-c235ab3f.entry.js.map → q2-radio.entry.js.map} +1 -1
  479. package/dist/q2-tecton-elements/q2-relative-time.entry.js +162 -0
  480. package/dist/q2-tecton-elements/{p-95a7c042.entry.js.map → q2-relative-time.entry.js.map} +1 -1
  481. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +100 -0
  482. package/dist/q2-tecton-elements/{p-e2c800ef.entry.js.map → q2-resize-observer.entry.js.map} +1 -1
  483. package/dist/q2-tecton-elements/q2-section.entry.js +256 -0
  484. package/dist/q2-tecton-elements/q2-section.entry.js.map +1 -0
  485. package/dist/q2-tecton-elements/q2-select.entry.js +684 -0
  486. package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -0
  487. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +124 -0
  488. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js.map +1 -0
  489. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +356 -0
  490. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js.map +1 -0
  491. package/dist/q2-tecton-elements/q2-stepper.entry.js +332 -0
  492. package/dist/q2-tecton-elements/q2-stepper.entry.js.map +1 -0
  493. package/dist/q2-tecton-elements/q2-tag.entry.js +213 -0
  494. package/dist/q2-tecton-elements/q2-tag.entry.js.map +1 -0
  495. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +21 -1
  496. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  497. package/dist/q2-tecton-elements/q2-textarea.entry.js +364 -0
  498. package/dist/q2-tecton-elements/{p-f135b265.entry.js.map → q2-textarea.entry.js.map} +1 -1
  499. package/dist/q2-tecton-elements/q2-tooltip.entry.js +105 -0
  500. package/dist/q2-tecton-elements/{p-c5667d5d.entry.js.map → q2-tooltip.entry.js.map} +1 -1
  501. package/dist/q2-tecton-elements/sectorHelper-183cedd0.js +949 -0
  502. package/dist/q2-tecton-elements/{p-eea5aa01.js.map → sectorHelper-183cedd0.js.map} +1 -1
  503. package/dist/q2-tecton-elements/shapes-c7e1a3fa.js +132 -0
  504. package/dist/q2-tecton-elements/{p-50b425de.js.map → shapes-c7e1a3fa.js.map} +1 -1
  505. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +134 -0
  506. package/dist/q2-tecton-elements/{p-96b1406c.entry.js.map → tecton-tab-pane.entry.js.map} +1 -1
  507. package/dist/types/components/q2-calendar/q2-calendar.d.ts +4 -5
  508. package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +6 -0
  509. package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +6 -0
  510. package/dist/types/components/q2-currency/q2-currency.d.ts +7 -0
  511. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +1 -1
  512. package/dist/types/components/q2-dropdown-item/q2-dropdown-item.d.ts +2 -2
  513. package/dist/types/components/q2-example/q2-example.d.ts +119 -0
  514. package/dist/types/components/q2-input/formatting/date.d.ts +22 -0
  515. package/dist/types/components/q2-input/formatting/postal.d.ts +197 -0
  516. package/dist/types/components/q2-input/q2-input.d.ts +15 -12
  517. package/dist/types/components/q2-loc/q2-loc.d.ts +15 -1
  518. package/dist/types/components/q2-option/q2-option.d.ts +11 -3
  519. package/dist/types/components/q2-pill/q2-pill.d.ts +3 -3
  520. package/dist/types/components/q2-popover/q2-popover.d.ts +1 -0
  521. package/dist/types/components/q2-select/q2-select.d.ts +1 -1
  522. package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +6 -0
  523. package/dist/types/components/q2-tag/q2-tag.d.ts +1 -1
  524. package/dist/types/components.d.ts +104 -14
  525. package/dist/types/utils/helpers.d.ts +13 -0
  526. package/dist/types/utils/index.d.ts +11 -0
  527. package/package.json +7 -7
  528. package/dist/cjs/index-14c3693c.js.map +0 -1
  529. package/dist/cjs/index-9aa4a776.js.map +0 -1
  530. package/dist/esm/index-1e1ce94e.js.map +0 -1
  531. package/dist/esm/index-844fc010.js.map +0 -1
  532. package/dist/q2-tecton-elements/p-06701928.entry.js +0 -2
  533. package/dist/q2-tecton-elements/p-06701928.entry.js.map +0 -1
  534. package/dist/q2-tecton-elements/p-07d1c3ae.entry.js +0 -2
  535. package/dist/q2-tecton-elements/p-15ac45d6.js +0 -2
  536. package/dist/q2-tecton-elements/p-15ac45d6.js.map +0 -1
  537. package/dist/q2-tecton-elements/p-16910682.entry.js +0 -2
  538. package/dist/q2-tecton-elements/p-16910682.entry.js.map +0 -1
  539. package/dist/q2-tecton-elements/p-188eb162.entry.js +0 -3
  540. package/dist/q2-tecton-elements/p-1c760a89.entry.js +0 -2
  541. package/dist/q2-tecton-elements/p-1c760a89.entry.js.map +0 -1
  542. package/dist/q2-tecton-elements/p-1c88d057.entry.js +0 -2
  543. package/dist/q2-tecton-elements/p-1c88d057.entry.js.map +0 -1
  544. package/dist/q2-tecton-elements/p-20a3d6ed.entry.js +0 -2
  545. package/dist/q2-tecton-elements/p-20a3d6ed.entry.js.map +0 -1
  546. package/dist/q2-tecton-elements/p-2733583e.entry.js +0 -2
  547. package/dist/q2-tecton-elements/p-2733583e.entry.js.map +0 -1
  548. package/dist/q2-tecton-elements/p-2941aafa.js +0 -39
  549. package/dist/q2-tecton-elements/p-3e428290.entry.js +0 -2
  550. package/dist/q2-tecton-elements/p-3e428290.entry.js.map +0 -1
  551. package/dist/q2-tecton-elements/p-4774e5b3.entry.js +0 -2
  552. package/dist/q2-tecton-elements/p-4774e5b3.entry.js.map +0 -1
  553. package/dist/q2-tecton-elements/p-490ef8e5.entry.js +0 -2
  554. package/dist/q2-tecton-elements/p-490ef8e5.entry.js.map +0 -1
  555. package/dist/q2-tecton-elements/p-4e10550d.entry.js +0 -2
  556. package/dist/q2-tecton-elements/p-4e10550d.entry.js.map +0 -1
  557. package/dist/q2-tecton-elements/p-50b425de.js +0 -2
  558. package/dist/q2-tecton-elements/p-50f7328f.entry.js +0 -2
  559. package/dist/q2-tecton-elements/p-50f7328f.entry.js.map +0 -1
  560. package/dist/q2-tecton-elements/p-5637c486.entry.js +0 -2
  561. package/dist/q2-tecton-elements/p-56df21b0.entry.js +0 -2
  562. package/dist/q2-tecton-elements/p-56df21b0.entry.js.map +0 -1
  563. package/dist/q2-tecton-elements/p-5a834214.entry.js +0 -2
  564. package/dist/q2-tecton-elements/p-5a834214.entry.js.map +0 -1
  565. package/dist/q2-tecton-elements/p-5f99a4a8.entry.js +0 -2
  566. package/dist/q2-tecton-elements/p-5f99a4a8.entry.js.map +0 -1
  567. package/dist/q2-tecton-elements/p-72d948b4.entry.js +0 -2
  568. package/dist/q2-tecton-elements/p-72d948b4.entry.js.map +0 -1
  569. package/dist/q2-tecton-elements/p-7903cd15.entry.js +0 -2
  570. package/dist/q2-tecton-elements/p-7906f49e.entry.js +0 -2
  571. package/dist/q2-tecton-elements/p-7aef0c08.entry.js +0 -2
  572. package/dist/q2-tecton-elements/p-7c9a0122.entry.js +0 -2
  573. package/dist/q2-tecton-elements/p-7c9f8b62.entry.js +0 -2
  574. package/dist/q2-tecton-elements/p-81fbe718.entry.js +0 -2
  575. package/dist/q2-tecton-elements/p-81fbe718.entry.js.map +0 -1
  576. package/dist/q2-tecton-elements/p-896c7008.entry.js +0 -2
  577. package/dist/q2-tecton-elements/p-8d07cf91.entry.js +0 -2
  578. package/dist/q2-tecton-elements/p-8d2b02e1.entry.js +0 -2
  579. package/dist/q2-tecton-elements/p-95a7c042.entry.js +0 -2
  580. package/dist/q2-tecton-elements/p-96b1406c.entry.js +0 -2
  581. package/dist/q2-tecton-elements/p-a068c84c.entry.js +0 -2
  582. package/dist/q2-tecton-elements/p-a47597dd.entry.js +0 -2
  583. package/dist/q2-tecton-elements/p-a47597dd.entry.js.map +0 -1
  584. package/dist/q2-tecton-elements/p-a5d0e252.entry.js +0 -2
  585. package/dist/q2-tecton-elements/p-a5f18e27.js +0 -3
  586. package/dist/q2-tecton-elements/p-a5f18e27.js.map +0 -1
  587. package/dist/q2-tecton-elements/p-ac6aa392.entry.js +0 -2
  588. package/dist/q2-tecton-elements/p-ac6aa392.entry.js.map +0 -1
  589. package/dist/q2-tecton-elements/p-ad057d10.entry.js +0 -2
  590. package/dist/q2-tecton-elements/p-ad057d10.entry.js.map +0 -1
  591. package/dist/q2-tecton-elements/p-ad798287.entry.js +0 -2
  592. package/dist/q2-tecton-elements/p-ad798287.entry.js.map +0 -1
  593. package/dist/q2-tecton-elements/p-ad80aef0.js +0 -2
  594. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js +0 -2
  595. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js.map +0 -1
  596. package/dist/q2-tecton-elements/p-b1784be3.entry.js +0 -2
  597. package/dist/q2-tecton-elements/p-b1784be3.entry.js.map +0 -1
  598. package/dist/q2-tecton-elements/p-b7554a79.js +0 -2
  599. package/dist/q2-tecton-elements/p-b7de110e.entry.js +0 -2
  600. package/dist/q2-tecton-elements/p-c235ab3f.entry.js +0 -2
  601. package/dist/q2-tecton-elements/p-c5667d5d.entry.js +0 -2
  602. package/dist/q2-tecton-elements/p-e1255160.js +0 -2
  603. package/dist/q2-tecton-elements/p-e216ef3f.entry.js +0 -2
  604. package/dist/q2-tecton-elements/p-e2c800ef.entry.js +0 -2
  605. package/dist/q2-tecton-elements/p-eea5aa01.js +0 -2
  606. package/dist/q2-tecton-elements/p-f135b265.entry.js +0 -2
  607. package/dist/q2-tecton-elements/p-f1e887f5.js +0 -2
  608. package/dist/q2-tecton-elements/p-f5f23659.entry.js +0 -2
  609. package/dist/q2-tecton-elements/p-f7867f21.entry.js +0 -2
  610. package/dist/q2-tecton-elements/p-f7867f21.entry.js.map +0 -1
  611. package/dist/q2-tecton-elements/p-ff8f1a32.entry.js +0 -2
  612. package/dist/q2-tecton-elements/p-fff01dc1.entry.js +0 -2
  613. package/dist/q2-tecton-elements/p-fff01dc1.entry.js.map +0 -1
@@ -0,0 +1,1479 @@
1
+ import { r as e, h as r, g as a } from "./index-7a5365e2.js";
2
+
3
+ import { o as t, l as i } from "./index-d18e2a20.js";
4
+
5
+ import { _ as s, I as n, S as o, b6 as h, P as u, b7 as l, o as d, a0 as c, h as f, i as v, u as p, s as g, H as b, b8 as m, G as w, m as S, d as B, C as A, W as y, a as x, g as M, b as k, b9 as P, t as V, z as C, ba as N, V as L, ai as D, bb as z, bc as j, a9 as U, aa as T, ab as I, ac as O, ad as R, ae as E, af as W } from "./charting-1abfb877.js";
6
+
7
+ import { c as _, j as X, g as Y, i as H, a as F, e as q, f as Z, h as G } from "./dataSample-7b62e101.js";
8
+
9
+ import { g as J, i as K } from "./sectorHelper-183cedd0.js";
10
+
11
+ var Q = /** @class */ function(e) {
12
+ s(BaseBarSeriesModel, e);
13
+ function BaseBarSeriesModel() {
14
+ var r = e !== null && e.apply(this, arguments) || this;
15
+ r.type = BaseBarSeriesModel.type;
16
+ return r;
17
+ }
18
+ BaseBarSeriesModel.prototype.getInitialData = function(e, r) {
19
+ return _(null, this, {
20
+ useEncodeDefaulter: true
21
+ });
22
+ };
23
+ BaseBarSeriesModel.prototype.getMarkerPosition = function(e, r, a) {
24
+ var t = this.coordinateSystem;
25
+ if (t && t.clampData) {
26
+ // PENDING if clamp ?
27
+ var i = t.clampData(e);
28
+ var s = t.dataToPoint(i);
29
+ if (a) {
30
+ n(t.getAxes(), (function(e, a) {
31
+ // If axis type is category, use tick coords instead
32
+ if (e.type === "category" && r != null) {
33
+ var t = e.getTicksCoords();
34
+ var n = e.getTickModel().get("alignWithLabel");
35
+ var o = i[a];
36
+ // The index of rightmost tick of markArea is 1 larger than x1/y1 index
37
+ var h = r[a] === "x1" || r[a] === "y1";
38
+ if (h && !n) {
39
+ o += 1;
40
+ }
41
+ // The only contains one tick, tickCoords is
42
+ // like [{coord: 0, tickValue: 0}, {coord: 0}]
43
+ // to the length should always be larger than 1
44
+ if (t.length < 2) {
45
+ return;
46
+ } else if (t.length === 2) {
47
+ // The left value and right value of the axis are
48
+ // the same. coord is 0 in both items. Use the max
49
+ // value of the axis as the coord
50
+ s[a] = e.toGlobalCoord(e.getExtent()[h ? 1 : 0]);
51
+ return;
52
+ }
53
+ var u = void 0;
54
+ var l = void 0;
55
+ var d = 1;
56
+ for (var c = 0; c < t.length; c++) {
57
+ var f = t[c].coord;
58
+ // The last item of tickCoords doesn't contain
59
+ // tickValue
60
+ var v = c === t.length - 1 ? t[c - 1].tickValue + d : t[c].tickValue;
61
+ if (v === o) {
62
+ l = f;
63
+ break;
64
+ } else if (v < o) {
65
+ u = f;
66
+ } else if (u != null && v > o) {
67
+ l = (f + u) / 2;
68
+ break;
69
+ }
70
+ if (c === 1) {
71
+ // Here we assume the step of category axes is
72
+ // the same
73
+ d = v - t[0].tickValue;
74
+ }
75
+ }
76
+ if (l == null) {
77
+ if (!u) {
78
+ // targetTickId is smaller than all tick ids in the
79
+ // visible area, use the leftmost tick coord
80
+ l = t[0].coord;
81
+ } else if (u) {
82
+ // targetTickId is larger than all tick ids in the
83
+ // visible area, use the rightmost tick coord
84
+ l = t[t.length - 1].coord;
85
+ }
86
+ }
87
+ s[a] = e.toGlobalCoord(l);
88
+ }
89
+ }));
90
+ } else {
91
+ var o = this.getData();
92
+ var h = o.getLayout("offset");
93
+ var u = o.getLayout("size");
94
+ var l = t.getBaseAxis().isHorizontal() ? 0 : 1;
95
+ s[l] += h + u / 2;
96
+ }
97
+ return s;
98
+ }
99
+ return [ NaN, NaN ];
100
+ };
101
+ BaseBarSeriesModel.type = "series.__base_bar__";
102
+ BaseBarSeriesModel.defaultOption = {
103
+ // zlevel: 0,
104
+ z: 2,
105
+ coordinateSystem: "cartesian2d",
106
+ legendHoverLink: true,
107
+ // stack: null
108
+ // Cartesian coordinate system
109
+ // xAxisIndex: 0,
110
+ // yAxisIndex: 0,
111
+ barMinHeight: 0,
112
+ barMinAngle: 0,
113
+ // cursor: null,
114
+ large: false,
115
+ largeThreshold: 400,
116
+ progressive: 3e3,
117
+ progressiveChunkMode: "mod"
118
+ };
119
+ return BaseBarSeriesModel;
120
+ }(o);
121
+
122
+ o.registerClass(Q);
123
+
124
+ const $ = Q;
125
+
126
+ var ee = /** @class */ function(e) {
127
+ s(BarSeriesModel, e);
128
+ function BarSeriesModel() {
129
+ var r = e !== null && e.apply(this, arguments) || this;
130
+ r.type = BarSeriesModel.type;
131
+ return r;
132
+ }
133
+ BarSeriesModel.prototype.getInitialData = function() {
134
+ return _(null, this, {
135
+ useEncodeDefaulter: true,
136
+ createInvertedIndices: !!this.get("realtimeSort", true) || null
137
+ });
138
+ };
139
+ /**
140
+ * @override
141
+ */ BarSeriesModel.prototype.getProgressive = function() {
142
+ // Do not support progressive in normal mode.
143
+ return this.get("large") ? this.get("progressive") : false;
144
+ };
145
+ /**
146
+ * @override
147
+ */ BarSeriesModel.prototype.getProgressiveThreshold = function() {
148
+ // Do not support progressive in normal mode.
149
+ var e = this.get("progressiveThreshold");
150
+ var r = this.get("largeThreshold");
151
+ if (r > e) {
152
+ e = r;
153
+ }
154
+ return e;
155
+ };
156
+ BarSeriesModel.prototype.brushSelector = function(e, r, a) {
157
+ return a.rect(r.getItemLayout(e));
158
+ };
159
+ BarSeriesModel.type = "series.bar";
160
+ BarSeriesModel.dependencies = [ "grid", "polar" ];
161
+ BarSeriesModel.defaultOption = h($.defaultOption, {
162
+ // If clipped
163
+ // Only available on cartesian2d
164
+ clip: true,
165
+ roundCap: false,
166
+ showBackground: false,
167
+ backgroundStyle: {
168
+ color: "rgba(180, 180, 180, 0.2)",
169
+ borderColor: null,
170
+ borderWidth: 0,
171
+ borderType: "solid",
172
+ borderRadius: 0,
173
+ shadowBlur: 0,
174
+ shadowColor: null,
175
+ shadowOffsetX: 0,
176
+ shadowOffsetY: 0,
177
+ opacity: 1
178
+ },
179
+ select: {
180
+ itemStyle: {
181
+ borderColor: "#212121"
182
+ }
183
+ },
184
+ realtimeSort: false
185
+ });
186
+ return BarSeriesModel;
187
+ }($);
188
+
189
+ const re = ee;
190
+
191
+ /**
192
+ * Sausage: similar to sector, but have half circle on both sides
193
+ */ var ae = /** @class */ function() {
194
+ function SausageShape() {
195
+ this.cx = 0;
196
+ this.cy = 0;
197
+ this.r0 = 0;
198
+ this.r = 0;
199
+ this.startAngle = 0;
200
+ this.endAngle = Math.PI * 2;
201
+ this.clockwise = true;
202
+ }
203
+ return SausageShape;
204
+ }();
205
+
206
+ var te = /** @class */ function(e) {
207
+ s(SausagePath, e);
208
+ function SausagePath(r) {
209
+ var a = e.call(this, r) || this;
210
+ a.type = "sausage";
211
+ return a;
212
+ }
213
+ SausagePath.prototype.getDefaultShape = function() {
214
+ return new ae;
215
+ };
216
+ SausagePath.prototype.buildPath = function(e, r) {
217
+ var a = r.cx;
218
+ var t = r.cy;
219
+ var i = Math.max(r.r0 || 0, 0);
220
+ var s = Math.max(r.r, 0);
221
+ var n = (s - i) * .5;
222
+ var o = i + n;
223
+ var h = r.startAngle;
224
+ var u = r.endAngle;
225
+ var l = r.clockwise;
226
+ var d = Math.PI * 2;
227
+ var c = l ? u - h < d : h - u < d;
228
+ if (!c) {
229
+ // Normalize angles
230
+ h = u - (l ? d : -d);
231
+ }
232
+ var f = Math.cos(h);
233
+ var v = Math.sin(h);
234
+ var p = Math.cos(u);
235
+ var g = Math.sin(u);
236
+ if (c) {
237
+ e.moveTo(f * i + a, v * i + t);
238
+ e.arc(f * o + a, v * o + t, n, -Math.PI + h, h, !l);
239
+ } else {
240
+ e.moveTo(f * s + a, v * s + t);
241
+ }
242
+ e.arc(a, t, s, h, u, !l);
243
+ e.arc(p * o + a, g * o + t, n, u - Math.PI * 2, u - Math.PI, !l);
244
+ if (i !== 0) {
245
+ e.arc(a, t, i, u, h, l);
246
+ }
247
+ // ctx.closePath();
248
+ };
249
+ return SausagePath;
250
+ }(u);
251
+
252
+ const ie = te;
253
+
254
+ function createSectorCalculateTextPosition(e, r) {
255
+ r = r || {};
256
+ var a = r.isRoundCap;
257
+ return function(r, t, i) {
258
+ var s = t.position;
259
+ if (!s || s instanceof Array) {
260
+ return l(r, t, i);
261
+ }
262
+ var n = e(s);
263
+ var o = t.distance != null ? t.distance : 5;
264
+ var h = this.shape;
265
+ var u = h.cx;
266
+ var d = h.cy;
267
+ var c = h.r;
268
+ var f = h.r0;
269
+ var v = (c + f) / 2;
270
+ var p = h.startAngle;
271
+ var g = h.endAngle;
272
+ var b = (p + g) / 2;
273
+ var m = a ? Math.abs(c - f) / 2 : 0;
274
+ var w = Math.cos;
275
+ var S = Math.sin;
276
+ // base position: top-left
277
+ var B = u + c * w(p);
278
+ var A = d + c * S(p);
279
+ var y = "left";
280
+ var x = "top";
281
+ switch (n) {
282
+ case "startArc":
283
+ B = u + (f - o) * w(b);
284
+ A = d + (f - o) * S(b);
285
+ y = "center";
286
+ x = "top";
287
+ break;
288
+
289
+ case "insideStartArc":
290
+ B = u + (f + o) * w(b);
291
+ A = d + (f + o) * S(b);
292
+ y = "center";
293
+ x = "bottom";
294
+ break;
295
+
296
+ case "startAngle":
297
+ B = u + v * w(p) + adjustAngleDistanceX(p, o + m, false);
298
+ A = d + v * S(p) + adjustAngleDistanceY(p, o + m, false);
299
+ y = "right";
300
+ x = "middle";
301
+ break;
302
+
303
+ case "insideStartAngle":
304
+ B = u + v * w(p) + adjustAngleDistanceX(p, -o + m, false);
305
+ A = d + v * S(p) + adjustAngleDistanceY(p, -o + m, false);
306
+ y = "left";
307
+ x = "middle";
308
+ break;
309
+
310
+ case "middle":
311
+ B = u + v * w(b);
312
+ A = d + v * S(b);
313
+ y = "center";
314
+ x = "middle";
315
+ break;
316
+
317
+ case "endArc":
318
+ B = u + (c + o) * w(b);
319
+ A = d + (c + o) * S(b);
320
+ y = "center";
321
+ x = "bottom";
322
+ break;
323
+
324
+ case "insideEndArc":
325
+ B = u + (c - o) * w(b);
326
+ A = d + (c - o) * S(b);
327
+ y = "center";
328
+ x = "top";
329
+ break;
330
+
331
+ case "endAngle":
332
+ B = u + v * w(g) + adjustAngleDistanceX(g, o + m, true);
333
+ A = d + v * S(g) + adjustAngleDistanceY(g, o + m, true);
334
+ y = "left";
335
+ x = "middle";
336
+ break;
337
+
338
+ case "insideEndAngle":
339
+ B = u + v * w(g) + adjustAngleDistanceX(g, -o + m, true);
340
+ A = d + v * S(g) + adjustAngleDistanceY(g, -o + m, true);
341
+ y = "right";
342
+ x = "middle";
343
+ break;
344
+
345
+ default:
346
+ return l(r, t, i);
347
+ }
348
+ r = r || {};
349
+ r.x = B;
350
+ r.y = A;
351
+ r.align = y;
352
+ r.verticalAlign = x;
353
+ return r;
354
+ };
355
+ }
356
+
357
+ function setSectorTextRotation(e, r, a, t) {
358
+ if (d(t)) {
359
+ // user-set rotation
360
+ e.setTextConfig({
361
+ rotation: t
362
+ });
363
+ return;
364
+ } else if (c(r)) {
365
+ // user-set position, use 0 as auto rotation
366
+ e.setTextConfig({
367
+ rotation: 0
368
+ });
369
+ return;
370
+ }
371
+ var i = e.shape;
372
+ var s = i.clockwise ? i.startAngle : i.endAngle;
373
+ var n = i.clockwise ? i.endAngle : i.startAngle;
374
+ var o = (s + n) / 2;
375
+ var h;
376
+ var u = a(r);
377
+ switch (u) {
378
+ case "startArc":
379
+ case "insideStartArc":
380
+ case "middle":
381
+ case "insideEndArc":
382
+ case "endArc":
383
+ h = o;
384
+ break;
385
+
386
+ case "startAngle":
387
+ case "insideStartAngle":
388
+ h = s;
389
+ break;
390
+
391
+ case "endAngle":
392
+ case "insideEndAngle":
393
+ h = n;
394
+ break;
395
+
396
+ default:
397
+ e.setTextConfig({
398
+ rotation: 0
399
+ });
400
+ return;
401
+ }
402
+ var l = Math.PI * 1.5 - h;
403
+ /**
404
+ * TODO: labels with rotate > Math.PI / 2 should be rotate another
405
+ * half round flipped to increase readability. However, only middle
406
+ * position supports this for now, because in other positions, the
407
+ * anchor point is not at the center of the text, so the positions
408
+ * after rotating is not as expected.
409
+ */ if (u === "middle" && l > Math.PI / 2 && l < Math.PI * 1.5) {
410
+ l -= Math.PI;
411
+ }
412
+ e.setTextConfig({
413
+ rotation: l
414
+ });
415
+ }
416
+
417
+ function adjustAngleDistanceX(e, r, a) {
418
+ return r * Math.sin(e) * (a ? -1 : 1);
419
+ }
420
+
421
+ function adjustAngleDistanceY(e, r, a) {
422
+ return r * Math.cos(e) * (a ? 1 : -1);
423
+ }
424
+
425
+ var se = Math.max;
426
+
427
+ var ne = Math.min;
428
+
429
+ function getClipArea(e, r) {
430
+ var a = e.getArea && e.getArea();
431
+ if (H(e, "cartesian2d")) {
432
+ var t = e.getBaseAxis();
433
+ // When boundaryGap is false or using time axis. bar may exceed the grid.
434
+ // We should not clip this part.
435
+ // See test/bar2.html
436
+ if (t.type !== "category" || !t.onBand) {
437
+ var i = r.getLayout("bandWidth");
438
+ if (t.isHorizontal()) {
439
+ a.x -= i;
440
+ a.width += i * 2;
441
+ } else {
442
+ a.y -= i;
443
+ a.height += i * 2;
444
+ }
445
+ }
446
+ }
447
+ return a;
448
+ }
449
+
450
+ var oe = /** @class */ function(e) {
451
+ s(BarView, e);
452
+ function BarView() {
453
+ var r = e.call(this) || this;
454
+ r.type = BarView.type;
455
+ r._isFirstFrame = true;
456
+ return r;
457
+ }
458
+ BarView.prototype.render = function(e, r, a, t) {
459
+ this._model = e;
460
+ this._removeOnRenderedListener(a);
461
+ this._updateDrawMode(e);
462
+ var i = e.get("coordinateSystem");
463
+ if (i === "cartesian2d" || i === "polar") {
464
+ // Clear previously rendered progressive elements.
465
+ this._progressiveEls = null;
466
+ this._isLargeDraw ? this._renderLarge(e, r, a) : this._renderNormal(e, r, a, t);
467
+ }
468
+ };
469
+ BarView.prototype.incrementalPrepareRender = function(e) {
470
+ this._clear();
471
+ this._updateDrawMode(e);
472
+ // incremental also need to clip, otherwise might be overlow.
473
+ // But must not set clip in each frame, otherwise all of the children will be marked redraw.
474
+ this._updateLargeClip(e);
475
+ };
476
+ BarView.prototype.incrementalRender = function(e, r) {
477
+ // Reset
478
+ this._progressiveEls = [];
479
+ // Do not support progressive in normal mode.
480
+ this._incrementalRenderLarge(e, r);
481
+ };
482
+ BarView.prototype.eachRendered = function(e) {
483
+ f(this._progressiveEls || this.group, e);
484
+ };
485
+ BarView.prototype._updateDrawMode = function(e) {
486
+ var r = e.pipelineContext.large;
487
+ if (this._isLargeDraw == null || r !== this._isLargeDraw) {
488
+ this._isLargeDraw = r;
489
+ this._clear();
490
+ }
491
+ };
492
+ BarView.prototype._renderNormal = function(e, r, a, t) {
493
+ var i = this.group;
494
+ var s = e.getData();
495
+ var n = this._data;
496
+ var o = e.coordinateSystem;
497
+ var h = o.getBaseAxis();
498
+ var u;
499
+ if (o.type === "cartesian2d") {
500
+ u = h.isHorizontal();
501
+ } else if (o.type === "polar") {
502
+ u = h.dim === "angle";
503
+ }
504
+ var l = e.isAnimationEnabled() ? e : null;
505
+ var d = shouldRealtimeSort(e, o);
506
+ if (d) {
507
+ this._enableRealtimeSort(d, s, a);
508
+ }
509
+ var c = e.get("clip", true) || d;
510
+ var f = getClipArea(o, s);
511
+ // If there is clipPath created in large mode. Remove it.
512
+ i.removeClipPath();
513
+ // We don't use clipPath in normal mode because we needs a perfect animation
514
+ // And don't want the label are clipped.
515
+ var S = e.get("roundCap", true);
516
+ var B = e.get("showBackground", true);
517
+ var A = e.getModel("backgroundStyle");
518
+ var y = A.get("borderRadius") || 0;
519
+ var x = [];
520
+ var M = this._backgroundEls;
521
+ var k = t && t.isInitSort;
522
+ var P = t && t.type === "changeAxisOrder";
523
+ function createBackground(e) {
524
+ var r = fe[o.type](s, e);
525
+ var a = createBackgroundEl(o, u, r);
526
+ a.useStyle(A.getItemStyle());
527
+ // Only cartesian2d support borderRadius.
528
+ if (o.type === "cartesian2d") {
529
+ a.setShape("r", y);
530
+ } else {
531
+ a.setShape("cornerRadius", y);
532
+ }
533
+ x[e] = a;
534
+ return a;
535
+ }
536
+ s.diff(n).add((function(r) {
537
+ var a = s.getItemModel(r);
538
+ var t = fe[o.type](s, r, a);
539
+ if (B) {
540
+ createBackground(r);
541
+ }
542
+ // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
543
+ if (!s.hasValue(r) || !ce[o.type](t)) {
544
+ return;
545
+ }
546
+ var n = false;
547
+ if (c) {
548
+ // Clip will modify the layout params.
549
+ // And return a boolean to determine if the shape are fully clipped.
550
+ n = he[o.type](f, t);
551
+ }
552
+ var p = ue[o.type](e, s, r, t, u, l, h.model, false, S);
553
+ if (d) {
554
+ /**
555
+ * Force label animation because even if the element is
556
+ * ignored because it's clipped, it may not be clipped after
557
+ * changing order. Then, if not using forceLabelAnimation,
558
+ * the label animation was never started, in which case,
559
+ * the label will be the final value and doesn't have label
560
+ * animation.
561
+ */
562
+ p.forceLabelAnimation = true;
563
+ }
564
+ updateStyle(p, s, r, a, t, e, u, o.type === "polar");
565
+ if (k) {
566
+ p.attr({
567
+ shape: t
568
+ });
569
+ } else if (d) {
570
+ updateRealtimeAnimation(d, l, p, t, r, u, false, false);
571
+ } else {
572
+ v(p, {
573
+ shape: t
574
+ }, e, r);
575
+ }
576
+ s.setItemGraphicEl(r, p);
577
+ i.add(p);
578
+ p.ignore = n;
579
+ })).update((function(r, a) {
580
+ var t = s.getItemModel(r);
581
+ var v = fe[o.type](s, r, t);
582
+ if (B) {
583
+ var m = void 0;
584
+ if (M.length === 0) {
585
+ m = createBackground(a);
586
+ } else {
587
+ m = M[a];
588
+ m.useStyle(A.getItemStyle());
589
+ // Only cartesian2d support borderRadius.
590
+ if (o.type === "cartesian2d") {
591
+ m.setShape("r", y);
592
+ } else {
593
+ m.setShape("cornerRadius", y);
594
+ }
595
+ x[r] = m;
596
+ }
597
+ var w = fe[o.type](s, r);
598
+ var V = createBackgroundShape(u, w, o);
599
+ p(m, {
600
+ shape: V
601
+ }, l, r);
602
+ }
603
+ var C = n.getItemGraphicEl(a);
604
+ if (!s.hasValue(r) || !ce[o.type](v)) {
605
+ i.remove(C);
606
+ return;
607
+ }
608
+ var N = false;
609
+ if (c) {
610
+ N = he[o.type](f, v);
611
+ if (N) {
612
+ i.remove(C);
613
+ }
614
+ }
615
+ if (!C) {
616
+ C = ue[o.type](e, s, r, v, u, l, h.model, !!C, S);
617
+ } else {
618
+ g(C);
619
+ }
620
+ if (d) {
621
+ C.forceLabelAnimation = true;
622
+ }
623
+ if (P) {
624
+ var L = C.getTextContent();
625
+ if (L) {
626
+ var D = b(L);
627
+ if (D.prevValue != null) {
628
+ /**
629
+ * Set preValue to be value so that no new label
630
+ * should be started, otherwise, it will take a full
631
+ * `animationDurationUpdate` time to finish the
632
+ * animation, which is not expected.
633
+ */
634
+ D.prevValue = D.value;
635
+ }
636
+ }
637
+ }
638
+ // Not change anything if only order changed.
639
+ // Especially not change label.
640
+ else {
641
+ updateStyle(C, s, r, t, v, e, u, o.type === "polar");
642
+ }
643
+ if (k) {
644
+ C.attr({
645
+ shape: v
646
+ });
647
+ } else if (d) {
648
+ updateRealtimeAnimation(d, l, C, v, r, u, true, P);
649
+ } else {
650
+ p(C, {
651
+ shape: v
652
+ }, e, r, null);
653
+ }
654
+ s.setItemGraphicEl(r, C);
655
+ C.ignore = N;
656
+ i.add(C);
657
+ })).remove((function(r) {
658
+ var a = n.getItemGraphicEl(r);
659
+ a && m(a, e, r);
660
+ })).execute();
661
+ var V = this._backgroundGroup || (this._backgroundGroup = new w);
662
+ V.removeAll();
663
+ for (var C = 0; C < x.length; ++C) {
664
+ V.add(x[C]);
665
+ }
666
+ i.add(V);
667
+ this._backgroundEls = x;
668
+ this._data = s;
669
+ };
670
+ BarView.prototype._renderLarge = function(e, r, a) {
671
+ this._clear();
672
+ createLarge(e, this.group);
673
+ this._updateLargeClip(e);
674
+ };
675
+ BarView.prototype._incrementalRenderLarge = function(e, r) {
676
+ this._removeBackground();
677
+ createLarge(r, this.group, this._progressiveEls, true);
678
+ };
679
+ BarView.prototype._updateLargeClip = function(e) {
680
+ // Use clipPath in large mode.
681
+ var r = e.get("clip", true) && X(e.coordinateSystem, false, e);
682
+ var a = this.group;
683
+ if (r) {
684
+ a.setClipPath(r);
685
+ } else {
686
+ a.removeClipPath();
687
+ }
688
+ };
689
+ BarView.prototype._enableRealtimeSort = function(e, r, a) {
690
+ var t = this;
691
+ // If no data in the first frame, wait for data to initSort
692
+ if (!r.count()) {
693
+ return;
694
+ }
695
+ var i = e.baseAxis;
696
+ if (this._isFirstFrame) {
697
+ this._dispatchInitSort(r, e, a);
698
+ this._isFirstFrame = false;
699
+ } else {
700
+ var orderMapping_1 = function(e) {
701
+ var a = r.getItemGraphicEl(e);
702
+ var t = a && a.shape;
703
+ return t &&
704
+ // The result should be consistent with the initial sort by data value.
705
+ // Do not support the case that both positive and negative exist.
706
+ Math.abs(i.isHorizontal() ? t.height : t.width) || 0;
707
+ };
708
+ this._onRendered = function() {
709
+ t._updateSortWithinSameData(r, orderMapping_1, i, a);
710
+ };
711
+ a.getZr().on("rendered", this._onRendered);
712
+ }
713
+ };
714
+ BarView.prototype._dataSort = function(e, r, a) {
715
+ var t = [];
716
+ e.each(e.mapDimension(r.dim), (function(e, r) {
717
+ var i = a(r);
718
+ i = i == null ? NaN : i;
719
+ t.push({
720
+ dataIndex: r,
721
+ mappedValue: i,
722
+ ordinalNumber: e
723
+ });
724
+ }));
725
+ t.sort((function(e, r) {
726
+ // If NaN, it will be treated as min val.
727
+ return r.mappedValue - e.mappedValue;
728
+ }));
729
+ return {
730
+ ordinalNumbers: S(t, (function(e) {
731
+ return e.ordinalNumber;
732
+ }))
733
+ };
734
+ };
735
+ BarView.prototype._isOrderChangedWithinSameData = function(e, r, a) {
736
+ var t = a.scale;
737
+ var i = e.mapDimension(a.dim);
738
+ var s = Number.MAX_VALUE;
739
+ for (var n = 0, o = t.getOrdinalMeta().categories.length; n < o; ++n) {
740
+ var h = e.rawIndexOf(i, t.getRawOrdinalNumber(n));
741
+ var u = h < 0 ? Number.MIN_VALUE : r(e.indexOfRawIndex(h));
742
+ if (u > s) {
743
+ return true;
744
+ }
745
+ s = u;
746
+ }
747
+ return false;
748
+ };
749
+ /*
750
+ * Consider the case when A and B changed order, whose representing
751
+ * bars are both out of sight, we don't wish to trigger reorder action
752
+ * as long as the order in the view doesn't change.
753
+ */ BarView.prototype._isOrderDifferentInView = function(e, r) {
754
+ var a = r.scale;
755
+ var t = a.getExtent();
756
+ var i = Math.max(0, t[0]);
757
+ var s = Math.min(t[1], a.getOrdinalMeta().categories.length - 1);
758
+ for (;i <= s; ++i) {
759
+ if (e.ordinalNumbers[i] !== a.getRawOrdinalNumber(i)) {
760
+ return true;
761
+ }
762
+ }
763
+ };
764
+ BarView.prototype._updateSortWithinSameData = function(e, r, a, t) {
765
+ if (!this._isOrderChangedWithinSameData(e, r, a)) {
766
+ return;
767
+ }
768
+ var i = this._dataSort(e, a, r);
769
+ if (this._isOrderDifferentInView(i, a)) {
770
+ this._removeOnRenderedListener(t);
771
+ t.dispatchAction({
772
+ type: "changeAxisOrder",
773
+ componentType: a.dim + "Axis",
774
+ axisId: a.index,
775
+ sortInfo: i
776
+ });
777
+ }
778
+ };
779
+ BarView.prototype._dispatchInitSort = function(e, r, a) {
780
+ var t = r.baseAxis;
781
+ var i = this._dataSort(e, t, (function(a) {
782
+ return e.get(e.mapDimension(r.otherAxis.dim), a);
783
+ }));
784
+ a.dispatchAction({
785
+ type: "changeAxisOrder",
786
+ componentType: t.dim + "Axis",
787
+ isInitSort: true,
788
+ axisId: t.index,
789
+ sortInfo: i
790
+ });
791
+ };
792
+ BarView.prototype.remove = function(e, r) {
793
+ this._clear(this._model);
794
+ this._removeOnRenderedListener(r);
795
+ };
796
+ BarView.prototype.dispose = function(e, r) {
797
+ this._removeOnRenderedListener(r);
798
+ };
799
+ BarView.prototype._removeOnRenderedListener = function(e) {
800
+ if (this._onRendered) {
801
+ e.getZr().off("rendered", this._onRendered);
802
+ this._onRendered = null;
803
+ }
804
+ };
805
+ BarView.prototype._clear = function(e) {
806
+ var r = this.group;
807
+ var a = this._data;
808
+ if (e && e.isAnimationEnabled() && a && !this._isLargeDraw) {
809
+ this._removeBackground();
810
+ this._backgroundEls = [];
811
+ a.eachItemGraphicEl((function(r) {
812
+ m(r, e, B(r).dataIndex);
813
+ }));
814
+ } else {
815
+ r.removeAll();
816
+ }
817
+ this._data = null;
818
+ this._isFirstFrame = true;
819
+ };
820
+ BarView.prototype._removeBackground = function() {
821
+ this.group.remove(this._backgroundGroup);
822
+ this._backgroundGroup = null;
823
+ };
824
+ BarView.type = "bar";
825
+ return BarView;
826
+ }(A);
827
+
828
+ var he = {
829
+ cartesian2d: function(e, r) {
830
+ var a = r.width < 0 ? -1 : 1;
831
+ var t = r.height < 0 ? -1 : 1;
832
+ // Needs positive width and height
833
+ if (a < 0) {
834
+ r.x += r.width;
835
+ r.width = -r.width;
836
+ }
837
+ if (t < 0) {
838
+ r.y += r.height;
839
+ r.height = -r.height;
840
+ }
841
+ var i = e.x + e.width;
842
+ var s = e.y + e.height;
843
+ var n = se(r.x, e.x);
844
+ var o = ne(r.x + r.width, i);
845
+ var h = se(r.y, e.y);
846
+ var u = ne(r.y + r.height, s);
847
+ var l = o < n;
848
+ var d = u < h;
849
+ // When xClipped or yClipped, the element will be marked as `ignore`.
850
+ // But we should also place the element at the edge of the coord sys bounding rect.
851
+ // Because if data changed and the bar shows again, its transition animation
852
+ // will begin at this place.
853
+ r.x = l && n > i ? o : n;
854
+ r.y = d && h > s ? u : h;
855
+ r.width = l ? 0 : o - n;
856
+ r.height = d ? 0 : u - h;
857
+ // Reverse back
858
+ if (a < 0) {
859
+ r.x += r.width;
860
+ r.width = -r.width;
861
+ }
862
+ if (t < 0) {
863
+ r.y += r.height;
864
+ r.height = -r.height;
865
+ }
866
+ return l || d;
867
+ },
868
+ polar: function(e, r) {
869
+ var a = r.r0 <= r.r ? 1 : -1;
870
+ // Make sure r is larger than r0
871
+ if (a < 0) {
872
+ var t = r.r;
873
+ r.r = r.r0;
874
+ r.r0 = t;
875
+ }
876
+ var i = ne(r.r, e.r);
877
+ var s = se(r.r0, e.r0);
878
+ r.r = i;
879
+ r.r0 = s;
880
+ var n = i - s < 0;
881
+ // Reverse back
882
+ if (a < 0) {
883
+ var t = r.r;
884
+ r.r = r.r0;
885
+ r.r0 = t;
886
+ }
887
+ return n;
888
+ }
889
+ };
890
+
891
+ var ue = {
892
+ cartesian2d: function(e, r, a, t, i, s, n, o, h) {
893
+ var u = new y({
894
+ shape: x({}, t),
895
+ z2: 1
896
+ });
897
+ u.__dataIndex = a;
898
+ u.name = "item";
899
+ if (s) {
900
+ var l = u.shape;
901
+ var d = i ? "height" : "width";
902
+ l[d] = 0;
903
+ }
904
+ return u;
905
+ },
906
+ polar: function(e, r, a, t, i, s, n, o, h) {
907
+ var u = !i && h ? ie : L;
908
+ var l = new u({
909
+ shape: t,
910
+ z2: 1
911
+ });
912
+ l.name = "item";
913
+ var d = createPolarPositionMapping(i);
914
+ l.calculateTextPosition = createSectorCalculateTextPosition(d, {
915
+ isRoundCap: u === ie
916
+ });
917
+ // Animation
918
+ if (s) {
919
+ var c = l.shape;
920
+ var f = i ? "r" : "endAngle";
921
+ var g = {};
922
+ c[f] = i ? t.r0 : t.startAngle;
923
+ g[f] = t[f];
924
+ (o ? p : v)(l, {
925
+ shape: g
926
+ }, s);
927
+ }
928
+ return l;
929
+ }
930
+ };
931
+
932
+ function shouldRealtimeSort(e, r) {
933
+ var a = e.get("realtimeSort", true);
934
+ var t = r.getBaseAxis();
935
+ if (a && t.type === "category" && r.type === "cartesian2d") {
936
+ return {
937
+ baseAxis: t,
938
+ otherAxis: r.getOtherAxis(t)
939
+ };
940
+ }
941
+ }
942
+
943
+ function updateRealtimeAnimation(e, r, a, t, i, s, n, o) {
944
+ var h;
945
+ var u;
946
+ if (s) {
947
+ u = {
948
+ x: t.x,
949
+ width: t.width
950
+ };
951
+ h = {
952
+ y: t.y,
953
+ height: t.height
954
+ };
955
+ } else {
956
+ u = {
957
+ y: t.y,
958
+ height: t.height
959
+ };
960
+ h = {
961
+ x: t.x,
962
+ width: t.width
963
+ };
964
+ }
965
+ if (!o) {
966
+ // Keep the original growth animation if only axis order changed.
967
+ // Not start a new animation.
968
+ (n ? p : v)(a, {
969
+ shape: h
970
+ }, r, i, null);
971
+ }
972
+ var l = r ? e.baseAxis.model : null;
973
+ (n ? p : v)(a, {
974
+ shape: u
975
+ }, l, i);
976
+ }
977
+
978
+ function checkPropertiesNotValid(e, r) {
979
+ for (var a = 0; a < r.length; a++) {
980
+ if (!isFinite(e[r[a]])) {
981
+ return true;
982
+ }
983
+ }
984
+ return false;
985
+ }
986
+
987
+ var le = [ "x", "y", "width", "height" ];
988
+
989
+ var de = [ "cx", "cy", "r", "startAngle", "endAngle" ];
990
+
991
+ var ce = {
992
+ cartesian2d: function(e) {
993
+ return !checkPropertiesNotValid(e, le);
994
+ },
995
+ polar: function(e) {
996
+ return !checkPropertiesNotValid(e, de);
997
+ }
998
+ };
999
+
1000
+ var fe = {
1001
+ // itemModel is only used to get borderWidth, which is not needed
1002
+ // when calculating bar background layout.
1003
+ cartesian2d: function(e, r, a) {
1004
+ var t = e.getItemLayout(r);
1005
+ var i = a ? getLineWidth(a, t) : 0;
1006
+ // fix layout with lineWidth
1007
+ var s = t.width > 0 ? 1 : -1;
1008
+ var n = t.height > 0 ? 1 : -1;
1009
+ return {
1010
+ x: t.x + s * i / 2,
1011
+ y: t.y + n * i / 2,
1012
+ width: t.width - s * i,
1013
+ height: t.height - n * i
1014
+ };
1015
+ },
1016
+ polar: function(e, r, a) {
1017
+ var t = e.getItemLayout(r);
1018
+ return {
1019
+ cx: t.cx,
1020
+ cy: t.cy,
1021
+ r0: t.r0,
1022
+ r: t.r,
1023
+ startAngle: t.startAngle,
1024
+ endAngle: t.endAngle,
1025
+ clockwise: t.clockwise
1026
+ };
1027
+ }
1028
+ };
1029
+
1030
+ function isZeroOnPolar(e) {
1031
+ return e.startAngle != null && e.endAngle != null && e.startAngle === e.endAngle;
1032
+ }
1033
+
1034
+ function createPolarPositionMapping(e) {
1035
+ return function(e) {
1036
+ var r = e ? "Arc" : "Angle";
1037
+ return function(e) {
1038
+ switch (e) {
1039
+ case "start":
1040
+ case "insideStart":
1041
+ case "end":
1042
+ case "insideEnd":
1043
+ return e + r;
1044
+
1045
+ default:
1046
+ return e;
1047
+ }
1048
+ };
1049
+ }(e);
1050
+ }
1051
+
1052
+ function updateStyle(e, r, a, t, i, s, o, h) {
1053
+ var u = r.getItemVisual(a, "style");
1054
+ if (!h) {
1055
+ var l = t.get([ "itemStyle", "borderRadius" ]) || 0;
1056
+ e.setShape("r", l);
1057
+ } else if (!s.get("roundCap")) {
1058
+ var d = e.shape;
1059
+ var c = J(t.getModel("itemStyle"), d, true);
1060
+ x(d, c);
1061
+ e.setShape(d);
1062
+ }
1063
+ e.useStyle(u);
1064
+ var f = t.getShallow("cursor");
1065
+ f && e.attr("cursor", f);
1066
+ var v = h ? o ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : o ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left";
1067
+ var p = M(t);
1068
+ k(e, p, {
1069
+ labelFetcher: s,
1070
+ labelDataIndex: a,
1071
+ defaultText: Y(s.getData(), a),
1072
+ inheritColor: u.fill,
1073
+ defaultOpacity: u.opacity,
1074
+ defaultOutsidePosition: v
1075
+ });
1076
+ var g = e.getTextContent();
1077
+ if (h && g) {
1078
+ var b = t.get([ "label", "position" ]);
1079
+ e.textConfig.inside = b === "middle" ? true : null;
1080
+ setSectorTextRotation(e, b === "outside" ? v : b, createPolarPositionMapping(o), t.get([ "label", "rotate" ]));
1081
+ }
1082
+ P(g, p, s.getRawValue(a), (function(e) {
1083
+ return F(r, e);
1084
+ }));
1085
+ var m = t.getModel([ "emphasis" ]);
1086
+ V(e, m.get("focus"), m.get("blurScope"), m.get("disabled"));
1087
+ C(e, t);
1088
+ if (isZeroOnPolar(i)) {
1089
+ e.style.fill = "none";
1090
+ e.style.stroke = "none";
1091
+ n(e.states, (function(e) {
1092
+ if (e.style) {
1093
+ e.style.fill = e.style.stroke = "none";
1094
+ }
1095
+ }));
1096
+ }
1097
+ }
1098
+
1099
+ // In case width or height are too small.
1100
+ function getLineWidth(e, r) {
1101
+ // Has no border.
1102
+ var a = e.get([ "itemStyle", "borderColor" ]);
1103
+ if (!a || a === "none") {
1104
+ return 0;
1105
+ }
1106
+ var t = e.get([ "itemStyle", "borderWidth" ]) || 0;
1107
+ // width or height may be NaN for empty data
1108
+ var i = isNaN(r.width) ? Number.MAX_VALUE : Math.abs(r.width);
1109
+ var s = isNaN(r.height) ? Number.MAX_VALUE : Math.abs(r.height);
1110
+ return Math.min(t, i, s);
1111
+ }
1112
+
1113
+ var ve = /** @class */ function() {
1114
+ function LagePathShape() {}
1115
+ return LagePathShape;
1116
+ }();
1117
+
1118
+ var pe = /** @class */ function(e) {
1119
+ s(LargePath, e);
1120
+ function LargePath(r) {
1121
+ var a = e.call(this, r) || this;
1122
+ a.type = "largeBar";
1123
+ return a;
1124
+ }
1125
+ LargePath.prototype.getDefaultShape = function() {
1126
+ return new ve;
1127
+ };
1128
+ LargePath.prototype.buildPath = function(e, r) {
1129
+ // Drawing lines is more efficient than drawing
1130
+ // a whole line or drawing rects.
1131
+ var a = r.points;
1132
+ var t = this.baseDimIdx;
1133
+ var i = 1 - this.baseDimIdx;
1134
+ var s = [];
1135
+ var n = [];
1136
+ var o = this.barWidth;
1137
+ for (var h = 0; h < a.length; h += 3) {
1138
+ n[t] = o;
1139
+ n[i] = a[h + 2];
1140
+ s[t] = a[h + t];
1141
+ s[i] = a[h + i];
1142
+ e.rect(s[0], s[1], n[0], n[1]);
1143
+ }
1144
+ };
1145
+ return LargePath;
1146
+ }(u);
1147
+
1148
+ function createLarge(e, r, a, t) {
1149
+ // TODO support polar
1150
+ var i = e.getData();
1151
+ var s = i.getLayout("valueAxisHorizontal") ? 1 : 0;
1152
+ var n = i.getLayout("largeDataIndices");
1153
+ var o = i.getLayout("size");
1154
+ var h = e.getModel("backgroundStyle");
1155
+ var u = i.getLayout("largeBackgroundPoints");
1156
+ if (u) {
1157
+ var l = new pe({
1158
+ shape: {
1159
+ points: u
1160
+ },
1161
+ incremental: !!t,
1162
+ silent: true,
1163
+ z2: 0
1164
+ });
1165
+ l.baseDimIdx = s;
1166
+ l.largeDataIndices = n;
1167
+ l.barWidth = o;
1168
+ l.useStyle(h.getItemStyle());
1169
+ r.add(l);
1170
+ a && a.push(l);
1171
+ }
1172
+ var d = new pe({
1173
+ shape: {
1174
+ points: i.getLayout("largePoints")
1175
+ },
1176
+ incremental: !!t,
1177
+ ignoreCoarsePointer: true,
1178
+ z2: 1
1179
+ });
1180
+ d.baseDimIdx = s;
1181
+ d.largeDataIndices = n;
1182
+ d.barWidth = o;
1183
+ r.add(d);
1184
+ d.useStyle(i.getVisual("style"));
1185
+ // Enable tooltip and user mouse/touch event handlers.
1186
+ B(d).seriesIndex = e.seriesIndex;
1187
+ if (!e.get("silent")) {
1188
+ d.on("mousedown", ge);
1189
+ d.on("mousemove", ge);
1190
+ }
1191
+ a && a.push(d);
1192
+ }
1193
+
1194
+ // Use throttle to avoid frequently traverse to find dataIndex.
1195
+ var ge = N((function(e) {
1196
+ var r = this;
1197
+ var a = largePathFindDataIndex(r, e.offsetX, e.offsetY);
1198
+ B(r).dataIndex = a >= 0 ? a : null;
1199
+ }), 30, false);
1200
+
1201
+ function largePathFindDataIndex(e, r, a) {
1202
+ var t = e.baseDimIdx;
1203
+ var i = 1 - t;
1204
+ var s = e.shape.points;
1205
+ var n = e.largeDataIndices;
1206
+ var o = [];
1207
+ var h = [];
1208
+ var u = e.barWidth;
1209
+ for (var l = 0, d = s.length / 3; l < d; l++) {
1210
+ var c = l * 3;
1211
+ h[t] = u;
1212
+ h[i] = s[c + 2];
1213
+ o[t] = s[c + t];
1214
+ o[i] = s[c + i];
1215
+ if (h[i] < 0) {
1216
+ o[i] += h[i];
1217
+ h[i] = -h[i];
1218
+ }
1219
+ if (r >= o[0] && r <= o[0] + h[0] && a >= o[1] && a <= o[1] + h[1]) {
1220
+ return n[l];
1221
+ }
1222
+ }
1223
+ return -1;
1224
+ }
1225
+
1226
+ function createBackgroundShape(e, r, a) {
1227
+ if (H(a, "cartesian2d")) {
1228
+ var t = r;
1229
+ var i = a.getArea();
1230
+ return {
1231
+ x: e ? t.x : i.x,
1232
+ y: e ? i.y : t.y,
1233
+ width: e ? t.width : i.width,
1234
+ height: e ? i.height : t.height
1235
+ };
1236
+ } else {
1237
+ var i = a.getArea();
1238
+ var s = r;
1239
+ return {
1240
+ cx: i.cx,
1241
+ cy: i.cy,
1242
+ r0: e ? i.r0 : s.r0,
1243
+ r: e ? i.r : s.r,
1244
+ startAngle: e ? s.startAngle : 0,
1245
+ endAngle: e ? s.endAngle : Math.PI * 2
1246
+ };
1247
+ }
1248
+ }
1249
+
1250
+ function createBackgroundEl(e, r, a) {
1251
+ var t = e.type === "polar" ? L : y;
1252
+ return new t({
1253
+ shape: createBackgroundShape(r, a, e),
1254
+ silent: true,
1255
+ z2: 0
1256
+ });
1257
+ }
1258
+
1259
+ const be = oe;
1260
+
1261
+ function install(e) {
1262
+ e.registerChartView(be);
1263
+ e.registerSeriesModel(re);
1264
+ e.registerLayout(e.PRIORITY.VISUAL.LAYOUT, D(j, "bar"));
1265
+ // Do layout after other overall layout, which can prepare some information.
1266
+ e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, z("bar"));
1267
+ // Down sample after filter
1268
+ e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC, q("bar"));
1269
+ /**
1270
+ * @payload
1271
+ * @property {string} [componentType=series]
1272
+ * @property {number} [dx]
1273
+ * @property {number} [dy]
1274
+ * @property {number} [zoom]
1275
+ * @property {number} [originX]
1276
+ * @property {number} [originY]
1277
+ */ e.registerAction({
1278
+ type: "changeAxisOrder",
1279
+ event: "changeAxisOrder",
1280
+ update: "update"
1281
+ }, (function(e, r) {
1282
+ var a = e.componentType || "series";
1283
+ r.eachComponent({
1284
+ mainType: a,
1285
+ query: e
1286
+ }, (function(r) {
1287
+ if (e.sortInfo) {
1288
+ r.axis.setCategorySortInfo(e.sortInfo);
1289
+ }
1290
+ }));
1291
+ }));
1292
+ }
1293
+
1294
+ const me = "*{box-sizing:border-box}*:active{outline:none}*:focus{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}: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%}";
1295
+
1296
+ const we = me;
1297
+
1298
+ U([ T, install, I, K, Z, G ]);
1299
+
1300
+ const Se = class {
1301
+ constructor(r) {
1302
+ e(this, r);
1303
+ this.alignChartName = undefined;
1304
+ this.chartName = undefined;
1305
+ this.chartSubTitle = undefined;
1306
+ this.color = undefined;
1307
+ this.data = [];
1308
+ this.dataNamesOverflow = undefined;
1309
+ this.dataNamesWidth = undefined;
1310
+ this.format = undefined;
1311
+ this.formatModifier = undefined;
1312
+ this.gridPadding = undefined;
1313
+ this.hideBarLabels = false;
1314
+ this.hideValueAxisLabels = false;
1315
+ this.offsetDataNames = false;
1316
+ this.offsetDataValues = false;
1317
+ this.orientation = undefined;
1318
+ this.showChartName = false;
1319
+ this.sort = false;
1320
+ }
1321
+ // #endregion
1322
+ // #region Component Lifecycle Events
1323
+ disconnectedCallback() {
1324
+ window.removeEventListener("resize", this.resizeEventListener);
1325
+ }
1326
+ componentDidLoad() {
1327
+ const e = O(this.chartContainer);
1328
+ this.chart = e;
1329
+ this.resizeEventListener = () => this.resizeChart();
1330
+ window.addEventListener("resize", this.resizeEventListener);
1331
+ this.cacheComputedStyles();
1332
+ this.updateChart(e);
1333
+ this.setupChartEvents(e);
1334
+ t(this.hostElement);
1335
+ }
1336
+ // #endregion
1337
+ // #region Watchers
1338
+ propsUpdates() {
1339
+ this.updateChart(this.chart);
1340
+ }
1341
+ // #endregion
1342
+ // #region Local Methods
1343
+ cacheComputedStyles() {
1344
+ this.chartContainerStyles = getComputedStyle(this.chartContainer);
1345
+ this.hostElementStyles = getComputedStyle(this.hostElement);
1346
+ }
1347
+ getColor(e) {
1348
+ const r = R("var(--t-primary)", this.chartContainerStyles, this.hostElementStyles);
1349
+ const a = R(this.color, this.chartContainerStyles, this.hostElementStyles);
1350
+ const t = R(e, this.chartContainerStyles, this.hostElementStyles);
1351
+ if (t) return t;
1352
+ if (E(e)) return e;
1353
+ if (a) return a;
1354
+ if (E(this.color)) return this.color;
1355
+ return r;
1356
+ }
1357
+ processData(e) {
1358
+ return e.map((e => ({
1359
+ value: e.value || 0,
1360
+ itemStyle: {
1361
+ color: this.getColor(e.color)
1362
+ }
1363
+ })));
1364
+ }
1365
+ resizeChart() {
1366
+ this.chart.resize();
1367
+ }
1368
+ setupChartEvents(e) {
1369
+ e.on("finished", (() => {
1370
+ var r;
1371
+ const a = e.getDom().querySelector("canvas");
1372
+ if ((r = a === null || a === void 0 ? void 0 : a.hasAttribute("aria-hidden")) !== null && r !== void 0 ? r : false) return;
1373
+ a.setAttribute("aria-hidden", "true");
1374
+ }));
1375
+ }
1376
+ updateChart(e) {
1377
+ var r;
1378
+ const a = ((r = this.formatModifier) === null || r === void 0 ? void 0 : r.includes("dec")) ? this.formatModifier.replace("dec", "") : 0;
1379
+ const t = {
1380
+ type: "value",
1381
+ axisLabel: {
1382
+ formatter: e => W(e, {
1383
+ type: this.format,
1384
+ decimals: a
1385
+ }),
1386
+ rotate: this.offsetDataValues ? 45 : 0,
1387
+ margin: this.offsetDataValues ? 15 : 8,
1388
+ show: !this.hideValueAxisLabels
1389
+ }
1390
+ };
1391
+ const s = {
1392
+ type: "category",
1393
+ data: this.data.map((e => i(e.name) || "")),
1394
+ axisLabel: {
1395
+ rotate: this.offsetDataNames ? 45 : 0,
1396
+ margin: this.offsetDataNames ? 15 : 8,
1397
+ interval: 0,
1398
+ width: this.dataNamesWidth || 50,
1399
+ overflow: this.dataNamesOverflow || "none",
1400
+ truncate: "ellipsis"
1401
+ },
1402
+ axisTick: {
1403
+ alignWithLabel: this.offsetDataNames
1404
+ }
1405
+ };
1406
+ return e.setOption({
1407
+ aria: {
1408
+ enabled: true
1409
+ },
1410
+ title: {
1411
+ text: i(this.chartName),
1412
+ show: this.showChartName,
1413
+ left: this.alignChartName,
1414
+ subtext: this.chartSubTitle
1415
+ },
1416
+ grid: Object.assign({
1417
+ containLabel: true
1418
+ }, this.gridPadding),
1419
+ xAxis: this.orientation === "horizontal" ? t : s,
1420
+ yAxis: this.orientation === "horizontal" ? s : t,
1421
+ series: [ {
1422
+ data: this.processData(this.data),
1423
+ id: "bar",
1424
+ type: "bar",
1425
+ label: {
1426
+ show: !this.hideBarLabels,
1427
+ position: "top",
1428
+ fontWeight: "bold",
1429
+ formatter: e => W(e.value, {
1430
+ type: this.format,
1431
+ decimals: a
1432
+ })
1433
+ },
1434
+ realtimeSort: this.sort
1435
+ } ]
1436
+ });
1437
+ }
1438
+ // #endregion
1439
+ // #region Render Methods
1440
+ render() {
1441
+ return r("div", {
1442
+ key: "b40ff8d49858ebfc55afb86a2a385bbe3c3e6851",
1443
+ class: "container"
1444
+ }, r("div", {
1445
+ key: "dffb3ce8dd7e638842d58d59ef09c34f9904af56",
1446
+ ref: e => this.chartContainer = e,
1447
+ class: "chart-container",
1448
+ role: "img",
1449
+ "test-id": "barChartContainer"
1450
+ }));
1451
+ }
1452
+ get hostElement() {
1453
+ return a(this);
1454
+ }
1455
+ static get watchers() {
1456
+ return {
1457
+ chartName: [ "propsUpdates" ],
1458
+ chartSubTitle: [ "propsUpdates" ],
1459
+ color: [ "propsUpdates" ],
1460
+ hideBarLabels: [ "propsUpdates" ],
1461
+ showChartName: [ "propsUpdates" ],
1462
+ alignChartName: [ "propsUpdates" ],
1463
+ orientation: [ "propsUpdates" ],
1464
+ format: [ "propsUpdates" ],
1465
+ sort: [ "propsUpdates" ],
1466
+ data: [ "propsUpdates" ],
1467
+ offsetDataNames: [ "propsUpdates" ],
1468
+ hideValueAxisLabels: [ "propsUpdates" ],
1469
+ formatModifier: [ "propsUpdates" ],
1470
+ dataNamesOverflow: [ "propsUpdates" ],
1471
+ gridPadding: [ "propsUpdates" ]
1472
+ };
1473
+ }
1474
+ };
1475
+
1476
+ Se.style = we;
1477
+
1478
+ export { Se as q2_chart_bar };
1479
+ //# sourceMappingURL=q2-chart-bar.entry.js.map