q2-tecton-elements 1.72.0 → 1.73.1

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 (392) hide show
  1. package/dist/bundle-report.json +39545 -34361
  2. package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
  3. package/dist/cjs/click-elsewhere_3.cjs.entry.js +81 -14
  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-BY3aao8R.js → index-BqyWHpNu.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
  10. package/dist/cjs/q2-avatar.cjs.entry.js +34 -1
  11. package/dist/cjs/q2-badge_2.cjs.entry.js +3 -3
  12. package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
  13. package/dist/cjs/q2-calendar.cjs.entry.js +9 -4
  14. package/dist/cjs/q2-card-image.cjs.entry.js +3 -3
  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 +2 -2
  22. package/dist/cjs/q2-checkbox_2.cjs.entry.js +8 -5
  23. package/dist/cjs/q2-context.cjs.entry.js +4 -4
  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 +3 -3
  31. package/dist/cjs/q2-editable-field.cjs.entry.js +20 -7
  32. package/dist/cjs/q2-example.cjs.entry.js +1 -1
  33. package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
  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 +20 -2
  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 +2 -2
  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 +12 -6
  49. package/dist/cjs/q2-pill.cjs.entry.js +8 -5
  50. package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
  51. package/dist/cjs/q2-radio.cjs.entry.js +2 -2
  52. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  53. package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
  54. package/dist/cjs/q2-search.cjs.entry.js +3 -3
  55. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  56. package/dist/cjs/q2-select.cjs.entry.js +8 -4
  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 +2 -2
  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 +34 -1
  74. package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +79 -4
  75. package/dist/collection/components/q2-btn/q2-btn.css +84 -136
  76. package/dist/collection/components/q2-btn/q2-btn.js +10 -4
  77. package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +99 -43
  78. package/dist/collection/components/q2-calendar/q2-calendar.js +16 -5
  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 +3 -13
  81. package/dist/collection/components/q2-card-image/q2-card-image.js +2 -2
  82. package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
  83. package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +32 -0
  84. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  85. package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
  86. package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
  87. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
  88. package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
  89. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
  90. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
  91. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
  92. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
  93. package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
  94. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
  95. package/dist/collection/components/q2-context/q2-context.js +3 -3
  96. package/dist/collection/components/q2-context/test/q2-context-test.vr.js +3 -3
  97. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  98. package/dist/collection/components/q2-data-table/q2-data-table.css +3 -0
  99. package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
  100. package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +47 -0
  101. package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
  102. package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
  103. package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
  104. package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
  105. package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
  106. package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
  107. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  108. package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
  109. package/dist/collection/components/q2-editable-field/q2-editable-field.js +27 -8
  110. package/dist/collection/components/q2-example/q2-example.js +1 -1
  111. package/dist/collection/components/q2-file-picker/q2-file-picker.js +1 -1
  112. package/dist/collection/components/q2-form/q2-form.js +1 -1
  113. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  114. package/dist/collection/components/q2-input/formatting/phone-number-formats.js +1 -1
  115. package/dist/collection/components/q2-input/q2-input.js +6 -3
  116. package/dist/collection/components/q2-item/q2-item.js +19 -1
  117. package/dist/collection/components/q2-item/test/q2-item-test.vr.js +2 -2
  118. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  119. package/dist/collection/components/q2-list/q2-list.js +1 -1
  120. package/dist/collection/components/q2-message/q2-message.css +1 -1
  121. package/dist/collection/components/q2-message/q2-message.js +1 -1
  122. package/dist/collection/components/q2-message/test/q2-message-test.vr.js +11 -2
  123. package/dist/collection/components/q2-meter/q2-meter.js +1 -1
  124. package/dist/collection/components/q2-modal/q2-modal.js +1 -1
  125. package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +7 -7
  126. package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
  127. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  128. package/dist/collection/components/q2-option-list/q2-option-list.js +36 -4
  129. package/dist/collection/components/q2-otp/q2-otp.js +4 -4
  130. package/dist/collection/components/q2-pagination/q2-pagination.css +17 -0
  131. package/dist/collection/components/q2-pagination/q2-pagination.js +10 -4
  132. package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +39 -0
  133. package/dist/collection/components/q2-pill/q2-pill.css +14 -10
  134. package/dist/collection/components/q2-pill/q2-pill.js +6 -3
  135. package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +25 -0
  136. package/dist/collection/components/q2-popover/q2-popover.css +1 -0
  137. package/dist/collection/components/q2-popover/q2-popover.js +43 -8
  138. package/dist/collection/components/q2-radio/q2-radio.js +5 -2
  139. package/dist/collection/components/q2-radio-group/q2-radio-group.js +6 -3
  140. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  141. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  142. package/dist/collection/components/q2-search/q2-search.js +6 -3
  143. package/dist/collection/components/q2-section/q2-section.js +2 -2
  144. package/dist/collection/components/q2-select/q2-select.js +12 -5
  145. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  146. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
  147. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  148. package/dist/collection/components/q2-surface/q2-surface.js +1 -1
  149. package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
  150. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  151. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  152. package/dist/collection/components/q2-tag/q2-tag.js +6 -3
  153. package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
  154. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
  155. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  156. package/dist/collection/utils/chart-keyboard.js +76 -0
  157. package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
  158. package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
  159. package/dist/collection/utils/index.js +1 -1
  160. package/dist/components/charting.js +1603 -1532
  161. package/dist/components/dataSample.js +7 -7
  162. package/dist/components/index.js +57 -53
  163. package/dist/components/index2.js +2 -2
  164. package/dist/components/q2-action-sheet.js +224 -103
  165. package/dist/components/q2-avatar2.js +41 -27
  166. package/dist/components/q2-btn2.js +2 -2
  167. package/dist/components/q2-calendar.js +6 -3
  168. package/dist/components/q2-card-image.js +2 -2
  169. package/dist/components/q2-carousel-pane2.js +3 -3
  170. package/dist/components/q2-carousel.js +37 -24
  171. package/dist/components/q2-chart-area.js +415 -369
  172. package/dist/components/q2-chart-bar.js +193 -148
  173. package/dist/components/q2-chart-donut.js +185 -158
  174. package/dist/components/q2-checkbox-group.js +6 -6
  175. package/dist/components/q2-checkbox2.js +11 -11
  176. package/dist/components/q2-context.js +20 -20
  177. package/dist/components/q2-currency.js +9 -9
  178. package/dist/components/q2-data-table.js +111 -111
  179. package/dist/components/q2-date-calendar.d.ts +11 -0
  180. package/dist/components/q2-date-calendar.js +5 -0
  181. package/dist/components/q2-date-calendar2.js +678 -0
  182. package/dist/components/q2-date-picker.d.ts +11 -0
  183. package/dist/components/q2-date-picker.js +5 -0
  184. package/dist/components/q2-date-picker2.js +875 -0
  185. package/dist/components/q2-detail.js +3 -3
  186. package/dist/components/q2-dropdown.js +17 -17
  187. package/dist/components/q2-editable-field.js +16 -5
  188. package/dist/components/q2-example.js +11 -11
  189. package/dist/components/q2-file-picker.js +1 -1
  190. package/dist/components/q2-form.js +6 -6
  191. package/dist/components/q2-formatted-text.js +2 -2
  192. package/dist/components/q2-input2.js +6 -6
  193. package/dist/components/q2-item2.js +32 -22
  194. package/dist/components/q2-legend2.js +7 -7
  195. package/dist/components/q2-list2.js +6 -6
  196. package/dist/components/q2-message2.js +10 -10
  197. package/dist/components/q2-meter.js +7 -7
  198. package/dist/components/q2-modal.js +22 -22
  199. package/dist/components/q2-month-picker.js +17 -17
  200. package/dist/components/q2-mutation-observer.js +1 -1
  201. package/dist/components/q2-optgroup2.js +7 -7
  202. package/dist/components/q2-option-list2.js +55 -34
  203. package/dist/components/q2-otp.js +8 -8
  204. package/dist/components/q2-pagination.js +70 -68
  205. package/dist/components/q2-pill.js +51 -46
  206. package/dist/components/q2-popover2.js +70 -49
  207. package/dist/components/q2-radio-group.js +7 -7
  208. package/dist/components/q2-radio.js +6 -6
  209. package/dist/components/q2-relative-time.js +1 -1
  210. package/dist/components/q2-resize-observer2.js +1 -1
  211. package/dist/components/q2-search.js +5 -5
  212. package/dist/components/q2-section.js +17 -17
  213. package/dist/components/q2-select2.js +2 -2
  214. package/dist/components/q2-stepper-pane.js +29 -29
  215. package/dist/components/q2-stepper-vertical.js +4 -4
  216. package/dist/components/q2-stepper.js +57 -57
  217. package/dist/components/q2-surface.js +3 -3
  218. package/dist/components/q2-tab-container.js +21 -21
  219. package/dist/components/q2-tab-pane.js +6 -6
  220. package/dist/components/q2-tag2.js +8 -6
  221. package/dist/components/q2-textarea.js +3 -3
  222. package/dist/components/sectorHelper.js +78 -78
  223. package/dist/components/tecton-tab-pane.js +10 -10
  224. package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
  225. package/dist/esm/click-elsewhere_3.entry.js +81 -14
  226. package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
  227. package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
  228. package/dist/esm/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
  229. package/dist/esm/loader.js +1 -1
  230. package/dist/esm/q2-action-group.entry.js +1 -1
  231. package/dist/esm/q2-action-sheet.entry.js +99 -19
  232. package/dist/esm/q2-avatar.entry.js +34 -1
  233. package/dist/esm/q2-badge_2.entry.js +3 -3
  234. package/dist/esm/q2-btn_2.entry.js +2 -2
  235. package/dist/esm/q2-calendar.entry.js +9 -4
  236. package/dist/esm/q2-card-image.entry.js +3 -3
  237. package/dist/esm/q2-card.entry.js +1 -1
  238. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  239. package/dist/esm/q2-carousel.entry.js +20 -6
  240. package/dist/esm/q2-chart-area.entry.js +38 -7
  241. package/dist/esm/q2-chart-bar.entry.js +39 -8
  242. package/dist/esm/q2-chart-donut.entry.js +31 -13
  243. package/dist/esm/q2-checkbox-group.entry.js +2 -2
  244. package/dist/esm/q2-checkbox_2.entry.js +8 -5
  245. package/dist/esm/q2-context.entry.js +4 -4
  246. package/dist/esm/q2-currency.entry.js +1 -1
  247. package/dist/esm/q2-data-table.entry.js +7 -7
  248. package/dist/esm/q2-date-calendar.entry.js +450 -0
  249. package/dist/esm/q2-date-picker_2.entry.js +965 -0
  250. package/dist/esm/q2-detail.entry.js +2 -2
  251. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  252. package/dist/esm/q2-dropdown.entry.js +3 -3
  253. package/dist/esm/q2-editable-field.entry.js +20 -7
  254. package/dist/esm/q2-example.entry.js +1 -1
  255. package/dist/esm/q2-file-picker.entry.js +2 -2
  256. package/dist/esm/q2-form.entry.js +1 -1
  257. package/dist/esm/q2-formatted-text.entry.js +1 -1
  258. package/dist/esm/q2-icon.entry.js +1 -1
  259. package/dist/esm/q2-item.entry.js +20 -2
  260. package/dist/esm/q2-legend.entry.js +1 -1
  261. package/dist/esm/q2-link_2.entry.js +2 -2
  262. package/dist/esm/q2-loc.entry.js +1 -1
  263. package/dist/esm/q2-message.entry.js +3 -3
  264. package/dist/esm/q2-meter.entry.js +2 -2
  265. package/dist/esm/q2-modal.entry.js +2 -2
  266. package/dist/esm/q2-month-picker.entry.js +3 -3
  267. package/dist/esm/q2-mutation-observer.entry.js +1 -1
  268. package/dist/esm/q2-option.entry.js +1 -1
  269. package/dist/esm/q2-otp.entry.js +5 -5
  270. package/dist/esm/q2-pagination.entry.js +12 -6
  271. package/dist/esm/q2-pill.entry.js +8 -5
  272. package/dist/esm/q2-radio-group.entry.js +2 -2
  273. package/dist/esm/q2-radio.entry.js +2 -2
  274. package/dist/esm/q2-relative-time.entry.js +2 -2
  275. package/dist/esm/q2-resize-observer.entry.js +1 -1
  276. package/dist/esm/q2-search.entry.js +3 -3
  277. package/dist/esm/q2-section.entry.js +3 -3
  278. package/dist/esm/q2-select.entry.js +8 -4
  279. package/dist/esm/q2-stepper-pane.entry.js +2 -2
  280. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  281. package/dist/esm/q2-stepper.entry.js +2 -2
  282. package/dist/esm/q2-surface.entry.js +1 -1
  283. package/dist/esm/q2-tab-container.entry.js +2 -2
  284. package/dist/esm/q2-tab-pane.entry.js +1 -1
  285. package/dist/esm/q2-tecton-elements.js +1 -1
  286. package/dist/esm/q2-textarea.entry.js +2 -2
  287. package/dist/esm/q2-toast.entry.js +1 -1
  288. package/dist/esm/q2-tooltip.entry.js +1 -1
  289. package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
  290. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  291. package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
  292. package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +85 -43
  293. package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
  294. package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
  295. package/dist/q2-tecton-elements/{index-DJw6Feh0.js → index-CP8pXJ-l.js} +1 -1
  296. package/dist/q2-tecton-elements/q2-action-group.entry.js +1 -1
  297. package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
  298. package/dist/q2-tecton-elements/q2-avatar.entry.js +24 -10
  299. package/dist/q2-tecton-elements/q2-badge_2.entry.js +6 -6
  300. package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
  301. package/dist/q2-tecton-elements/q2-calendar.entry.js +7 -4
  302. package/dist/q2-tecton-elements/q2-card-image.entry.js +3 -3
  303. package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
  304. package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
  305. package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
  306. package/dist/q2-tecton-elements/q2-chart-area.entry.js +187 -141
  307. package/dist/q2-tecton-elements/q2-chart-bar.entry.js +377 -333
  308. package/dist/q2-tecton-elements/q2-chart-donut.entry.js +184 -158
  309. package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +7 -7
  310. package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +20 -18
  311. package/dist/q2-tecton-elements/q2-context.entry.js +21 -21
  312. package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
  313. package/dist/q2-tecton-elements/q2-data-table.entry.js +7 -7
  314. package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
  315. package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
  316. package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
  317. package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
  318. package/dist/q2-tecton-elements/q2-dropdown.entry.js +16 -16
  319. package/dist/q2-tecton-elements/q2-editable-field.entry.js +17 -6
  320. package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
  321. package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
  322. package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
  323. package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
  324. package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
  325. package/dist/q2-tecton-elements/q2-item.entry.js +26 -16
  326. package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
  327. package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
  328. package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
  329. package/dist/q2-tecton-elements/q2-message.entry.js +29 -29
  330. package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
  331. package/dist/q2-tecton-elements/q2-modal.entry.js +18 -18
  332. package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
  333. package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
  334. package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
  335. package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
  336. package/dist/q2-tecton-elements/q2-pagination.entry.js +51 -49
  337. package/dist/q2-tecton-elements/q2-pill.entry.js +22 -17
  338. package/dist/q2-tecton-elements/q2-radio-group.entry.js +8 -8
  339. package/dist/q2-tecton-elements/q2-radio.entry.js +7 -7
  340. package/dist/q2-tecton-elements/q2-relative-time.entry.js +6 -6
  341. package/dist/q2-tecton-elements/q2-resize-observer.entry.js +13 -13
  342. package/dist/q2-tecton-elements/q2-search.entry.js +31 -31
  343. package/dist/q2-tecton-elements/q2-section.entry.js +20 -20
  344. package/dist/q2-tecton-elements/q2-select.entry.js +3 -3
  345. package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +10 -10
  346. package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
  347. package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
  348. package/dist/q2-tecton-elements/q2-surface.entry.js +15 -15
  349. package/dist/q2-tecton-elements/q2-tab-container.entry.js +20 -20
  350. package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
  351. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  352. package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
  353. package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
  354. package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
  355. package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
  356. package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
  357. package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
  358. package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
  359. package/dist/types/components/q2-avatar/q2-avatar.d.ts +5 -0
  360. package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
  361. package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
  362. package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
  363. package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
  364. package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
  365. package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
  366. package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
  367. package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
  368. package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
  369. package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
  370. package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
  371. package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
  372. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
  373. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +14 -1
  374. package/dist/types/components/q2-input/q2-input.d.ts +4 -2
  375. package/dist/types/components/q2-item/q2-item.d.ts +3 -0
  376. package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
  377. package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
  378. package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
  379. package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +4 -2
  380. package/dist/types/components/q2-search/q2-search.d.ts +3 -1
  381. package/dist/types/components/q2-select/q2-select.d.ts +4 -2
  382. package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
  383. package/dist/types/components.d.ts +858 -49
  384. package/dist/types/global.d.ts +1 -0
  385. package/dist/types/index.d.ts +1 -0
  386. package/dist/types/utils/chart-keyboard.d.ts +16 -0
  387. package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
  388. package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
  389. package/package.json +3 -3
  390. package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
  391. package/dist/esm/q2-optgroup.entry.js +0 -68
  392. package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
