@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.
- package/README.md +28 -6
- package/dist/angular/forms.d.ts +80 -0
- package/dist/angular/forms.js +267 -0
- package/dist/cdn/components/chunks/chunk-2XPIGFBD.js +1 -0
- package/dist/cdn/components/chunks/chunk-5IUNSTM3.js +1 -0
- package/dist/cdn/components/chunks/chunk-7HXPLZ7C.js +1 -0
- package/dist/cdn/components/chunks/{chunk-J3SZBXM6.js → chunk-A2NO4RSF.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-Q34EQ5HZ.js → chunk-A623JJXJ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-Y3HOIL64.js → chunk-AW7PU43S.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-FF3I7C3C.js → chunk-DWTNRFWW.js} +1 -3
- package/dist/cdn/components/chunks/chunk-FPNWPMHA.js +1 -0
- package/dist/cdn/components/chunks/chunk-GMWUHGNI.js +319 -0
- package/dist/cdn/components/chunks/{chunk-FQUWHNQT.js → chunk-GXOEPXDW.js} +1 -1
- package/dist/cdn/components/chunks/chunk-HXESKTK2.js +1 -0
- package/dist/cdn/components/chunks/chunk-JDUWKPHW.js +46 -0
- package/dist/cdn/components/chunks/{chunk-D3JJBHXN.js → chunk-JLKCBPD2.js} +2 -2
- package/dist/cdn/components/chunks/chunk-M6ZJHL4Q.js +1 -0
- package/dist/cdn/components/chunks/{chunk-TN3HGHQO.js → chunk-MDSUMP3O.js} +4 -4
- package/dist/cdn/components/chunks/chunk-MSQWOKBB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-3UUZM7X2.js → chunk-NPXRQHUN.js} +3 -3
- package/dist/cdn/components/chunks/chunk-OB7DEGNX.js +1 -0
- package/dist/cdn/components/chunks/{chunk-JANNHW4Q.js → chunk-PADHCLBG.js} +4 -4
- package/dist/cdn/components/chunks/chunk-QMXE3KLT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QNWKRPOW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KQUUMZ7U.js → chunk-RZF7QQDX.js} +7 -7
- package/dist/cdn/components/chunks/chunk-SCAP7J35.js +1 -0
- package/dist/cdn/components/chunks/chunk-TISMX7UL.js +1 -0
- package/dist/cdn/components/chunks/chunk-TWLI2ZOT.js +1 -0
- package/dist/cdn/components/chunks/chunk-W4VCWRY7.js +210 -0
- package/dist/cdn/components/chunks/{chunk-SZZRMJ65.js → chunk-WEG3KO6T.js} +3 -3
- package/dist/cdn/components/chunks/chunk-WP6ZYBAC.js +1 -0
- package/dist/cdn/components/chunks/{chunk-HGX6GPHM.js → chunk-XCBQ4CKH.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-3UW2LJ7T.js → chunk-XZ3LFOQP.js} +2 -2
- package/dist/cdn/components/eun-alert.js +1 -1
- package/dist/cdn/components/eun-animate.js +92 -180
- package/dist/cdn/components/eun-breadcrumb.js +4 -4
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +188 -115
- package/dist/cdn/components/eun-card.js +1 -1
- package/dist/cdn/components/eun-carousel.js +36 -28
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +2 -2
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +11 -15
- package/dist/cdn/components/eun-collapse.js +21 -10
- package/dist/cdn/components/eun-color-picker.js +32 -32
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +83 -79
- package/dist/cdn/components/eun-description-list.js +1 -1
- package/dist/cdn/components/eun-divider.js +9 -8
- package/dist/cdn/components/eun-drawer.js +8 -6
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +4 -4
- package/dist/cdn/components/eun-fab.js +1 -1
- package/dist/cdn/components/eun-image-card.js +2 -2
- package/dist/cdn/components/eun-image-carousel.js +55 -29
- package/dist/cdn/components/eun-infinite-list.js +2 -2
- package/dist/cdn/components/eun-input-file.js +3 -3
- package/dist/cdn/components/eun-input-phone.js +6 -6
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +1 -1
- package/dist/cdn/components/eun-link.js +18 -329
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +9 -7
- package/dist/cdn/components/eun-nav-menu.js +363 -0
- package/dist/cdn/components/eun-pagination.js +4 -4
- package/dist/cdn/components/eun-password-strength.js +2 -2
- package/dist/cdn/components/eun-progress-bar.js +1 -1
- package/dist/cdn/components/eun-radio-card.js +4 -4
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +9 -9
- package/dist/cdn/components/eun-scheduler-event-editor.js +113 -77
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +137 -79
- package/dist/cdn/components/eun-search.js +6 -6
- package/dist/cdn/components/eun-select.js +1 -1
- package/dist/cdn/components/eun-sidebar.js +23 -14
- package/dist/cdn/components/eun-slider.js +2 -2
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +2 -2
- package/dist/cdn/components/eun-stepper.js +11 -12
- package/dist/cdn/components/eun-switch.js +2 -2
- package/dist/cdn/components/eun-tab-group.js +1 -1
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +13 -10
- package/dist/cdn/components/eun-tag.js +1 -1
- package/dist/cdn/components/eun-textarea.js +4 -4
- package/dist/cdn/components/eun-time-picker.js +28 -25
- package/dist/cdn/components/eun-toast.js +8 -8
- package/dist/cdn/components/eun-toggle-group.js +8 -2
- package/dist/cdn/components/eun-toggle-item.js +8 -2
- package/dist/cdn/components/eun-toggle.js +4 -1
- package/dist/cdn/components/eun-toolbar.js +114 -36
- package/dist/cdn/components/eun-tooltip.js +1 -1
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/components/action/button/button.styles.js +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +5 -4
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.js +1 -0
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +4 -4
- package/dist/components/action/link/link.d.ts +2 -1
- package/dist/components/action/link/link.js +2 -1
- package/dist/components/action/link/link.styles.d.ts +40 -1
- package/dist/components/action/link/link.styles.js +83 -60
- package/dist/components/action/shared-styles/button-palette.styles.js +1 -1
- package/dist/components/action/toggle/toggle-group.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.js +1 -0
- package/dist/components/action/toggle/toggle-group.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle-group.styles.js +9 -2
- package/dist/components/action/toggle/toggle-item.styles.js +8 -2
- package/dist/components/action/toggle/toggle.d.ts +1 -0
- package/dist/components/action/toggle/toggle.js +1 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +1 -0
- package/dist/components/action/toggle/toggle.styles.js +5 -1
- package/dist/components/alert/drawer/drawer.d.ts +14 -13
- package/dist/components/alert/drawer/drawer.js +20 -28
- package/dist/components/alert/modal/modal.d.ts +14 -13
- package/dist/components/alert/modal/modal.js +20 -28
- package/dist/components/alert/modal/modal.styles.js +1 -1
- package/dist/components/alert/toast/toast.d.ts +5 -5
- package/dist/components/alert/toast/toast.js +9 -10
- package/dist/components/alert/toast/toast.styles.js +3 -3
- package/dist/components/content/card/image-card.styles.js +1 -1
- package/dist/components/content/chip/chip.d.ts +7 -9
- package/dist/components/content/chip/chip.js +11 -14
- package/dist/components/content/chip/chip.styles.js +1 -5
- package/dist/components/content/collapse/collapse.d.ts +5 -0
- package/dist/components/content/collapse/collapse.js +7 -0
- package/dist/components/content/collapse/collapse.styles.d.ts +3 -0
- package/dist/components/content/collapse/collapse.styles.js +13 -1
- package/dist/components/content/description-list/description-list.styles.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +60 -13
- package/dist/components/content/image-carousel/image-carousel.js +100 -22
- package/dist/components/content/image-carousel/image-carousel.styles.js +32 -6
- package/dist/components/content/password-strength/password-strength.styles.js +1 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/content/shared-styles/card-link.styles.js +1 -1
- package/dist/components/content/shared-styles/tone-surface.styles.js +1 -3
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +3 -1
- package/dist/components/form/checkbox/checkbox-list.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +1 -1
- package/dist/components/form/color-picker/color-picker.d.ts +28 -3
- package/dist/components/form/color-picker/color-picker.js +53 -7
- package/dist/components/form/counter/counter.js +1 -1
- package/dist/components/form/counter/counter.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-month-grid.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +50 -13
- package/dist/components/form/date-picker/date-picker.js +178 -43
- package/dist/components/form/input/input.js +1 -4
- package/dist/components/form/input-file/input-file.styles.js +2 -2
- package/dist/components/form/input-phone/input-phone.js +4 -3
- package/dist/components/form/label/label.styles.js +1 -1
- package/dist/components/form/radio/radio-card.styles.js +2 -2
- package/dist/components/form/radio/radio.styles.js +1 -1
- package/dist/components/form/rating/rating.js +3 -5
- package/dist/components/form/rating/rating.styles.js +2 -2
- package/dist/components/form/search/search.d.ts +1 -7
- package/dist/components/form/search/search.js +2 -12
- package/dist/components/form/shared-styles/field.styles.js +2 -2
- package/dist/components/form/slider/slider.styles.js +1 -1
- package/dist/components/form/switch/switch.styles.js +1 -1
- package/dist/components/form/textarea/textarea.js +1 -5
- package/dist/components/form/textarea/textarea.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker-columns.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-columns.js +64 -15
- package/dist/components/form/time-picker/time-picker-columns.styles.js +5 -1
- package/dist/components/form/time-picker/time-picker-list.d.ts +4 -1
- package/dist/components/form/time-picker/time-picker-list.js +15 -8
- package/dist/components/form/time-picker/time-picker.d.ts +11 -2
- package/dist/components/form/time-picker/time-picker.js +22 -8
- package/dist/components/layout/animate/animate.d.ts +35 -17
- package/dist/components/layout/animate/animate.js +27 -14
- package/dist/components/layout/animate/animate.styles.d.ts +2 -1
- package/dist/components/layout/animate/animate.styles.js +107 -179
- package/dist/components/layout/divider/divider.d.ts +1 -0
- package/dist/components/layout/divider/divider.js +2 -1
- package/dist/components/layout/divider/divider.styles.js +7 -6
- package/dist/components/layout/infinite-list/infinite-list.styles.js +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +23 -14
- package/dist/components/navigation/carousel/carousel.js +39 -27
- package/dist/components/navigation/carousel/carousel.styles.js +16 -8
- package/dist/components/navigation/nav-menu/nav-menu.d.ts +201 -0
- package/dist/components/navigation/nav-menu/nav-menu.js +673 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.d.ts +1 -0
- package/dist/components/navigation/nav-menu/nav-menu.styles.js +352 -0
- package/dist/components/navigation/pagination/pagination.d.ts +3 -0
- package/dist/components/navigation/pagination/pagination.styles.js +2 -2
- package/dist/components/navigation/sidebar/sidebar.d.ts +8 -10
- package/dist/components/navigation/sidebar/sidebar.js +12 -15
- package/dist/components/navigation/sidebar/sidebar.styles.js +13 -4
- package/dist/components/navigation/stepper/step.styles.js +2 -2
- package/dist/components/navigation/stepper/stepper.d.ts +24 -13
- package/dist/components/navigation/stepper/stepper.js +36 -23
- package/dist/components/navigation/stepper/stepper.styles.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.js +1 -1
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +121 -20
- package/dist/components/navigation/toolbar/toolbar.js +176 -45
- package/dist/components/navigation/toolbar/toolbar.styles.js +113 -28
- package/dist/events/editor-state-change.event.d.ts +28 -0
- package/dist/events/editor-state-change.event.js +22 -0
- package/dist/events/event-cancel.event.d.ts +20 -0
- package/dist/events/event-cancel.event.js +17 -0
- package/dist/events/period-change.event.d.ts +14 -6
- package/dist/events/period-change.event.js +9 -6
- package/dist/features/scheduler/calendar/calendar.d.ts +52 -20
- package/dist/features/scheduler/calendar/calendar.js +84 -36
- package/dist/features/scheduler/calendar/calendar.styles.js +5 -2
- package/dist/features/scheduler/scheduler/scheduler.d.ts +69 -4
- package/dist/features/scheduler/scheduler/scheduler.js +172 -47
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +18 -20
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +29 -38
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +102 -18
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +249 -112
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +11 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.d.ts +9 -1
- package/dist/features/scheduler/shared/scheduler-event-popover.js +77 -42
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +14 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +3 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +53 -46
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-month-view.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +13 -7
- package/dist/features/scheduler/shared/scheduler-year-view.d.ts +6 -5
- package/dist/features/scheduler/shared/scheduler-year-view.js +11 -7
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +57 -3
- package/dist/features/scheduler/shared/scheduler.types.d.ts +5 -9
- package/dist/features/scheduler/shared/scheduler.utils.d.ts +61 -0
- package/dist/features/scheduler/shared/scheduler.utils.js +78 -4
- package/dist/features/table/table/table-native.styles.js +8 -4
- package/dist/features/table/table/table.d.ts +2 -1
- package/dist/features/table/table/table.js +2 -1
- package/dist/features/table/table/table.styles.js +6 -4
- package/dist/i18n/en.d.ts +17 -0
- package/dist/i18n/en.js +17 -0
- package/dist/i18n/fr.js +17 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/jsx.d.ts +48 -6
- package/dist/mixins/anchor-position.mixin.d.ts +17 -0
- package/dist/mixins/anchor-position.mixin.js +45 -7
- package/dist/mixins/button.mixin.js +2 -1
- package/dist/mixins/check.mixin.js +14 -5
- package/dist/mixins/dialog-surface.mixin.d.ts +1 -1
- package/dist/mixins/dialog-surface.mixin.js +5 -5
- package/dist/mixins/form.mixin.js +33 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -0
- package/dist/mixins/localizable.mixin.js +9 -2
- package/dist/mixins/radio.mixin.js +14 -5
- package/dist/mixins/validators.mixin.js +4 -3
- package/dist/react.d.ts +59 -0
- package/dist/react.js +42 -0
- package/dist/ssr/animate-ssr.css +35 -0
- package/dist/ssr/breadcrumb-ssr.css +3 -3
- package/dist/ssr/button-ssr.css +8 -2
- package/dist/ssr/card-ssr.css +1 -1
- package/dist/ssr/carousel-ssr.css +15 -4
- package/dist/ssr/chip-ssr.css +3 -3
- package/dist/ssr/collapse-ssr.css +2 -2
- package/dist/ssr/description-list-ssr.css +1 -1
- package/dist/ssr/divider-ssr.css +23 -0
- package/dist/ssr/field-ssr.css +245 -42
- package/dist/ssr/image-carousel-ssr.css +2 -4
- package/dist/ssr/links-ssr.css +17 -3
- package/dist/ssr/nav-menu-ssr.css +82 -0
- package/dist/ssr/overlay-ssr.css +4 -0
- package/dist/ssr/scheduler-ssr.css +182 -0
- package/dist/ssr/stepper-ssr.css +136 -0
- package/dist/ssr/table-ssr.css +7 -4
- package/dist/ssr/tag-ssr.css +1 -1
- package/dist/ssr/toolbar-ssr.css +7 -5
- package/dist/utils/css-length.utils.d.ts +14 -0
- package/dist/utils/css-length.utils.js +32 -0
- package/dist/utils/form-validation.utils.d.ts +36 -0
- package/dist/utils/form-validation.utils.js +113 -0
- package/dist/utils/implicit-submission.utils.js +2 -14
- package/dist/utils/interactive-content.utils.d.ts +10 -0
- package/dist/utils/interactive-content.utils.js +43 -0
- package/dist/utils/popover.utils.js +3 -2
- package/dist/utils/scroll-lock.utils.d.ts +9 -1
- package/dist/utils/scroll-lock.utils.js +21 -2
- package/dist/utils/theme-generator.utils.d.ts +1 -0
- package/dist/utils/theme-generator.utils.js +23 -10
- package/dist/utils/validity.utils.d.ts +18 -4
- package/dist/utils/validity.utils.js +74 -4
- package/package.json +34 -3
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +2 -2
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +116 -8
- package/dist/cdn/components/chunks/chunk-4DRU3IYJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-647ISUF4.js +0 -1
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +0 -1
- package/dist/cdn/components/chunks/chunk-E6UOI36Q.js +0 -1
- package/dist/cdn/components/chunks/chunk-GNAUNTS5.js +0 -1
- package/dist/cdn/components/chunks/chunk-IJJ67C66.js +0 -1
- package/dist/cdn/components/chunks/chunk-J7ETIRSK.js +0 -1
- package/dist/cdn/components/chunks/chunk-JGV7LHEI.js +0 -1
- package/dist/cdn/components/chunks/chunk-L74LXUGL.js +0 -1
- package/dist/cdn/components/chunks/chunk-MY6ORZJR.js +0 -46
- package/dist/cdn/components/chunks/chunk-QWTFP56P.js +0 -1
- package/dist/cdn/components/chunks/chunk-SFX2LQ4K.js +0 -205
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +0 -1
- package/dist/utils/boolean.utils.d.ts +0 -14
- package/dist/utils/boolean.utils.js +0 -20
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import{g as r,h as o}from"./chunk-YITWLCD3.js";function t(e){return o`
|
|
2
|
+
${e} {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
--_blockLinkFlex: 1;
|
|
8
|
+
--_blockBoxSizing: border-box;
|
|
9
|
+
--_blockMinWidth: 0;
|
|
10
|
+
--_blockLabelOverflow: hidden;
|
|
11
|
+
--_blockLabelTextOverflow: ellipsis;
|
|
12
|
+
--_blockRowFocusBackground: var(
|
|
13
|
+
--link-background-focus,
|
|
14
|
+
var(--link-background, transparent)
|
|
15
|
+
);
|
|
16
|
+
--_blockRowFocusOutline: var(--_focusOutline);
|
|
17
|
+
--_blockRowFocusOffset: 2px;
|
|
18
|
+
--_blockLabelFocusBackground: none;
|
|
19
|
+
--_blockLabelFocusOutline: transparent;
|
|
20
|
+
}
|
|
21
|
+
`}var i=o`
|
|
22
|
+
:host {
|
|
23
|
+
--_blockLinkFlex: 0 1 auto;
|
|
24
|
+
--_blockBoxSizing: content-box;
|
|
25
|
+
--_blockMinWidth: auto;
|
|
26
|
+
--_blockLabelOverflow: visible;
|
|
27
|
+
--_blockLabelTextOverflow: clip;
|
|
28
|
+
--_blockRowFocusBackground: var(--link-background, transparent);
|
|
29
|
+
--_blockRowFocusOutline: transparent;
|
|
30
|
+
--_blockRowFocusOffset: 0px;
|
|
31
|
+
--_blockLabelFocusBackground: var(
|
|
32
|
+
--link-background-focus,
|
|
33
|
+
var(--link-background, transparent)
|
|
34
|
+
);
|
|
35
|
+
--_blockLabelFocusOutline: var(--_focusOutline);
|
|
36
|
+
--_color: var(--link-color, var(--eun-text-color, #071621));
|
|
37
|
+
--_colorHover: var(
|
|
38
|
+
--link-color-hover,
|
|
39
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
40
|
+
);
|
|
41
|
+
--_colorFocus: var(--link-color-focus, var(--_colorHover));
|
|
42
|
+
--_focusOutline: var(
|
|
43
|
+
--link-focus-outline-color,
|
|
44
|
+
var(--eun-color-primary-700, #3662e0)
|
|
45
|
+
);
|
|
46
|
+
--_colorVisited: var(
|
|
47
|
+
--link-color-visited,
|
|
48
|
+
var(--eun-color-purple-600, #991bed)
|
|
49
|
+
);
|
|
50
|
+
--_colorVisitedHover: var(
|
|
51
|
+
--link-color-visited-hover,
|
|
52
|
+
color-mix(in srgb, var(--_colorVisited) 80%, black)
|
|
53
|
+
);
|
|
54
|
+
--_colorCurrent: var(
|
|
55
|
+
--link-color-current,
|
|
56
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
57
|
+
);
|
|
58
|
+
--_textDecoration: var(--link-text-decoration, underline);
|
|
59
|
+
--_duration: var(--link-transition-duration, var(--eun-duration-xl, 300ms));
|
|
60
|
+
--_iconColor: var(--link-icon-color, var(--_color));
|
|
61
|
+
--icon-color: var(--_iconColor);
|
|
62
|
+
font-size: var(--link-font-size, unset);
|
|
63
|
+
line-height: var(--link-line-height, inherit);
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
:host([theme="dark"]) {
|
|
68
|
+
--_color: var(
|
|
69
|
+
--link-color,
|
|
70
|
+
var(--eun-text-on-inverse-secondary, rgba(255, 255, 255, 0.7))
|
|
71
|
+
);
|
|
72
|
+
--_colorHover: var(--link-color-hover, var(--eun-text-on-inverse, #fff));
|
|
73
|
+
--_focusOutline: var(
|
|
74
|
+
--link-focus-outline-color,
|
|
75
|
+
var(--eun-text-on-inverse, #fff)
|
|
76
|
+
);
|
|
77
|
+
--_colorVisited: var(
|
|
78
|
+
--link-color-visited,
|
|
79
|
+
var(--eun-color-purple-300, #bea0ed)
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
slot[name="icon"] {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
slot[name="icon"].has-icon {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
}
|
|
89
|
+
slot[name="icon"] {
|
|
90
|
+
--icon-size: var(--link-icon-size, 18px);
|
|
91
|
+
font-size: var(--link-icon-size, inherit);
|
|
92
|
+
}
|
|
93
|
+
#label {
|
|
94
|
+
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
95
|
+
outline: 2px solid transparent;
|
|
96
|
+
transition: outline-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
97
|
+
}
|
|
98
|
+
#external-link-icon {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
margin-inline-start: calc(-1 * var(--eun-space-xs, 4px));
|
|
102
|
+
transform: rotate(-45deg);
|
|
103
|
+
}
|
|
104
|
+
#link {
|
|
105
|
+
box-sizing: var(--_blockBoxSizing);
|
|
106
|
+
flex: var(--_blockLinkFlex);
|
|
107
|
+
min-width: var(--_blockMinWidth);
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--eun-space-s, 8px);
|
|
111
|
+
padding: var(
|
|
112
|
+
--link-padding,
|
|
113
|
+
var(--link-padding-block, 0) var(--link-padding-inline, 0)
|
|
114
|
+
);
|
|
115
|
+
background: var(--link-background, transparent);
|
|
116
|
+
color: var(--_color);
|
|
117
|
+
font: inherit;
|
|
118
|
+
text-decoration: var(--_textDecoration);
|
|
119
|
+
text-wrap-style: pretty;
|
|
120
|
+
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
outline: 2px solid transparent;
|
|
123
|
+
transition:
|
|
124
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
125
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
126
|
+
outline-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
127
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
128
|
+
}
|
|
129
|
+
#link:hover {
|
|
130
|
+
background: var(
|
|
131
|
+
--link-background-hover,
|
|
132
|
+
var(--link-background, transparent)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
#link:visited {
|
|
136
|
+
color: var(--_colorVisited);
|
|
137
|
+
text-decoration-color: var(--_colorVisited);
|
|
138
|
+
}
|
|
139
|
+
#link:visited:hover {
|
|
140
|
+
color: var(--_colorVisitedHover);
|
|
141
|
+
text-decoration-color: var(--_colorVisitedHover);
|
|
142
|
+
}
|
|
143
|
+
:host([visited-style="off"]) #link:visited {
|
|
144
|
+
color: var(--_color);
|
|
145
|
+
text-decoration-color: currentColor;
|
|
146
|
+
}
|
|
147
|
+
:host([visited-style="off"]) #link:visited:hover {
|
|
148
|
+
color: var(--_colorHover);
|
|
149
|
+
text-decoration-color: currentColor;
|
|
150
|
+
}
|
|
151
|
+
:host([visited-style="on"]) #link {
|
|
152
|
+
color: var(--_colorVisited);
|
|
153
|
+
text-decoration-color: var(--_colorVisited);
|
|
154
|
+
}
|
|
155
|
+
:host([visited-style="on"]) #link:hover {
|
|
156
|
+
color: var(--_colorVisitedHover);
|
|
157
|
+
text-decoration-color: var(--_colorVisitedHover);
|
|
158
|
+
}
|
|
159
|
+
#link:hover {
|
|
160
|
+
color: var(--_colorHover);
|
|
161
|
+
--icon-color: var(--link-icon-color, var(--_colorHover));
|
|
162
|
+
}
|
|
163
|
+
#link:focus-visible {
|
|
164
|
+
color: var(--_colorFocus) !important;
|
|
165
|
+
text-decoration: none;
|
|
166
|
+
background: var(
|
|
167
|
+
--link-background-focus,
|
|
168
|
+
var(--link-background, transparent)
|
|
169
|
+
);
|
|
170
|
+
outline-color: var(--_focusOutline);
|
|
171
|
+
outline-offset: 2px;
|
|
172
|
+
--icon-color: var(--link-icon-color, var(--_colorFocus));
|
|
173
|
+
}
|
|
174
|
+
#link.has-icon:focus-visible {
|
|
175
|
+
background: var(--_blockRowFocusBackground);
|
|
176
|
+
outline-color: var(--_blockRowFocusOutline);
|
|
177
|
+
}
|
|
178
|
+
#link.has-icon:focus-visible #label {
|
|
179
|
+
background: var(--_blockLabelFocusBackground);
|
|
180
|
+
outline-color: var(--_blockLabelFocusOutline);
|
|
181
|
+
outline-offset: 2px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host([current]) #link,
|
|
185
|
+
:host([current]) #link:visited,
|
|
186
|
+
:host([current]) #link:hover,
|
|
187
|
+
:host([current]) #link:visited:hover,
|
|
188
|
+
:host([current]) #link:focus-visible {
|
|
189
|
+
color: var(--_colorCurrent) !important;
|
|
190
|
+
text-decoration-color: var(--_colorCurrent);
|
|
191
|
+
--icon-color: var(--link-icon-color, var(--_colorCurrent));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
#link.slotted-link {
|
|
195
|
+
position: relative;
|
|
196
|
+
text-decoration: none;
|
|
197
|
+
cursor: auto;
|
|
198
|
+
}
|
|
199
|
+
::slotted(a)::after {
|
|
200
|
+
content: "";
|
|
201
|
+
position: absolute;
|
|
202
|
+
inset: 0;
|
|
203
|
+
border-radius: inherit;
|
|
204
|
+
}
|
|
205
|
+
::slotted(a) {
|
|
206
|
+
color: var(--_color);
|
|
207
|
+
font: inherit;
|
|
208
|
+
text-decoration: var(--_textDecoration);
|
|
209
|
+
text-wrap-style: pretty;
|
|
210
|
+
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
211
|
+
outline-color: transparent;
|
|
212
|
+
transition:
|
|
213
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
214
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
215
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
216
|
+
}
|
|
217
|
+
::slotted(a:visited) {
|
|
218
|
+
color: var(--_colorVisited);
|
|
219
|
+
text-decoration-color: var(--_colorVisited);
|
|
220
|
+
}
|
|
221
|
+
::slotted(a:visited:hover) {
|
|
222
|
+
color: var(--_colorVisitedHover);
|
|
223
|
+
text-decoration-color: var(--_colorVisitedHover);
|
|
224
|
+
}
|
|
225
|
+
:host([visited-style="off"]) ::slotted(a:visited) {
|
|
226
|
+
color: var(--_color);
|
|
227
|
+
text-decoration-color: currentColor;
|
|
228
|
+
}
|
|
229
|
+
:host([visited-style="off"]) ::slotted(a:visited:hover) {
|
|
230
|
+
color: var(--_colorHover);
|
|
231
|
+
text-decoration-color: currentColor;
|
|
232
|
+
}
|
|
233
|
+
:host([visited-style="on"]) ::slotted(a) {
|
|
234
|
+
color: var(--_colorVisited);
|
|
235
|
+
text-decoration-color: var(--_colorVisited);
|
|
236
|
+
}
|
|
237
|
+
:host([visited-style="on"]) ::slotted(a:hover) {
|
|
238
|
+
color: var(--_colorVisitedHover);
|
|
239
|
+
text-decoration-color: var(--_colorVisitedHover);
|
|
240
|
+
}
|
|
241
|
+
::slotted(a:hover) {
|
|
242
|
+
color: var(--_colorHover);
|
|
243
|
+
}
|
|
244
|
+
#link.slotted-link:hover {
|
|
245
|
+
--icon-color: var(--link-icon-color, var(--_colorHover));
|
|
246
|
+
}
|
|
247
|
+
::slotted(a:focus-visible) {
|
|
248
|
+
color: var(--_colorFocus) !important;
|
|
249
|
+
text-decoration: none;
|
|
250
|
+
outline: none;
|
|
251
|
+
}
|
|
252
|
+
#link.has-icon ::slotted(a) {
|
|
253
|
+
outline: 2px solid transparent;
|
|
254
|
+
transition:
|
|
255
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
256
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
257
|
+
outline-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
258
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
259
|
+
}
|
|
260
|
+
#link.has-icon ::slotted(a:focus-visible) {
|
|
261
|
+
background: var(--_blockLabelFocusBackground);
|
|
262
|
+
outline-color: var(--_blockLabelFocusOutline);
|
|
263
|
+
outline-offset: 2px;
|
|
264
|
+
}
|
|
265
|
+
:host(:state(focus-visible)) #link.slotted-link.has-icon {
|
|
266
|
+
background: var(--_blockRowFocusBackground);
|
|
267
|
+
outline-color: var(--_blockRowFocusOutline);
|
|
268
|
+
outline-offset: var(--_blockRowFocusOffset);
|
|
269
|
+
--icon-color: var(--link-icon-color, var(--_colorFocus));
|
|
270
|
+
}
|
|
271
|
+
:host(:state(focus-visible)) #link.slotted-link:not(.has-icon) {
|
|
272
|
+
background: var(
|
|
273
|
+
--link-background-focus,
|
|
274
|
+
var(--link-background, transparent)
|
|
275
|
+
);
|
|
276
|
+
outline-color: var(--_focusOutline);
|
|
277
|
+
outline-offset: 2px;
|
|
278
|
+
--icon-color: var(--link-icon-color, var(--_colorFocus));
|
|
279
|
+
}
|
|
280
|
+
:host([current]) ::slotted(a),
|
|
281
|
+
:host([current]) ::slotted(a:visited),
|
|
282
|
+
:host([current]) ::slotted(a:hover),
|
|
283
|
+
:host([current]) ::slotted(a:visited:hover),
|
|
284
|
+
:host([current]) ::slotted(a:focus-visible) {
|
|
285
|
+
color: var(--_colorCurrent) !important;
|
|
286
|
+
text-decoration-color: var(--_colorCurrent);
|
|
287
|
+
}
|
|
288
|
+
:host([current]) #link.slotted-link {
|
|
289
|
+
--icon-color: var(--link-icon-color, var(--_colorCurrent));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
${t(r(":host([block])"))}
|
|
293
|
+
|
|
294
|
+
#label,
|
|
295
|
+
::slotted(a) {
|
|
296
|
+
min-width: var(--_blockMinWidth);
|
|
297
|
+
overflow: var(--_blockLabelOverflow);
|
|
298
|
+
text-overflow: var(--_blockLabelTextOverflow);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@media (prefers-reduced-motion: reduce) {
|
|
302
|
+
#link,
|
|
303
|
+
::slotted(a) {
|
|
304
|
+
transition: none;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.sr-only {
|
|
309
|
+
position: absolute;
|
|
310
|
+
width: 1px;
|
|
311
|
+
height: 1px;
|
|
312
|
+
padding: 0;
|
|
313
|
+
margin: -1px;
|
|
314
|
+
overflow: hidden;
|
|
315
|
+
clip: rect(0 0 0 0);
|
|
316
|
+
white-space: nowrap;
|
|
317
|
+
border: 0;
|
|
318
|
+
}
|
|
319
|
+
`,a=i;export{t as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as w}from"./chunk-DBY4CPCM.js";import{d as m,e as f,f as g}from"./chunk-OTX6FWAF.js";import{a as n}from"./chunk-PPCHQG7P.js";import{a as v}from"./chunk-
|
|
1
|
+
import{a as w}from"./chunk-DBY4CPCM.js";import{d as m,e as f,f as g}from"./chunk-OTX6FWAF.js";import{a as n}from"./chunk-PPCHQG7P.js";import{a as v}from"./chunk-WP6ZYBAC.js";import{a as l,f as b,h as u,j as r,p as o,r as c,u as h}from"./chunk-YITWLCD3.js";var i=class d extends Event{static{this.eventName="euntableaction"}constructor(p,e){super(d.eventName,{bubbles:!0,composed:!1}),this.key=p,this.optionKey=e}};var C=u`
|
|
2
2
|
:host {
|
|
3
3
|
--_center: var(--table-action-bar-center, var(--_tableCenter, 50vw));
|
|
4
4
|
--_gap: var(--table-action-bar-gap, var(--eun-space-s, 8px));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=':popover-open:not([popover="manual"]), :popover-open[data-light-dismiss]';function r(t,n){for(let e of t.composedPath()){if(e===n)return!1;if(e instanceof Element&&e.matches(o)||e instanceof ShadowRoot&&e.querySelector(o))return!0}return!1}export{r as a};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import{a as g}from"./chunk-YYCEPZUN.js";import{b as E,c as y,d as k,e as M}from"./chunk-QNWKRPOW.js";import{a as V,b as m}from"./chunk-2XPIGFBD.js";import{a as s,h as p,j as n,k as l,p as u,r as f}from"./chunk-YITWLCD3.js";function T(o,i,h){return o?i(o):h?.(o)}var A=["valid","hideError","fieldsetHideError","invalid","disabled","touched","dirty","validationRequested","error"],$=o=>A.some(i=>o.has(i)),j=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=e=>{this.validationRequested=!0;let{form:t}=this,r=!!t&&y(t);!r&&!y(this)||(this.errorsHidden||e.preventDefault(),r?M(t):this.focus())};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(g.eventName,this.#t),this.addEventListener("focusout",this.#i),this.addEventListener("invalid",this.#r),k(),this.#a()}disconnectedCallback(){this.removeEventListener(g.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,r=Array.isArray(t)?t.join(" "):t;r?this.setAttribute("aria-description",r):this.removeAttribute("aria-description")}setFormValue(e){let t=new FormData;if(this.disabled||this.checkable&&!this.checked){this.internals.setFormValue(t);return}let r=this.name||this.getAttribute("name");if(!r){this.internals.setFormValue(t);return}this.checkable?t.append(r,e?String(e):"on"):Array.isArray(e)?e.forEach(a=>t.append(r,a instanceof File?a:String(a))):e!=null&&t.append(r,e instanceof File?e: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
|
+
${T(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 s([n({reflect:!0})],i.prototype,"name",2),s([n()],i.prototype,"hint",2),s([n({type:Boolean,attribute:"hide-error"})],i.prototype,"hideError",2),s([n({type:Boolean})],i.prototype,"invalid",2),s([l()],i.prototype,"fieldsetHideError",2),s([l()],i.prototype,"valueState",2),s([l()],i.prototype,"dirty",2),s([l()],i.prototype,"touched",2),s([l()],i.prototype,"validationRequested",2),s([n({type:Boolean})],i.prototype,"controlled",2),s([n({attribute:"default-value",converter:{fromAttribute:e=>e?e.split(","):void 0,toAttribute:e=>e?.join(",")??null}})],i.prototype,"defaultValue",1),s([n()],i.prototype,"value",1),i};var Y=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 s([n({type:Boolean,reflect:!0})],i.prototype,"readonly",2),i};var Z=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??V()]??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={},r,a=e==null||typeof e=="string"&&e.trim()===""||e instanceof Array&&!e.length;return this.required&&a&&(t.valueMissing=!0,r=this.validationDictionary.validation.valueMissing),{validity:t,message:r}}checkValidity(e=this.getValueToValidate()){let t=this.checkLocalValidators(),r=this.buildCommonValidators(),a={...t.validity,...r.validity},d=r.message||t.message,c=this.error?[this.error]:[];this.validators?.forEach(x=>this.collectErrors(c,x,e)),this.errorMessages=c,c.length>0&&(a.customError=!0,d=c.join(" ; ")),this.valid=!Object.values(a).some(Boolean);let b=this.getFocusAnchor?.()??void 0;return this.valid||b||!this.getFocusAnchor?this.setValidity(a,d,b):this.updateComplete.then(()=>this.setValidity(a,d,this.getFocusAnchor?.()??void 0)),this.valid}reportValidity(e=this.getValueToValidate()){return this.checkValidity(e),E(this,()=>this.internals.reportValidity())}collectErrors(e,t,r){if("~standard"in t){let a=t["~standard"].validate(r);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(r,this.getValidityData()):t.isValid===!1)&&e.push(t.message),"isInvalid"in t&&t.isInvalid({value:r})&&e.push(t.message),e}setValidity(e,t,r){let a=this.validationMessage;this.internals.setValidity(e,t,r),t!==a&&this.requestUpdate("valid")}getValueToValidate(){return this.value}getValidityData(){return{}}}return s([n({type:Array})],i.prototype,"validators",2),s([n({type:Boolean})],i.prototype,"required",2),s([n()],i.prototype,"error",2),s([l()],i.prototype,"valid",2),i};var R=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
|
+
`,U=p`
|
|
30
|
+
.error-messages {
|
|
31
|
+
color: var(--_errorColor);
|
|
32
|
+
}
|
|
33
|
+
`,w=p`
|
|
34
|
+
.hint-messages {
|
|
35
|
+
color: var(--_hintColor);
|
|
36
|
+
}
|
|
37
|
+
`,re={base:R,errorMessages:U,hintMessages:w};export{T as a,$ as b,j as c,Y as d,Z as e,re 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,4 +1,4 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-OB7DEGNX.js";import{c as u,d as h,e as x,f as i}from"./chunk-JDUWKPHW.js";import{a as s}from"./chunk-3BMACIDO.js";import{a as o,f as n,h as c,j as a,p as t,r as l,u as d}from"./chunk-YITWLCD3.js";var k=c`
|
|
2
2
|
:host {
|
|
3
3
|
--_boxSize: var(--checkbox-size, 16px);
|
|
4
4
|
--_boxBorder: var(
|
|
@@ -15,7 +15,7 @@ import{a as b}from"./chunk-J7ETIRSK.js";import{c as u,d as h,e as x,f as i}from"
|
|
|
15
15
|
);
|
|
16
16
|
--_hintColor: var(
|
|
17
17
|
--checkbox-hint-color,
|
|
18
|
-
var(--eun-text-secondary, #
|
|
18
|
+
var(--eun-text-secondary, #666e8a)
|
|
19
19
|
);
|
|
20
20
|
--_color: var(--eun-text-color, #071621);
|
|
21
21
|
--_focusIndicator: var(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c,b as n}from"./chunk-XCBQ4CKH.js";var i=0,r=0,d="";function s(){return window.location.href.split("#")[0]}function f(){return i>0}function a(){if(i===0){r=window.scrollY,d=s();let{style:t}=document.body;t.position="fixed",t.top=`-${r}px`,t.left="0",t.right="0",t.width="100%"}i+=1}function l(){if(i=Math.max(0,i-1),i===0){let{style:t}=document.body;t.position="",t.top="",t.left="",t.right="",t.width="",window.scrollTo(0,s()===d?r:0)}}var h=t=>{class u extends t{constructor(){super(...arguments);this.syncingFromPopover=!1}resolveActiveElement(){let e=document.activeElement===this?this.shadowRoot?.activeElement:document.activeElement;return e instanceof HTMLElement?e:void 0}syncPopoverOpenState(e,o){this.syncingFromPopover||(e?(this.cancelSurfaceClosing(o),o?.matches(":popover-open")||o?.showPopover()):o?.matches(":popover-open")&&this.beginSurfaceClosing(o))}cancelSurfaceClosing(e){this.closeTimer!==void 0&&(window.clearTimeout(this.closeTimer),this.closeTimer=void 0),e?.removeAttribute("closing")}beginSurfaceClosing(e){if(!e)return;e.setAttribute("closing","");let o=Number.parseFloat(getComputedStyle(e).transitionDuration)*1e3||0;this.closeTimer=window.setTimeout(()=>{this.closeTimer=void 0,e.removeAttribute("closing"),e.hidePopover()},o)}openDialogSurface(e){this.previouslyFocusedElement=this.resolveActiveElement(),a(),this.dialogStackEntry=e,c(e)}closeDialogSurface(e){l(),this.dialogStackEntry&&(n(this.dialogStackEntry),this.dialogStackEntry=void 0),(this.previouslyFocusedElement??e)?.focus(),this.previouslyFocusedElement=void 0}teardownDialogSurface(){this.closeTimer!==void 0&&(window.clearTimeout(this.closeTimer),this.closeTimer=void 0),this.dialogStackEntry&&(l(),n(this.dialogStackEntry),this.dialogStackEntry=void 0)}}return u};export{f as a,h as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as x,b as m,c as w}from"./chunk-NPXRQHUN.js";import{a as k}from"./chunk-3BMACIDO.js";import{a as g}from"./chunk-NK5SGOBP.js";import{a as z}from"./chunk-3MTUVMM5.js";import{a as y,b as S}from"./chunk-5GKM5DIB.js";import{a as t}from"./chunk-PPCHQG7P.js";import{a as _}from"./chunk-WP6ZYBAC.js";import{a as r,b as c,c as b,d as v,f as p,h as i,j as s,p as n,r as h,u as f}from"./chunk-YITWLCD3.js";var L=i`
|
|
2
2
|
:host {
|
|
3
3
|
--_focusIndicator: var(--button-focus-outline, var(--_ring));
|
|
4
4
|
--_hoverFromCustom: color-mix(in srgb, var(--button-background) 88%, black);
|
|
@@ -128,7 +128,7 @@ import{a as m,b as x,c as w}from"./chunk-3UUZM7X2.js";import{a as k}from"./chunk
|
|
|
128
128
|
#external-link-icon {
|
|
129
129
|
display: inline-flex;
|
|
130
130
|
align-items: center;
|
|
131
|
-
margin-inline: var(--eun-space-s) calc(-1 * var(--eun-space-xs));
|
|
131
|
+
margin-inline: var(--eun-space-s, 8px) calc(-1 * var(--eun-space-xs, 4px));
|
|
132
132
|
transform: rotate(-45deg);
|
|
133
133
|
--icon-color: var(--_textColor);
|
|
134
134
|
}
|
|
@@ -238,7 +238,7 @@ import{a as m,b as x,c as w}from"./chunk-3UUZM7X2.js";import{a as k}from"./chunk
|
|
|
238
238
|
--_bd: transparent;
|
|
239
239
|
}
|
|
240
240
|
:host([appearance="ghost"]:not([color])) {
|
|
241
|
-
--_accent: var(--eun-text-secondary, #
|
|
241
|
+
--_accent: var(--eun-text-secondary, #666e8a);
|
|
242
242
|
--_wash-hover: var(--eun-content-hover, #edeff0);
|
|
243
243
|
--_wash-active: var(--eun-disabled-color, #ecedf0);
|
|
244
244
|
}
|
|
@@ -376,7 +376,7 @@ import{a as m,b as x,c as w}from"./chunk-3UUZM7X2.js";import{a as k}from"./chunk
|
|
|
376
376
|
display: flex;
|
|
377
377
|
width: 100%;
|
|
378
378
|
}
|
|
379
|
-
`,C=[
|
|
379
|
+
`,C=[m,L,A,T,I,$,H];var R="eun-button",l,u,o=class extends x(w(k(_(f)))){constructor(){super(...arguments);this.appearance="fill";this.full=!1;b(this,l);b(this,u,new z(this,()=>this.slottedAnchor,()=>this.dictionary.link.opensInNewTab));this.handleDefaultSlotChange=()=>{this.requestUpdate()}}updated(e){super.updated(e);let a=this.slottedAnchor;if(a){this.removeAttribute("tabindex"),this.syncSlottedAnchor(a),S(this);return}if(e.has("href")||e.has("disabled")||e.has("loading")){let d=this.disabled||this.loading;this.href&&!d?this.removeAttribute("tabindex"):this.setAttribute("tabindex",d?"-1":"0")}}get slottedAnchor(){return this.href?null:this.querySelector(":scope > a")}syncSlottedAnchor(e){this.disabled||this.loading?(e.setAttribute("aria-disabled","true"),e.setAttribute("tabindex","-1"),v(this,l,e)):c(this,l)===e&&(e.removeAttribute("aria-disabled"),e.removeAttribute("tabindex"),v(this,l,void 0))}renderEndContent(){let e=!!this.href&&this.target==="_blank",a=this.dictionary.link.opensInNewTab;return!e&&!c(this,u).isBlank?n`<slot name="end"></slot>`:n`
|
|
380
380
|
<span id="external-link-icon">
|
|
381
381
|
<eun-icon name="arrow_forward" shape="round" size="12"></eun-icon>
|
|
382
382
|
${!e||this.ariaLabel?h:n`<span class="sr-only"> (${a})</span>`}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,b as o}from"./chunk-QNWKRPOW.js";var r=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),l=["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 a(e){let t=e.querySelector(n);if(t){t.matches(":disabled, [disabled]")||t.click();return}Array.from(e.elements).filter(i=>i instanceof HTMLInputElement&&r.has(i.type)||i.matches(l)).length<=1&&o(e,()=>e.requestSubmit())}export{c as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as r,h as s,j as t}from"./chunk-YITWLCD3.js";var
|
|
1
|
+
import{b as d}from"./chunk-QNWKRPOW.js";import{a as r,h as s,j as t}from"./chunk-YITWLCD3.js";var m=a=>{class e extends a{constructor(){super(...arguments);this.type="button";this.fixedColor=!1;this.size="m";this.rounded=!1;this.slide=!1;this.loading=!1}connectedCallback(){super.connectedCallback?.(),!(this.href||this.querySelector(":scope > a"))&&(this.hasAttribute("role")||this.setAttribute("role","button"),this.addEventListener("click",this.handleClick,!0),this.addEventListener("keydown",this.handleKeydown,!0))}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback?.()}handleClick(o){if(this.disabled||this.loading){o.stopImmediatePropagation();return}if(this.hasAttribute("commandfor")){this.handleCommandClick?.();return}if(this.hasAttribute("popovertarget")){this.handlePopoverClick?.();return}this.handleFormBehavior()}handleKeydown(o){this.disabled||this.loading||!["Enter"," "].includes(o.key)||(o.preventDefault(),this.click())}handleFormBehavior(){if(this.type!=="submit"&&this.type!=="reset")return!1;let o;if(this.form?o=this.getRootNode()?.getElementById(this.form):o=this.closest("form"),!o||!(o instanceof HTMLFormElement))throw new Error("The element link to the button does not exist or is invalid");return this.type==="reset"&&o.reset(),this.type==="submit"&&d(o,()=>o.requestSubmit()),!0}}return r([t({reflect:!0,converter:{toAttribute:o=>o==="button"?null:o}})],e.prototype,"type",2),r([t({reflect:!0})],e.prototype,"color",2),r([t({type:Boolean,reflect:!0,attribute:"fixed-color"})],e.prototype,"fixedColor",2),r([t({reflect:!0,useDefault:!0})],e.prototype,"size",2),r([t({type:Boolean,reflect:!0})],e.prototype,"rounded",2),r([t({type:Boolean,reflect:!0})],e.prototype,"slide",2),r([t()],e.prototype,"form",2),r([t()],e.prototype,"href",2),r([t()],e.prototype,"target",2),r([t()],e.prototype,"download",2),r([t({type:Boolean,reflect:!0})],e.prototype,"loading",2),e};var c=class a extends Event{static{this.eventName="command"}constructor(e,n){super(a.eventName,{bubbles:!1,composed:!0,cancelable:!0}),this.command=e,this.source=n}};function u(a,e){let n=globalThis.CommandEvent;return typeof n=="function"?new n(c.eventName,{command:a,source:e,cancelable:!0,composed:!0}):new c(a,e)}var b=a=>{class e extends a{handleCommandClick(){let i=this.getAttribute("commandfor");if(!i)return;let l=this.getRootNode().getElementById(i);if(!l)throw new Error(`The given id [${i}] do not correspond to any command target`);l.dispatchEvent(u(this.getAttribute("command")??"",this))}}return r([t({reflect:!0})],e.prototype,"command",2),r([t({attribute:"commandfor"})],e.prototype,"commandFor",2),e};var k=s`
|
|
2
2
|
:host {
|
|
3
3
|
--_solid: var(--eun-color-primary-500, #3d6fff);
|
|
4
4
|
--_solid-hover: var(--eun-color-primary-700, #3662e0);
|
|
@@ -13,7 +13,7 @@ import{a as r,h as s,j as t}from"./chunk-YITWLCD3.js";var v=a=>{class e extends
|
|
|
13
13
|
--_wash-active: var(--_tint-active);
|
|
14
14
|
--_flat: var(--eun-surface-sunken, #f7f8fa);
|
|
15
15
|
--_flat-hover: var(--eun-surface-sunken-hover, #edeff0);
|
|
16
|
-
--_flatFg: var(--eun-text-secondary, #
|
|
16
|
+
--_flatFg: var(--eun-text-secondary, #666e8a);
|
|
17
17
|
--_ring: var(--eun-color-primary-700, #3662e0);
|
|
18
18
|
}
|
|
19
19
|
:host([color="secondary"]) {
|
|
@@ -121,4 +121,4 @@ import{a as r,h as s,j as t}from"./chunk-YITWLCD3.js";var v=a=>{class e extends
|
|
|
121
121
|
--_flatFg: var(--_solid);
|
|
122
122
|
--_ring: var(--_solid);
|
|
123
123
|
}
|
|
124
|
-
`;export{
|
|
124
|
+
`;export{m as a,k as b,b as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-5IUNSTM3.js";import{b as s}from"./chunk-JDUWKPHW.js";import{a as n}from"./chunk-YYCEPZUN.js";import{a as i,j as a}from"./chunk-YITWLCD3.js";var b=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.controlled||(this.checked=this.defaultChecked??!1),this.dirty=!1,this.touched=!1,this.validationRequested=!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()),s(e)&&this.setAttribute("aria-invalid",String(this.showError)),e.has("required")&&this.setAttribute("aria-required",String(this.required))}handleClick(e){r(e,this)||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 n(this.checked)))}handleKeydown(e){e.key===" "&&!r(e,this)&&(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{b as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b,c as p,d as
|
|
1
|
+
import{a as n}from"./chunk-5IUNSTM3.js";import{b as f,c as p,d as v,e as m,f as i}from"./chunk-JDUWKPHW.js";import{a as b}from"./chunk-YYCEPZUN.js";import{a as h}from"./chunk-3BMACIDO.js";import{a as o,f as l,h as s,j as t,p as c,u}from"./chunk-YITWLCD3.js";var k=d=>{class r 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","radio"),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.controlled||(this.checked=this.defaultChecked??!1),this.dirty=!1,this.touched=!1,this.validationRequested=!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()),f(e)&&this.setAttribute("aria-invalid",String(this.showError))}handleClick(e){n(e,this)||this.handleChange(e)}handleChange(e){e.stopPropagation(),!(this.disabled||this.readonly||this.inert)&&(e.preventDefault(),!this.checked&&(this.checked=!0,this.updateInternals(),this.checkValidity(this.checked),this.dispatchEvent(new b(this.checked))))}handleKeydown(e){e.key===" "&&!n(e,this)&&(e.preventDefault(),this.handleChange(e))}updateInternals(){this.setFormValue(this.valueState)}}return o([t({type:Boolean,reflect:!0})],r.prototype,"checked",2),o([t({type:Boolean,attribute:"default-checked"})],r.prototype,"defaultChecked",2),r};var y=s`
|
|
2
2
|
:host {
|
|
3
3
|
--_borderColor: var(--radio-border-color, var(--eun-border-color, #dee0e7));
|
|
4
4
|
--_background: var(--radio-background, transparent);
|
|
@@ -12,7 +12,7 @@ import{b,c as p,d as f,e as v,f as i}from"./chunk-MY6ORZJR.js";import{a as h}fro
|
|
|
12
12
|
--radio-error-color,
|
|
13
13
|
var(--eun-color-critical-100, #aa0014)
|
|
14
14
|
);
|
|
15
|
-
--_hintColor: var(--radio-hint-color, var(--eun-text-secondary, #
|
|
15
|
+
--_hintColor: var(--radio-hint-color, var(--eun-text-secondary, #666e8a));
|
|
16
16
|
--_borderSize: 1px;
|
|
17
17
|
--_roundGap: 2px;
|
|
18
18
|
--_cursor: pointer;
|
|
@@ -150,7 +150,7 @@ import{b,c as p,d as f,e as v,f as i}from"./chunk-MY6ORZJR.js";import{a as h}fro
|
|
|
150
150
|
slot {
|
|
151
151
|
display: inline-block;
|
|
152
152
|
}
|
|
153
|
-
`,
|
|
153
|
+
`,x=y;var g="eun-radio",_=k(v(p(h(m(u))))),a=class extends _{get defaultValue(){return super.defaultValue}set defaultValue(r){super.defaultValue=r}updated(r){super.updated?.(r),r.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}render(){return c`
|
|
154
154
|
<div>
|
|
155
155
|
<div id="radio-component" @click=${this.handleClick}>
|
|
156
156
|
<div id="radio"></div>
|
|
@@ -160,4 +160,4 @@ import{b,c as p,d as f,e as v,f as i}from"./chunk-MY6ORZJR.js";import{a as h}fro
|
|
|
160
160
|
</div>
|
|
161
161
|
${this.renderDescription()}
|
|
162
162
|
</div>
|
|
163
|
-
`}};a.styles=[
|
|
163
|
+
`}};a.styles=[x,i.base,i.errorMessages,i.hintMessages],o([t()],a.prototype,"label",2),o([t({attribute:"default-value"})],a.prototype,"defaultValue",1),a=o([l(g)],a);export{g as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as S}from"./chunk-TWLI2ZOT.js";import{a as m,b as l,f as x,g as T,h as p,i as y,k as v,l as D,m as E,q as w,s as g}from"./chunk-MJ4RDZLL.js";var R={low:"success",high:"warning",critical:"critical"},_={pending:"hourglass_empty",confirmed:"check",declined:"close"},M={pending:"warning",confirmed:"success",declined:"critical"},C=[{name:"red",hex:"#f14959",accent:"#ed1b2f"},{name:"purple",hex:"#9562e3",accent:"#991bed"},{name:"yellow",hex:"#f0f050",accent:"#e0e000"},{name:"blue",hex:"#3bb3b9",accent:"#0aa5a8"},{name:"green",hex:"#49f15f",accent:"#1bed22"},{name:"pink",hex:"#d05df3",accent:"#c300ff"}];function I(t,e){let n=t.trim().toLowerCase();return C.find(r=>r.name===n||r.hex===e)}function P(t){let e=S(t);return I(t,e)?.hex??e??t}function N(t){let e=S(t),n=I(t,e);return n?{accent:`var(--eun-color-${n.name}-600, ${n.accent})`,tint:`var(--eun-color-${n.name}-500, ${n.hex})`}:e?{accent:e,tint:e}:null}function G(t,e,n){switch(t){case"day":return{start:m(e),end:l(e)};case"week":case"work-week":{let r=g(e,n),u=r.find(a=>a.some(o=>E(o,e)))??r[0],c=t==="work-week"?u.filter(a=>!w(a)):u;return{start:m(c[0]),end:l(c[c.length-1])}}case"month":{let r=g(e,n);return{start:m(r[0][0]),end:l(r[r.length-1][6])}}case"year":return{start:x(e),end:T(e)};default:return{start:m(e),end:l(e)}}}function V(t,e,n){switch(t){case"day":return p(e,n);case"week":case"work-week":return y(e,n);case"month":return v(e,n);case"year":return D(e,n);default:return e}}function h(t){let e=m(t.end).getTime()===t.end.getTime();return t.allDay||!e||t.end<=t.start?t.end:new Date(t.end.getTime()-1)}function b(t){return!!t.allDay||!E(t.start,h(t))}function W(t,e){return t.filter(n=>!b(n)&&E(n.start,e)).sort((n,r)=>n.start.getTime()-r.start.getTime())}function U(t,e){let n=m(e).getTime(),r=l(e).getTime();return t.filter(u=>u.start.getTime()<=r&&h(u).getTime()>=n).sort((u,c)=>u.start.getTime()-c.start.getTime())}function Y(t){let e=[...t].sort((a,o)=>a.start.getTime()-o.start.getTime()||a.end.getTime()-o.end.getTime()),n=[],r=[],u=-1/0,c=()=>{if(r.length===0)return;let a=[];for(let i of r){let s=a.find(d=>d[d.length-1].end.getTime()<=i.start.getTime());s?s.push(i):a.push([i])}let o=a.length;a.forEach((i,s)=>{i.forEach(d=>{n.push({event:d,column:s,columnCount:o})})}),r=[]};for(let a of e)r.length>0&&a.start.getTime()>=u&&(c(),u=-1/0),r.push(a),u=Math.max(u,a.end.getTime());return c(),n}function k(t,e){if(e.length===0)return[];let n=m(e[0]).getTime(),r=l(e[e.length-1]).getTime(),u=t.filter(o=>o.start.getTime()<=r&&h(o).getTime()>=n).map(o=>{let i=h(o).getTime(),s=Math.max(e.findIndex(f=>l(f).getTime()>=o.start.getTime()),0),d=e.length-1;for(let f=0;f<e.length;f+=1)if(m(e[f]).getTime()>i){d=f-1;break}return{event:o,startIndex:s,endIndex:Math.max(d,s)}}).sort((o,i)=>o.startIndex-i.startIndex||i.endIndex-o.endIndex),c=[],a=[];for(let o of u){let i=c.findIndex(s=>s<o.startIndex);i===-1?(i=c.length,c.push(o.endIndex)):c[i]=o.endIndex,a.push({...o,row:i})}return a}function $(t,e){return k(t.filter(b),e)}function H(t,e){return k(t,e)}function z(t,e){return new Date(1970,0,1,t,0,0,0).toLocaleTimeString(e,{hour:"numeric",minute:t%1===0?void 0:"2-digit"})}function B(t,e){return t.toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})}export{R as a,_ as b,M as c,C as d,P as e,N as f,G as g,V as h,b as i,W as j,U as k,Y as l,$ as m,H as n,z as o,B as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=["button:not([type])",'button[type="submit"]','input[type="submit"]','input[type="image"]','eun-button[type="submit"]','eun-fab[type="submit"]'].join(", "),i=new WeakSet,o=new WeakSet,l=!1;function d(e,n){i.add(e);try{return n()}finally{i.delete(e)}}function u(e){return i.has(e)}function s(e){let n=e.getAttribute("form"),t=n?e.getRootNode().getElementById?.(n):e.closest("form");return t instanceof HTMLFormElement?t:null}function r(e){let n=e.target?.closest?.(a),t=n&&s(n);t&&(i.add(t),setTimeout(()=>i.delete(t)))}function m(){l||typeof document>"u"||(l=!0,document.addEventListener("click",r,!0))}function c(e){o.has(e)||(o.add(e),setTimeout(()=>{o.delete(e),Array.from(e.elements).find(t=>t.willValidate&&!t.validity.valid)?.focus()}))}export{a,d as b,u as c,m as d,c as e};
|