@eunomia/elements 1.0.0-beta.5 → 1.0.0-beta.7
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.
- package/README.md +2 -2
- package/dist/breakpoints.d.ts +37 -10
- package/dist/breakpoints.js +38 -10
- package/dist/cdn/components/chunks/{chunk-MMLIPCOY.js → chunk-22D3SRFR.js} +1 -1
- package/dist/cdn/components/chunks/chunk-36KLGY6U.js +209 -0
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-IDKZKLJR.js → chunk-3PNGQEG4.js} +24 -11
- package/dist/cdn/components/chunks/{chunk-NBIENHLV.js → chunk-5XPOGBPL.js} +18 -18
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/chunk-62RLISRD.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6ETDXUH2.js → chunk-6FYW5TQU.js} +7 -7
- package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/chunk-BVASCT2V.js +109 -0
- package/dist/cdn/components/chunks/{chunk-DKOPI7QA.js → chunk-DGI7TKCU.js} +83 -68
- package/dist/cdn/components/chunks/chunk-EUWUDCBZ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-P32B7BFD.js → chunk-FF3I7C3C.js} +15 -15
- package/dist/cdn/components/chunks/{chunk-74AOAB4X.js → chunk-FOILAXLL.js} +6 -5
- package/dist/cdn/components/chunks/{chunk-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
- package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
- package/dist/cdn/components/chunks/{chunk-JRGM3W7I.js → chunk-I4ERDXSM.js} +9 -4
- package/dist/cdn/components/chunks/{chunk-AIS3UICU.js → chunk-J3SZBXM6.js} +11 -7
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-LVKMAHMU.js} +11 -1
- package/dist/cdn/components/chunks/{chunk-SD2WHGPF.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-A4EQSU36.js → chunk-O7PHBLH2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-PD62MBOJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MPQP4R54.js → chunk-PXF554MD.js} +10 -9
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-QXQ25SQS.js} +24 -20
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-SVGWCKWT.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-2XASWWKR.js → chunk-TFTRCIIK.js} +9 -8
- package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
- package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
- package/dist/cdn/components/chunks/{chunk-L65WUTXM.js → chunk-UYZR4JXZ.js} +12 -7
- package/dist/cdn/components/chunks/chunk-VG6NAAIV.js +1 -0
- package/dist/cdn/components/chunks/chunk-VJCNHMQZ.js +10 -0
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-OW7XKDCH.js → chunk-Z3OFIE7S.js} +16 -16
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/eun-alert.js +33 -18
- package/dist/cdn/components/eun-animate.js +14 -10
- package/dist/cdn/components/eun-badge.js +2 -2
- package/dist/cdn/components/eun-breadcrumb.js +25 -41
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +67 -65
- package/dist/cdn/components/eun-card.js +34 -19
- package/dist/cdn/components/eun-carousel.js +76 -42
- package/dist/cdn/components/eun-check-card.js +13 -6
- package/dist/cdn/components/eun-checkbox-list.js +11 -8
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +3 -3
- package/dist/cdn/components/eun-collapse.js +56 -27
- package/dist/cdn/components/eun-color-picker.js +79 -86
- package/dist/cdn/components/eun-counter.js +16 -15
- package/dist/cdn/components/eun-date-picker.js +71 -67
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +34 -20
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -5
- package/dist/cdn/components/eun-fab.js +17 -16
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +79 -22
- package/dist/cdn/components/eun-image-carousel.js +92 -47
- package/dist/cdn/components/eun-infinite-list.js +23 -11
- package/dist/cdn/components/eun-input-file.js +20 -19
- package/dist/cdn/components/eun-input-phone.js +17 -16
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +78 -29
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +27 -20
- package/dist/cdn/components/eun-pagination.js +24 -19
- package/dist/cdn/components/eun-password-strength.js +19 -11
- package/dist/cdn/components/eun-progress-bar.js +13 -5
- package/dist/cdn/components/eun-radio-card.js +16 -9
- package/dist/cdn/components/eun-radio-list.js +12 -9
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +276 -0
- package/dist/cdn/components/eun-scheduler-event-editor.js +10 -10
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +27 -27
- package/dist/cdn/components/eun-search.js +24 -25
- package/dist/cdn/components/eun-select.js +32 -31
- package/dist/cdn/components/eun-sidebar.js +40 -24
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +15 -14
- package/dist/cdn/components/eun-sliding-card.js +8 -4
- package/dist/cdn/components/eun-step.js +22 -10
- package/dist/cdn/components/eun-stepper.js +41 -30
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +24 -19
- package/dist/cdn/components/eun-tab-panel.js +11 -3
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +572 -31
- package/dist/cdn/components/eun-tag.js +13 -7
- package/dist/cdn/components/eun-textarea.js +34 -29
- package/dist/cdn/components/eun-time-picker.js +24 -21
- package/dist/cdn/components/eun-toast.js +51 -22
- package/dist/cdn/components/eun-toggle-group.js +57 -36
- package/dist/cdn/components/eun-toggle-item.js +16 -15
- package/dist/cdn/components/eun-toggle.js +12 -10
- package/dist/cdn/components/eun-toolbar.js +64 -54
- package/dist/cdn/components/eun-tooltip.js +30 -14
- package/dist/cdn/styles/breakpoints.scss +8 -0
- package/dist/cdn/styles/eunomia-grid.scss +6 -0
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +4 -3
- package/dist/cdn/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/dist/cdn/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/dist/cdn/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/dist/cdn/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/dist/cdn/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/components/action/button/button.d.ts +9 -3
- package/dist/components/action/button/button.js +10 -4
- package/dist/components/action/button/button.styles.js +61 -41
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.js +21 -15
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +3 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +5 -6
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +3 -2
- package/dist/components/action/fab/fab.styles.js +14 -13
- package/dist/components/action/link/link.d.ts +7 -3
- package/dist/components/action/link/link.js +11 -7
- package/dist/components/action/link/link.styles.js +66 -15
- package/dist/components/action/shared-styles/button-palette.styles.js +15 -15
- package/dist/components/action/toggle/toggle-group.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.js +6 -4
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.styles.js +46 -23
- package/dist/components/action/toggle/toggle-item.styles.js +13 -12
- package/dist/components/action/toggle/toggle.d.ts +2 -0
- package/dist/components/action/toggle/toggle.js +3 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle.styles.js +12 -8
- package/dist/components/alert/alert/alert.d.ts +11 -7
- package/dist/components/alert/alert/alert.js +13 -14
- package/dist/components/alert/alert/alert.styles.js +32 -15
- package/dist/components/alert/drawer/drawer.d.ts +8 -6
- package/dist/components/alert/drawer/drawer.js +12 -14
- package/dist/components/alert/drawer/drawer.styles.js +26 -10
- package/dist/components/alert/modal/modal.d.ts +13 -11
- package/dist/components/alert/modal/modal.js +17 -27
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +9 -5
- package/dist/components/alert/toast/toast.js +11 -13
- package/dist/components/alert/toast/toast.styles.js +49 -18
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.d.ts +7 -3
- package/dist/components/content/card/card.js +8 -4
- package/dist/components/content/card/card.styles.js +28 -13
- package/dist/components/content/card/image-card.d.ts +60 -6
- package/dist/components/content/card/image-card.js +120 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +2 -0
- package/dist/components/content/card/sliding-card.js +2 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +8 -8
- package/dist/components/content/collapse/collapse.d.ts +10 -1
- package/dist/components/content/collapse/collapse.js +12 -2
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +56 -18
- package/dist/components/content/description-list/description-list.d.ts +87 -0
- package/dist/components/content/description-list/description-list.js +107 -0
- package/dist/components/content/description-list/description-list.styles.d.ts +1 -0
- package/dist/components/content/description-list/description-list.styles.js +185 -0
- package/dist/components/content/icon/icon.d.ts +5 -0
- package/dist/components/content/icon/icon.js +5 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +58 -55
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- package/dist/components/content/password-strength/password-strength.d.ts +21 -6
- package/dist/components/content/password-strength/password-strength.js +37 -16
- package/dist/components/content/password-strength/password-strength.styles.js +9 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +12 -4
- package/dist/components/content/shared-styles/card-link.styles.js +4 -3
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +5 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +19 -14
- package/dist/components/content/tag/tag.d.ts +4 -0
- package/dist/components/content/tag/tag.js +6 -2
- package/dist/components/content/tag/tag.styles.js +14 -4
- package/dist/components/content/tooltip/tooltip.d.ts +3 -2
- package/dist/components/content/tooltip/tooltip.js +12 -19
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +5 -1
- package/dist/components/form/checkbox/check-card.js +5 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +21 -1
- package/dist/components/form/checkbox/checkbox-list.js +50 -17
- package/dist/components/form/checkbox/checkbox.d.ts +5 -1
- package/dist/components/form/checkbox/checkbox.js +7 -2
- package/dist/components/form/checkbox/checkbox.styles.js +5 -4
- package/dist/components/form/color-picker/color-picker.d.ts +48 -29
- package/dist/components/form/color-picker/color-picker.js +85 -71
- package/dist/components/form/color-picker/color-picker.styles.js +7 -6
- package/dist/components/form/counter/counter.d.ts +26 -19
- package/dist/components/form/counter/counter.js +64 -63
- package/dist/components/form/counter/counter.styles.js +5 -4
- package/dist/components/form/date-picker/date-picker.d.ts +64 -39
- package/dist/components/form/date-picker/date-picker.js +107 -96
- package/dist/components/form/date-picker/date-picker.styles.js +8 -5
- package/dist/components/form/input/input.d.ts +45 -40
- package/dist/components/form/input/input.js +93 -111
- package/dist/components/form/input-file/input-file.d.ts +30 -14
- package/dist/components/form/input-file/input-file.js +43 -40
- package/dist/components/form/input-file/input-file.styles.js +7 -6
- package/dist/components/form/input-phone/input-phone.d.ts +30 -7
- package/dist/components/form/input-phone/input-phone.js +54 -30
- package/dist/components/form/input-phone/input-phone.styles.js +4 -4
- package/dist/components/form/label/label.styles.js +3 -3
- package/dist/components/form/radio/radio-card.d.ts +6 -2
- package/dist/components/form/radio/radio-card.js +6 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +28 -9
- package/dist/components/form/radio/radio-list.js +61 -32
- package/dist/components/form/radio/radio.d.ts +6 -2
- package/dist/components/form/radio/radio.js +6 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- package/dist/components/form/rating/rating.d.ts +349 -0
- package/dist/components/form/rating/rating.js +665 -0
- package/dist/components/form/rating/rating.styles.d.ts +1 -0
- package/dist/components/form/rating/rating.styles.js +213 -0
- package/dist/components/form/search/search.d.ts +10 -9
- package/dist/components/form/search/search.js +29 -56
- package/dist/components/form/search/search.styles.js +5 -4
- package/dist/components/form/select/select.d.ts +32 -12
- package/dist/components/form/select/select.js +74 -59
- package/dist/components/form/select/select.styles.js +3 -2
- package/dist/components/form/shared-styles/card.styles.js +5 -4
- package/dist/components/form/shared-styles/field.styles.js +16 -6
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +10 -0
- package/dist/components/form/slider/slider.d.ts +11 -9
- package/dist/components/form/slider/slider.js +14 -14
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +5 -1
- package/dist/components/form/switch/switch.js +5 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +96 -24
- package/dist/components/form/textarea/textarea.js +206 -51
- package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
- package/dist/components/form/time-picker/time-picker-columns.js +8 -8
- package/dist/components/form/time-picker/time-picker-columns.styles.js +4 -2
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -1
- package/dist/components/form/time-picker/time-picker.d.ts +30 -10
- package/dist/components/form/time-picker/time-picker.js +81 -64
- package/dist/components/form/time-picker/time-picker.styles.js +4 -3
- package/dist/components/layout/animate/animate.d.ts +37 -15
- package/dist/components/layout/animate/animate.js +36 -16
- package/dist/components/layout/animate/animate.styles.js +11 -18
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- package/dist/components/layout/infinite-list/infinite-list.d.ts +33 -10
- package/dist/components/layout/infinite-list/infinite-list.js +115 -18
- package/dist/components/layout/infinite-list/infinite-list.styles.d.ts +3 -0
- package/dist/components/layout/infinite-list/infinite-list.styles.js +17 -5
- package/dist/components/loader/loader/loader.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +17 -13
- package/dist/components/loader/skeleton/skeleton.js +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +31 -45
- package/dist/components/navigation/breadcrumb/breadcrumb.js +111 -77
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +22 -26
- package/dist/components/navigation/carousel/carousel.d.ts +55 -11
- package/dist/components/navigation/carousel/carousel.js +101 -43
- package/dist/components/navigation/carousel/carousel.styles.js +65 -22
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +17 -13
- package/dist/components/navigation/sidebar/sidebar.js +23 -33
- package/dist/components/navigation/sidebar/sidebar.styles.js +32 -14
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.js +12 -5
- package/dist/components/navigation/stepper/stepper.styles.js +16 -5
- package/dist/components/navigation/tabs/tab/tab.d.ts +11 -0
- package/dist/components/navigation/tabs/tab/tab.js +11 -0
- package/dist/components/navigation/tabs/tab/tab.styles.js +22 -16
- package/dist/components/navigation/tabs/tab-group/tab-group.js +9 -10
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +21 -16
- package/dist/components/navigation/tabs/tab-panel/tab-panel.d.ts +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.js +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +18 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +30 -62
- package/dist/components/navigation/toolbar/toolbar.js +43 -105
- package/dist/components/navigation/toolbar/toolbar.styles.js +59 -36
- package/dist/events/table-row-click.event.d.ts +5 -4
- package/dist/events/table-row-click.event.js +10 -5
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +7 -6
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +8 -8
- package/dist/features/scheduler/scheduler/scheduler.js +24 -47
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +5 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +11 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +6 -7
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +2 -2
- package/dist/features/table/table/table-native.styles.d.ts +28 -0
- package/dist/features/table/table/table-native.styles.js +502 -0
- package/dist/features/table/table/table.d.ts +342 -294
- package/dist/features/table/table/table.js +820 -546
- package/dist/features/table/table/table.styles.js +31 -17
- package/dist/features/table/table/table.types.d.ts +11 -20
- package/dist/features/table/table/table.utils.d.ts +6 -36
- package/dist/features/table/table/table.utils.js +16 -65
- package/dist/features/table/table-action-bar/table-action-bar.d.ts +33 -16
- package/dist/features/table/table-action-bar/table-action-bar.js +15 -22
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +99 -0
- package/dist/i18n/en.js +99 -0
- package/dist/i18n/fr.js +103 -2
- package/dist/index.d.ts +6 -10
- package/dist/index.js +7 -10
- package/dist/mixins/button.mixin.js +3 -2
- package/dist/mixins/check.mixin.js +15 -15
- package/dist/mixins/disabled.mixin.d.ts +5 -0
- package/dist/mixins/disabled.mixin.js +21 -1
- package/dist/mixins/editable.mixin.js +28 -5
- package/dist/mixins/field-appearance.mixin.js +3 -2
- package/dist/mixins/form.mixin.d.ts +21 -1
- package/dist/mixins/form.mixin.js +156 -27
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +15 -15
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/animate-ssr.css +3 -2
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +196 -0
- package/dist/ssr/carousel-ssr.css +238 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +242 -0
- package/dist/ssr/collapse-ssr.css +151 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- package/dist/ssr/field-ssr.css +163 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +24 -0
- package/dist/ssr/links-ssr.css +8 -2
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +9 -1
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toggle-group-ssr.css +182 -0
- package/dist/ssr/toolbar-ssr.css +34 -1
- package/dist/utils/drag-drop.utils.js +18 -2
- package/dist/utils/dropdown-menu.utils.d.ts +2 -2
- package/dist/utils/dropdown-menu.utils.js +4 -14
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/dist/utils/media.styles.d.ts +19 -0
- package/dist/utils/media.styles.js +23 -0
- package/dist/utils/motion.utils.d.ts +40 -0
- package/dist/utils/motion.utils.js +51 -0
- package/dist/utils/theme-generator.utils.d.ts +6 -1
- package/dist/utils/theme-generator.utils.js +59 -20
- package/package.json +39 -31
- package/styles/breakpoints.scss +8 -0
- package/styles/eunomia-grid.scss +6 -0
- package/styles/themes/eunomia-theme.scss +4 -3
- package/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +0 -1
- package/dist/cdn/components/chunks/chunk-A6KGFALA.js +0 -132
- package/dist/cdn/components/chunks/chunk-CEDHJUUH.js +0 -1
- package/dist/cdn/components/chunks/chunk-D2M4BV5Y.js +0 -328
- package/dist/cdn/components/chunks/chunk-E4IS25H7.js +0 -1
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EAKYD33D.js +0 -110
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +0 -1
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-KBH5PCUO.js +0 -3
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +0 -1
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +0 -38
- package/dist/cdn/components/chunks/chunk-PCM7D3YF.js +0 -84
- package/dist/cdn/components/chunks/chunk-S2UCEWNG.js +0 -207
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +0 -1
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- package/dist/cdn/components/eun-breadcrumb-item.js +0 -93
- package/dist/cdn/components/eun-table-cell.js +0 -1
- package/dist/cdn/components/eun-table-column.js +0 -1
- package/dist/cdn/components/eun-table-header.js +0 -1
- package/dist/cdn/components/eun-table-item.js +0 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +0 -1
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +0 -77
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +0 -130
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +0 -78
- package/dist/features/table/native-table.css +0 -276
- package/dist/features/table/shared-styles/table-row.styles.d.ts +0 -7
- package/dist/features/table/shared-styles/table-row.styles.js +0 -47
- package/dist/features/table/shared-styles/table-shared.styles.d.ts +0 -23
- package/dist/features/table/shared-styles/table-shared.styles.js +0 -33
- package/dist/features/table/table-cell/table-cell.d.ts +0 -59
- package/dist/features/table/table-cell/table-cell.js +0 -73
- package/dist/features/table/table-cell/table-cell.styles.d.ts +0 -1
- package/dist/features/table/table-cell/table-cell.styles.js +0 -46
- package/dist/features/table/table-column/table-column.d.ts +0 -73
- package/dist/features/table/table-column/table-column.js +0 -89
- package/dist/features/table/table-column/table-column.styles.d.ts +0 -1
- package/dist/features/table/table-column/table-column.styles.js +0 -51
- package/dist/features/table/table-header/table-header.d.ts +0 -102
- package/dist/features/table/table-header/table-header.js +0 -165
- package/dist/features/table/table-header/table-header.styles.d.ts +0 -1
- package/dist/features/table/table-header/table-header.styles.js +0 -147
- package/dist/features/table/table-item/table-item.d.ts +0 -179
- package/dist/features/table/table-item/table-item.js +0 -291
- package/dist/features/table/table-item/table-item.styles.d.ts +0 -1
- package/dist/features/table/table-item/table-item.styles.js +0 -404
- package/dist/features/table/table-managed/table-managed.d.ts +0 -19
- package/dist/features/table/table-managed/table-managed.js +0 -128
- package/dist/features/table/table-skeleton-row/table-skeleton-row.d.ts +0 -46
- package/dist/features/table/table-skeleton-row/table-skeleton-row.js +0 -110
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.d.ts +0 -12
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +0 -65
- package/dist/mixins/table-row.mixin.d.ts +0 -37
- package/dist/mixins/table-row.mixin.js +0 -103
- package/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunks/chunk-
|
|
1
|
+
import{a as m}from"./chunks/chunk-FF3I7C3C.js";import{a as u}from"./chunks/chunk-UP4M7TER.js";import{a as c}from"./chunks/chunk-PPCHQG7P.js";import{a as d}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as t,f as i,h as n,j as a,n as s,p as o,r as p,u as l}from"./chunks/chunk-YITWLCD3.js";var v=n`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -72,11 +72,17 @@ import{a as m}from"./chunks/chunk-P32B7BFD.js";import{a as u}from"./chunks/chunk
|
|
|
72
72
|
color: var(--tag-color, var(--_fg));
|
|
73
73
|
border: var(--_borderWidth) solid var(--tag-border-color, var(--_bd));
|
|
74
74
|
border-radius: var(--tag-border-radius, var(--_radius));
|
|
75
|
-
padding: max(
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
padding: max(
|
|
76
|
+
0px,
|
|
77
|
+
calc(var(--tag-padding-block, var(--_padV)) - var(--_borderWidth))
|
|
78
|
+
)
|
|
79
|
+
max(
|
|
80
|
+
0px,
|
|
81
|
+
calc(var(--tag-padding-inline, var(--_padH)) - var(--_borderWidth))
|
|
82
|
+
);
|
|
83
|
+
font-size: var(--tag-font-size, var(--_fontSize));
|
|
78
84
|
gap: var(--tag-gap, var(--_gap));
|
|
79
|
-
font-weight: var(--eun-font-weight-m, 500);
|
|
85
|
+
font-weight: var(--tag-font-weight, var(--eun-font-weight-m, 500));
|
|
80
86
|
--icon-color: var(--tag-color, var(--_fg));
|
|
81
87
|
}
|
|
82
88
|
|
|
@@ -87,7 +93,7 @@ import{a as m}from"./chunks/chunk-P32B7BFD.js";import{a as u}from"./chunks/chunk
|
|
|
87
93
|
slot[name="icon"].hidden {
|
|
88
94
|
display: none;
|
|
89
95
|
}
|
|
90
|
-
`,
|
|
96
|
+
`,f=[m,v];var h="eun-tag",e=class extends l{constructor(){super(...arguments);this.color="medium";this.appearance="default";this.hideIcon=!1;this.iconOnly=!1;this.rounded=!1;this.fixedColor=!1;this.uppercase=!1;this.handleIconSlotChange=()=>{this.requestUpdate()}}getIconName(){return u(this.icon,this.severity,"severity")}shouldHideIcon(){return this.hideIcon?!0:this.iconSlotEls.length>0||this.iconOnly||this.severity?!1:!this.icon}render(){let r=this.shouldHideIcon();return o`
|
|
91
97
|
<div id="tag">
|
|
92
98
|
<slot
|
|
93
99
|
name="icon"
|
|
@@ -104,4 +110,4 @@ import{a as m}from"./chunks/chunk-P32B7BFD.js";import{a as u}from"./chunks/chunk
|
|
|
104
110
|
</slot>
|
|
105
111
|
<slot></slot>
|
|
106
112
|
</div>
|
|
107
|
-
`}};e.styles=
|
|
113
|
+
`}};e.styles=f,t([a({reflect:!0,useDefault:!0})],e.prototype,"color",2),t([a({reflect:!0})],e.prototype,"severity",2),t([a({reflect:!0,useDefault:!0})],e.prototype,"appearance",2),t([a()],e.prototype,"icon",2),t([a({reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,attribute:"hide-icon"})],e.prototype,"hideIcon",2),t([a({type:Boolean,attribute:"icon-only",reflect:!0})],e.prototype,"iconOnly",2),t([a({type:Boolean,reflect:!0})],e.prototype,"rounded",2),t([a({type:Boolean,reflect:!0,attribute:"fixed-color"})],e.prototype,"fixedColor",2),t([a({type:Boolean,reflect:!0})],e.prototype,"uppercase",2),t([s({slot:"icon"})],e.prototype,"iconSlotEls",2),e=t([i(h)],e);export{e as EunomiaTag,h as EunomiaTagTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as U}from"./chunks/chunk-UVHVQRPT.js";import{a as Y}from"./chunks/chunk-L74LXUGL.js";import{a as X}from"./chunks/chunk-UYZR4JXZ.js";import{a as W}from"./chunks/chunk-GVS6IUKC.js";import{a as q}from"./chunks/chunk-BO3JOEWM.js";import{a as S,c as K,d as j,e as G,f as C}from"./chunks/chunk-TLBXTBMM.js";import{a as H}from"./chunks/chunk-YYCEPZUN.js";import{a as $,b as y,c as N,d as A,e as O,f as R,g as B}from"./chunks/chunk-GDBPWZN6.js";import{a as z}from"./chunks/chunk-3BMACIDO.js";import{a as v}from"./chunks/chunk-PPCHQG7P.js";import{a as P}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as V}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as c,f as I,h as D,j as u,k as E,l as w,p as g,r as m,u as _}from"./chunks/chunk-YITWLCD3.js";var ae=D`
|
|
2
2
|
#field {
|
|
3
3
|
resize: vertical;
|
|
4
4
|
min-height: 6rem;
|
|
@@ -153,15 +153,18 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
153
153
|
#char-count[data-exceeded] {
|
|
154
154
|
color: var(--_errorColor);
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
157
|
-
`);if(
|
|
156
|
+
`,J=[X,ae];var se="eun-textarea",F={bold:"STRONG",italic:"EM",underline:"U"},T={bold:()=>document.createElement("strong"),italic:()=>document.createElement("em"),underline:()=>document.createElement("u")},ce={b:"bold",i:"italic",u:"underline"};function de(o){return!(o.ctrlKey||o.metaKey)||o.altKey?null:ce[o.key.toLowerCase()]??null}function Q(o,l){let e=l;for(;e&&e.parentNode!==o;)e=e.parentNode;return e}function b(o){let l=o.getRootNode();return l instanceof ShadowRoot&&typeof l.getSelection=="function"?l.getSelection():window.getSelection()}function k(o){let l=b(o);if(!l||!l.rangeCount)return null;let e=l.getRangeAt(0);return e.collapsed||!o.contains(e.commonAncestorContainer)?null:e}function oe(o,l){let e=document.createRange();e.selectNodeContents(l),o.removeAllRanges(),o.addRange(e)}function Z(o){let l=b(o);if(!l||!l.rangeCount)return null;let e=l.getRangeAt(0);return!e.collapsed||!o.contains(e.commonAncestorContainer)?null:e}function ue(o){return!o.bold&&!o.italic&&!o.underline&&!o.color&&!o.highlight}var x="\u200B";function he(o){let l=[];if(o.bold&&l.push(T.bold()),o.italic&&l.push(T.italic()),o.underline&&l.push(T.underline()),o.color){let e=y(o.color),t=document.createElement("span");t.setAttribute("data-color",o.color),t.style.color=e?.text??"inherit",l.push(t)}if(o.highlight){let e=y(o.highlight),t=document.createElement("span");t.setAttribute("data-highlight",o.highlight),t.style.backgroundColor=e?.highlight??"transparent",l.push(t)}if(!l.length)return null;for(let e=0;e<l.length-1;e+=1)l[e].appendChild(l[e+1]);return l[l.length-1].appendChild(document.createTextNode(x)),l[0]}function pe(o,l){let e=l;for(;e.parentNode&&e.parentNode!==o&&e.parentNode.childNodes.length===1;)e=e.parentNode;return e}function ee(o,l){let e=pe(o,l),t=e.parentNode,i=Array.from(t.childNodes).indexOf(e);t.removeChild(e);let n=document.createRange();return n.setStart(t,i),n.collapse(!0),n}function te(o,l,e,t){let i=l,n=e;for(;;){let r=i.parentNode;if(!r||r===o)break;let a=i.nodeType===Node.TEXT_NODE?i.textContent?.length??0:i.childNodes.length;if(!(t?n===0:n===a))break;let h=Array.from(r.childNodes).indexOf(i);i=r,n=t?h:h+1}return{container:i,offset:n}}function le(o,l){let e=te(o,l.startContainer,l.startOffset,!0),t=te(o,l.endContainer,l.endOffset,!1);l.setStart(e.container,e.offset),l.setEnd(t.container,t.offset)}function re(o,l){o.querySelectorAll("*").forEach(e=>{if(!l(e))return;let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}})}function ge(o,l,e){let t=b(o),i=k(o);if(!t||!i)return!1;le(o,i);let n=F[l],r=i.extractContents();re(r,d=>d.tagName===n);let a=r;if(e){let d=T[l]();d.appendChild(r),a=d}return i.insertNode(a),oe(t,a),!0}function fe(o,l,e){let t=b(o),i=k(o);if(!t||!i)return!1;le(o,i);let n=l==="color"?"color":"highlight",r=i.extractContents();re(r,d=>d.tagName==="SPAN"&&d.hasAttribute(`data-${n}`));let a=r;if(e){let d=y(e),h=document.createElement("span");h.setAttribute(`data-${n}`,e),h.style.cssText=l==="color"?`color: ${d?.text??"inherit"}`:`background-color: ${d?.highlight??"transparent"}`,h.appendChild(r),a=h}return i.insertNode(a),oe(t,a),!0}function ie(o){let l=b(o);if(!l||!l.anchorNode||!o.contains(l.anchorNode))return[];let e=new Set,t=l.anchorNode;for(;t&&t!==o;){if(t instanceof HTMLElement){let i=Object.entries(F).find(([,n])=>n===t.tagName)?.[0];i&&e.add(i)}t=t.parentNode}return Array.from(e)}function ne(o,l){let e=b(o);if(!e||!e.anchorNode||!o.contains(e.anchorNode))return null;let t=e.anchorNode;for(;t&&t!==o;){if(t instanceof HTMLElement){let i=l==="color"?t.getAttribute("data-color"):t.getAttribute("data-highlight");if(i)return i}t=t.parentNode}return null}var be=z(G(_)),me=V(W(q(j(U(K(be)))))),s=class extends me{constructor(){super(...arguments);this.formatting=!1;this.formatToolbarLabel="Text formatting";this.formatBoldLabel="Bold";this.formatItalicLabel="Italic";this.formatUnderlineLabel="Underline";this.formatAlignLabel="Text alignment";this.formatAlignStartLabel="Align left";this.formatAlignCenterLabel="Center";this.formatAlignEndLabel="Align right";this.formatAlignJustifyLabel="Justify";this.formatTextColorLabel="Text color";this.formatHighlightLabel="Highlight";this.formatColorClearLabel="Default";this.colorLabels=Object.fromEntries($.map(e=>[e.name,e.label]));this.autocomplete="off";this.openPicker=null;this.activeTextColor=null;this.activeHighlight=null;this.previousActiveFormats=[];this.pendingMarks={bold:!1,italic:!1,underline:!1,color:null,highlight:null};this.pendingCaretNode=null;this.toolbarFocusIndex=0;this.checkLocalValidators=()=>this.formatting?this.checkEditableValidators():Y(this.fieldEl,["valueMissing","tooShort","tooLong"]);this.handleEditableInput=()=>{let e=this.fieldEl;if(!(e instanceof HTMLDivElement))return;let t=B(e);this.lastSyncedValue=t,this.value=t,this.resizeEditableField(),this.dispatchEvent(new H(this.value)),this.syncToolbarToSelection()};this.handleEditableBeforeInput=e=>{if(this.maxlength===void 0)return;let t=this.fieldEl;if(!(t instanceof HTMLDivElement)||!e.inputType.startsWith("insert"))return;let i=b(t);!(i&&!i.isCollapsed)&&(t.textContent?.length??0)>=this.maxlength&&e.preventDefault()};this.handleEditablePaste=e=>{let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;e.preventDefault();let i=e.clipboardData?.getData("text/plain")??"";if(!i)return;let n=b(t);if(!n||!n.rangeCount)return;let r=n.getRangeAt(0);r.deleteContents();let a=i.split(`
|
|
157
|
+
`);if(a.length===1){let d=document.createTextNode(a[0]);r.insertNode(d),r.setStartAfter(d),r.collapse(!0)}else{let d=Q(t,r.startContainer),h=r.cloneRange();d&&h.setEndAfter(d.lastChild??d);let p=h.extractContents();r.insertNode(document.createTextNode(a[0]));let f=d;for(let M=1;M<a.length;M+=1){let L=document.createElement("p");L.textContent=a[M],f?.after(L),f=L}f?.appendChild(p),f&&r.selectNodeContents(f),r.collapse(!1)}n.removeAllRanges(),n.addRange(r),this.handleEditableInput()};this.handleEditableKeydown=e=>{let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;let i=de(e);if(i){e.preventDefault();let f=ie(t).includes(i);this.applyFormat(i,!f);return}if(e.key!=="Enter")return;e.preventDefault();let n=b(t);if(!n||!n.rangeCount)return;let r=n.getRangeAt(0);r.deleteContents();let a=Q(t,r.startContainer);if(!a)return;a.hasChildNodes()||a.appendChild(document.createElement("br"));let d=r.cloneRange();d.setEndAfter(a.lastChild??a);let h=d.extractContents();a.hasChildNodes()||a.appendChild(document.createElement("br"));let p=document.createElement("p");p.appendChild(h),p.hasChildNodes()||p.appendChild(document.createElement("br")),a.after(p),r.selectNodeContents(p),r.collapse(!0),n.removeAllRanges(),n.addRange(r),this.handleEditableInput()};this.handleSelectionChange=()=>{this.cleanupAbandonedPendingMarker(),this.syncToolbarToSelection()};this.handleOutsideClick=e=>{e.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("color-picker"))||this.closeColorPicker()};this.handleToolbarKeydown={handleEvent:e=>{let t=this.toolbarControls().filter(a=>!a.hasAttribute("disabled")),i=t.indexOf(e.target);if(i===-1)return;let n=t[i];if((e.key==="Enter"||e.key===" ")&&n.closest("#align-toolbar")){e.preventDefault(),e.stopPropagation(),n.click();return}let r;switch(e.key){case"ArrowRight":r=(i+1)%t.length;break;case"ArrowLeft":r=(i-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),e.stopPropagation(),t[r].focus()},capture:!0}}get defaultValue(){return super.defaultValue}set defaultValue(e){super.defaultValue=e}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick,{capture:!0}),clearTimeout(this.toolbarRovingTimer),super.disconnectedCallback?.()}firstUpdated(){this.formatting&&this.fieldEl instanceof HTMLDivElement?(R(this.fieldEl,this.value??""),this.lastSyncedValue=this.value,this.resizeEditableField()):this.resizeToContent()}updated(e){if(super.updated(e),e.has("editing")&&this.editing&&this.fieldEl?.focus(),!this.formatting){(e.has("value")||e.has("editing"))&&this.resizeToContent();return}this.scheduleToolbarRoving(),(e.has("editing")&&this.editing||e.has("formatting")&&this.formatting||e.has("value")&&this.value!==this.lastSyncedValue)&&this.fieldEl instanceof HTMLDivElement&&this.fieldEl instanceof HTMLDivElement&&(R(this.fieldEl,this.value??""),this.lastSyncedValue=this.value),(e.has("value")||e.has("editing"))&&this.resizeEditableField()}checkEditableValidators(){let e=A(this.value??"");return this.minlength!==void 0&&e>0&&e<this.minlength?{validity:{tooShort:!0},message:this.validationDictionary.validation.tooShort(this.minlength,e)}:this.maxlength!==void 0&&e>this.maxlength?{validity:{tooLong:!0},message:this.validationDictionary.validation.tooLong(this.maxlength,e)}:{validity:{}}}get hostTabStop(){return!1}getFocusAnchor(){return this.fieldEl??void 0}focus(){super.focus?.(),this.fieldEl?.focus()}resizeToContent(){let e=this.fieldEl;if(!e||this.rows!==void 0)return;e.style.height="";let t=e.clientHeight;e.style.height="0px";let i=e.scrollHeight;e.style.height=i>t?`${i}px`:""}resizeEditableField(){let e=this.fieldEl;if(!e||!(e instanceof HTMLDivElement))return;if(this.rows===void 0){e.style.height="",e.style.overflowY="";return}let t=parseFloat(getComputedStyle(e).lineHeight)||20;e.style.height=`${t*this.rows}px`,e.style.overflowY="auto"}handleInput(e){this.value=e.target.value,this.resizeToContent(),this.dispatchEvent(new H(this.value))}syncToolbarToSelection(){if(!(!this.formatting||!this.fieldEl)){if(this.toolbarEl){let e=ie(this.fieldEl);this.previousActiveFormats=e,this.toolbarEl.value=e}this.activeTextColor=ne(this.fieldEl,"color"),this.activeHighlight=ne(this.fieldEl,"highlight")}}cleanupAbandonedPendingMarker(){let e=this.fieldEl,t=this.pendingCaretNode;if(!t||!(e instanceof HTMLDivElement))return;let i=b(e),n=i?.rangeCount?i.getRangeAt(0):null;n&&n.collapsed&&n.startContainer===t||(t.data===x?ee(e,t):t.data=t.data.replace(x,""),this.pendingCaretNode=null,this.pendingMarks={bold:!1,italic:!1,underline:!1,color:null,highlight:null})}updatePendingMarker(e,t){let i=t,n=this.pendingCaretNode,r=!!n&&t.startContainer===n;if(r&&n.data===x?(i=ee(e,n),this.pendingCaretNode=null):r&&(n.data=n.data.replace(x,""),this.pendingCaretNode=null),ue(this.pendingMarks))return;let a=he(this.pendingMarks);if(!a)return;i.insertNode(a);let h=document.createTreeWalker(a,NodeFilter.SHOW_TEXT).nextNode();if(!h)return;this.pendingCaretNode=h;let p=b(e);if(!p)return;let f=document.createRange();f.setStart(h,h.data.length),f.collapse(!0),p.removeAllRanges(),p.addRange(f)}applyFormat(e,t){let i=this.fieldEl;if(!(i instanceof HTMLDivElement))return;if(k(i)){if(!ge(i,e,t))return;this.handleEditableInput(),this.updateComplete.then(()=>{i.focus(),this.syncToolbarToSelection()});return}let r=Z(i);r&&(this.pendingMarks={...this.pendingMarks,[e]:t},this.updatePendingMarker(i,r),i.focus(),this.syncToolbarToSelection())}handleToolbarChange(e){e.stopPropagation();let i=e.target.value;Object.keys(F).forEach(n=>{let r=this.previousActiveFormats.includes(n),a=i.includes(n);r!==a&&this.applyFormat(n,a)}),this.previousActiveFormats=i}handleAlignChange(e){e.stopPropagation();let t=this.fieldEl;if(!(t instanceof HTMLDivElement))return;let[i]=e.target.value;t.style.textAlign=i==="start"?"":i,this.handleEditableInput(),this.updateComplete.then(()=>t.focus())}toggleColorPicker(e){if(this.openPicker===e){this.closeColorPicker();return}this.openPicker=e,document.addEventListener("click",this.handleOutsideClick,{capture:!0}),this.updateComplete.then(()=>{let t=this.colorSwatches();(t.find(i=>i.ariaChecked==="true")??t[0])?.focus()})}colorSwatches(){return Array.from(this.shadowRoot?.querySelectorAll(".color-picker-panel .color-swatch")??[])}handleColorPickerKeydown(e){let i=e.currentTarget.previousElementSibling;if(e.key==="Escape"||e.key==="Tab"){e.key==="Escape"&&e.preventDefault(),this.closeColorPicker(),i?.focus();return}let n=this.colorSwatches(),r=n.indexOf(this.shadowRoot?.activeElement),a;switch(e.key){case"ArrowRight":case"ArrowDown":a=(r+1)%n.length;break;case"ArrowLeft":case"ArrowUp":a=(r-1+n.length)%n.length;break;case"Home":a=0;break;case"End":a=n.length-1;break;default:return}e.preventDefault(),n[a]?.focus()}closeColorPicker(){this.openPicker!==null&&(this.openPicker=null,document.removeEventListener("click",this.handleOutsideClick,{capture:!0}))}selectColor(e,t){let i=this.fieldEl;if(i instanceof HTMLDivElement)if(k(i))fe(i,e,t)&&this.handleEditableInput();else{let r=Z(i);r&&(this.pendingMarks={...this.pendingMarks,[e]:t},this.updatePendingMarker(i,r),this.syncToolbarToSelection())}this.closeColorPicker(),this.updateComplete.then(()=>this.fieldEl?.focus())}toolbarControls(){return Array.from(this.shadowRoot?.querySelectorAll("#toolbar-groups eun-toggle-item, #toolbar-groups .color-picker-trigger")??[])}scheduleToolbarRoving(){clearTimeout(this.toolbarRovingTimer),this.toolbarRovingTimer=setTimeout(()=>this.applyToolbarRoving())}applyToolbarRoving(){if(this.disabled||this.readonly)return;let e=this.toolbarControls(),t=Math.min(this.toolbarFocusIndex,e.length-1);e.forEach((i,n)=>{i.setAttribute("tabindex",n===t?"0":"-1")})}handleToolbarFocusIn(e){let t=this.toolbarControls().indexOf(e.target);t!==-1&&t!==this.toolbarFocusIndex&&(this.toolbarFocusIndex=t,this.applyToolbarRoving())}renderToolbar(){let e=this.disabled||this.readonly,t=N(this.value??"").align;return g`
|
|
158
158
|
<div
|
|
159
159
|
id="toolbar-groups"
|
|
160
|
+
role="toolbar"
|
|
161
|
+
aria-label=${this.formatToolbarLabel}
|
|
160
162
|
@mousedown=${i=>i.preventDefault()}
|
|
163
|
+
@focusin=${this.handleToolbarFocusIn}
|
|
164
|
+
@keydown=${this.handleToolbarKeydown}
|
|
161
165
|
>
|
|
162
166
|
<eun-toggle-group
|
|
163
167
|
id="toolbar"
|
|
164
|
-
aria-label=${this.formatToolbarLabel}
|
|
165
168
|
?disabled=${e}
|
|
166
169
|
@eunchange=${this.handleToolbarChange}
|
|
167
170
|
>
|
|
@@ -213,15 +216,15 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
213
216
|
${this.renderColorPicker("color",this.formatTextColorLabel,"format_color_text")}
|
|
214
217
|
${this.renderColorPicker("highlight",this.formatHighlightLabel,"format_color_fill")}
|
|
215
218
|
</div>
|
|
216
|
-
`}renderColorPicker(e,t,i){let
|
|
219
|
+
`}renderColorPicker(e,t,i){let n=this.disabled||this.readonly,r=this.openPicker===e,a=e==="color"?this.activeTextColor:this.activeHighlight,d=a?y(a):void 0,h=e==="color"?d?.text:d?.highlight;return g`
|
|
217
220
|
<div class="color-picker">
|
|
218
221
|
<button
|
|
219
222
|
type="button"
|
|
220
223
|
class="color-picker-trigger"
|
|
221
|
-
aria-haspopup="
|
|
224
|
+
aria-haspopup="menu"
|
|
222
225
|
aria-expanded=${r?"true":"false"}
|
|
223
226
|
aria-label=${t}
|
|
224
|
-
?disabled=${
|
|
227
|
+
?disabled=${n}
|
|
225
228
|
style=${h?`--_border-indicator-color: ${h}`:""}
|
|
226
229
|
@click=${()=>this.toggleColorPicker(e)}
|
|
227
230
|
>
|
|
@@ -232,35 +235,37 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
232
235
|
class="color-picker-panel"
|
|
233
236
|
role="menu"
|
|
234
237
|
aria-label=${t}
|
|
235
|
-
@keydown=${
|
|
238
|
+
@keydown=${this.handleColorPickerKeydown}
|
|
236
239
|
>
|
|
237
240
|
<button
|
|
238
241
|
type="button"
|
|
239
242
|
class="color-swatch clear"
|
|
240
243
|
role="menuitemradio"
|
|
241
|
-
|
|
244
|
+
tabindex="-1"
|
|
245
|
+
aria-checked=${a===null?"true":"false"}
|
|
242
246
|
aria-label=${this.formatColorClearLabel}
|
|
243
247
|
@click=${()=>this.selectColor(e,null)}
|
|
244
248
|
></button>
|
|
245
|
-
${
|
|
249
|
+
${$.map(p=>g`
|
|
246
250
|
<button
|
|
247
251
|
type="button"
|
|
248
252
|
class="color-swatch"
|
|
249
253
|
role="menuitemradio"
|
|
250
|
-
|
|
254
|
+
tabindex="-1"
|
|
255
|
+
aria-checked=${a===p.name?"true":"false"}
|
|
251
256
|
aria-label=${this.colorLabels[p.name]??p.label}
|
|
252
257
|
style="--_swatch-bg: ${e==="color"?p.text:p.highlight}"
|
|
253
258
|
@click=${()=>this.selectColor(e,p.name)}
|
|
254
259
|
></button>
|
|
255
260
|
`)}
|
|
256
261
|
</div>
|
|
257
|
-
`:
|
|
262
|
+
`:m}
|
|
258
263
|
</div>
|
|
259
264
|
`}renderCharCount(){let e=this.formatting?A(this.value??""):this.value?.length??0,t=this.maxlength!==void 0&&e>this.maxlength;return g`
|
|
260
265
|
<span id="char-count" ?data-exceeded=${t}
|
|
261
266
|
>${e}/${this.maxlength}</span
|
|
262
267
|
>
|
|
263
|
-
`}renderReadonlyDisplay(){let e=!!this.value?.trim().length,t=this.formatting?
|
|
268
|
+
`}renderReadonlyDisplay(){let e=!!this.value?.trim().length,t=this.formatting?N(this.value??"").align:void 0;return g`
|
|
264
269
|
<div
|
|
265
270
|
id="readonly-display"
|
|
266
271
|
role="button"
|
|
@@ -270,9 +275,9 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
270
275
|
@click=${this.startEdit}
|
|
271
276
|
@keydown=${i=>(i.key==="Enter"||i.key===" ")&&this.startEdit()}
|
|
272
277
|
>
|
|
273
|
-
${e&&this.formatting?
|
|
278
|
+
${e&&this.formatting?O(this.value):g`<span
|
|
274
279
|
class=${P({"plain-value":!0,empty:!e})}
|
|
275
|
-
>${e?this.value:this.emptyValueLabel}</span
|
|
280
|
+
>${e?this.value:this.emptyValueLabel??this.dictionary.common.noValue}</span
|
|
276
281
|
>`}
|
|
277
282
|
</div>
|
|
278
283
|
`}renderNativeField(e){return g`
|
|
@@ -287,9 +292,9 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
287
292
|
?required=${this.required}
|
|
288
293
|
minlength=${v(this.minlength)}
|
|
289
294
|
maxlength=${v(this.maxlength)}
|
|
290
|
-
aria-invalid=${
|
|
295
|
+
aria-invalid=${this.showError}
|
|
291
296
|
aria-label=${v(this.label)}
|
|
292
|
-
aria-describedby=${e||
|
|
297
|
+
aria-describedby=${e||m}
|
|
293
298
|
@input=${this.handleInput}
|
|
294
299
|
@select=${this.handleSelectionChange}
|
|
295
300
|
@keyup=${this.handleSelectionChange}
|
|
@@ -303,10 +308,10 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
303
308
|
tabindex=${this.disabled?"-1":"0"}
|
|
304
309
|
role="textbox"
|
|
305
310
|
aria-multiline="true"
|
|
306
|
-
aria-required=${this.required?"true":
|
|
307
|
-
aria-invalid=${
|
|
311
|
+
aria-required=${this.required?"true":m}
|
|
312
|
+
aria-invalid=${this.showError}
|
|
308
313
|
aria-label=${v(this.label)}
|
|
309
|
-
aria-describedby=${e||
|
|
314
|
+
aria-describedby=${e||m}
|
|
310
315
|
@beforeinput=${this.handleEditableBeforeInput}
|
|
311
316
|
@input=${this.handleEditableInput}
|
|
312
317
|
@paste=${this.handleEditablePaste}
|
|
@@ -316,13 +321,13 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
316
321
|
@click=${this.handleSelectionChange}
|
|
317
322
|
@focus=${this.handleSelectionChange}
|
|
318
323
|
></div>
|
|
319
|
-
${!this.value&&this.placeholder?g`<span id="editable-placeholder">${this.placeholder}</span>`:
|
|
324
|
+
${!this.value&&this.placeholder?g`<span id="editable-placeholder">${this.placeholder}</span>`:m}
|
|
320
325
|
`}renderField(e){let t=[e?"description":null,this.maxlength!==void 0?"char-count":null].filter(i=>!!i).join(" ");return g`
|
|
321
|
-
${this.formatting?this.renderToolbar():
|
|
326
|
+
${this.formatting?this.renderToolbar():m}
|
|
322
327
|
<div id="field-wrapper">
|
|
323
328
|
${this.formatting?this.renderEditableField(t):this.renderNativeField(t)}
|
|
324
329
|
</div>
|
|
325
|
-
${
|
|
330
|
+
${S(this.readonlyAvailable,()=>g`
|
|
326
331
|
<div id="edit-actions">
|
|
327
332
|
<eun-button
|
|
328
333
|
class="confirm"
|
|
@@ -331,7 +336,7 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
331
336
|
rounded
|
|
332
337
|
type="button"
|
|
333
338
|
@click=${this.confirmEdit}
|
|
334
|
-
>${this.confirmLabel}</eun-button
|
|
339
|
+
>${this.confirmLabel??this.dictionary.common.save}</eun-button
|
|
335
340
|
>
|
|
336
341
|
<eun-button
|
|
337
342
|
class="cancel"
|
|
@@ -341,18 +346,18 @@ import{a as q}from"./chunks/chunk-E4IS25H7.js";import{a as W}from"./chunks/chunk
|
|
|
341
346
|
rounded
|
|
342
347
|
type="button"
|
|
343
348
|
@click=${this.cancelEdit}
|
|
344
|
-
>${this.cancelLabel}</eun-button
|
|
349
|
+
>${this.cancelLabel??this.dictionary.common.cancel}</eun-button
|
|
345
350
|
>
|
|
346
351
|
</div>
|
|
347
352
|
`)}
|
|
348
353
|
`}render(){let e=this.readonlyAvailable&&!this.editing,t=this.renderDescription(),i=this.maxlength!==void 0&&!e;return g`
|
|
349
354
|
<div id="wrapper">
|
|
350
355
|
${this.renderFormLabels(e?void 0:"field")}
|
|
351
|
-
${e?this.renderReadonlyDisplay():this.renderField(t!==
|
|
352
|
-
${
|
|
356
|
+
${e?this.renderReadonlyDisplay():this.renderField(t!==m)}
|
|
357
|
+
${S(t!==m||i,()=>g`
|
|
353
358
|
<div id="description-row">
|
|
354
|
-
${t} ${i?this.renderCharCount():
|
|
359
|
+
${t} ${i?this.renderCharCount():m}
|
|
355
360
|
</div>
|
|
356
361
|
`)}
|
|
357
362
|
</div>
|
|
358
|
-
`}};s.styles=[
|
|
363
|
+
`}};s.styles=[J,C.base,C.errorMessages,C.hintMessages],c([u({attribute:"default-value"})],s.prototype,"defaultValue",1),c([u()],s.prototype,"placeholder",2),c([u({type:Number,reflect:!0})],s.prototype,"rows",2),c([u({type:Boolean,reflect:!0})],s.prototype,"formatting",2),c([u({attribute:"format-toolbar-label"})],s.prototype,"formatToolbarLabel",2),c([u({attribute:"format-bold-label"})],s.prototype,"formatBoldLabel",2),c([u({attribute:"format-italic-label"})],s.prototype,"formatItalicLabel",2),c([u({attribute:"format-underline-label"})],s.prototype,"formatUnderlineLabel",2),c([u({attribute:"format-align-label"})],s.prototype,"formatAlignLabel",2),c([u({attribute:"format-align-start-label"})],s.prototype,"formatAlignStartLabel",2),c([u({attribute:"format-align-center-label"})],s.prototype,"formatAlignCenterLabel",2),c([u({attribute:"format-align-end-label"})],s.prototype,"formatAlignEndLabel",2),c([u({attribute:"format-align-justify-label"})],s.prototype,"formatAlignJustifyLabel",2),c([u({attribute:"format-text-color-label"})],s.prototype,"formatTextColorLabel",2),c([u({attribute:"format-highlight-label"})],s.prototype,"formatHighlightLabel",2),c([u({attribute:"format-color-clear-label"})],s.prototype,"formatColorClearLabel",2),c([u({attribute:!1})],s.prototype,"colorLabels",2),c([u()],s.prototype,"autocomplete",2),c([u({type:Number})],s.prototype,"minlength",2),c([u({type:Number})],s.prototype,"maxlength",2),c([u({attribute:"empty-value-label"})],s.prototype,"emptyValueLabel",2),c([u({attribute:"confirm-label"})],s.prototype,"confirmLabel",2),c([u({attribute:"cancel-label"})],s.prototype,"cancelLabel",2),c([E()],s.prototype,"openPicker",2),c([E()],s.prototype,"activeTextColor",2),c([E()],s.prototype,"activeHighlight",2),c([w("#field")],s.prototype,"fieldEl",2),c([w("#toolbar")],s.prototype,"toolbarEl",2),s=c([I(se)],s);export{s as EunomiaTextarea,se as EunomiaTextareaTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as ee,b as $,c as te,d as ie,e as oe,f as re,g as E,h as D,i as ne,j as I,k as ae,m as h,o as H,p as se,q as le,r as ue,s as de}from"./chunks/chunk-36KLGY6U.js";import"./chunks/chunk-VJCNHMQZ.js";import{a as W}from"./chunks/chunk-LK5BJ4SH.js";import{a as Z}from"./chunks/chunk-UYZR4JXZ.js";import{b as J,c as T}from"./chunks/chunk-624VJYNA.js";import{a as A}from"./chunks/chunk-LYYQAALT.js";import{a as Q,b as X}from"./chunks/chunk-WW4BTWMH.js";import{a as G}from"./chunks/chunk-GVS6IUKC.js";import{a as Y}from"./chunks/chunk-BO3JOEWM.js";import{b as B,c as j,d as U,e as q,f as C}from"./chunks/chunk-TLBXTBMM.js";import{a as P}from"./chunks/chunk-YYCEPZUN.js";import{a as N}from"./chunks/chunk-3BMACIDO.js";import{b as K}from"./chunks/chunk-BKZGTCMF.js";import"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-SD2H5UDZ.js";import{a as _}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as R}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as r,f as z,h as x,j as s,k as M,l as b,p as d,r as S,u as V}from"./chunks/chunk-YITWLCD3.js";var ve=x`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: 100%;
|
|
@@ -18,8 +18,8 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
18
18
|
outline: 1px solid transparent;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
transition:
|
|
21
|
-
border-color
|
|
22
|
-
outline-color
|
|
21
|
+
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
22
|
+
outline-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
23
23
|
}
|
|
24
24
|
:host(:not([aria-readonly="true"]))
|
|
25
25
|
#field-wrapper:hover:not(:has(:disabled)) {
|
|
@@ -110,7 +110,8 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
110
110
|
color: var(--_iconColor);
|
|
111
111
|
outline: 2px solid transparent;
|
|
112
112
|
cursor: pointer;
|
|
113
|
-
transition: outline
|
|
113
|
+
transition: outline var(--eun-duration-m, 200ms)
|
|
114
|
+
var(--eun-easing-out, ease-out);
|
|
114
115
|
}
|
|
115
116
|
#clock-trigger:hover:not(:disabled) {
|
|
116
117
|
color: var(--_textColor);
|
|
@@ -179,7 +180,7 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
179
180
|
#modal-time .modal-footer {
|
|
180
181
|
padding: var(--eun-space-m);
|
|
181
182
|
}
|
|
182
|
-
`,
|
|
183
|
+
`,ce=[Z,ve],be=x`
|
|
183
184
|
@supports (anchor-name: --a) {
|
|
184
185
|
#clock-popover:popover-open {
|
|
185
186
|
position-try-fallbacks: --eun-time-picker-above;
|
|
@@ -191,7 +192,7 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
191
192
|
bottom: calc(anchor(top) + 4px);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
`,
|
|
195
|
+
`,me=be;var ge=x`
|
|
195
196
|
.tp-list {
|
|
196
197
|
display: flex;
|
|
197
198
|
flex-direction: column;
|
|
@@ -213,7 +214,8 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
213
214
|
font-variant-numeric: tabular-nums;
|
|
214
215
|
text-align: start;
|
|
215
216
|
cursor: pointer;
|
|
216
|
-
transition: background-color
|
|
217
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
218
|
+
var(--eun-easing-default, ease);
|
|
217
219
|
}
|
|
218
220
|
.tp-list-item:hover:not(:disabled) {
|
|
219
221
|
background-color: var(
|
|
@@ -241,29 +243,29 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
241
243
|
cursor: not-allowed;
|
|
242
244
|
opacity: 0.4;
|
|
243
245
|
}
|
|
244
|
-
`,
|
|
246
|
+
`,pe=ge;var ye=1440;function he(u){let{format:g,hour:e,minute:t,locale:i,disabled:n=!1,onPick:c}=u,m=Math.max(1,Math.round(u.stepMinutes)),k=new Intl.DateTimeFormat(i,{hour:"numeric",minute:"2-digit",hourCycle:g===12?"h12":"h23"}),f=[];for(let a=0;a<ye;a+=m){let l=Math.floor(a/60),p=a%60;f.push({hour24:l,minute:p,text:k.format(new Date(2e3,0,1,l,p)),selected:l===e&&p===t})}let F=f.findIndex(a=>a.selected),O=F===-1?0:F,v=(a,l)=>{let p=a.querySelectorAll('[role="option"]'),w=Math.min(Math.max(l,0),p.length-1);p[w]?.focus()},fe=a=>{let l=a.currentTarget,p=Array.from(l.querySelectorAll('[role="option"]')),w=p.indexOf(document.activeElement),y=w===-1?O:w;switch(a.key){case"ArrowDown":a.preventDefault(),v(l,y+1);break;case"ArrowUp":a.preventDefault(),v(l,y-1);break;case"PageDown":a.preventDefault(),v(l,y+5);break;case"PageUp":a.preventDefault(),v(l,y-5);break;case"Home":a.preventDefault(),v(l,0);break;case"End":a.preventDefault(),v(l,p.length-1);break;case"Enter":case" ":{a.preventDefault();let L=f[y];L&&c(L.hour24,L.minute);break}default:break}};return d`
|
|
245
247
|
<div
|
|
246
248
|
class="tp-list"
|
|
247
249
|
role="listbox"
|
|
248
250
|
aria-label=${u.ariaLabel??"Time"}
|
|
249
251
|
aria-disabled=${n?"true":"false"}
|
|
250
|
-
@keydown=${
|
|
252
|
+
@keydown=${fe}
|
|
251
253
|
>
|
|
252
254
|
${f.map((a,l)=>d`
|
|
253
255
|
<button
|
|
254
256
|
type="button"
|
|
255
257
|
role="option"
|
|
256
|
-
class=${
|
|
257
|
-
tabindex=${n?"-1":l===
|
|
258
|
+
class=${_({"tp-list-item":!0,selected:a.selected})}
|
|
259
|
+
tabindex=${n?"-1":l===O?"0":"-1"}
|
|
258
260
|
aria-selected=${a.selected?"true":"false"}
|
|
259
261
|
?disabled=${n}
|
|
260
|
-
@click=${()=>
|
|
262
|
+
@click=${()=>c(a.hour24,a.minute)}
|
|
261
263
|
>
|
|
262
264
|
${a.text}
|
|
263
265
|
</button>
|
|
264
266
|
`)}
|
|
265
267
|
</div>
|
|
266
|
-
`}var
|
|
268
|
+
`}var xe="eun-time-picker",Me=N(q(V)),Se=R(W(G(Y(U(j(Me)))))),o=class extends Se{constructor(){super();this.stepMinute=1;this.mobileMode="wheel";this.panelMode="columns";this.listStepMinutes=30;this.noAnimation=!1;this.applyLabel="Apply";this.hourPlaceholder="hh";this.minutePlaceholder="mm";this.hideTimezoneLabel=!1;this.isOpen=!1;this.handleImplicitSubmission=e=>{let t=this.internals.form,i=e.composedPath()[0];!t||this.isOpen||!(i instanceof Element&&i.matches(".segment"))||!Q(e)||(e.preventDefault(),X(t))};this.isModalOpen=!1;this.stagingValue=null;this.segments={hour:"",minute:"",period:""};this.checkLocalValidators=()=>{let e=this.resolvedHourFormat();if(ke(this.segments)&&!D(this.segments,e))return{validity:{badInput:!0},message:this.dictionary.validation.invalidTime};if(this.value){let{hour:t,minute:i}=h(this.value,this.timezone),n=ae({hour:t,minute:i},I(this.minTime),I(this.maxTime));if(!n.valid)return n.violation==="min"?{validity:{rangeUnderflow:!0},message:this.dictionary.timePicker.mustBeAtOrAfter(this.minTime??"")}:{validity:{rangeOverflow:!0},message:this.dictionary.timePicker.mustBeAtOrBefore(this.maxTime??"")}}return{validity:{}}};this.handleHourColumnChange=e=>{let{minute:t}=h(this.displaySource,this.timezone);this.commitAdjustment(e,t)};this.handleMinuteColumnChange=e=>{let{hour:t}=h(this.displaySource,this.timezone);this.commitAdjustment(t,e)};this.handlePeriodColumnChange=e=>{let{hour:t,minute:i}=h(this.displaySource,this.timezone),{hour:n}=$(t);this.commitAdjustment(te(n,e),i)};this.handleTriggerClick=()=>{if(!(this.disabled||this.readonly)){if(this.resetStaging(),this.panelMode!=="list"&&this.isMobileViewport()){this.isModalOpen=!0;return}this.updateComplete.then(()=>{let e=this.popoverEl;if(!e)return;let t=this.popoverAnimation!==void 0;this.popoverAnimation?.cancel(),this.popoverAnimation=void 0;let i=!e.matches(":popover-open");i&&e.showPopover(),(i||t)&&this.playPopoverOpenAnimation(e)})}};this.handlePopoverToggle=e=>{if(e.newState==="open"){this.isOpen=!0,this.fieldWrapperEl&&this.popoverEl&&this.anchorFloatingElement(this.fieldWrapperEl,this.popoverEl,{forceFallback:A}),this.observeAnchorVisibility(this.fieldWrapperEl,()=>this.closePopover()),this.updateComplete.then(()=>this.panelMode==="list"?this.focusListSelection():this.focusFirstSpinbutton());return}this.isOpen=!1,this.unanchorFloatingElement(),this.unobserveAnchorVisibility(),this.triggerEl?.focus()};this.handleModalConfirm=()=>{this.commitStaged(),this.isModalOpen=!1};this.handleModalCancel=()=>{this.isModalOpen=!1};this.handleListPick=(e,t)=>{this.commitAdjustment(e,t),this.closePopover()};this.handlePeriodSegmentClick=()=>{this.setPeriodSegment(ie(this.segments.period||"AM"))};this.handlePeriodSegmentKeydown=e=>{switch(e.key){case"ArrowUp":case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.handlePeriodSegmentClick();break;case"a":case"A":e.preventDefault(),this.setPeriodSegment("AM");break;case"p":case"P":e.preventDefault(),this.setPeriodSegment("PM");break;case"ArrowLeft":e.preventDefault(),this.focusPreviousSegment("period");break;case"ArrowRight":e.preventDefault(),this.focusNextSegment("period");break;default:break}};this.addEventListener("keydown",this.handleImplicitSubmission)}get defaultValue(){return super.defaultValue}set defaultValue(e){super.defaultValue=e}willUpdate(e){let t=e.has("segments")||e.has("minTime")||e.has("maxTime");if(e.has("value")||e.has("timezone")||e.has("hourFormat")||e.has("locale")){let i=this.resolvedHourFormat();if(this.value){let n=h(this.value,this.timezone);this.segments=E(n.hour,n.minute,i)}else this.segments=E(null,null,i);t=!0}t&&this.checkValidity(this.value??null),super.willUpdate(e)}updated(e){super.updated(e),B(e)&&this.setAttribute("aria-invalid",String(this.showError))}get hostTabStop(){return!1}getFocusAnchor(){return this.firstSegmentEl??void 0}focus(){super.focus?.(),this.firstSegmentEl?.focus()}isMobileViewport(){return window.matchMedia(K("tablet")).matches}resolvedHourFormat(){return ee(this.locale,this.hourFormat)}get displaySource(){return this.stagingValue??this.value??new Date}resetStaging(){this.stagingValue=this.value??null}commitStaged(){this.value=this.stagingValue,this.dispatchEvent(new P(this.value))}commitAdjustment(e,t){let i=H(this.displaySource,this.timezone,e,t);this.stagingValue=i,!this.isModalOpen&&(this.value=i,this.dispatchEvent(new P(this.value)))}commitTypedTime(e,t){this.value=H(this.value??new Date,this.timezone,e,t),this.dispatchEvent(new P(this.value)),(this.isOpen||this.isModalOpen)&&this.resetStaging()}commitSegmentGroupIfComplete(e){let t=this.resolvedHourFormat();if(!ne(e,t))return;let i=D(e,t);i&&this.commitTypedTime(i.hour,i.minute)}popoverAnimationDuration(e){return this.noAnimation||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:J(e,"--time-picker-panel-transition-duration","m",200)}playPopoverOpenAnimation(e){e.style.removeProperty("pointer-events");let t=this.popoverAnimationDuration(e);t!==0&&(this.popoverAnimation=e.animate([{opacity:0,transform:"scaleY(0.01)"},{opacity:1,transform:"scaleY(1)"}],{duration:t,easing:T(e),fill:"forwards"}))}closePopover(){let e=this.popoverEl;this.popoverAnimation?.cancel(),this.popoverAnimation=void 0,e?.matches(":popover-open")&&this.playPopoverCloseAnimation(e)}playPopoverCloseAnimation(e){e.style.pointerEvents="none";let t=this.popoverAnimationDuration(e);if(t===0){e.hidePopover();return}let i=e.animate([{opacity:1,transform:"scaleY(1)"},{opacity:0,transform:"scaleY(0.01)"}],{duration:t,easing:T(e),fill:"forwards"});this.popoverAnimation=i,i.finished.then(()=>{this.popoverAnimation===i&&(this.popoverAnimation=void 0),e.hidePopover()}).catch(()=>{})}focusFirstSpinbutton(){(this.isModalOpen?this.shadowRoot:this.popoverEl)?.querySelector('[role="spinbutton"]')?.focus({preventScroll:!0})}focusListSelection(){let e=this.popoverEl?.querySelector('[role="option"][aria-selected="true"]')??this.popoverEl?.querySelector('[role="option"]');e?.focus({preventScroll:!0}),e?.scrollIntoView({block:"center",behavior:this.noAnimation?"instant":"smooth"})}visibleSegmentOrder(){let e=oe(this.resolvedHourFormat());return re(this.locale).filter(t=>e.includes(t))}focusPreviousSegment(e){let t=this.visibleSegmentOrder(),i=t.indexOf(e);i<=0||this.focusSegment(t[i-1])}focusNextSegment(e){let t=this.visibleSegmentOrder(),i=t.indexOf(e);i===-1||i>=t.length-1||this.focusSegment(t[i+1])}focusSegment(e){this.shadowRoot?.querySelector(`.segment-${e}`)?.focus()}handleSegmentInput(e,t){let i=e.target,n=i.value.replace(/\D/g,"").slice(0,2);i.value=n;let c={...this.segments,[t]:n};this.segments=c,n.length===2&&this.focusNextSegment(t),this.commitSegmentGroupIfComplete(c)}handleSegmentKeydown(e,t){let i=e.target;e.key==="Backspace"&&i.value===""||e.key==="ArrowLeft"?(e.preventDefault(),this.focusPreviousSegment(t)):e.key==="ArrowRight"?(e.preventDefault(),this.focusNextSegment(t)):e.key==="ArrowUp"?(e.preventDefault(),this.adjustSegment(t,1)):e.key==="ArrowDown"&&(e.preventDefault(),this.adjustSegment(t,-1))}adjustSegment(e,t){let i=this.resolvedHourFormat(),n=e==="hour"?i===12?{min:1,max:12}:{min:0,max:23}:{min:0,max:59},c=Number(this.segments[e]),m;if(this.segments[e]===""||Number.isNaN(c)){let f=h(this.displaySource,this.timezone);m=e==="hour"?i===12?$(f.hour).hour:f.hour:f.minute}else m=c+t,m>n.max?m=n.min:m<n.min&&(m=n.max);let k={...this.segments,[e]:String(m).padStart(2,"0")};this.segments=k,this.commitSegmentGroupIfComplete(k)}setPeriodSegment(e){if(this.disabled||this.readonly)return;let t={...this.segments,period:e};this.segments=t,this.commitSegmentGroupIfComplete(t)}renderSegment(e){return e==="period"?d`
|
|
267
269
|
<button
|
|
268
270
|
type="button"
|
|
269
271
|
class="segment segment-period"
|
|
@@ -296,10 +298,11 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
296
298
|
<div
|
|
297
299
|
class="segment-group"
|
|
298
300
|
role="group"
|
|
299
|
-
aria-label=${this.label??
|
|
301
|
+
aria-label=${this.label??this.dictionary.timePicker.time}
|
|
302
|
+
aria-describedby=${this.description?.length?"description":S}
|
|
300
303
|
>
|
|
301
304
|
${e.map((t,i)=>{let n=e[i-1];return d`
|
|
302
|
-
${i===0?
|
|
305
|
+
${i===0?S:d`<span class="segment-divider" aria-hidden="true"
|
|
303
306
|
>${n==="hour"&&t==="minute"||n==="minute"&&t==="hour"?":":" "}</span
|
|
304
307
|
>`}
|
|
305
308
|
${this.renderSegment(t)}
|
|
@@ -308,7 +311,7 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
308
311
|
<button
|
|
309
312
|
type="button"
|
|
310
313
|
id="clock-trigger"
|
|
311
|
-
aria-label=${this.
|
|
314
|
+
aria-label=${this.clockLabel??this.dictionary.timePicker.openClock}
|
|
312
315
|
aria-haspopup=${this.panelMode==="list"?"listbox":"dialog"}
|
|
313
316
|
aria-expanded=${this.isOpen||this.isModalOpen?"true":"false"}
|
|
314
317
|
?disabled=${this.disabled}
|
|
@@ -317,7 +320,7 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
317
320
|
<eun-icon name="access_time" size="16"></eun-icon>
|
|
318
321
|
</button>
|
|
319
322
|
</div>
|
|
320
|
-
`}renderTimezoneLabel(){if(this.hideTimezoneLabel||!this.timezone||
|
|
323
|
+
`}renderTimezoneLabel(){if(this.hideTimezoneLabel||!this.timezone||se(this.timezone))return S;let e=le(this.value??new Date,this.timezone,{locale:this.locale});return d`<p id="timezone-label">${e}</p>`}renderPanelContent(e){let t=this.resolvedHourFormat(),i=h(this.displaySource,this.timezone),n=i.hour<12?"AM":"PM";return ue({visual:e,format:t,hour:i.hour,minute:i.minute,period:n,stepMinute:this.stepMinute,disabled:this.disabled,noAnimation:this.noAnimation,ariaLabelGroup:this.dictionary.timePicker.time,ariaLabelHour:this.dictionary.timePicker.hour,ariaLabelMinute:this.dictionary.timePicker.minute,ariaLabelPeriod:this.dictionary.timePicker.amPm,onHourChange:this.handleHourColumnChange,onMinuteChange:this.handleMinuteColumnChange,onPeriodChange:this.handlePeriodColumnChange})}renderListPanelContent(){let e=this.resolvedHourFormat(),t=h(this.displaySource,this.timezone);return he({format:e,hour:t.hour,minute:t.minute,locale:this.locale,stepMinutes:this.listStepMinutes,disabled:this.disabled,ariaLabel:this.label??this.dictionary.timePicker.time,onPick:this.handleListPick})}formatModalPreview(){if(!this.stagingValue)return this.dictionary.timePicker.selectATime;let e=this.resolvedHourFormat();return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"2-digit",hourCycle:e===12?"h12":"h23",timeZone:this.timezone}).format(this.stagingValue)}render(){return d`
|
|
321
324
|
<div id="wrapper">
|
|
322
325
|
${this.renderFormLabels("clock-trigger")} ${this.renderField()}
|
|
323
326
|
${this.renderTimezoneLabel()} ${this.renderDescription()}
|
|
@@ -333,7 +336,7 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
333
336
|
?open=${this.isModalOpen}
|
|
334
337
|
.closeable=${!1}
|
|
335
338
|
confirm-label=${this.applyLabel}
|
|
336
|
-
cancel-label=${this.cancelLabel}
|
|
339
|
+
cancel-label=${this.cancelLabel??this.dictionary.common.cancel}
|
|
337
340
|
aria-label=${this.label??this.dictionary.timePicker.selectATime}
|
|
338
341
|
@eunconfirm=${this.handleModalConfirm}
|
|
339
342
|
@euncancel=${this.handleModalCancel}
|
|
@@ -342,18 +345,18 @@ import{a as G,b as T,c as W,d as Z,e as J,f as Q,g as $,h as E,i as X,j as D,k a
|
|
|
342
345
|
${this.isModalOpen?d`
|
|
343
346
|
<div id="modal-time-heading">${this.formatModalPreview()}</div>
|
|
344
347
|
${this.renderPanelContent(this.mobileMode==="wheel"?"wheel":"buttons")}
|
|
345
|
-
`:
|
|
348
|
+
`:S}
|
|
346
349
|
<div slot="footer" class="modal-footer">
|
|
347
350
|
<eun-button
|
|
348
351
|
appearance="ghost"
|
|
349
352
|
id="cancel"
|
|
350
353
|
@click=${()=>this.modalEl?.cancel()}
|
|
351
354
|
>
|
|
352
|
-
${this.cancelLabel}
|
|
355
|
+
${this.cancelLabel??this.dictionary.common.cancel}
|
|
353
356
|
</eun-button>
|
|
354
357
|
<eun-button id="confirm" @click=${()=>this.modalEl?.confirm()}>
|
|
355
358
|
${this.applyLabel}
|
|
356
359
|
</eun-button>
|
|
357
360
|
</div>
|
|
358
361
|
</eun-modal>
|
|
359
|
-
`}};o.styles=[
|
|
362
|
+
`}};o.styles=[ce,...A?[]:[me],de,pe,C.base,C.errorMessages,C.hintMessages],r([s()],o.prototype,"timezone",2),r([s({type:Number,attribute:"hour-format"})],o.prototype,"hourFormat",2),r([s({type:Number,attribute:"step-minute"})],o.prototype,"stepMinute",2),r([s({attribute:"min-time"})],o.prototype,"minTime",2),r([s({attribute:"max-time"})],o.prototype,"maxTime",2),r([s({attribute:"mobile-mode"})],o.prototype,"mobileMode",2),r([s({attribute:"panel-mode"})],o.prototype,"panelMode",2),r([s({type:Number,attribute:"list-step-minutes"})],o.prototype,"listStepMinutes",2),r([s({type:Boolean,reflect:!0,attribute:"no-animation"})],o.prototype,"noAnimation",2),r([s({attribute:"apply-label"})],o.prototype,"applyLabel",2),r([s({attribute:"cancel-label"})],o.prototype,"cancelLabel",2),r([s({attribute:"clock-label"})],o.prototype,"clockLabel",2),r([s({attribute:"hour-placeholder"})],o.prototype,"hourPlaceholder",2),r([s({attribute:"minute-placeholder"})],o.prototype,"minutePlaceholder",2),r([s({type:Boolean,attribute:"hide-timezone-label"})],o.prototype,"hideTimezoneLabel",2),r([s({attribute:"default-value",converter:{fromAttribute:e=>we(e),toAttribute:e=>e?Pe(e):null}})],o.prototype,"defaultValue",1),r([M()],o.prototype,"isOpen",2),r([M()],o.prototype,"isModalOpen",2),r([M()],o.prototype,"stagingValue",2),r([M()],o.prototype,"segments",2),r([b("#clock-trigger")],o.prototype,"triggerEl",2),r([b("#clock-popover")],o.prototype,"popoverEl",2),r([b("#field-wrapper")],o.prototype,"fieldWrapperEl",2),r([b("#modal-time")],o.prototype,"modalEl",2),r([b(".segment")],o.prototype,"firstSegmentEl",2),o=r([z(xe)],o);function ke(u){return u.hour!==""||u.minute!==""||u.period!==""}function we(u){if(!u)return null;let g=new Date(u);return Number.isNaN(g.getTime())?null:g}function Pe(u){return u?u.toISOString():""}export{o as EunomiaTimePicker,xe as EunomiaTimePickerTagName};
|