@@ -0,0 +1,438 @@
1
+ import { r as a, c as t, h as e, g as r } from "./index-Cqkz7Bnm.js";
2
+
3
+ import { d as i } from "./index-O1A-ZSZs.js";
4
+
5
+ import { l as n } from "./index-CP8pXJ-l.js";
6
+
7
+ import { g as d, a as s, p as o, f as c, n as l, l as h, b as p, i as v, c as g, s as f, d as b } from "./date-picker-helpers-D8QnN_AS.js";
8
+
9
+ const u = class {
10
+ constructor(e) {
11
+ a(this, e), this.tctCalendarCancel = t(this, "tctCalendarCancel", 1), this.tctCalendarCommit = t(this, "tctCalendarCommit", 1),
12
+ this.tctCalendarDismiss = t(this, "tctCalendarDismiss", 1), this.tctCalendarError = t(this, "tctCalendarError", 1),
13
+ this.tctChange = t(this, "tctChange", 1),
14
+ // #region Own Properties
15
+ this.dayAbbrStrings = d(), this.dayStrings = s(), this.rangeError = "",
16
+ /** Uses the action-sheet calendar presentation. */
17
+ this.actionSheet = !1,
18
+ /** Controls whether navigation appears above or below the date grid. */
19
+ this.direction = "down",
20
+ /** Disables calendar interaction. */
21
+ this.disabled = !1,
22
+ /** Formats calendar and range labels using the provided locale. */
23
+ this.locale = document.documentElement.lang || "en-US",
24
+ /** Selects single-date or range calendar behavior. */
25
+ this.mode = "single",
26
+ /** Indicates that a new calendar session has opened. */
27
+ this.open = !1,
28
+ /** Prevents calendar selection while retaining calendar visibility. */
29
+ this.readonly = !1, this.onDateHover = a => {
30
+ const t = a.currentTarget;
31
+ if (t.disabled || !this.isRangeMode || !this.rangeDraftStart || this.rangeDraftEnd) return;
32
+ const e = o(t.dataset.date);
33
+ this.rangeHoverDate = i.isValid(e) && this.isDateValid(e) ? e : void 0;
34
+ }, this.onDateHoverEnd = () => {
35
+ this.rangeHoverDate = void 0;
36
+ }, this.onDateKeydown = a => {
37
+ const t = a.target.closest("button[data-date]");
38
+ if (!t) return;
39
+ const e = o(t.dataset.date);
40
+ let r, n;
41
+ switch (a.key) {
42
+ case "Escape":
43
+ return a.preventDefault(), this.resetRangeDraft(), void this.tctCalendarDismiss.emit();
44
+
45
+ case "ArrowUp":
46
+ r = i.addDays(e, -7), n = -1;
47
+ break;
48
+
49
+ case "ArrowDown":
50
+ r = i.addDays(e, 7), n = 1;
51
+ break;
52
+
53
+ case "ArrowLeft":
54
+ r = i.addDays(e, -1), n = -1;
55
+ break;
56
+
57
+ case "ArrowRight":
58
+ r = i.addDays(e, 1), n = 1;
59
+ break;
60
+
61
+ case "Home":
62
+ r = i.addDays(e, -e.getDay()), n = 1;
63
+ break;
64
+
65
+ case "End":
66
+ r = i.addDays(e, 6 - e.getDay()), n = -1;
67
+ break;
68
+
69
+ case "PageUp":
70
+ r = new Date(e.getFullYear() - (a.shiftKey ? 1 : 0), e.getMonth() - (a.shiftKey ? 0 : 1), e.getDate()),
71
+ n = -1;
72
+ break;
73
+
74
+ case "PageDown":
75
+ r = new Date(e.getFullYear() + (a.shiftKey ? 1 : 0), e.getMonth() + (a.shiftKey ? 0 : 1), e.getDate()),
76
+ n = 1;
77
+ break;
78
+
79
+ default:
80
+ return;
81
+ }
82
+ a.preventDefault();
83
+ const d = this.findValidNavigationDate(r, n);
84
+ d && this.activateDate(d);
85
+ }, this.onDateSelection = a => {
86
+ const t = a.target.closest("button[data-date]");
87
+ !t || t.disabled || this.disabled || this.readonly || this.selectDate(o(t.dataset.date));
88
+ }, this.onRangeCancel = () => {
89
+ this.resetRangeDraft(), this.tctCalendarCancel.emit();
90
+ }, this.onRangeCommit = () => {
91
+ !this.disabled && !this.readonly && this.rangeDraftStart && this.rangeDraftEnd && (this.isRangeValid(this.rangeDraftStart, this.rangeDraftEnd) ? (this.setRangeError(""),
92
+ this.emitCommit({
93
+ rangeStart: c(this.rangeDraftStart),
94
+ rangeEnd: c(this.rangeDraftEnd)
95
+ })) : this.setRangeError(this.rangeValidationError));
96
+ };
97
+ }
98
+ // #endregion
99
+ // #region Component Lifecycle Events
100
+ connectedCallback() {
101
+ this.resetCalendarSession();
102
+ }
103
+ // #endregion
104
+ // #region Listeners
105
+ focusHandler(a) {
106
+ var t;
107
+ a.target === a.currentTarget && this.focusDate((null === (t = a.detail) || void 0 === t ? void 0 : t.value) || this.rovingDate);
108
+ }
109
+ // #endregion
110
+ // #region Public Methods API
111
+ /** Moves the visible month to the provided date and focuses that day. */
112
+ async focusDate(a) {
113
+ const t = "string" == typeof a ? o(a) : a;
114
+ i.isValid(t) && (this.activeDate = t, this.goToMonthYear(t.getMonth(), t.getFullYear()),
115
+ requestAnimationFrame((() => this.focusRenderedDate(t))));
116
+ }
117
+ /** Selects the provided date when it satisfies the calendar constraints. */ async setValue(a) {
118
+ const t = "string" == typeof a ? o(a) : a;
119
+ i.isValid(t) && this.isDateValid(t) && this.selectDate(t);
120
+ }
121
+ // #endregion
122
+ // #region Watchers
123
+ constraintsChanged() {
124
+ this.setRangeError("");
125
+ }
126
+ modeChanged() {
127
+ this.resetCalendarSession();
128
+ }
129
+ openChanged(a) {
130
+ a && this.resetCalendarSession();
131
+ }
132
+ rangeChanged() {
133
+ this.isRangeMode && this.resetCalendarSession();
134
+ }
135
+ valueChanged() {
136
+ this.isRangeMode || this.resetCalendarSession();
137
+ }
138
+ // #endregion
139
+ // #region Local Methods
140
+ get constraints() {
141
+ return {
142
+ cutoffTime: this.cutoffTime,
143
+ daysOfWeekChecksum: this.daysOfWeekChecksum,
144
+ endDate: this.endDate,
145
+ invalidDates: this.invalidDates,
146
+ startDate: this.startDate,
147
+ validDates: this.validDates
148
+ };
149
+ }
150
+ get currentWeeks() {
151
+ return this.dateList.reduce(((a, t, e) => {
152
+ const r = Math.floor(e / 7);
153
+ return a[r] || (a[r] = []), a[r].push(t), a;
154
+ }), []);
155
+ }
156
+ get dateList() {
157
+ const {monthIndex: a, selectedYear: t} = this.selectedMonthYear, e = new Date(t, a, 1), r = new Date(t, a + 1, 0).getDate(), n = 7 * Math.ceil((e.getDay() + r) / 7), d = this.actionSheet ? 42 : n, s = new Date(t, a, 1 - e.getDay());
158
+ return Array.from({
159
+ length: d
160
+ }, ((t, e) => {
161
+ const r = i.addDays(s, e), n = r.getMonth() !== a, d = this.rangeDraftStart, o = this.rangeDraftEnd || this.rangeHoverDate, c = d && o && d.getTime() > o.getTime() ? o : d, l = d && o && d.getTime() > o.getTime() ? d : o, h = this.isRangeMode && !!c && i.isSameDay(r, c), p = this.isRangeMode && !!l && i.isSameDay(r, l), v = this.isRangeMode ? h || p : !!this.selectedDate && i.isSameDay(r, this.selectedDate), g = this.isRangeMode && !!c && !!l && r.getTime() > c.getTime() && r.getTime() < l.getTime(), f = i.isSameDay(r, new Date), b = this.isDateValid(r), u = [ "cal-day" ];
162
+ return n && u.push("is-outside"), g && u.push("in-range"), v && u.push("is-selected"),
163
+ h && u.push("range-start"), (p || h && !l) && u.push("range-end"), f && u.push("is-today"),
164
+ b || u.push("is-disabled"), {
165
+ classList: u.join(" "),
166
+ date: r,
167
+ isOutside: n,
168
+ isSelected: v,
169
+ isToday: f,
170
+ isValid: b
171
+ };
172
+ }));
173
+ }
174
+ get isRangeMode() {
175
+ return "range" === this.mode || "range-typeable" === this.mode;
176
+ }
177
+ get normalizedDisplayFormat() {
178
+ return l(this.displayFormat);
179
+ }
180
+ get rangeConfirmDisabled() {
181
+ return !this.rangeDraftStart || !this.rangeDraftEnd;
182
+ }
183
+ get rangeEndDate() {
184
+ const a = o(this.rangeEnd);
185
+ return i.isValid(a) ? a : void 0;
186
+ }
187
+ get rangeSummary() {
188
+ return this.rangeDraftStart && this.rangeDraftEnd ? `${this.formatRangeDate(this.rangeDraftStart)} – ${this.formatRangeDate(this.rangeDraftEnd)}` : this.rangeDraftStart ? `${this.formatRangeDate(this.rangeDraftStart)} – ${h("tecton.element.datePicker.range.selectEnd")}` : h("tecton.element.datePicker.range.selectStart");
189
+ }
190
+ get rangeValidationError() {
191
+ return h("tecton.element.datePicker.validation.rangeUnavailable");
192
+ }
193
+ get rovingDate() {
194
+ const {monthIndex: a, selectedYear: t} = this.selectedMonthYear, e = [ this.activeDate, this.isRangeMode ? this.rangeDraftStart : this.selectedDate ];
195
+ for (const r of e) if ((null == r ? void 0 : r.getMonth()) === a && (null == r ? void 0 : r.getFullYear()) === t) return r;
196
+ const r = new Date;
197
+ return r.getMonth() === a && r.getFullYear() === t ? r : new Date(t, a, 1);
198
+ }
199
+ get selectedDate() {
200
+ const a = o(this.isRangeMode ? this.rangeStart : this.value);
201
+ return i.isValid(a) ? a : void 0;
202
+ }
203
+ get title() {
204
+ const {monthIndex: a, selectedYear: t} = this.selectedMonthYear;
205
+ return new Intl.DateTimeFormat(this.locale, {
206
+ month: "long",
207
+ year: "numeric"
208
+ }).format(new Date(t, a, 1));
209
+ }
210
+ activateDate(a) {
211
+ this.activeDate = a, this.goToMonthYear(a.getMonth(), a.getFullYear()), requestAnimationFrame((() => this.focusRenderedDate(a)));
212
+ }
213
+ emitCommit(a) {
214
+ this.tctCalendarCommit.emit(a), this.tctChange.emit(a);
215
+ }
216
+ findValidNavigationDate(a, t) {
217
+ let e = a;
218
+ for (let a = 0; a < 366; a++) {
219
+ if (this.isDateValid(e)) return e;
220
+ e = i.addDays(e, t);
221
+ }
222
+ }
223
+ focusRenderedDate(a) {
224
+ var t, e, r;
225
+ null === (r = null === (e = null === (t = this.hostElement) || void 0 === t ? void 0 : t.shadowRoot) || void 0 === e ? void 0 : e.querySelector(`button[data-date="${c(a)}"]`)) || void 0 === r || r.focus();
226
+ }
227
+ formatRangeDate(a) {
228
+ return this.displayFormat ? p(a, this.normalizedDisplayFormat) : new Intl.DateTimeFormat(this.locale, {
229
+ year: "numeric",
230
+ month: "2-digit",
231
+ day: "2-digit"
232
+ }).format(a);
233
+ }
234
+ goToMonthYear(a, t) {
235
+ const e = new Date(t, a, 1);
236
+ this.selectedMonthYear = {
237
+ monthIndex: e.getMonth(),
238
+ selectedYear: e.getFullYear()
239
+ };
240
+ }
241
+ isDateValid(a) {
242
+ return v(a, this.constraints);
243
+ }
244
+ isRangeValid(a, t) {
245
+ return g(a, t, this.constraints);
246
+ }
247
+ onNavigate(a) {
248
+ const {monthIndex: t, selectedYear: e} = this.selectedMonthYear, r = {
249
+ previousYear: [ t, e - 1 ],
250
+ previousMonth: [ t - 1, e ],
251
+ nextMonth: [ t + 1, e ],
252
+ nextYear: [ t, e + 1 ]
253
+ };
254
+ this.goToMonthYear(...r[a]);
255
+ }
256
+ resetCalendarSession() {
257
+ const a = this.selectedDate;
258
+ this.activeDate = a, this.selectedMonthYear = f(a), this.resetRangeDraft();
259
+ }
260
+ resetRangeDraft() {
261
+ if (this.setRangeError(""), this.rangeHoverDate = void 0, !this.selectedDate || !this.rangeEndDate) return this.rangeDraftStart = void 0,
262
+ void (this.rangeDraftEnd = void 0);
263
+ [this.rangeDraftStart, this.rangeDraftEnd] = [ this.selectedDate, this.rangeEndDate ].sort(((a, t) => a.getTime() - t.getTime()));
264
+ }
265
+ selectDate(a) {
266
+ if (this.isDateValid(a)) {
267
+ if (this.activeDate = a, this.isRangeMode) return this.setRangeError(""), !this.rangeDraftStart || this.rangeDraftEnd ? (this.rangeDraftStart = a,
268
+ this.rangeDraftEnd = void 0) : a.getTime() < this.rangeDraftStart.getTime() ? (this.rangeDraftEnd = this.rangeDraftStart,
269
+ this.rangeDraftStart = a) : this.rangeDraftEnd = a, this.rangeHoverDate = void 0,
270
+ this.goToMonthYear(a.getMonth(), a.getFullYear()), void requestAnimationFrame((() => this.focusRenderedDate(a)));
271
+ this.goToMonthYear(a.getMonth(), a.getFullYear()), this.emitCommit({
272
+ value: c(a)
273
+ });
274
+ }
275
+ }
276
+ setRangeError(a) {
277
+ this.rangeError !== a && (this.rangeError = a, this.tctCalendarError.emit(a));
278
+ }
279
+ // #endregion
280
+ // #region Render Methods
281
+ renderNavigation() {
282
+ return [ e("div", {
283
+ class: "cal-nav-controls cal-nav-controls-left"
284
+ }, this.renderNavigationButton("previousYear"), this.renderNavigationButton("previousMonth")), e("div", {
285
+ class: "cal-nav-title",
286
+ id: "date-picker-label",
287
+ "aria-live": "polite"
288
+ }, this.title), e("div", {
289
+ class: "cal-nav-controls cal-nav-controls-right"
290
+ }, this.renderNavigationButton("nextMonth"), this.renderNavigationButton("nextYear")) ];
291
+ }
292
+ renderNavigationButton(a) {
293
+ const t = "previousYear" === a || "nextYear" === a, r = "previousYear" === a || "previousMonth" === a;
294
+ return e("q2-btn", {
295
+ class: `cal-nav-btn ${a}`,
296
+ "hide-label": !0,
297
+ label: n(`tecton.element.calendar.${a}`),
298
+ onTctClick: () => this.onNavigate(a),
299
+ "test-id": `${a}Button`
300
+ }, e("q2-icon", {
301
+ type: `chevron-${t ? "double-" : ""}${r ? "left" : "right"}`
302
+ }));
303
+ }
304
+ render() {
305
+ const a = !this.actionSheet && "up" === this.direction, t = this.rovingDate, r = this.rangeValidationError;
306
+ return e("div", {
307
+ key: "84c278bd6817625fcf5f70528000edcc84d116a6",
308
+ class: `cal-panel direction-${a ? "up" : "down"}${this.actionSheet ? " is-action-sheet" : ""}`,
309
+ role: this.actionSheet ? void 0 : "dialog",
310
+ "aria-label": this.actionSheet ? void 0 : h(this.accessibleLabel || this.calendarLabel || "Choose a date")
311
+ }, this.calendarLabel && !this.actionSheet && e("p", {
312
+ key: "9a466d3509ed7ce45949039cfa11ce8485c4e278",
313
+ class: "calendar-label"
314
+ }, h(this.calendarLabel)), !a && e("div", {
315
+ key: "a8c6ef4c4098c81bb79cd2ca450f38c56c99c51d",
316
+ class: "cal-nav"
317
+ }, this.renderNavigation()), e("div", {
318
+ key: "45e7f43ee502ea2c19049112860b3690313f53d5",
319
+ class: "cal-grid",
320
+ role: "grid",
321
+ "aria-labelledby": "date-picker-label"
322
+ }, e("div", {
323
+ key: "2a1a4caebfb72b601b9dd282550b519a3f610329",
324
+ role: "rowgroup"
325
+ }, e("div", {
326
+ key: "6187b5b5b7391e389a4af9403a2b8c63f9606e35",
327
+ class: "cal-row cal-weekdays",
328
+ role: "row"
329
+ }, this.dayAbbrStrings.map(((a, t) => e("div", {
330
+ class: "cal-dow",
331
+ role: "columnheader",
332
+ "aria-label": this.dayStrings[t]
333
+ }, a))))), e("div", {
334
+ key: "f2c274adc93798dd8c20762a09fcc95bcb77992f",
335
+ class: "cal-days",
336
+ role: "rowgroup",
337
+ onClick: this.onDateSelection,
338
+ onKeyDown: this.onDateKeydown,
339
+ onMouseLeave: this.onDateHoverEnd
340
+ }, this.currentWeeks.map((a => e("div", {
341
+ class: "cal-row",
342
+ role: "row"
343
+ }, a.map((a => e("div", {
344
+ role: "gridcell",
345
+ "aria-selected": `${a.isSelected}`
346
+ }, e("button", {
347
+ type: "button",
348
+ class: a.classList,
349
+ "data-date": c(a.date),
350
+ disabled: !a.isValid,
351
+ tabindex: i.isSameDay(a.date, t) ? 0 : -1,
352
+ "aria-disabled": a.isValid ? void 0 : "true",
353
+ "aria-current": a.isToday ? "date" : void 0,
354
+ "aria-label": b(a.date),
355
+ onMouseEnter: this.onDateHover
356
+ }, a.date.getDate()))))))))), a && e("div", {
357
+ key: "14a8abe8669e403c4745eaf256783f37caf7fc43",
358
+ class: "cal-nav"
359
+ }, this.renderNavigation()), this.disclaimer && e("div", {
360
+ key: "f3ab74f66fca52d2499f52d20fdfd8a86cc154bc",
361
+ class: "calendar-disclaimer"
362
+ }, h(this.disclaimer)), this.isRangeMode && e("div", {
363
+ key: "276c870f99275bb582b250ed1a3632f5e95c17c3",
364
+ class: "cal-footer"
365
+ }, e("div", {
366
+ key: "1d753811c31360780fae551cb49c190561e292ed",
367
+ class: "cal-footer-summary"
368
+ }, e("q2-message", {
369
+ key: "9db690009d1efa45b4e852e16a5b47ab0262c751",
370
+ class: "is-placeholder",
371
+ appearance: "minimal",
372
+ type: "error",
373
+ "aria-hidden": "true"
374
+ }, r), e("span", {
375
+ key: "c1b41f3faf70207aa8dc65c8812dc91737cfe590"
376
+ }, this.rangeSummary)), e("div", {
377
+ key: "6af2f2741335e07737e61936cd480e90eb38918b",
378
+ class: "cal-footer-actions"
379
+ }, e("q2-btn", {
380
+ key: "62e02cab1e110559304475a1d0c29d1fc65f1d93",
381
+ intent: "workflow-escape",
382
+ size: "small",
383
+ label: h("tecton.element.datePicker.action.cancel"),
384
+ onTctClick: this.onRangeCancel
385
+ }), e("q2-btn", {
386
+ key: "14f1286e80e92b42168e3e6abe9718d40b4ded59",
387
+ intent: "workflow-primary",
388
+ size: "small",
389
+ label: h("tecton.element.datePicker.action.confirm"),
390
+ disabled: this.rangeConfirmDisabled,
391
+ onTctClick: this.onRangeCommit
392
+ }))));
393
+ }
394
+ get hostElement() {
395
+ return r(this);
396
+ }
397
+ static get watchers() {
398
+ return {
399
+ cutoffTime: [ {
400
+ constraintsChanged: 0
401
+ } ],
402
+ daysOfWeekChecksum: [ {
403
+ constraintsChanged: 0
404
+ } ],
405
+ endDate: [ {
406
+ constraintsChanged: 0
407
+ } ],
408
+ invalidDates: [ {
409
+ constraintsChanged: 0
410
+ } ],
411
+ startDate: [ {
412
+ constraintsChanged: 0
413
+ } ],
414
+ validDates: [ {
415
+ constraintsChanged: 0
416
+ } ],
417
+ mode: [ {
418
+ modeChanged: 0
419
+ } ],
420
+ open: [ {
421
+ openChanged: 0
422
+ } ],
423
+ rangeEnd: [ {
424
+ rangeChanged: 0
425
+ } ],
426
+ rangeStart: [ {
427
+ rangeChanged: 0
428
+ } ],
429
+ value: [ {
430
+ valueChanged: 0
431
+ } ]
432
+ };
433
+ }
434
+ };
435
+
436
+ u.style = '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{box-sizing:border-box;display:block}:host[hidden]{display:none}.cal-panel{box-sizing:border-box;width:var(--comp-date-calendar-width, var(--tct-date-calendar-width, 360px));min-width:0;padding:var(--tct-date-calendar-padding, var(--app-scale-4x, 20px));border-radius:var(--tct-date-calendar-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-date-calendar-background, var(--t-base, #ffffff));box-shadow:var(--tct-date-calendar-box-shadow, var(--app-shadow-3))}.cal-panel.is-action-sheet{width:100%;padding:0;border-radius:0;background:transparent;box-shadow:none}.calendar-label{margin:0 0 var(--tct-date-calendar-label-margin-bottom, var(--tct-scale-2, var(--app-scale-2x, 10px)));color:var(--tct-date-calendar-label-font-color, var(--tct-text, var(--t-text, #4d4d4d)));font-size:var(--tct-date-calendar-label-font-size, var(--tct-font-size, var(--app-font-size, var(--const-px-14, 14px))));font-weight:var(--tct-date-calendar-label-font-weight, var(--tct-font-weight-semibold, 600))}.cal-nav{display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);align-items:center;margin-bottom:var(--tct-date-calendar-navigation-margin-bottom, var(--app-scale-3x, 15px))}.cal-nav-controls{display:flex;gap:var(--tct-date-calendar-navigation-gap, 2px)}.cal-nav-controls-left{justify-self:start}.cal-nav-controls-right{justify-self:end}.cal-panel.direction-up .cal-nav{margin-top:var(--tct-date-calendar-navigation-margin-top, var(--app-scale-3x, 15px));margin-bottom:0}.cal-nav-btn{width:var(--tct-date-calendar-navigation-button-width, 40px);height:var(--tct-date-calendar-navigation-button-height, 40px);margin:0;--tct-btn-icon-width:var(--tct-date-calendar-navigation-button-width, 40px);--tct-btn-icon-height:var(--tct-date-calendar-navigation-button-height, 40px);--tct-btn-icon-size:var(--tct-date-calendar-navigation-icon-size, 22px);--tct-btn-icon-border-radius:var(--tct-date-calendar-navigation-button-border-radius, var(--app-border-radius-1, 4px))}.cal-nav-btn q2-icon{width:var(--tct-date-calendar-navigation-icon-size, 22px);min-width:var(--tct-date-calendar-navigation-icon-size, 22px);height:var(--tct-date-calendar-navigation-icon-size, 22px)}.cal-nav-title{overflow:hidden;color:var(--tct-date-calendar-month-font-color, var(--tct-text, var(--t-text, #4d4d4d)));font-size:var(--tct-date-calendar-month-font-size, var(--const-px-15, 15px));font-weight:var(--tct-date-calendar-month-font-weight, 700);text-align:center;text-overflow:ellipsis;white-space:nowrap}.cal-row{display:grid;grid-template-columns:repeat(7, 44px);gap:var(--tct-date-calendar-grid-gap, 2px);justify-content:center}.cal-days{display:flex;flex-direction:column;gap:var(--tct-date-calendar-grid-gap, 2px)}.cal-dow{padding:var(--tct-date-calendar-weekday-padding, 6px 0 10px);color:var(--tct-date-calendar-day-heading-font-color, var(--tct-gray-8, var(--t-gray-8, #747474)));font-size:var(--tct-date-calendar-day-heading-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-date-calendar-day-heading-font-weight, 600);text-align:center}[role=gridcell]{min-width:0}.cal-day{box-sizing:border-box;display:flex;width:100%;height:var(--tct-date-calendar-day-height, 44px);padding:0;align-items:center;justify-content:center;border:0;border-radius:var(--tct-date-calendar-day-border-radius, var(--app-border-radius-2, 8px));background:transparent;color:var(--tct-date-calendar-day-font-color, var(--t-gray-1, #0d0d0d));cursor:pointer;font:inherit;font-size:var(--tct-date-calendar-day-font-size, var(--app-font-size, var(--const-px-14, 14px)))}.cal-day:hover:not(:disabled):not(.is-selected){background:var(--tct-date-calendar-day-hover-background, var(--t-gray-14, #f2f2f2))}.cal-day:focus-visible{background:var(--tct-date-calendar-background, var(--t-base, #ffffff));outline:0;box-shadow:var(--tct-date-calendar-day-focus-ring, var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc))}.cal-day.is-outside{color:var(--tct-date-calendar-day-outside-font-color, var(--t-gray-8, #747474))}.cal-day:disabled{color:var(--tct-date-calendar-day-disabled-font-color, var(--t-gray-11, #cccccc));cursor:not-allowed}.cal-day.is-today{color:var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e));font-weight:var(--tct-date-calendar-today-font-weight, 600);box-shadow:inset 0 0 0 2px var(--tct-date-calendar-today-color, var(--t-primary, #6a4a9e))}.cal-day.is-selected{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px));background:var(--tct-date-calendar-day-selected-background, var(--t-primary, #6a4a9e));color:var(--tct-date-calendar-day-selected-font-color, var(--t-primary-text, #ffffff));font-weight:var(--tct-date-calendar-day-selected-font-weight, 700);box-shadow:none}.cal-day.in-range{border-radius:0;background:var(--tct-date-calendar-range-background, var(--t-primary-t4, #eee8f5));color:var(--tct-date-calendar-range-font-color, var(--t-primary, #6a4a9e))}.cal-day.in-range.is-disabled{background:var(--tct-date-calendar-range-disabled-background, var(--const-stoplight-alert, #d20a0a));color:var(--t-base, #ffffff)}.cal-day.range-start{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) 0 0 var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px))}.cal-day.range-end{border-radius:0 var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px)) 0}.cal-day.range-start.range-end{border-radius:var(--tct-date-calendar-day-selected-border-radius, var(--app-border-radius-1, 4px))}.calendar-disclaimer{margin-top:var(--tct-date-calendar-disclaimer-margin-top, var(--app-scale-3x, 15px));padding-top:var(--tct-date-calendar-disclaimer-padding-top, var(--app-scale-2x, 10px));border-top:1px solid var(--tct-date-calendar-disclaimer-border-color, var(--t-gray-13, #e6e6e6));color:var(--tct-date-calendar-disclaimer-font-color, var(--t-text, #4d4d4d));font-size:var(--tct-date-calendar-disclaimer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)))}.cal-footer{display:grid;gap:var(--tct-date-calendar-footer-gap, var(--app-scale-2x, 10px));margin-top:var(--tct-date-calendar-footer-margin-top, var(--app-scale-3x, 15px));padding-top:var(--tct-date-calendar-footer-padding-top, var(--app-scale-3x, 15px));border-top:1px solid var(--tct-date-calendar-footer-border-color, var(--t-gray-13, #e6e6e6))}.cal-footer-summary{display:grid;color:var(--tct-date-calendar-footer-font-color, var(--t-primary, #6a4a9e));font-size:var(--tct-date-calendar-footer-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-date-calendar-footer-font-weight, 600)}.cal-footer-summary>*{grid-area:1/1}.cal-footer-summary q2-message{color:var(--t-text, #4d4d4d)}.cal-footer-summary>span{display:flex;align-items:center}.cal-footer-summary q2-message.is-placeholder{visibility:hidden;pointer-events:none}.cal-footer-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:var(--tct-date-calendar-footer-action-gap, var(--app-scale-1x, 5px));padding:var(--tct-date-calendar-footer-action-padding, var(--app-scale-1x, 5px))}.cal-footer-actions q2-btn{flex:0 0 auto;width:auto}@media (max-width: 768px){:host{max-width:none}.cal-panel{width:var(--comp-date-calendar-width, min(100%, 100vw - var(--tct-date-calendar-mobile-gutter, 24px) - var(--tct-date-calendar-mobile-gutter, 24px), var(--tct-date-calendar-mobile-max-width, 420px)));min-width:0}.cal-row{grid-template-columns:repeat(7, minmax(44px, 1fr))}.cal-day{height:auto;aspect-ratio:1}}@media (max-width: 360px){.cal-nav-btn{height:var(--tct-date-calendar-mobile-navigation-button-height, 32px);--tct-btn-icon-height:var(--tct-date-calendar-mobile-navigation-button-height, 32px)}}';
437
+
438
+ export { u as q2_date_calendar }