@six-group/ui-library 0.0.0-insider.b85326c → 0.0.0-insider.b9211de

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 (494) hide show
  1. package/dist/cjs/{form-control-Ditp8yHw.js → form-control-CX8QRq9v.js} +3 -3
  2. package/dist/cjs/{form-control-Ditp8yHw.js.map → form-control-CX8QRq9v.js.map} +1 -1
  3. package/dist/cjs/{index-BKTrCUjx.js → index-C8rK7OAe.js} +19 -11
  4. package/dist/{esm/index-D0Go1Zjj.js.map → cjs/index-C8rK7OAe.js.map} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/six-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/six-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/six-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js +25 -0
  10. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js.map +1 -0
  11. package/dist/cjs/six-breadcrumbs-item.entry.cjs.js.map +1 -0
  12. package/dist/cjs/six-breadcrumbs.cjs.entry.js +73 -0
  13. package/dist/cjs/six-breadcrumbs.cjs.entry.js.map +1 -0
  14. package/dist/cjs/six-breadcrumbs.entry.cjs.js.map +1 -0
  15. package/dist/cjs/six-button.six-spinner.entry.cjs.js.map +1 -0
  16. package/dist/cjs/{six-button.cjs.entry.js → six-button_2.cjs.entry.js} +56 -5
  17. package/dist/cjs/six-button_2.cjs.entry.js.map +1 -0
  18. package/dist/cjs/six-card.cjs.entry.js +2 -2
  19. package/dist/cjs/six-checkbox_2.cjs.entry.js +6 -6
  20. package/dist/cjs/six-date.cjs.entry.js +39 -34
  21. package/dist/cjs/six-date.cjs.entry.js.map +1 -1
  22. package/dist/cjs/six-date.entry.cjs.js.map +1 -1
  23. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  24. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-datepicker.entry.cjs.js.map +1 -1
  26. package/dist/cjs/six-details.cjs.entry.js +4 -4
  27. package/dist/cjs/six-dialog.cjs.entry.js +1 -1
  28. package/dist/cjs/six-drawer.cjs.entry.js +1 -1
  29. package/dist/cjs/six-dropdown_2.cjs.entry.js +1 -1
  30. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  31. package/dist/cjs/six-error.cjs.entry.js +2 -2
  32. package/dist/cjs/six-file-list-item.cjs.entry.js +1 -1
  33. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  34. package/dist/cjs/six-file-upload.cjs.entry.js +1 -1
  35. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  36. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  37. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +3 -3
  38. package/dist/cjs/six-header-item.cjs.entry.js +2 -2
  39. package/dist/cjs/six-header-menu-button.cjs.entry.js +2 -2
  40. package/dist/cjs/six-header.cjs.entry.js +3 -3
  41. package/dist/cjs/six-icon-button.cjs.entry.js +4 -4
  42. package/dist/cjs/six-icon.cjs.entry.js +3 -3
  43. package/dist/cjs/six-input.cjs.entry.js +2 -2
  44. package/dist/cjs/six-item-picker.cjs.entry.js +1 -1
  45. package/dist/cjs/six-language-switcher.cjs.entry.js +1 -1
  46. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  47. package/dist/cjs/six-logo.cjs.entry.js +1 -1
  48. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  49. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  50. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  51. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  52. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  53. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  54. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  55. package/dist/cjs/six-range.cjs.entry.js +4 -4
  56. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-range.entry.cjs.js.map +1 -1
  58. package/dist/cjs/six-rating.cjs.entry.js +126 -0
  59. package/dist/cjs/six-rating.cjs.entry.js.map +1 -0
  60. package/dist/cjs/six-rating.entry.cjs.js.map +1 -0
  61. package/dist/cjs/six-root.cjs.entry.js +2 -2
  62. package/dist/cjs/six-search-field.cjs.entry.js +1 -1
  63. package/dist/cjs/six-select.cjs.entry.js +2 -2
  64. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +1 -1
  65. package/dist/cjs/six-sidebar-item.cjs.entry.js +3 -3
  66. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  67. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  68. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  69. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-switch.entry.cjs.js.map +1 -1
  71. package/dist/cjs/six-tab-group.cjs.entry.js +1 -1
  72. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  73. package/dist/cjs/six-tab.cjs.entry.js +4 -4
  74. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
  76. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  77. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  78. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  79. package/dist/cjs/six-timepicker.cjs.entry.js +18 -10
  80. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
  82. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  83. package/dist/cjs/ui-library.cjs.js +3 -3
  84. package/dist/cjs/ui-library.cjs.js.map +1 -1
  85. package/dist/collection/collection-manifest.json +4 -1
  86. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.css +27 -0
  87. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js +109 -0
  88. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js.map +1 -0
  89. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.css +61 -0
  90. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js +123 -0
  91. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js.map +1 -0
  92. package/dist/collection/components/six-button/six-button.js +2 -2
  93. package/dist/collection/components/six-card/six-card.js +1 -1
  94. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  95. package/dist/collection/components/six-date/iso-date.js +32 -0
  96. package/dist/collection/components/six-date/iso-date.js.map +1 -1
  97. package/dist/collection/components/six-date/six-date.js +7 -34
  98. package/dist/collection/components/six-date/six-date.js.map +1 -1
  99. package/dist/collection/components/six-datepicker/six-datepicker.js +4 -4
  100. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  101. package/dist/collection/components/six-details/six-details.js +3 -3
  102. package/dist/collection/components/six-error/six-error.js +1 -1
  103. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  104. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  105. package/dist/collection/components/six-footer/six-footer.js +1 -1
  106. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  107. package/dist/collection/components/six-header/six-header.js +2 -2
  108. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
  109. package/dist/collection/components/six-header-item/six-header-item.js +1 -1
  110. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +1 -1
  111. package/dist/collection/components/six-icon/six-icon.js +2 -2
  112. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  113. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  114. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  115. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  116. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  117. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  118. package/dist/collection/components/six-picto/six-picto.js +1 -1
  119. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  120. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  121. package/dist/collection/components/six-radio/six-radio.js +2 -2
  122. package/dist/collection/components/six-range/six-range.js +2 -2
  123. package/dist/collection/components/six-rating/six-rating.css +125 -0
  124. package/dist/collection/components/six-rating/six-rating.js +432 -0
  125. package/dist/collection/components/six-rating/six-rating.js.map +1 -0
  126. package/dist/collection/components/six-root/six-root.js +1 -1
  127. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  128. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  129. package/dist/collection/components/six-switch/six-switch.js +2 -2
  130. package/dist/collection/components/six-tab/six-tab.css +12 -0
  131. package/dist/collection/components/six-tab/six-tab.js +2 -2
  132. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  133. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  134. package/dist/collection/components/six-tag/six-tag.js +2 -2
  135. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  136. package/dist/collection/components/six-tile/six-tile.js +5 -5
  137. package/dist/collection/components/six-timepicker/six-timepicker.js +17 -9
  138. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  139. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  140. package/dist/components/index.js +7 -1
  141. package/dist/components/index.js.map +1 -1
  142. package/dist/components/{p-DV46ui1Q.js → p-BB2rei7y.js} +3 -3
  143. package/dist/components/{p-DV46ui1Q.js.map → p-BB2rei7y.js.map} +1 -1
  144. package/dist/components/{p-BtNjuUha.js → p-BDCdPEjW.js} +6 -6
  145. package/dist/components/p-BDCdPEjW.js.map +1 -0
  146. package/dist/components/{p-Bl7vxyI3.js → p-BKl-wAjt.js} +7 -7
  147. package/dist/components/{p-Bl7vxyI3.js.map → p-BKl-wAjt.js.map} +1 -1
  148. package/dist/components/{p-Cr6sHYme.js → p-BLocui1Z.js} +4 -4
  149. package/dist/components/{p-Cr6sHYme.js.map → p-BLocui1Z.js.map} +1 -1
  150. package/dist/components/{p-B-XztaHV.js → p-BS2kSSCX.js} +8 -8
  151. package/dist/components/{p-B-XztaHV.js.map → p-BS2kSSCX.js.map} +1 -1
  152. package/dist/components/{p-mLQ66WNK.js → p-C12rf0Ka.js} +7 -7
  153. package/dist/components/{p-mLQ66WNK.js.map → p-C12rf0Ka.js.map} +1 -1
  154. package/dist/components/{p-D0dsFLio.js → p-C7EO-HRN.js} +24 -16
  155. package/dist/components/p-C7EO-HRN.js.map +1 -0
  156. package/dist/components/{p-DXhOme6Y.js → p-CH82uB3t.js} +4 -4
  157. package/dist/components/{p-DXhOme6Y.js.map → p-CH82uB3t.js.map} +1 -1
  158. package/dist/components/{p-BxWEEwNO.js → p-CNEhbYaS.js} +6 -6
  159. package/dist/components/{p-BxWEEwNO.js.map → p-CNEhbYaS.js.map} +1 -1
  160. package/dist/components/{p-7eUoSVPj.js → p-CVZ589gc.js} +7 -7
  161. package/dist/components/{p-7eUoSVPj.js.map → p-CVZ589gc.js.map} +1 -1
  162. package/dist/components/{p-Mse5vRUS.js → p-CdBejqVk.js} +5 -5
  163. package/dist/components/{p-Mse5vRUS.js.map → p-CdBejqVk.js.map} +1 -1
  164. package/dist/components/{p-BtF2Ym6T.js → p-D512q9rn.js} +17 -4
  165. package/dist/components/p-D512q9rn.js.map +1 -0
  166. package/dist/components/{p-CpcN3YG9.js → p-D7VTCp8h.js} +4 -4
  167. package/dist/components/{p-CpcN3YG9.js.map → p-D7VTCp8h.js.map} +1 -1
  168. package/dist/components/{p-CLtU4Br-.js → p-DHpl3Lfk.js} +4 -4
  169. package/dist/components/{p-CLtU4Br-.js.map → p-DHpl3Lfk.js.map} +1 -1
  170. package/dist/components/{p-BmW8cpEG.js → p-DIkvCBxr.js} +3 -3
  171. package/dist/components/{p-BmW8cpEG.js.map → p-DIkvCBxr.js.map} +1 -1
  172. package/dist/components/{p-eW-dQ-wI.js → p-Dyx3R5VU.js} +7 -7
  173. package/dist/components/{p-eW-dQ-wI.js.map → p-Dyx3R5VU.js.map} +1 -1
  174. package/dist/components/{p-CNVkBlqA.js → p-iuKqFOKd.js} +9 -9
  175. package/dist/components/{p-CNVkBlqA.js.map → p-iuKqFOKd.js.map} +1 -1
  176. package/dist/components/{p-CYrYPnLQ.js → p-jflTvJ8E.js} +5 -5
  177. package/dist/components/{p-CYrYPnLQ.js.map → p-jflTvJ8E.js.map} +1 -1
  178. package/dist/components/six-alert.js +3 -3
  179. package/dist/components/six-avatar.js +2 -2
  180. package/dist/components/six-badge.js +1 -1
  181. package/dist/components/six-breadcrumbs-item.d.ts +11 -0
  182. package/dist/components/six-breadcrumbs-item.js +58 -0
  183. package/dist/components/six-breadcrumbs-item.js.map +1 -0
  184. package/dist/components/six-breadcrumbs.d.ts +11 -0
  185. package/dist/components/six-breadcrumbs.js +97 -0
  186. package/dist/components/six-breadcrumbs.js.map +1 -0
  187. package/dist/components/six-button.js +1 -1
  188. package/dist/components/six-card.js +2 -2
  189. package/dist/components/six-checkbox.js +1 -1
  190. package/dist/components/six-date.js +43 -38
  191. package/dist/components/six-date.js.map +1 -1
  192. package/dist/components/six-datepicker.js +9 -9
  193. package/dist/components/six-datepicker.js.map +1 -1
  194. package/dist/components/six-details.js +1 -1
  195. package/dist/components/six-dialog.js +3 -3
  196. package/dist/components/six-drawer.js +3 -3
  197. package/dist/components/six-dropdown.js +1 -1
  198. package/dist/components/six-error-page.js +3 -3
  199. package/dist/components/six-error.js +1 -1
  200. package/dist/components/six-file-list-item.js +2 -2
  201. package/dist/components/six-file-list.js +2 -2
  202. package/dist/components/six-file-upload.js +4 -4
  203. package/dist/components/six-footer.js +2 -2
  204. package/dist/components/six-group-label.js +4 -4
  205. package/dist/components/six-header-dropdown-item.js +10 -10
  206. package/dist/components/six-header-item.js +2 -2
  207. package/dist/components/six-header-menu-button.js +4 -4
  208. package/dist/components/six-header.js +3 -3
  209. package/dist/components/six-icon-button.js +1 -1
  210. package/dist/components/six-icon.js +1 -1
  211. package/dist/components/six-input.js +1 -1
  212. package/dist/components/six-item-picker.js +1 -1
  213. package/dist/components/six-language-switcher.js +1 -1
  214. package/dist/components/six-layout-grid.js +2 -2
  215. package/dist/components/six-logo.js +1 -1
  216. package/dist/components/six-main-container.js +2 -2
  217. package/dist/components/six-menu-divider.js +2 -2
  218. package/dist/components/six-menu-item.js +1 -1
  219. package/dist/components/six-menu-label.js +2 -2
  220. package/dist/components/six-menu.js +1 -1
  221. package/dist/components/six-picto.js +1 -1
  222. package/dist/components/six-progress-bar.js +4 -4
  223. package/dist/components/six-progress-ring.js +2 -2
  224. package/dist/components/six-radio.js +3 -3
  225. package/dist/components/six-range.js +5 -5
  226. package/dist/components/six-range.js.map +1 -1
  227. package/dist/components/six-rating.d.ts +11 -0
  228. package/dist/components/six-rating.js +173 -0
  229. package/dist/components/six-rating.js.map +1 -0
  230. package/dist/components/six-root.js +4 -4
  231. package/dist/components/six-search-field.js +4 -4
  232. package/dist/components/six-select.js +12 -12
  233. package/dist/components/six-sidebar-item-group.js +3 -3
  234. package/dist/components/six-sidebar-item.js +4 -4
  235. package/dist/components/six-sidebar.js +3 -3
  236. package/dist/components/six-spinner.js +1 -1
  237. package/dist/components/six-stage-indicator.js +1 -1
  238. package/dist/components/six-switch.js +5 -5
  239. package/dist/components/six-switch.js.map +1 -1
  240. package/dist/components/six-tab-group.js +3 -3
  241. package/dist/components/six-tab-panel.js +2 -2
  242. package/dist/components/six-tab.js +6 -6
  243. package/dist/components/six-tab.js.map +1 -1
  244. package/dist/components/six-tag.js +6 -6
  245. package/dist/components/six-textarea.js +5 -5
  246. package/dist/components/six-tile.js +9 -9
  247. package/dist/components/six-timepicker.js +1 -1
  248. package/dist/components/six-tooltip.js +1 -1
  249. package/dist/components.json +2975 -646
  250. package/dist/esm/{form-control-D_uS8E6o.js → form-control-DI6V1ZhR.js} +3 -3
  251. package/dist/esm/{form-control-D_uS8E6o.js.map → form-control-DI6V1ZhR.js.map} +1 -1
  252. package/dist/esm/{index-D0Go1Zjj.js → index-JoG9I7EO.js} +19 -11
  253. package/dist/{cjs/index-BKTrCUjx.js.map → esm/index-JoG9I7EO.js.map} +1 -1
  254. package/dist/esm/loader.js +3 -3
  255. package/dist/esm/six-alert.entry.js +1 -1
  256. package/dist/esm/six-avatar.entry.js +1 -1
  257. package/dist/esm/six-badge.entry.js +1 -1
  258. package/dist/esm/six-breadcrumbs-item.entry.js +23 -0
  259. package/dist/esm/six-breadcrumbs-item.entry.js.map +1 -0
  260. package/dist/esm/six-breadcrumbs.entry.js +71 -0
  261. package/dist/esm/six-breadcrumbs.entry.js.map +1 -0
  262. package/dist/esm/six-button.six-spinner.entry.js.map +1 -0
  263. package/dist/esm/{six-button.entry.js → six-button_2.entry.js} +56 -6
  264. package/dist/esm/six-button_2.entry.js.map +1 -0
  265. package/dist/esm/six-card.entry.js +2 -2
  266. package/dist/esm/six-checkbox_2.entry.js +6 -6
  267. package/dist/esm/six-date.entry.js +39 -34
  268. package/dist/esm/six-date.entry.js.map +1 -1
  269. package/dist/esm/six-datepicker.entry.js +4 -4
  270. package/dist/esm/six-datepicker.entry.js.map +1 -1
  271. package/dist/esm/six-details.entry.js +4 -4
  272. package/dist/esm/six-dialog.entry.js +1 -1
  273. package/dist/esm/six-drawer.entry.js +1 -1
  274. package/dist/esm/six-dropdown_2.entry.js +1 -1
  275. package/dist/esm/six-error-page.entry.js +2 -2
  276. package/dist/esm/six-error.entry.js +2 -2
  277. package/dist/esm/six-file-list-item.entry.js +1 -1
  278. package/dist/esm/six-file-list.entry.js +2 -2
  279. package/dist/esm/six-file-upload.entry.js +1 -1
  280. package/dist/esm/six-footer.entry.js +2 -2
  281. package/dist/esm/six-group-label.entry.js +3 -3
  282. package/dist/esm/six-header-dropdown-item.entry.js +3 -3
  283. package/dist/esm/six-header-item.entry.js +2 -2
  284. package/dist/esm/six-header-menu-button.entry.js +2 -2
  285. package/dist/esm/six-header.entry.js +3 -3
  286. package/dist/esm/six-icon-button.entry.js +4 -4
  287. package/dist/esm/six-icon.entry.js +3 -3
  288. package/dist/esm/six-input.entry.js +2 -2
  289. package/dist/esm/six-item-picker.entry.js +1 -1
  290. package/dist/esm/six-language-switcher.entry.js +1 -1
  291. package/dist/esm/six-layout-grid.entry.js +2 -2
  292. package/dist/esm/six-logo.entry.js +1 -1
  293. package/dist/esm/six-main-container.entry.js +2 -2
  294. package/dist/esm/six-menu-divider.entry.js +2 -2
  295. package/dist/esm/six-menu-label.entry.js +2 -2
  296. package/dist/esm/six-picto.entry.js +2 -2
  297. package/dist/esm/six-progress-bar.entry.js +4 -4
  298. package/dist/esm/six-progress-ring.entry.js +2 -2
  299. package/dist/esm/six-radio.entry.js +3 -3
  300. package/dist/esm/six-range.entry.js +4 -4
  301. package/dist/esm/six-range.entry.js.map +1 -1
  302. package/dist/esm/six-rating.entry.js +124 -0
  303. package/dist/esm/six-rating.entry.js.map +1 -0
  304. package/dist/esm/six-root.entry.js +2 -2
  305. package/dist/esm/six-search-field.entry.js +1 -1
  306. package/dist/esm/six-select.entry.js +2 -2
  307. package/dist/esm/six-sidebar-item-group.entry.js +1 -1
  308. package/dist/esm/six-sidebar-item.entry.js +3 -3
  309. package/dist/esm/six-sidebar.entry.js +3 -3
  310. package/dist/esm/six-stage-indicator.entry.js +1 -1
  311. package/dist/esm/six-switch.entry.js +4 -4
  312. package/dist/esm/six-switch.entry.js.map +1 -1
  313. package/dist/esm/six-tab-group.entry.js +1 -1
  314. package/dist/esm/six-tab-panel.entry.js +2 -2
  315. package/dist/esm/six-tab.entry.js +4 -4
  316. package/dist/esm/six-tab.entry.js.map +1 -1
  317. package/dist/esm/six-tag.entry.js +3 -3
  318. package/dist/esm/six-textarea.entry.js +4 -4
  319. package/dist/esm/six-tile.entry.js +6 -6
  320. package/dist/esm/six-timepicker.entry.js +18 -10
  321. package/dist/esm/six-timepicker.entry.js.map +1 -1
  322. package/dist/esm/six-tooltip.entry.js +3 -3
  323. package/dist/esm/ui-library.js +4 -4
  324. package/dist/esm/ui-library.js.map +1 -1
  325. package/dist/types/components/six-breadcrumbs/six-breadcrumbs.d.ts +20 -0
  326. package/dist/types/components/six-breadcrumbs-item/six-breadcrumbs-item.d.ts +27 -0
  327. package/dist/types/components/six-date/iso-date.d.ts +2 -0
  328. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  329. package/dist/types/components/six-rating/six-rating.d.ts +52 -0
  330. package/dist/types/components.d.ts +886 -4
  331. package/dist/types/stencil-public-runtime.d.ts +19 -0
  332. package/dist/ui-library/{p-95182417.entry.js → p-014f44f4.entry.js} +2 -2
  333. package/dist/ui-library/p-014f44f4.entry.js.map +1 -0
  334. package/dist/ui-library/p-05ca516d.entry.js +2 -0
  335. package/dist/ui-library/{p-73b64625.entry.js → p-06c6b189.entry.js} +2 -2
  336. package/dist/ui-library/{p-7bdc9f95.entry.js → p-0eb90caf.entry.js} +2 -2
  337. package/dist/ui-library/{p-4a4a0751.entry.js → p-12a2cc6b.entry.js} +2 -2
  338. package/dist/ui-library/p-12e7a9e1.entry.js +2 -0
  339. package/dist/ui-library/p-12e7a9e1.entry.js.map +1 -0
  340. package/dist/ui-library/{p-6990e5ed.entry.js → p-194037e9.entry.js} +2 -2
  341. package/dist/ui-library/{p-e91aa04b.entry.js → p-22ad3353.entry.js} +2 -2
  342. package/dist/ui-library/p-22f924a1.entry.js +2 -0
  343. package/dist/ui-library/{p-df05b23b.entry.js → p-26219330.entry.js} +2 -2
  344. package/dist/ui-library/{p-16028bce.entry.js → p-29994dc3.entry.js} +2 -2
  345. package/dist/ui-library/{p-cc44af70.entry.js → p-29aac7ea.entry.js} +2 -2
  346. package/dist/ui-library/p-29aac7ea.entry.js.map +1 -0
  347. package/dist/ui-library/{p-1e4d1252.entry.js → p-2a245a37.entry.js} +2 -2
  348. package/dist/ui-library/{p-5e70085d.entry.js → p-313177b7.entry.js} +2 -2
  349. package/dist/ui-library/p-38c51fd1.entry.js +2 -0
  350. package/dist/ui-library/p-38c51fd1.entry.js.map +1 -0
  351. package/dist/ui-library/{p-9e8fdf44.entry.js → p-39109b96.entry.js} +2 -2
  352. package/dist/ui-library/{p-84964501.entry.js → p-3c1285ad.entry.js} +2 -2
  353. package/dist/ui-library/{p-8fe7ecdd.entry.js → p-3d9e03b5.entry.js} +2 -2
  354. package/dist/ui-library/{p-7d2f5f44.entry.js → p-4152b371.entry.js} +2 -2
  355. package/dist/ui-library/{p-81af96f2.entry.js → p-4d9785bd.entry.js} +2 -2
  356. package/dist/ui-library/p-4decf969.entry.js +2 -0
  357. package/dist/ui-library/p-4decf969.entry.js.map +1 -0
  358. package/dist/ui-library/{p-394c1dc0.entry.js → p-54490d28.entry.js} +2 -2
  359. package/dist/ui-library/{p-6a760300.entry.js → p-56e172e0.entry.js} +2 -2
  360. package/dist/ui-library/{p-d9640c45.entry.js → p-6607d03a.entry.js} +2 -2
  361. package/dist/ui-library/{p-baf698e1.entry.js → p-664ddbab.entry.js} +2 -2
  362. package/dist/ui-library/{p-830ed202.entry.js → p-66b94978.entry.js} +2 -2
  363. package/dist/ui-library/{p-36a316e0.entry.js → p-66d616e8.entry.js} +2 -2
  364. package/dist/ui-library/{p-5ed5842b.entry.js → p-6cd4fbd8.entry.js} +2 -2
  365. package/dist/ui-library/{p-85dbcfb5.entry.js → p-6dd3f54c.entry.js} +2 -2
  366. package/dist/ui-library/{p-01306147.entry.js → p-70388108.entry.js} +2 -2
  367. package/dist/ui-library/p-72d3f332.entry.js +2 -0
  368. package/dist/ui-library/p-72d3f332.entry.js.map +1 -0
  369. package/dist/ui-library/{p-64377a4b.entry.js → p-7f7413db.entry.js} +2 -2
  370. package/dist/ui-library/p-7f7413db.entry.js.map +1 -0
  371. package/dist/ui-library/{p-2992225b.entry.js → p-83d5fa7c.entry.js} +2 -2
  372. package/dist/ui-library/{p-b8db5638.entry.js → p-8c2edb7f.entry.js} +2 -2
  373. package/dist/ui-library/{p-19361e9b.entry.js → p-91c195d3.entry.js} +2 -2
  374. package/dist/ui-library/{p-9f0ed997.entry.js → p-984a1f6d.entry.js} +2 -2
  375. package/dist/ui-library/p-9b75e009.entry.js +2 -0
  376. package/dist/ui-library/p-9b75e009.entry.js.map +1 -0
  377. package/dist/ui-library/{p-d7866617.entry.js → p-9deca0d0.entry.js} +2 -2
  378. package/dist/ui-library/{p-IBmarOIS.js → p-Dg9366Gk.js} +2 -2
  379. package/dist/ui-library/{p-IBmarOIS.js.map → p-Dg9366Gk.js.map} +1 -1
  380. package/dist/ui-library/{p-D0Go1Zjj.js → p-JoG9I7EO.js} +1 -1
  381. package/dist/ui-library/{p-D0Go1Zjj.js.map → p-JoG9I7EO.js.map} +1 -1
  382. package/dist/ui-library/{p-97b78889.entry.js → p-a6d7d618.entry.js} +2 -2
  383. package/dist/ui-library/p-a7f9c92d.entry.js +2 -0
  384. package/dist/ui-library/{p-79a79513.entry.js.map → p-a7f9c92d.entry.js.map} +1 -1
  385. package/dist/ui-library/{p-071ed780.entry.js → p-aaea0f73.entry.js} +2 -2
  386. package/dist/ui-library/{p-c2ec443c.entry.js → p-ab043a8c.entry.js} +2 -2
  387. package/dist/ui-library/{p-f0f73eef.entry.js → p-b37d9771.entry.js} +2 -2
  388. package/dist/ui-library/{p-9713ecff.entry.js → p-bea434d1.entry.js} +2 -2
  389. package/dist/ui-library/p-bea434d1.entry.js.map +1 -0
  390. package/dist/ui-library/{p-6bb0b9e9.entry.js → p-c47f11e4.entry.js} +2 -2
  391. package/dist/ui-library/{p-ba68b30c.entry.js → p-ccc7e227.entry.js} +2 -2
  392. package/dist/ui-library/{p-f38c1d23.entry.js → p-d81265f4.entry.js} +2 -2
  393. package/dist/ui-library/{p-537a8953.entry.js → p-da5f40ed.entry.js} +2 -2
  394. package/dist/ui-library/{p-a534a4bc.entry.js → p-df2b8f01.entry.js} +2 -2
  395. package/dist/ui-library/p-e100aff2.entry.js +2 -0
  396. package/dist/ui-library/{p-679f1e08.entry.js → p-e8e5445e.entry.js} +2 -2
  397. package/dist/ui-library/{p-68c50fb7.entry.js → p-e92df84a.entry.js} +2 -2
  398. package/dist/ui-library/{p-9f77ae55.entry.js → p-ed6625e6.entry.js} +2 -2
  399. package/dist/ui-library/p-fc2d893f.entry.js +2 -0
  400. package/dist/ui-library/p-fcd3305f.entry.js +2 -0
  401. package/dist/ui-library/{p-0d97e592.entry.js.map → p-fcd3305f.entry.js.map} +1 -1
  402. package/dist/ui-library/p-fd97bc8a.entry.js +2 -0
  403. package/dist/ui-library/p-fd97bc8a.entry.js.map +1 -0
  404. package/dist/ui-library/{p-7c438e21.entry.js → p-fe2ef0a4.entry.js} +2 -2
  405. package/dist/ui-library/six-breadcrumbs-item.entry.esm.js.map +1 -0
  406. package/dist/ui-library/six-breadcrumbs.entry.esm.js.map +1 -0
  407. package/dist/ui-library/six-button.six-spinner.entry.esm.js.map +1 -0
  408. package/dist/ui-library/six-date.entry.esm.js.map +1 -1
  409. package/dist/ui-library/six-datepicker.entry.esm.js.map +1 -1
  410. package/dist/ui-library/six-range.entry.esm.js.map +1 -1
  411. package/dist/ui-library/six-rating.entry.esm.js.map +1 -0
  412. package/dist/ui-library/six-switch.entry.esm.js.map +1 -1
  413. package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
  414. package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
  415. package/dist/ui-library/ui-library.css +1 -1
  416. package/dist/ui-library/ui-library.esm.js +1 -1
  417. package/dist/ui-library/ui-library.esm.js.map +1 -1
  418. package/package.json +7 -8
  419. package/dist/cjs/six-button.cjs.entry.js.map +0 -1
  420. package/dist/cjs/six-button.entry.cjs.js.map +0 -1
  421. package/dist/cjs/six-spinner.cjs.entry.js +0 -58
  422. package/dist/cjs/six-spinner.cjs.entry.js.map +0 -1
  423. package/dist/cjs/six-spinner.entry.cjs.js.map +0 -1
  424. package/dist/components/p-BtF2Ym6T.js.map +0 -1
  425. package/dist/components/p-BtNjuUha.js.map +0 -1
  426. package/dist/components/p-D0dsFLio.js.map +0 -1
  427. package/dist/esm/six-button.entry.js.map +0 -1
  428. package/dist/esm/six-spinner.entry.js +0 -56
  429. package/dist/esm/six-spinner.entry.js.map +0 -1
  430. package/dist/ui-library/p-0d97e592.entry.js +0 -2
  431. package/dist/ui-library/p-5e5bd309.entry.js +0 -2
  432. package/dist/ui-library/p-5e5bd309.entry.js.map +0 -1
  433. package/dist/ui-library/p-64377a4b.entry.js.map +0 -1
  434. package/dist/ui-library/p-695e450e.entry.js +0 -2
  435. package/dist/ui-library/p-6d212bc0.entry.js +0 -2
  436. package/dist/ui-library/p-79a79513.entry.js +0 -2
  437. package/dist/ui-library/p-868fab98.entry.js +0 -2
  438. package/dist/ui-library/p-95182417.entry.js.map +0 -1
  439. package/dist/ui-library/p-9713ecff.entry.js.map +0 -1
  440. package/dist/ui-library/p-9b1c8a24.entry.js +0 -2
  441. package/dist/ui-library/p-9b1c8a24.entry.js.map +0 -1
  442. package/dist/ui-library/p-cc44af70.entry.js.map +0 -1
  443. package/dist/ui-library/p-d1bd67af.entry.js +0 -2
  444. package/dist/ui-library/p-d1bd67af.entry.js.map +0 -1
  445. package/dist/ui-library/p-f4e2ddfc.entry.js +0 -2
  446. package/dist/ui-library/p-f585a5ab.entry.js +0 -2
  447. package/dist/ui-library/p-f585a5ab.entry.js.map +0 -1
  448. package/dist/ui-library/six-button.entry.esm.js.map +0 -1
  449. package/dist/ui-library/six-spinner.entry.esm.js.map +0 -1
  450. /package/dist/ui-library/{p-695e450e.entry.js.map → p-05ca516d.entry.js.map} +0 -0
  451. /package/dist/ui-library/{p-73b64625.entry.js.map → p-06c6b189.entry.js.map} +0 -0
  452. /package/dist/ui-library/{p-7bdc9f95.entry.js.map → p-0eb90caf.entry.js.map} +0 -0
  453. /package/dist/ui-library/{p-4a4a0751.entry.js.map → p-12a2cc6b.entry.js.map} +0 -0
  454. /package/dist/ui-library/{p-6990e5ed.entry.js.map → p-194037e9.entry.js.map} +0 -0
  455. /package/dist/ui-library/{p-e91aa04b.entry.js.map → p-22ad3353.entry.js.map} +0 -0
  456. /package/dist/ui-library/{p-f4e2ddfc.entry.js.map → p-22f924a1.entry.js.map} +0 -0
  457. /package/dist/ui-library/{p-df05b23b.entry.js.map → p-26219330.entry.js.map} +0 -0
  458. /package/dist/ui-library/{p-16028bce.entry.js.map → p-29994dc3.entry.js.map} +0 -0
  459. /package/dist/ui-library/{p-1e4d1252.entry.js.map → p-2a245a37.entry.js.map} +0 -0
  460. /package/dist/ui-library/{p-5e70085d.entry.js.map → p-313177b7.entry.js.map} +0 -0
  461. /package/dist/ui-library/{p-9e8fdf44.entry.js.map → p-39109b96.entry.js.map} +0 -0
  462. /package/dist/ui-library/{p-84964501.entry.js.map → p-3c1285ad.entry.js.map} +0 -0
  463. /package/dist/ui-library/{p-8fe7ecdd.entry.js.map → p-3d9e03b5.entry.js.map} +0 -0
  464. /package/dist/ui-library/{p-7d2f5f44.entry.js.map → p-4152b371.entry.js.map} +0 -0
  465. /package/dist/ui-library/{p-81af96f2.entry.js.map → p-4d9785bd.entry.js.map} +0 -0
  466. /package/dist/ui-library/{p-394c1dc0.entry.js.map → p-54490d28.entry.js.map} +0 -0
  467. /package/dist/ui-library/{p-6a760300.entry.js.map → p-56e172e0.entry.js.map} +0 -0
  468. /package/dist/ui-library/{p-d9640c45.entry.js.map → p-6607d03a.entry.js.map} +0 -0
  469. /package/dist/ui-library/{p-baf698e1.entry.js.map → p-664ddbab.entry.js.map} +0 -0
  470. /package/dist/ui-library/{p-830ed202.entry.js.map → p-66b94978.entry.js.map} +0 -0
  471. /package/dist/ui-library/{p-36a316e0.entry.js.map → p-66d616e8.entry.js.map} +0 -0
  472. /package/dist/ui-library/{p-5ed5842b.entry.js.map → p-6cd4fbd8.entry.js.map} +0 -0
  473. /package/dist/ui-library/{p-85dbcfb5.entry.js.map → p-6dd3f54c.entry.js.map} +0 -0
  474. /package/dist/ui-library/{p-01306147.entry.js.map → p-70388108.entry.js.map} +0 -0
  475. /package/dist/ui-library/{p-2992225b.entry.js.map → p-83d5fa7c.entry.js.map} +0 -0
  476. /package/dist/ui-library/{p-b8db5638.entry.js.map → p-8c2edb7f.entry.js.map} +0 -0
  477. /package/dist/ui-library/{p-19361e9b.entry.js.map → p-91c195d3.entry.js.map} +0 -0
  478. /package/dist/ui-library/{p-9f0ed997.entry.js.map → p-984a1f6d.entry.js.map} +0 -0
  479. /package/dist/ui-library/{p-d7866617.entry.js.map → p-9deca0d0.entry.js.map} +0 -0
  480. /package/dist/ui-library/{p-97b78889.entry.js.map → p-a6d7d618.entry.js.map} +0 -0
  481. /package/dist/ui-library/{p-071ed780.entry.js.map → p-aaea0f73.entry.js.map} +0 -0
  482. /package/dist/ui-library/{p-c2ec443c.entry.js.map → p-ab043a8c.entry.js.map} +0 -0
  483. /package/dist/ui-library/{p-f0f73eef.entry.js.map → p-b37d9771.entry.js.map} +0 -0
  484. /package/dist/ui-library/{p-6bb0b9e9.entry.js.map → p-c47f11e4.entry.js.map} +0 -0
  485. /package/dist/ui-library/{p-ba68b30c.entry.js.map → p-ccc7e227.entry.js.map} +0 -0
  486. /package/dist/ui-library/{p-f38c1d23.entry.js.map → p-d81265f4.entry.js.map} +0 -0
  487. /package/dist/ui-library/{p-537a8953.entry.js.map → p-da5f40ed.entry.js.map} +0 -0
  488. /package/dist/ui-library/{p-a534a4bc.entry.js.map → p-df2b8f01.entry.js.map} +0 -0
  489. /package/dist/ui-library/{p-6d212bc0.entry.js.map → p-e100aff2.entry.js.map} +0 -0
  490. /package/dist/ui-library/{p-679f1e08.entry.js.map → p-e8e5445e.entry.js.map} +0 -0
  491. /package/dist/ui-library/{p-68c50fb7.entry.js.map → p-e92df84a.entry.js.map} +0 -0
  492. /package/dist/ui-library/{p-9f77ae55.entry.js.map → p-ed6625e6.entry.js.map} +0 -0
  493. /package/dist/ui-library/{p-868fab98.entry.js.map → p-fc2d893f.entry.js.map} +0 -0
  494. /package/dist/ui-library/{p-7c438e21.entry.js.map → p-fe2ef0a4.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {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A,EACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACR,cAAA,EAAA,GAAG,EACD,gBAAA,EAAA,OAAO,qBACN,OAAO,EAAA,EAEvB,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,MAAM,EAAC,gBAAgB,EAAG,CAAA,CAChC,CACD,CACR,EAEA,IAAI,CAAC,OAAO,IAAI,qEAAe,CACzB,CACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/six-button/six-button.scss?tag=six-button&encapsulation=shadow","src/components/six-button/six-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n width: auto;\n cursor: pointer;\n}\n\n.button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--six-border-width);\n border-radius: 0;\n font-family: var(--six-font-family);\n font-weight: var(--six-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition:\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) border,\n var(--six-transition-fast) box-shadow;\n cursor: inherit;\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &.button--disabled {\n pointer-events: none;\n }\n\n ::slotted(six-icon) {\n // Clicks on icons shouldn't prevent the button from gaining focus\n pointer-events: none;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n}\n\n.button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.button__prefix,\n.button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Standard buttons\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button {\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: var(--six-focus-ring-offset);\n }\n\n &.button--secondary {\n background-color: var(--six-color-white);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-900);\n border-width: 1px;\n }\n }\n\n &.button--primary {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-800);\n border-color: var(--six-color-web-rock-800);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n opacity: 70%;\n }\n }\n\n &.button--link {\n background-color: transparent;\n border-color: transparent;\n color: var(--six-color-action-500);\n\n &.button--disabled {\n color: var(--six-color-web-rock-400);\n }\n\n &:hover:not(.button--disabled) {\n color: var(--six-color-action-600);\n }\n\n &:active:not(.button--disabled) {\n color: var(--six-color-action-light-to-be-defined);\n }\n }\n\n &.button--danger {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-danger-900);\n border-color: var(--six-color-danger-900);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n opacity: 70%;\n }\n }\n\n &.button--warning {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-warning-800);\n border-color: var(--six-color-warning-800);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n opacity: 70%;\n }\n }\n\n &.button--success {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-success-600);\n border-color: var(--six-color-success-600);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n opacity: 70%;\n }\n }\n\n &.button--action {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-action-600);\n border-color: var(--six-color-action-600);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n opacity: 70%;\n }\n }\n\n &.button--action-outline {\n border-color: var(--six-color-action-500);\n background-color: var(--six-color-white);\n color: var(--six-color-action-500);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n }\n\n &:active:not(.button--disabled) {\n border-color: var(--six-color-action-500);\n opacity: 70%;\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--small {\n font-size: var(--six-button-font-size-small);\n height: var(--six-height-small);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n}\n\n.button--medium {\n font-size: var(--six-button-font-size-medium);\n height: var(--six-height-medium);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n}\n\n.button--large {\n font-size: var(--six-button-font-size-large);\n height: var(--six-height-large);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--pill {\n &.button--small {\n border-radius: var(--six-height-small);\n }\n\n &.button--medium {\n border-radius: var(--six-height-medium);\n }\n\n &.button--large {\n border-radius: var(--six-height-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Circle modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--circle {\n padding-left: 0;\n padding-right: 0;\n font-size: revert;\n\n &.button--small {\n width: var(--six-height-small);\n border-radius: 50%;\n }\n\n &.button--medium {\n width: var(--six-height-medium);\n border-radius: 50%;\n }\n\n &.button--large {\n width: var(--six-height-large);\n border-radius: 50%;\n }\n\n .button__prefix,\n .button__suffix,\n .button__caret {\n display: none;\n\n svg {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Caret modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--caret {\n .button__suffix {\n display: none;\n }\n\n .button__caret {\n display: flex;\n align-items: center;\n\n svg {\n color: var(--six-color-web-rock-900);\n width: 1em;\n height: 1em;\n }\n }\n}\n\n.button--primary,\n.button--action,\n.button--danger {\n .button__caret {\n svg {\n color: var(--six-color-white);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Loading modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--loading {\n position: relative;\n cursor: wait;\n\n .button__prefix,\n .button__label,\n .button__suffix,\n .button__caret {\n visibility: hidden;\n }\n\n six-spinner {\n --indicator-color: currentColor;\n position: absolute;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Badges\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n transform: translateY(-50%) translateX(50%);\n pointer-events: none;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Button spacing\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--has-label {\n &.button--small .button__label {\n padding: 0 var(--six-spacing-small);\n }\n\n &.button--medium .button__label {\n padding: 0 var(--six-spacing-medium);\n }\n\n &.button--large .button__label {\n padding: 0 var(--six-spacing-large);\n }\n}\n\n.button--has-prefix {\n &.button--small {\n padding-left: var(--six-spacing-x-small);\n\n .button__label {\n padding-left: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n}\n\n.button--has-suffix,\n.button--caret {\n &.button--small {\n padding-right: var(--six-spacing-x-small);\n\n .button__label {\n padding-right: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { submitForm } from '../../utils/form';\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 button's label.\n * @slot prefix - Used to prepend an icon or similar element to the button.\n * @slot suffix - Used to append an icon or similar element to the button.\n *\n * @part base - The component's base wrapper.\n * @part prefix - The prefix container.\n * @part label - The button's label.\n * @part suffix - The suffix container.\n * @part caret - The button's caret.\n */\n\n@Component({\n tag: 'six-button',\n styleUrl: 'six-button.scss',\n shadow: true,\n})\nexport class SixButton {\n private nativeButton?: HTMLButtonElement | HTMLAnchorElement;\n\n @Element() host!: HTMLSixButtonElement;\n\n @State() hasFocus = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n\n /** The button's type. */\n @Prop({ reflect: true }) type:\n | 'secondary'\n | 'primary'\n | 'link'\n | 'success'\n | 'warning'\n | 'danger'\n | 'action'\n | 'action-outline' = 'primary';\n\n /** The button's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw the button with a caret for use with dropdowns, popovers, etc. */\n @Prop() caret = false;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to draw the button in a loading state. */\n @Prop({ reflect: true }) loading = false;\n\n /** Set to true to draw a pill-style button with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to draw a circle button. */\n @Prop({ reflect: true }) circle = false;\n\n /** Indicates if activating the button should submit the form. Ignored when `href` is set. */\n @Prop({ reflect: true }) submit = false;\n\n /** Indicates if activating the button should reset the form. */\n @Prop({ reflect: true }) reset = false;\n\n /** An optional name for the button. Ignored when `href` is set. */\n @Prop() name = '';\n\n /** An optional value for the button. Ignored when `href` is set. */\n @Prop() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @Prop() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @Prop() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @Prop() download?: string;\n\n /** Emitted when the button loses focus. */\n @Event({ eventName: 'six-button-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the button gains focus. */\n @Event({ eventName: 'six-button-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeButton?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.nativeButton?.blur();\n }\n\n private handleSlotChange = () => {\n this.hasLabel = hasSlot(this.host);\n this.hasPrefix = hasSlot(this.host, 'prefix');\n this.hasSuffix = hasSlot(this.host, 'suffix');\n\n // set the correct icon size for suffix and prefix icons\n const prefixIcon = this.host.querySelector('[slot=\"prefix\"]');\n const suffixIcon = this.host.querySelector('[slot=\"suffix\"]');\n\n if (prefixIcon?.tagName.toLowerCase() === 'six-icon') {\n prefixIcon.setAttribute('size', this.mapSizeToIconSize(this.size));\n }\n\n if (suffixIcon?.tagName.toLowerCase() === 'six-icon') {\n suffixIcon.setAttribute('size', this.mapSizeToIconSize(this.size));\n }\n };\n\n private mapSizeToIconSize(buttonSize: 'small' | 'medium' | 'large'): string {\n const sizeMap = {\n small: 'xSmall',\n medium: 'small',\n large: 'medium',\n };\n return sizeMap[buttonSize] || 'small'; // Default to small\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 handleClick = (event: MouseEvent) => {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.submit) {\n event.preventDefault();\n submitForm(this.host);\n }\n };\n\n render() {\n const isLink = this.href != null;\n const isButton = !isLink;\n const Button = isLink ? 'a' : 'button';\n\n return (\n <div onClick={this.handleClick} class={{ 'button-wrapper--disabled': this.disabled }}>\n <Button\n ref={(el) => (this.nativeButton = el)}\n part=\"base\"\n class={{\n button: true,\n\n // Types\n 'button--secondary': this.type === 'secondary',\n 'button--primary': this.type === 'primary',\n 'button--link': this.type === 'link',\n 'button--success': this.type === 'success',\n 'button--warning': this.type === 'warning',\n 'button--danger': this.type === 'danger',\n 'button--action': this.type === 'action',\n 'button--action-outline': this.type === 'action-outline',\n\n // Sizes\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n\n // Modifiers\n 'button--caret': this.caret,\n 'button--circle': this.circle,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--pill': this.pill,\n 'button--has-label': this.hasLabel,\n 'button--has-prefix': this.hasPrefix,\n 'button--has-suffix': this.hasSuffix,\n }}\n disabled={isButton ? this.disabled : undefined}\n tabindex={this.disabled ? '-1' : undefined}\n type={isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined}\n name={isButton ? this.name : undefined}\n value={isButton ? this.value : undefined}\n href={isLink ? this.href : undefined}\n target={isLink && this.target != null ? this.target : undefined}\n download={isLink && this.download != null ? this.download : undefined}\n rel={isLink && this.target != null ? 'noreferrer noopener' : undefined}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n data-testid=\"button\"\n >\n <span part=\"prefix\" class=\"button__prefix\">\n <slot onSlotchange={this.handleSlotChange} name=\"prefix\" />\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot onSlotchange={this.handleSlotChange} />\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot onSlotchange={this.handleSlotChange} name=\"suffix\" />\n </span>\n {this.caret && (\n <span part=\"caret\" class=\"button__caret\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n )}\n\n {this.loading && <six-spinner />}\n </Button>\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src/utils/popup.ts","src/utils/time.util.ts","src/components/six-timepicker/six-timepicker.scss?tag=six-timepicker&encapsulation=shadow","src/components/six-timepicker/six-timepicker.tsx"],"sourcesContent":["/**\n * If the popup is hoisted we popup is hoisted its position will change to fix to not be clipped of by a containing container.\n * To render the popup correctly we render it normally, and then assign this screenposition to the fixed popup\n */\nexport function adjustPopupForHoisting(\n hoist: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number,\n dropdownDirectionChanged: (isUp: boolean) => void\n) {\n if (!hoist || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n // take a snapshot of normally rendered popup\n const popupDimensions = setPopupAsFixPosition(popup);\n const inputDimensions = inputElement.getBoundingClientRect();\n const inputTop = inputDimensions.top;\n const popupTop = popupDimensions.top;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n // check screen position to check whether the popup should be moved above or below the trigger element\n if (isUp && inputTop < popupTop) {\n // move popup above input field if datepicker is at bottom of screen\n popup.style.top = `${popupTop - popupDimensions.height - inputDimensions.height}px`;\n }\n dropdownDirectionChanged(isUp);\n}\n\n/*\n * For small screens the datepicker popup could be cut-off even though there might still be space within the viewport.\n * This is because the popup is always aligned with the trigger input field. However in the scenario of small screens\n * we should reposition the popup to use the space available.\n */\nexport function adjustPopupForSmallScreens(popup?: HTMLElement) {\n // execute after dropdown has been rendered to make sure the popup reference is correctly set\n setTimeout(() => {\n if (popup == null) {\n return;\n }\n const popupDimensions = popup.getBoundingClientRect();\n if (\n popupDimensions.y < 0 &&\n window.innerHeight - popupDimensions.height > 0 &&\n Math.abs(popupDimensions.y) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off on top but there is still space available\n setPopupAsFixPosition(popup);\n popup.style.top = '0px';\n } else if (\n window.innerHeight < popupDimensions.y + popupDimensions.height &&\n window.innerHeight > popupDimensions.height &&\n Math.abs(popupDimensions.y - window.innerHeight) <= popupDimensions.height\n ) {\n // handle case where popup is cut-off at the bottom but there is still space available above\n // apply screen position to fixed popup\n setPopupAsFixPosition(popup);\n popup.style.top = `${window.innerHeight - popupDimensions.height}px`;\n }\n\n if (\n window.innerWidth < popupDimensions.x + popupDimensions.width &&\n window.innerWidth > popupDimensions.width &&\n Math.abs(popupDimensions.x - window.innerWidth) <= popupDimensions.width\n ) {\n // handle case where popup is cut-off to the right\n setPopupAsFixPosition(popup);\n popup.style.left = `${window.innerWidth - popupDimensions.width}px`;\n }\n }, 0);\n}\n\nexport function calcIsDropDownContentUp(\n inputElement: HTMLElement,\n wrapper: HTMLElement,\n minPopupHeight: number\n): boolean {\n const inputBoundingRect = inputElement.getBoundingClientRect();\n const wrapperBoundingRect = wrapper.getBoundingClientRect();\n const popupHeight = Math.max(wrapperBoundingRect.height, minPopupHeight);\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n return moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + popupHeight;\n}\n\nexport function setPopupAsFixPosition(popup: HTMLElement): DOMRect {\n const popupDimensions = popup.getBoundingClientRect();\n popup.style.position = 'fixed';\n popup.style.top = popupDimensions['top'] + 'px';\n popup.style.left = popupDimensions['left'] + 'px';\n popup.style.width = popupDimensions['width'] + 'px';\n popup.style.minHeight = 'fit-content';\n return popupDimensions;\n}\n\n/*\n * The position of the hoisted datepicker needs to be correctly calculated since the position changes to fixed.\n * Thus if the user scrolls or adjusts the screen size we need to recalculate the datepicker position.\n */\nexport function movePopup(\n hoist: boolean,\n open: boolean,\n popup: HTMLElement | undefined,\n inputElement: HTMLElement | undefined,\n wrapper: HTMLElement | undefined,\n minPopupHeight: number\n) {\n if (!hoist || !open || popup == null || inputElement == null || wrapper == null) {\n return;\n }\n const popupBoundingClientRect = popup.getBoundingClientRect();\n const popupHeight = popupBoundingClientRect.height;\n const inputBoundingClientRect = inputElement.getBoundingClientRect();\n const inputTop = inputBoundingClientRect.top;\n const inputHeight = inputBoundingClientRect.height;\n\n const isUp = calcIsDropDownContentUp(inputElement, wrapper, minPopupHeight);\n\n if (isUp) {\n popup.style.top = `${inputTop - popupHeight}px`;\n } else {\n popup.style.top = `${inputTop + inputHeight}px`;\n }\n}\n","export type TimePeriod = 'AM' | 'PM';\n\nexport interface Time {\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n has24Hours?: boolean; // true => 24h, false => 12h\n period?: TimePeriod; // only needed for 12-hour clock\n}\n\nexport type TimeProperties = keyof Time;\n\nexport type TimeFormatChar =\n | 'HH' // 24h\n | 'hh' // 12h\n | 'mm' // minutes\n | 'ss' // seconds\n | 'ms' // milliseconds\n | 'aa'; // period (AM/PM)\n\n/*\n * Supported time formats\n */\nexport type TimeFormat =\n | 'HH:mm:ss'\n | 'hh:mm:ss:aa'\n | 'HH:mm:ss:ms'\n | 'hh:mm:ss:ms:aa'\n | 'HH:mm'\n | 'hh:mm:aa'\n | 'HH'\n | 'hh:aa'\n | 'mm'\n | 'ss'\n | 'ms';\n\nexport const getCurrentTimeIn24Hours = (): Time => {\n const now = new Date();\n return {\n hours: now.getHours(),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: true,\n };\n};\n\nconst HOURS_IN_12_HOUR_CLOCK_FORMAT = 12;\n\nexport const getHoursIn12HourFormat = (hours: number) =>\n hours > HOURS_IN_12_HOUR_CLOCK_FORMAT ? hours - HOURS_IN_12_HOUR_CLOCK_FORMAT : hours;\n\nexport const getCurrentTimeIn12Hours = (): Time => {\n const now = new Date();\n const hours = now.getHours();\n return {\n hours: getHoursIn12HourFormat(hours),\n minutes: now.getMinutes(),\n seconds: now.getSeconds(),\n milliseconds: now.getMilliseconds(),\n has24Hours: false,\n period: hours >= HOURS_IN_12_HOUR_CLOCK_FORMAT ? 'PM' : 'AM',\n };\n};\n\nexport const getCurrentTime = (has24Hours = true): Time => {\n return has24Hours ? getCurrentTimeIn24Hours() : getCurrentTimeIn12Hours();\n};\n\nexport const isValidTimeString = (timeStr: string, format: TimeFormat) => {\n const timeStringParts = timeStr.split(':');\n const timeFormatParts = format.split(':');\n return timeStringParts.length === timeFormatParts.length;\n};\n\nexport const parseTimeString = (timeStr: string, format: TimeFormat): Time => {\n const timeParts = timeStr.split(':');\n const formatParts = format.split(':') as TimeFormatChar[];\n\n if (!isValidTimeString(timeStr, format)) {\n console.error(\n `Timestring did not match expected format.\\nExpected format: ${format}\\nReceived timestring: ${timeStr}`\n );\n }\n\n const time: Time = {};\n\n timeParts.forEach((timeStringPart, i) => {\n const formatStringPart: TimeFormatChar = formatParts[i];\n switch (formatStringPart) {\n case 'HH':\n time.hours = Number(timeStringPart);\n time.has24Hours = true;\n break;\n case 'hh':\n time.hours = Number(timeStringPart);\n time.has24Hours = false;\n break;\n case 'mm':\n time.minutes = Number(timeStringPart);\n break;\n case 'ss':\n time.seconds = Number(timeStringPart);\n break;\n case 'ms':\n time.milliseconds = Number(timeStringPart);\n break;\n case 'aa':\n time.period = timeStringPart.toUpperCase() === 'PM' ? 'PM' : 'AM';\n }\n });\n return time;\n};\n\nexport const createTimeString = (time: Time | undefined, format: TimeFormat): string => {\n if (time == null) {\n return '';\n }\n\n const formatParts = format.split(':') as TimeFormatChar[];\n\n return formatParts\n .map((timeFormatPart) => {\n switch (timeFormatPart) {\n case 'HH':\n case 'hh':\n return String(time.hours).padStart(2, '0');\n case 'mm':\n return String(time.minutes).padStart(2, '0');\n case 'ss':\n return String(time.seconds).padStart(2, '0');\n case 'ms':\n return String(time.milliseconds).padStart(3, '0');\n case 'aa':\n return String(time.period);\n }\n })\n .join(':');\n};\n","@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.timepicker {\n &_clear {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n\n &--right {\n right: 0;\n position: absolute;\n }\n\n &--left {\n right: 35px;\n position: absolute;\n }\n }\n\n &__container {\n position: relative;\n }\n\n &__popup {\n display: flex;\n justify-content: center;\n min-width: min-content;\n background-color: white;\n padding: 0.5em;\n box-shadow:\n 0 2px 4px -1px rgb(0 0 0 / 20%),\n 0 4px 5px 0 rgb(0 0 0 / 14%),\n 0 1px 10px 0 rgb(0 0 0 / 12%);\n user-select: none;\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n right: 0;\n left: 0;\n\n &--is-up {\n bottom: 100%;\n }\n\n &--is-inline {\n position: initial;\n box-shadow: none;\n border: 1px solid var(--six-color-web-rock-400);\n }\n }\n\n &__separator {\n display: flex;\n align-items: center;\n }\n\n &__item {\n &--wide {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n }\n }\n}\n\n.input--empty .timepicker_clear {\n visibility: hidden;\n}\n\n.input--hide {\n display: none;\n}\n\n// Icon position\n.prefix {\n cursor: pointer;\n\n &--right {\n right: 0;\n display: inline-flex;\n position: absolute;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n margin-right: var(--six-input-spacing-medium);\n transition: var(--six-transition-fast) color;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n Time,\n TimeFormat,\n TimeProperties,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { adjustPopupForHoisting, movePopup } from '../../utils/popup';\n\nexport interface SixTimepickerChange {\n value?: Time;\n valueAsString: string;\n changedProperty?: string;\n}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: TimeProperties;\n}\n\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private eventListeners = new EventListeners();\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private inputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: TimeFormat = 'HH:mm:ss';\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = ':';\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value = '';\n\n /** Indicates whether the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\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 /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\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 /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' }) sixChangeDebounced!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n this.updateValue();\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State() private popupValue: Time = {};\n\n connectedCallback() {\n this.eventListeners.forward('six-timepicker-change', 'change', this.host);\n }\n\n componentWillLoad() {\n this.updateValue();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n const inputElement = this.inputElement;\n\n // emit debounced change event\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce((event: Event) => this.sixChangeDebounced.emit((event as CustomEvent).detail), this.debounce)\n );\n\n // update value and popup value based on input-element value\n this.eventListeners.add(\n inputElement,\n 'six-input-input',\n debounce((event: Event) => {\n event.stopPropagation();\n\n // emit empty event if time string is invalid\n if (!isValidTimeString(inputElement.value, this.format)) {\n this.value = inputElement.value;\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n // update value and popup value, and emit the new value\n this.value = inputElement.value;\n this.popupValue = parseTimeString(inputElement.value, this.format);\n this.sixChange.emit({\n value: this.popupValue,\n valueAsString: createTimeString(this.popupValue, this.format),\n });\n }, this.debounce)\n );\n }\n\n componentDidRender() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n private updateValue() {\n // normalize value\n if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {\n this.value = '';\n }\n\n // update popup value\n if (this.value === '') {\n if (this.defaultTime == null) {\n this.popupValue = getCurrentTime(this.is24HourClock());\n } else {\n this.popupValue = parseTimeString(this.defaultTime, this.format);\n }\n } else {\n this.popupValue = parseTimeString(this.value, this.format);\n }\n }\n\n private calcIsPopupContentUp() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private handlePickerChange = (event: CustomEvent<SixItemPickerChangePayload>, property: TimeProperties) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n if (this.popupValue == null) {\n return;\n }\n\n // update the internal state\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.popupValue[property] = event.detail;\n\n const timeString = createTimeString(this.popupValue, this.format);\n\n // update the input value\n this.value = timeString;\n\n // emit change event\n this.sixChange.emit({\n changedProperty: property,\n value: this.popupValue,\n valueAsString: timeString,\n });\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n value={this.popupValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handlePickerChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: 'hours' });\n }\n\n private is24HourClock() {\n return this.format.includes('HH');\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: 'hours' });\n }\n\n private is12HourClock() {\n return this.format.includes('hh');\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: 'period',\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes('mm')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'minutes' });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes('ss')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'seconds' });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes('ms')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: 'milliseconds',\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = '';\n this.sixClear.emit();\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n render() {\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n errorTextCount={this.errorTextCount}\n errorText={this.errorText}\n invalid={this.invalid}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n class={{\n 'input--empty': this.value === '',\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"version":3,"file":"six-button.entry.js","sources":["src/components/six-button/six-button.scss?tag=six-button&encapsulation=shadow","src/components/six-button/six-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n width: auto;\n cursor: pointer;\n}\n\n.button {\n display: inline-flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n border-style: solid;\n border-width: var(--six-border-width);\n border-radius: 0;\n font-family: var(--six-font-family);\n font-weight: var(--six-font-weight-semibold);\n text-decoration: none;\n user-select: none;\n white-space: nowrap;\n vertical-align: middle;\n padding: 0;\n transition:\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) border,\n var(--six-transition-fast) box-shadow;\n cursor: inherit;\n\n &::-moz-focus-inner {\n border: 0;\n }\n\n &:focus {\n outline: none;\n }\n\n &.button--disabled {\n pointer-events: none;\n }\n\n ::slotted(six-icon) {\n // Clicks on icons shouldn't prevent the button from gaining focus\n pointer-events: none;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n}\n\n.button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.button__prefix,\n.button__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Standard buttons\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button {\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: var(--six-focus-ring-offset);\n }\n\n &.button--secondary {\n background-color: var(--six-color-white);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-900);\n border-width: 1px;\n }\n }\n\n &.button--primary {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-800);\n border-color: var(--six-color-web-rock-800);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n opacity: 70%;\n }\n }\n\n &.button--link {\n background-color: transparent;\n border-color: transparent;\n color: var(--six-color-action-500);\n\n &.button--disabled {\n color: var(--six-color-web-rock-400);\n }\n\n &:hover:not(.button--disabled) {\n color: var(--six-color-action-600);\n }\n\n &:active:not(.button--disabled) {\n color: var(--six-color-action-light-to-be-defined);\n }\n }\n\n &.button--danger {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-danger-900);\n border-color: var(--six-color-danger-900);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-danger-800);\n border-color: var(--six-color-danger-800);\n opacity: 70%;\n }\n }\n\n &.button--warning {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-warning-800);\n border-color: var(--six-color-warning-800);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-warning-700);\n border-color: var(--six-color-warning-700);\n opacity: 70%;\n }\n }\n\n &.button--success {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n color: var(--six-color-web-rock-900);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-success-600);\n border-color: var(--six-color-success-600);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-success-500);\n border-color: var(--six-color-success-500);\n opacity: 70%;\n }\n }\n\n &.button--action {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n color: var(--six-color-white);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-action-600);\n border-color: var(--six-color-action-600);\n }\n\n &:active:not(.button--disabled) {\n background-color: var(--six-color-action-500);\n border-color: var(--six-color-action-500);\n opacity: 70%;\n }\n }\n\n &.button--action-outline {\n border-color: var(--six-color-action-500);\n background-color: var(--six-color-white);\n color: var(--six-color-action-500);\n\n &.button--disabled {\n background-color: var(--six-color-web-rock-400);\n border-color: var(--six-color-web-rock-400);\n color: var(--six-color-web-rock-700);\n }\n\n &:hover:not(.button--disabled) {\n background-color: var(--six-color-web-rock-100);\n }\n\n &:active:not(.button--disabled) {\n border-color: var(--six-color-action-500);\n opacity: 70%;\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--small {\n font-size: var(--six-button-font-size-small);\n height: var(--six-height-small);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n}\n\n.button--medium {\n font-size: var(--six-button-font-size-medium);\n height: var(--six-height-medium);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n}\n\n.button--large {\n font-size: var(--six-button-font-size-large);\n height: var(--six-height-large);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--pill {\n &.button--small {\n border-radius: var(--six-height-small);\n }\n\n &.button--medium {\n border-radius: var(--six-height-medium);\n }\n\n &.button--large {\n border-radius: var(--six-height-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Circle modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--circle {\n padding-left: 0;\n padding-right: 0;\n font-size: revert;\n\n &.button--small {\n width: var(--six-height-small);\n border-radius: 50%;\n }\n\n &.button--medium {\n width: var(--six-height-medium);\n border-radius: 50%;\n }\n\n &.button--large {\n width: var(--six-height-large);\n border-radius: 50%;\n }\n\n .button__prefix,\n .button__suffix,\n .button__caret {\n display: none;\n\n svg {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Caret modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--caret {\n .button__suffix {\n display: none;\n }\n\n .button__caret {\n display: flex;\n align-items: center;\n\n svg {\n color: var(--six-color-web-rock-900);\n width: 1em;\n height: 1em;\n }\n }\n}\n\n.button--primary,\n.button--action,\n.button--danger {\n .button__caret {\n svg {\n color: var(--six-color-white);\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Loading modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--loading {\n position: relative;\n cursor: wait;\n\n .button__prefix,\n .button__label,\n .button__suffix,\n .button__caret {\n visibility: hidden;\n }\n\n six-spinner {\n --indicator-color: currentColor;\n position: absolute;\n height: 1em;\n width: 1em;\n top: calc(50% - 0.5em);\n left: calc(50% - 0.5em);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Badges\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n transform: translateY(-50%) translateX(50%);\n pointer-events: none;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Button spacing\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.button--has-label {\n &.button--small .button__label {\n padding: 0 var(--six-spacing-small);\n }\n\n &.button--medium .button__label {\n padding: 0 var(--six-spacing-medium);\n }\n\n &.button--large .button__label {\n padding: 0 var(--six-spacing-large);\n }\n}\n\n.button--has-prefix {\n &.button--small {\n padding-left: var(--six-spacing-x-small);\n\n .button__label {\n padding-left: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-left: var(--six-spacing-small);\n\n .button__label {\n padding-left: var(--six-spacing-small);\n }\n }\n}\n\n.button--has-suffix,\n.button--caret {\n &.button--small {\n padding-right: var(--six-spacing-x-small);\n\n .button__label {\n padding-right: var(--six-spacing-x-small);\n }\n }\n\n &.button--medium {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n\n &.button--large {\n padding-right: var(--six-spacing-small);\n\n .button__label {\n padding-right: var(--six-spacing-small);\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { submitForm } from '../../utils/form';\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 button's label.\n * @slot prefix - Used to prepend an icon or similar element to the button.\n * @slot suffix - Used to append an icon or similar element to the button.\n *\n * @part base - The component's base wrapper.\n * @part prefix - The prefix container.\n * @part label - The button's label.\n * @part suffix - The suffix container.\n * @part caret - The button's caret.\n */\n\n@Component({\n tag: 'six-button',\n styleUrl: 'six-button.scss',\n shadow: true,\n})\nexport class SixButton {\n private nativeButton?: HTMLButtonElement | HTMLAnchorElement;\n\n @Element() host!: HTMLSixButtonElement;\n\n @State() hasFocus = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n\n /** The button's type. */\n @Prop({ reflect: true }) type:\n | 'secondary'\n | 'primary'\n | 'link'\n | 'success'\n | 'warning'\n | 'danger'\n | 'action'\n | 'action-outline' = 'primary';\n\n /** The button's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw the button with a caret for use with dropdowns, popovers, etc. */\n @Prop() caret = false;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to draw the button in a loading state. */\n @Prop({ reflect: true }) loading = false;\n\n /** Set to true to draw a pill-style button with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to draw a circle button. */\n @Prop({ reflect: true }) circle = false;\n\n /** Indicates if activating the button should submit the form. Ignored when `href` is set. */\n @Prop({ reflect: true }) submit = false;\n\n /** Indicates if activating the button should reset the form. */\n @Prop({ reflect: true }) reset = false;\n\n /** An optional name for the button. Ignored when `href` is set. */\n @Prop() name = '';\n\n /** An optional value for the button. Ignored when `href` is set. */\n @Prop() value = '';\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @Prop() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @Prop() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @Prop() download?: string;\n\n /** Emitted when the button loses focus. */\n @Event({ eventName: 'six-button-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the button gains focus. */\n @Event({ eventName: 'six-button-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeButton?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.nativeButton?.blur();\n }\n\n private handleSlotChange = () => {\n this.hasLabel = hasSlot(this.host);\n this.hasPrefix = hasSlot(this.host, 'prefix');\n this.hasSuffix = hasSlot(this.host, 'suffix');\n\n // set the correct icon size for suffix and prefix icons\n const prefixIcon = this.host.querySelector('[slot=\"prefix\"]');\n const suffixIcon = this.host.querySelector('[slot=\"suffix\"]');\n\n if (prefixIcon?.tagName.toLowerCase() === 'six-icon') {\n prefixIcon.setAttribute('size', this.mapSizeToIconSize(this.size));\n }\n\n if (suffixIcon?.tagName.toLowerCase() === 'six-icon') {\n suffixIcon.setAttribute('size', this.mapSizeToIconSize(this.size));\n }\n };\n\n private mapSizeToIconSize(buttonSize: 'small' | 'medium' | 'large'): string {\n const sizeMap = {\n small: 'xSmall',\n medium: 'small',\n large: 'medium',\n };\n return sizeMap[buttonSize] || 'small'; // Default to small\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 handleClick = (event: MouseEvent) => {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.submit) {\n event.preventDefault();\n submitForm(this.host);\n }\n };\n\n render() {\n const isLink = this.href != null;\n const isButton = !isLink;\n const Button = isLink ? 'a' : 'button';\n\n return (\n <div onClick={this.handleClick} class={{ 'button-wrapper--disabled': this.disabled }}>\n <Button\n ref={(el) => (this.nativeButton = el)}\n part=\"base\"\n class={{\n button: true,\n\n // Types\n 'button--secondary': this.type === 'secondary',\n 'button--primary': this.type === 'primary',\n 'button--link': this.type === 'link',\n 'button--success': this.type === 'success',\n 'button--warning': this.type === 'warning',\n 'button--danger': this.type === 'danger',\n 'button--action': this.type === 'action',\n 'button--action-outline': this.type === 'action-outline',\n\n // Sizes\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n\n // Modifiers\n 'button--caret': this.caret,\n 'button--circle': this.circle,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--pill': this.pill,\n 'button--has-label': this.hasLabel,\n 'button--has-prefix': this.hasPrefix,\n 'button--has-suffix': this.hasSuffix,\n }}\n disabled={isButton ? this.disabled : undefined}\n tabindex={this.disabled ? '-1' : undefined}\n type={isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined}\n name={isButton ? this.name : undefined}\n value={isButton ? this.value : undefined}\n href={isLink ? this.href : undefined}\n target={isLink && this.target != null ? this.target : undefined}\n download={isLink && this.download != null ? this.download : undefined}\n rel={isLink && this.target != null ? 'noreferrer noopener' : undefined}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n data-testid=\"button\"\n >\n <span part=\"prefix\" class=\"button__prefix\">\n <slot onSlotchange={this.handleSlotChange} name=\"prefix\" />\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot onSlotchange={this.handleSlotChange} />\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot onSlotchange={this.handleSlotChange} name=\"suffix\" />\n </span>\n {this.caret && (\n <span part=\"caret\" class=\"button__caret\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"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I,EAAC,OAAO,EAAC,KAAK,EAAC,eAAe,EAAA,EACtC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACR,cAAA,EAAA,GAAG,EACD,gBAAA,EAAA,OAAO,qBACN,OAAO,EAAA,EAEvB,CAAA,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAU,MAAM,EAAC,gBAAgB,EAAG,CAAA,CAChC,CACD,CACR,EAEA,IAAI,CAAC,OAAO,IAAI,qEAAe,CACzB,CACL;;;;;;;;"}
@@ -1,56 +0,0 @@
1
- import { r as registerInstance, h } from './index-D0Go1Zjj.js';
2
-
3
- const sixSpinnerCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:host{--track-color:var(--six-progress-track-color);--indicator-color:var(--six-progress-indicator-color);--stroke-width:2px;display:inline-flex}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.six-spinner{width:auto;height:auto;position:relative}.six-spinner .six-spinner__container{margin:0;transform:translateX(0)}.six-spinner .six-spinner__container svg{transform:translateX(0)}.six-spinner__container{position:relative;margin:0 auto;top:calc(50% - 20px);z-index:1}.six-spinner__container,.six-spinner__container svg{width:40px;height:40px;display:block;transform:translateX(40px)}.six-spinner path{stroke-dashoffset:70px;stroke-dasharray:70, 444;-webkit-animation:six-spinner 2s cubic-bezier(0.56, 0.39, 0.51, 0.96) infinite;animation:six-spinner 2s cubic-bezier(0.56, 0.39, 0.51, 0.96) infinite}.six-spinner polygon{stroke-dasharray:310;stroke-dashoffset:310;animation:big-polygon-draw 2s ease-in-out infinite;-webkit-animation:big-polygon-draw 2s ease-in-out infinite}.six-spinner polygon:nth-child(2),.six-spinner polygon:nth-child(3){stroke-dasharray:110;stroke-dashoffset:110;animation:small-polygon-draw 2s ease-in-out infinite;-webkit-animation:small-polygon-draw 2s ease-in-out infinite}@keyframes big-polygon-draw{0%,100%{stroke-dashoffset:310}50%{stroke-dashoffset:140}}@-webkit-keyframes big-polygon-draw{0%,100%{stroke-dashoffset:310}50%{stroke-dashoffset:140}}@keyframes small-polygon-draw{0%,100%{stroke-dashoffset:110}50%{stroke-dashoffset:50}}@-webkit-keyframes small-polygon-draw{0%,100%{stroke-dashoffset:110}50%{stroke-dashoffset:50}}@-webkit-keyframes six-spinner{to{stroke-dashoffset:-444}}@keyframes six-spinner{to{stroke-dashoffset:-444}}";
4
-
5
- const SixSpinner = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- /**
10
- * Renders a container with a given SVG content.
11
- */
12
- renderWrapper(content) {
13
- return (h("span", { class: "six-spinner", "aria-busy": "true", "aria-live": "polite" }, h("div", { class: "six-spinner__container" }, content)));
14
- }
15
- /**
16
- * Renders the SIX logo spinner.
17
- */
18
- renderSIXLogo() {
19
- const sixLogo = (h("svg", { viewBox: "0 0 40 40", part: "svg" }, h("path", { fill: "none", stroke: "#de3919", "stroke-width": "5", "stroke-linecap": "round", d: "M 35 5 V 35 H 5 T 5 5 H 35 V 35 H 5 V 5 H 35 V 35 H -34 V 30 H 7 A 9 8 0 0 0 14 27 L 27 14 A 8 6 0 0 1 33 12 H 42" })));
20
- return this.renderWrapper(sixLogo);
21
- }
22
- /**
23
- * Renders the BME logo spinner.
24
- */
25
- renderBMELogo() {
26
- const bmeLogo = (h("svg", { viewBox: "0 0 45 55", part: "svg" }, h("polygon", { fill: "none", stroke: "black", "stroke-width": "2", "stroke-linecap": "round", points: "4.42 51.96 17.02 31.473 2 31.473 2 22.486 17.02 22.486 4.42 2 15.404 2 30.289 26.98 14.763 51.96 4.42 51.96" }), h("polygon", { fill: "none", stroke: "black", "stroke-width": "2", "stroke-linecap": "round", points: "42 51.96 31.655 51.96 24.598 40.498 29.831 32.073 42 51.96" }), h("polygon", { fill: "none", stroke: "black", "stroke-width": "2", "stroke-linecap": "round", points: "24.518 12.719 31.014 2 42 2 29.831 21.637 24.518 12.719" })));
27
- return this.renderWrapper(bmeLogo);
28
- }
29
- /**
30
- * Renders a simple spinner.
31
- */
32
- renderSimpleSpinner() {
33
- return h("span", { part: "base", class: "spinner", "aria-busy": "true", "aria-live": "polite" });
34
- }
35
- render() {
36
- // Check the deprecated `six` property first
37
- if (this.six) {
38
- console.warn('The "six" prop is deprecated. Use "logo=\'six\'" instead.');
39
- return this.renderSIXLogo();
40
- }
41
- switch (this.logo) {
42
- case 'six':
43
- return this.renderSIXLogo();
44
- case 'bme':
45
- return this.renderBMELogo();
46
- default:
47
- return this.renderSimpleSpinner();
48
- }
49
- }
50
- };
51
- SixSpinner.style = sixSpinnerCss;
52
-
53
- export { SixSpinner as six_spinner };
54
- //# sourceMappingURL=six-spinner.entry.js.map
55
-
56
- //# sourceMappingURL=six-spinner.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"six-spinner.entry.js","sources":["src/components/six-spinner/six-spinner.scss?tag=six-spinner&encapsulation=shadow","src/components/six-spinner/six-spinner.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --track-color: The color of the spinner's track.\n * @prop --indicator-color: The color of the spinner's indicator.\n * @prop --stroke-width: The width of the indicator.\n */\n:host {\n --track-color: var(--six-progress-track-color);\n --indicator-color: var(--six-progress-indicator-color);\n --stroke-width: 2px;\n\n display: inline-flex;\n}\n\n.spinner {\n display: inline-block;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n border: solid var(--stroke-width) var(--track-color);\n border-top-color: var(--indicator-color);\n border-right-color: var(--indicator-color);\n animation: 1s linear infinite spin;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n$color-six-spinner-background: rgba(255, 255, 255, 0.7);\n\n.six-spinner {\n width: auto;\n height: auto;\n position: relative;\n\n .six-spinner__container {\n margin: 0;\n transform: translateX(0);\n }\n\n .six-spinner__container svg {\n transform: translateX(0);\n }\n\n &__container {\n position: relative;\n margin: 0 auto;\n top: calc(50% - 20px);\n z-index: 1;\n }\n\n &__container,\n &__container svg {\n width: 40px;\n height: 40px;\n display: block;\n transform: translateX(40px);\n }\n\n path {\n stroke-dashoffset: 70px;\n stroke-dasharray: 70, 444;\n -webkit-animation: six-spinner 2s cubic-bezier(0.56, 0.39, 0.51, 0.96) infinite;\n animation: six-spinner 2s cubic-bezier(0.56, 0.39, 0.51, 0.96) infinite;\n }\n\n polygon {\n stroke-dasharray: 310;\n stroke-dashoffset: 310;\n animation: big-polygon-draw 2s ease-in-out infinite;\n -webkit-animation: big-polygon-draw 2s ease-in-out infinite;\n }\n\n polygon:nth-child(2),\n polygon:nth-child(3) {\n stroke-dasharray: 110;\n stroke-dashoffset: 110;\n animation: small-polygon-draw 2s ease-in-out infinite;\n -webkit-animation: small-polygon-draw 2s ease-in-out infinite;\n }\n\n @keyframes big-polygon-draw {\n 0%,\n 100% {\n stroke-dashoffset: 310;\n }\n 50% {\n stroke-dashoffset: 140;\n }\n }\n\n @-webkit-keyframes big-polygon-draw {\n 0%,\n 100% {\n stroke-dashoffset: 310;\n }\n 50% {\n stroke-dashoffset: 140;\n }\n }\n\n @keyframes small-polygon-draw {\n 0%,\n 100% {\n stroke-dashoffset: 110;\n }\n 50% {\n stroke-dashoffset: 50;\n }\n }\n\n @-webkit-keyframes small-polygon-draw {\n 0%,\n 100% {\n stroke-dashoffset: 110;\n }\n 50% {\n stroke-dashoffset: 50;\n }\n }\n\n @-webkit-keyframes six-spinner {\n to {\n stroke-dashoffset: -444;\n }\n }\n\n @keyframes six-spinner {\n to {\n stroke-dashoffset: -444;\n }\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\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 * @part base - The component's base wrapper.\n * @part svg - The spinner icon.\n */\n@Component({\n tag: 'six-spinner',\n styleUrl: 'six-spinner.scss',\n shadow: true,\n})\nexport class SixSpinner {\n /** Indicates if the spinner is shown as animated SIX or BME logo or a simple spinner. */\n @Prop() logo?: 'six' | 'bme';\n /**\n * **@deprecated** Use `logo=\"six\"` instead.\n *\n * If set to true, the spinner displays the SIX logo.\n */\n @Prop() six?: boolean;\n\n /**\n * Renders a container with a given SVG content.\n */\n private renderWrapper(content: SVGElement) {\n return (\n <span class=\"six-spinner\" aria-busy=\"true\" aria-live=\"polite\">\n <div class=\"six-spinner__container\">{content}</div>\n </span>\n );\n }\n\n /**\n * Renders the SIX logo spinner.\n */\n private renderSIXLogo() {\n const sixLogo = (\n <svg viewBox=\"0 0 40 40\" part=\"svg\">\n <path\n fill=\"none\"\n stroke=\"#de3919\"\n stroke-width=\"5\"\n stroke-linecap=\"round\"\n d=\"M 35 5 V 35 H 5 T 5 5 H 35 V 35 H 5 V 5 H 35 V 35 H -34 V 30 H 7 A 9 8 0 0 0 14 27 L 27 14 A 8 6 0 0 1 33 12 H 42\"\n ></path>\n </svg>\n );\n return this.renderWrapper(sixLogo);\n }\n\n /**\n * Renders the BME logo spinner.\n */\n private renderBMELogo() {\n const bmeLogo = (\n <svg viewBox=\"0 0 45 55\" part=\"svg\">\n <polygon\n fill=\"none\"\n stroke=\"black\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n points=\"4.42 51.96 17.02 31.473 2 31.473 2 22.486 17.02 22.486 4.42 2 15.404 2 30.289 26.98 14.763 51.96 4.42 51.96\"\n />\n <polygon\n fill=\"none\"\n stroke=\"black\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n points=\"42 51.96 31.655 51.96 24.598 40.498 29.831 32.073 42 51.96\"\n />\n <polygon\n fill=\"none\"\n stroke=\"black\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n points=\"24.518 12.719 31.014 2 42 2 29.831 21.637 24.518 12.719\"\n />\n </svg>\n );\n return this.renderWrapper(bmeLogo);\n }\n\n /**\n * Renders a simple spinner.\n */\n private renderSimpleSpinner() {\n return <span part=\"base\" class=\"spinner\" aria-busy=\"true\" aria-live=\"polite\" />;\n }\n\n render() {\n // Check the deprecated `six` property first\n if (this.six) {\n console.warn('The \"six\" prop is deprecated. Use \"logo=\\'six\\'\" instead.');\n return this.renderSIXLogo();\n }\n\n switch (this.logo) {\n case 'six':\n return this.renderSIXLogo();\n case 'bme':\n return this.renderBMELogo();\n default:\n return this.renderSimpleSpinner();\n }\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,aAAa,GAAG,8mEAA8mE;;MCgBvnE,UAAU,GAAA,MAAA;;;;AAUrB;;AAEG;AACK,IAAA,aAAa,CAAC,OAAmB,EAAA;AACvC,QAAA,QACE,YAAM,KAAK,EAAC,aAAa,EAAW,WAAA,EAAA,MAAM,eAAW,QAAQ,EAAA,EAC3D,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,wBAAwB,EAAA,EAAE,OAAO,CAAO,CAC9C;;AAIX;;AAEG;IACK,aAAa,GAAA;QACnB,MAAM,OAAO,IACX,CAAK,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAA,EACjC,CAAA,CAAA,MAAA,EAAA,EACE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,SAAS,EACH,cAAA,EAAA,GAAG,EACD,gBAAA,EAAA,OAAO,EACtB,CAAC,EAAC,mHAAmH,EAC/G,CAAA,CACJ,CACP;AACD,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;;AAGpC;;AAEG;IACK,aAAa,GAAA;QACnB,MAAM,OAAO,IACX,CAAK,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAA,EACjC,CAAA,CAAA,SAAA,EAAA,EACE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,OAAO,EACD,cAAA,EAAA,GAAG,oBACD,OAAO,EACtB,MAAM,EAAC,6GAA6G,EACpH,CAAA,EACF,CAAA,CAAA,SAAA,EAAA,EACE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,OAAO,EACD,cAAA,EAAA,GAAG,oBACD,OAAO,EACtB,MAAM,EAAC,4DAA4D,EACnE,CAAA,EACF,CAAA,CAAA,SAAA,EAAA,EACE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,OAAO,EACD,cAAA,EAAA,GAAG,EACD,gBAAA,EAAA,OAAO,EACtB,MAAM,EAAC,yDAAyD,EAChE,CAAA,CACE,CACP;AACD,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;;AAGpC;;AAEG;IACK,mBAAmB,GAAA;QACzB,OAAO,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAW,WAAA,EAAA,MAAM,EAAW,WAAA,EAAA,QAAQ,GAAG;;IAGjF,MAAM,GAAA;;AAEJ,QAAA,IAAI,IAAI,CAAC,GAAG,EAAE;AACZ,YAAA,OAAO,CAAC,IAAI,CAAC,2DAA2D,CAAC;AACzE,YAAA,OAAO,IAAI,CAAC,aAAa,EAAE;;AAG7B,QAAA,QAAQ,IAAI,CAAC,IAAI;AACf,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,IAAI,CAAC,aAAa,EAAE;AAC7B,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,IAAI,CAAC,aAAa,EAAE;AAC7B,YAAA;AACE,gBAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- import{r,h as e}from"./p-D0Go1Zjj.js";const o=".six-error-container{text-align:left;color:var(--six-color-danger-800);width:100%;font-size:var(--six-input-help-text-font-size-medium)}";const t=class{constructor(e){r(this,e)}render(){return e("div",{key:"35e774adc232f29f26ed0dcc98f6befe1f2a6735",class:"six-error-container"},e("slot",{key:"3ef7bc24a95509089baaf676986a5a6c91d32274"}))}};t.style=o;export{t as six_error};
2
- //# sourceMappingURL=p-0d97e592.entry.js.map
@@ -1,2 +0,0 @@
1
- import{h as e,r as t,c as i,g as s}from"./p-D0Go1Zjj.js";import{E as r}from"./p-C4h4qpGl.js";import{D as o,d as a,a as n}from"./p-CKhg9ibv.js";import{h}from"./p-j3oIB5oT.js";import{m as l,c as d,a as c,b as u}from"./p-Dd6pdO8C.js";const p=e=>typeof e==="string";const m=e=>e==null;const b={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"]},es:{months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthsShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],monthsShortGrouped:[["ene","feb","mar","abr"],["may","jun","jul","ago"],["sep","oct","nov","dic"]],weekdays:["lunes","martes","miércoles","jueves","viernes","sábado","domingo"],weekdaysShort:["lun","mar","mié","jue","vie","sáb","dom"],weekdaysMin:["lu","ma","mi","ju","vi","sa","do"]}};const f=()=>new Date;const y=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());const v=e=>e instanceof Date&&!isNaN(e.getTime())&&new Date(e).toString()!=="Invalid Date";const k=e=>{if(e&&v(e)){return e.getFullYear()}throw new Error("Not a valid date")};const g=e=>{if(e&&v(e)){return e.getMonth()}throw new Error("Not a valid date")};const w=e=>{if(e&&v(e)){return e.getDate()}throw new Error("Not a valid date")};const x=e=>{if(e&&v(e)){return e.getHours()}throw new Error("Not a valid date")};const _=e=>{if(e&&v(e)){return e.getMinutes()}throw new Error("Not a valid date")};const M=e=>{if(e&&v(e)){return e.getSeconds()}throw new Error("Not a valid date")};const D=e=>{const t=[6,0,1,2,3,4,5];const i=new Date(e);i.setDate(i.getDate()-t[i.getDay()]);return i};const j=(e,t)=>(e===null||e===void 0?void 0:e.getFullYear())===(t===null||t===void 0?void 0:t.getFullYear());const S=(e,t)=>j(e,t)&&(e===null||e===void 0?void 0:e.getMonth())===(t===null||t===void 0?void 0:t.getMonth());const C=(e,t)=>S(e,t)&&(e===null||e===void 0?void 0:e.getDate())===(t===null||t===void 0?void 0:t.getDate());const O=(e,t)=>C(D(e),D(t));const z=(e,t)=>{if(!p(e)||!p(t)){return false}if(e.length<6||t.length<6){return false}const{day:i,month:s}=Q(e,t);if(i>31||s>11||i<=0||s<0){return false}const r=U(e,t);if(m(r)){return false}return r.toString()!=="Invalid Date"};const F=(e,t,i)=>{if(!e){return true}if(t&&e<t){return false}if(i&&i<e){return false}return true};const J=(e,t,i,s=2)=>{const r=s-1;const o=t.charAt(e+r)===i;const a=e+r<t.length;return a&&o};const N=(e,t)=>{let i=String(e);while(i.length<t){i="0"+i}return i};const A=(e,t)=>{if(e==null){return""}let i="";for(let s=0;s<t.length;s++){switch(t.charAt(s)){case"d":if(J(s,t,"d")){i+=N(e.getDate(),2);s++}else{i+=String(e.getDate())}break;case"m":if(J(s,t,"m")){i+=N(e.getMonth()+1,2);s++}else{i+=String(e.getMonth()+1)}break;case"y":if(J(s,t,"y",4)){s+=3;i+=e.getFullYear()}else{i+=(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;s++}break;case"h":if(J(s,t,"h")){i+=N(e.getHours(),2);s++}else{i+=String(e.getHours())}break;case"M":if(J(s,t,"M")){i+=N(e.getMinutes(),2);s++}else{i+=String(e.getMinutes())}break;case"s":if(J(s,t,"s")){i+=N(e.getSeconds(),2);s++}else{i+=String(e.getSeconds())}break;default:i+=t.charAt(s)}}return i};const E=/(\[[^\[]*\])|(mm|dd|yyyy|yy|hh|MM|ss|.)/g;const G=/\d\d/;const T=/\d{4}/;const B=/[^0-9]/g;const I="year";const P="month";const L="day";const Y="hour";const H="minute";const W="second";const q={};const K=(e,t,i)=>{const s=Array.isArray(e)?e:[e];let r;if(typeof i==="string"){r=e=>{const t=parseInt(e,10);return{[i]:t}}}else{r=i}s.forEach((e=>{q[e]=[t,r]}))};K("yy",G,(e=>{const t=(new Date).getFullYear();const i=Math.floor(t/100);let s=parseInt(e,10);s=(s>68?i-1:i)*100+s;return{[I]:s}}));K("yyyy",T,I);K("mm",G,(e=>({[P]:parseInt(e,10)-1})));K("dd",G,L);K("hh",G,Y);K("MM",G,H);K("ss",G,W);const R=(e,t=new Date)=>{const i=[0,0,1,0,0,0];const s=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()];let r=true;for(let t=0;t<7;t++){if(e[t]===undefined){i[t]=r?s[t]:i[t]}else{i[t]=e[t];r=false}}return i};const V=(e,t,i,s,r,o)=>{if(!(e<100&&e>=0)){return new Date(e,t,i,s,r,o)}const a=new Date(e+400,t,i,s,r,o);if(isFinite(a.getFullYear())){a.setFullYear(e)}return a};const Z=(e,t)=>{const i=t.match(E);if(!i){throw new Error}const{length:s}=i;let r={};for(let t=0;t<s;t+=1){const s=i[t];const o=q[s];if(!o){const t=s.replace(/^\[|\]$/g,"");if(e.indexOf(t)===0){e=e.substr(t.length)}else{throw new Error("not match")}}else{const t=o[0];const i=o[1];const s=(t.exec(e)||[])[0];const a=i(s);r=Object.assign(Object.assign({},r),a);e=e.replace(s,"")}}return r};const $=(e,t)=>{if(e.length===t.length){return e}const i=e.match(B)[0];return e.split(i).map((e=>e.length===1?"0"+e:e)).join(i)};const Q=(e,t)=>{const i=$(e,t);return Z(i,t)};const U=(e,t)=>{try{const{backupDate:i=new Date}={};const{year:s,month:r,day:o,hour:a,minute:n,second:h,date:l}=Q(e,t);if(l!=null){return l}const d=[s,r,o,a,n,h];const c=R(d,i);return V(...c)}catch(e){return new Date(NaN)}};const X=e=>{const{firstDateOfBox:t,allowedDates:i,dateFormat:s,selectedDate:r,minDate:o,maxDate:a,pointerDate:n}=e;const h=new Date(t);const l=new Date(t);let d=[];do{let e=[];do{e=[...e,{date:new Date(l),display:A(l,s),dateString:A(l,s),label:w(l).toString(),isToday:C(l,f()),isSelected:r&&C(l,r),isDisabled:!i(l)||!F(l,o,a),isOutdated:n.month!==l.getMonth()||!F(l,o,a)}];l.setDate(l.getDate()+1)}while(O(l,h));d=[...d,e];h.setDate(h.getDate()+7)}while(S(new Date(n.year,n.month,n.day),l));return d};function ee(e,t){const i=5;return[...Array(t).keys()].map((i=>i+e-Math.floor(t/2))).reduce(((e,t,s)=>{if(s%i===0){e.push([])}e[e.length-1].push(t);return e}),[])}var te;(function(e){e["DDMMYYY_DOT"]="dd.mm.yyyy";e["YYYYMMDD_DASH"]="yyyy-mm-dd";e["DDMMYYYY_DASH"]="dd-mm-yyyy";e["DDMMYYYY_SLASH"]="dd/mm/yyyy";e["YYYYMMDD_SLASH"]="yyyy/mm/dd";e["DDMMYY_DOT"]="dd.mm.yy";e["YYMMDD_DASH"]="yy-mm-dd";e["DDMMYY_DASH"]="dd-mm-yy";e["DDMMYY_SLASH"]="dd/mm/yy";e["YYMMDD_SLASH"]="yy/mm/dd";e["DDMMYYY_DOT_TIME"]="dd.mm.yyyy hh:MM:ss";e["YYYYMMDD_DASH_TIME"]="yyyy-mm-dd hh:MM:ss";e["DDMMYYYY_DASH_TIME"]="dd-mm-yyyy hh:MM:ss";e["DDMMYYYY_SLASH_TIME"]="dd/mm/yyyy hh:MM:ss";e["YYYYMMDD_SLASH_TIME"]="yyyy/mm/dd hh:MM:ss";e["DDMMYY_DOT_TIME"]="dd.mm.yy hh:MM:ss";e["YYMMDD_DASH_TIME"]="yy-mm-dd hh:MM:ss";e["DDMMYY_DASH_TIME"]="dd-mm-yy hh:MM:ss";e["DDMMYY_SLASH_TIME"]="dd/mm/yy hh:MM:ss";e["YYMMDD_SLASH_TIME"]="yy/mm/dd hh:MM:ss"})(te||(te={}));const ie=t=>{const i=t.locale;const s=e=>i.monthsShort[f().getMonth()]===e;const r=e=>{var s;return((s=t.selectedDate)===null||s===void 0?void 0:s.getMonth())===i.monthsShort.findIndex((t=>t===e))};return e("table",{class:"datepicker-table",part:"month-selection"},e("tbody",null,i.monthsShortGrouped.map((i=>e("tr",{class:"datepicker-table__row"},i.map((i=>e("td",{onClick:()=>t.onClickMonthCell(i),class:{"datepicker-table__cell":true,"datepicker-table__cell--is-today":s(i),"datepicker-table__cell--is-selected":r(i)}},i))))))))};const se=t=>e("table",{class:"datepicker-table",part:"day-selection"},e("thead",{part:"weekday-header"},t.locale.weekdaysMin.map((t=>e("th",{class:"datepicker__cell"},t)))),e("tbody",null,t.calendarGrid.map((i=>e("tr",{class:"datepicker-table__row"},i.map((i=>e("td",{"data-date":i.dateString,onClick:()=>t.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 re=t=>e("table",{class:"datepicker-table",part:"year-selection"},e("tbody",null,t.yearSelection.map((i=>e("tr",{class:"datepicker-table__row"},i.map((i=>{var s;return e("td",{onClick:()=>t.onClickYearCell(i),class:{"datepicker-table__cell":true,"datepicker-table__cell--is-today":f().getFullYear()===i,"datepicker-table__cell--is-selected":((s=t.selectedDate)===null||s===void 0?void 0:s.getFullYear())===i}},i)})))))));const oe=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}: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 ae=25;const ne=400;var he;(function(e){e["DAY"]="day";e["MONTH"]="month";e["YEAR"]="year"})(he||(he={}));const le=class{constructor(e){t(this,e);this.sixSelect=i(this,"six-datepicker-select");this.sixClear=i(this,"six-datepicker-clear");this.sixBlur=i(this,"six-datepicker-blur");this.eventListeners=new r;this.pointerDate=le.getCurrentDateAsPointer();this.selectionMode=he.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.closeOnSelect=this.type==="date";this.size="medium";this.required=false;this.label="";this.errorText="";this.invalid=false;this.dateFormat=te.DDMMYYY_DOT;this.debounce=o;this.name="";this.clearable=false;this.iconPosition="left";this.hoist=false;this.previousUnit=()=>{if(this.selectionMode===he.DAY){this.previousMonth()}else if(this.selectionMode===he.MONTH){this.previousYear()}else if(this.selectionMode===he.YEAR){this.previousYearGroup()}};this.nextUnit=()=>{if(this.selectionMode===he.DAY){this.nextMonth()}else if(this.selectionMode===he.MONTH){this.nextYear()}else if(this.selectionMode===he.YEAR){this.nextYearGroup()}};this.handleDocumentKeyDown=e=>{var t;const i=e;if(this.open&&i.key==="Escape"){i.stopPropagation();this.closePopup();void((t=this.inputElement)===null||t===void 0?void 0:t.setFocus())}if(i.key==="Tab"){this.closePopup()}};this.handleDocumentMouseDown=e=>{const t=e.composedPath();if(!t.includes(this.container)){this.closePopup();return}};this.handleClearClick=async e=>{e.stopPropagation();await this.select(undefined);this.sixClear.emit()};this.onTimepickerChange=e=>{const t=e.detail.value;const i=new Date;if(this.selectedDate!=null){i.setFullYear(this.selectedDate.getFullYear(),this.selectedDate.getMonth(),this.selectedDate.getDate())}if(t!=null){const e=t.hours;const s=t.minutes;const r=t.seconds;if(e!=null){i.setHours(e,s,r)}}this.updateValue(i);this.updatePointerDates()};this.onClickDateCell=e=>{if(!e.isDisabled){void this.select(e.dateString)}};this.onClickMonthCell=e=>{const t=b[this.locale].monthsShort.findIndex((t=>t===e));this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{month:t});this.selectionMode=he.DAY};this.onClickYearCell=e=>{this.pointerDate=Object.assign(Object.assign({},this.pointerDate),{year:e});this.selectionMode=he.DAY};this.handleInputChange=e=>{if(this.inputElement==null){return}e.stopPropagation();const t=this.inputElement.value;if(!z(t,this.dateFormat)){return}const i=U(t,this.dateFormat);if(i===undefined){return}this.updateIfChanged(i);const s=t.replace(/[^\d]/g,"");if(s.length>=6){const e=U(t,this.dateFormat);const i=A(e,this.dateFormat);if(z(i,this.dateFormat)){this.selectedDate=U(i,this.dateFormat);this.updatePointerDates();this.updateValue(this.selectedDate)}}};this.handleOnBlur=e=>{var t,i,s;e.stopPropagation();if(((t=this.inputElement)===null||t===void 0?void 0:t.value)===""&&v(this.value)){this.value=undefined;this.sixSelect.emit(this.value)}const r=U((i=this.inputElement)===null||i===void 0?void 0:i.value,this.dateFormat);if(v(r)&&((s=this.value)===null||s===void 0?void 0:s.getTime())!==(r===null||r===void 0?void 0:r.getTime())){this.value=r}if(this.inputElement!=null){this.inputElement.value=A(this.value,this.dateFormat)}this.sixBlur.emit(this.value)}}debounceChanged(){this.sixSelect=a(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,ne)}get container(){return this.containingElement||this.host}get firstDateOfBox(){const e=new Date(this.pointerDate.year,this.pointerDate.month,1);return D(e)}async setFocus(e){var t;(t=this.inputElement)===null||t===void 0?void 0:t.setFocus(e)}get calendarGrid(){return X({firstDateOfBox:this.firstDateOfBox,allowedDates:this.allowedDates,dateFormat:this.dateFormat,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,ne)}getMonthStringForIndex(e){return b[this.locale].months[e]}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-ae})}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+ae})}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=he.DAY}updatePointerDates(){const e=this.getPointerDate();if(this.differsFromPointerDate(e)){this.pointerDate={year:k(e),month:g(e),day:w(e),hours:x(e),minutes:_(e),seconds:M(e)}}}differsFromPointerDate(e){return this.pointerDate.day!==w(e)||this.pointerDate.month!==g(e)||this.pointerDate.year!==k(e)||this.pointerDate.hours!==x(e)||this.pointerDate.minutes!==_(e)||this.pointerDate.seconds!==M(e)}getPointerDate(){if(this.selectedDate!==undefined&&this.selectedDate!==null){return this.selectedDate}if(this.defaultDate==null){return this.type==="date"?y(f()):f()}else{return U(this.defaultDate,this.dateFormat)}}updateValue(e){this.updateIfChanged(e)}updateIfChanged(e){var t;if(((t=this.value)===null||t===void 0?void 0:t.getTime())===(e===null||e===void 0?void 0:e.getTime())){return}this.value=e;this.sixSelect.emit(this.value)}async select(e){if(e==null){this.updateValue(undefined)}else{const t=U(e,this.dateFormat);t===null||t===void 0?void 0:t.setHours(this.pointerDate.hours,this.pointerDate.minutes,this.pointerDate.seconds);this.updateValue(t)}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",n(this.handleInputChange,this.debounce));this.eventListeners.add(this.inputElement,"six-input-blur",this.handleOnBlur)}}componentDidRender(){this.adjustPopupPosition()}renderHeader(){return e("header",{class:"datepicker-header",part:"header"},e("div",{class:"datepicker-header__btn prev",onClick:this.previousUnit},e("svg",{viewBox:"0 5 13 13",width:"14",height:"23"},e("path",{d:"M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}))),e("div",{class:"datepicker-header__label"},this.selectionMode===he.DAY&&e("div",{onClick:()=>this.selectionMode=he.MONTH},e("span",{class:"datepicker-header__label-month"},this.getMonthStringForIndex(this.pointerDate.month)),e("span",null,e("svg",{viewBox:"-3 -4 24 24",width:"20",height:"20"},e("polyline",{points:"6 9 12 15 18 9"})))),this.selectionMode!==he.YEAR&&e("div",{onClick:()=>this.selectionMode=he.YEAR},e("span",{class:"datepicker-header__label-year"},this.pointerDate.year),e("span",null,e("svg",{viewBox:"-3 -4 24 24",width:"20",height:"20"},e("polyline",{points:"6 9 12 15 18 9"})))),this.selectionMode===he.YEAR&&e("div",null,this.pointerDate.year-Math.floor(ae/2)," –"," ",this.pointerDate.year+Math.floor(ae/2))),e("div",{class:"datepicker-header__btn next",onClick:this.nextUnit},e("svg",{viewBox:"5 5 13 13",width:"14",height:"23"},e("path",{d:"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z"}))))}renderBody(){switch(this.selectionMode){case he.DAY:return e(se,{locale:b[this.locale],calendarGrid:this.calendarGrid,onClickDateCell:this.onClickDateCell});case he.MONTH:return e(ie,{locale:b[this.locale],selectedDate:this.selectedDate,onClickMonthCell:this.onClickMonthCell});case he.YEAR:return e(re,{selectedDate:this.selectedDate,yearSelection:ee(this.pointerDate.year,ae),onClickYearCell:this.onClickYearCell})}}renderCustomIcon(){const t=h(this.host,"custom-icon")?e("slot",{name:"custom-icon"}):e("six-icon",{size:this.size==="large"?"medium":this.size},"today");return e("span",{slot:"prefix",part:"icon",class:{prefix:true,"prefix--right":this.iconPosition==="right"}},t)}renderClearable(){return this.clearable&&e("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"},e("six-icon",{size:"small"},"clear"))}render(){var t,i,s;this.adjustPopupPosition();return e("div",{key:"b5ba1d95babef5f6f47bd176f607756df09f293b",ref:e=>this.wrapper=e,class:"datepicker__container"},e("six-input",{key:"bbc7941bb975cb5e66eda215fea89dc3455724a3",part:"base",value:A(this.value,this.dateFormat),ref:e=>this.inputElement=e,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")?e("span",{slot:"label"},e("slot",{name:"label"})):null,h(this.host,"error-text")?e("span",{slot:"error-text"},e("slot",{name:"error-text"})):null),this.open&&e("div",{key:"ceaf12686b514b8708e1b254e8ed8990c519e19b",part:"popup",ref:e=>this.popup=e,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"&&e("six-timepicker",{key:"c978d4bf39f7b212eb6f4f37acbfc2f5533e2ebc",debounce:this.debounce,inline:true,"onSix-timepicker-change-debounced":e=>this.onTimepickerChange(e),value:((t=this.selectedDate)===null||t===void 0?void 0:t.getHours())+":"+((i=this.selectedDate)===null||i===void 0?void 0:i.getMinutes())+":"+((s=this.selectedDate)===null||s===void 0?void 0:s.getSeconds())}),e("div",{key:"ffaec9fff60951e6f8134437f31b359d93b3b91e",class:"datepicker__footer"},e("slot",{key:"58655ebaf55d53e2524eee16e87ecf629fe9eb29"}))))}adjustPopupPosition(){c(this.hoist,this.popup,this.inputElement,this.wrapper,ne,(e=>this.isDropDownContentUp=e));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(f()),month:g(f()),day:w(f()),hours:x(f()),minutes:_(f()),seconds:M(f())}}get host(){return s(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};le.style=oe;export{le as six_datepicker};
2
- //# sourceMappingURL=p-5e5bd309.entry.js.map