@six-group/ui-library 0.0.0-insider.804b89a → 0.0.0-insider.8112beb

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 (649) hide show
  1. package/dist/cjs/error-messages-6e8049a4.js +119 -0
  2. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  3. package/dist/cjs/{form-control-f9bc25dd.js → form-control-8d64e974.js} +2 -2
  4. package/dist/cjs/{form-control-f9bc25dd.js.map → form-control-8d64e974.js.map} +1 -1
  5. package/dist/cjs/{index-3baddcdc.js → index-d7748d51.js} +53 -490
  6. package/dist/cjs/index-d7748d51.js.map +1 -0
  7. package/dist/cjs/index.cjs.js +54 -101
  8. package/dist/cjs/index.cjs.js.map +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/six-alert.cjs.entry.js +26 -3
  11. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  12. package/dist/cjs/six-avatar.cjs.entry.js +2 -2
  13. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  14. package/dist/cjs/six-badge.cjs.entry.js +2 -2
  15. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  16. package/dist/cjs/six-button.cjs.entry.js +3 -3
  17. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  18. package/dist/cjs/six-card.cjs.entry.js +2 -2
  19. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  20. package/dist/cjs/six-checkbox_2.cjs.entry.js +190 -0
  21. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  22. package/dist/cjs/six-datepicker.cjs.entry.js +4 -3
  23. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  24. package/dist/cjs/six-details.cjs.entry.js +2 -2
  25. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  26. package/dist/cjs/six-dialog.cjs.entry.js +3 -3
  27. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  28. package/dist/cjs/six-drawer.cjs.entry.js +3 -3
  29. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  30. package/dist/cjs/six-dropdown_2.cjs.entry.js +195 -125
  31. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  32. package/dist/cjs/six-error-page.cjs.entry.js +1 -1
  33. package/dist/cjs/six-error.cjs.entry.js +1 -1
  34. package/dist/cjs/six-file-list-item.cjs.entry.js +2 -2
  35. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  36. package/dist/cjs/six-file-list.cjs.entry.js +1 -1
  37. package/dist/cjs/six-file-upload.cjs.entry.js +2 -2
  38. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  40. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-group-label.cjs.entry.js +4 -4
  42. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-header.cjs.entry.js +4 -4
  44. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-icon-button.cjs.entry.js +2 -2
  46. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-icon.cjs.entry.js +2 -2
  48. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-input.cjs.entry.js +6 -4
  50. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-item-picker.cjs.entry.js +2 -2
  52. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-language-switcher.cjs.entry.js +1 -1
  54. package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
  55. package/dist/cjs/six-main-container.cjs.entry.js +1 -1
  56. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  58. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  60. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-picto.cjs.entry.js +1 -1
  62. package/dist/cjs/six-progress-bar.cjs.entry.js +2 -2
  63. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  64. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  65. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-radio.cjs.entry.js +2 -2
  67. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  68. package/dist/cjs/six-range.cjs.entry.js +4 -4
  69. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-root.cjs.entry.js +2 -21
  71. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  72. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  73. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  74. package/dist/cjs/six-select.cjs.entry.js +300 -169
  75. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  76. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
  77. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  78. package/dist/cjs/six-sidebar-item.cjs.entry.js +1 -1
  79. package/dist/cjs/six-sidebar.cjs.entry.js +2 -2
  80. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-spinner.cjs.entry.js +2 -2
  82. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-stage-indicator.cjs.entry.js +22 -0
  84. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  85. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  86. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-tab-group.cjs.entry.js +2 -2
  88. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  90. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-tab.cjs.entry.js +2 -2
  92. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  94. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  96. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-tile.cjs.entry.js +3 -3
  98. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-timepicker.cjs.entry.js +4 -4
  100. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tooltip.cjs.entry.js +2 -2
  102. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  103. package/dist/cjs/{slot-9821749e.js → slot-1b1232a1.js} +1 -3
  104. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  105. package/dist/cjs/{types-0a6d66f6.js → types-d3da200b.js} +3 -1
  106. package/dist/cjs/types-d3da200b.js.map +1 -0
  107. package/dist/cjs/ui-library.cjs.js +3 -3
  108. package/dist/cjs/ui-library.cjs.js.map +1 -1
  109. package/dist/collection/collection-manifest.json +4 -5
  110. package/dist/collection/components/six-alert/six-alert.css +5 -1
  111. package/dist/collection/components/six-alert/six-alert.js +42 -6
  112. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  113. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  114. package/dist/collection/components/six-badge/six-badge.css +1 -1
  115. package/dist/collection/components/six-button/six-button.css +2 -1
  116. package/dist/collection/components/six-button/six-button.js +3 -2
  117. package/dist/collection/components/six-button/six-button.js.map +1 -1
  118. package/dist/collection/components/six-card/six-card.css +4 -5
  119. package/dist/collection/components/six-checkbox/six-checkbox.css +1 -1
  120. package/dist/collection/components/six-checkbox/six-checkbox.js +3 -2
  121. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  122. package/dist/collection/components/six-datepicker/six-date-formats.js +1 -0
  123. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  124. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  125. package/dist/collection/components/six-datepicker/six-datepicker.js +6 -4
  126. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  127. package/dist/collection/components/six-details/six-details.css +1 -5
  128. package/dist/collection/components/six-details/six-details.js.map +1 -1
  129. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  130. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  131. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -7
  132. package/dist/collection/components/six-dropdown/six-dropdown.js +213 -123
  133. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  134. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +54 -29
  135. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
  136. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  137. package/dist/collection/components/six-file-upload/six-file-upload.css +1 -4
  138. package/dist/collection/components/six-footer/six-footer.css +2 -2
  139. package/dist/collection/components/six-group-label/six-group-label.css +1 -1
  140. package/dist/collection/components/six-header/six-header.css +6 -2
  141. package/dist/collection/components/six-header/six-header.js +4 -3
  142. package/dist/collection/components/six-header/six-header.js.map +1 -1
  143. package/dist/collection/components/six-header/test/six-header.spec.js +4 -2
  144. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
  145. package/dist/collection/components/six-icon/six-icon.css +3 -7
  146. package/dist/collection/components/six-icon-button/six-icon-button.css +1 -1
  147. package/dist/collection/components/six-input/six-input.css +10 -1
  148. package/dist/collection/components/six-input/six-input.js +44 -16
  149. package/dist/collection/components/six-input/six-input.js.map +1 -1
  150. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  151. package/dist/collection/components/six-item-picker/types.js +2 -0
  152. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  153. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  154. package/dist/collection/components/six-menu/six-menu.css +8 -7
  155. package/dist/collection/components/six-menu/six-menu.js +28 -6
  156. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  157. package/dist/collection/components/six-menu/test/six-menu.spec.js +6 -6
  158. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  159. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  160. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  161. package/dist/collection/components/six-menu-item/six-menu-item.js +36 -7
  162. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  163. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  164. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  165. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  166. package/dist/collection/components/six-radio/six-radio.css +1 -1
  167. package/dist/collection/components/six-radio/six-radio.js +3 -2
  168. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  169. package/dist/collection/components/six-range/six-range.css +1 -1
  170. package/dist/collection/components/six-range/six-range.js +3 -2
  171. package/dist/collection/components/six-range/six-range.js.map +1 -1
  172. package/dist/collection/components/six-root/six-root.js +1 -69
  173. package/dist/collection/components/six-root/six-root.js.map +1 -1
  174. package/dist/collection/components/six-root/test/six-root.spec.js +0 -7
  175. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  176. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  177. package/dist/collection/components/six-select/six-select.css +54 -66
  178. package/dist/collection/components/six-select/six-select.js +343 -168
  179. package/dist/collection/components/six-select/six-select.js.map +1 -1
  180. package/dist/collection/components/six-select/test/six-select.spec.js +31 -15
  181. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
  182. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  183. package/dist/collection/components/six-sidebar/six-sidebar.js +6 -4
  184. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  185. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +1 -1
  186. package/dist/collection/components/six-spinner/six-spinner.css +1 -1
  187. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  188. package/dist/collection/components/six-switch/six-switch.css +1 -1
  189. package/dist/collection/components/six-switch/six-switch.js +3 -2
  190. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  191. package/dist/collection/components/six-tab/six-tab.css +1 -1
  192. package/dist/collection/components/six-tab/six-tab.js +3 -2
  193. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  194. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -1
  195. package/dist/collection/components/six-tab-group/six-tab-group.js +3 -2
  196. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  197. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  198. package/dist/collection/components/six-tag/six-tag.css +1 -1
  199. package/dist/collection/components/six-textarea/six-textarea.css +1 -1
  200. package/dist/collection/components/six-textarea/six-textarea.js +24 -16
  201. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  202. package/dist/collection/components/six-tile/six-tile.css +2 -2
  203. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  204. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  205. package/dist/collection/components/six-timepicker/six-timepicker.js +3 -2
  206. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  207. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  208. package/dist/collection/index.js +1 -0
  209. package/dist/collection/index.js.map +1 -1
  210. package/dist/collection/utils/alert.js +54 -0
  211. package/dist/collection/utils/alert.js.map +1 -0
  212. package/dist/collection/utils/error-messages.js +7 -0
  213. package/dist/collection/utils/error-messages.js.map +1 -1
  214. package/dist/collection/utils/slot.js +0 -1
  215. package/dist/collection/utils/slot.js.map +1 -1
  216. package/dist/components/index.js +50 -102
  217. package/dist/components/index.js.map +1 -1
  218. package/dist/components/six-alert.js +25 -2
  219. package/dist/components/six-alert.js.map +1 -1
  220. package/dist/components/six-avatar.js +1 -1
  221. package/dist/components/six-avatar.js.map +1 -1
  222. package/dist/components/six-badge.js +1 -1
  223. package/dist/components/six-badge.js.map +1 -1
  224. package/dist/components/six-button.js +1 -142
  225. package/dist/components/six-button.js.map +1 -1
  226. package/dist/components/six-button2.js +146 -0
  227. package/dist/components/six-button2.js.map +1 -0
  228. package/dist/components/six-card.js +1 -1
  229. package/dist/components/six-card.js.map +1 -1
  230. package/dist/components/six-checkbox.js +1 -161
  231. package/dist/components/six-checkbox.js.map +1 -1
  232. package/dist/components/six-checkbox2.js +165 -0
  233. package/dist/components/six-checkbox2.js.map +1 -0
  234. package/dist/components/six-datepicker.js +2 -1
  235. package/dist/components/six-datepicker.js.map +1 -1
  236. package/dist/components/six-details2.js +1 -1
  237. package/dist/components/six-details2.js.map +1 -1
  238. package/dist/components/six-dialog.js +1 -1
  239. package/dist/components/six-dialog.js.map +1 -1
  240. package/dist/components/six-drawer.js +1 -1
  241. package/dist/components/six-drawer.js.map +1 -1
  242. package/dist/components/six-dropdown2.js +199 -125
  243. package/dist/components/six-dropdown2.js.map +1 -1
  244. package/dist/components/six-file-list-item.js +1 -1
  245. package/dist/components/six-file-list-item.js.map +1 -1
  246. package/dist/components/six-file-upload.js +1 -1
  247. package/dist/components/six-file-upload.js.map +1 -1
  248. package/dist/components/six-footer.js +1 -1
  249. package/dist/components/six-footer.js.map +1 -1
  250. package/dist/components/six-group-label.js +1 -1
  251. package/dist/components/six-group-label.js.map +1 -1
  252. package/dist/components/six-header.js +9 -3
  253. package/dist/components/six-header.js.map +1 -1
  254. package/dist/components/six-icon-button2.js +1 -1
  255. package/dist/components/six-icon-button2.js.map +1 -1
  256. package/dist/components/six-icon2.js +1 -1
  257. package/dist/components/six-icon2.js.map +1 -1
  258. package/dist/components/six-input2.js +4 -1
  259. package/dist/components/six-input2.js.map +1 -1
  260. package/dist/components/six-item-picker2.js +2 -0
  261. package/dist/components/six-item-picker2.js.map +1 -1
  262. package/dist/components/six-main-container.js.map +1 -1
  263. package/dist/components/six-menu-divider.js +1 -1
  264. package/dist/components/six-menu-divider.js.map +1 -1
  265. package/dist/components/six-menu-item2.js +28 -5
  266. package/dist/components/six-menu-item2.js.map +1 -1
  267. package/dist/components/six-menu-label.js +1 -1
  268. package/dist/components/six-menu-label.js.map +1 -1
  269. package/dist/components/six-menu2.js +22 -6
  270. package/dist/components/six-menu2.js.map +1 -1
  271. package/dist/components/six-progress-bar.js +1 -1
  272. package/dist/components/six-progress-bar.js.map +1 -1
  273. package/dist/components/six-progress-ring.js +1 -1
  274. package/dist/components/six-progress-ring.js.map +1 -1
  275. package/dist/components/six-radio.js +1 -1
  276. package/dist/components/six-radio.js.map +1 -1
  277. package/dist/components/six-range.js +1 -1
  278. package/dist/components/six-range.js.map +1 -1
  279. package/dist/components/six-root.js +4 -33
  280. package/dist/components/six-root.js.map +1 -1
  281. package/dist/components/six-search-field.js +1 -1
  282. package/dist/components/six-search-field.js.map +1 -1
  283. package/dist/components/six-select.js +435 -185
  284. package/dist/components/six-select.js.map +1 -1
  285. package/dist/components/six-sidebar-item-group.js +1 -1
  286. package/dist/components/six-sidebar-item-group.js.map +1 -1
  287. package/dist/components/six-sidebar.js +1 -1
  288. package/dist/components/six-sidebar.js.map +1 -1
  289. package/dist/components/six-spinner2.js +1 -1
  290. package/dist/components/six-spinner2.js.map +1 -1
  291. package/dist/components/six-stage-indicator2.js +1 -1
  292. package/dist/components/six-stage-indicator2.js.map +1 -1
  293. package/dist/components/six-switch.js +1 -1
  294. package/dist/components/six-switch.js.map +1 -1
  295. package/dist/components/six-tab-group.js +1 -1
  296. package/dist/components/six-tab-group.js.map +1 -1
  297. package/dist/components/six-tab-panel.js +1 -1
  298. package/dist/components/six-tab-panel.js.map +1 -1
  299. package/dist/components/six-tab.js +1 -1
  300. package/dist/components/six-tab.js.map +1 -1
  301. package/dist/components/six-tag.js +98 -1
  302. package/dist/components/six-tag.js.map +1 -1
  303. package/dist/components/six-textarea.js +1 -1
  304. package/dist/components/six-textarea.js.map +1 -1
  305. package/dist/components/six-tile.js +1 -1
  306. package/dist/components/six-tile.js.map +1 -1
  307. package/dist/components/six-timepicker2.js +1 -1
  308. package/dist/components/six-timepicker2.js.map +1 -1
  309. package/dist/components/six-tooltip2.js +1 -1
  310. package/dist/components/six-tooltip2.js.map +1 -1
  311. package/dist/components/slot.js +1 -2
  312. package/dist/components/slot.js.map +1 -1
  313. package/dist/components.d.ts +1 -21
  314. package/dist/components.json +566 -227
  315. package/dist/esm/error-messages-1eaaad23.js +115 -0
  316. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  317. package/dist/esm/{form-control-6b30894f.js → form-control-d403a9cf.js} +2 -2
  318. package/dist/esm/{form-control-6b30894f.js.map → form-control-d403a9cf.js.map} +1 -1
  319. package/dist/esm/{index-17d8173e.js → index-79d4ef67.js} +53 -490
  320. package/dist/esm/index-79d4ef67.js.map +1 -0
  321. package/dist/esm/index.js +51 -100
  322. package/dist/esm/index.js.map +1 -1
  323. package/dist/esm/loader.js +3 -3
  324. package/dist/esm/six-alert.entry.js +26 -3
  325. package/dist/esm/six-alert.entry.js.map +1 -1
  326. package/dist/esm/six-avatar.entry.js +2 -2
  327. package/dist/esm/six-avatar.entry.js.map +1 -1
  328. package/dist/esm/six-badge.entry.js +2 -2
  329. package/dist/esm/six-badge.entry.js.map +1 -1
  330. package/dist/esm/six-button.entry.js +3 -3
  331. package/dist/esm/six-button.entry.js.map +1 -1
  332. package/dist/esm/six-card.entry.js +2 -2
  333. package/dist/esm/six-card.entry.js.map +1 -1
  334. package/dist/esm/six-checkbox_2.entry.js +185 -0
  335. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  336. package/dist/esm/six-datepicker.entry.js +4 -3
  337. package/dist/esm/six-datepicker.entry.js.map +1 -1
  338. package/dist/esm/six-details.entry.js +2 -2
  339. package/dist/esm/six-details.entry.js.map +1 -1
  340. package/dist/esm/six-dialog.entry.js +3 -3
  341. package/dist/esm/six-dialog.entry.js.map +1 -1
  342. package/dist/esm/six-drawer.entry.js +3 -3
  343. package/dist/esm/six-drawer.entry.js.map +1 -1
  344. package/dist/esm/six-dropdown_2.entry.js +196 -126
  345. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  346. package/dist/esm/six-error-page.entry.js +1 -1
  347. package/dist/esm/six-error.entry.js +1 -1
  348. package/dist/esm/six-file-list-item.entry.js +2 -2
  349. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  350. package/dist/esm/six-file-list.entry.js +1 -1
  351. package/dist/esm/six-file-upload.entry.js +2 -2
  352. package/dist/esm/six-file-upload.entry.js.map +1 -1
  353. package/dist/esm/six-footer.entry.js +2 -2
  354. package/dist/esm/six-footer.entry.js.map +1 -1
  355. package/dist/esm/six-group-label.entry.js +4 -4
  356. package/dist/esm/six-group-label.entry.js.map +1 -1
  357. package/dist/esm/six-header.entry.js +4 -4
  358. package/dist/esm/six-header.entry.js.map +1 -1
  359. package/dist/esm/six-icon-button.entry.js +2 -2
  360. package/dist/esm/six-icon-button.entry.js.map +1 -1
  361. package/dist/esm/six-icon.entry.js +2 -2
  362. package/dist/esm/six-icon.entry.js.map +1 -1
  363. package/dist/esm/six-input.entry.js +6 -4
  364. package/dist/esm/six-input.entry.js.map +1 -1
  365. package/dist/esm/six-item-picker.entry.js +2 -2
  366. package/dist/esm/six-item-picker.entry.js.map +1 -1
  367. package/dist/esm/six-language-switcher.entry.js +1 -1
  368. package/dist/esm/six-layout-grid.entry.js +1 -1
  369. package/dist/esm/six-main-container.entry.js +1 -1
  370. package/dist/esm/six-main-container.entry.js.map +1 -1
  371. package/dist/esm/six-menu-divider.entry.js +2 -2
  372. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  373. package/dist/esm/six-menu-label.entry.js +2 -2
  374. package/dist/esm/six-menu-label.entry.js.map +1 -1
  375. package/dist/esm/six-picto.entry.js +1 -1
  376. package/dist/esm/six-progress-bar.entry.js +2 -2
  377. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  378. package/dist/esm/six-progress-ring.entry.js +2 -2
  379. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  380. package/dist/esm/six-radio.entry.js +2 -2
  381. package/dist/esm/six-radio.entry.js.map +1 -1
  382. package/dist/esm/six-range.entry.js +4 -4
  383. package/dist/esm/six-range.entry.js.map +1 -1
  384. package/dist/esm/six-root.entry.js +2 -21
  385. package/dist/esm/six-root.entry.js.map +1 -1
  386. package/dist/esm/six-search-field.entry.js +2 -2
  387. package/dist/esm/six-search-field.entry.js.map +1 -1
  388. package/dist/esm/six-select.entry.js +300 -169
  389. package/dist/esm/six-select.entry.js.map +1 -1
  390. package/dist/esm/six-sidebar-item-group.entry.js +3 -3
  391. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  392. package/dist/esm/six-sidebar-item.entry.js +1 -1
  393. package/dist/esm/six-sidebar.entry.js +2 -2
  394. package/dist/esm/six-sidebar.entry.js.map +1 -1
  395. package/dist/esm/six-spinner.entry.js +2 -2
  396. package/dist/esm/six-spinner.entry.js.map +1 -1
  397. package/dist/esm/six-stage-indicator.entry.js +18 -0
  398. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  399. package/dist/esm/six-switch.entry.js +4 -4
  400. package/dist/esm/six-switch.entry.js.map +1 -1
  401. package/dist/esm/six-tab-group.entry.js +2 -2
  402. package/dist/esm/six-tab-group.entry.js.map +1 -1
  403. package/dist/esm/six-tab-panel.entry.js +2 -2
  404. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  405. package/dist/esm/six-tab.entry.js +2 -2
  406. package/dist/esm/six-tab.entry.js.map +1 -1
  407. package/dist/esm/six-tag.entry.js +3 -3
  408. package/dist/esm/six-tag.entry.js.map +1 -1
  409. package/dist/esm/six-textarea.entry.js +4 -4
  410. package/dist/esm/six-textarea.entry.js.map +1 -1
  411. package/dist/esm/six-tile.entry.js +3 -3
  412. package/dist/esm/six-tile.entry.js.map +1 -1
  413. package/dist/esm/six-timepicker.entry.js +4 -4
  414. package/dist/esm/six-timepicker.entry.js.map +1 -1
  415. package/dist/esm/six-tooltip.entry.js +2 -2
  416. package/dist/esm/six-tooltip.entry.js.map +1 -1
  417. package/dist/esm/{slot-41bc439a.js → slot-56531341.js} +2 -3
  418. package/dist/esm/slot-56531341.js.map +1 -0
  419. package/dist/esm/{types-07748c42.js → types-a07bb999.js} +3 -1
  420. package/dist/esm/types-a07bb999.js.map +1 -0
  421. package/dist/esm/ui-library.js +4 -4
  422. package/dist/esm/ui-library.js.map +1 -1
  423. package/dist/types/components/six-alert/six-alert.d.ts +5 -2
  424. package/dist/types/components/six-dropdown/six-dropdown.d.ts +28 -9
  425. package/dist/types/components/six-input/six-input.d.ts +4 -0
  426. package/dist/types/components/six-menu/six-menu.d.ts +4 -0
  427. package/dist/types/components/six-menu-item/six-menu-item.d.ts +7 -1
  428. package/dist/types/components/six-root/six-root.d.ts +0 -13
  429. package/dist/types/components/six-select/six-select.d.ts +27 -12
  430. package/dist/types/components.d.ts +60 -56
  431. package/dist/types/index.d.ts +1 -0
  432. package/dist/types/types.d.ts +1 -0
  433. package/dist/types/utils/alert.d.ts +10 -0
  434. package/dist/types/utils/error-messages.d.ts +1 -0
  435. package/dist/types/utils/slot.d.ts +0 -1
  436. package/dist/ui-library/index.esm.js +1 -1
  437. package/dist/ui-library/index.esm.js.map +1 -1
  438. package/dist/ui-library/p-0440335d.entry.js +2 -0
  439. package/dist/ui-library/{p-c12a94ce.entry.js.map → p-0440335d.entry.js.map} +1 -1
  440. package/dist/ui-library/p-04cc397c.entry.js +2 -0
  441. package/dist/ui-library/{p-58661675.entry.js.map → p-04cc397c.entry.js.map} +1 -1
  442. package/dist/ui-library/p-0cebf1d2.js +2 -0
  443. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  444. package/dist/ui-library/p-0edd3091.entry.js +2 -0
  445. package/dist/ui-library/{p-a0658b26.entry.js.map → p-0edd3091.entry.js.map} +1 -1
  446. package/dist/ui-library/p-150b7664.entry.js +2 -0
  447. package/dist/ui-library/{p-a4e4620c.entry.js.map → p-150b7664.entry.js.map} +1 -1
  448. package/dist/ui-library/{p-c86aa5b3.entry.js → p-1f5840b5.entry.js} +2 -2
  449. package/dist/ui-library/p-28cc013e.entry.js +2 -0
  450. package/dist/ui-library/p-28cc013e.entry.js.map +1 -0
  451. package/dist/ui-library/p-3424bbc0.entry.js +2 -0
  452. package/dist/ui-library/p-3424bbc0.entry.js.map +1 -0
  453. package/dist/ui-library/p-348c68a8.entry.js +2 -0
  454. package/dist/ui-library/p-348c68a8.entry.js.map +1 -0
  455. package/dist/ui-library/p-3723ca06.entry.js +2 -0
  456. package/dist/ui-library/p-3723ca06.entry.js.map +1 -0
  457. package/dist/ui-library/p-37aeac5e.entry.js +2 -0
  458. package/dist/ui-library/{p-19a61686.entry.js.map → p-37aeac5e.entry.js.map} +1 -1
  459. package/dist/ui-library/p-3d7fb086.entry.js +2 -0
  460. package/dist/ui-library/p-3d7fb086.entry.js.map +1 -0
  461. package/dist/ui-library/{p-74a714c0.entry.js → p-457f7373.entry.js} +2 -2
  462. package/dist/ui-library/{p-74a714c0.entry.js.map → p-457f7373.entry.js.map} +1 -1
  463. package/dist/ui-library/p-4a667f31.entry.js +2 -0
  464. package/dist/ui-library/p-4a667f31.entry.js.map +1 -0
  465. package/dist/ui-library/p-50dae789.entry.js +2 -0
  466. package/dist/ui-library/{p-6aa2929a.entry.js.map → p-50dae789.entry.js.map} +1 -1
  467. package/dist/ui-library/{p-c1675a45.entry.js → p-546e33d9.entry.js} +2 -2
  468. package/dist/ui-library/{p-1d0c5929.entry.js → p-5db3a705.entry.js} +2 -2
  469. package/dist/ui-library/{p-1d0c5929.entry.js.map → p-5db3a705.entry.js.map} +1 -1
  470. package/dist/ui-library/{p-6907a7dc.js → p-61e66671.js} +2 -2
  471. package/dist/ui-library/p-6296779b.entry.js +2 -0
  472. package/dist/ui-library/{p-bdb79948.entry.js.map → p-6296779b.entry.js.map} +1 -1
  473. package/dist/ui-library/p-64b4755d.entry.js +2 -0
  474. package/dist/ui-library/{p-3187bc23.entry.js.map → p-64b4755d.entry.js.map} +1 -1
  475. package/dist/ui-library/p-664b7913.entry.js +2 -0
  476. package/dist/ui-library/p-664b7913.entry.js.map +1 -0
  477. package/dist/ui-library/p-6c1b046e.entry.js +2 -0
  478. package/dist/ui-library/p-6c1b046e.entry.js.map +1 -0
  479. package/dist/ui-library/p-7115316e.entry.js +2 -0
  480. package/dist/ui-library/p-7115316e.entry.js.map +1 -0
  481. package/dist/ui-library/{p-0861899a.js → p-862d474e.js} +1 -1
  482. package/dist/ui-library/p-862d474e.js.map +1 -0
  483. package/dist/ui-library/p-870b988d.entry.js +2 -0
  484. package/dist/ui-library/{p-479d8087.entry.js.map → p-870b988d.entry.js.map} +1 -1
  485. package/dist/ui-library/{p-d310a6dd.entry.js → p-884c5cf9.entry.js} +2 -2
  486. package/dist/ui-library/p-8888a367.entry.js +2 -0
  487. package/dist/ui-library/{p-ee71e3a3.entry.js.map → p-8888a367.entry.js.map} +1 -1
  488. package/dist/ui-library/{p-816f857d.entry.js → p-935c78a7.entry.js} +2 -2
  489. package/dist/ui-library/p-961bd001.entry.js +2 -0
  490. package/dist/ui-library/{p-fcd57e0a.entry.js.map → p-961bd001.entry.js.map} +1 -1
  491. package/dist/ui-library/{p-bee65dd9.entry.js → p-9b08068d.entry.js} +2 -2
  492. package/dist/ui-library/p-9b08068d.entry.js.map +1 -0
  493. package/dist/ui-library/p-9c79341d.entry.js +2 -0
  494. package/dist/ui-library/{p-3d54ecf2.entry.js.map → p-9c79341d.entry.js.map} +1 -1
  495. package/dist/ui-library/{p-cd35b3c6.entry.js → p-a9c159f2.entry.js} +2 -2
  496. package/dist/ui-library/p-ac57ba5c.entry.js +2 -0
  497. package/dist/ui-library/{p-ada23fe3.entry.js.map → p-ac57ba5c.entry.js.map} +1 -1
  498. package/dist/ui-library/p-ae45f6f4.entry.js +2 -0
  499. package/dist/ui-library/p-ae45f6f4.entry.js.map +1 -0
  500. package/dist/ui-library/p-af15381b.js +3 -0
  501. package/dist/ui-library/p-af15381b.js.map +1 -0
  502. package/dist/ui-library/p-b1a5f3cd.entry.js +2 -0
  503. package/dist/ui-library/p-b1a5f3cd.entry.js.map +1 -0
  504. package/dist/ui-library/p-b385a241.entry.js +2 -0
  505. package/dist/ui-library/{p-b5ac1219.entry.js.map → p-b385a241.entry.js.map} +1 -1
  506. package/dist/ui-library/p-c2c7370b.entry.js +2 -0
  507. package/dist/ui-library/{p-911eb578.entry.js.map → p-c2c7370b.entry.js.map} +1 -1
  508. package/dist/ui-library/p-caea1eb6.entry.js +2 -0
  509. package/dist/ui-library/{p-ce373da5.entry.js.map → p-caea1eb6.entry.js.map} +1 -1
  510. package/dist/ui-library/{p-d2cf4280.entry.js → p-d3f5b9a8.entry.js} +2 -2
  511. package/dist/ui-library/p-d42b18eb.entry.js +2 -0
  512. package/dist/ui-library/{p-7432d409.entry.js.map → p-d42b18eb.entry.js.map} +1 -1
  513. package/dist/ui-library/p-d769cc36.entry.js +2 -0
  514. package/dist/ui-library/p-d769cc36.entry.js.map +1 -0
  515. package/dist/ui-library/p-d95e292e.entry.js +2 -0
  516. package/dist/ui-library/{p-c07b1240.entry.js.map → p-d95e292e.entry.js.map} +1 -1
  517. package/dist/ui-library/p-da7f3dbd.entry.js +2 -0
  518. package/dist/ui-library/p-da7f3dbd.entry.js.map +1 -0
  519. package/dist/ui-library/p-dfb89b6a.entry.js +2 -0
  520. package/dist/ui-library/p-dfb89b6a.entry.js.map +1 -0
  521. package/dist/ui-library/p-e080d5b6.js +2 -0
  522. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  523. package/dist/ui-library/p-e6032375.entry.js +2 -0
  524. package/dist/ui-library/p-e6032375.entry.js.map +1 -0
  525. package/dist/ui-library/p-e60d2324.entry.js +2 -0
  526. package/dist/ui-library/p-e60d2324.entry.js.map +1 -0
  527. package/dist/ui-library/p-e8298c6e.entry.js +2 -0
  528. package/dist/ui-library/{p-882fbf6f.entry.js.map → p-e8298c6e.entry.js.map} +1 -1
  529. package/dist/ui-library/p-ed279165.entry.js +2 -0
  530. package/dist/ui-library/p-ed279165.entry.js.map +1 -0
  531. package/dist/ui-library/p-ed61b75c.entry.js +2 -0
  532. package/dist/ui-library/p-ed61b75c.entry.js.map +1 -0
  533. package/dist/ui-library/p-ee872c04.entry.js +2 -0
  534. package/dist/ui-library/p-ee872c04.entry.js.map +1 -0
  535. package/dist/ui-library/p-f1ab3384.entry.js +2 -0
  536. package/dist/ui-library/{p-23c02c98.entry.js.map → p-f1ab3384.entry.js.map} +1 -1
  537. package/dist/ui-library/p-f4ef481c.entry.js +2 -0
  538. package/dist/ui-library/p-f4ef481c.entry.js.map +1 -0
  539. package/dist/ui-library/{p-f73a6bdc.entry.js → p-f8cbb8da.entry.js} +2 -2
  540. package/dist/ui-library/ui-library.css +1 -10
  541. package/dist/ui-library/ui-library.esm.js +1 -1
  542. package/dist/ui-library/ui-library.esm.js.map +1 -1
  543. package/package.json +5 -8
  544. package/dist/cjs/index-3baddcdc.js.map +0 -1
  545. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  546. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  547. package/dist/cjs/six-checkbox.cjs.entry.js +0 -127
  548. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  549. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  550. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  551. package/dist/cjs/slot-9821749e.js.map +0 -1
  552. package/dist/cjs/types-0a6d66f6.js.map +0 -1
  553. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  554. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  555. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  556. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  557. package/dist/components/set-attributes.d.ts +0 -11
  558. package/dist/components/set-attributes.js +0 -8
  559. package/dist/components/set-attributes.js.map +0 -1
  560. package/dist/components/set-attributes2.js +0 -73
  561. package/dist/components/set-attributes2.js.map +0 -1
  562. package/dist/components/six-tag2.js +0 -102
  563. package/dist/components/six-tag2.js.map +0 -1
  564. package/dist/esm/index-17d8173e.js.map +0 -1
  565. package/dist/esm/set-attributes_2.entry.js +0 -68
  566. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  567. package/dist/esm/six-checkbox.entry.js +0 -123
  568. package/dist/esm/six-checkbox.entry.js.map +0 -1
  569. package/dist/esm/six-menu-item.entry.js +0 -59
  570. package/dist/esm/six-menu-item.entry.js.map +0 -1
  571. package/dist/esm/slot-41bc439a.js.map +0 -1
  572. package/dist/esm/types-07748c42.js.map +0 -1
  573. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  574. package/dist/ui-library/p-0861899a.js.map +0 -1
  575. package/dist/ui-library/p-0a81b42c.entry.js +0 -2
  576. package/dist/ui-library/p-0a81b42c.entry.js.map +0 -1
  577. package/dist/ui-library/p-0beec94f.js +0 -3
  578. package/dist/ui-library/p-0beec94f.js.map +0 -1
  579. package/dist/ui-library/p-0e7332db.entry.js +0 -2
  580. package/dist/ui-library/p-0e7332db.entry.js.map +0 -1
  581. package/dist/ui-library/p-178f5782.entry.js +0 -2
  582. package/dist/ui-library/p-178f5782.entry.js.map +0 -1
  583. package/dist/ui-library/p-19a61686.entry.js +0 -2
  584. package/dist/ui-library/p-23c02c98.entry.js +0 -2
  585. package/dist/ui-library/p-28221447.entry.js +0 -2
  586. package/dist/ui-library/p-28221447.entry.js.map +0 -1
  587. package/dist/ui-library/p-2b59175f.entry.js +0 -2
  588. package/dist/ui-library/p-2b59175f.entry.js.map +0 -1
  589. package/dist/ui-library/p-2eed9d8d.entry.js +0 -2
  590. package/dist/ui-library/p-2eed9d8d.entry.js.map +0 -1
  591. package/dist/ui-library/p-3187bc23.entry.js +0 -2
  592. package/dist/ui-library/p-32e1a5ab.entry.js +0 -2
  593. package/dist/ui-library/p-32e1a5ab.entry.js.map +0 -1
  594. package/dist/ui-library/p-3d54ecf2.entry.js +0 -2
  595. package/dist/ui-library/p-4229f7e8.entry.js +0 -2
  596. package/dist/ui-library/p-4229f7e8.entry.js.map +0 -1
  597. package/dist/ui-library/p-479d8087.entry.js +0 -2
  598. package/dist/ui-library/p-49aa8d1e.entry.js +0 -2
  599. package/dist/ui-library/p-49aa8d1e.entry.js.map +0 -1
  600. package/dist/ui-library/p-58661675.entry.js +0 -2
  601. package/dist/ui-library/p-5d43ea07.entry.js +0 -2
  602. package/dist/ui-library/p-5d43ea07.entry.js.map +0 -1
  603. package/dist/ui-library/p-6aa2929a.entry.js +0 -2
  604. package/dist/ui-library/p-7432d409.entry.js +0 -2
  605. package/dist/ui-library/p-76825395.entry.js +0 -2
  606. package/dist/ui-library/p-76825395.entry.js.map +0 -1
  607. package/dist/ui-library/p-882fbf6f.entry.js +0 -2
  608. package/dist/ui-library/p-88fd4973.entry.js +0 -2
  609. package/dist/ui-library/p-88fd4973.entry.js.map +0 -1
  610. package/dist/ui-library/p-8b750c9e.entry.js +0 -2
  611. package/dist/ui-library/p-8b750c9e.entry.js.map +0 -1
  612. package/dist/ui-library/p-911eb578.entry.js +0 -2
  613. package/dist/ui-library/p-93fcda4a.entry.js +0 -2
  614. package/dist/ui-library/p-93fcda4a.entry.js.map +0 -1
  615. package/dist/ui-library/p-981b3228.entry.js +0 -2
  616. package/dist/ui-library/p-981b3228.entry.js.map +0 -1
  617. package/dist/ui-library/p-9b1ff147.entry.js +0 -2
  618. package/dist/ui-library/p-9b1ff147.entry.js.map +0 -1
  619. package/dist/ui-library/p-a0658b26.entry.js +0 -2
  620. package/dist/ui-library/p-a4e4620c.entry.js +0 -2
  621. package/dist/ui-library/p-ada23fe3.entry.js +0 -2
  622. package/dist/ui-library/p-b5ac1219.entry.js +0 -2
  623. package/dist/ui-library/p-ba247565.entry.js +0 -2
  624. package/dist/ui-library/p-ba247565.entry.js.map +0 -1
  625. package/dist/ui-library/p-bdb79948.entry.js +0 -2
  626. package/dist/ui-library/p-bee65dd9.entry.js.map +0 -1
  627. package/dist/ui-library/p-c07b1240.entry.js +0 -2
  628. package/dist/ui-library/p-c12a94ce.entry.js +0 -2
  629. package/dist/ui-library/p-c2df8c27.entry.js +0 -2
  630. package/dist/ui-library/p-c2df8c27.entry.js.map +0 -1
  631. package/dist/ui-library/p-ce373da5.entry.js +0 -2
  632. package/dist/ui-library/p-dfb6bff6.entry.js +0 -2
  633. package/dist/ui-library/p-dfb6bff6.entry.js.map +0 -1
  634. package/dist/ui-library/p-ee71e3a3.entry.js +0 -2
  635. package/dist/ui-library/p-ef317d69.entry.js +0 -2
  636. package/dist/ui-library/p-ef317d69.entry.js.map +0 -1
  637. package/dist/ui-library/p-f385f1c2.entry.js +0 -2
  638. package/dist/ui-library/p-f385f1c2.entry.js.map +0 -1
  639. package/dist/ui-library/p-faa04bb5.js +0 -2
  640. package/dist/ui-library/p-faa04bb5.js.map +0 -1
  641. package/dist/ui-library/p-fcd57e0a.entry.js +0 -2
  642. /package/dist/ui-library/{p-c86aa5b3.entry.js.map → p-1f5840b5.entry.js.map} +0 -0
  643. /package/dist/ui-library/{p-c1675a45.entry.js.map → p-546e33d9.entry.js.map} +0 -0
  644. /package/dist/ui-library/{p-6907a7dc.js.map → p-61e66671.js.map} +0 -0
  645. /package/dist/ui-library/{p-d310a6dd.entry.js.map → p-884c5cf9.entry.js.map} +0 -0
  646. /package/dist/ui-library/{p-816f857d.entry.js.map → p-935c78a7.entry.js.map} +0 -0
  647. /package/dist/ui-library/{p-cd35b3c6.entry.js.map → p-a9c159f2.entry.js.map} +0 -0
  648. /package/dist/ui-library/{p-d2cf4280.entry.js.map → p-d3f5b9a8.entry.js.map} +0 -0
  649. /package/dist/ui-library/{p-f73a6bdc.entry.js.map → p-f8cbb8da.entry.js.map} +0 -0
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3baddcdc.js');
6
-
7
- const SetAttributes = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- this.value = {};
11
- }
12
- componentWillLoad() {
13
- this.injectAttrs();
14
- }
15
- attrsUpdated() {
16
- this.injectAttrs();
17
- }
18
- injectAttrs() {
19
- const slot = this.host.firstElementChild;
20
- if (typeof (slot === null || slot === void 0 ? void 0 : slot.assignedElements) !== 'function') {
21
- return;
22
- }
23
- const child = slot.assignedElements().pop();
24
- if (!child) {
25
- return;
26
- }
27
- const types = {
28
- // no need for function and bigint
29
- undefined: (key) => child.removeAttribute(key),
30
- boolean: (key, value) => {
31
- if (value != null) {
32
- child.setAttribute(key, '');
33
- }
34
- else {
35
- child.removeAttribute(key);
36
- }
37
- },
38
- number: (key, value) => child.setAttribute(key, value),
39
- string: (key, value) => child.setAttribute(key, value),
40
- object: (key, value) => child.setAttribute(key, JSON.stringify(value)),
41
- };
42
- for (const [key, value] of Object.entries(this.value)) {
43
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
44
- // @ts-ignore
45
- types[typeof value](key, value);
46
- }
47
- }
48
- render() {
49
- return index.h("slot", null);
50
- }
51
- get host() { return index.getElement(this); }
52
- static get watchers() { return {
53
- "value": ["attrsUpdated"]
54
- }; }
55
- };
56
-
57
- const sixStageIndicatorCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:grid}.center-content{display:grid;align-self:center;justify-self:center;grid-gap:5px;grid-auto-flow:column}.align-item{margin:auto}.indicator,.indicator--acceptance,.indicator--etu,.indicator--dev,.indicator--itu{font-family:var(--six-font-family);font-size:14px;font-weight:var(--six-font-weight-bold);display:grid;align-content:center;width:100%;height:24px}.indicator--itu{background-color:var(--six-color-success-600);color:var(--six-color-web-rock-900)}.indicator--dev{background-color:var(--six-color-web-rock-900);color:var(--six-color-white)}.indicator--etu{background-color:var(--six-color-action-600);color:var(--six-color-white)}.indicator--acceptance{background-color:var(--six-color-warning-800);color:var(--six-color-web-rock-900)}";
58
-
59
- const SixStageIndicator = class {
60
- constructor(hostRef) {
61
- index.registerInstance(this, hostRef);
62
- this.stage = null;
63
- }
64
- render() {
65
- return this.stage == null || this.stage == 'PROD' ? null : (index.h("div", { class: `indicator--${this.stage.toLowerCase()}` }, index.h("div", { class: "center-content" }, index.h("six-icon", { class: "align-item", size: "small" }, "error_outline"), index.h("span", { class: 'align-item' }, index.h("slot", null)))));
66
- }
67
- };
68
- SixStageIndicator.style = sixStageIndicatorCss;
69
-
70
- exports.set_attributes = SetAttributes;
71
- exports.six_stage_indicator = SixStageIndicator;
72
-
73
- //# sourceMappingURL=set-attributes_2.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"set-attributes.six-stage-indicator.entry.cjs.js","mappings":";;;;;;MAKa,aAAa;;;qBAIR,EAAE;;IAElB,iBAAiB;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAGD,YAAY;QACV,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAEO,WAAW;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAoC,CAAC;QAE5D,IAAI,QAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAA,KAAK,UAAU,EAAE;YAChD,OAAO;SACR;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC;QAE5C,IAAI,CAAC,KAAK,EAAE;YACV,OAAO;SACR;QAED,MAAM,KAAK,GAAG;;YAEZ,SAAS,EAAE,CAAC,GAAW,KAAK,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;YACtD,OAAO,EAAE,CAAC,GAAW,EAAE,KAAc;gBACnC,IAAI,KAAK,IAAI,IAAI,EAAE;oBACjB,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;iBAC7B;qBAAM;oBACL,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;iBAC5B;aACF;YACD,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;YACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;YACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;SACvF,CAAC;QAEF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;;;YAGrD,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACjC;KACF;IAED,MAAM;QACJ,OAAOA,qBAAQ,CAAC;KACjB;;;;;;;ACzDH,MAAM,oBAAoB,GAAG,+1BAA+1B;;MCS/2B,iBAAiB;;;qBAED,IAAI;;IAE/B,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,GAAG,IAAI,IACtDA,iBAAK,KAAK,EAAE,cAAc,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAClDA,iBAAK,KAAK,EAAC,gBAAgB,IACzBA,sBAAU,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,oBAE9B,EACXA,kBAAM,KAAK,EAAE,YAAY,IACvBA,qBAAQ,CACH,CACH,CACF,CACP,CAAC;KACH;;;;;;;","names":["h"],"sources":["src/wrappers/set-attributes/set-attributes.tsx","src/components/six-stage-indicator/six-stage-indicator.scss?tag=six-stage-indicator&encapsulation=shadow","src/components/six-stage-indicator/six-stage-indicator.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch } from '@stencil/core';\n\n@Component({\n tag: 'set-attributes',\n})\nexport class SetAttributes {\n @Element() host!: HTMLSetAttributesElement;\n\n /** Attributes map */\n @Prop() value = {};\n\n componentWillLoad() {\n this.injectAttrs();\n }\n\n @Watch('value')\n attrsUpdated() {\n this.injectAttrs();\n }\n\n private injectAttrs() {\n const slot = this.host.firstElementChild as HTMLSlotElement;\n\n if (typeof slot?.assignedElements !== 'function') {\n return;\n }\n\n const child = slot.assignedElements().pop();\n\n if (!child) {\n return;\n }\n\n const types = {\n // no need for function and bigint\n undefined: (key: string) => child.removeAttribute(key),\n boolean: (key: string, value: unknown) => {\n if (value != null) {\n child.setAttribute(key, '');\n } else {\n child.removeAttribute(key);\n }\n },\n number: (key: string, value: string) => child.setAttribute(key, value),\n string: (key: string, value: string) => child.setAttribute(key, value),\n object: (key: string, value: string) => child.setAttribute(key, JSON.stringify(value)),\n };\n\n for (const [key, value] of Object.entries(this.value)) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n types[typeof value](key, value);\n }\n }\n\n render() {\n return <slot />;\n }\n}\n","@import 'src/global/component';\n\n:host {\n display: grid;\n}\n\n.center-content {\n display: grid;\n align-self: center;\n justify-self: center;\n grid-gap: 5px;\n grid-auto-flow: column;\n}\n\n.align-item {\n margin: auto;\n}\n\n.indicator {\n font-family: var(--six-font-family);\n font-size: 14px;\n font-weight: var(--six-font-weight-bold);\n display: grid;\n align-content: center;\n width: 100%;\n height: 24px;\n\n &--itu {\n @extend .indicator;\n background-color: var(--six-color-success-600);\n color: var(--six-color-web-rock-900);\n }\n\n &--dev {\n @extend .indicator;\n background-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n }\n\n &--etu {\n @extend .indicator;\n background-color: var(--six-color-action-600);\n color: var(--six-color-white);\n }\n\n &--acceptance {\n @extend .indicator;\n background-color: var(--six-color-warning-800);\n color: var(--six-color-web-rock-900);\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nexport type StageType = 'DEV' | 'ITU' | 'ETU' | 'ACCEPTANCE' | 'PROD' | null;\n\n@Component({\n tag: 'six-stage-indicator',\n styleUrl: 'six-stage-indicator.scss',\n shadow: true,\n})\nexport class SixStageIndicator {\n /** The indicators value attribute */\n @Prop() stage: StageType = null;\n\n render() {\n return this.stage == null || this.stage == 'PROD' ? null : (\n <div class={`indicator--${this.stage.toLowerCase()}`}>\n <div class=\"center-content\">\n <six-icon class=\"align-item\" size=\"small\">\n error_outline\n </six-icon>\n <span class={'align-item'}>\n <slot />\n </span>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,127 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3baddcdc.js');
6
- const formControl = require('./form-control-f9bc25dd.js');
7
- const slot = require('./slot-9821749e.js');
8
- const eventListeners = require('./event-listeners-9fb878f1.js');
9
-
10
- const sixCheckboxCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:inline-block}.checkbox{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-input-font-size-medium);font-weight:var(--six-input-font-weight);color:var(--six-input-color);vertical-align:middle;cursor:pointer}.checkbox--focused .checkbox__control{outline:var(--six-focus-ring);outline-offset:0}.checkbox__control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size);border:solid var(--six-border-width) var(--six-input-border-color);border-radius:0;background-color:var(--six-input-background-color);color:var(--six-checkbox-color);transition:var(--six-transition-fast) border-color, var(--six-transition-fast) background-color, var(--six-transition-fast) color, var(--six-transition-fast) box-shadow}.checkbox__control input[type=checkbox]{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__control .checkbox__icon{display:inline-flex;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size)}.checkbox__control .checkbox__icon svg{width:100%;height:100%}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-hover)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--six-selection-control-color);background-color:var(--six-selection-control-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-focus);background-color:var(--six-input-border-color-focus)}.checkbox--disabled{cursor:not-allowed;color:var(--six-input-color-disabled)}.checkbox--disabled .checkbox__control{border-color:var(--six-input-border-color-disabled)}.checkbox--disabled.checkbox--checked .checkbox__control,.checkbox--disabled.checkbox--indeterminate .checkbox__control{background-color:var(--six-selection-control-color-disabled)}.checkbox--invalid:not(.checkbox--disabled) .checkbox__control{border-color:var(--six-input-border-color-danger)}.checkbox__text{line-height:var(--six-selection-control-toggle-size);margin-left:0.5em;user-select:none}";
11
-
12
- let id = 0;
13
- const SixCheckbox = class {
14
- constructor(hostRef) {
15
- index.registerInstance(this, hostRef);
16
- this.sixBlur = index.createEvent(this, "six-checkbox-blur", 7);
17
- this.sixChange = index.createEvent(this, "six-checkbox-change", 7);
18
- this.sixFocus = index.createEvent(this, "six-checkbox-focus", 7);
19
- this.inputId = `checkbox-${++id}`;
20
- this.labelId = `checkbox-label-${id}`;
21
- this.textId = `checkbox-text-${id}`;
22
- this.errorTextId = `input-error-text-${id}`;
23
- this.eventListeners = new eventListeners.EventListeners();
24
- this.handleChange = () => {
25
- if (this.nativeInput != null) {
26
- this.checked = this.nativeInput.checked;
27
- this.indeterminate = false;
28
- this.sixChange.emit();
29
- }
30
- };
31
- this.handleBlur = () => {
32
- this.hasFocus = false;
33
- this.sixBlur.emit();
34
- };
35
- this.handleFocus = () => {
36
- this.hasFocus = true;
37
- this.sixFocus.emit();
38
- };
39
- this.handleMouseDown = (event) => {
40
- var _a;
41
- // Prevent clicks on the label from briefly blurring the input
42
- event.preventDefault();
43
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus();
44
- };
45
- this.hasFocus = false;
46
- this.hasLabelSlot = false;
47
- this.hasErrorSlot = false;
48
- this.name = '';
49
- this.value = 'on';
50
- this.disabled = false;
51
- this.required = false;
52
- this.label = '';
53
- this.errorText = '';
54
- this.errorTextCount = undefined;
55
- this.invalid = false;
56
- this.checked = false;
57
- this.indeterminate = false;
58
- }
59
- handleCheckedChange() {
60
- if (this.nativeInput == null)
61
- return;
62
- this.nativeInput.checked = this.checked;
63
- this.checked = this.nativeInput.checked;
64
- this.nativeInput.indeterminate = this.indeterminate;
65
- }
66
- handleLabelChange() {
67
- this.handleSlotChange();
68
- }
69
- connectedCallback() {
70
- var _a;
71
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
72
- this.eventListeners.forward('six-checkbox-change', 'change', this.host);
73
- this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);
74
- this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);
75
- }
76
- disconnectedCallback() {
77
- var _a;
78
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
79
- this.eventListeners.removeAll();
80
- }
81
- componentWillLoad() {
82
- this.handleSlotChange();
83
- }
84
- componentDidLoad() {
85
- const nativeInput = this.nativeInput;
86
- if (nativeInput == null) {
87
- return;
88
- }
89
- nativeInput.indeterminate = this.indeterminate;
90
- }
91
- /** Sets focus on the checkbox. */
92
- async setFocus(options) {
93
- var _a;
94
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus(options);
95
- }
96
- /** Removes focus from the checkbox. */
97
- async removeFocus() {
98
- var _a;
99
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.blur();
100
- }
101
- handleSlotChange() {
102
- this.hasLabelSlot = slot.hasSlot(this.host, 'label');
103
- this.hasErrorSlot = slot.hasSlot(this.host, 'error-text');
104
- }
105
- render() {
106
- return (index.h(formControl.FormControl, { inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, hasErrorTextSlot: this.hasErrorSlot, errorText: this.errorText, errorTextCount: this.errorTextCount, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, index.h("label", { part: "base", class: {
107
- checkbox: true,
108
- 'checkbox--checked': this.checked,
109
- 'checkbox--disabled': this.disabled,
110
- 'checkbox--focused': this.hasFocus,
111
- 'checkbox--invalid': this.invalid,
112
- 'checkbox--indeterminate': this.indeterminate,
113
- }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, index.h("span", { part: "control", class: "checkbox__control" }, this.checked && (index.h("span", { part: "checked-icon", class: "checkbox__icon" }, index.h("svg", { viewBox: "0 0 16 16" }, index.h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, index.h("g", { stroke: "currentColor", "stroke-width": "2" }, index.h("g", { transform: "translate(3.428571, 3.428571)" }, index.h("path", { d: "M0,5.71428571 L3.42857143,9.14285714" }), index.h("path", { d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (index.h("span", { part: "indeterminate-icon", class: "checkbox__icon" }, index.h("svg", { viewBox: "0 0 16 16" }, index.h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, index.h("g", { stroke: "currentColor", "stroke-width": "2" }, index.h("g", { transform: "translate(2.285714, 6.857143)" }, index.h("path", { d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), index.h("input", { ref: (el) => (this.nativeInput = el), id: this.inputId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "checkbox", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus })), index.h("span", { part: "text", id: this.textId, class: "checkbox__text" }, index.h("slot", null)))));
114
- }
115
- get host() { return index.getElement(this); }
116
- static get watchers() { return {
117
- "checked": ["handleCheckedChange"],
118
- "indeterminate": ["handleCheckedChange"],
119
- "errorText": ["handleLabelChange"],
120
- "label": ["handleLabelChange"]
121
- }; }
122
- };
123
- SixCheckbox.style = sixCheckboxCss;
124
-
125
- ex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Y,EAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,CACG,EAEPA,kBAAM,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,gBAAgB,IACvDA,qBAAQ,CACH,CACD,CACI,EACd;KACH;;;;;;;;;;;;;","names":["EventListeners","hasSlot","h","FormControl"],"sources":["src/components/six-checkbox/six-checkbox.scss?tag=six-checkbox&encapsulation=shadow","src/components/six-checkbox/six-checkbox.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: inline-block;\n}\n\n.checkbox {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-input-font-size-medium);\n font-weight: var(--six-input-font-weight);\n color: var(--six-input-color);\n vertical-align: middle;\n cursor: pointer;\n}\n\n.checkbox--focused {\n .checkbox__control {\n outline: var(--six-focus-ring);\n outline-offset: 0;\n }\n}\n\n.checkbox__control {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n border: solid var(--six-border-width) var(--six-input-border-color);\n border-radius: 0;\n background-color: var(--six-input-background-color);\n color: var(--six-checkbox-color);\n transition: var(--six-transition-fast) border-color, var(--six-transition-fast) background-color,\n var(--six-transition-fast) color, var(--six-transition-fast) box-shadow;\n\n input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n\n .checkbox__icon {\n display: inline-flex;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n\n svg {\n width: 100%;\n height: 100%;\n }\n }\n}\n\n// Hover\n.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-hover);\n}\n\n// Checked/indeterminate\n.checkbox--checked .checkbox__control,\n.checkbox--indeterminate .checkbox__control {\n border-color: var(--six-selection-control-color);\n background-color: var(--six-selection-control-color);\n}\n\n// Checked/indeterminate + hover\n.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,\n.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-focus);\n background-color: var(--six-input-border-color-focus);\n}\n\n// Disabled\n.checkbox--disabled {\n cursor: not-allowed;\n color: var(--six-input-color-disabled);\n\n .checkbox__control {\n border-color: var(--six-input-border-color-disabled);\n }\n\n &.checkbox--checked .checkbox__control,\n &.checkbox--indeterminate .checkbox__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n}\n\n// Invalid\n.checkbox--invalid:not(.checkbox--disabled) {\n .checkbox__control {\n border-color: var(--six-input-border-color-danger);\n }\n}\n\n.checkbox__text {\n line-height: var(--six-selection-control-toggle-size);\n margin-left: 0.5em;\n user-select: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The checkbox label.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n errorTextId={this.errorTextId}\n hasErrorTextSlot={this.hasErrorSlot}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"],"version":3}
@@ -1,63 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3baddcdc.js');
6
- const slot = require('./slot-9821749e.js');
7
-
8
- const sixMenuItemCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu-item{position:relative;display:flex;align-items:stretch;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:var(--six-line-height-normal);letter-spacing:var(--six-letter-spacing-normal);text-align:left;color:var(--six-input-color);border-radius:var(--six-border-radius-medium);padding:var(--six-spacing-medium) var(--six-spacing-medium);transition:var(--six-transition-fast) fill;user-select:none;white-space:nowrap;cursor:pointer}.menu-item.menu-item--focused:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--disabled{outline:none;color:var(--six-input-color-disabled);cursor:not-allowed}.menu-item .menu-item__label{flex:1 1 auto;align-self:center}.menu-item .menu-item__prefix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__prefix ::slotted(:last-child){margin-right:0.5em}.menu-item .menu-item__suffix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__suffix ::slotted(:first-child){margin-left:0.5em}.menu-item .menu-item__check{flex:0 0 auto;display:flex;align-items:center;margin-left:var(--six-spacing-small);visibility:hidden;font-size:inherit}.menu-item--checked .menu-item__check{visibility:visible}";
9
-
10
- const SixMenuItem = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.hasFocus = false;
14
- this.checked = false;
15
- this.value = '';
16
- this.disabled = false;
17
- }
18
- connectedCallback() {
19
- this.handleBlur = this.handleBlur.bind(this);
20
- this.handleFocus = this.handleFocus.bind(this);
21
- this.handleMouseEnter = this.handleMouseEnter.bind(this);
22
- this.handleMouseLeave = this.handleMouseLeave.bind(this);
23
- }
24
- /** Sets focus on the button. */
25
- async setFocus(options) {
26
- var _a;
27
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.focus(options);
28
- }
29
- /** Removes focus from the button. */
30
- async removeFocus() {
31
- var _a;
32
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.blur();
33
- }
34
- /** Returns a text label based on the contents of the menu item's default slot. */
35
- getTextLabel() {
36
- return Promise.resolve(slot.getTextContent(this.defaultSlot));
37
- }
38
- handleBlur() {
39
- this.hasFocus = false;
40
- }
41
- handleFocus() {
42
- this.hasFocus = true;
43
- }
44
- handleMouseEnter() {
45
- return this.setFocus();
46
- }
47
- handleMouseLeave() {
48
- return this.removeFocus();
49
- }
50
- render() {
51
- return (index.h("div", { ref: (el) => (this.menuItem = el), part: "base", class: {
52
- 'menu-item': true,
53
- 'menu-item--checked': this.checked,
54
- 'menu-item--disabled': this.disabled,
55
- 'menu-item--focused': this.hasFocus,
56
- }, role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false', "aria-checked": this.checked ? 'true' : 'false', tabIndex: !this.disabled ? 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, index.h("span", { part: "prefix", class: "menu-item__prefix" }, index.h("slot", { name: "prefix" })), index.h("span", { part: "label", class: "menu-item__label" }, index.h("slot", { ref: (el) => (this.defaultSlot = el) })), index.h("span", { part: "suffix", class: "menu-item__suffix" }, index.h("slot", { name: "suffix" })), index.h("span", { part: "checked-icon", class: "menu-item__check" }, index.h("six-icon", { size: "small", "aria-hidden": "true" }, "check"))));
57
- }
58
- };
59
- SixMenuItem.style = sixMenuItemCss;
60
-
61
- exports.six_menu_item = SixMenuItem;
62
-
63
- //# sourceMappingURL=six-menu-item.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"six-menu-item.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,44CAA44C;;MCyBt5C,WAAW;;;wBAIF,KAAK;uBAGU,KAAK;qBAGP,EAAE;wBAGC,KAAK;;IAEzC,iBAAiB;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,C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AE,IAAI,CAAC,gBAAgB,IAEnCA,kBAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3CA,kBAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEPA,kBAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,IACzCA,kBAAM,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAqB,CAAC,GAAI,CAC5D,EAEPA,kBAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3CA,kBAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEPA,kBAAM,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,kBAAkB,IAChDA,sBAAU,IAAI,EAAC,OAAO,iBAAa,MAAM,YAE9B,CACN,CACH,EACN;KACH;;;;;;","names":["getTextContent","h"],"sources":["src/components/six-menu-item/six-menu-item.scss?tag=six-menu-item&encapsulation=shadow","src/components/six-menu-item/six-menu-item.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n line-height: var(--six-line-height-normal);\n letter-spacing: var(--six-letter-spacing-normal);\n text-align: left;\n color: var(--six-input-color);\n border-radius: var(--six-border-radius-medium);\n padding: var(--six-spacing-medium) var(--six-spacing-medium);\n transition: var(--six-transition-fast) fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n\n &.menu-item--focused:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--disabled {\n outline: none;\n color: var(--six-input-color-disabled);\n cursor: not-allowed;\n }\n\n .menu-item__label {\n flex: 1 1 auto;\n align-self: center;\n }\n\n .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:last-child) {\n margin-right: 0.5em;\n }\n }\n\n .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:first-child) {\n margin-left: 0.5em;\n }\n }\n\n .menu-item__check {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n margin-left: var(--six-spacing-small);\n visibility: hidden;\n font-size: inherit;\n }\n}\n\n.menu-item--checked .menu-item__check {\n visibility: visible;\n}\n","import { Component, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @part base - The component's base wrapper.\n * @part checked-icon - The container that wraps the checked icon.\n * @part prefix - The prefix container.\n * @part label - The menu item label.\n * @part suffix - The suffix container.\n */\n\n@Component({\n tag: 'six-menu-item',\n styleUrl: 'six-menu-item.scss',\n shadow: true,\n})\nexport class SixMenuItem {\n private menuItem?: HTMLElement;\n private defaultSlot?: HTMLSlotElement;\n\n @State() hasFocus = false;\n\n /** Set to true to draw the item in a checked state. */\n @Prop({ reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to draw the menu item in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.menuItem?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.menuItem?.blur();\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n @Method()\n getTextLabel() {\n return Promise.resolve(getTextContent(this.defaultSlot));\n }\n\n private handleBlur() {\n this.hasFocus = false;\n }\n\n private handleFocus() {\n this.hasFocus = true;\n }\n\n private handleMouseEnter() {\n return this.setFocus();\n }\n\n private handleMouseLeave() {\n return this.removeFocus();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuItem = el)}\n part=\"base\"\n class={{\n 'menu-item': true,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--focused': this.hasFocus,\n }}\n role=\"menuitem\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-checked={this.checked ? 'true' : 'false'}\n tabIndex={!this.disabled ? 0 : undefined}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"prefix\" class=\"menu-item__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <span part=\"label\" class=\"menu-item__label\">\n <slot ref={(el) => (this.defaultSlot = el as HTMLSlotElement)} />\n </span>\n\n <span part=\"suffix\" class=\"menu-item__suffix\">\n <slot name=\"suffix\" />\n </span>\n\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <six-icon size=\"small\" aria-hidden=\"true\">\n check\n </six-icon>\n </span>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"slot-9821749e.js","mappings":";;AAAA;AACA;AACA;AACA;SACgB,cAAc,CAAC,IAAsB;IACnD,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC;IACxE,IAAI,IAAI,GAAG,EAAE,CAAC;IAEd,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI;QAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;YACpC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED;AACA;AACA;AACA;SACgB,OAAO,CAAC,EAAe,EAAE,IAAa;;IAEpD,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QAC/B,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;KACtD;;IAGD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI;;QACzC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,MAAK,EAAE,EAAE;YACvE,OAAO,IAAI,CAAC;SACb;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;YACvC,MAAM,EAAE,GAAG,IAAmB,CAAC;YAC/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;gBAC5B,OAAO,IAAI,CAAC;aACb;SACF;QAED,OAAO,KAAK,CAAC;KACd,CAAC,CAAC;AACL,CAAC;MAEY,eAAe,GAAG,CAAwB,EAAe,eACpE,OAAA,MAAA,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,0CAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAQ,CAAA,GAAC;SAEvD,OAAO,CAAC,OAAsC,EAAE,QAAgB;IAC9E,IAAI,OAAO,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IACjC,OAAO,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;AACvD;;;;;;;","names":[],"sources":["src/utils/slot.ts"],"sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport const getSlotChildren = <T extends HTMLElement>(el: HTMLElement) =>\n el.querySelector('slot')?.assignedElements({ flatten: true }) as T[];\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"types-0a6d66f6.js","mappings":";;AAAYA;AAAZ,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,mCAAiB,CAAA;AACnB,CAAC,EANWA,sBAAc,KAAdA,sBAAc,QAMzB;AAEWC;AAAZ,WAAY,0BAA0B;IACpC,+CAAiB,CAAA;IACjB,6CAAe,CAAA;AACjB,CAAC,EAHWA,kCAA0B,KAA1BA,kCAA0B;;","names":["ItemPickerType","ItemPickerPaddingDirection"],"sources":["src/components/six-item-picker/types.ts"],"sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"],"version":3}
@@ -1,74 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export class SetAttributes {
3
- constructor() {
4
- this.value = {};
5
- }
6
- componentWillLoad() {
7
- this.injectAttrs();
8
- }
9
- attrsUpdated() {
10
- this.injectAttrs();
11
- }
12
- injectAttrs() {
13
- const slot = this.host.firstElementChild;
14
- if (typeof (slot === null || slot === void 0 ? void 0 : slot.assignedElements) !== 'function') {
15
- return;
16
- }
17
- const child = slot.assignedElements().pop();
18
- if (!child) {
19
- return;
20
- }
21
- const types = {
22
- // no need for function and bigint
23
- undefined: (key) => child.removeAttribute(key),
24
- boolean: (key, value) => {
25
- if (value != null) {
26
- child.setAttribute(key, '');
27
- }
28
- else {
29
- child.removeAttribute(key);
30
- }
31
- },
32
- number: (key, value) => child.setAttribute(key, value),
33
- string: (key, value) => child.setAttribute(key, value),
34
- object: (key, value) => child.setAttribute(key, JSON.stringify(value)),
35
- };
36
- for (const [key, value] of Object.entries(this.value)) {
37
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38
- // @ts-ignore
39
- types[typeof value](key, value);
40
- }
41
- }
42
- render() {
43
- return h("slot", null);
44
- }
45
- static get is() { return "set-attributes"; }
46
- static get properties() {
47
- return {
48
- "value": {
49
- "type": "unknown",
50
- "mutable": false,
51
- "complexType": {
52
- "original": "{}",
53
- "resolved": "{}",
54
- "references": {}
55
- },
56
- "required": false,
57
- "optional": false,
58
- "docs": {
59
- "tags": [],
60
- "text": "Attributes map"
61
- },
62
- "defaultValue": "{}"
63
- }
64
- };
65
- }
66
- static get elementRef() { return "host"; }
67
- static get watchers() {
68
- return [{
69
- "propName": "value",
70
- "methodName": "attrsUpdated"
71
- }];
72
- }
73
- }
74
- //# sourceMappingURL=set-attributes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-attributes.js","sourceRoot":"","sources":["../../../src/wrappers/set-attributes/set-attributes.tsx"],"names":[],"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AG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;SACvF,CAAC;QAEF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YACrD,6DAA6D;YAC7D,aAAa;YACb,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACjC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,eAAQ,CAAC;IAClB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop, Watch } from '@stencil/core';\n\n@Component({\n tag: 'set-attributes',\n})\nexport class SetAttributes {\n @Element() host!: HTMLSetAttributesElement;\n\n /** Attributes map */\n @Prop() value = {};\n\n componentWillLoad() {\n this.injectAttrs();\n }\n\n @Watch('value')\n attrsUpdated() {\n this.injectAttrs();\n }\n\n private injectAttrs() {\n const slot = this.host.firstElementChild as HTMLSlotElement;\n\n if (typeof slot?.assignedElements !== 'function') {\n return;\n }\n\n const child = slot.assignedElements().pop();\n\n if (!child) {\n return;\n }\n\n const types = {\n // no need for function and bigint\n undefined: (key: string) => child.removeAttribute(key),\n boolean: (key: string, value: unknown) => {\n if (value != null) {\n child.setAttribute(key, '');\n } else {\n child.removeAttribute(key);\n }\n },\n number: (key: string, value: string) => child.setAttribute(key, value),\n string: (key: string, value: string) => child.setAttribute(key, value),\n object: (key: string, value: string) => child.setAttribute(key, JSON.stringify(value)),\n };\n\n for (const [key, value] of Object.entries(this.value)) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n types[typeof value](key, value);\n }\n }\n\n render() {\n return <slot />;\n }\n}\n"]}
@@ -1,16 +0,0 @@
1
- import { newSpecPage } from "@stencil/core/testing";
2
- import { SetAttributes } from "../set-attributes";
3
- describe('set-attributes', () => {
4
- it('renders', async () => {
5
- const page = await newSpecPage({
6
- components: [SetAttributes],
7
- html: `<set-attributes><slot></slot></set-attributes>`,
8
- });
9
- expect(page.root).toEqualHtml(`
10
- <set-attributes>
11
- <slot></slot>
12
- </set-attributes>
13
- `);
14
- });
15
- });
16
- //# sourceMappingURL=set-attributes.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-attributes.spec.js","sourceRoot":"","sources":["../../../../src/wrappers/set-attributes/test/set-attributes.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,gDAAgD;SACvD,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;KAI7B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { SetAttributes } from '../set-attributes';\n\ndescribe('set-attributes', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [SetAttributes],\n html: `<set-attributes><slot></slot></set-attributes>`,\n });\n expect(page.root).toEqualHtml(`\n <set-attributes>\n <slot></slot>\n </set-attributes>\n `);\n });\n});\n"]}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface SetAttributes extends Components.SetAttributes, HTMLElement {}
4
- export const SetAttributes: {
5
- prototype: SetAttributes;
6
- new (): SetAttributes;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,8 +0,0 @@
1
- import { S as SetAttributes$1, d as defineCustomElement$1 } from './set-attributes2.js';
2
-
3
- const SetAttributes = SetAttributes$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { SetAttributes, defineCustomElement };
7
-
8
- //# sourceMappingURL=set-attributes.js.map
@@ -1 +0,0 @@
1
- {"file":"set-attributes.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,73 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const SetAttributes = /*@__PURE__*/ proxyCustomElement(class SetAttributes extends HTMLElement {
4
- constructor() {
5
- super();
6
- this.__registerHost();
7
- this.value = {};
8
- }
9
- componentWillLoad() {
10
- this.injectAttrs();
11
- }
12
- attrsUpdated() {
13
- this.injectAttrs();
14
- }
15
- injectAttrs() {
16
- const slot = this.host.firstElementChild;
17
- if (typeof (slot === null || slot === void 0 ? void 0 : slot.assignedElements) !== 'function') {
18
- return;
19
- }
20
- const child = slot.assignedElements().pop();
21
- if (!child) {
22
- return;
23
- }
24
- const types = {
25
- // no need for function and bigint
26
- undefined: (key) => child.removeAttribute(key),
27
- boolean: (key, value) => {
28
- if (value != null) {
29
- child.setAttribute(key, '');
30
- }
31
- else {
32
- child.removeAttribute(key);
33
- }
34
- },
35
- number: (key, value) => child.setAttribute(key, value),
36
- string: (key, value) => child.setAttribute(key, value),
37
- object: (key, value) => child.setAttribute(key, JSON.stringify(value)),
38
- };
39
- for (const [key, value] of Object.entries(this.value)) {
40
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
41
- // @ts-ignore
42
- types[typeof value](key, value);
43
- }
44
- }
45
- render() {
46
- return h("slot", null);
47
- }
48
- get host() { return this; }
49
- static get watchers() { return {
50
- "value": ["attrsUpdated"]
51
- }; }
52
- }, [4, "set-attributes", {
53
- "value": [16]
54
- }, undefined, {
55
- "value": ["attrsUpdated"]
56
- }]);
57
- function defineCustomElement() {
58
- if (typeof customElements === "undefined") {
59
- return;
60
- }
61
- const components = ["set-attributes"];
62
- components.forEach(tagName => { switch (tagName) {
63
- case "set-attributes":
64
- if (!customElements.get(tagName)) {
65
- customElements.define(tagName, SetAttributes);
66
- }
67
- break;
68
- } });
69
- }
70
-
71
- export { SetAttributes as S, defineCustomElement as d };
72
-
73
- //# sourceMappingURL=set-attributes2.js.map
@@ -1 +0,0 @@
1
- {"file":"set-attributes2.js","mappings":";;MAKa,aAAa;;;;qBAIR,EAAE;;IAElB,iBAAiB;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAGD,YAAY;QACV,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAEO,WAAW;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAoC,CAAC;QAE5D,IAAI,QAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAA,KAAK,UAAU,EAAE;YAChD,OAAO;SACR;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC;QAE5C,IAAI,CAAC,KAAK,EAAE;YACV,OAAO;SACR;QAED,MAAM,KAAK,GAAG;;YAEZ,SAAS,EAAE,CAAC,GAAW,KAAK,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;YACtD,OAAO,EAAE,CAAC,GAAW,EAAE,KAAc;gBACnC,IAAI,KAAK,IAAI,IAAI,EAAE;oBACjB,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;iBAC7B;qBAAM;oBACL,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;iBAC5B;aACF;YACD,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;YACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;YACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;SACvF,CAAC;QAEF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;;;YAGrD,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACjC;KACF;IAED,MAAM;QACJ,OAAO,eAAQ,CAAC;KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/wrappers/set-attributes/set-attributes.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch } from '@stencil/core';\n\n@Component({\n tag: 'set-attributes',\n})\nexport class SetAttributes {\n @Element() host!: HTMLSetAttributesElement;\n\n /** Attributes map */\n @Prop() value = {};\n\n componentWillLoad() {\n this.injectAttrs();\n }\n\n @Watch('value')\n attrsUpdated() {\n this.injectAttrs();\n }\n\n private injectAttrs() {\n const slot = this.host.firstElementChild as HTMLSlotElement;\n\n if (typeof slot?.assignedElements !== 'function') {\n return;\n }\n\n const child = slot.assignedElements().pop();\n\n if (!child) {\n return;\n }\n\n const types = {\n // no need for function and bigint\n undefined: (key: string) => child.removeAttribute(key),\n boolean: (key: string, value: unknown) => {\n if (value != null) {\n child.setAttribute(key, '');\n } else {\n child.removeAttribute(key);\n }\n },\n number: (key: string, value: string) => child.setAttribute(key, value),\n string: (key: string, value: string) => child.setAttribute(key, value),\n object: (key: string, value: string) => child.setAttribute(key, JSON.stringify(value)),\n };\n\n for (const [key, value] of Object.entries(this.value)) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n types[typeof value](key, value);\n }\n }\n\n render() {\n return <slot />;\n }\n}\n"],"version":3}