@six-group/ui-library 4.0.3 → 4.1.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 (1092) hide show
  1. package/dist/cjs/error-messages-6e8049a4.js +119 -0
  2. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  3. package/dist/cjs/event-listeners-9fb878f1.js +61 -0
  4. package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
  5. package/dist/cjs/{execution-control-b4707294.js → execution-control-d728da70.js} +15 -15
  6. package/dist/cjs/{execution-control-b4707294.js.map → execution-control-d728da70.js.map} +1 -1
  7. package/dist/cjs/focus-visible-e2c9255a.js +47 -0
  8. package/dist/cjs/{focus-visible-ae2470dd.js.map → focus-visible-e2c9255a.js.map} +1 -1
  9. package/dist/cjs/form-9ebaae7c.js +20 -0
  10. package/dist/cjs/{form-2df8c5bb.js.map → form-9ebaae7c.js.map} +1 -1
  11. package/dist/cjs/form-control-8d64e974.js +36 -0
  12. package/dist/cjs/form-control-8d64e974.js.map +1 -0
  13. package/dist/cjs/{index-900437fc.js → index-d7748d51.js} +418 -657
  14. package/dist/cjs/index-d7748d51.js.map +1 -0
  15. package/dist/cjs/index.cjs.js +55 -87
  16. package/dist/cjs/index.cjs.js.map +1 -1
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/cjs/modal-3ce015be.js +52 -0
  19. package/dist/cjs/modal-3ce015be.js.map +1 -0
  20. package/dist/cjs/{popover-2df7e154.js → popover-1e7c09f1.js} +99 -99
  21. package/dist/cjs/popover-1e7c09f1.js.map +1 -0
  22. package/dist/cjs/popup-e854acda.js +103 -0
  23. package/dist/cjs/popup-e854acda.js.map +1 -0
  24. package/dist/cjs/scroll-68033901.js +68 -0
  25. package/dist/cjs/{scroll-2c4200dc.js.map → scroll-68033901.js.map} +1 -1
  26. package/dist/cjs/six-alert.cjs.entry.js +142 -110
  27. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  28. package/dist/cjs/six-avatar.cjs.entry.js +21 -21
  29. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  30. package/dist/cjs/six-badge.cjs.entry.js +23 -23
  31. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  32. package/dist/cjs/six-button.cjs.entry.js +95 -95
  33. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  34. package/dist/cjs/six-card.cjs.entry.js +8 -8
  35. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  36. package/dist/cjs/six-checkbox_2.cjs.entry.js +190 -0
  37. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  38. package/dist/cjs/six-datepicker.cjs.entry.js +860 -834
  39. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  40. package/dist/cjs/six-details.cjs.entry.js +127 -127
  41. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  42. package/dist/cjs/six-dialog.cjs.entry.js +131 -129
  43. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  44. package/dist/cjs/six-drawer.cjs.entry.js +147 -147
  45. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  46. package/dist/cjs/six-dropdown_2.cjs.entry.js +709 -637
  47. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-error-page.cjs.entry.js +82 -82
  49. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  50. package/dist/cjs/six-error.cjs.entry.js +7 -7
  51. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  52. package/dist/cjs/six-file-list-item.cjs.entry.js +34 -34
  53. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  54. package/dist/cjs/six-file-list.cjs.entry.js +7 -7
  55. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  56. package/dist/cjs/six-file-upload.cjs.entry.js +99 -99
  57. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  58. package/dist/cjs/six-footer.cjs.entry.js +8 -8
  59. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  60. package/dist/cjs/six-group-label.cjs.entry.js +43 -43
  61. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  62. package/dist/cjs/six-header.cjs.entry.js +171 -156
  63. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  64. package/dist/cjs/six-icon-button.cjs.entry.js +32 -32
  65. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-icon.cjs.entry.js +22 -22
  67. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  68. package/dist/cjs/six-input.cjs.entry.js +192 -190
  69. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-item-picker.cjs.entry.js +405 -309
  71. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  72. package/dist/cjs/six-language-switcher.cjs.entry.js +46 -46
  73. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  74. package/dist/cjs/six-layout-grid.cjs.entry.js +20 -20
  75. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  76. package/dist/cjs/six-main-container.cjs.entry.js +9 -9
  77. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  78. package/dist/cjs/six-menu-divider.cjs.entry.js +8 -8
  79. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  80. package/dist/cjs/six-menu-label.cjs.entry.js +8 -8
  81. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  82. package/dist/cjs/six-picto.cjs.entry.js +14 -14
  83. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  84. package/dist/cjs/six-progress-bar.cjs.entry.js +15 -15
  85. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-progress-ring.cjs.entry.js +30 -30
  87. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  88. package/dist/cjs/six-radio.cjs.entry.js +104 -104
  89. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  90. package/dist/cjs/six-range.cjs.entry.js +180 -180
  91. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  92. package/dist/cjs/six-root.cjs.entry.js +11 -30
  93. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  94. package/dist/cjs/six-search-field.cjs.entry.js +44 -44
  95. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  96. package/dist/cjs/six-select.cjs.entry.js +497 -366
  97. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  98. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +56 -46
  99. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  100. package/dist/cjs/six-sidebar-item.cjs.entry.js +17 -15
  101. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  102. package/dist/cjs/six-sidebar.cjs.entry.js +174 -174
  103. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  104. package/dist/cjs/six-spinner.cjs.entry.js +15 -15
  105. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  106. package/dist/cjs/six-stage-indicator.cjs.entry.js +22 -0
  107. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  108. package/dist/cjs/six-switch.cjs.entry.js +107 -107
  109. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  110. package/dist/cjs/six-tab-group.cjs.entry.js +215 -215
  111. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  112. package/dist/cjs/six-tab-panel.cjs.entry.js +14 -14
  113. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  114. package/dist/cjs/six-tab.cjs.entry.js +55 -55
  115. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  116. package/dist/cjs/six-tag.cjs.entry.js +53 -53
  117. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  118. package/dist/cjs/six-textarea.cjs.entry.js +181 -181
  119. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  120. package/dist/cjs/six-tile.cjs.entry.js +77 -77
  121. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  122. package/dist/cjs/six-timepicker.cjs.entry.js +349 -349
  123. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  124. package/dist/cjs/six-tooltip.cjs.entry.js +148 -148
  125. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  126. package/dist/cjs/slot-1b1232a1.js +51 -0
  127. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  128. package/dist/cjs/types-d3da200b.js +19 -0
  129. package/dist/cjs/types-d3da200b.js.map +1 -0
  130. package/dist/cjs/ui-library.cjs.js +3 -3
  131. package/dist/cjs/ui-library.cjs.js.map +1 -1
  132. package/dist/collection/collection-manifest.json +5 -6
  133. package/dist/collection/components/six-alert/six-alert.css +5 -1
  134. package/dist/collection/components/six-alert/six-alert.js +382 -337
  135. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  136. package/dist/collection/components/six-alert/test/six-alert.spec.js +7 -7
  137. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -1
  138. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  139. package/dist/collection/components/six-avatar/six-avatar.js +111 -111
  140. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  141. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +7 -7
  142. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -1
  143. package/dist/collection/components/six-badge/six-badge.css +1 -1
  144. package/dist/collection/components/six-badge/six-badge.js +90 -90
  145. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  146. package/dist/collection/components/six-badge/test/six-badge.spec.js +7 -7
  147. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -1
  148. package/dist/collection/components/six-button/six-button.css +2 -1
  149. package/dist/collection/components/six-button/six-button.js +447 -446
  150. package/dist/collection/components/six-button/six-button.js.map +1 -1
  151. package/dist/collection/components/six-button/test/six-button.spec.js +44 -44
  152. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
  153. package/dist/collection/components/six-card/six-card.css +4 -5
  154. package/dist/collection/components/six-card/six-card.js +15 -15
  155. package/dist/collection/components/six-card/six-card.js.map +1 -1
  156. package/dist/collection/components/six-card/test/six-card.spec.js +7 -7
  157. package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -1
  158. package/dist/collection/components/six-checkbox/six-checkbox.css +9 -1
  159. package/dist/collection/components/six-checkbox/six-checkbox.js +421 -420
  160. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  161. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +13 -13
  162. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -1
  163. package/dist/collection/components/six-datepicker/components/day-selection.js +8 -8
  164. package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
  165. package/dist/collection/components/six-datepicker/components/month-selection.js +8 -8
  166. package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
  167. package/dist/collection/components/six-datepicker/components/year-selection.js +8 -8
  168. package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
  169. package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
  170. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  171. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  172. package/dist/collection/components/six-datepicker/six-datepicker.js +1052 -1050
  173. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  174. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +7 -7
  175. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -1
  176. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
  177. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
  178. package/dist/collection/components/six-details/six-details.css +1 -5
  179. package/dist/collection/components/six-details/six-details.js +410 -410
  180. package/dist/collection/components/six-details/six-details.js.map +1 -1
  181. package/dist/collection/components/six-details/test/six-details.spec.js +7 -7
  182. package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -1
  183. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  184. package/dist/collection/components/six-dialog/six-dialog.js +356 -354
  185. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  186. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +7 -7
  187. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -1
  188. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  189. package/dist/collection/components/six-drawer/six-drawer.js +409 -409
  190. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  191. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +8 -8
  192. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -1
  193. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -7
  194. package/dist/collection/components/six-dropdown/six-dropdown.js +983 -891
  195. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  196. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +92 -67
  197. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
  198. package/dist/collection/components/six-error/six-error.js +15 -15
  199. package/dist/collection/components/six-error/six-error.js.map +1 -1
  200. package/dist/collection/components/six-error-page/six-error-page.js +177 -177
  201. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  202. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +77 -77
  203. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -1
  204. package/dist/collection/components/six-file-list/six-file-list.js +15 -15
  205. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  206. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +16 -16
  207. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -1
  208. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  209. package/dist/collection/components/six-file-list-item/six-file-list-item.js +195 -195
  210. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  211. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +42 -42
  212. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -1
  213. package/dist/collection/components/six-file-upload/six-file-upload.css +1 -4
  214. package/dist/collection/components/six-file-upload/six-file-upload.js +291 -291
  215. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  216. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +27 -27
  217. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
  218. package/dist/collection/components/six-footer/six-footer.css +2 -2
  219. package/dist/collection/components/six-footer/six-footer.js +15 -15
  220. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  221. package/dist/collection/components/six-footer/test/six-footer.spec.js +7 -7
  222. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -1
  223. package/dist/collection/components/six-group-label/six-group-label.css +4 -1
  224. package/dist/collection/components/six-group-label/six-group-label.js +155 -155
  225. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  226. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +12 -12
  227. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -1
  228. package/dist/collection/components/six-header/six-header.css +6 -2
  229. package/dist/collection/components/six-header/six-header.js +439 -405
  230. package/dist/collection/components/six-header/six-header.js.map +1 -1
  231. package/dist/collection/components/six-header/test/six-header.spec.js +77 -33
  232. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
  233. package/dist/collection/components/six-icon/six-icon.css +5 -2
  234. package/dist/collection/components/six-icon/six-icon.js +71 -71
  235. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  236. package/dist/collection/components/six-icon/test/six-icon.spec.js +7 -7
  237. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -1
  238. package/dist/collection/components/six-icon-button/six-icon-button.css +1 -1
  239. package/dist/collection/components/six-icon-button/six-icon-button.js +131 -131
  240. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  241. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +7 -7
  242. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -1
  243. package/dist/collection/components/six-input/six-input.css +13 -1
  244. package/dist/collection/components/six-input/six-input.js +967 -939
  245. package/dist/collection/components/six-input/six-input.js.map +1 -1
  246. package/dist/collection/components/six-input/test/six-input.spec.js +7 -7
  247. package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -1
  248. package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
  249. package/dist/collection/components/six-item-picker/six-item-picker.js +727 -631
  250. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  251. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +82 -82
  252. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -1
  253. package/dist/collection/components/six-item-picker/types.js +9 -7
  254. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  255. package/dist/collection/components/six-language-switcher/six-language-switcher.js +124 -124
  256. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  257. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +79 -79
  258. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
  259. package/dist/collection/components/six-layout-grid/six-layout-grid.js +54 -54
  260. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  261. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +7 -7
  262. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -1
  263. package/dist/collection/components/six-main-container/six-main-container.js +41 -41
  264. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  265. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +7 -7
  266. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -1
  267. package/dist/collection/components/six-menu/six-menu.css +8 -7
  268. package/dist/collection/components/six-menu/six-menu.js +388 -366
  269. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  270. package/dist/collection/components/six-menu/test/six-menu.spec.js +41 -41
  271. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  272. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  273. package/dist/collection/components/six-menu-divider/six-menu-divider.js +15 -15
  274. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  275. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +7 -7
  276. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -1
  277. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  278. package/dist/collection/components/six-menu-item/six-menu-item.js +209 -180
  279. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  280. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +7 -7
  281. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -1
  282. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  283. package/dist/collection/components/six-menu-label/six-menu-label.js +15 -15
  284. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  285. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +7 -7
  286. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -1
  287. package/dist/collection/components/six-picto/six-picto.js +46 -46
  288. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  289. package/dist/collection/components/six-picto/test/six-picto.spec.js +13 -13
  290. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -1
  291. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  292. package/dist/collection/components/six-progress-bar/six-progress-bar.js +64 -64
  293. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  294. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +7 -7
  295. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -1
  296. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  297. package/dist/collection/components/six-progress-ring/six-progress-ring.js +100 -100
  298. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  299. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +7 -7
  300. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -1
  301. package/dist/collection/components/six-radio/six-radio.css +1 -1
  302. package/dist/collection/components/six-radio/six-radio.js +321 -320
  303. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  304. package/dist/collection/components/six-radio/test/six-radio.spec.js +13 -13
  305. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -1
  306. package/dist/collection/components/six-range/six-range.css +4 -1
  307. package/dist/collection/components/six-range/six-range.js +564 -563
  308. package/dist/collection/components/six-range/six-range.js.map +1 -1
  309. package/dist/collection/components/six-range/test/six-range.spec.js +8 -8
  310. package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -1
  311. package/dist/collection/components/six-root/six-root.js +84 -152
  312. package/dist/collection/components/six-root/six-root.js.map +1 -1
  313. package/dist/collection/components/six-root/test/six-root.spec.js +7 -14
  314. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  315. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  316. package/dist/collection/components/six-search-field/six-search-field.js +169 -169
  317. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  318. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +7 -7
  319. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -1
  320. package/dist/collection/components/six-select/six-select.css +57 -66
  321. package/dist/collection/components/six-select/six-select.js +1117 -942
  322. package/dist/collection/components/six-select/six-select.js.map +1 -1
  323. package/dist/collection/components/six-select/test/six-select.spec.js +45 -29
  324. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
  325. package/dist/collection/components/six-select/test/util.spec.js +73 -73
  326. package/dist/collection/components/six-select/test/util.spec.js.map +1 -1
  327. package/dist/collection/components/six-select/util.js +34 -34
  328. package/dist/collection/components/six-select/util.js.map +1 -1
  329. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  330. package/dist/collection/components/six-sidebar/six-sidebar.js +466 -464
  331. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  332. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +7 -7
  333. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -1
  334. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +6 -1
  335. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +101 -82
  336. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  337. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +19 -19
  338. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -1
  339. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +8 -1
  340. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +180 -153
  341. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  342. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +14 -14
  343. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -1
  344. package/dist/collection/components/six-spinner/six-spinner.css +1 -1
  345. package/dist/collection/components/six-spinner/six-spinner.js +47 -46
  346. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  347. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +14 -14
  348. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -1
  349. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  350. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +45 -45
  351. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
  352. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +37 -37
  353. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -1
  354. package/dist/collection/components/six-switch/six-switch.css +4 -1
  355. package/dist/collection/components/six-switch/six-switch.js +384 -383
  356. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  357. package/dist/collection/components/six-switch/test/six-switch.spec.js +13 -13
  358. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -1
  359. package/dist/collection/components/six-tab/six-tab.css +1 -1
  360. package/dist/collection/components/six-tab/six-tab.js +206 -205
  361. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  362. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -1
  363. package/dist/collection/components/six-tab-group/six-tab-group.js +317 -316
  364. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  365. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  366. package/dist/collection/components/six-tab-panel/six-tab-panel.js +63 -63
  367. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  368. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +7 -7
  369. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -1
  370. package/dist/collection/components/six-tag/six-tag.css +1 -1
  371. package/dist/collection/components/six-tag/six-tag.js +158 -158
  372. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  373. package/dist/collection/components/six-tag/test/six-tag.spec.js +19 -19
  374. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -1
  375. package/dist/collection/components/six-textarea/six-textarea.css +4 -1
  376. package/dist/collection/components/six-textarea/six-textarea.js +792 -784
  377. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  378. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +94 -94
  379. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
  380. package/dist/collection/components/six-tile/six-tile.css +2 -2
  381. package/dist/collection/components/six-tile/six-tile.js +298 -298
  382. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  383. package/dist/collection/components/six-tile/test/six-tile.spec.js +14 -14
  384. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -1
  385. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  386. package/dist/collection/components/six-timepicker/six-timepicker.js +823 -822
  387. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  388. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +155 -155
  389. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
  390. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  391. package/dist/collection/components/six-tooltip/six-tooltip.js +407 -407
  392. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  393. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +7 -7
  394. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -1
  395. package/dist/collection/functional-components/form-control/form-control.js +19 -19
  396. package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
  397. package/dist/collection/index.js +1 -0
  398. package/dist/collection/index.js.map +1 -1
  399. package/dist/collection/testUtil/delay.js +1 -1
  400. package/dist/collection/testUtil/delay.js.map +1 -1
  401. package/dist/collection/utils/alert.js +54 -0
  402. package/dist/collection/utils/alert.js.map +1 -0
  403. package/dist/collection/utils/animation.js +19 -19
  404. package/dist/collection/utils/animation.js.map +1 -1
  405. package/dist/collection/utils/date-util.js +525 -500
  406. package/dist/collection/utils/date-util.js.map +1 -1
  407. package/dist/collection/utils/date-util.spec.js +984 -984
  408. package/dist/collection/utils/date-util.spec.js.map +1 -1
  409. package/dist/collection/utils/error-messages.js +102 -81
  410. package/dist/collection/utils/error-messages.js.map +1 -1
  411. package/dist/collection/utils/event-listeners.js +51 -51
  412. package/dist/collection/utils/event-listeners.js.map +1 -1
  413. package/dist/collection/utils/execution-control.js +14 -14
  414. package/dist/collection/utils/execution-control.js.map +1 -1
  415. package/dist/collection/utils/focus-visible.js +28 -28
  416. package/dist/collection/utils/focus-visible.js.map +1 -1
  417. package/dist/collection/utils/form.js +12 -12
  418. package/dist/collection/utils/form.js.map +1 -1
  419. package/dist/collection/utils/modal.js +25 -25
  420. package/dist/collection/utils/modal.js.map +1 -1
  421. package/dist/collection/utils/offset.js +4 -4
  422. package/dist/collection/utils/offset.js.map +1 -1
  423. package/dist/collection/utils/popover.js +99 -99
  424. package/dist/collection/utils/popover.js.map +1 -1
  425. package/dist/collection/utils/popup.js +71 -71
  426. package/dist/collection/utils/popup.js.map +1 -1
  427. package/dist/collection/utils/scroll.js +27 -27
  428. package/dist/collection/utils/scroll.js.map +1 -1
  429. package/dist/collection/utils/scroll.spec.js +116 -116
  430. package/dist/collection/utils/scroll.spec.js.map +1 -1
  431. package/dist/collection/utils/slot.js +28 -29
  432. package/dist/collection/utils/slot.js.map +1 -1
  433. package/dist/collection/utils/support.js +10 -10
  434. package/dist/collection/utils/support.js.map +1 -1
  435. package/dist/collection/utils/tabbable.js +17 -17
  436. package/dist/collection/utils/tabbable.js.map +1 -1
  437. package/dist/collection/utils/time.util.js +72 -72
  438. package/dist/collection/utils/time.util.js.map +1 -1
  439. package/dist/collection/utils/time.util.spec.js +353 -353
  440. package/dist/collection/utils/time.util.spec.js.map +1 -1
  441. package/dist/components/event-listeners.js +51 -51
  442. package/dist/components/event-listeners.js.map +1 -1
  443. package/dist/components/execution-control.js +14 -14
  444. package/dist/components/execution-control.js.map +1 -1
  445. package/dist/components/focus-visible.js +28 -28
  446. package/dist/components/focus-visible.js.map +1 -1
  447. package/dist/components/form-control.js +26 -26
  448. package/dist/components/form-control.js.map +1 -1
  449. package/dist/components/form.js +12 -12
  450. package/dist/components/form.js.map +1 -1
  451. package/dist/components/index.d.ts +6 -0
  452. package/dist/components/index.js +112 -150
  453. package/dist/components/index.js.map +1 -1
  454. package/dist/components/modal.js +35 -35
  455. package/dist/components/modal.js.map +1 -1
  456. package/dist/components/popover.js +98 -98
  457. package/dist/components/popover.js.map +1 -1
  458. package/dist/components/scroll.js +31 -31
  459. package/dist/components/scroll.js.map +1 -1
  460. package/dist/components/six-alert.d.ts +2 -2
  461. package/dist/components/six-alert.js +177 -142
  462. package/dist/components/six-alert.js.map +1 -1
  463. package/dist/components/six-avatar.d.ts +2 -2
  464. package/dist/components/six-avatar.js +45 -45
  465. package/dist/components/six-avatar.js.map +1 -1
  466. package/dist/components/six-badge.d.ts +2 -2
  467. package/dist/components/six-badge.js +40 -40
  468. package/dist/components/six-badge.js.map +1 -1
  469. package/dist/components/six-button.d.ts +2 -2
  470. package/dist/components/six-button.js +1 -142
  471. package/dist/components/six-button.js.map +1 -1
  472. package/dist/components/six-button2.js +146 -0
  473. package/dist/components/six-button2.js.map +1 -0
  474. package/dist/components/six-card.d.ts +2 -2
  475. package/dist/components/six-card.js +21 -21
  476. package/dist/components/six-card.js.map +1 -1
  477. package/dist/components/six-checkbox.d.ts +2 -2
  478. package/dist/components/six-checkbox.js +1 -156
  479. package/dist/components/six-checkbox.js.map +1 -1
  480. package/dist/components/six-checkbox2.js +165 -0
  481. package/dist/components/six-checkbox2.js.map +1 -0
  482. package/dist/components/six-datepicker.d.ts +2 -2
  483. package/dist/components/six-datepicker.js +930 -901
  484. package/dist/components/six-datepicker.js.map +1 -1
  485. package/dist/components/six-details.d.ts +2 -2
  486. package/dist/components/six-details2.js +158 -156
  487. package/dist/components/six-details2.js.map +1 -1
  488. package/dist/components/six-dialog.d.ts +2 -2
  489. package/dist/components/six-dialog.js +161 -157
  490. package/dist/components/six-dialog.js.map +1 -1
  491. package/dist/components/six-drawer.d.ts +2 -2
  492. package/dist/components/six-drawer.js +179 -177
  493. package/dist/components/six-drawer.js.map +1 -1
  494. package/dist/components/six-dropdown.d.ts +2 -2
  495. package/dist/components/six-dropdown2.js +552 -469
  496. package/dist/components/six-dropdown2.js.map +1 -1
  497. package/dist/components/six-error-page.d.ts +2 -2
  498. package/dist/components/six-error-page.js +106 -106
  499. package/dist/components/six-error-page.js.map +1 -1
  500. package/dist/components/six-error.d.ts +2 -2
  501. package/dist/components/six-error2.js +20 -20
  502. package/dist/components/six-error2.js.map +1 -1
  503. package/dist/components/six-file-list-item.d.ts +2 -2
  504. package/dist/components/six-file-list-item.js +59 -59
  505. package/dist/components/six-file-list-item.js.map +1 -1
  506. package/dist/components/six-file-list.d.ts +2 -2
  507. package/dist/components/six-file-list.js +20 -20
  508. package/dist/components/six-file-list.js.map +1 -1
  509. package/dist/components/six-file-upload.d.ts +2 -2
  510. package/dist/components/six-file-upload.js +124 -124
  511. package/dist/components/six-file-upload.js.map +1 -1
  512. package/dist/components/six-footer.d.ts +2 -2
  513. package/dist/components/six-footer.js +21 -21
  514. package/dist/components/six-footer.js.map +1 -1
  515. package/dist/components/six-group-label.d.ts +2 -2
  516. package/dist/components/six-group-label.js +70 -67
  517. package/dist/components/six-group-label.js.map +1 -1
  518. package/dist/components/six-header.d.ts +2 -2
  519. package/dist/components/six-header.js +235 -211
  520. package/dist/components/six-header.js.map +1 -1
  521. package/dist/components/six-icon-button.d.ts +2 -2
  522. package/dist/components/six-icon-button2.js +55 -55
  523. package/dist/components/six-icon-button2.js.map +1 -1
  524. package/dist/components/six-icon.d.ts +2 -2
  525. package/dist/components/six-icon2.js +38 -38
  526. package/dist/components/six-icon2.js.map +1 -1
  527. package/dist/components/six-input.d.ts +2 -2
  528. package/dist/components/six-input2.js +257 -249
  529. package/dist/components/six-input2.js.map +1 -1
  530. package/dist/components/six-item-picker.d.ts +2 -2
  531. package/dist/components/six-item-picker2.js +450 -348
  532. package/dist/components/six-item-picker2.js.map +1 -1
  533. package/dist/components/six-language-switcher.d.ts +2 -2
  534. package/dist/components/six-language-switcher.js +64 -62
  535. package/dist/components/six-language-switcher.js.map +1 -1
  536. package/dist/components/six-layout-grid.d.ts +2 -2
  537. package/dist/components/six-layout-grid.js +37 -35
  538. package/dist/components/six-layout-grid.js.map +1 -1
  539. package/dist/components/six-main-container.d.ts +2 -2
  540. package/dist/components/six-main-container.js +24 -24
  541. package/dist/components/six-main-container.js.map +1 -1
  542. package/dist/components/six-menu-divider.d.ts +2 -2
  543. package/dist/components/six-menu-divider.js +21 -21
  544. package/dist/components/six-menu-divider.js.map +1 -1
  545. package/dist/components/six-menu-item.d.ts +2 -2
  546. package/dist/components/six-menu-item2.js +98 -75
  547. package/dist/components/six-menu-item2.js.map +1 -1
  548. package/dist/components/six-menu-label.d.ts +2 -2
  549. package/dist/components/six-menu-label.js +21 -21
  550. package/dist/components/six-menu-label.js.map +1 -1
  551. package/dist/components/six-menu.d.ts +2 -2
  552. package/dist/components/six-menu2.js +236 -220
  553. package/dist/components/six-menu2.js.map +1 -1
  554. package/dist/components/six-picto.d.ts +2 -2
  555. package/dist/components/six-picto2.js +29 -29
  556. package/dist/components/six-picto2.js.map +1 -1
  557. package/dist/components/six-progress-bar.d.ts +2 -2
  558. package/dist/components/six-progress-bar.js +31 -31
  559. package/dist/components/six-progress-bar.js.map +1 -1
  560. package/dist/components/six-progress-ring.d.ts +2 -2
  561. package/dist/components/six-progress-ring.js +49 -47
  562. package/dist/components/six-progress-ring.js.map +1 -1
  563. package/dist/components/six-radio.d.ts +2 -2
  564. package/dist/components/six-radio.js +128 -125
  565. package/dist/components/six-radio.js.map +1 -1
  566. package/dist/components/six-range.d.ts +2 -2
  567. package/dist/components/six-range.js +232 -225
  568. package/dist/components/six-range.js.map +1 -1
  569. package/dist/components/six-root.d.ts +2 -2
  570. package/dist/components/six-root.js +39 -66
  571. package/dist/components/six-root.js.map +1 -1
  572. package/dist/components/six-search-field.d.ts +2 -2
  573. package/dist/components/six-search-field.js +78 -76
  574. package/dist/components/six-search-field.js.map +1 -1
  575. package/dist/components/six-select.d.ts +2 -2
  576. package/dist/components/six-select.js +719 -462
  577. package/dist/components/six-select.js.map +1 -1
  578. package/dist/components/six-sidebar-item-group.d.ts +2 -2
  579. package/dist/components/six-sidebar-item-group.js +87 -76
  580. package/dist/components/six-sidebar-item-group.js.map +1 -1
  581. package/dist/components/six-sidebar-item.d.ts +2 -2
  582. package/dist/components/six-sidebar-item.js +35 -32
  583. package/dist/components/six-sidebar-item.js.map +1 -1
  584. package/dist/components/six-sidebar.d.ts +2 -2
  585. package/dist/components/six-sidebar.js +199 -197
  586. package/dist/components/six-sidebar.js.map +1 -1
  587. package/dist/components/six-spinner.d.ts +2 -2
  588. package/dist/components/six-spinner2.js +30 -30
  589. package/dist/components/six-spinner2.js.map +1 -1
  590. package/dist/components/six-stage-indicator.d.ts +2 -2
  591. package/dist/components/six-stage-indicator2.js +29 -29
  592. package/dist/components/six-stage-indicator2.js.map +1 -1
  593. package/dist/components/six-switch.d.ts +2 -2
  594. package/dist/components/six-switch.js +140 -136
  595. package/dist/components/six-switch.js.map +1 -1
  596. package/dist/components/six-tab-group.d.ts +2 -2
  597. package/dist/components/six-tab-group.js +244 -242
  598. package/dist/components/six-tab-group.js.map +1 -1
  599. package/dist/components/six-tab-panel.d.ts +2 -2
  600. package/dist/components/six-tab-panel.js +30 -30
  601. package/dist/components/six-tab-panel.js.map +1 -1
  602. package/dist/components/six-tab.d.ts +2 -2
  603. package/dist/components/six-tab.js +85 -85
  604. package/dist/components/six-tab.js.map +1 -1
  605. package/dist/components/six-tag.d.ts +2 -2
  606. package/dist/components/six-tag.js +98 -1
  607. package/dist/components/six-tag.js.map +1 -1
  608. package/dist/components/six-textarea.d.ts +2 -2
  609. package/dist/components/six-textarea.js +234 -228
  610. package/dist/components/six-textarea.js.map +1 -1
  611. package/dist/components/six-tile.d.ts +2 -2
  612. package/dist/components/six-tile.js +117 -117
  613. package/dist/components/six-tile.js.map +1 -1
  614. package/dist/components/six-timepicker.d.ts +2 -2
  615. package/dist/components/six-timepicker2.js +490 -488
  616. package/dist/components/six-timepicker2.js.map +1 -1
  617. package/dist/components/six-tooltip.d.ts +2 -2
  618. package/dist/components/six-tooltip2.js +172 -170
  619. package/dist/components/six-tooltip2.js.map +1 -1
  620. package/dist/components/slot.js +29 -30
  621. package/dist/components/slot.js.map +1 -1
  622. package/dist/components.d.ts +1 -21
  623. package/dist/components.json +653 -232
  624. package/dist/esm/error-messages-1eaaad23.js +115 -0
  625. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  626. package/dist/esm/event-listeners-706d4309.js +59 -0
  627. package/dist/esm/event-listeners-706d4309.js.map +1 -0
  628. package/dist/esm/{execution-control-e0892a05.js → execution-control-2ebaf4ef.js} +15 -15
  629. package/dist/esm/{execution-control-e0892a05.js.map → execution-control-2ebaf4ef.js.map} +1 -1
  630. package/dist/esm/focus-visible-d9dbfeef.js +45 -0
  631. package/dist/esm/{focus-visible-fc6ac671.js.map → focus-visible-d9dbfeef.js.map} +1 -1
  632. package/dist/esm/form-4b145b7a.js +18 -0
  633. package/dist/esm/{form-81252534.js.map → form-4b145b7a.js.map} +1 -1
  634. package/dist/esm/form-control-d403a9cf.js +34 -0
  635. package/dist/esm/form-control-d403a9cf.js.map +1 -0
  636. package/dist/esm/{index-8a74f992.js → index-79d4ef67.js} +418 -657
  637. package/dist/esm/index-79d4ef67.js.map +1 -0
  638. package/dist/esm/index.js +52 -87
  639. package/dist/esm/index.js.map +1 -1
  640. package/dist/esm/loader.js +3 -3
  641. package/dist/esm/modal-96526245.js +49 -0
  642. package/dist/esm/modal-96526245.js.map +1 -0
  643. package/dist/esm/{popover-136d1f73.js → popover-25996e62.js} +99 -99
  644. package/dist/esm/popover-25996e62.js.map +1 -0
  645. package/dist/esm/popup-7209e9d5.js +98 -0
  646. package/dist/esm/popup-7209e9d5.js.map +1 -0
  647. package/dist/esm/scroll-3e16851e.js +64 -0
  648. package/dist/esm/{scroll-774762d6.js.map → scroll-3e16851e.js.map} +1 -1
  649. package/dist/esm/six-alert.entry.js +142 -110
  650. package/dist/esm/six-alert.entry.js.map +1 -1
  651. package/dist/esm/six-avatar.entry.js +21 -21
  652. package/dist/esm/six-avatar.entry.js.map +1 -1
  653. package/dist/esm/six-badge.entry.js +23 -23
  654. package/dist/esm/six-badge.entry.js.map +1 -1
  655. package/dist/esm/six-button.entry.js +95 -95
  656. package/dist/esm/six-button.entry.js.map +1 -1
  657. package/dist/esm/six-card.entry.js +8 -8
  658. package/dist/esm/six-card.entry.js.map +1 -1
  659. package/dist/esm/six-checkbox_2.entry.js +185 -0
  660. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  661. package/dist/esm/six-datepicker.entry.js +860 -834
  662. package/dist/esm/six-datepicker.entry.js.map +1 -1
  663. package/dist/esm/six-details.entry.js +127 -127
  664. package/dist/esm/six-details.entry.js.map +1 -1
  665. package/dist/esm/six-dialog.entry.js +131 -129
  666. package/dist/esm/six-dialog.entry.js.map +1 -1
  667. package/dist/esm/six-drawer.entry.js +147 -147
  668. package/dist/esm/six-drawer.entry.js.map +1 -1
  669. package/dist/esm/six-dropdown_2.entry.js +709 -637
  670. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  671. package/dist/esm/six-error-page.entry.js +82 -82
  672. package/dist/esm/six-error-page.entry.js.map +1 -1
  673. package/dist/esm/six-error.entry.js +7 -7
  674. package/dist/esm/six-error.entry.js.map +1 -1
  675. package/dist/esm/six-file-list-item.entry.js +34 -34
  676. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  677. package/dist/esm/six-file-list.entry.js +7 -7
  678. package/dist/esm/six-file-list.entry.js.map +1 -1
  679. package/dist/esm/six-file-upload.entry.js +99 -99
  680. package/dist/esm/six-file-upload.entry.js.map +1 -1
  681. package/dist/esm/six-footer.entry.js +8 -8
  682. package/dist/esm/six-footer.entry.js.map +1 -1
  683. package/dist/esm/six-group-label.entry.js +43 -43
  684. package/dist/esm/six-group-label.entry.js.map +1 -1
  685. package/dist/esm/six-header.entry.js +171 -156
  686. package/dist/esm/six-header.entry.js.map +1 -1
  687. package/dist/esm/six-icon-button.entry.js +32 -32
  688. package/dist/esm/six-icon-button.entry.js.map +1 -1
  689. package/dist/esm/six-icon.entry.js +22 -22
  690. package/dist/esm/six-icon.entry.js.map +1 -1
  691. package/dist/esm/six-input.entry.js +192 -190
  692. package/dist/esm/six-input.entry.js.map +1 -1
  693. package/dist/esm/six-item-picker.entry.js +405 -309
  694. package/dist/esm/six-item-picker.entry.js.map +1 -1
  695. package/dist/esm/six-language-switcher.entry.js +46 -46
  696. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  697. package/dist/esm/six-layout-grid.entry.js +20 -20
  698. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  699. package/dist/esm/six-main-container.entry.js +9 -9
  700. package/dist/esm/six-main-container.entry.js.map +1 -1
  701. package/dist/esm/six-menu-divider.entry.js +8 -8
  702. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  703. package/dist/esm/six-menu-label.entry.js +8 -8
  704. package/dist/esm/six-menu-label.entry.js.map +1 -1
  705. package/dist/esm/six-picto.entry.js +14 -14
  706. package/dist/esm/six-picto.entry.js.map +1 -1
  707. package/dist/esm/six-progress-bar.entry.js +15 -15
  708. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  709. package/dist/esm/six-progress-ring.entry.js +30 -30
  710. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  711. package/dist/esm/six-radio.entry.js +104 -104
  712. package/dist/esm/six-radio.entry.js.map +1 -1
  713. package/dist/esm/six-range.entry.js +180 -180
  714. package/dist/esm/six-range.entry.js.map +1 -1
  715. package/dist/esm/six-root.entry.js +11 -30
  716. package/dist/esm/six-root.entry.js.map +1 -1
  717. package/dist/esm/six-search-field.entry.js +44 -44
  718. package/dist/esm/six-search-field.entry.js.map +1 -1
  719. package/dist/esm/six-select.entry.js +497 -366
  720. package/dist/esm/six-select.entry.js.map +1 -1
  721. package/dist/esm/six-sidebar-item-group.entry.js +56 -46
  722. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  723. package/dist/esm/six-sidebar-item.entry.js +17 -15
  724. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  725. package/dist/esm/six-sidebar.entry.js +174 -174
  726. package/dist/esm/six-sidebar.entry.js.map +1 -1
  727. package/dist/esm/six-spinner.entry.js +15 -15
  728. package/dist/esm/six-spinner.entry.js.map +1 -1
  729. package/dist/esm/six-stage-indicator.entry.js +18 -0
  730. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  731. package/dist/esm/six-switch.entry.js +107 -107
  732. package/dist/esm/six-switch.entry.js.map +1 -1
  733. package/dist/esm/six-tab-group.entry.js +215 -215
  734. package/dist/esm/six-tab-group.entry.js.map +1 -1
  735. package/dist/esm/six-tab-panel.entry.js +14 -14
  736. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  737. package/dist/esm/six-tab.entry.js +55 -55
  738. package/dist/esm/six-tab.entry.js.map +1 -1
  739. package/dist/esm/six-tag.entry.js +53 -53
  740. package/dist/esm/six-tag.entry.js.map +1 -1
  741. package/dist/esm/six-textarea.entry.js +181 -181
  742. package/dist/esm/six-textarea.entry.js.map +1 -1
  743. package/dist/esm/six-tile.entry.js +77 -77
  744. package/dist/esm/six-tile.entry.js.map +1 -1
  745. package/dist/esm/six-timepicker.entry.js +349 -349
  746. package/dist/esm/six-timepicker.entry.js.map +1 -1
  747. package/dist/esm/six-tooltip.entry.js +148 -148
  748. package/dist/esm/six-tooltip.entry.js.map +1 -1
  749. package/dist/esm/slot-56531341.js +47 -0
  750. package/dist/esm/slot-56531341.js.map +1 -0
  751. package/dist/esm/types-a07bb999.js +19 -0
  752. package/dist/esm/types-a07bb999.js.map +1 -0
  753. package/dist/esm/ui-library.js +4 -4
  754. package/dist/esm/ui-library.js.map +1 -1
  755. package/dist/types/components/six-alert/six-alert.d.ts +47 -40
  756. package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
  757. package/dist/types/components/six-badge/six-badge.d.ts +7 -7
  758. package/dist/types/components/six-button/six-button.d.ts +48 -48
  759. package/dist/types/components/six-card/six-card.d.ts +1 -1
  760. package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -58
  761. package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
  762. package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
  763. package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
  764. package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
  765. package/dist/types/components/six-datepicker/six-datepicker.d.ts +187 -187
  766. package/dist/types/components/six-details/six-details.d.ts +42 -42
  767. package/dist/types/components/six-dialog/six-dialog.d.ts +51 -50
  768. package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
  769. package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -112
  770. package/dist/types/components/six-error/six-error.d.ts +1 -1
  771. package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
  772. package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
  773. package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
  774. package/dist/types/components/six-file-upload/six-file-upload.d.ts +33 -33
  775. package/dist/types/components/six-footer/six-footer.d.ts +1 -1
  776. package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
  777. package/dist/types/components/six-header/six-header.d.ts +59 -55
  778. package/dist/types/components/six-icon/six-icon.d.ts +5 -5
  779. package/dist/types/components/six-icon-button/six-icon-button.d.ts +18 -18
  780. package/dist/types/components/six-input/six-input.d.ts +109 -105
  781. package/dist/types/components/six-item-picker/six-item-picker.d.ts +95 -88
  782. package/dist/types/components/six-item-picker/types.d.ts +7 -7
  783. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
  784. package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
  785. package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
  786. package/dist/types/components/six-menu/six-menu.d.ts +67 -63
  787. package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
  788. package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
  789. package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
  790. package/dist/types/components/six-picto/six-picto.d.ts +6 -6
  791. package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
  792. package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
  793. package/dist/types/components/six-radio/six-radio.d.ts +38 -38
  794. package/dist/types/components/six-range/six-range.d.ts +75 -75
  795. package/dist/types/components/six-root/six-root.d.ts +8 -21
  796. package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
  797. package/dist/types/components/six-select/six-select.d.ts +137 -122
  798. package/dist/types/components/six-select/util.d.ts +1 -1
  799. package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
  800. package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
  801. package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
  802. package/dist/types/components/six-spinner/six-spinner.d.ts +6 -5
  803. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
  804. package/dist/types/components/six-switch/six-switch.d.ts +48 -48
  805. package/dist/types/components/six-tab/six-tab.d.ts +20 -20
  806. package/dist/types/components/six-tab-group/six-tab-group.d.ts +35 -35
  807. package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
  808. package/dist/types/components/six-tag/six-tag.d.ts +20 -20
  809. package/dist/types/components/six-textarea/six-textarea.d.ts +89 -89
  810. package/dist/types/components/six-tile/six-tile.d.ts +31 -31
  811. package/dist/types/components/six-timepicker/six-timepicker.d.ts +152 -152
  812. package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
  813. package/dist/types/components.d.ts +456 -48
  814. package/dist/types/functional-components/form-control/form-control.d.ts +32 -32
  815. package/dist/types/index.d.ts +1 -0
  816. package/dist/types/stencil-public-runtime.d.ts +34 -3
  817. package/dist/types/types.d.ts +1 -0
  818. package/dist/types/utils/alert.d.ts +10 -0
  819. package/dist/types/utils/date-util.d.ts +58 -50
  820. package/dist/types/utils/error-messages.d.ts +27 -25
  821. package/dist/types/utils/event-listeners.d.ts +11 -11
  822. package/dist/types/utils/focus-visible.d.ts +2 -2
  823. package/dist/types/utils/modal.d.ts +8 -8
  824. package/dist/types/utils/offset.d.ts +2 -2
  825. package/dist/types/utils/popover.d.ts +21 -21
  826. package/dist/types/utils/slot.d.ts +0 -1
  827. package/dist/types/utils/time.util.d.ts +6 -6
  828. package/dist/types/utils/types.d.ts +1 -1
  829. package/dist/ui-library/index.esm.js +1 -1
  830. package/dist/ui-library/index.esm.js.map +1 -1
  831. package/dist/ui-library/p-0440335d.entry.js +2 -0
  832. package/dist/ui-library/{p-dc4f41d8.entry.js.map → p-0440335d.entry.js.map} +1 -1
  833. package/dist/ui-library/p-04cc397c.entry.js +2 -0
  834. package/dist/ui-library/{p-a0f290d0.entry.js.map → p-04cc397c.entry.js.map} +1 -1
  835. package/dist/ui-library/{p-5654e4c7.js → p-06ba4450.js} +1 -1
  836. package/dist/ui-library/p-0cebf1d2.js +2 -0
  837. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  838. package/dist/ui-library/p-0edd3091.entry.js +2 -0
  839. package/dist/ui-library/{p-b6f47c9d.entry.js.map → p-0edd3091.entry.js.map} +1 -1
  840. package/dist/ui-library/p-150b7664.entry.js +2 -0
  841. package/dist/ui-library/{p-66fe54b3.entry.js.map → p-150b7664.entry.js.map} +1 -1
  842. package/dist/ui-library/p-1f5840b5.entry.js +2 -0
  843. package/dist/ui-library/p-1f5840b5.entry.js.map +1 -0
  844. package/dist/ui-library/p-28cc013e.entry.js +2 -0
  845. package/dist/ui-library/p-28cc013e.entry.js.map +1 -0
  846. package/dist/ui-library/p-3424bbc0.entry.js +2 -0
  847. package/dist/ui-library/p-3424bbc0.entry.js.map +1 -0
  848. package/dist/ui-library/p-348c68a8.entry.js +2 -0
  849. package/dist/ui-library/p-348c68a8.entry.js.map +1 -0
  850. package/dist/ui-library/p-3723ca06.entry.js +2 -0
  851. package/dist/ui-library/p-3723ca06.entry.js.map +1 -0
  852. package/dist/ui-library/p-37aeac5e.entry.js +2 -0
  853. package/dist/ui-library/{p-22c9b8c3.entry.js.map → p-37aeac5e.entry.js.map} +1 -1
  854. package/dist/ui-library/p-3d7fb086.entry.js +2 -0
  855. package/dist/ui-library/p-3d7fb086.entry.js.map +1 -0
  856. package/dist/ui-library/{p-5af44076.entry.js → p-457f7373.entry.js} +2 -2
  857. package/dist/ui-library/{p-5af44076.entry.js.map → p-457f7373.entry.js.map} +1 -1
  858. package/dist/ui-library/p-4a667f31.entry.js +2 -0
  859. package/dist/ui-library/p-4a667f31.entry.js.map +1 -0
  860. package/dist/ui-library/p-50dae789.entry.js +2 -0
  861. package/dist/ui-library/{p-4435ff73.entry.js.map → p-50dae789.entry.js.map} +1 -1
  862. package/dist/ui-library/{p-b351f889.entry.js → p-546e33d9.entry.js} +2 -2
  863. package/dist/ui-library/{p-ac099e6b.entry.js → p-5db3a705.entry.js} +2 -2
  864. package/dist/ui-library/{p-ac099e6b.entry.js.map → p-5db3a705.entry.js.map} +1 -1
  865. package/dist/ui-library/{p-e5020f0d.js → p-61e66671.js} +2 -2
  866. package/dist/ui-library/p-6296779b.entry.js +2 -0
  867. package/dist/ui-library/p-6296779b.entry.js.map +1 -0
  868. package/dist/ui-library/p-64b4755d.entry.js +2 -0
  869. package/dist/ui-library/{p-ee950ce2.entry.js.map → p-64b4755d.entry.js.map} +1 -1
  870. package/dist/ui-library/p-6c1b046e.entry.js +2 -0
  871. package/dist/ui-library/p-6c1b046e.entry.js.map +1 -0
  872. package/dist/ui-library/p-7115316e.entry.js +2 -0
  873. package/dist/ui-library/p-7115316e.entry.js.map +1 -0
  874. package/dist/ui-library/p-73dd493f.entry.js +2 -0
  875. package/dist/ui-library/p-73dd493f.entry.js.map +1 -0
  876. package/dist/ui-library/{p-0fdb185d.js → p-7f856f00.js} +1 -1
  877. package/dist/ui-library/{p-052aa8d3.js → p-8227aaed.js} +1 -1
  878. package/dist/ui-library/{p-8c0971e0.js → p-842b492e.js} +1 -1
  879. package/dist/ui-library/{p-0f510624.js → p-862d474e.js} +1 -1
  880. package/dist/ui-library/p-862d474e.js.map +1 -0
  881. package/dist/ui-library/p-870b988d.entry.js +2 -0
  882. package/dist/ui-library/{p-3f1a5ecb.entry.js.map → p-870b988d.entry.js.map} +1 -1
  883. package/dist/ui-library/{p-13b43e04.entry.js → p-884c5cf9.entry.js} +2 -2
  884. package/dist/ui-library/p-8888a367.entry.js +2 -0
  885. package/dist/ui-library/{p-878226a0.entry.js.map → p-8888a367.entry.js.map} +1 -1
  886. package/dist/ui-library/{p-7d95def3.js → p-8bfb4bfc.js} +1 -1
  887. package/dist/ui-library/p-8ced18d8.entry.js +2 -0
  888. package/dist/ui-library/p-8ced18d8.entry.js.map +1 -0
  889. package/dist/ui-library/{p-dfed33c5.entry.js → p-935c78a7.entry.js} +2 -2
  890. package/dist/ui-library/p-961bd001.entry.js +2 -0
  891. package/dist/ui-library/{p-db34a6cc.entry.js.map → p-961bd001.entry.js.map} +1 -1
  892. package/dist/ui-library/{p-9ace84c7.js → p-998de05d.js} +1 -1
  893. package/dist/ui-library/p-9b08068d.entry.js +2 -0
  894. package/dist/ui-library/p-9b08068d.entry.js.map +1 -0
  895. package/dist/ui-library/p-9c79341d.entry.js +2 -0
  896. package/dist/ui-library/{p-3cc5addb.entry.js.map → p-9c79341d.entry.js.map} +1 -1
  897. package/dist/ui-library/{p-698bb2c8.js → p-a1502802.js} +1 -1
  898. package/dist/ui-library/{p-91b51800.entry.js → p-a9c159f2.entry.js} +2 -2
  899. package/dist/ui-library/p-ac57ba5c.entry.js +2 -0
  900. package/dist/ui-library/{p-a6a9ee96.entry.js.map → p-ac57ba5c.entry.js.map} +1 -1
  901. package/dist/ui-library/p-af15381b.js +3 -0
  902. package/dist/ui-library/p-af15381b.js.map +1 -0
  903. package/dist/ui-library/p-b1a5f3cd.entry.js +2 -0
  904. package/dist/ui-library/p-b1a5f3cd.entry.js.map +1 -0
  905. package/dist/ui-library/p-b385a241.entry.js +2 -0
  906. package/dist/ui-library/{p-cd67da3d.entry.js.map → p-b385a241.entry.js.map} +1 -1
  907. package/dist/ui-library/p-b74c5d6b.entry.js +2 -0
  908. package/dist/ui-library/p-b74c5d6b.entry.js.map +1 -0
  909. package/dist/ui-library/p-bf2fb53f.entry.js +2 -0
  910. package/dist/ui-library/p-bf2fb53f.entry.js.map +1 -0
  911. package/dist/ui-library/p-c2c7370b.entry.js +2 -0
  912. package/dist/ui-library/{p-f1dc3a88.entry.js.map → p-c2c7370b.entry.js.map} +1 -1
  913. package/dist/ui-library/p-caea1eb6.entry.js +2 -0
  914. package/dist/ui-library/{p-7e3ad38a.entry.js.map → p-caea1eb6.entry.js.map} +1 -1
  915. package/dist/ui-library/{p-25bb1752.entry.js → p-d3f5b9a8.entry.js} +2 -2
  916. package/dist/ui-library/p-d42b18eb.entry.js +2 -0
  917. package/dist/ui-library/{p-264d4ea8.entry.js.map → p-d42b18eb.entry.js.map} +1 -1
  918. package/dist/ui-library/p-d95e292e.entry.js +2 -0
  919. package/dist/ui-library/{p-db936ad7.entry.js.map → p-d95e292e.entry.js.map} +1 -1
  920. package/dist/ui-library/p-da7f3dbd.entry.js +2 -0
  921. package/dist/ui-library/p-da7f3dbd.entry.js.map +1 -0
  922. package/dist/ui-library/p-dfb89b6a.entry.js +2 -0
  923. package/dist/ui-library/p-dfb89b6a.entry.js.map +1 -0
  924. package/dist/ui-library/p-e080d5b6.js +2 -0
  925. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  926. package/dist/ui-library/p-e6032375.entry.js +2 -0
  927. package/dist/ui-library/p-e6032375.entry.js.map +1 -0
  928. package/dist/ui-library/p-e60d2324.entry.js +2 -0
  929. package/dist/ui-library/p-e60d2324.entry.js.map +1 -0
  930. package/dist/ui-library/p-e8298c6e.entry.js +2 -0
  931. package/dist/ui-library/{p-a457fee8.entry.js.map → p-e8298c6e.entry.js.map} +1 -1
  932. package/dist/ui-library/p-ed279165.entry.js +2 -0
  933. package/dist/ui-library/p-ed279165.entry.js.map +1 -0
  934. package/dist/ui-library/p-ed61b75c.entry.js +2 -0
  935. package/dist/ui-library/p-ed61b75c.entry.js.map +1 -0
  936. package/dist/ui-library/p-f136a6b2.js +2 -0
  937. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  938. package/dist/ui-library/p-f1ab3384.entry.js +2 -0
  939. package/dist/ui-library/{p-37557787.entry.js.map → p-f1ab3384.entry.js.map} +1 -1
  940. package/dist/ui-library/p-f4ef481c.entry.js +2 -0
  941. package/dist/ui-library/p-f4ef481c.entry.js.map +1 -0
  942. package/dist/ui-library/{p-9b354f5d.entry.js → p-f8cbb8da.entry.js} +2 -2
  943. package/dist/ui-library/ui-library.css +1 -10
  944. package/dist/ui-library/ui-library.esm.js +1 -1
  945. package/dist/ui-library/ui-library.esm.js.map +1 -1
  946. package/package.json +16 -17
  947. package/dist/cjs/event-listeners-fdfe838c.js +0 -61
  948. package/dist/cjs/event-listeners-fdfe838c.js.map +0 -1
  949. package/dist/cjs/focus-visible-ae2470dd.js +0 -47
  950. package/dist/cjs/form-2df8c5bb.js +0 -20
  951. package/dist/cjs/form-control-9769b310.js +0 -36
  952. package/dist/cjs/form-control-9769b310.js.map +0 -1
  953. package/dist/cjs/index-900437fc.js.map +0 -1
  954. package/dist/cjs/modal-d5f074c7.js +0 -52
  955. package/dist/cjs/modal-d5f074c7.js.map +0 -1
  956. package/dist/cjs/popover-2df7e154.js.map +0 -1
  957. package/dist/cjs/popup-f1d9910f.js +0 -103
  958. package/dist/cjs/popup-f1d9910f.js.map +0 -1
  959. package/dist/cjs/scroll-2c4200dc.js +0 -68
  960. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  961. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  962. package/dist/cjs/six-checkbox.cjs.entry.js +0 -127
  963. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  964. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  965. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  966. package/dist/cjs/slot-6e6a400f.js +0 -53
  967. package/dist/cjs/slot-6e6a400f.js.map +0 -1
  968. package/dist/cjs/types-47199040.js +0 -17
  969. package/dist/cjs/types-47199040.js.map +0 -1
  970. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  971. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  972. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  973. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  974. package/dist/components/set-attributes.d.ts +0 -11
  975. package/dist/components/set-attributes.js +0 -8
  976. package/dist/components/set-attributes.js.map +0 -1
  977. package/dist/components/set-attributes2.js +0 -71
  978. package/dist/components/set-attributes2.js.map +0 -1
  979. package/dist/components/six-tag2.js +0 -102
  980. package/dist/components/six-tag2.js.map +0 -1
  981. package/dist/esm/event-listeners-f6e5b0ab.js +0 -59
  982. package/dist/esm/event-listeners-f6e5b0ab.js.map +0 -1
  983. package/dist/esm/focus-visible-fc6ac671.js +0 -45
  984. package/dist/esm/form-81252534.js +0 -18
  985. package/dist/esm/form-control-b0febe88.js +0 -34
  986. package/dist/esm/form-control-b0febe88.js.map +0 -1
  987. package/dist/esm/index-8a74f992.js.map +0 -1
  988. package/dist/esm/modal-7d32e141.js +0 -49
  989. package/dist/esm/modal-7d32e141.js.map +0 -1
  990. package/dist/esm/popover-136d1f73.js.map +0 -1
  991. package/dist/esm/popup-7f89a001.js +0 -98
  992. package/dist/esm/popup-7f89a001.js.map +0 -1
  993. package/dist/esm/scroll-774762d6.js +0 -64
  994. package/dist/esm/set-attributes_2.entry.js +0 -68
  995. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  996. package/dist/esm/six-checkbox.entry.js +0 -123
  997. package/dist/esm/six-checkbox.entry.js.map +0 -1
  998. package/dist/esm/six-menu-item.entry.js +0 -59
  999. package/dist/esm/six-menu-item.entry.js.map +0 -1
  1000. package/dist/esm/slot-ad36df3a.js +0 -48
  1001. package/dist/esm/slot-ad36df3a.js.map +0 -1
  1002. package/dist/esm/types-59b455aa.js +0 -17
  1003. package/dist/esm/types-59b455aa.js.map +0 -1
  1004. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  1005. package/dist/ui-library/p-0f510624.js.map +0 -1
  1006. package/dist/ui-library/p-14c1ec31.entry.js +0 -2
  1007. package/dist/ui-library/p-14c1ec31.entry.js.map +0 -1
  1008. package/dist/ui-library/p-15559d38.js +0 -2
  1009. package/dist/ui-library/p-15559d38.js.map +0 -1
  1010. package/dist/ui-library/p-1d5ee1a0.entry.js +0 -2
  1011. package/dist/ui-library/p-1d5ee1a0.entry.js.map +0 -1
  1012. package/dist/ui-library/p-22c9b8c3.entry.js +0 -2
  1013. package/dist/ui-library/p-264d4ea8.entry.js +0 -2
  1014. package/dist/ui-library/p-346f9557.entry.js +0 -2
  1015. package/dist/ui-library/p-346f9557.entry.js.map +0 -1
  1016. package/dist/ui-library/p-37557787.entry.js +0 -2
  1017. package/dist/ui-library/p-3cc5addb.entry.js +0 -2
  1018. package/dist/ui-library/p-3f1a5ecb.entry.js +0 -2
  1019. package/dist/ui-library/p-411ed539.entry.js +0 -2
  1020. package/dist/ui-library/p-411ed539.entry.js.map +0 -1
  1021. package/dist/ui-library/p-4435ff73.entry.js +0 -2
  1022. package/dist/ui-library/p-538f3c50.entry.js +0 -2
  1023. package/dist/ui-library/p-538f3c50.entry.js.map +0 -1
  1024. package/dist/ui-library/p-5800663b.entry.js +0 -2
  1025. package/dist/ui-library/p-5800663b.entry.js.map +0 -1
  1026. package/dist/ui-library/p-59210f0b.js +0 -2
  1027. package/dist/ui-library/p-59210f0b.js.map +0 -1
  1028. package/dist/ui-library/p-5ba3a0fe.entry.js +0 -2
  1029. package/dist/ui-library/p-5ba3a0fe.entry.js.map +0 -1
  1030. package/dist/ui-library/p-613283a7.entry.js +0 -2
  1031. package/dist/ui-library/p-613283a7.entry.js.map +0 -1
  1032. package/dist/ui-library/p-6153045b.js +0 -3
  1033. package/dist/ui-library/p-6153045b.js.map +0 -1
  1034. package/dist/ui-library/p-6197fe2f.entry.js +0 -2
  1035. package/dist/ui-library/p-6197fe2f.entry.js.map +0 -1
  1036. package/dist/ui-library/p-658d9f79.entry.js +0 -2
  1037. package/dist/ui-library/p-658d9f79.entry.js.map +0 -1
  1038. package/dist/ui-library/p-66fe54b3.entry.js +0 -2
  1039. package/dist/ui-library/p-724875b0.entry.js +0 -2
  1040. package/dist/ui-library/p-724875b0.entry.js.map +0 -1
  1041. package/dist/ui-library/p-7afafb9d.entry.js +0 -2
  1042. package/dist/ui-library/p-7afafb9d.entry.js.map +0 -1
  1043. package/dist/ui-library/p-7e3ad38a.entry.js +0 -2
  1044. package/dist/ui-library/p-878226a0.entry.js +0 -2
  1045. package/dist/ui-library/p-95fbdd0b.entry.js +0 -2
  1046. package/dist/ui-library/p-95fbdd0b.entry.js.map +0 -1
  1047. package/dist/ui-library/p-9c1be3fb.entry.js +0 -2
  1048. package/dist/ui-library/p-9c1be3fb.entry.js.map +0 -1
  1049. package/dist/ui-library/p-a0f290d0.entry.js +0 -2
  1050. package/dist/ui-library/p-a2035543.entry.js +0 -2
  1051. package/dist/ui-library/p-a2035543.entry.js.map +0 -1
  1052. package/dist/ui-library/p-a457fee8.entry.js +0 -2
  1053. package/dist/ui-library/p-a55c7258.entry.js +0 -2
  1054. package/dist/ui-library/p-a55c7258.entry.js.map +0 -1
  1055. package/dist/ui-library/p-a6a9ee96.entry.js +0 -2
  1056. package/dist/ui-library/p-ab91c2a9.entry.js +0 -2
  1057. package/dist/ui-library/p-ab91c2a9.entry.js.map +0 -1
  1058. package/dist/ui-library/p-ae601a0f.entry.js +0 -2
  1059. package/dist/ui-library/p-ae601a0f.entry.js.map +0 -1
  1060. package/dist/ui-library/p-b57afbe4.entry.js +0 -2
  1061. package/dist/ui-library/p-b57afbe4.entry.js.map +0 -1
  1062. package/dist/ui-library/p-b6f47c9d.entry.js +0 -2
  1063. package/dist/ui-library/p-c03ebf7d.entry.js +0 -2
  1064. package/dist/ui-library/p-c03ebf7d.entry.js.map +0 -1
  1065. package/dist/ui-library/p-cba69e9d.entry.js +0 -2
  1066. package/dist/ui-library/p-cba69e9d.entry.js.map +0 -1
  1067. package/dist/ui-library/p-cd67da3d.entry.js +0 -2
  1068. package/dist/ui-library/p-cdaed936.entry.js +0 -2
  1069. package/dist/ui-library/p-cdaed936.entry.js.map +0 -1
  1070. package/dist/ui-library/p-d1bda563.entry.js +0 -2
  1071. package/dist/ui-library/p-d1bda563.entry.js.map +0 -1
  1072. package/dist/ui-library/p-db34a6cc.entry.js +0 -2
  1073. package/dist/ui-library/p-db936ad7.entry.js +0 -2
  1074. package/dist/ui-library/p-dc4f41d8.entry.js +0 -2
  1075. package/dist/ui-library/p-e775dcb4.entry.js +0 -2
  1076. package/dist/ui-library/p-e775dcb4.entry.js.map +0 -1
  1077. package/dist/ui-library/p-ee950ce2.entry.js +0 -2
  1078. package/dist/ui-library/p-f1dc3a88.entry.js +0 -2
  1079. /package/dist/ui-library/{p-5654e4c7.js.map → p-06ba4450.js.map} +0 -0
  1080. /package/dist/ui-library/{p-b351f889.entry.js.map → p-546e33d9.entry.js.map} +0 -0
  1081. /package/dist/ui-library/{p-e5020f0d.js.map → p-61e66671.js.map} +0 -0
  1082. /package/dist/ui-library/{p-0fdb185d.js.map → p-7f856f00.js.map} +0 -0
  1083. /package/dist/ui-library/{p-052aa8d3.js.map → p-8227aaed.js.map} +0 -0
  1084. /package/dist/ui-library/{p-8c0971e0.js.map → p-842b492e.js.map} +0 -0
  1085. /package/dist/ui-library/{p-13b43e04.entry.js.map → p-884c5cf9.entry.js.map} +0 -0
  1086. /package/dist/ui-library/{p-7d95def3.js.map → p-8bfb4bfc.js.map} +0 -0
  1087. /package/dist/ui-library/{p-dfed33c5.entry.js.map → p-935c78a7.entry.js.map} +0 -0
  1088. /package/dist/ui-library/{p-9ace84c7.js.map → p-998de05d.js.map} +0 -0
  1089. /package/dist/ui-library/{p-698bb2c8.js.map → p-a1502802.js.map} +0 -0
  1090. /package/dist/ui-library/{p-91b51800.entry.js.map → p-a9c159f2.entry.js.map} +0 -0
  1091. /package/dist/ui-library/{p-25bb1752.entry.js.map → p-d3f5b9a8.entry.js.map} +0 -0
  1092. /package/dist/ui-library/{p-9b354f5d.entry.js.map → p-f8cbb8da.entry.js.map} +0 -0
