@eunomia/elements 1.0.0-beta.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/README.md +28 -6
  2. package/dist/angular/forms.d.ts +80 -0
  3. package/dist/angular/forms.js +267 -0
  4. package/dist/cdn/components/chunks/chunk-2XPIGFBD.js +1 -0
  5. package/dist/cdn/components/chunks/chunk-5IUNSTM3.js +1 -0
  6. package/dist/cdn/components/chunks/chunk-7HXPLZ7C.js +1 -0
  7. package/dist/cdn/components/chunks/{chunk-J3SZBXM6.js → chunk-A2NO4RSF.js} +7 -7
  8. package/dist/cdn/components/chunks/{chunk-Q34EQ5HZ.js → chunk-A623JJXJ.js} +1 -1
  9. package/dist/cdn/components/chunks/{chunk-Y3HOIL64.js → chunk-AW7PU43S.js} +2 -2
  10. package/dist/cdn/components/chunks/{chunk-FF3I7C3C.js → chunk-DWTNRFWW.js} +1 -3
  11. package/dist/cdn/components/chunks/chunk-FPNWPMHA.js +1 -0
  12. package/dist/cdn/components/chunks/chunk-GMWUHGNI.js +319 -0
  13. package/dist/cdn/components/chunks/{chunk-FQUWHNQT.js → chunk-GXOEPXDW.js} +1 -1
  14. package/dist/cdn/components/chunks/chunk-HXESKTK2.js +1 -0
  15. package/dist/cdn/components/chunks/chunk-JDUWKPHW.js +46 -0
  16. package/dist/cdn/components/chunks/{chunk-D3JJBHXN.js → chunk-JLKCBPD2.js} +2 -2
  17. package/dist/cdn/components/chunks/chunk-M6ZJHL4Q.js +1 -0
  18. package/dist/cdn/components/chunks/{chunk-TN3HGHQO.js → chunk-MDSUMP3O.js} +4 -4
  19. package/dist/cdn/components/chunks/chunk-MSQWOKBB.js +1 -0
  20. package/dist/cdn/components/chunks/{chunk-3UUZM7X2.js → chunk-NPXRQHUN.js} +3 -3
  21. package/dist/cdn/components/chunks/chunk-OB7DEGNX.js +1 -0
  22. package/dist/cdn/components/chunks/{chunk-JANNHW4Q.js → chunk-PADHCLBG.js} +4 -4
  23. package/dist/cdn/components/chunks/chunk-QMXE3KLT.js +1 -0
  24. package/dist/cdn/components/chunks/chunk-QNWKRPOW.js +1 -0
  25. package/dist/cdn/components/chunks/{chunk-KQUUMZ7U.js → chunk-RZF7QQDX.js} +7 -7
  26. package/dist/cdn/components/chunks/chunk-SCAP7J35.js +1 -0
  27. package/dist/cdn/components/chunks/chunk-TISMX7UL.js +1 -0
  28. package/dist/cdn/components/chunks/chunk-TWLI2ZOT.js +1 -0
  29. package/dist/cdn/components/chunks/chunk-W4VCWRY7.js +210 -0
  30. package/dist/cdn/components/chunks/{chunk-SZZRMJ65.js → chunk-WEG3KO6T.js} +3 -3
  31. package/dist/cdn/components/chunks/chunk-WP6ZYBAC.js +1 -0
  32. package/dist/cdn/components/chunks/{chunk-HGX6GPHM.js → chunk-XCBQ4CKH.js} +1 -1
  33. package/dist/cdn/components/chunks/{chunk-3UW2LJ7T.js → chunk-XZ3LFOQP.js} +2 -2
  34. package/dist/cdn/components/eun-alert.js +1 -1
  35. package/dist/cdn/components/eun-animate.js +92 -180
  36. package/dist/cdn/components/eun-breadcrumb.js +4 -4
  37. package/dist/cdn/components/eun-button.js +1 -1
  38. package/dist/cdn/components/eun-calendar.js +188 -115
  39. package/dist/cdn/components/eun-card.js +1 -1
  40. package/dist/cdn/components/eun-carousel.js +36 -28
  41. package/dist/cdn/components/eun-check-card.js +3 -3
  42. package/dist/cdn/components/eun-checkbox-list.js +2 -2
  43. package/dist/cdn/components/eun-checkbox.js +1 -1
  44. package/dist/cdn/components/eun-chip.js +11 -15
  45. package/dist/cdn/components/eun-collapse.js +21 -10
  46. package/dist/cdn/components/eun-color-picker.js +32 -32
  47. package/dist/cdn/components/eun-counter.js +8 -8
  48. package/dist/cdn/components/eun-date-picker.js +83 -79
  49. package/dist/cdn/components/eun-description-list.js +1 -1
  50. package/dist/cdn/components/eun-divider.js +9 -8
  51. package/dist/cdn/components/eun-drawer.js +8 -6
  52. package/dist/cdn/components/eun-dropdown-button.js +1 -1
  53. package/dist/cdn/components/eun-dropdown-item.js +4 -4
  54. package/dist/cdn/components/eun-fab.js +1 -1
  55. package/dist/cdn/components/eun-image-card.js +2 -2
  56. package/dist/cdn/components/eun-image-carousel.js +55 -29
  57. package/dist/cdn/components/eun-infinite-list.js +2 -2
  58. package/dist/cdn/components/eun-input-file.js +3 -3
  59. package/dist/cdn/components/eun-input-phone.js +6 -6
  60. package/dist/cdn/components/eun-input.js +1 -1
  61. package/dist/cdn/components/eun-label.js +1 -1
  62. package/dist/cdn/components/eun-link.js +18 -329
  63. package/dist/cdn/components/eun-loader.js +1 -1
  64. package/dist/cdn/components/eun-modal.js +9 -7
  65. package/dist/cdn/components/eun-nav-menu.js +363 -0
  66. package/dist/cdn/components/eun-pagination.js +4 -4
  67. package/dist/cdn/components/eun-password-strength.js +2 -2
  68. package/dist/cdn/components/eun-progress-bar.js +1 -1
  69. package/dist/cdn/components/eun-radio-card.js +4 -4
  70. package/dist/cdn/components/eun-radio-list.js +1 -1
  71. package/dist/cdn/components/eun-radio.js +1 -1
  72. package/dist/cdn/components/eun-rating.js +9 -9
  73. package/dist/cdn/components/eun-scheduler-event-editor.js +113 -77
  74. package/dist/cdn/components/eun-scheduler-event.js +1 -1
  75. package/dist/cdn/components/eun-scheduler.js +137 -79
  76. package/dist/cdn/components/eun-search.js +6 -6
  77. package/dist/cdn/components/eun-select.js +1 -1
  78. package/dist/cdn/components/eun-sidebar.js +23 -14
  79. package/dist/cdn/components/eun-slider.js +2 -2
  80. package/dist/cdn/components/eun-sliding-card.js +1 -1
  81. package/dist/cdn/components/eun-step.js +2 -2
  82. package/dist/cdn/components/eun-stepper.js +11 -12
  83. package/dist/cdn/components/eun-switch.js +2 -2
  84. package/dist/cdn/components/eun-tab-group.js +1 -1
  85. package/dist/cdn/components/eun-tab-panel.js +1 -1
  86. package/dist/cdn/components/eun-table-action-bar.js +1 -1
  87. package/dist/cdn/components/eun-table.js +13 -10
  88. package/dist/cdn/components/eun-tag.js +1 -1
  89. package/dist/cdn/components/eun-textarea.js +4 -4
  90. package/dist/cdn/components/eun-time-picker.js +28 -25
  91. package/dist/cdn/components/eun-toast.js +8 -8
  92. package/dist/cdn/components/eun-toggle-group.js +8 -2
  93. package/dist/cdn/components/eun-toggle-item.js +8 -2
  94. package/dist/cdn/components/eun-toggle.js +4 -1
  95. package/dist/cdn/components/eun-toolbar.js +114 -36
  96. package/dist/cdn/components/eun-tooltip.js +1 -1
  97. package/dist/cdn/styles/eunomia-themes.css +1 -1
  98. package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
  99. package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
  100. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
  101. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
  102. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
  103. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
  104. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
  105. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
  106. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
  107. package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
  108. package/dist/components/action/button/button.styles.js +2 -2
  109. package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -0
  110. package/dist/components/action/dropdown-button/dropdown-button.js +1 -0
  111. package/dist/components/action/dropdown-button/dropdown-button.styles.js +5 -4
  112. package/dist/components/action/dropdown-button/dropdown-item.d.ts +1 -0
  113. package/dist/components/action/dropdown-button/dropdown-item.js +1 -0
  114. package/dist/components/action/dropdown-button/dropdown-item.styles.js +4 -4
  115. package/dist/components/action/link/link.d.ts +2 -1
  116. package/dist/components/action/link/link.js +2 -1
  117. package/dist/components/action/link/link.styles.d.ts +40 -1
  118. package/dist/components/action/link/link.styles.js +83 -60
  119. package/dist/components/action/shared-styles/button-palette.styles.js +1 -1
  120. package/dist/components/action/toggle/toggle-group.d.ts +1 -0
  121. package/dist/components/action/toggle/toggle-group.js +1 -0
  122. package/dist/components/action/toggle/toggle-group.styles.d.ts +1 -0
  123. package/dist/components/action/toggle/toggle-group.styles.js +9 -2
  124. package/dist/components/action/toggle/toggle-item.styles.js +8 -2
  125. package/dist/components/action/toggle/toggle.d.ts +1 -0
  126. package/dist/components/action/toggle/toggle.js +1 -0
  127. package/dist/components/action/toggle/toggle.styles.d.ts +1 -0
  128. package/dist/components/action/toggle/toggle.styles.js +5 -1
  129. package/dist/components/alert/drawer/drawer.d.ts +14 -13
  130. package/dist/components/alert/drawer/drawer.js +20 -28
  131. package/dist/components/alert/modal/modal.d.ts +14 -13
  132. package/dist/components/alert/modal/modal.js +20 -28
  133. package/dist/components/alert/modal/modal.styles.js +1 -1
  134. package/dist/components/alert/toast/toast.d.ts +5 -5
  135. package/dist/components/alert/toast/toast.js +9 -10
  136. package/dist/components/alert/toast/toast.styles.js +3 -3
  137. package/dist/components/content/card/image-card.styles.js +1 -1
  138. package/dist/components/content/chip/chip.d.ts +7 -9
  139. package/dist/components/content/chip/chip.js +11 -14
  140. package/dist/components/content/chip/chip.styles.js +1 -5
  141. package/dist/components/content/collapse/collapse.d.ts +5 -0
  142. package/dist/components/content/collapse/collapse.js +7 -0
  143. package/dist/components/content/collapse/collapse.styles.d.ts +3 -0
  144. package/dist/components/content/collapse/collapse.styles.js +13 -1
  145. package/dist/components/content/description-list/description-list.styles.js +1 -1
  146. package/dist/components/content/image-carousel/image-carousel.d.ts +60 -13
  147. package/dist/components/content/image-carousel/image-carousel.js +100 -22
  148. package/dist/components/content/image-carousel/image-carousel.styles.js +32 -6
  149. package/dist/components/content/password-strength/password-strength.styles.js +1 -1
  150. package/dist/components/content/progress-bar/progress-bar.styles.js +1 -1
  151. package/dist/components/content/shared-styles/card-link.styles.js +1 -1
  152. package/dist/components/content/shared-styles/tone-surface.styles.js +1 -3
  153. package/dist/components/form/checkbox/check-card.styles.js +2 -2
  154. package/dist/components/form/checkbox/checkbox-list.d.ts +3 -1
  155. package/dist/components/form/checkbox/checkbox-list.js +3 -1
  156. package/dist/components/form/checkbox/checkbox.styles.js +1 -1
  157. package/dist/components/form/color-picker/color-picker.d.ts +28 -3
  158. package/dist/components/form/color-picker/color-picker.js +53 -7
  159. package/dist/components/form/counter/counter.js +1 -1
  160. package/dist/components/form/counter/counter.styles.js +2 -2
  161. package/dist/components/form/date-picker/date-picker-day-grid.styles.js +1 -1
  162. package/dist/components/form/date-picker/date-picker-month-grid.js +1 -1
  163. package/dist/components/form/date-picker/date-picker.d.ts +50 -13
  164. package/dist/components/form/date-picker/date-picker.js +178 -43
  165. package/dist/components/form/input/input.js +1 -4
  166. package/dist/components/form/input-file/input-file.styles.js +2 -2
  167. package/dist/components/form/input-phone/input-phone.js +4 -3
  168. package/dist/components/form/label/label.styles.js +1 -1
  169. package/dist/components/form/radio/radio-card.styles.js +2 -2
  170. package/dist/components/form/radio/radio.styles.js +1 -1
  171. package/dist/components/form/rating/rating.js +3 -5
  172. package/dist/components/form/rating/rating.styles.js +2 -2
  173. package/dist/components/form/search/search.d.ts +1 -7
  174. package/dist/components/form/search/search.js +2 -12
  175. package/dist/components/form/shared-styles/field.styles.js +2 -2
  176. package/dist/components/form/slider/slider.styles.js +1 -1
  177. package/dist/components/form/switch/switch.styles.js +1 -1
  178. package/dist/components/form/textarea/textarea.js +1 -5
  179. package/dist/components/form/textarea/textarea.styles.js +2 -2
  180. package/dist/components/form/time-picker/time-picker-columns.d.ts +4 -1
  181. package/dist/components/form/time-picker/time-picker-columns.js +64 -15
  182. package/dist/components/form/time-picker/time-picker-columns.styles.js +5 -1
  183. package/dist/components/form/time-picker/time-picker-list.d.ts +4 -1
  184. package/dist/components/form/time-picker/time-picker-list.js +15 -8
  185. package/dist/components/form/time-picker/time-picker.d.ts +11 -2
  186. package/dist/components/form/time-picker/time-picker.js +22 -8
  187. package/dist/components/layout/animate/animate.d.ts +35 -17
  188. package/dist/components/layout/animate/animate.js +27 -14
  189. package/dist/components/layout/animate/animate.styles.d.ts +2 -1
  190. package/dist/components/layout/animate/animate.styles.js +107 -179
  191. package/dist/components/layout/divider/divider.d.ts +1 -0
  192. package/dist/components/layout/divider/divider.js +2 -1
  193. package/dist/components/layout/divider/divider.styles.js +7 -6
  194. package/dist/components/layout/infinite-list/infinite-list.styles.js +1 -1
  195. package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
  196. package/dist/components/navigation/carousel/carousel.d.ts +23 -14
  197. package/dist/components/navigation/carousel/carousel.js +39 -27
  198. package/dist/components/navigation/carousel/carousel.styles.js +16 -8
  199. package/dist/components/navigation/nav-menu/nav-menu.d.ts +201 -0
  200. package/dist/components/navigation/nav-menu/nav-menu.js +673 -0
  201. package/dist/components/navigation/nav-menu/nav-menu.styles.d.ts +1 -0
  202. package/dist/components/navigation/nav-menu/nav-menu.styles.js +352 -0
  203. package/dist/components/navigation/pagination/pagination.d.ts +3 -0
  204. package/dist/components/navigation/pagination/pagination.styles.js +2 -2
  205. package/dist/components/navigation/sidebar/sidebar.d.ts +8 -10
  206. package/dist/components/navigation/sidebar/sidebar.js +12 -15
  207. package/dist/components/navigation/sidebar/sidebar.styles.js +13 -4
  208. package/dist/components/navigation/stepper/step.styles.js +2 -2
  209. package/dist/components/navigation/stepper/stepper.d.ts +24 -13
  210. package/dist/components/navigation/stepper/stepper.js +36 -23
  211. package/dist/components/navigation/stepper/stepper.styles.js +2 -2
  212. package/dist/components/navigation/tabs/tab-group/tab-group.js +1 -1
  213. package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
  214. package/dist/components/navigation/toolbar/toolbar.d.ts +121 -20
  215. package/dist/components/navigation/toolbar/toolbar.js +176 -45
  216. package/dist/components/navigation/toolbar/toolbar.styles.js +113 -28
  217. package/dist/events/editor-state-change.event.d.ts +28 -0
  218. package/dist/events/editor-state-change.event.js +22 -0
  219. package/dist/events/event-cancel.event.d.ts +20 -0
  220. package/dist/events/event-cancel.event.js +17 -0
  221. package/dist/events/period-change.event.d.ts +14 -6
  222. package/dist/events/period-change.event.js +9 -6
  223. package/dist/features/scheduler/calendar/calendar.d.ts +52 -20
  224. package/dist/features/scheduler/calendar/calendar.js +84 -36
  225. package/dist/features/scheduler/calendar/calendar.styles.js +5 -2
  226. package/dist/features/scheduler/scheduler/scheduler.d.ts +69 -4
  227. package/dist/features/scheduler/scheduler/scheduler.js +172 -47
  228. package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -0
  229. package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +18 -20
  230. package/dist/features/scheduler/scheduler-event/scheduler-event.js +29 -38
  231. package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
  232. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +102 -18
  233. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +249 -112
  234. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +11 -1
  235. package/dist/features/scheduler/shared/scheduler-event-popover.d.ts +9 -1
  236. package/dist/features/scheduler/shared/scheduler-event-popover.js +77 -42
  237. package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +14 -3
  238. package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +3 -2
  239. package/dist/features/scheduler/shared/scheduler-hour-grid.js +53 -46
  240. package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +13 -7
  241. package/dist/features/scheduler/shared/scheduler-month-view.js +1 -1
  242. package/dist/features/scheduler/shared/scheduler-month-view.styles.js +13 -7
  243. package/dist/features/scheduler/shared/scheduler-year-view.d.ts +6 -5
  244. package/dist/features/scheduler/shared/scheduler-year-view.js +11 -7
  245. package/dist/features/scheduler/shared/scheduler-year-view.styles.js +57 -3
  246. package/dist/features/scheduler/shared/scheduler.types.d.ts +5 -9
  247. package/dist/features/scheduler/shared/scheduler.utils.d.ts +61 -0
  248. package/dist/features/scheduler/shared/scheduler.utils.js +78 -4
  249. package/dist/features/table/table/table-native.styles.js +8 -4
  250. package/dist/features/table/table/table.d.ts +2 -1
  251. package/dist/features/table/table/table.js +2 -1
  252. package/dist/features/table/table/table.styles.js +6 -4
  253. package/dist/i18n/en.d.ts +17 -0
  254. package/dist/i18n/en.js +17 -0
  255. package/dist/i18n/fr.js +17 -0
  256. package/dist/index.d.ts +6 -0
  257. package/dist/index.js +4 -0
  258. package/dist/jsx.d.ts +48 -6
  259. package/dist/mixins/anchor-position.mixin.d.ts +17 -0
  260. package/dist/mixins/anchor-position.mixin.js +45 -7
  261. package/dist/mixins/button.mixin.js +2 -1
  262. package/dist/mixins/check.mixin.js +14 -5
  263. package/dist/mixins/dialog-surface.mixin.d.ts +1 -1
  264. package/dist/mixins/dialog-surface.mixin.js +5 -5
  265. package/dist/mixins/form.mixin.js +33 -13
  266. package/dist/mixins/localizable.mixin.d.ts +1 -0
  267. package/dist/mixins/localizable.mixin.js +9 -2
  268. package/dist/mixins/radio.mixin.js +14 -5
  269. package/dist/mixins/validators.mixin.js +4 -3
  270. package/dist/react.d.ts +59 -0
  271. package/dist/react.js +42 -0
  272. package/dist/ssr/animate-ssr.css +35 -0
  273. package/dist/ssr/breadcrumb-ssr.css +3 -3
  274. package/dist/ssr/button-ssr.css +8 -2
  275. package/dist/ssr/card-ssr.css +1 -1
  276. package/dist/ssr/carousel-ssr.css +15 -4
  277. package/dist/ssr/chip-ssr.css +3 -3
  278. package/dist/ssr/collapse-ssr.css +2 -2
  279. package/dist/ssr/description-list-ssr.css +1 -1
  280. package/dist/ssr/divider-ssr.css +23 -0
  281. package/dist/ssr/field-ssr.css +245 -42
  282. package/dist/ssr/image-carousel-ssr.css +2 -4
  283. package/dist/ssr/links-ssr.css +17 -3
  284. package/dist/ssr/nav-menu-ssr.css +82 -0
  285. package/dist/ssr/overlay-ssr.css +4 -0
  286. package/dist/ssr/scheduler-ssr.css +182 -0
  287. package/dist/ssr/stepper-ssr.css +136 -0
  288. package/dist/ssr/table-ssr.css +7 -4
  289. package/dist/ssr/tag-ssr.css +1 -1
  290. package/dist/ssr/toolbar-ssr.css +7 -5
  291. package/dist/utils/css-length.utils.d.ts +14 -0
  292. package/dist/utils/css-length.utils.js +32 -0
  293. package/dist/utils/form-validation.utils.d.ts +36 -0
  294. package/dist/utils/form-validation.utils.js +113 -0
  295. package/dist/utils/implicit-submission.utils.js +2 -14
  296. package/dist/utils/interactive-content.utils.d.ts +10 -0
  297. package/dist/utils/interactive-content.utils.js +43 -0
  298. package/dist/utils/popover.utils.js +3 -2
  299. package/dist/utils/scroll-lock.utils.d.ts +9 -1
  300. package/dist/utils/scroll-lock.utils.js +21 -2
  301. package/dist/utils/theme-generator.utils.d.ts +1 -0
  302. package/dist/utils/theme-generator.utils.js +23 -10
  303. package/dist/utils/validity.utils.d.ts +18 -4
  304. package/dist/utils/validity.utils.js +74 -4
  305. package/package.json +34 -3
  306. package/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
  307. package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
  308. package/dist/cdn/components/chunks/chunk-4DRU3IYJ.js +0 -1
  309. package/dist/cdn/components/chunks/chunk-647ISUF4.js +0 -1
  310. package/dist/cdn/components/chunks/chunk-6TIEBY34.js +0 -1
  311. package/dist/cdn/components/chunks/chunk-E6UOI36Q.js +0 -1
  312. package/dist/cdn/components/chunks/chunk-GNAUNTS5.js +0 -1
  313. package/dist/cdn/components/chunks/chunk-IJJ67C66.js +0 -1
  314. package/dist/cdn/components/chunks/chunk-J7ETIRSK.js +0 -1
  315. package/dist/cdn/components/chunks/chunk-JGV7LHEI.js +0 -1
  316. package/dist/cdn/components/chunks/chunk-L74LXUGL.js +0 -1
  317. package/dist/cdn/components/chunks/chunk-MY6ORZJR.js +0 -46
  318. package/dist/cdn/components/chunks/chunk-QWTFP56P.js +0 -1
  319. package/dist/cdn/components/chunks/chunk-SFX2LQ4K.js +0 -205
  320. package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +0 -1
  321. package/dist/utils/boolean.utils.d.ts +0 -14
  322. package/dist/utils/boolean.utils.js +0 -20
@@ -1 +0,0 @@
1
- import{b as n}from"./chunk-MY6ORZJR.js";import{a as r}from"./chunk-YYCEPZUN.js";import{a as i,j as a}from"./chunk-YITWLCD3.js";var f=d=>{class t extends d{constructor(){super(...arguments);this.checked=!1;this.checkable=!0;this.descriptionOnHost=!0;this.errorOnChange=!0;this.buildCommonValidators=()=>this.required&&!this.checked?{validity:{valueMissing:!0},message:this.validationDictionary.validation.valueMissing}:{validity:{}}}connectedCallback(){super.connectedCallback?.(),this.hasAttribute("role")||this.setAttribute("role","checkbox"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.defaultChecked!==void 0&&!this.hasAttribute("checked")&&(this.checked=this.defaultChecked),this.addEventListener("keydown",this.handleKeydown)}formResetCallback(){this.checked=this.defaultChecked??!1,this.dirty=!1,this.touched=!1}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback?.()}updated(e){super.updated(e),e.has("checked")&&(this.setAttribute("aria-checked",String(this.checked)),this.updateInternals()),n(e)&&this.setAttribute("aria-invalid",String(this.showError)),e.has("required")&&this.setAttribute("aria-required",String(this.required))}handleClick(e){this.handleChange(e)}handleChange(e){e.stopPropagation(),!(this.disabled||this.readonly||this.inert)&&(e.preventDefault(),this.checked=!this.checked,this.updateInternals(),this.checkValidity(this.checked),this.dispatchEvent(new r(this.checked)))}handleKeydown(e){e.key===" "&&(e.preventDefault(),this.handleChange(e))}updateInternals(){this.setFormValue(this.valueState)}}return i([a({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([a({type:Boolean,attribute:"default-checked"})],t.prototype,"defaultChecked",2),t};export{f as a};
@@ -1 +0,0 @@
1
- import{a as i,b as t}from"./chunk-GNAUNTS5.js";import{a as r,j as o}from"./chunk-YITWLCD3.js";var f=n=>{class e extends n{get dictionary(){let c=this.locale??i();return t[c]??t.en}}return r([o({reflect:!0})],e.prototype,"locale",2),e};export{f as a};
@@ -1 +0,0 @@
1
- function y(i,d){if(!i||i.validity.valid)return{validity:{}};let t={};for(let a of d)t[a]=i.validity[a];return{validity:t,message:i.validationMessage}}export{y as a};
@@ -1,46 +0,0 @@
1
- import{a as v}from"./chunk-YYCEPZUN.js";import{a as g,b as m}from"./chunk-GNAUNTS5.js";import{a as r,h as p,j as n,k as l,p as u,r as f}from"./chunk-YITWLCD3.js";function V(o,i,h){return o?i(o):h?.(o)}var k=["valid","hideError","fieldsetHideError","invalid","disabled","touched","dirty","validationRequested","error"],C=o=>k.some(i=>o.has(i)),q=o=>{class i extends o{constructor(...e){super(...e);this.hideError=!1;this.invalid=!1;this.fieldsetHideError=!1;this.checkable=!1;this.checked=!1;this.dirty=!1;this.touched=!1;this.validationRequested=!1;this.controlled=!1;this.descriptionOnHost=!1;this.errorOnChange=!1;this.#t=()=>{this.dirty||(this.dirty=!0)};this.#i=()=>{this.touched||(this.touched=!0)};this.#r=()=>{this.validationRequested=!0};this.#s=()=>{this.fieldsetHideError=!!this.closest("fieldset[hide-error]")};this.internals||(this.internals=this.attachInternals())}static{this.formAssociated=!0}#e;#t;#i;#r;#s;#a(){this.#s();let e=this.closest("fieldset");if(!(!e||typeof MutationObserver>"u"))for(this.#e=new MutationObserver(this.#s);e;)this.#e.observe(e,{attributes:!0,attributeFilter:["hide-error"]}),e=e.parentElement?.closest("fieldset")??null}get errorsHidden(){return this.hideError||this.fieldsetHideError}get showError(){return this.invalid&&!this.disabled||this.showErrorMessages}get showErrorMessages(){return!this.valid&&!this.errorsHidden&&!this.disabled&&(this.touched||this.dirty&&this.errorOnChange||this.validationRequested||!!this.error)}get pristine(){return!this.dirty}get untouched(){return!this.touched}get defaultValue(){return this.internalDefaultValue}set defaultValue(e){let t=this.value==null||Array.isArray(this.value)&&this.value.length===0;e!=null&&(this.defaultValue==null||this.defaultValue==="")&&t&&(this.value=e),this.internalDefaultValue=e}get value(){return this.valueState}set value(e){this.valueState=e,this.setFormValue(e)}get description(){return this.showErrorMessages?this.errorMessages.length?this.errorMessages:this.validationMessage.length?this.validationMessage:this.hint:this.hint}get form(){return this.internals.form}get type(){return this.localName}getValueToValidate(){return this.checkable?this.checked:this.value}connectedCallback(){super.connectedCallback?.(),this.checkable&&this.checked&&this.setFormValue(this.value),this.checkable||this.defaultValue===void 0||this.defaultValue===""||(this.value=this.defaultValue),this.checkValidity(this.value),this.addEventListener(v.eventName,this.#t),this.addEventListener("focusout",this.#i),this.addEventListener("invalid",this.#r),this.#a()}disconnectedCallback(){this.removeEventListener(v.eventName,this.#t),this.removeEventListener("focusout",this.#i),this.removeEventListener("invalid",this.#r),this.#e?.disconnect(),this.#e=void 0,super.disconnectedCallback?.()}willUpdate(e){(e.has("value")||e.has("valueState")||e.has("checked")||e.has("validators")||e.has("required")||e.has("error"))&&this.checkValidity(),super.willUpdate(e)}updated(e){if(super.updated(e),!this.descriptionOnHost)return;let{description:t}=this,s=Array.isArray(t)?t.join(" "):t;s?this.setAttribute("aria-description",s):this.removeAttribute("aria-description")}setFormValue(e){let t=new FormData;if(this.disabled||this.checkable&&!this.checked){this.internals.setFormValue(t);return}let s=this.name||this.getAttribute("name");if(!s){this.internals.setFormValue(t);return}Array.isArray(e)?e.forEach(a=>t.append(s,a instanceof File?a:String(a))):e!=null&&(e instanceof File?t.append(s,e):t.append(s,this.checkable&&!this.value?"on":String(e))),this.internals.setFormValue(t)}formResetCallback(){this.controlled||(this.checkable?this.checked=!1:this.value=this.defaultValue),this.dirty=!1,this.touched=!1,this.validationRequested=!1}renderDescription(){return this.renderError()}renderError(){let{description:e}=this;return e?.length?this.showErrorMessages?u`
2
- <p
3
- id="description"
4
- class="error-messages"
5
- aria-hidden=${this.descriptionOnHost?"true":f}
6
- >
7
- ${V(Array.isArray(e),()=>e.map(t=>u`<span>${t}</span>`),()=>u`<span>${e}</span>`)}
8
- </p>
9
- `:u`
10
- <p
11
- id="description"
12
- class="hint-messages"
13
- aria-hidden=${this.descriptionOnHost?"true":f}
14
- >
15
- <span>${e}</span>
16
- </p>
17
- `:f}}return r([n({reflect:!0})],i.prototype,"name",2),r([n()],i.prototype,"hint",2),r([n({type:Boolean,attribute:"hide-error"})],i.prototype,"hideError",2),r([n({type:Boolean})],i.prototype,"invalid",2),r([l()],i.prototype,"fieldsetHideError",2),r([l()],i.prototype,"valueState",2),r([l()],i.prototype,"dirty",2),r([l()],i.prototype,"touched",2),r([l()],i.prototype,"validationRequested",2),r([n({type:Boolean})],i.prototype,"controlled",2),r([n({attribute:"default-value",converter:{fromAttribute:e=>e?e.split(","):void 0,toAttribute:e=>e?.join(",")??null}})],i.prototype,"defaultValue",1),r([n()],i.prototype,"value",1),i};var $=o=>{class i extends o{constructor(){super(...arguments);this.readonly=!1}updated(e){super.updated(e),e.has("readonly")&&(this.readonly?this.setAttribute("aria-readonly","true"):this.removeAttribute("aria-readonly"))}}return r([n({type:Boolean,reflect:!0})],i.prototype,"readonly",2),i};var G=o=>{class i extends o{constructor(...e){super(...e);this.required=!1;this.valid=!0;this.errorMessages=[];this.internals||(this.internals=this.attachInternals())}get validationDictionary(){let e=this.locale;return m[e??g()]??m.en}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkLocalValidators(){return{validity:{}}}buildCommonValidators(){let{value:e}=this,t={},s,a=e==null||typeof e=="string"&&e.trim()===""||e instanceof Array&&!e.length;return this.required&&a&&(t.valueMissing=!0,s=this.validationDictionary.validation.valueMissing),{validity:t,message:s}}checkValidity(e=this.getValueToValidate()){let t=this.checkLocalValidators(),s=this.buildCommonValidators(),a={...t.validity,...s.validity},d=s.message||t.message,c=this.error?[this.error]:[];this.validators?.forEach(E=>this.collectErrors(c,E,e)),this.errorMessages=c,c.length>0&&(a.customError=!0,d=c.join(" ; ")),this.valid=!Object.values(a).some(Boolean);let y=this.getFocusAnchor?.();return this.valid||y||!this.getFocusAnchor?this.setValidity(a,d,y):this.updateComplete.then(()=>this.setValidity(a,d,y)),this.valid}reportValidity(e=this.getValueToValidate()){return this.checkValidity(e),this.internals.reportValidity()}collectErrors(e,t,s){if("~standard"in t){let a=t["~standard"].validate(s);if(a instanceof Promise)throw new TypeError("Validation schemas must be synchronous");a.issues&&e.push(...a.issues.map(d=>d.message))}return"isValid"in t&&(typeof t.isValid=="function"?!t.isValid(s,this.getValidityData()):t.isValid===!1)&&e.push(t.message),"isInvalid"in t&&t.isInvalid({value:s})&&e.push(t.message),e}setValidity(e,t,s){let a=this.validationMessage;this.internals.setValidity(e,t,s),t!==a&&this.requestUpdate("valid")}getValueToValidate(){return this.value}getValidityData(){return{}}}return r([n({type:Array})],i.prototype,"validators",2),r([n({type:Boolean})],i.prototype,"required",2),r([n()],i.prototype,"error",2),r([l()],i.prototype,"valid",2),i};var M=p`
18
- #description {
19
- font-family: var(--eun-font-family, "Mulish", sans-serif);
20
- display: block;
21
- margin-block-start: var(--eun-space-xs, 4px);
22
- font-size: var(--field-message-font-size, var(--eun-font-size-xs, 12px));
23
- margin-block: 0;
24
- }
25
- #description span {
26
- display: block;
27
- margin-top: var(--eun-space-xs, 4px);
28
- }
29
- `,T=p`
30
- .error-messages {
31
- color: var(--_errorColor);
32
- }
33
- `,x=p`
34
- .hint-messages {
35
- color: var(--_hintColor);
36
- }
37
- `,W={base:M,errorMessages:T,hintMessages:x};export{V as a,C as b,q as c,$ as d,G as e,W as f};
38
- /*! Bundled license information:
39
-
40
- lit-html/directives/when.js:
41
- (**
42
- * @license
43
- * Copyright 2021 Google LLC
44
- * SPDX-License-Identifier: BSD-3-Clause
45
- *)
46
- */
@@ -1 +0,0 @@
1
- var M=0,T=g=>{class p extends g{constructor(){super(...arguments);this.anchorPositionGap=4;this.anchorPositionAxis="vertical";this.anchorScrollRoots=[];this.handleAnchorReposition=()=>{this.anchoredElement&&this.anchoredFloatingElement&&this.applyFallbackPosition(this.anchoredElement,this.anchoredFloatingElement,this.anchorPositionGap,this.anchorPositionAxis)}}static{this.nativeAnchorPositioningSupported=typeof CSS<"u"&&CSS.supports("anchor-name: --a")}supportsAnchorPositioning(){return p.nativeAnchorPositioningSupported}disconnectedCallback(){this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),super.disconnectedCallback?.()}anchorFloatingElement(i,e,o={}){let r=o.gap??4,t=o.axis??"vertical";if(this.supportsAnchorPositioning()&&!o.forceFallback){this.anchorPositionName??=`--eun-anchor-${++M}`,i.style.setProperty("anchor-name",this.anchorPositionName),e.style.setProperty("position-anchor",this.anchorPositionName),this.applyNativePlacementAttribute(i,e);return}this.anchorPositionGap=r,this.anchorPositionAxis=t,this.anchoredElement=i,this.anchoredFloatingElement=e,this.applyFallbackPosition(i,e,r,t),window.addEventListener("resize",this.handleAnchorReposition),window.addEventListener("scroll",this.handleAnchorReposition,!0),this.removeAnchorScrollRootListeners();let n=i.getRootNode();for(;n instanceof ShadowRoot;)n.addEventListener("scroll",this.handleAnchorReposition,!0),this.anchorScrollRoots.push(n),n=n.host.getRootNode()}unanchorFloatingElement(){window.removeEventListener("resize",this.handleAnchorReposition),window.removeEventListener("scroll",this.handleAnchorReposition,!0),this.removeAnchorScrollRootListeners(),this.anchoredElement=void 0,this.anchoredFloatingElement=void 0}removeAnchorScrollRootListeners(){for(let i of this.anchorScrollRoots)i.removeEventListener("scroll",this.handleAnchorReposition,!0);this.anchorScrollRoots=[]}applyFallbackPosition(i,e,o,r="vertical"){let t=i.getBoundingClientRect(),n=this.readViewportInset(e,"--eun-viewport-inset-top"),d=this.readViewportInset(e,"--eun-viewport-inset-bottom");if(r==="horizontal"){let s=e.getBoundingClientRect(),x=t.left,f=window.innerWidth-t.right,u=s.width+o,A=Math.max(window.innerHeight-d-s.height,n),w=h=>Math.min(Math.max(h,n),A),a,c,l;if(f>=u)a="right",c=t.right+o,l=w(t.top);else if(x>=u)a="left",c=t.left-s.width-o,l=w(t.top);else{let h=window.innerHeight-d-t.bottom,L=t.top-n,y=h<s.height+o&&L>h;a=y?"top":"bottom",l=Math.max(y?t.top-s.height-o:t.bottom+o,n),c=Math.min(Math.max(t.left,0),Math.max(window.innerWidth-s.width,0))}e.dataset.placement=a,e.classList.toggle("flipped",a==="left"||a==="top"),e.style.setProperty("--_anchorTop",`${l}px`),e.style.setProperty("--_anchorLeft",`${c}px`),e.style.setProperty("--_anchorWidth",`${t.width}px`);return}let v=window.innerHeight-d-t.bottom,E=t.top-n,b=e.getBoundingClientRect().height,m=v<b+o&&E>v;e.dataset.placement=m?"top":"bottom",e.classList.toggle("flipped",m);let P=Math.max(m?t.top-b-o:t.bottom+o,n);e.style.setProperty("--_anchorTop",`${P}px`),e.style.setProperty("--_anchorLeft",`${t.left}px`),e.style.setProperty("--_anchorWidth",`${t.width}px`)}applyNativePlacementAttribute(i,e){let o=i.getBoundingClientRect(),r=e.getBoundingClientRect(),t="bottom";r.bottom<=o.top+1?t="top":r.right<=o.left+1?t="left":r.left>=o.right-1&&(t="right"),e.dataset.placement=t,e.classList.toggle("flipped",t==="top"||t==="left")}readViewportInset(i,e){let o=getComputedStyle(i).getPropertyValue(e),r=Number.parseFloat(o);return Number.isFinite(r)?r:0}observeAnchorVisibility(i,e){if(this.anchorVisibilityObserver?.disconnect(),!i)return;let o=this.readViewportInset(i,"--eun-viewport-inset-top"),r=this.readViewportInset(i,"--eun-viewport-inset-bottom");this.anchorVisibilityObserver=new IntersectionObserver(([t])=>{t.isIntersecting||e()},{rootMargin:`${-o}px 0px ${-r}px 0px`,threshold:0}),this.anchorVisibilityObserver.observe(i)}unobserveAnchorVisibility(){this.anchorVisibilityObserver?.disconnect(),this.anchorVisibilityObserver=void 0}}return p};export{T as a};
@@ -1,205 +0,0 @@
1
- import{a as N}from"./chunk-VJCNHMQZ.js";import{a as F}from"./chunk-SD2H5UDZ.js";import{a as O}from"./chunk-O7PHBLH2.js";import{a as _,b as T,c as H}from"./chunk-SGM2X2TC.js";import{h as A,p,r as w}from"./chunk-YITWLCD3.js";function ne(e,t){if(t===12||t===24)return t;let r=new Intl.DateTimeFormat(e,{hour:"numeric"}).resolvedOptions().hourCycle;return r==="h11"||r==="h12"?12:24}function $(e){let t=B(e);return{hour:e%12===0?12:e%12,period:t}}function C(e,t){let r=e%12;return t==="PM"?r+12:r}function B(e){return e<12?"AM":"PM"}function I(e,t){return((e+t)%24+24)%24}function L(e,t){return((e+t)%60+60)%60}function E(e){return e==="AM"?"PM":"AM"}function oe(e){return e===12?["hour","minute","period"]:["hour","minute"]}var V=["period","hour","minute"];function ie(e){let r=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",hourCycle:"h12"}).formatToParts(new Date(2e3,0,1,14,30)).map(n=>n.type).map(n=>n==="hour"?"hour":n==="minute"?"minute":n==="dayPeriod"?"period":null).filter(n=>n!==null);return r.length===3?r:V}function ae(e,t,r){if(e===null||t===null)return{hour:"",minute:"",period:""};if(r===12){let{hour:n,period:o}=$(e);return{hour:String(n).padStart(2,"0"),minute:String(t).padStart(2,"0"),period:o}}return{hour:String(e).padStart(2,"0"),minute:String(t).padStart(2,"0"),period:""}}function ue(e,t){if(e.hour===""||e.minute==="")return null;let r=Number(e.minute);if(!Number.isInteger(r)||r<0||r>59)return null;let n=Number(e.hour);return Number.isInteger(n)?t===12?n<1||n>12||e.period!=="AM"&&e.period!=="PM"?null:{hour:C(n,e.period),minute:r}:n<0||n>23?null:{hour:n,minute:r}:null}function le(e,t){let r=e.hour.length===2&&e.minute.length===2;return t===12?r&&e.period!=="":r}function P(e){return String(e).padStart(2,"0")}function D(e){return String(e).padStart(2,"0")}function se(e){if(!e)return null;let t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;let r=Number(t[1]),n=Number(t[2]);return r<0||r>23||n<0||n>59?null:{hour:r,minute:n}}function v(e){return e.hour*60+e.minute}function ce(e,t,r){if(!t&&!r)return{valid:!0};let n=v(e);if(t&&r){let o=v(t),i=v(r);return o<=i?n<o?{valid:!1,violation:"min"}:n>i?{valid:!1,violation:"max"}:{valid:!0}:n>=o||n<=i?{valid:!0}:{valid:!1,violation:"max"}}return t&&n<v(t)?{valid:!1,violation:"min"}:r&&n>v(r)?{valid:!1,violation:"max"}:{valid:!0}}var j=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],G=new Map;function Q(e){let t=G.get(e);return t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",weekday:"short"}),G.set(e,t)),t}function g(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function W(e,t){let r=t??g(),n=Q(r).formatToParts(e),o=d=>n.find(l=>l.type===d)?.value??"",i=Number(o("hour"))%24,s=o("weekday"),c=j.indexOf(s);return{year:Number(o("year")),month:Number(o("month")),day:Number(o("day")),hour:i,minute:Number(o("minute")),second:Number(o("second")),weekday:c===-1?0:c}}function K(e,t){let r=W(e,t),n=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second);return Math.round((n-e.getTime())/6e4)}function X(e,t){let r=e.second??0,n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,r),o=K(new Date(n),t),i=n-o*6e4,s=K(new Date(i),t);return s===o?new Date(i):new Date(n-s*6e4)}function me(e,t,r,n){let o=t??g(),{year:i,month:s,day:c}=W(e,o);return X({year:i,month:s,day:c,hour:r,minute:n},o)}function he(e,t){return(e??g())===(t??g())}function fe(e,t,r={}){return new Intl.DateTimeFormat(r.locale,{timeZone:t,timeZoneName:r.style??"shortOffset",hour:"numeric"}).formatToParts(e).find(o=>o.type==="timeZoneName")?.value??""}var x=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),x(n,t);return!0},y=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},R=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),J(t)}};function Y(e){this._$AN!==void 0?(y(this),this._$AM=e,R(this)):this._$AM=e}function q(e,t=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)x(n[i],!1),y(n[i]);else n!=null&&(x(n,!1),y(n));else x(this,e)}var J=e=>{e.type==_.CHILD&&(e._$AP??=q,e._$AQ??=Y)},k=class extends H{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),R(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(x(this,t),y(this))}setValue(t){if(N(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var M=new WeakMap,U=T(class extends k{render(e){return w}update(e,[t]){let r=t!==this.G;return r&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),w}rt(e){if(this.G!==void 0)if(this.isConnected||(e=void 0),typeof this.G=="function"){let t=this.ht??globalThis,r=M.get(t);r===void 0&&(r=new WeakMap,M.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return typeof this.G=="function"?M.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var z=40;function Ie(e){let{visual:t,format:r,hour:n,minute:o,period:i,stepMinute:s,disabled:c=!1,noAnimation:d=!1}=e,l=r===12?$(n):{hour:n,period:i},f=r===12?1:0,a=r===12?12:23,m=[];for(let u=f;u<=a;u+=1)m.push({value:u,text:P(u),selected:u===l.hour});let h=[];for(let u=0;u<60;u+=Math.max(1,s))h.push({value:u,text:D(u),selected:u===o});let b=u=>{e.onHourChange(I(n,u))},Z=u=>{e.onMinuteChange(L(o,u*Math.max(1,s)))};return p`
2
- <div class="tp-columns" role="group" aria-label=${e.labels.time}>
3
- ${S({kind:"hour",visual:t,disabled:c,noAnimation:d,label:e.labels.hour,incrementLabel:e.labels.increaseHour,decrementLabel:e.labels.decreaseHour,min:f,max:a,current:l.hour,valueText:P(l.hour),items:m,onStep:b,onPick:u=>e.onHourChange(r===12?C(u,l.period):u)})}
4
- ${S({kind:"minute",visual:t,disabled:c,noAnimation:d,label:e.labels.minute,incrementLabel:e.labels.increaseMinute,decrementLabel:e.labels.decreaseMinute,min:0,max:59,current:o,valueText:D(o),items:h,onStep:Z,onPick:u=>e.onMinuteChange(u)})}
5
- ${r===12?S({kind:"period",visual:t,disabled:c,noAnimation:d,label:e.labels.amPm,incrementLabel:e.labels.togglePeriod,decrementLabel:e.labels.togglePeriod,min:0,max:1,current:i==="AM"?0:1,valueText:i,items:[{value:0,text:"AM",selected:i==="AM"},{value:1,text:"PM",selected:i==="PM"}],onStep:()=>e.onPeriodChange(E(i)),onPick:u=>e.onPeriodChange(u===0?"AM":"PM")}):null}
6
- </div>
7
- `}function S(e){let{kind:t,visual:r,disabled:n,label:o,min:i,max:s,current:c,valueText:d,onStep:l}=e,f=a=>{switch(a.key){case"ArrowUp":a.preventDefault(),l(1);break;case"ArrowDown":a.preventDefault(),l(-1);break;case"PageUp":a.preventDefault(),l(5);break;case"PageDown":a.preventDefault(),l(-5);break;case"Home":a.preventDefault(),e.onPick(i);break;case"End":a.preventDefault(),e.onPick(s);break;default:break}};return p`
8
- <div class="tp-column" data-kind=${t}>
9
- <button
10
- type="button"
11
- class="tp-arrow tp-arrow-up"
12
- tabindex="-1"
13
- aria-label=${e.incrementLabel}
14
- ?disabled=${n}
15
- @click=${()=>l(1)}
16
- >
17
- <svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true">
18
- <path d="M8 4l5 6H3z" fill="currentColor" />
19
- </svg>
20
- </button>
21
- ${r==="wheel"?ee(e):p`
22
- <div
23
- class="tp-value"
24
- role="spinbutton"
25
- tabindex=${n?"-1":"0"}
26
- aria-label=${o}
27
- aria-valuemin=${i}
28
- aria-valuemax=${s}
29
- aria-valuenow=${c}
30
- aria-valuetext=${d}
31
- aria-disabled=${n?"true":"false"}
32
- @keydown=${f}
33
- >
34
- ${d}
35
- </div>
36
- `}
37
- <button
38
- type="button"
39
- class="tp-arrow tp-arrow-down"
40
- tabindex="-1"
41
- aria-label=${e.decrementLabel}
42
- ?disabled=${n}
43
- @click=${()=>l(-1)}
44
- >
45
- <svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true">
46
- <path d="M3 6h10l-5 6z" fill="currentColor" />
47
- </svg>
48
- </button>
49
- </div>
50
- `}function ee(e){let{min:t,max:r,current:n,valueText:o,label:i,disabled:s,noAnimation:c}=e,d=a=>{switch(a.key){case"ArrowUp":a.preventDefault(),e.onStep(1);break;case"ArrowDown":a.preventDefault(),e.onStep(-1);break;case"PageUp":a.preventDefault(),e.onStep(5);break;case"PageDown":a.preventDefault(),e.onStep(-5);break;case"Home":a.preventDefault(),e.onPick(t);break;case"End":a.preventDefault(),e.onPick(r);break;default:break}},l,f=F(a=>{let m=a.currentTarget,h=Math.round(m.scrollTop/z);if(h===l)return;let b=e.items[Math.min(Math.max(h,0),e.items.length-1)];b&&b.value!==n&&e.onPick(b.value)},120);return p`
51
- <div
52
- class="tp-wheel"
53
- role="spinbutton"
54
- tabindex=${s?"-1":"0"}
55
- aria-label=${i}
56
- aria-valuemin=${t}
57
- aria-valuemax=${r}
58
- aria-valuenow=${n}
59
- aria-valuetext=${o}
60
- aria-disabled=${s?"true":"false"}
61
- @keydown=${d}
62
- @scroll=${f}
63
- ${U(a=>{let m=e.items.findIndex(h=>h.selected);l=m===-1?void 0:m,te(a,m,c)})}
64
- >
65
- <div class="tp-wheel-pad" aria-hidden="true"></div>
66
- ${e.items.map(a=>p`
67
- <button
68
- type="button"
69
- class=${O({"tp-wheel-item":!0,selected:a.selected})}
70
- tabindex="-1"
71
- aria-hidden="true"
72
- @click=${()=>e.onPick(a.value)}
73
- >
74
- ${a.text}
75
- </button>
76
- `)}
77
- <div class="tp-wheel-pad" aria-hidden="true"></div>
78
- </div>
79
- `}function te(e,t,r){if(t===-1||!(e instanceof HTMLElement))return;let n=t*z;if(Math.abs(e.scrollTop-n)<1)return;let o=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;e.scrollTo({top:n,behavior:r||o?"instant":"smooth"})}var re=A`
80
- .tp-columns {
81
- display: flex;
82
- align-items: center;
83
- justify-content: center;
84
- gap: var(--eun-space-m, 16px);
85
- padding: var(--eun-space-m, 16px);
86
- }
87
- .tp-column {
88
- display: flex;
89
- flex-direction: column;
90
- align-items: center;
91
- gap: var(--eun-space-xs, 4px);
92
- }
93
- .tp-arrow {
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- border: none;
98
- border-radius: var(--eun-border-radius-s, 5px);
99
- background: none;
100
- padding: var(--eun-space-xxs, 1.6px);
101
- color: var(--_iconColor, var(--eun-text-secondary, #484e61));
102
- cursor: pointer;
103
- transition: background-color var(--eun-duration-s, 150ms)
104
- var(--eun-easing-default, ease);
105
- }
106
- .tp-arrow:hover:not(:disabled) {
107
- background-color: var(
108
- --time-picker-hover-background,
109
- var(--eun-content-hover, #edeff0)
110
- );
111
- }
112
- .tp-arrow:disabled {
113
- cursor: not-allowed;
114
- opacity: 0.4;
115
- }
116
- .tp-value,
117
- .tp-wheel {
118
- display: flex;
119
- align-items: center;
120
- justify-content: center;
121
- min-width: 48px;
122
- font-size: var(--eun-font-size-l, 24px);
123
- font-weight: var(--eun-font-weight-m, 600);
124
- color: var(--_textColor, var(--eun-text-color, #071621));
125
- font-variant-numeric: tabular-nums;
126
- }
127
- .tp-value {
128
- padding: var(--eun-space-xs, 4px);
129
- border-radius: var(--eun-border-radius-s, 5px);
130
- outline: 2px solid transparent;
131
- outline-offset: 2px;
132
- cursor: default;
133
- }
134
- .tp-value:focus-visible {
135
- outline-color: var(
136
- --field-focus-outline-color,
137
- var(--eun-color-primary-500, #3d6fff)
138
- );
139
- }
140
- .tp-wheel {
141
- flex-direction: column;
142
- height: 120px;
143
- width: 56px;
144
- overflow-y: auto;
145
- scroll-snap-type: y mandatory;
146
- scrollbar-width: none;
147
- outline: 2px solid transparent;
148
- outline-offset: 2px;
149
- border-radius: var(--eun-border-radius-s, 5px);
150
- }
151
- .tp-wheel::-webkit-scrollbar {
152
- display: none;
153
- }
154
- .tp-wheel:focus-visible {
155
- outline-color: var(
156
- --field-focus-outline-color,
157
- var(--eun-color-primary-500, #3d6fff)
158
- );
159
- }
160
- .tp-wheel-pad {
161
- flex: none;
162
- height: 40px;
163
- }
164
- .tp-wheel-item {
165
- flex: none;
166
- display: flex;
167
- align-items: center;
168
- justify-content: center;
169
- height: 40px;
170
- scroll-snap-align: center;
171
- border: none;
172
- background: none;
173
- padding: 0;
174
- color: var(--_placeholderColor, var(--eun-color-grey-400, #c1c9d6));
175
- font: inherit;
176
- cursor: pointer;
177
- transition: color var(--eun-duration-s, 150ms)
178
- var(--eun-easing-default, ease);
179
- }
180
- .tp-wheel-item.selected {
181
- color: var(--_textColor, var(--eun-text-color, #071621));
182
- font-weight: var(--eun-font-weight-l, 700);
183
- }
184
- @media (prefers-reduced-motion: reduce) {
185
- .tp-wheel {
186
- scroll-behavior: auto;
187
- }
188
- }
189
- `,Ge=re;export{ne as a,$ as b,C as c,E as d,oe as e,ie as f,ae as g,ue as h,le as i,se as j,ce as k,g as l,W as m,X as n,me as o,he as p,fe as q,Ie as r,Ge as s};
190
- /*! Bundled license information:
191
-
192
- lit-html/async-directive.js:
193
- (**
194
- * @license
195
- * Copyright 2017 Google LLC
196
- * SPDX-License-Identifier: BSD-3-Clause
197
- *)
198
-
199
- lit-html/directives/ref.js:
200
- (**
201
- * @license
202
- * Copyright 2020 Google LLC
203
- * SPDX-License-Identifier: BSD-3-Clause
204
- *)
205
- */
@@ -1 +0,0 @@
1
- var i=["button:not([type])",'button[type="submit"]','input[type="submit"]','input[type="image"]','eun-button[type="submit"]','eun-fab[type="submit"]'].join(", "),u=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),o=["eun-input","eun-search","eun-input-phone","eun-counter","eun-date-picker","eun-time-picker"].join(", ");function c(e){return e.key==="Enter"&&!e.isComposing&&e.keyCode!==229&&!e.defaultPrevented}function l(e){let t=e.querySelector(i);if(t){t.matches(":disabled, [disabled]")||t.click();return}Array.from(e.elements).filter(n=>n instanceof HTMLInputElement&&u.has(n.type)||n.matches(o)).length<=1&&e.requestSubmit()}export{c as a,l as b};
@@ -1,14 +0,0 @@
1
- import type { ComplexAttributeConverter } from "lit";
2
- /**
3
- * Converter for the boolean attributes that default to `true`. Lit's
4
- * standard boolean converter only looks at the attribute's presence, the
5
- * same way native HTML boolean attributes work, so `closeable="false"`
6
- * would still read as `true`, and nothing declarative (HTML, SSR, JSX)
7
- * could turn these off. Here the literal `"false"` really means `false`.
8
- *
9
- * When reflected, `true` writes an empty attribute and `false` writes
10
- * `"false"`, rather than removing it : a missing attribute would read back
11
- * as the `true` default on the next upgrade (SSR output, `cloneNode`), and
12
- * stylesheets can target the off state with `[attr="false"]`.
13
- */
14
- export declare const defaultTrueConverter: ComplexAttributeConverter<boolean>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Converter for the boolean attributes that default to `true`. Lit's
3
- * standard boolean converter only looks at the attribute's presence, the
4
- * same way native HTML boolean attributes work, so `closeable="false"`
5
- * would still read as `true`, and nothing declarative (HTML, SSR, JSX)
6
- * could turn these off. Here the literal `"false"` really means `false`.
7
- *
8
- * When reflected, `true` writes an empty attribute and `false` writes
9
- * `"false"`, rather than removing it : a missing attribute would read back
10
- * as the `true` default on the next upgrade (SSR output, `cloneNode`), and
11
- * stylesheets can target the off state with `[attr="false"]`.
12
- */
13
- export const defaultTrueConverter = {
14
- fromAttribute(value) {
15
- return value !== null && value !== "false";
16
- },
17
- toAttribute(value) {
18
- return value ? "" : "false";
19
- },
20
- };