@@ -1,68 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-8a74f992.js';
2
-
3
- const SetAttributes = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.value = {};
7
- }
8
- componentWillLoad() {
9
- this.injectAttrs();
10
- }
11
- attrsUpdated() {
12
- this.injectAttrs();
13
- }
14
- injectAttrs() {
15
- const slot = this.host.firstElementChild;
16
- if (typeof (slot === null || slot === void 0 ? void 0 : slot.assignedElements) !== 'function') {
17
- return;
18
- }
19
- const child = slot.assignedElements().pop();
20
- if (!child) {
21
- return;
22
- }
23
- const types = {
24
- // no need for function and bigint
25
- undefined: (key) => child.removeAttribute(key),
26
- boolean: (key, value) => {
27
- if (value != null) {
28
- child.setAttribute(key, '');
29
- }
30
- else {
31
- child.removeAttribute(key);
32
- }
33
- },
34
- number: (key, value) => child.setAttribute(key, value),
35
- string: (key, value) => child.setAttribute(key, value),
36
- object: (key, value) => child.setAttribute(key, JSON.stringify(value)),
37
- };
38
- for (const [key, value] of Object.entries(this.value)) {
39
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
40
- // @ts-ignore
41
- types[typeof value](key, value);
42
- }
43
- }
44
- render() {
45
- return h("slot", null);
46
- }
47
- get host() { return getElement(this); }
48
- static get watchers() { return {
49
- "value": ["attrsUpdated"]
50
- }; }
51
- };
52
-
53
- const sixStageIndicatorCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:grid}.center-content{display:grid;align-self:center;justify-self:center;grid-gap:5px;grid-auto-flow:column}.align-item{margin:auto}.indicator,.indicator--acceptance,.indicator--etu,.indicator--dev,.indicator--itu{font-family:var(--six-font-family);font-size:14px;font-weight:var(--six-font-weight-bold);display:grid;align-content:center;width:100%;height:24px}.indicator--itu{background-color:var(--six-color-success-600);color:var(--six-color-web-rock-900)}.indicator--dev{background-color:var(--six-color-web-rock-900);color:var(--six-color-white)}.indicator--etu{background-color:var(--six-color-action-600);color:var(--six-color-white)}.indicator--acceptance{background-color:var(--six-color-warning-800);color:var(--six-color-web-rock-900)}";
54
-
55
- const SixStageIndicator = class {
56
- constructor(hostRef) {
57
- registerInstance(this, hostRef);
58
- this.stage = null;
59
- }
60
- render() {
61
- return this.stage == null || this.stage == 'PROD' ? null : (h("div", { class: `indicator--${this.stage.toLowerCase()}` }, h("div", { class: "center-content" }, h("six-icon", { class: "align-item", size: "small" }, "error_outline"), h("span", { class: 'align-item' }, h("slot", null)))));
62
- }
63
- };
64
- SixStageIndicator.style = sixStageIndicatorCss;
65
-
66
- export { SetAttributes as set_attributes, SixStageIndicator as six_stage_indicator };
67
-
68
- //# sourceMappingURL=set-attributes_2.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"set-attributes.six-stage-indicator.entry.js","mappings":";;MAKa,aAAa;;;iBAIR,EAAE;;EAElB,iBAAiB;IACf,IAAI,CAAC,WAAW,EAAE,CAAC;GACpB;EAGD,YAAY;IACV,IAAI,CAAC,WAAW,EAAE,CAAC;GACpB;EAEO,WAAW;IACjB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAoC,CAAC;IAE5D,IAAI,QAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAA,KAAK,UAAU,EAAE;MAChD,OAAO;KACR;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC;IAE5C,IAAI,CAAC,KAAK,EAAE;MACV,OAAO;KACR;IAED,MAAM,KAAK,GAAG;;MAEZ,SAAS,EAAE,CAAC,GAAW,KAAK,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;MACtD,OAAO,EAAE,CAAC,GAAW,EAAE,KAAc;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE;UACjB,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;SAC7B;aAAM;UACL,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC5B;OACF;MACD,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;MACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;MACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KACvF,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;;;MAGrD,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KACjC;GACF;EAED,MAAM;IACJ,OAAO,eAAQ,CAAC;GACjB;;;;;;;ACzDH,MAAM,oBAAoB,GAAG,+1BAA+1B;;MCS/2B,iBAAiB;;;iBAED,IAAI;;EAE/B,MAAM;IACJ,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,GAAG,IAAI,IACtD,WAAK,KAAK,EAAE,cAAc,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAClD,WAAK,KAAK,EAAC,gBAAgB,IACzB,gBAAU,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,oBAE9B,EACX,YAAM,KAAK,EAAE,YAAY,IACvB,eAAQ,CACH,CACH,CACF,CACP,CAAC;GACH;;;;;;","names":[],"sources":["src/wrappers/set-attributes/set-attributes.tsx","src/components/six-stage-indicator/six-stage-indicator.scss?tag=six-stage-indicator&encapsulation=shadow","src/components/six-stage-indicator/six-stage-indicator.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch } from '@stencil/core';\n\n@Component({\n tag: 'set-attributes',\n})\nexport class SetAttributes {\n @Element() host!: HTMLSetAttributesElement;\n\n /** Attributes map */\n @Prop() value = {};\n\n componentWillLoad() {\n this.injectAttrs();\n }\n\n @Watch('value')\n attrsUpdated() {\n this.injectAttrs();\n }\n\n private injectAttrs() {\n const slot = this.host.firstElementChild as HTMLSlotElement;\n\n if (typeof slot?.assignedElements !== 'function') {\n return;\n }\n\n const child = slot.assignedElements().pop();\n\n if (!child) {\n return;\n }\n\n const types = {\n // no need for function and bigint\n undefined: (key: string) => child.removeAttribute(key),\n boolean: (key: string, value: unknown) => {\n if (value != null) {\n child.setAttribute(key, '');\n } else {\n child.removeAttribute(key);\n }\n },\n number: (key: string, value: string) => child.setAttribute(key, value),\n string: (key: string, value: string) => child.setAttribute(key, value),\n object: (key: string, value: string) => child.setAttribute(key, JSON.stringify(value)),\n };\n\n for (const [key, value] of Object.entries(this.value)) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n types[typeof value](key, value);\n }\n }\n\n render() {\n return <slot />;\n }\n}\n","@import 'src/global/component';\n\n:host {\n display: grid;\n}\n\n.center-content {\n display: grid;\n align-self: center;\n justify-self: center;\n grid-gap: 5px;\n grid-auto-flow: column;\n}\n\n.align-item {\n margin: auto;\n}\n\n.indicator {\n font-family: var(--six-font-family);\n font-size: 14px;\n font-weight: var(--six-font-weight-bold);\n display: grid;\n align-content: center;\n width: 100%;\n height: 24px;\n\n &--itu {\n @extend .indicator;\n background-color: var(--six-color-success-600);\n color: var(--six-color-web-rock-900);\n }\n\n &--dev {\n @extend .indicator;\n background-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n }\n\n &--etu {\n @extend .indicator;\n background-color: var(--six-color-action-600);\n color: var(--six-color-white);\n }\n\n &--acceptance {\n @extend .indicator;\n background-color: var(--six-color-warning-800);\n color: var(--six-color-web-rock-900);\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nexport type StageType = 'DEV' | 'ITU' | 'ETU' | 'ACCEPTANCE' | 'PROD' | null;\n\n@Component({\n tag: 'six-stage-indicator',\n styleUrl: 'six-stage-indicator.scss',\n shadow: true,\n})\nexport class SixStageIndicator {\n /** The indicators value attribute */\n @Prop() stage: StageType = null;\n\n render() {\n return this.stage == null || this.stage == 'PROD' ? null : (\n <div class={`indicator--${this.stage.toLowerCase()}`}>\n <div class=\"center-content\">\n <six-icon class=\"align-item\" size=\"small\">\n error_outline\n </six-icon>\n <span class={'align-item'}>\n <slot />\n </span>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,123 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8a74f992.js';
2
- import { F as FormControl } from './form-control-b0febe88.js';
3
- import { h as hasSlot } from './slot-ad36df3a.js';
4
- import { E as EventListeners } from './event-listeners-f6e5b0ab.js';
5
-
6
- const sixCheckboxCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\"}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:inline-block}.checkbox{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-input-font-size-medium);font-weight:var(--six-input-font-weight);color:var(--six-input-color);vertical-align:middle;cursor:pointer}.checkbox__control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size);border:solid var(--six-border-width) var(--six-input-border-color);border-radius:0;background-color:var(--six-input-background-color);color:var(--six-checkbox-color);transition:var(--six-transition-fast) border-color, var(--six-transition-fast) background-color, var(--six-transition-fast) color, var(--six-transition-fast) box-shadow}.checkbox__control input[type=checkbox]{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__control .checkbox__icon{display:inline-flex;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size)}.checkbox__control .checkbox__icon svg{width:100%;height:100%}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-hover)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--six-selection-control-color);background-color:var(--six-selection-control-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-focus);background-color:var(--six-input-border-color-focus)}.checkbox--disabled{cursor:not-allowed;color:var(--six-input-color-disabled)}.checkbox--disabled .checkbox__control{border-color:var(--six-input-border-color-disabled)}.checkbox--disabled.checkbox--checked .checkbox__control,.checkbox--disabled.checkbox--indeterminate .checkbox__control{background-color:var(--six-selection-control-color-disabled)}.checkbox--invalid:not(.checkbox--disabled) .checkbox__control{border-color:var(--six-input-border-color-danger)}.checkbox__text{line-height:var(--six-selection-control-toggle-size);margin-left:0.5em;user-select:none}";
7
-
8
- let id = 0;
9
- const SixCheckbox = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.sixBlur = createEvent(this, "six-checkbox-blur", 7);
13
- this.sixChange = createEvent(this, "six-checkbox-change", 7);
14
- this.sixFocus = createEvent(this, "six-checkbox-focus", 7);
15
- this.inputId = `checkbox-${++id}`;
16
- this.labelId = `checkbox-label-${id}`;
17
- this.textId = `checkbox-text-${id}`;
18
- this.errorTextId = `input-error-text-${id}`;
19
- this.eventListeners = new EventListeners();
20
- this.handleChange = () => {
21
- if (this.nativeInput != null) {
22
- this.checked = this.nativeInput.checked;
23
- this.indeterminate = false;
24
- this.sixChange.emit();
25
- }
26
- };
27
- this.handleBlur = () => {
28
- this.hasFocus = false;
29
- this.sixBlur.emit();
30
- };
31
- this.handleFocus = () => {
32
- this.hasFocus = true;
33
- this.sixFocus.emit();
34
- };
35
- this.handleMouseDown = (event) => {
36
- var _a;
37
- // Prevent clicks on the label from briefly blurring the input
38
- event.preventDefault();
39
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus();
40
- };
41
- this.hasFocus = false;
42
- this.hasLabelSlot = false;
43
- this.hasErrorSlot = false;
44
- this.name = '';
45
- this.value = 'on';
46
- this.disabled = false;
47
- this.required = false;
48
- this.label = '';
49
- this.errorText = '';
50
- this.errorTextCount = undefined;
51
- this.invalid = false;
52
- this.checked = false;
53
- this.indeterminate = false;
54
- }
55
- handleCheckedChange() {
56
- if (this.nativeInput == null)
57
- return;
58
- this.nativeInput.checked = this.checked;
59
- this.checked = this.nativeInput.checked;
60
- this.nativeInput.indeterminate = this.indeterminate;
61
- }
62
- handleLabelChange() {
63
- this.handleSlotChange();
64
- }
65
- connectedCallback() {
66
- var _a;
67
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
68
- this.eventListeners.forward('six-checkbox-change', 'change', this.host);
69
- this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);
70
- this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);
71
- }
72
- disconnectedCallback() {
73
- var _a;
74
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
75
- this.eventListeners.removeAll();
76
- }
77
- componentWillLoad() {
78
- this.handleSlotChange();
79
- }
80
- componentDidLoad() {
81
- const nativeInput = this.nativeInput;
82
- if (nativeInput == null) {
83
- return;
84
- }
85
- nativeInput.indeterminate = this.indeterminate;
86
- }
87
- /** Sets focus on the checkbox. */
88
- async setFocus(options) {
89
- var _a;
90
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus(options);
91
- }
92
- /** Removes focus from the checkbox. */
93
- async removeFocus() {
94
- var _a;
95
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.blur();
96
- }
97
- handleSlotChange() {
98
- this.hasLabelSlot = hasSlot(this.host, 'label');
99
- this.hasErrorSlot = hasSlot(this.host, 'error-text');
100
- }
101
- render() {
102
- return (h(FormControl, { inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, hasErrorTextSlot: this.hasErrorSlot, errorText: this.errorText, errorTextCount: this.errorTextCount, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { part: "base", class: {
103
- checkbox: true,
104
- 'checkbox--checked': this.checked,
105
- 'checkbox--disabled': this.disabled,
106
- 'checkbox--focused': this.hasFocus,
107
- 'checkbox--invalid': this.invalid,
108
- 'checkbox--indeterminate': this.indeterminate,
109
- }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { part: "control", class: "checkbox__control" }, this.checked && (h("span", { part: "checked-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(3.428571, 3.428571)" }, h("path", { d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(2.285714, 6.857143)" }, h("path", { d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { ref: (el) => (this.nativeInput = el), id: this.inputId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "checkbox", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { part: "text", id: this.textId, class: "checkbox__text" }, h("slot", null)))));
110
- }
111
- get host() { return getElement(this); }
112
- static get watchers() { return {
113
- "checked": ["handleCheckedChange"],
114
- "indeterminate": ["handleCheckedChange"],
115
- "errorText": ["handleLabelChange"],
116
- "label": ["handleLabelChange"]
117
- }; }
118
- };
119
- SixCheckbox.style = sixCheckboxCss;
120
-
121
- export { SixCheckbox as six_checkbox };
122
-
123
- //# sourceMappingURL=six-checkbox.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"six-checkbox.entry.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,imJAAimJ;;ACMxnJ,IAAI,EAAE,GAAG,CAAC,CAAC;MAuBE,WAAW;;;;;;IACd,YAAO,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC;IAC7B,YAAO,GAAG,kBAAkB,EAAE,EAAE,CAAC;IACjC,WAAM,GAAG,iBAAiB,EAAE,EAAE,CAAC;IAC/B,gBAAW,GAAG,oBAAoB,EAAE,EAAE,CAAC;IAEvC,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IA0GtC,iBAAY,GAAG;MACrB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;OACvB;KACF,CAAC;IAEM,eAAU,GAAG;MACnB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;MACtB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;IAEM,gBAAW,GAAG;MACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;MACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACtB,CAAC;IAEM,oBAAe,GAAG,CAAC,KAAiB;;;MAE1C,KAAK,CAAC,cAAc,EAAE,CAAC;MACvB,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,EAAE,CAAC;KAC3B,CAAC;oBA5HkB,KAAK;wBACD,KAAK;wBACL,KAAK;gBAGd,EAAE;iBASD,IAAI;oBAGD,KAAK;oBAGL,KAAK;iBAGR,EAAE;qBAGqB,EAAE;;mBAMN,KAAK;mBAGU,KAAK;yBAGC,KAAK;;EAa7D,mBAAmB;IACjB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;MAAE,OAAO;IAErC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;IACxC,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;GACrD;EAID,iBAAiB;IACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACzB;EAED,iBAAiB;;IACf,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC5E,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,qBAAqB,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACxE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;GACvE;EAED,oBAAoB;;IAClB,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/E,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;GACjC;EAED,iBAAiB;IACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACzB;EAED,gBAAgB;IACd,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IACrC,IAAI,WAAW,IAAI,IAAI,EAAE;MACvB,OAAO;KACR;IAED,WAAW,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;GAChD;;EAID,MAAM,QAAQ,CAAC,OAAsB;;IACnC,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;GAClC;;EAID,MAAM,WAAW;;IACf,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,CAAC;GAC1B;EA0BO,gBAAgB;IACtB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAChD,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;GACtD;EAED,MAAM;IACJ,QACE,EAAC,WAAW,IACV,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,gBAAgB,EAAE,IAAI,CAAC,YAAY,EACnC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,YAAY,EAAE,IAAI,CAAC,OAAO,IAE1B,aACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI,CAAC,OAAO;QACjC,oBAAoB,EAAE,IAAI,CAAC,QAAQ;QACnC,mBAAmB,EAAE,IAAI,CAAC,QAAQ;QAClC,mBAAmB,EAAE,IAAI,CAAC,OAAO;QACjC,yBAAyB,EAAE,IAAI,CAAC,aAAa;OAC9C,EACD,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,IAAI,CAAC,eAAe,IAEjC,YAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,mBAAmB,IAC3C,IAAI,CAAC,OAAO,KACX,YAAM,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,gBAAgB,IAC9C,WAAK,OAAO,EAAC,WAAW,IACtB,SAAG,MAAM,EAAC,MAAM,kBAAc,GAAG,EAAC,IAAI,EAAC,MAAM,eAAW,SAAS,oBAAgB,OAAO,IACtF,SAAG,MAAM,EAAC,cAAc,kBAAc,GAAG,IACvC,SAAG,SAAS,EAAC,+BAA+B,IAC1C,YAAM,CAAC,EAAC,sCAAsC,GAAQ,EACtD,YAAM,CAAC,EAAC,sCAAsC,GAAQ,CACpD,CACF,CACF,CACA,CACD,CACR,EAEA,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,aAAa,KAClC,YAAM,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,gBAAgB,IACpD,WAAK,OAAO,EAAC,WAAW,IACtB,SAAG,MAAM,EAAC,MAAM,kBAAc,GAAG,EAAC,IAAI,EAAC,MAAM,eAAW,SAAS,oBAAgB,OAAO,IACtF,SAAG,MAAM,EAAC,cAAc,kBAAc,GAAG,IACvC,SAAG,SAAS,EAAC,+BAA+B,IAC1C,YAAM,CAAC,EAAC,+CAA+C,GAAQ,CAC7D,CACF,CACF,CACA,CACD,CACR,EAED,aACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EACpC,EAAE,EAAE,IAAI,CAAC,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,UAAU,kBACD,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,qBAC5B,IAAI,CAAC,OAAO,EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,CACG,EAEP,YAAM,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,gBAAgB,IACvD,eAAQ,CACH,CACD,CACI,EACd;GACH;;;;;;;;;;;;;","names":[],"sources":["src/components/six-checkbox/six-checkbox.scss?tag=six-checkbox&encapsulation=shadow","src/components/six-checkbox/six-checkbox.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: inline-block;\n}\n\n.checkbox {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-input-font-size-medium);\n font-weight: var(--six-input-font-weight);\n color: var(--six-input-color);\n vertical-align: middle;\n cursor: pointer;\n}\n\n.checkbox__control {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n border: solid var(--six-border-width) var(--six-input-border-color);\n border-radius: 0;\n background-color: var(--six-input-background-color);\n color: var(--six-checkbox-color);\n transition: var(--six-transition-fast) border-color, var(--six-transition-fast) background-color,\n var(--six-transition-fast) color, var(--six-transition-fast) box-shadow;\n\n input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n\n .checkbox__icon {\n display: inline-flex;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n\n svg {\n width: 100%;\n height: 100%;\n }\n }\n}\n\n// Hover\n.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-hover);\n}\n\n// Checked/indeterminate\n.checkbox--checked .checkbox__control,\n.checkbox--indeterminate .checkbox__control {\n border-color: var(--six-selection-control-color);\n background-color: var(--six-selection-control-color);\n}\n\n// Checked/indeterminate + hover\n.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,\n.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-focus);\n background-color: var(--six-input-border-color-focus);\n}\n\n// Disabled\n.checkbox--disabled {\n cursor: not-allowed;\n color: var(--six-input-color-disabled);\n\n .checkbox__control {\n border-color: var(--six-input-border-color-disabled);\n }\n\n &.checkbox--checked .checkbox__control,\n &.checkbox--indeterminate .checkbox__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n}\n\n// Invalid\n.checkbox--invalid:not(.checkbox--disabled) {\n .checkbox__control {\n border-color: var(--six-input-border-color-danger);\n }\n}\n\n.checkbox__text {\n line-height: var(--six-selection-control-toggle-size);\n margin-left: 0.5em;\n user-select: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The checkbox label.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n errorTextId={this.errorTextId}\n hasErrorTextSlot={this.hasErrorSlot}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"],"version":3}
@@ -1,59 +0,0 @@
1
- import { r as registerInstance, h } from './index-8a74f992.js';
2
- import { a as getTextContent } from './slot-ad36df3a.js';
3
-
4
- const sixMenuItemCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu-item{position:relative;display:flex;align-items:stretch;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:var(--six-line-height-normal);letter-spacing:var(--six-letter-spacing-normal);text-align:left;color:var(--six-input-color);border-radius:var(--six-border-radius-medium);padding:var(--six-spacing-medium) var(--six-spacing-medium);transition:var(--six-transition-fast) fill;user-select:none;white-space:nowrap;cursor:pointer}.menu-item.menu-item--focused:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--disabled{outline:none;color:var(--six-input-color-disabled);cursor:not-allowed}.menu-item .menu-item__label{flex:1 1 auto;align-self:center}.menu-item .menu-item__prefix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__prefix ::slotted(:last-child){margin-right:0.5em}.menu-item .menu-item__suffix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__suffix ::slotted(:first-child){margin-left:0.5em}.menu-item .menu-item__check{flex:0 0 auto;display:flex;align-items:center;margin-left:var(--six-spacing-small);visibility:hidden;font-size:inherit}.menu-item--checked .menu-item__check{visibility:visible}";
5
-
6
- const SixMenuItem = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.hasFocus = false;
10
- this.checked = false;
11
- this.value = '';
12
- this.disabled = false;
13
- }
14
- connectedCallback() {
15
- this.handleBlur = this.handleBlur.bind(this);
16
- this.handleFocus = this.handleFocus.bind(this);
17
- this.handleMouseEnter = this.handleMouseEnter.bind(this);
18
- this.handleMouseLeave = this.handleMouseLeave.bind(this);
19
- }
20
- /** Sets focus on the button. */
21
- async setFocus(options) {
22
- var _a;
23
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.focus(options);
24
- }
25
- /** Removes focus from the button. */
26
- async removeFocus() {
27
- var _a;
28
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.blur();
29
- }
30
- /** Returns a text label based on the contents of the menu item's default slot. */
31
- getTextLabel() {
32
- return Promise.resolve(getTextContent(this.defaultSlot));
33
- }
34
- handleBlur() {
35
- this.hasFocus = false;
36
- }
37
- handleFocus() {
38
- this.hasFocus = true;
39
- }
40
- handleMouseEnter() {
41
- return this.setFocus();
42
- }
43
- handleMouseLeave() {
44
- return this.removeFocus();
45
- }
46
- render() {
47
- return (h("div", { ref: (el) => (this.menuItem = el), part: "base", class: {
48
- 'menu-item': true,
49
- 'menu-item--checked': this.checked,
50
- 'menu-item--disabled': this.disabled,
51
- 'menu-item--focused': this.hasFocus,
52
- }, role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false', "aria-checked": this.checked ? 'true' : 'false', tabIndex: !this.disabled ? 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("span", { part: "prefix", class: "menu-item__prefix" }, h("slot", { name: "prefix" })), h("span", { part: "label", class: "menu-item__label" }, h("slot", { ref: (el) => (this.defaultSlot = el) })), h("span", { part: "suffix", class: "menu-item__suffix" }, h("slot", { name: "suffix" })), h("span", { part: "checked-icon", class: "menu-item__check" }, h("six-icon", { size: "small", "aria-hidden": "true" }, "check"))));
53
- }
54
- };
55
- SixMenuItem.style = sixMenuItemCss;
56
-
57
- export { SixMenuItem as six_menu_item };
58
-
59
- //# sourceMappingURL=six-menu-item.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"six-menu-item.entry.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,44CAA44C;;MCyBt5C,WAAW;;;oBAIF,KAAK;mBAGU,KAAK;iBAGP,EAAE;oBAGC,KAAK;;EAEzC,iBAAiB;IACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;GAC1D;;EAID,MAAM,QAAQ,CAAC,OAAsB;;IACnC,MAAA,IAAI,CAAC,QAAQ,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;GAC/B;;EAID,MAAM,WAAW;;IACf,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,EAAE,CAAC;GACvB;;EAID,YAAY;IACV,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;GAC1D;EAEO,UAAU;IAChB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;GACvB;EAEO,WAAW;IACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;GACtB;EAEO,gBAAgB;IACtB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;GACxB;EAEO,gBAAgB;IACtB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;GAC3B;EAED,MAAM;IACJ,QACE,WACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,EACjC,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;QACjB,oBAAoB,EAAE,IAAI,CAAC,OAAO;QAClC,qBAAqB,EAAE,IAAI,CAAC,QAAQ;QACpC,oBAAoB,EAAE,IAAI,CAAC,QAAQ;OACpC,EACD,IAAI,EAAC,UAAU,mBACA,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,kBACjC,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,EAC7C,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,SAAS,EACxC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,YAAY,EAAE,IAAI,CAAC,gBAAgB,IAEnC,YAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3C,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEP,YAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,IACzC,YAAM,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAqB,CAAC,GAAI,CAC5D,EAEP,YAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3C,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEP,YAAM,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,kBAAkB,IAChD,gBAAU,IAAI,EAAC,OAAO,iBAAa,MAAM,YAE9B,CACN,CACH,EACN;GACH;;;;;;","names":[],"sources":["src/components/six-menu-item/six-menu-item.scss?tag=six-menu-item&encapsulation=shadow","src/components/six-menu-item/six-menu-item.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n line-height: var(--six-line-height-normal);\n letter-spacing: var(--six-letter-spacing-normal);\n text-align: left;\n color: var(--six-input-color);\n border-radius: var(--six-border-radius-medium);\n padding: var(--six-spacing-medium) var(--six-spacing-medium);\n transition: var(--six-transition-fast) fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n\n &.menu-item--focused:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--disabled {\n outline: none;\n color: var(--six-input-color-disabled);\n cursor: not-allowed;\n }\n\n .menu-item__label {\n flex: 1 1 auto;\n align-self: center;\n }\n\n .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:last-child) {\n margin-right: 0.5em;\n }\n }\n\n .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:first-child) {\n margin-left: 0.5em;\n }\n }\n\n .menu-item__check {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n margin-left: var(--six-spacing-small);\n visibility: hidden;\n font-size: inherit;\n }\n}\n\n.menu-item--checked .menu-item__check {\n visibility: visible;\n}\n","import { Component, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @part base - The component's base wrapper.\n * @part checked-icon - The container that wraps the checked icon.\n * @part prefix - The prefix container.\n * @part label - The menu item label.\n * @part suffix - The suffix container.\n */\n\n@Component({\n tag: 'six-menu-item',\n styleUrl: 'six-menu-item.scss',\n shadow: true,\n})\nexport class SixMenuItem {\n private menuItem?: HTMLElement;\n private defaultSlot?: HTMLSlotElement;\n\n @State() hasFocus = false;\n\n /** Set to true to draw the item in a checked state. */\n @Prop({ reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to draw the menu item in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.menuItem?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.menuItem?.blur();\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n @Method()\n getTextLabel() {\n return Promise.resolve(getTextContent(this.defaultSlot));\n }\n\n private handleBlur() {\n this.hasFocus = false;\n }\n\n private handleFocus() {\n this.hasFocus = true;\n }\n\n private handleMouseEnter() {\n return this.setFocus();\n }\n\n private handleMouseLeave() {\n return this.removeFocus();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuItem = el)}\n part=\"base\"\n class={{\n 'menu-item': true,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--focused': this.hasFocus,\n }}\n role=\"menuitem\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-checked={this.checked ? 'true' : 'false'}\n tabIndex={!this.disabled ? 0 : undefined}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"prefix\" class=\"menu-item__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <span part=\"label\" class=\"menu-item__label\">\n <slot ref={(el) => (this.defaultSlot = el as HTMLSlotElement)} />\n </span>\n\n <span part=\"suffix\" class=\"menu-item__suffix\">\n <slot name=\"suffix\" />\n </span>\n\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <six-icon size=\"small\" aria-hidden=\"true\">\n check\n </six-icon>\n </span>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,48 +0,0 @@
1
- //
2
- // Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a
3
- // string. This is useful because we can't use slot.textContent as an alternative.
4
- //
5
- function getTextContent(slot) {
6
- const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];
7
- let text = '';
8
- [...nodes].map((node) => {
9
- if (node.nodeType === Node.TEXT_NODE) {
10
- text += node.textContent;
11
- }
12
- });
13
- return text;
14
- }
15
- //
16
- // Determines whether an element has a slot. If name is specified, the function will look for a corresponding named
17
- // slot, otherwise it will look for a "default" slot (e.g. a non-empty text node or an element with no slot attribute).
18
- //
19
- function hasSlot(el, name) {
20
- // Look for a named slot
21
- if (name != null && name !== '') {
22
- return el.querySelector(`[slot="${name}"]`) !== null;
23
- }
24
- // Look for a default slot
25
- return Array.from(el.childNodes).some((node) => {
26
- var _a;
27
- if (node.nodeType === node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== '') {
28
- return true;
29
- }
30
- if (node.nodeType === node.ELEMENT_NODE) {
31
- const el = node;
32
- if (!el.hasAttribute('slot')) {
33
- return true;
34
- }
35
- }
36
- return false;
37
- });
38
- }
39
- const getSlotChildren = (el) => { var _a; return (_a = el.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedElements({ flatten: true }); };
40
- function getSlot(element, slotName) {
41
- if (element == null)
42
- return null;
43
- return element.querySelector(`[slot="${slotName}"]`);
44
- }
45
-
46
- export { getTextContent as a, getSlotChildren as b, getSlot as g, hasSlot as h };
47
-
48
- //# sourceMappingURL=slot-ad36df3a.js.map
@@ -1 +0,0 @@
1
- {"file":"slot-ad36df3a.js","mappings":"AAAA;AACA;AACA;AACA;SACgB,cAAc,CAAC,IAAsB;EACnD,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC;EACxE,IAAI,IAAI,GAAG,EAAE,CAAC;EAEd,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI;IAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;MACpC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;KAC1B;GACF,CAAC,CAAC;EAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED;AACA;AACA;AACA;SACgB,OAAO,CAAC,EAAe,EAAE,IAAa;;EAEpD,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;IAC/B,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;GACtD;;EAGD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI;;IACzC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,MAAK,EAAE,EAAE;MACvE,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;MACvC,MAAM,EAAE,GAAG,IAAmB,CAAC;MAC/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;QAC5B,OAAO,IAAI,CAAC;OACb;KACF;IAED,OAAO,KAAK,CAAC;GACd,CAAC,CAAC;AACL,CAAC;MAEY,eAAe,GAAG,CAAwB,EAAe,eACpE,OAAA,MAAA,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,0CAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAQ,CAAA,GAAC;SAEvD,OAAO,CAAC,OAAsC,EAAE,QAAgB;EAC9E,IAAI,OAAO,IAAI,IAAI;IAAE,OAAO,IAAI,CAAC;EACjC,OAAO,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;AACvD;;;;","names":[],"sources":["src/utils/slot.ts"],"sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport const getSlotChildren = <T extends HTMLElement>(el: HTMLElement) =>\n el.querySelector('slot')?.assignedElements({ flatten: true }) as T[];\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"],"version":3}
@@ -1,17 +0,0 @@
1
- var ItemPickerType;
2
- (function (ItemPickerType) {
3
- ItemPickerType["NUMBER"] = "number";
4
- ItemPickerType["LETTER"] = "letter";
5
- ItemPickerType["CAPITAL_LETTER"] = "capital-letter";
6
- ItemPickerType["LOWER_LETTER"] = "lower-letter";
7
- ItemPickerType["CUSTOM"] = "custom";
8
- })(ItemPickerType || (ItemPickerType = {}));
9
- var ItemPickerPaddingDirection;
10
- (function (ItemPickerPaddingDirection) {
11
- ItemPickerPaddingDirection["BEFORE"] = "before";
12
- ItemPickerPaddingDirection["AFTER"] = "after";
13
- })(ItemPickerPaddingDirection || (ItemPickerPaddingDirection = {}));
14
-
15
- export { ItemPickerType as I, ItemPickerPaddingDirection as a };
16
-
17
- //# sourceMappingURL=types-59b455aa.js.map
@@ -1 +0,0 @@
1
- {"file":"types-59b455aa.js","mappings":"IAAY;AAAZ,WAAY,cAAc;EACxB,mCAAiB,CAAA;EACjB,mCAAiB,CAAA;EACjB,mDAAiC,CAAA;EACjC,+CAA6B,CAAA;EAC7B,mCAAiB,CAAA;AACnB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;IAEW;AAAZ,WAAY,0BAA0B;EACpC,+CAAiB,CAAA;EACjB,6CAAe,CAAA;AACjB,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B;;;;","names":[],"sources":["src/components/six-item-picker/types.ts"],"sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"],"version":3}
@@ -1,9 +0,0 @@
1
- export declare class SetAttributes {
2
- host: HTMLSetAttributesElement;
3
- /** Attributes map */
4
- value: {};
5
- componentWillLoad(): void;
6
- attrsUpdated(): void;
7
- private injectAttrs;
8
- render(): any;
9
- }
@@ -1 +0,0 @@
1
- {"version":3,"names":["ItemPickerType","ItemPickerPaddingDirection"],"sources":["src/components/six-item-picker/types.ts"],"sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACVA,EAAA,mBACAA,EAAA,mBACAA,EAAA,mCACAA,EAAA,+BACAA,EAAA,kBACD,EAND,CAAYA,MAAc,K,IAQdC,GAAZ,SAAYA,GACVA,EAAA,mBACAA,EAAA,gBACD,EAHD,CAAYA,MAA0B,Y"}
@@ -1,2 +0,0 @@
1
- import{h as t,r as e,c as i,g as s}from"./p-6153045b.js";import{E as r}from"./p-7d95def3.js";import{D as n,d as o,a}from"./p-698bb2c8.js";import{h}from"./p-15559d38.js";import{m as l,c as d,a as c,b as u}from"./p-59210f0b.js";const p=t=>typeof t==="string";const m=t=>t==null;const y={en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsShortGrouped:[["Jan","Feb","Mar","Apr"],["May","Jun","Jul","Aug"],["Sep","Oct","Nov","Dec"]],weekdays:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysMin:["Mo","Tu","We","Th","Fr","Sa","Su"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],monthsShortGrouped:[["Jan.","Feb.","März","Apr."],["Mai","Juni","Juli","Aug."],["Sep.","Okt.","Nov.","Dez."]],weekdays:["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],weekdaysShort:["Mo.","Di.","Mi.","Do.","Fr.","Sa.","So."],weekdaysMin:["Mo","Di","Mi","Do","Fr","Sa","So"]},fr:{months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],monthsShortGrouped:[["janv.","févr.","mars","avr."],["mai","juin","juil.","août"],["sept.","oct.","nov.","déc."]],weekdays:["lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"],weekdaysShort:["lun.","mar.","mer.","jeu.","ven.","sam.","dim."],weekdaysMin:["lu","ma","me","je","ve","sa","di"]},it:{months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],monthsShort:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],monthsShortGrouped:[["gen","feb","mar","apr"],["mag","giu","lug","ago"],["set","ott","nov","dic"]],weekdays:["lunedì","martedì","mercoledì","giovedì","venerdì","sabato","domenica"],weekdaysShort:["lun","mar","mer","gio","ven","sab","dom"],weekdaysMin:["lu","ma","me","gi","ve","sa","do"]}};const b=()=>new Date;const f=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate());const v=t=>t instanceof Date&&!isNaN(t.getTime())&&new Date(t).toString()!=="Invalid Date";const k=t=>{if(t&&v(t)){return t.getFullYear()}throw new Error("Not a valid date")};const g=t=>{if(t&&v(t)){return t.getMonth()}throw new Error("Not a valid date")};const w=t=>{if(t&&v(t)){return t.getDate()}throw new Error("Not a valid date")};const x=t=>{if(t&&v(t)){return t.getHours()}throw new Error("Not a valid date")};const _=t=>{if(t&&v(t)){return t.getMinutes()}throw new Error("Not a valid date")};const M=t=>{if(t&&v(t)){return t.getSeconds()}throw new Error("Not a valid date")};const D=t=>{const e=[6,0,1,2,3,4,5];const i=new Date(t);i.setDate(i.getDate()-e[i.getDay()]);return i};const S=(t,e)=>(t===null||t===void 0?void 0:t.getFullYear())===(e===null||e===void 0?void 0:e.getFullYear());const j=(t,e)=>S(t,e)&&(t===null||t===void 0?void 0:t.getMonth())===(e===null||e===void 0?void 0:e.getMonth());const C=(t,e)=>j(t,e)&&(t===null||t===void 0?void 0:t.getDate())===(e===null||e===void 0?void 0:e.getDate());const O=(t,e)=>C(D(t),D(e));const z=(t,e)=>{if(!p(t)||!p(e)){return false}if(t.length<6||e.length<6){return false}const{day:i,month:s}=U(t,e);if(i>31||s>11||i<=0||s<0){return false}const r=X(t,e);if(m(r)){return false}return r.toString()!=="Invalid Date"};const F=(t,e,i)=>{if(!t){return true}if(e&&t<e){return false}if(i&&i<t){return false}return true};const J=(t,e,i,s=2)=>{const r=s-1;const n=e.charAt(t+r)===i;const o=t+r<e.length;return o&&n};const N=(t,e)=>{let i=String(t);while(i.length<e){i="0"+i}return i};const A=(t,e)=>{if(t==null){return""}let i="";for(let s=0;s<e.length;s++){switch(e.charAt(s)){case"d":if(J(s,e,"d")){i+=N(t.getDate(),2);s++}else{i+=String(t.getDate())}break;case"m":if(J(s,e,"m")){i+=N(t.getMonth()+1,2);s++}else{i+=String(t.getMonth()+1)}break;case"y":if(J(s,e,"y",4)){s+=3;i+=t.getFullYear()}else{i+=(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;s++}break;case"h":if(J(s,e,"h")){i+=N(t.getHours(),2);s++}else{i+=String(t.getHours())}break;case"M":if(J(s,e,"M")){i+=N(t.getMinutes(),2);s++}else{i+=String(t.getMinutes())}break;case"s":if(J(s,e,"s")){i+=N(t.getSeconds(),2);s++}else{i+=String(t.getSeconds())}break;default:i+=e.charAt(s)}}return i};const E=/(\[[^\[]*\])|(mm|dd|yyyy|yy|hh|MM|ss|.)/g;const T=/\d\d/;const P=/\d{4}/;const B=/[^0-9]/g;const G="year";const I="month";const L="day";const Y="hour";const H="minute";const W="second";const q={};const R=(t,e,i)=>{const s=Array.isArray(t)?t:[t];let r;if(typeof i==="string"){r=t=>{const e=parseInt(t,10);return{[i]:e}}}else{r=i}s.forEach((t=>{q[t]=[e,r]}))};R("yy",T,(t=>{const e=(new Date).getFullYear();const i=Math.floor(e/100);let s=parseInt(t,10);s=(s>68?i-1:i)*100+s;return{[G]:s}}));R("yyyy",P,G);R("mm",T,(t=>({[I]:parseInt(t,10)-1})));R("dd",T,L);R("hh",T,Y);R("MM",T,H);R("ss",T,W);const V=(t,e=new Date)=>{const i=[0,0,1,0,0,0];const s=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()];let r=true;for(let e=0;e<7;e++){if(t[e]===undefined){i[e]=r?s[e]:i[e]}else{i[e]=t[e];r=false}}return i};const $=(t,e,i,s,r,n)=>{if(!(t<100&&t>=0)){return new Date(t,e,i,s,r,n)}const o=new Date(t+400,e,i,s,r,n);if(isFinite(o.getFullYear())){o.setFullYear(t)}return o};const K=(t,e)=>{const i=e.match(E);if(!i){throw new Error}const{length:s}=i;let r={};for(let e=0;e<s;e+=1){const s=i[e];const n=q[s];if(!n){const e=s.replace(/^\[|\]$/g,"");if(t.indexOf(e)===0){t=t.substr(e.length)}else{throw new Error("not match")}}else{const e=n[0];const i=n[1];const s=(e.exec(t)||[])[0];const o=i(s);r=Object.assign(Object.assign({},r),o);t=t.replace(s,"")}}return r};const Q=(t,e)=>{if(t.length===e.length){return t}const i=t.match(B)[0];return t.split(i).map((t=>t.length===1?"0"+t:t)).join(i)};const U=(t,e)=>{const i=Q(t,e);return K(i,e)};const X=(t,e)=>{try{const{backupDate:i=new Date}={};const{year:s,month:r,day:n,hour:o,minute:a,second:h,date:l}=U(t,e);if(l!=null){return l}const d=[s,r,n,o,a,h];const c=V(d,i);return $(...c)}catch(t){return new Date(NaN)}};const Z=t=>{const{firstDateOfBox:e,allowedDates:i,dateFormat:s,selectedDate:r,minDate:n,maxDate:o,pointerDate:a}=t;const h=new Date(e);const l=new Date(e);let d=[];do{let t=[];do{t=[...t,{date:new Date(l),display:A(l,s),dateString:A(l,s),label:w(l).toString(),isToday:C(l,b()),isSelected:r&&C(l,r),isDisabled:!i(l)||!F(l,n,o),isOutdated:a.month!==l.getMonth()||!F(l,n,o)}];l.setDate(l.getDate()+1)}while(O(l,h));d=[...d,t];h.setDate(h.getDate()+7)}while(j(new Date(a.year,a.month,a.day),l));return d};function tt(t,e){const i=5;return[...Array(e).keys()].map((i=>i+t-Math.floor(e/2))).reduce(((t,e,s)=>{if(s%i===0){t.push([])}t[t.length-1].push(e);return t}),[])}var et;(function(t){t["DDMMYYY_DOT"]="dd.mm.yyyy";t["YYYYMMDD_DASH"]="yyyy-mm-dd";t["DDMMYYYY_DASH"]="dd-mm-yyyy";t["DDMMYYYY_SLASH"]="dd/mm/yyyy";t["YYYYMMDD_SLASH"]="yyyy/mm/dd";t["DDMMYY_DOT"]="dd.mm.yy";t["YYMMDD_DASH"]="yy-mm-dd";t["DDMMYY_DASH"]="dd-mm-yy";t["DDMMYY_SLASH"]="dd/mm/yy";t["YYMMDD_SLASH"]="yy/mm/dd";t["DDMMYYY_DOT_TIME"]="dd.mm.yyyy hh:MM:ss";t["YYYYMMDD_DASH_TIME"]="yyyy-mm-dd hh:MM:ss";t["DDMMYYYY_DASH_TIME"]="dd-mm-yyyy hh:MM:ss";t["DDMMYYYY_SLASH_TIME"]="dd/mm/yyyy hh:MM:ss";t["YYYYMMDD_SLASH_TIME"]="yyyy/mm/dd hh:MM:ss";t["DDMMYY_DOT_TIME"]="dd.mm.yy hh:MM:ss";t["YYMMDD_DASH_TIME"]="yy-mm-dd hh:MM:ss";t["DDMMYY_DASH_TIME"]="dd-mm-yy hh:MM:ss";t["DDMMYY_SLASH_TIME"]="dd/mm/yy hh:MM:ss";t["YYMMDD_SLASH_TIME"]="yy/mm/dd hh:MM:ss"})(et||(et={}));const it=e=>{const i=e.locale;const s=t=>i.monthsShort[b().getMonth()]===t;const r=t=>{var s;return((s=e.selectedDate)===null||s===void 0?void 0:s.getMonth())===i.monthsShort.findIndex((e=>e===t))};return t("table",{class:"datepicker-table",part:"month-selection"},t("tbody",null,i.monthsShortGrouped.map((i=>t("tr",{class:"datepicker-table__row"},i.map((i=>t("td",{onClick:()=>e.onClickMonthCell(i),class:{"datepicker-table__cell":true,"datepicker-table__cell--is-today":s(i),"datepicker-table__cell--is-selected":r(i)}},i))))))))};const st=e=>t("table",{class:"datepicker-table",part:"day-selection"},t("thead",{part:"weekday-header"},e.locale.weekdaysMin.map((e=>t("th",{class:"datepicker__cell"},e)))),t("tbody",null,e.calendarGrid.map((i=>t("tr",{class:"datepicker-table__row"},i.map((i=>t("td",{"data-date":i.dateString,onClick:()=>e.onClickDateCell(i),class:{"datepicker-table__cell":true,"datepicker-table__cell--is-today":i.isToday,"datepicker-table__cell--is-selected":i.isSelected,"datepicker-table__cell--is-outdated":i.isOutdated,"datepicker-table__cell--is-disabled":i.isDisabled,"datepicker-table__cell--is-selectable":!i.isDisabled}},i.label))))))));const rt=e=>t("table",{class:"datepicker-table",part:"year-selection"},t("tbody",null,e.yearSelection.map((i=>t("tr",{class:"datepicker-table__row"},i.map((i=>{var s;return t("td",{onClick:()=>e.onClickYearCell(i),class:{"datepicker-table__cell":true,"datepicker-table__cell--is-today":b().getFullYear()===i,"datepicker-table__cell--is-selected":((s=e.selectedDate)===null||s===void 0?void 0:s.getFullYear())===i}},i)})))))));const nt=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block;font-family:var(--six-font-family)}.datepicker__container{position:relative}.datepicker__popup{min-width:400px;background-color:white;padding:0.5em 0.5em 1.5em;box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);user-select:none;position:absolute;z-index:var(--six-z-index-dropdown);right:0;left:0}.datepicker__popup--is-up{bottom:100%;min-height:382px}.datepicker__popup--is-inline{position:initial;box-shadow:none;border:1px solid var(--six-color-web-rock-400)}.datepicker-header{display:flex;justify-content:space-between;border-bottom:1px solid var(--six-color-web-rock-400);padding:0.5em;margin-bottom:1em}.datepicker-header svg{fill:var(--six-color-web-rock-900);stroke:none}.datepicker-header__btn{cursor:pointer;width:2.5em;height:2.5em;display:flex;vertical-align:middle;align-items:center;justify-content:center}.datepicker-header__btn:hover{background-color:var(--six-color-web-rock-100);border-radius:100%}.datepicker-header__label{display:flex}.datepicker-header__label>div{cursor:pointer;padding:0.5em;display:flex;vertical-align:middle;align-items:center;justify-content:center}.datepicker-header__label>div:hover{background-color:var(--six-color-web-rock-100)}.datepicker-table{width:100%}.datepicker-table__cell{text-align:center;width:2.5rem;height:2.5rem;cursor:pointer}.datepicker-table__cell:hover{background-color:var(--six-color-web-rock-100)}.datepicker-table__cell--is-today{border:1px solid var(--six-color-web-rock-400)}.datepicker-table__cell--is-selected{background-color:var(--six-color-red);color:var(--six-color-white)}.datepicker-table__cell--is-disabled{background-color:var(--six-color-web-rock-200);cursor:initial}.datepicker-table__cell--is-disabled:hover{background-color:var(--six-color-web-rock-200)}.datepicker-table__cell--is-outdated{color:var(--six-color-web-rock-400)}.datepicker-clear{display:inline-flex;align-items:center;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;padding:0;transition:var(--six-transition-fast) color;cursor:pointer}.datepicker-clear:hover{color:var(--six-input-icon-color-hover)}.datepicker-clear:focus{outline:none}.datepicker-clear--right{right:0;position:absolute}.datepicker-clear--left{right:35px;position:absolute}.input--empty .datepicker-clear{visibility:hidden}.prefix{cursor:pointer}.prefix--right{right:0;display:inline-flex;position:absolute;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;margin-right:var(--six-input-spacing-medium);transition:var(--six-transition-fast) color}six-timepicker::part(popup){border:none;padding:0.5em 0.5em 0;min-height:0}";const ot=25;const at=400;var ht;(function(t){t["DAY"]="day";t["MONTH"]="month";t["YEAR"]="year"})(ht||(ht={}));const lt=class{constructor(t){e(this,t);this.sixSelect=i(this,"six-datepicker-select",7);this.sixClear=i(this,"six-datepicker-clear",7);this.sixBlur=i(this,"six-datepicker-blur",7);this.eventListeners=new r;this.previousUnit=()=>{if(this.selectionMode===ht.DAY){this.previousMonth()}else if(this.selectionMode===ht.MONTH){this.previousYear()}else if(this.selectionMode===ht.YEAR){this.previousYearGroup()}};this.nextUnit=()=>{if(this.selectionMode===ht.DAY){this.nextMonth()}else if(this.selectionMode===ht.MONTH){this.nextYear()}else if(this.selectionMode===ht.YEAR){this.nextYearGroup()}};this.handleDocumentKeyDown=t=>{var e;const i=t;if(this.open&&i.key==="Escape"){i.stopPropagation();this.closePopup();void((e=this.inputElement)===null||e===void 0?void 0:e.setFocus())}if(i.key==="Tab"){this.closePopup()}};this.handleDocumentMouseDown=t=>{const e=t.composedPath();if(!e.includes(this.container)){this.closePopup();return}};this.handleClearClick=async t=>{t.stopPropagation();await this.select(undefined);this.sixClear.emit()};this.onTimepickerChange=t=>{const e=t.detail.value;const i=new Date;if(this.selectedDate!=null){i.setFullYear(this.selectedDate.getFullYear(),this.selectedDate.getMonth(),this.selectedDate.getDate())}if(e!=null){const t=e.hours;const s=e.minutes;const r=e.seconds;if(t!=null){i.setHours(t,s,r)}}this.updateValue(i);this.updatePointerDates()};this.onClickDateCell=t=>{if(!t.isDisabled){void this.select(t.dateString)}};this.onClickMonthCell=t=>{const e=y[this.locale].monthsShort.findIndex((e=>e===t));this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{month:e});this.selectionMode=ht.DAY};this.onClickYearCell=t=>{this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:t});this.selectionMode=ht.DAY};this.handleInputChange=t=>{if(this.inputElement==null){return}t.stopPropagation();const e=this.inputElement.value;if(!z(e,this.dateFormat)){return}const i=X(e,this.dateFormat);if(i===undefined){return}this.updateIfChanged(i);const s=e.replace(/[^\d]/g,"");if(s.length>=6){const t=X(e,this.dateFormat);const i=A(t,this.dateFormat);if(z(i,this.dateFormat)){this.selectedDate=X(i,this.dateFormat);this.updatePointerDates();this.updateValue(this.selectedDate)}}};this.handleOnBlur=t=>{var e,i;if(((e=this.inputElement)===null||e===void 0?void 0:e.value)===""&&v(this.value)){this.value=undefined;this.sixSelect.emit(this.value)}t.stopPropagation();const s=(i=this.inputElement)===null||i===void 0?void 0:i.value;const r=X(s,this.dateFormat);const n=A(this.value,this.dateFormat);if(this.inputElement!=null&&r!=null&&s!==n){this.inputElement.value=n}this.sixBlur.emit(this.value)};this.pointerDate=lt.getCurrentDateAsPointer();this.selectionMode=ht.DAY;this.isDropDownContentUp=false;this.type="date";this.locale="en";this.open=false;this.inline=false;this.readonly=false;this.disabled=false;this.allowedDates=()=>true;this.min=undefined;this.max=undefined;this.closeOnSelect=this.type==="date";this.placement=undefined;this.size="medium";this.required=false;this.defaultDate=undefined;this.placeholder=undefined;this.value=undefined;this.label="";this.errorText="";this.errorTextCount=undefined;this.invalid=false;this.containingElement=undefined;this.dateFormat=et.DDMMYYY_DOT;this.debounce=n;this.name="";this.clearable=false;this.iconPosition="left";this.hoist=false}debounceChanged(){this.sixSelect=o(this.sixSelect,this.debounce)}valueChanged(){if(this.value!=null&&!v(this.value)){console.warn("invalid date value: ",this.value);this.value=undefined;this.sixSelect.emit(this.value)}this.selectedDate=this.value;this.updatePointerDates()}async resizeHandler(){this.updateDropdownDirection();this.moveOpenHoistedPopup();this.adjustPopupPosition()}async scrollHandler(){this.updateDropdownDirection();this.moveOpenHoistedPopup()}moveOpenHoistedPopup(){l(this.hoist,this.open,this.popup,this.inputElement,this.wrapper,at)}get container(){return this.containingElement||this.host}get firstDateOfBox(){const t=new Date(this.pointerDate.year,this.pointerDate.month,1);return D(t)}async setFocus(t){var e;(e=this.inputElement)===null||e===void 0?void 0:e.setFocus(t)}get calendarGrid(){return Z({firstDateOfBox:this.firstDateOfBox,allowedDates:this.allowedDates,dateFormat:this.dateFormat,locale:this.locale,selectedDate:this.selectedDate,minDate:this.min,maxDate:this.max,pointerDate:this.pointerDate})}updateDropdownDirection(){if(this.inputElement==null||this.wrapper==null){return}this.isDropDownContentUp=d(this.inputElement,this.wrapper,at)}getMonthStringForIndex(t){return y[this.locale].months[t]}previousYear(){this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:this.pointerDate.year-1})}previousYearGroup(){this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:this.pointerDate.year-ot})}previousMonth(){if(this.pointerDate.month===0){this.pointerDate={year:this.pointerDate.year-1,month:11,day:1,hours:0,minutes:0,seconds:0}}else{this.pointerDate={year:this.pointerDate.year,month:this.pointerDate.month-1,day:1,hours:0,minutes:0,seconds:0}}}nextMonth(){if(this.pointerDate.month===11){this.pointerDate={year:this.pointerDate.year+1,month:0,day:1,hours:0,minutes:0,seconds:0}}else{this.pointerDate={year:this.pointerDate.year,month:this.pointerDate.month+1,day:1,hours:0,minutes:0,seconds:0}}}nextYear(){this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:this.pointerDate.year+1})}nextYearGroup(){this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:this.pointerDate.year+ot})}openCalendar(){if(!this.open&&!this.disabled){this.open=true;this.setupEventListenersForOpenPopup()}}setupEventListenersForOpenPopup(){this.eventListeners.add(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown)}closePopup(){if(this.inline){return}this.open=false;this.eventListeners.remove(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.remove(document,"mousedown",this.handleDocumentMouseDown);this.selectionMode=ht.DAY}updatePointerDates(){const t=this.getPointerDate();if(this.differsFromPointerDate(t)){this.pointerDate={year:k(t),month:g(t),day:w(t),hours:x(t),minutes:_(t),seconds:M(t)}}}differsFromPointerDate(t){return this.pointerDate.day!==w(t)||this.pointerDate.month!==g(t)||this.pointerDate.year!==k(t)||this.pointerDate.hours!==x(t)||this.pointerDate.minutes!==_(t)||this.pointerDate.seconds!==M(t)}getPointerDate(){if(this.selectedDate!==undefined&&this.selectedDate!==null){return this.selectedDate}if(this.defaultDate==null){return this.type==="date"?f(b()):b()}else{return X(this.defaultDate,this.dateFormat)}}updateValue(t){this.updateIfChanged(t)}updateIfChanged(t){var e;if(((e=this.value)===null||e===void 0?void 0:e.getTime())===(t===null||t===void 0?void 0:t.getTime())){return}this.value=t;this.sixSelect.emit(this.value)}async select(t){if(t==null){this.updateValue(undefined)}else{const e=X(t,this.dateFormat);e===null||e===void 0?void 0:e.setHours(this.pointerDate.hours,this.pointerDate.minutes,this.pointerDate.seconds);this.updateValue(e)}this.updatePointerDates();if(this.closeOnSelect){this.closePopup()}}componentWillLoad(){this.selectedDate=this.value;this.updatePointerDates();this.updateValue(this.value);if(this.inline){this.open=true}if(this.open){this.setupEventListenersForOpenPopup()}}componentDidLoad(){if(this.inputElement!=null){this.eventListeners.add(this.inputElement,"six-input-input",a(this.handleInputChange,this.debounce));this.eventListeners.add(this.inputElement,"six-input-blur",this.handleOnBlur)}}componentDidRender(){this.adjustPopupPosition()}renderHeader(){return t("header",{class:"datepicker-header",part:"header"},t("div",{class:"datepicker-header__btn prev",onClick:this.previousUnit},t("svg",{viewBox:"0 5 13 13",width:"14",height:"23"},t("path",{d:"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}))),t("div",{class:"datepicker-header__label"},this.selectionMode===ht.DAY&&t("div",{onClick:()=>this.selectionMode=ht.MONTH},t("span",{class:"datepicker-header__label-month"},this.getMonthStringForIndex(this.pointerDate.month)),t("span",null,t("svg",{viewBox:"-3 -4 24 24",width:"20",height:"20"},t("polyline",{points:"6 9 12 15 18 9"})))),this.selectionMode!==ht.YEAR&&t("div",{onClick:()=>this.selectionMode=ht.YEAR},t("span",{class:"datepicker-header__label-year"},this.pointerDate.year),t("span",null,t("svg",{viewBox:"-3 -4 24 24",width:"20",height:"20"},t("polyline",{points:"6 9 12 15 18 9"})))),this.selectionMode===ht.YEAR&&t("div",null,this.pointerDate.year-Math.floor(ot/2)," –"," ",this.pointerDate.year+Math.floor(ot/2))),t("div",{class:"datepicker-header__btn next",onClick:this.nextUnit},t("svg",{viewBox:"5 5 13 13",width:"14",height:"23"},t("path",{d:"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z"}))))}renderBody(){switch(this.selectionMode){case ht.DAY:return t(st,{locale:y[this.locale],calendarGrid:this.calendarGrid,onClickDateCell:this.onClickDateCell});case ht.MONTH:return t(it,{locale:y[this.locale],selectedDate:this.selectedDate,onClickMonthCell:this.onClickMonthCell});case ht.YEAR:return t(rt,{selectedDate:this.selectedDate,yearSelection:tt(this.pointerDate.year,ot),onClickYearCell:this.onClickYearCell})}}renderCustomIcon(){const e=h(this.host,"custom-icon")?t("slot",{name:"custom-icon"}):t("six-icon",{size:this.size==="large"?"medium":this.size},"today");return t("span",{slot:"prefix",part:"icon",class:{prefix:true,"prefix--right":this.iconPosition==="right"}},e)}renderClearable(){return this.clearable&&t("button",{slot:"suffix",class:{"datepicker-clear":true,"datepicker-clear--right":this.iconPosition==="left","datepicker-clear--left":this.iconPosition==="right"},type:"button",onClick:this.handleClearClick,tabindex:"-1"},t("six-icon",{size:"small"},"clear"))}render(){var e,i,s;this.adjustPopupPosition();return t("div",{ref:t=>this.wrapper=t,class:"datepicker__container"},t("six-input",{part:"base",value:A(this.value,this.dateFormat),ref:t=>this.inputElement=t,placeholder:this.placeholder,readonly:this.readonly,disabled:this.disabled,name:this.name,label:this.label,required:this.required,errorText:this.errorText,errorTextCount:this.errorTextCount,invalid:this.invalid,onClick:()=>this.openCalendar(),size:this.size,class:{"input--empty":this.value==null}},this.renderCustomIcon(),this.renderClearable(),h(this.host,"label")?t("span",{slot:"label"},t("slot",{name:"label"})):null,h(this.host,"error-text")?t("span",{slot:"error-text"},t("slot",{name:"error-text"})):null),this.open&&t("div",{part:"popup",ref:t=>this.popup=t,class:{datepicker__popup:true,"datepicker__popup--is-up":this.placement!=null?this.placement==="top":this.isDropDownContentUp,"datepicker__popup--is-inline":this.inline}},this.renderHeader(),this.renderBody(),this.type==="date-time"&&t("six-timepicker",{inline:true,"onSix-timepicker-change-debounced":t=>this.onTimepickerChange(t),value:((e=this.selectedDate)===null||e===void 0?void 0:e.getHours())+":"+((i=this.selectedDate)===null||i===void 0?void 0:i.getMinutes())+":"+((s=this.selectedDate)===null||s===void 0?void 0:s.getSeconds())}),t("div",{class:"datepicker__footer"},t("slot",null))))}adjustPopupPosition(){c(this.hoist,this.popup,this.inputElement,this.wrapper,at,(t=>this.isDropDownContentUp=t));u(this.popup)}connectedCallback(){this.eventListeners.forward("six-datepicker-select","change",this.host);this.eventListeners.forward("six-datepicker-blur","blur",this.host)}disconnectedCallback(){this.eventListeners.removeAll()}static getCurrentDateAsPointer(){return{year:k(b()),month:g(b()),day:w(b()),hours:x(b()),minutes:_(b()),seconds:M(b())}}get host(){return s(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};lt.style=nt;export{lt as six_datepicker};
2
- //# sourceMappingURL=p-14c1ec31.entry.js.map