@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as P}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk-YYCEPZUN.js";import{a as y,b as z}from"./chunks/chunk-OTX6FWAF.js";import{a as u}from"./chunks/chunk-PPCHQG7P.js";import{a as x}from"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as r,f as v,g as m,h as b,j as a,k as h,l as c,p as n,r as l,u as f}from"./chunks/chunk-YITWLCD3.js";var k=b`
|
|
2
2
|
:host {
|
|
3
3
|
--_width: var(--sidebar-width, 280px);
|
|
4
4
|
--_miniWidth: var(--sidebar-mini-width, 64px);
|
|
@@ -10,7 +10,7 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
10
10
|
);
|
|
11
11
|
--_toggleColor: var(
|
|
12
12
|
--sidebar-toggle-color,
|
|
13
|
-
var(--eun-text-secondary, #
|
|
13
|
+
var(--eun-text-secondary, #666e8a)
|
|
14
14
|
);
|
|
15
15
|
--_toggleBackgroundHover: var(
|
|
16
16
|
--sidebar-toggle-background-hover,
|
|
@@ -134,7 +134,10 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
134
134
|
#resize-handle.armed,
|
|
135
135
|
#resize-handle:focus-visible {
|
|
136
136
|
cursor: ew-resize;
|
|
137
|
-
background: var(
|
|
137
|
+
background: var(
|
|
138
|
+
--sidebar-focus-outline-color,
|
|
139
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
140
|
+
);
|
|
138
141
|
opacity: 0.35;
|
|
139
142
|
transition: background-color var(--eun-duration-s, 150ms)
|
|
140
143
|
var(--eun-easing-default, ease);
|
|
@@ -222,12 +225,18 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
222
225
|
}
|
|
223
226
|
|
|
224
227
|
#collapse-toggle:focus-visible {
|
|
225
|
-
outline-color: var(
|
|
228
|
+
outline-color: var(
|
|
229
|
+
--sidebar-focus-outline-color,
|
|
230
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
231
|
+
);
|
|
226
232
|
outline-offset: 1px;
|
|
227
233
|
}
|
|
228
234
|
#collapse-toggle.inline:focus-visible {
|
|
229
235
|
outline-offset: -2px;
|
|
230
|
-
outline-color: var(
|
|
236
|
+
outline-color: var(
|
|
237
|
+
--sidebar-focus-outline-color,
|
|
238
|
+
var(--eun-color-primary-500, #3d6fff)
|
|
239
|
+
);
|
|
231
240
|
border-start-start-radius: var(--eun-border-radius-m, 8px);
|
|
232
241
|
border-start-end-radius: var(--eun-border-radius-m, 8px);
|
|
233
242
|
background: var(--_toggleBackgroundHover);
|
|
@@ -238,14 +247,14 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
238
247
|
transition: none;
|
|
239
248
|
}
|
|
240
249
|
}
|
|
241
|
-
`,
|
|
242
|
-
`)),
|
|
250
|
+
`,_=m(Object.keys(y).map(p=>`@media ${z(p)} { :host([hide-below="${p}"]) { display: none; } }`).join(`
|
|
251
|
+
`)),w=[k,_];var T="eun-sidebar",t=class extends x(f){constructor(){super(...arguments);this.position="start";this.theme="light";this.collapsible=!1;this.togglePlacement="edge";this.collapseMode="mini";this.collapsed=!1;this.resizable=!1;this.dragStartWidth=0;this.lastRawWidth=0;this.dragStartCollapsed=!1;this.dragMoved=!1;this.dragging=!1;this.resizeHandleArmed=!1;this.focusWasInsideBeforeHiddenCollapse=!1;this.handleResizePointerEnter=()=>{this.disarmResizeHandle();let e=P(getComputedStyle(this).getPropertyValue("--sidebar-resize-handle-delay"))??100;if(e===0){this.resizeHandleArmed=!0;return}this.resizeHandleArmTimer=setTimeout(()=>{this.resizeHandleArmTimer=void 0,this.resizeHandleArmed=!0},e)};this.handleResizePointerLeave=()=>{this.disarmResizeHandle()};this.handleResizePointerDown=e=>{if(!(e.pointerType==="mouse"&&e.button!==0)){this.resizeHandleArmTimer!==void 0&&(clearTimeout(this.resizeHandleArmTimer),this.resizeHandleArmTimer=void 0),this.resizeHandleArmed=!0;try{this.resizeHandleEl?.setPointerCapture(e.pointerId)}catch{}this.dragStartX=e.clientX,this.dragStartWidth=this.currentWidthPx(),this.dragStartCollapsed=this.collapsed,this.lastRawWidth=this.dragStartWidth,this.dragMoved=!1}};this.handleResizePointerMove=e=>{if(this.dragStartX===void 0)return;this.dragging=!0,this.dragMoved=!0;let o=e.clientX-this.dragStartX,i=this.position==="start"?o:-o;this.lastRawWidth=this.dragStartWidth+i,this.applyWidth(this.lastRawWidth,this.collapseMode==="hidden"?0:this.miniWidthPx())};this.handleResizePointerUp=e=>{if(this.dragStartX!==void 0){try{this.resizeHandleEl?.releasePointerCapture(e.pointerId)}catch{}this.dragStartX=void 0,this.dragging=!1,this.dragMoved&&this.settleWidth(this.lastRawWidth,this.dragStartCollapsed)}};this.handleResizeKeydown=e=>{let i;switch(e.key){case"ArrowLeft":i=this.currentWidthPx()+(this.position==="start"?-16:16);break;case"ArrowRight":i=this.currentWidthPx()+(this.position==="start"?16:-16);break;case"Home":i=this.miniWidthPx();break;case"End":i=this.maxWidthPx();break;default:return}e.preventDefault();let s=this.collapsed;this.applyWidth(i),this.settleCollapsedState(i,s)}}willUpdate(e){super.willUpdate(e),e.has("collapsed")&&this.collapsed&&this.collapseMode==="hidden"&&(this.focusWasInsideBeforeHiddenCollapse=!!(document.activeElement&&this.contains(document.activeElement)))}updated(e){super.updated(e),e.has("collapsed")&&this.collapsed&&this.collapseMode==="hidden"&&this.focusWasInsideBeforeHiddenCollapse&&(this.focusWasInsideBeforeHiddenCollapse=!1,this.collapseToggleEl?.focus())}disconnectedCallback(){super.disconnectedCallback(),this.disarmResizeHandle()}collapse(){this.setCollapsed(!0)}expand(){this.setCollapsed(!1)}toggleCollapse(){this.setCollapsed(!this.collapsed)}setCollapsed(e){this.collapsed!==e&&(this.collapsed=e,this.dispatchEvent(new d))}forgetResizedWidth(){this.style.removeProperty("--sidebar-width"),this.liveWidthPx=void 0}resolvedPx(e,o){let i=getComputedStyle(this).getPropertyValue(e).trim(),s=Number.parseFloat(i);return Number.isNaN(s)?o:s}miniWidthPx(){return this.resolvedPx("--sidebar-mini-width",64)}maxWidthPx(){return this.resolvedPx("--sidebar-max-width",480)}currentWidthPx(){return this.collapsed&&this.collapseMode==="hidden"?0:this.collapsed&&this.collapseMode==="mini"?this.miniWidthPx():this.liveWidthPx??this.resolvedPx("--sidebar-width",280)}applyWidth(e,o=this.miniWidthPx()){let i=Math.min(Math.max(e,o),this.maxWidthPx());this.collapsed=!1,this.style.setProperty("--sidebar-width",`${i}px`),this.liveWidthPx=i}settleCollapsedState(e,o){let i=this.collapseMode==="mini"&&e<=this.miniWidthPx();i&&this.forgetResizedWidth(),this.collapsed=i,i!==o&&this.dispatchEvent(new d)}settleWidth(e,o){let i=this.miniWidthPx(),s=e<i;if(s)this.forgetResizedWidth();else{let g=Math.min(e,this.maxWidthPx());this.style.setProperty("--sidebar-width",`${g}px`),this.liveWidthPx=g}this.collapsed=s,s!==o&&this.dispatchEvent(new d)}disarmResizeHandle(){this.resizeHandleArmTimer!==void 0&&(clearTimeout(this.resizeHandleArmTimer),this.resizeHandleArmTimer=void 0),this.resizeHandleArmed=!1}collapseToggleIcon(){return(this.position==="start"?!this.collapsed:this.collapsed)?"chevron_left":"chevron_right"}surfaceAriaLabel(){return this.heading??this.ariaLabel??void 0}hasFooterContent(){return this.querySelector('[slot="footer"]')!==null}hasHeaderContent(){return!!this.heading||this.querySelector('[slot="header"]')!==null}renderHeader(){return n`
|
|
243
252
|
<div id="header">
|
|
244
253
|
<slot name="header">
|
|
245
|
-
${this.heading?
|
|
254
|
+
${this.heading?n`<h2 id="heading">${this.heading}</h2>`:l}
|
|
246
255
|
</slot>
|
|
247
256
|
</div>
|
|
248
|
-
`}collapseToggleLabel(){return this.collapsed?this.expandLabel??this.dictionary.sidebar.expand:this.collapseLabel??this.dictionary.sidebar.collapse}renderEdgeToggle(){return
|
|
257
|
+
`}collapseToggleLabel(){return this.collapsed?this.expandLabel??this.dictionary.sidebar.expand:this.collapseLabel??this.dictionary.sidebar.collapse}renderEdgeToggle(){return n`
|
|
249
258
|
<button
|
|
250
259
|
type="button"
|
|
251
260
|
id="collapse-toggle"
|
|
@@ -255,7 +264,7 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
255
264
|
>
|
|
256
265
|
<eun-icon name=${this.collapseToggleIcon()} size="16"></eun-icon>
|
|
257
266
|
</button>
|
|
258
|
-
`}renderInlineToggle(){return
|
|
267
|
+
`}renderInlineToggle(){return n`
|
|
259
268
|
<button
|
|
260
269
|
type="button"
|
|
261
270
|
id="collapse-toggle"
|
|
@@ -267,7 +276,7 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
267
276
|
<eun-icon name=${this.collapseToggleIcon()} size="16"></eun-icon>
|
|
268
277
|
<span id="collapse-toggle-label">${this.collapseToggleLabel()}</span>
|
|
269
278
|
</button>
|
|
270
|
-
`}renderResizeHandle(){return
|
|
279
|
+
`}renderResizeHandle(){return n`
|
|
271
280
|
<div
|
|
272
281
|
id="resize-handle"
|
|
273
282
|
class=${u(this.resizeHandleArmed?"armed":void 0)}
|
|
@@ -286,7 +295,7 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
286
295
|
@pointercancel=${this.handleResizePointerUp}
|
|
287
296
|
@keydown=${this.handleResizeKeydown}
|
|
288
297
|
></div>
|
|
289
|
-
`}render(){return
|
|
298
|
+
`}render(){return n`
|
|
290
299
|
<div
|
|
291
300
|
id="surface"
|
|
292
301
|
role="navigation"
|
|
@@ -297,7 +306,7 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
297
306
|
<div id="body">
|
|
298
307
|
<slot></slot>
|
|
299
308
|
</div>
|
|
300
|
-
${this.hasFooterContent()?
|
|
309
|
+
${this.hasFooterContent()?n`
|
|
301
310
|
<div id="footer">
|
|
302
311
|
<slot name="footer"></slot>
|
|
303
312
|
</div>
|
|
@@ -306,4 +315,4 @@ import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk
|
|
|
306
315
|
</div>
|
|
307
316
|
${this.resizable?this.renderResizeHandle():l}
|
|
308
317
|
${this.collapsible&&this.togglePlacement==="edge"?this.renderEdgeToggle():l}
|
|
309
|
-
`}};t.styles=
|
|
318
|
+
`}};t.styles=w,r([a({reflect:!0,useDefault:!0})],t.prototype,"position",2),r([a({reflect:!0,attribute:"hide-below"})],t.prototype,"hideBelow",2),r([a({reflect:!0,useDefault:!0})],t.prototype,"theme",2),r([a()],t.prototype,"heading",2),r([a({type:Boolean})],t.prototype,"collapsible",2),r([a({reflect:!0,attribute:"toggle-placement",useDefault:!0})],t.prototype,"togglePlacement",2),r([a({reflect:!0,attribute:"collapse-mode",useDefault:!0})],t.prototype,"collapseMode",2),r([a({type:Boolean,reflect:!0})],t.prototype,"collapsed",2),r([a({attribute:"expand-label"})],t.prototype,"expandLabel",2),r([a({attribute:"collapse-label"})],t.prototype,"collapseLabel",2),r([a({type:Boolean})],t.prototype,"resizable",2),r([a({attribute:"resize-label"})],t.prototype,"resizeLabel",2),r([c("#resize-handle")],t.prototype,"resizeHandleEl",2),r([c("#collapse-toggle")],t.prototype,"collapseToggleEl",2),r([a({type:Boolean,reflect:!0})],t.prototype,"dragging",2),r([h()],t.prototype,"resizeHandleArmed",2),r([h()],t.prototype,"liveWidthPx",2),t=r([v(T)],t);export{t as EunomiaSidebar,T as EunomiaSidebarTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C}from"./chunks/chunk-7PEODUNH.js";import{c as _,d as y,e as w,f as d}from"./chunks/chunk-
|
|
1
|
+
import{a as C}from"./chunks/chunk-7PEODUNH.js";import{c as _,d as y,e as w,f as d}from"./chunks/chunk-JDUWKPHW.js";import{a as x}from"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-QNWKRPOW.js";import{a as k}from"./chunks/chunk-3BMACIDO.js";import{a as h}from"./chunks/chunk-22D3SRFR.js";import{a as f}from"./chunks/chunk-PPCHQG7P.js";import{a as g}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-2XPIGFBD.js";import{a,f as p,h as m,j as o,k as c,l as b,p as s,r as l,u as v}from"./chunks/chunk-YITWLCD3.js";var $=m`
|
|
2
2
|
:host {
|
|
3
3
|
--_trackHeight: var(--slider-track-height, 6px);
|
|
4
4
|
--_trackColor: var(
|
|
@@ -33,7 +33,7 @@ import{a as C}from"./chunks/chunk-7PEODUNH.js";import{c as _,d as y,e as w,f as
|
|
|
33
33
|
--slider-error-color,
|
|
34
34
|
var(--eun-color-critical-100, #aa0014)
|
|
35
35
|
);
|
|
36
|
-
--_hintColor: var(--slider-hint-color, var(--eun-text-secondary, #
|
|
36
|
+
--_hintColor: var(--slider-hint-color, var(--eun-text-secondary, #666e8a));
|
|
37
37
|
--_focusIndicator: var(
|
|
38
38
|
--slider-focus-outline-color,
|
|
39
39
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u,b as s}from"./chunks/chunk-
|
|
1
|
+
import{a as u,b as s}from"./chunks/chunk-XCBQ4CKH.js";import"./chunks/chunk-HXESKTK2.js";import"./chunks/chunk-5LXGJVJR.js";import{a as f,b as p}from"./chunks/chunk-XZ3LFOQP.js";import"./chunks/chunk-5GKM5DIB.js";import{a as n}from"./chunks/chunk-PPCHQG7P.js";import{a as h}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as t,f as o,h as d,j as l,k as a,p as r,u as c}from"./chunks/chunk-YITWLCD3.js";var v=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -95,7 +95,7 @@ import{a as f}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
95
95
|
--stepper-indicator-background,
|
|
96
96
|
var(--eun-content-hover, #edeff0)
|
|
97
97
|
);
|
|
98
|
-
color: var(--stepper-indicator-color, var(--eun-text-secondary, #
|
|
98
|
+
color: var(--stepper-indicator-color, var(--eun-text-secondary, #666e8a));
|
|
99
99
|
font-size: var(
|
|
100
100
|
--stepper-indicator-font-size,
|
|
101
101
|
var(--eun-font-size-xs, 12px)
|
|
@@ -174,7 +174,7 @@ import{a as f}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
174
174
|
--stepper-description-font-size,
|
|
175
175
|
var(--eun-font-size-xs, 12px)
|
|
176
176
|
);
|
|
177
|
-
color: var(--stepper-description-color, var(--eun-text-secondary, #
|
|
177
|
+
color: var(--stepper-description-color, var(--eun-text-secondary, #666e8a));
|
|
178
178
|
}
|
|
179
179
|
.description[hidden] {
|
|
180
180
|
display: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as k}from"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as s,f as S,h as x,j as i,n as y,p as a,r as p,u as $}from"./chunks/chunk-YITWLCD3.js";var u=class m extends Event{static{this.eventName="eunstepchange"}constructor(g){super(m.eventName,{bubbles:!0,composed:!1}),this.step=g}};var w=x`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
container-type: normal;
|
|
@@ -170,7 +170,7 @@ import{a as k}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk
|
|
|
170
170
|
--stepper-indicator-background,
|
|
171
171
|
var(--eun-content-hover, #edeff0)
|
|
172
172
|
);
|
|
173
|
-
color: var(--stepper-indicator-color, var(--eun-text-secondary, #
|
|
173
|
+
color: var(--stepper-indicator-color, var(--eun-text-secondary, #666e8a));
|
|
174
174
|
font-size: var(
|
|
175
175
|
--stepper-indicator-font-size,
|
|
176
176
|
var(--eun-font-size-xs, 12px)
|
|
@@ -291,7 +291,7 @@ import{a as k}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk
|
|
|
291
291
|
--stepper-description-font-size,
|
|
292
292
|
var(--eun-font-size-xs, 12px)
|
|
293
293
|
);
|
|
294
|
-
color: var(--stepper-description-color, var(--eun-text-secondary, #
|
|
294
|
+
color: var(--stepper-description-color, var(--eun-text-secondary, #666e8a));
|
|
295
295
|
}
|
|
296
296
|
.step-control:disabled .label,
|
|
297
297
|
.step-control:disabled .description {
|
|
@@ -300,7 +300,7 @@ import{a as k}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk
|
|
|
300
300
|
var(--eun-text-disabled-color, #8d93aa)
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
|
-
`;var _="eun-stepper",o=class extends $
|
|
303
|
+
`;var _="eun-stepper",o=class extends k($){constructor(){super(...arguments);this.steps=[];this.activeStep=0;this.orientation="horizontal";this.variant="numbered";this.linear=!1;this.disabled=!1;this.handleSlotChange=()=>{this.syncSlottedSteps(),this.requestUpdate()}}hasSlottedSteps(){return this.children.length>0}requestStepFromChild(e){let t=this.slottedSteps.indexOf(e);t!==-1&&this.requestStep(t)}syncSlottedSteps(){this.slottedSteps.forEach((e,t)=>{e.index=t,e.orientation!==this.orientation&&(e.orientation=this.orientation);let r=this.statusOf(t,this.activeStep,e.state);e.status!==r&&(e.status=r);let n=t===this.activeStep;e.reachable=!n&&!this.disabled&&!e.disabled&&(!this.linear||t<this.activeStep)})}updated(e){super.updated(e),this.hasSlottedSteps()&&this.syncSlottedSteps()}requestStep(e){this.dispatchEvent(new u(e))}statusOf(e,t,r){return e===t?"current":e<t?r==="error"?"error":"completed":"upcoming"}renderIndicatorContent(e,t){return e==="completed"?a`<eun-icon name="check" size="16"></eun-icon>`:e==="error"?a`<eun-icon name="error" size="16"></eun-icon>`:`${t+1}`}currentSubstepIndex(e){let t=this.activeSubstep;if(!(t===void 0||!Number.isFinite(t)||!e.length))return Math.min(Math.max(Math.trunc(t),0),e.length-1)}renderSubstepRing(e){let t=this.currentSubstepIndex(e)??-1,r=e.length>0?(t+1)/e.length:0,n=e[t]?.state==="error";return a`<span
|
|
304
304
|
class=${l({"substep-ring":!0,error:n})}
|
|
305
305
|
aria-hidden="true"
|
|
306
306
|
style="--_substepFraction: ${r}"
|
|
@@ -309,24 +309,23 @@ import{a as k}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk
|
|
|
309
309
|
${this.renderIndicatorContent(t,r)}
|
|
310
310
|
${n?this.renderSubstepRing(e.substeps):p}
|
|
311
311
|
</span>
|
|
312
|
-
`}renderStep(e,t,r){let n=this.statusOf(t,this.activeStep,e.state),d=t===this.activeStep,E=!d&&!this.disabled&&!e.disabled&&(!this.linear||t<this.activeStep),v=this.renderIndicator(e,n,t),b=l({"step-control":!0,"has-description":!!e.description}),
|
|
312
|
+
`}renderStep(e,t,r){let n=this.statusOf(t,this.activeStep,e.state),d=t===this.activeStep,E=!d&&!this.disabled&&!e.disabled&&(!this.linear||t<this.activeStep),v=this.renderIndicator(e,n,t),b=l({"step-control":!0,"has-description":!!e.description}),f=a`
|
|
313
313
|
<span class="content">
|
|
314
314
|
<span class="label">${e.label}</span>
|
|
315
315
|
${e.description?a`<span class="description">${e.description}</span>`:p}
|
|
316
316
|
</span>
|
|
317
|
-
`,
|
|
318
|
-
|
|
319
|
-
${e.substeps[this.activeSubstep]?.label}</span
|
|
317
|
+
`,h=d?this.currentSubstepIndex(e.substeps??[]):void 0,z=h!==void 0?a`<span class="sr-only"
|
|
318
|
+
>${this.dictionary.stepper.substep(h+1,e.substeps.length,e.substeps[h].label)}</span
|
|
320
319
|
>`:p,c;d?c=a`<span class=${b} aria-current="step"
|
|
321
|
-
>${v}${
|
|
320
|
+
>${v}${f}${z}</span
|
|
322
321
|
>`:E?c=a`<button
|
|
323
322
|
type="button"
|
|
324
323
|
class=${b}
|
|
325
324
|
@click=${()=>this.requestStep(t)}
|
|
326
325
|
>
|
|
327
|
-
${v}${
|
|
326
|
+
${v}${f}
|
|
328
327
|
</button>`:c=a`<button type="button" class=${b} disabled>
|
|
329
|
-
${v}${
|
|
328
|
+
${v}${f}
|
|
330
329
|
</button>`;let T=this.orientation==="vertical"&&t<r?a`<span
|
|
331
330
|
class="v-connector"
|
|
332
331
|
aria-hidden="true"
|
|
@@ -359,4 +358,4 @@ import{a as k}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk
|
|
|
359
358
|
${r?a`<span slot="top-left">${r}</span>`:p}
|
|
360
359
|
<span slot="top-right">${t+1} / ${e}</span>
|
|
361
360
|
</eun-progress-bar>
|
|
362
|
-
`}render(){return this.variant==="progress"?this.renderProgress():this.renderNumbered()}};o.styles=[w],s([i({type:Array,reflect:!0,useDefault:!0})],o.prototype,"steps",2),s([i({type:Number,attribute:"active-step"})],o.prototype,"activeStep",2),s([i({type:Number,attribute:"active-substep"})],o.prototype,"activeSubstep",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"orientation",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"variant",2),s([i({reflect:!0
|
|
361
|
+
`}render(){return this.variant==="progress"?this.renderProgress():this.renderNumbered()}};o.styles=[w],s([i({type:Array,reflect:!0,useDefault:!0})],o.prototype,"steps",2),s([i({type:Number,attribute:"active-step"})],o.prototype,"activeStep",2),s([i({type:Number,attribute:"active-substep"})],o.prototype,"activeSubstep",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"orientation",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"variant",2),s([i({type:Boolean,reflect:!0})],o.prototype,"linear",2),s([i({type:Boolean,reflect:!0})],o.prototype,"disabled",2),s([y()],o.prototype,"slottedSteps",2),o=s([S(_)],o);export{o as EunomiaStepper,_ as EunomiaStepperTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./chunks/chunk-
|
|
1
|
+
import{a as k}from"./chunks/chunk-OB7DEGNX.js";import"./chunks/chunk-5IUNSTM3.js";import{c as f,d as v,e as b,f as t}from"./chunks/chunk-JDUWKPHW.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-QNWKRPOW.js";import{a as h}from"./chunks/chunk-3BMACIDO.js";import{a as d}from"./chunks/chunk-PPCHQG7P.js";import{a as u}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as e,f as n,h as c,j as a,p as i,r as s,u as l}from"./chunks/chunk-YITWLCD3.js";var g=c`
|
|
2
2
|
:host {
|
|
3
3
|
--_trackWidth: var(--switch-track-width, 40px);
|
|
4
4
|
--_trackHeight: var(--switch-track-height, 22px);
|
|
@@ -13,7 +13,7 @@ import{a as k}from"./chunks/chunk-J7ETIRSK.js";import{c as f,d as v,e as b,f as
|
|
|
13
13
|
--switch-error-color,
|
|
14
14
|
var(--eun-color-critical-100, #aa0014)
|
|
15
15
|
);
|
|
16
|
-
--_hintColor: var(--switch-hint-color, var(--eun-text-secondary, #
|
|
16
|
+
--_hintColor: var(--switch-hint-color, var(--eun-text-secondary, #666e8a));
|
|
17
17
|
--_color: var(--eun-text-color, #071621);
|
|
18
18
|
--_focusIndicator: var(
|
|
19
19
|
--switch-focus-outline-color,
|
|
@@ -303,4 +303,4 @@ import{a as k}from"./chunks/chunk-SMTIDNGW.js";import{b as _}from"./chunks/chunk
|
|
|
303
303
|
<slot></slot>
|
|
304
304
|
</div>
|
|
305
305
|
</div>
|
|
306
|
-
`}};r.styles=A,r.EDGE_RESISTANCE=.3,o([s({reflect:!0,useDefault:!0})],r.prototype,"align",2),o([s({type:Boolean,reflect:!0})],r.prototype,"full",2),o([s({type:Boolean,reflect:!0})],r.prototype,"fill",2),o([s({reflect:!0,useDefault:!0})],r.prototype,"animation",2),o([s({type:Boolean,reflect:!0})],r.prototype,"hideIndicator",2),o([h()],r.prototype,"panels",2),o([h({slot:"navigation"})],r.prototype,"tabs",2),o([d("#tab-indicator")],r.prototype,"indicator",2),o([d("#scrollable")],r.prototype,"scrollableContent",2),o([d("#panel-viewport")],r.prototype,"panelViewport",2),r=o([y($)],r);export{r as EunomiaTabGroup,$ as EunomiaTabGroupTagName};
|
|
306
|
+
`}};r.styles=A,r.EDGE_RESISTANCE=.3,o([s({reflect:!0,useDefault:!0})],r.prototype,"align",2),o([s({type:Boolean,reflect:!0})],r.prototype,"full",2),o([s({type:Boolean,reflect:!0})],r.prototype,"fill",2),o([s({reflect:!0,useDefault:!0})],r.prototype,"animation",2),o([s({type:Boolean,reflect:!0,attribute:"hide-indicator"})],r.prototype,"hideIndicator",2),o([h()],r.prototype,"panels",2),o([h({slot:"navigation"})],r.prototype,"tabs",2),o([d("#tab-indicator")],r.prototype,"indicator",2),o([d("#scrollable")],r.prototype,"scrollableContent",2),o([d("#panel-viewport")],r.prototype,"panelViewport",2),r=o([y($)],r);export{r as EunomiaTabGroup,$ as EunomiaTabGroupTagName};
|
|
@@ -13,6 +13,6 @@ import{c as d}from"./chunks/chunk-5LXGJVJR.js";import{a as i,f as l,h as r,j as
|
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
:host([is-hidden]) {
|
|
16
|
-
display: none;
|
|
16
|
+
display: none !important;
|
|
17
17
|
}
|
|
18
18
|
`,p=c;var h="eun-tab-panel",t=class extends o{constructor(){super(...arguments);this.isHidden=!0;this.fallbackTabIndexApplied=!1;this.handleSlotChange=()=>{this.syncFallbackTabIndex()}}connectedCallback(){super.connectedCallback?.(),this.hasAttribute("id")||this.setAttribute("id",this.name),this.hasAttribute("role")||this.setAttribute("role","tabpanel"),this.hasAttribute("aria-labelledby")||this.setAttribute("aria-labelledby",`tab-${this.name}`),this.isHidden=!this.closest("eun-tab-group")?.querySelector(`[panel='${this.name}']`)?.hasAttribute("active")}firstUpdated(a){super.firstUpdated?.(a),this.syncFallbackTabIndex()}async waitForNestedRender(){let a=[...this.querySelectorAll("*")].filter(e=>e.tagName.includes("-")),b=new Set(a.map(e=>e.tagName.toLowerCase()));await Promise.all([...b].map(e=>customElements.whenDefined(e).catch(()=>{}))),await Promise.all(a.map(e=>e.updateComplete??Promise.resolve()))}hasFocusableContent(){return d(this,{requireRendered:!1})}syncFallbackTabIndex(){this.applyFallbackTabIndex()||this.waitForNestedRender().then(()=>this.applyFallbackTabIndex())}applyFallbackTabIndex(){return this.hasFocusableContent()?(this.fallbackTabIndexApplied&&(this.removeAttribute("tabindex"),this.fallbackTabIndexApplied=!1),!0):(this.hasAttribute("tabindex")||(this.setAttribute("tabindex","0"),this.fallbackTabIndexApplied=!0),!1)}render(){return n`<slot @slotchange=${this.handleSlotChange}></slot>`}};t.styles=p,i([s({reflect:!0})],t.prototype,"name",2),i([s({reflect:!0,type:Boolean,attribute:"is-hidden"})],t.prototype,"isHidden",2),t=i([l(h)],t);export{t as EunomiaTabPanel,h as EunomiaTabPanelTagName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d}from"./chunks/chunk-
|
|
1
|
+
import{b as a,c as b,d as c,e as d}from"./chunks/chunk-GXOEPXDW.js";import"./chunks/chunk-DBY4CPCM.js";import"./chunks/chunk-OTX6FWAF.js";import"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import"./chunks/chunk-YITWLCD3.js";export{d as EunomiaTableActionBar,c as EunomiaTableActionBarTagName,a as parseViewportCenteredBelow,b as viewportCenteredBelowConverter};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as T,c as ee,d as te}from"./chunks/chunk-GXOEPXDW.js";import"./chunks/chunk-M6LVNOKH.js";import{a as Q,b as Z}from"./chunks/chunk-ZYC7DHES.js";import"./chunks/chunk-A623JJXJ.js";import{a as X}from"./chunks/chunk-VG6NAAIV.js";import{a as J}from"./chunks/chunk-HXESKTK2.js";import"./chunks/chunk-RZF7QQDX.js";import"./chunks/chunk-5LA5DQMP.js";import"./chunks/chunk-EUWUDCBZ.js";import"./chunks/chunk-I4ERDXSM.js";import"./chunks/chunk-JLKCBPD2.js";import"./chunks/chunk-OB7DEGNX.js";import"./chunks/chunk-5IUNSTM3.js";import{b as E,c as k,d as G,e as Y,f as _}from"./chunks/chunk-VJCNHMQZ.js";import"./chunks/chunk-624VJYNA.js";import"./chunks/chunk-JDUWKPHW.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-MDSUMP3O.js";import"./chunks/chunk-NPXRQHUN.js";import"./chunks/chunk-QNWKRPOW.js";import"./chunks/chunk-3BMACIDO.js";import"./chunks/chunk-NK5SGOBP.js";import"./chunks/chunk-22D3SRFR.js";import{a as L}from"./chunks/chunk-DBY4CPCM.js";import"./chunks/chunk-OTX6FWAF.js";import"./chunks/chunk-3MTUVMM5.js";import"./chunks/chunk-5GKM5DIB.js";import{a as x}from"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-O7PHBLH2.js";import{a as I,b as W,c as U}from"./chunks/chunk-SGM2X2TC.js";import{a as j}from"./chunks/chunk-WP6ZYBAC.js";import"./chunks/chunk-2XPIGFBD.js";import{a as i,f as K,h as R,j as d,k as F,l as A,p as m,q as D,r as C,t as V,u as q}from"./chunks/chunk-YITWLCD3.js";var ae=(h,f,e)=>{let t=new Map;for(let a=f;a<=e;a++)t.set(h[a],a);return t},re=W(class extends U{constructor(h){if(super(h),h.type!==I.CHILD)throw Error("repeat() can only be used in text expressions")}dt(h,f,e){let t;e===void 0?e=f:f!==void 0&&(t=f);let a=[],r=[],l=0;for(let n of h)a[l]=t?t(n,l):l,r[l]=e(n,l),l++;return{values:r,keys:a}}render(h,f,e){return this.dt(h,f,e).values}update(h,[f,e,t]){let a=Y(h),{values:r,keys:l}=this.dt(f,e,t);if(!Array.isArray(a))return this.ut=l,r;let n=this.ut??=[],c=[],b,u,s=0,p=a.length-1,v=0,g=r.length-1;for(;s<=p&&v<=g;)if(a[s]===null)s++;else if(a[p]===null)p--;else if(n[s]===l[v])c[v]=k(a[s],r[v]),s++,v++;else if(n[p]===l[g])c[g]=k(a[p],r[g]),p--,g--;else if(n[s]===l[g])c[g]=k(a[s],r[g]),E(h,c[g+1],a[s]),s++,g--;else if(n[p]===l[v])c[v]=k(a[p],r[v]),E(h,a[s],a[p]),p--,v++;else if(b===void 0&&(b=ae(l,v,g),u=ae(n,s,p)),b.has(n[s]))if(b.has(n[p])){let y=u.get(l[v]),P=y!==void 0?a[y]:null;if(P===null){let $=E(h,a[s]);k($,r[v]),c[v]=$}else c[v]=k(P,r[v]),E(h,a[s],P),a[y]=null;v++}else _(a[p]),p--;else _(a[s]),s++;for(;v<=g;){let y=E(h,c[g+1]);k(y,r[v]),c[v++]=y}for(;s<=p;){let y=a[s++];y!==null&&_(y)}return this.ut=l,G(h,c),D}});function N(h,f){return h?.length?h:`__row-${f}`}function le(h){switch(h){case"center":return"center";case"right":return"end";case"left":return"start";default:return}}var B=class h extends Event{static{this.eventName="euntableselectionchange"}constructor(f){super(h.eventName,{bubbles:!0,composed:!1}),this.selectedKeys=f,this.selectedCount=f.length}};var z=class h extends Event{static{this.eventName="euntablerowclick"}constructor(f){super(h.eventName,{bubbles:!0,cancelable:!0,composed:!1}),this.rowKey=f}};var ne=R`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
position: relative;
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
max-height: var(--table-max-height, none);
|
|
8
|
-
padding-top: var(--_table-caption-height, 0px);
|
|
9
8
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -13,7 +12,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
13
12
|
display: none;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
@media ${
|
|
15
|
+
@media ${L("mobile")} {
|
|
17
16
|
#action-bar-room {
|
|
18
17
|
display: block;
|
|
19
18
|
position: absolute;
|
|
@@ -28,6 +27,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
28
27
|
#frame {
|
|
29
28
|
flex: 1 1 auto;
|
|
30
29
|
min-height: 0;
|
|
30
|
+
margin-top: var(--_table-caption-height, 0px);
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
border: var(--table-border-width, var(--eun-border-width-s, 1px)) solid
|
|
33
33
|
var(--table-border-color, var(--eun-border-color, #dee0e7));
|
|
@@ -424,7 +424,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
424
424
|
);
|
|
425
425
|
text-align: center;
|
|
426
426
|
font-size: var(--eun-font-size-s, 13px);
|
|
427
|
-
color: var(--table-empty-color, var(--eun-text-secondary, #
|
|
427
|
+
color: var(--table-empty-color, var(--eun-text-secondary, #666e8a));
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
eun-table:not(:defined):is([loading], :has(> table > tbody > tr))
|
|
@@ -492,7 +492,10 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
492
492
|
var(--eun-surface-color, #ffffff)
|
|
493
493
|
);
|
|
494
494
|
font-weight: var(--table-column-font-weight, var(--eun-font-weight-m, 500));
|
|
495
|
-
color: var(
|
|
495
|
+
color: var(
|
|
496
|
+
--table-header-color,
|
|
497
|
+
var(--table-column-color, var(--eun-text-secondary, #666e8a))
|
|
498
|
+
);
|
|
496
499
|
white-space: nowrap;
|
|
497
500
|
}
|
|
498
501
|
|
|
@@ -615,7 +618,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
615
618
|
text-align: center;
|
|
616
619
|
white-space: nowrap;
|
|
617
620
|
font-variant-numeric: tabular-nums;
|
|
618
|
-
color: var(--table-row-number-color, var(--eun-text-secondary, #
|
|
621
|
+
color: var(--table-row-number-color, var(--eun-text-secondary, #666e8a));
|
|
619
622
|
background-color: var(
|
|
620
623
|
--table-sticky-column-background,
|
|
621
624
|
var(--table-row-background, var(--eun-surface-color, #ffffff))
|
|
@@ -722,7 +725,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
722
725
|
--_table-action-opacity: 0 !important;
|
|
723
726
|
}
|
|
724
727
|
|
|
725
|
-
@media (hover: none) {
|
|
728
|
+
@media (hover: none), ${L("laptop")} {
|
|
726
729
|
eun-table > table > tbody > tr > [data-table-select] eun-checkbox {
|
|
727
730
|
opacity: 1;
|
|
728
731
|
}
|
|
@@ -1000,7 +1003,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
1000
1003
|
animation: none;
|
|
1001
1004
|
}
|
|
1002
1005
|
}
|
|
1003
|
-
`;var se="eun-table",w="data-table-select",z="data-table-row-number",S="data-table-action",ce="data-table-row-link",M="data-table-skeleton",de="data-table-skeleton-static",be="data-selected",H="eun-table-row-spacer",ue=44,he='a[href], button, input, select, textarea, summary, label, [contenteditable=""], [contenteditable="true"], [role="button"], [role="link"], [role="checkbox"], [role="switch"], [role="menuitem"]',o=class extends U(Z(V)){constructor(){super();this.selectable=!1;this.rowNumbers=!1;this.checkboxAlwaysVisible=!1;this.actionAlwaysVisible=!1;this.stickyHeader=!1;this.stickyFooter=!1;this.stickyFirstColumn=!1;this.stickyLastColumn=!1;this.hideActionBar=!1;this.collapsibleActionBar=!1;this.clearOnEscape=!1;this.loading=!1;this.skeletonRows=6;this.syncing=!1;this.clickable=!1;this.infinite=!1;this.virtualize=!1;this.pageSize=20;this.virtualizeThreshold=100;this.bufferPages=1;this.hasMore=!1;this.loadingMore=!1;this.rootMargin="400px";this.actions=[];this.data=[];this.internalSelection=new Set;this.frameScrollsVertically=!1;this.rtl=!1;this.scrollRange=0;this.rowKeys=new Map;this.ariaRowsApplied=!1;this.listeningForEscape=!1;this.logicalRows=[];this.mountedPages=new Set;this.detachedByPage=new Map;this.pageHeights=[];this.avgRowHeight=ue;this.requestedPages=0;this.handleMutations=e=>{e.some(a=>{if(a.type==="attributes")return!0;let r=a.target;return r===this||/^(TABLE|THEAD|TBODY|TFOOT|TR)$/.test(r.nodeName??"")})&&(this.sync(),this.announceLoadedRows(),this.virtualize&&this.scheduleAnimationFrame(()=>this.syncPages()),this.infinite&&this.reobserveSentinel(this.sentinelEl))};this.scheduleScrollEdges=()=>{this.scrollEdgeHandle??=requestAnimationFrame(this.syncScrollEdges)};this.syncScrollEdges=()=>{this.scrollEdgeHandle=void 0;let e=this.frameEl;if(!e)return;let t=e.scrollHeight-e.clientHeight>1;e.scrollWidth-e.clientWidth>1||t?(e.tabIndex=0,e.setAttribute("role","region"),e.setAttribute("aria-label",this.tableName()??this.labels.scrollRegion)):(e.removeAttribute("tabindex"),e.removeAttribute("role"),e.removeAttribute("aria-label")),this.rtl=getComputedStyle(this).direction==="rtl",this.scrollRange=e.scrollWidth-e.clientWidth,this.placeScrollShadows(e),this.syncScrollOverflow(),t!==this.frameScrollsVertically&&(this.frameScrollsVertically=t,this.infinite&&this.loadObserver&&this.setupTableLoadObserver())};this.syncScrollOverflow=()=>{let e=this.frameEl;if(!e)return;let t=Math.abs(e.scrollLeft),a=t>1,r=this.scrollRange-t>1;e.toggleAttribute("data-overflow-left",this.rtl?r:a),e.toggleAttribute("data-overflow-right",this.rtl?a:r)};this.handleClick=e=>{let t=e.target;if(t.closest?.(`[${w}]`)){t.closest("eun-checkbox")?.indeterminate&&this.toggleSelectAll();return}let r=this.bodyRowOf(t);!r||t.closest(`[${S}]`)||this.isInteractiveClick(e,r)||this.activateRow(r,e)};this.handleCheckboxChange=e=>{let t=e.target,a=t.closest?.(`[${w}]`);if(!a||t.nodeName!=="EUN-CHECKBOX")return;let r=a.parentElement;if(r.parentElement?.nodeName==="THEAD"){this.toggleSelectAll();return}let l=this.rowKeys.get(r);l!==void 0&&this.toggleRow(l)};this.positionActionBar=()=>{let e=this.actionBarEl;if(!e)return;let t=(this.frameEl??this).getBoundingClientRect();e.style.setProperty("--_tableCenter",`${t.left+t.width/2}px`);let a=parseFloat(getComputedStyle(e).bottom)||0;this.style.setProperty("--_table-action-bar-room",`${e.offsetHeight+a}px`)};this.handlePortaledAction=e=>{let t=e;e.stopPropagation(),this.dispatchEvent(new _(t.key,t.optionKey))};this.handleEscapeClear=e=>{e.key==="Escape"&&!J(e)&&this.setSelection(new Set)};this.handleTableScroll=()=>{this.scheduleAnimationFrame(()=>this.syncPages())};this.loadingBeforeUpgrade=this.isConnected&&this.hasAttribute("loading")}connectedCallback(){super.connectedCallback?.(),X(this,ie),this.addEventListener("click",this.handleClick),this.addEventListener("eunchange",this.handleCheckboxChange),this.mutationObserver=new MutationObserver(this.handleMutations),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-row-key"]}),this.hasUpdated&&this.sync()}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("eunchange",this.handleCheckboxChange),this.mutationObserver?.disconnect(),this.mutationObserver=void 0,this.teardownActionBar(),this.listenForEscape(!1),this.teardownLoadMoreSentinel(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.captionObserver?.disconnect(),this.captionObserver=void 0,this.observedCaption=void 0,this.unwatchScrollEdges(),super.disconnectedCallback?.()}firstUpdated(e){super.firstUpdated(e),this.sync(),this.ensureVirtualizeObservers(),this.infinite&&this.setupTableLoadObserver()}updated(e){super.updated(e);let t=["columns","data","rowAction","rowKey"];this.columns&&t.some(r=>e.has(r))&&this.renderManagedTable(),["columns","data","rowAction","rowKey","selectable","rowNumbers","rowNumberAriaLabel","hideActionBar","collapsibleActionBar","actionBarViewportCenteredBelow","clearOnEscape","stickyHeader","loading","virtualize","infinite","hasMore","skeletonRows","syncing","internalSelection","actions","selectedLabel","selectAllLabel","deselectAllLabel","selectAllAriaLabel","deselectAllAriaLabel","selectRowAriaLabel","toolbarAriaLabel","closeActionBarAriaLabel","locale"].some(r=>e.has(r))&&this.sync(),e.has("virtualize")&&this.ensureVirtualizeObservers(),this.virtualize&&(e.has("pageSize")||e.has("virtualizeThreshold")||e.has("bufferPages"))&&this.scheduleAnimationFrame(()=>this.syncPages()),(e.has("infinite")||e.has("rootMargin")||e.has("loading"))&&(this.infinite?this.setupTableLoadObserver():(this.loadObserver?.disconnect(),this.loadObserver=void 0))}get selectedKeys(){return Array.from(this.internalSelection)}set selectedKeys(e){this.internalSelection=new Set(e)}get tableEl(){return this.querySelector(":scope > table")}get selectionActive(){return this.selectable&&this.internalSelection.size>0}get labels(){let e=this.dictionary.table;return{...e,loadingMore:this.loadingMoreLabel??e.loadingMore,selected:this.selectedLabel??e.selected,selectAll:this.selectAllLabel??e.selectAll,deselectAll:this.deselectAllLabel??e.deselectAll,selectAllRows:this.selectAllAriaLabel??e.selectAllRows,deselectAllRows:this.deselectAllAriaLabel??e.deselectAllRows,selectRow:this.selectRowAriaLabel??e.selectRow,selectionActions:this.toolbarAriaLabel??e.selectionActions,clearSelection:this.closeActionBarAriaLabel??e.clearSelection,rowNumber:this.rowNumberAriaLabel??e.rowNumber}}currentRows(){if(this.virtualize)return this.logicalRows;let e=this.tableEl;return e?Array.from(e.tBodies).filter(t=>!t.hasAttribute(M)).flatMap(t=>Array.from(t.rows)).filter(t=>!t.classList.contains(H)):[]}get bodyEl(){let e=this.tableEl;return e?Array.from(e.tBodies).find(t=>!t.hasAttribute(M)):void 0}sync(){this.virtualize&&this.syncLogicalRows();let e=this.tableEl;if(e){let t=this.currentRows();this.toggleAttribute("empty",t.length===0),this.syncHeader(e),this.syncFooter(e),this.syncRows(t),this.syncSkeleton(e),this.syncAriaRows(e),this.syncing||this.loading?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")}this.watchCaption(e?.caption??void 0),this.watchScrollEdges(),this.toggleAttribute("selection-active",this.selectionActive),this.syncActionBar(),this.mutationObserver?.takeRecords()}watchScrollEdges(){let e=this.frameEl;if(!e)return;this.scrollEdgeObserver||(this.scrollEdgeObserver=new ResizeObserver(this.scheduleScrollEdges),this.scrollEdgeObserver.observe(e),e.addEventListener("scroll",this.syncScrollOverflow,{passive:!0}));let t=this.tableEl??void 0;t!==this.observedTable&&(this.observedTable&&this.scrollEdgeObserver.unobserve(this.observedTable),this.observedTable=t,t&&this.scrollEdgeObserver.observe(t)),this.scheduleScrollEdges()}unwatchScrollEdges(){this.scrollEdgeObserver?.disconnect(),this.scrollEdgeObserver=void 0,this.observedTable=void 0,this.frameEl?.removeEventListener("scroll",this.syncScrollOverflow),this.scrollEdgeHandle&&(cancelAnimationFrame(this.scrollEdgeHandle),this.scrollEdgeHandle=void 0)}placeScrollShadows(e){let t=this.leftShadowEl,a=this.rightShadowEl;if(!t||!a)return;let r=this.getBoundingClientRect(),l=e.getBoundingClientRect(),[n,c]=this.stickyBandWidths(),b=this.rtl?c:n,u=this.rtl?n:c;t.toggleAttribute("data-edge",b===0),a.toggleAttribute("data-edge",u===0);for(let s of[t,a])s.style.top=`${l.top-r.top+e.clientTop}px`,s.style.height=`${e.clientHeight}px`;t.style.left=`${l.left-r.left+e.clientLeft+b}px`,a.style.right=`${r.right-l.right+e.offsetWidth-e.clientLeft-e.clientWidth+u}px`}stickyBandWidths(){let e=this.tableEl,t=e?.tHead?.rows[0]??e?.tBodies[0]?.rows[0],a=t?Array.from(t.cells):[],r=(l,n)=>{let c=0;for(let b of l){let u=getComputedStyle(b);if(u.position!=="sticky"||u[n]==="auto")break;c+=b.getBoundingClientRect().width}return c};return[r(a,"insetInlineStart"),r([...a].reverse(),"insetInlineEnd")]}tableName(){let e=this.tableEl;if(!e)return;let t=e.caption?.textContent?.trim();return t||(this.ariaName(e)??this.ariaName(this))}ariaName(e){let t=e.getAttribute("aria-label")?.trim();if(t)return t;let a=this.getRootNode();return(e.getAttribute("aria-labelledby")??"").split(/\s+/).map(l=>l?a.getElementById(l)?.textContent?.trim():"").filter(Boolean).join(" ")||void 0}watchCaption(e){if(e===this.observedCaption)return;if(this.captionObserver?.disconnect(),this.observedCaption=e,!e){this.style.removeProperty("--_table-caption-height");return}let t=()=>{this.style.setProperty("--_table-caption-height",`${e.getBoundingClientRect().height}px`)};this.captionObserver??=new ResizeObserver(()=>this.observedCaption?t():void 0),this.captionObserver.observe(e),t()}ensureSelectCell(e,t){let a=e.cells[0];if(a?.hasAttribute(w))return a;let r=document.createElement(t);return r.setAttribute(w,""),e.prepend(r),r}removeSelectCell(e){let t=e.cells[0];t?.hasAttribute(w)&&t.remove()}findRowNumberCell(e){return Array.from(e.cells).slice(0,2).find(t=>t.hasAttribute(z))}ensureRowNumberCell(e,t){let a=this.findRowNumberCell(e);if(a)return a;let r=document.createElement(t);r.setAttribute(z,"");let l=e.cells[0];return l?.hasAttribute(w)?l.after(r):e.prepend(r),r}removeRowNumberCell(e){this.findRowNumberCell(e)?.remove()}ensureCheckbox(e){let t=e.querySelector("eun-checkbox");return t||(t=document.createElement("eun-checkbox"),t.setAttribute("tabindex","0"),e.replaceChildren(t)),t}syncHeader(e){let t=e.tHead?Array.from(e.tHead.rows):[],[a,...r]=t;if(r.forEach(p=>{this.removeSelectCell(p),this.removeRowNumberCell(p)}),!a)return;if(this.syncHeaderRowNumber(a,t.length),!this.selectable){this.removeSelectCell(a);return}let l=this.ensureSelectCell(a,"th");l.setAttribute("scope","col"),l.rowSpan=t.length;let n=this.labels,c=this.currentRows().length,b=this.internalSelection.size,u=c>0&&b===c,s=this.ensureCheckbox(l);s.checked=u,s.indeterminate=b>0&&!u,s.disabled=c===0,s.setAttribute("aria-label",u?n.deselectAllRows:n.selectAllRows)}syncHeaderRowNumber(e,t){if(!this.rowNumbers){this.removeRowNumberCell(e);return}let a=this.ensureRowNumberCell(e,"th");a.setAttribute("scope","col"),a.rowSpan=t;let r=this.labels.rowNumber;if(a.querySelector(".eun-table-visually-hidden")?.textContent!==r){let l=document.createElement("span");l.setAttribute("aria-hidden","true"),l.textContent="#";let n=document.createElement("span");n.className="eun-table-visually-hidden",n.textContent=r,a.replaceChildren(l,n)}}syncFooter(e){(e.tFoot?Array.from(e.tFoot.rows):[]).forEach(a=>{this.selectable?this.ensureSelectCell(a,"td").replaceChildren():this.removeSelectCell(a),this.rowNumbers?this.ensureRowNumberCell(a,"td").replaceChildren():this.removeRowNumberCell(a)})}syncRows(e){let t=new Map,a=this.selectionActive,r=this.labels;e.forEach((l,n)=>{let c=P(l.dataset.rowKey,n);t.set(l,c);let b=this.selectable&&this.internalSelection.has(c);if(l.toggleAttribute(be,b),this.selectable){let u=this.ensureCheckbox(this.ensureSelectCell(l,"td"));u.checked=b,u.setAttribute("aria-label",`${r.selectRow} ${this.rowName(l)??n+1}`)}else this.removeSelectCell(l);if(this.rowNumbers){let u=this.ensureRowNumberCell(l,"td"),s=String(n+1);u.textContent!==s&&(u.textContent=s)}else this.removeRowNumberCell(l);for(let u of Array.from(l.cells))u.hasAttribute(S)&&(u.inert=a)}),this.rowKeys=t}rowName(e){return(e.querySelector(':scope > th[scope="row"]')??e.querySelector(`:scope > th:not([${w}])`))?.textContent?.replace(/\s+/g," ").trim()||void 0}syncAriaRows(e){if(!this.virtualize){this.ariaRowsApplied&&(e.removeAttribute("aria-rowcount"),e.querySelectorAll("tr[aria-rowindex]").forEach(a=>a.removeAttribute("aria-rowindex")),this.ariaRowsApplied=!1);return}let t=[...e.tHead?Array.from(e.tHead.rows):[],...this.logicalRows,...e.tFoot?Array.from(e.tFoot.rows):[]];e.setAttribute("aria-rowcount",this.infinite&&this.hasMore?"-1":String(t.length)),t.forEach((a,r)=>a.setAttribute("aria-rowindex",String(r+1))),this.ariaRowsApplied=!0}announceLoadedRows(){if(this.rowCountBeforeLoad===void 0||!this.announcerEl)return;let e=this.currentRows().length-this.rowCountBeforeLoad;e<=0||(this.rowCountBeforeLoad=void 0,this.announcerEl.textContent=this.dictionary.table.rowsLoaded(e))}syncSkeleton(e){let t=e.querySelector(`:scope > tbody[${M}]`);if(!this.loading){this.loadingBeforeUpgrade=!1,t?.remove();return}let a=e.tHead?.rows[0]?Array.from(e.tHead.rows[0].cells).filter(b=>!b.hasAttribute(w)&&!b.hasAttribute(z)):[],r=[this.selectable,this.rowNumbers,this.skeletonRows,...a.map(b=>`${b.colSpan}${b.hasAttribute(S)?"a":""}`)].join(",");if(t?.dataset.tableSkeleton===r)return;let l=document.createElement("tbody");l.setAttribute(M,r),l.toggleAttribute(de,this.loadingBeforeUpgrade),l.setAttribute("aria-hidden","true");for(let b=0;b<this.skeletonRows;b++){let u=l.insertRow();if(u.style.setProperty("--_row-index",String(b)),this.selectable){let s=u.insertCell();s.setAttribute(w,""),s.append(this.createSkeleton("18px","18px","4px"))}if(this.rowNumbers){let s=u.insertCell();s.setAttribute(z,""),s.append(this.createSkeleton("16px","14px","4px"))}for(let s of a){let p=u.insertCell();p.colSpan=s.colSpan,s.hasAttribute(S)?(p.setAttribute(S,""),p.append(this.createSkeleton("18px","18px","6px"))):p.append(this.createSkeleton("50%","14px","4px"))}}if(t){t.replaceWith(l);return}let n=Array.from(e.tBodies),c=n[n.length-1];c?c.after(l):e.tFoot?e.tFoot.before(l):e.append(l)}createSkeleton(e,t,a){let r=document.createElement("eun-skeleton");return r.setAttribute("variant","rect"),r.setAttribute("height",t),r.setAttribute("radius",a),r.style.width=e,r}bodyRowOf(e){let t=e.closest?.("tr");return t&&this.rowKeys.has(t)?t:void 0}isInteractiveClick(e,t){for(let a of e.composedPath()){if(a===t)return!1;if(a instanceof Element&&a.matches(he))return!0}return!1}activateRow(e,t){let a=this.rowKeys.get(e)??"";if(this.selectionActive){this.toggleRow(a);return}let r=new B(a);this.dispatchEvent(r),r.defaultPrevented||this.followRowLink(e,t)}followRowLink(e,t){let a=e.querySelector(`[${ce}]`);if(!a)return;((a.matches("a[href]")?a:null)??a.querySelector("a[href]")??a.shadowRoot?.querySelector("a[href]")??a).dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,altKey:t.altKey}))}toggleRow(e){let t=new Set(this.internalSelection);t.has(e)?t.delete(e):t.add(e),this.setSelection(t)}toggleSelectAll(){let e=Array.from(this.rowKeys.values()),t=e.length>0&&e.every(a=>this.internalSelection.has(a));this.setSelection(t?new Set:new Set(e))}setSelection(e){let t=this.internalSelection;e.size===t.size&&[...e].every(a=>t.has(a))||(this.internalSelection=e,this.dispatchEvent(new T(Array.from(e))))}ensureActionBar(){if(!this.actionBarEl){let e=document.createElement(te);e.setAttribute("popover","manual"),e.addEventListener(_.eventName,this.handlePortaledAction),this.after(e),e.showPopover?.(),this.actionBarEl=e,this.positionActionBar(),this.actionBarObserver=new ResizeObserver(this.positionActionBar),this.actionBarObserver.observe(this),this.actionBarObserver.observe(e),this.parentElement&&this.actionBarObserver.observe(this.parentElement),window.addEventListener("resize",this.positionActionBar)}return this.actionBarEl}teardownActionBar(){if(!this.actionBarEl)return;let e=this.actionBarEl.contains(this.ownerDocument.activeElement);this.actionBarEl.removeEventListener(_.eventName,this.handlePortaledAction),this.actionBarObserver?.disconnect(),this.actionBarObserver=void 0,window.removeEventListener("resize",this.positionActionBar),this.style.removeProperty("--_table-action-bar-room"),this.actionBarEl.remove(),this.actionBarEl=void 0,e&&this.querySelector(`[${w}] eun-checkbox:not([disabled])`)?.focus()}listenForEscape(e){e!==this.listeningForEscape&&(this.listeningForEscape=e,e?document.addEventListener("keydown",this.handleEscapeClear):document.removeEventListener("keydown",this.handleEscapeClear))}syncActionBar(){if(this.listenForEscape(this.selectionActive&&this.clearOnEscape),!this.selectionActive||this.hideActionBar){this.teardownActionBar();return}let e=this.ensureActionBar();e.selectedCount=this.internalSelection.size,e.totalCount=this.rowKeys.size,e.actions=this.actions,e.collapsible=this.collapsibleActionBar,e.viewportCenteredBelow=this.actionBarViewportCenteredBelow;let t=this.labels;e.toolbarAriaLabel=t.selectionActions,e.selectedLabel=t.selected,e.selectAllLabel=t.selectAll,e.deselectAllLabel=t.deselectAll,e.closeAriaLabel=t.clearSelection,e.onSelectAll=()=>this.toggleSelectAll(),e.onClose=()=>this.setSelection(new Set)}renderManagedTable(){let e=this.columns??[],t=this.data.map((l,n)=>this.rowKey?this.rowKey(l,n):P(void 0,n));this.mountAllPages(),D(m`<table>
|
|
1006
|
+
`;var se="eun-table",w="data-table-select",M="data-table-row-number",S="data-table-action",ce="data-table-row-link",H="data-table-skeleton",de="data-table-skeleton-static",be="data-selected",O="eun-table-row-spacer",ue=44,he='a[href], button, input, select, textarea, summary, label, [contenteditable=""], [contenteditable="true"], [role="button"], [role="link"], [role="checkbox"], [role="switch"], [role="menuitem"]',o=class extends j(Z(q)){constructor(){super();this.selectable=!1;this.rowNumbers=!1;this.checkboxAlwaysVisible=!1;this.actionAlwaysVisible=!1;this.stickyHeader=!1;this.stickyFooter=!1;this.stickyFirstColumn=!1;this.stickyLastColumn=!1;this.hideActionBar=!1;this.collapsibleActionBar=!1;this.clearOnEscape=!1;this.loading=!1;this.skeletonRows=6;this.syncing=!1;this.clickable=!1;this.infinite=!1;this.virtualize=!1;this.pageSize=20;this.virtualizeThreshold=100;this.bufferPages=1;this.hasMore=!1;this.loadingMore=!1;this.rootMargin="400px";this.actions=[];this.data=[];this.internalSelection=new Set;this.frameScrollsVertically=!1;this.rtl=!1;this.scrollRange=0;this.rowKeys=new Map;this.ariaRowsApplied=!1;this.listeningForEscape=!1;this.logicalRows=[];this.mountedPages=new Set;this.detachedByPage=new Map;this.pageHeights=[];this.avgRowHeight=ue;this.requestedPages=0;this.handleMutations=e=>{e.some(a=>{if(a.type==="attributes")return!0;let r=a.target;return r===this||/^(TABLE|THEAD|TBODY|TFOOT|TR)$/.test(r.nodeName??"")})&&(this.sync(),this.announceLoadedRows(),this.virtualize&&this.scheduleAnimationFrame(()=>this.syncPages()),this.infinite&&this.reobserveSentinel(this.sentinelEl))};this.scheduleScrollEdges=()=>{this.scrollEdgeHandle??=requestAnimationFrame(this.syncScrollEdges)};this.syncScrollEdges=()=>{this.scrollEdgeHandle=void 0;let e=this.frameEl;if(!e)return;let t=e.scrollHeight-e.clientHeight>1;e.scrollWidth-e.clientWidth>1||t?(e.tabIndex=0,e.setAttribute("role","region"),e.setAttribute("aria-label",this.tableName()??this.labels.scrollRegion)):(e.removeAttribute("tabindex"),e.removeAttribute("role"),e.removeAttribute("aria-label")),this.rtl=getComputedStyle(this).direction==="rtl",this.scrollRange=e.scrollWidth-e.clientWidth,this.placeScrollShadows(e),this.syncScrollOverflow(),t!==this.frameScrollsVertically&&(this.frameScrollsVertically=t,this.infinite&&this.loadObserver&&this.setupTableLoadObserver())};this.syncScrollOverflow=()=>{let e=this.frameEl;if(!e)return;let t=Math.abs(e.scrollLeft),a=t>1,r=this.scrollRange-t>1;e.toggleAttribute("data-overflow-left",this.rtl?r:a),e.toggleAttribute("data-overflow-right",this.rtl?a:r)};this.handleClick=e=>{let t=e.target;if(t.closest?.(`[${w}]`)){t.closest("eun-checkbox")?.indeterminate&&this.toggleSelectAll();return}let r=this.bodyRowOf(t);!r||t.closest(`[${S}]`)||this.isInteractiveClick(e,r)||this.activateRow(r,e)};this.handleCheckboxChange=e=>{let t=e.target,a=t.closest?.(`[${w}]`);if(!a||t.nodeName!=="EUN-CHECKBOX")return;let r=a.parentElement;if(r.parentElement?.nodeName==="THEAD"){this.toggleSelectAll();return}let l=this.rowKeys.get(r);l!==void 0&&this.toggleRow(l)};this.positionActionBar=()=>{let e=this.actionBarEl;if(!e)return;let t=(this.frameEl??this).getBoundingClientRect();e.style.setProperty("--_tableCenter",`${t.left+t.width/2}px`);let a=parseFloat(getComputedStyle(e).bottom)||0;this.style.setProperty("--_table-action-bar-room",`${e.offsetHeight+a}px`)};this.handlePortaledAction=e=>{let t=e;e.stopPropagation(),this.dispatchEvent(new T(t.key,t.optionKey))};this.handleEscapeClear=e=>{e.key==="Escape"&&!J(e)&&this.setSelection(new Set)};this.handleTableScroll=()=>{this.scheduleAnimationFrame(()=>this.syncPages())};this.loadingBeforeUpgrade=this.isConnected&&this.hasAttribute("loading")}connectedCallback(){super.connectedCallback?.(),X(this,ie),this.addEventListener("click",this.handleClick),this.addEventListener("eunchange",this.handleCheckboxChange),this.mutationObserver=new MutationObserver(this.handleMutations),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-row-key"]}),this.hasUpdated&&this.sync()}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("eunchange",this.handleCheckboxChange),this.mutationObserver?.disconnect(),this.mutationObserver=void 0,this.teardownActionBar(),this.listenForEscape(!1),this.teardownLoadMoreSentinel(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.captionObserver?.disconnect(),this.captionObserver=void 0,this.observedCaption=void 0,this.unwatchScrollEdges(),super.disconnectedCallback?.()}firstUpdated(e){super.firstUpdated(e),this.sync(),this.ensureVirtualizeObservers(),this.infinite&&this.setupTableLoadObserver()}updated(e){super.updated(e);let t=["columns","data","rowAction","rowKey"];this.columns&&t.some(r=>e.has(r))&&this.renderManagedTable(),["columns","data","rowAction","rowKey","selectable","rowNumbers","rowNumberAriaLabel","hideActionBar","collapsibleActionBar","actionBarViewportCenteredBelow","clearOnEscape","stickyHeader","loading","virtualize","infinite","hasMore","skeletonRows","syncing","internalSelection","actions","selectedLabel","selectAllLabel","deselectAllLabel","selectAllAriaLabel","deselectAllAriaLabel","selectRowAriaLabel","toolbarAriaLabel","closeActionBarAriaLabel","locale"].some(r=>e.has(r))&&this.sync(),e.has("virtualize")&&this.ensureVirtualizeObservers(),this.virtualize&&(e.has("pageSize")||e.has("virtualizeThreshold")||e.has("bufferPages"))&&this.scheduleAnimationFrame(()=>this.syncPages()),(e.has("infinite")||e.has("rootMargin")||e.has("loading"))&&(this.infinite?this.setupTableLoadObserver():(this.loadObserver?.disconnect(),this.loadObserver=void 0))}get selectedKeys(){return Array.from(this.internalSelection)}set selectedKeys(e){this.internalSelection=new Set(e)}get tableEl(){return this.querySelector(":scope > table")}get selectionActive(){return this.selectable&&this.internalSelection.size>0}get labels(){let e=this.dictionary.table;return{...e,loadingMore:this.loadingMoreLabel??e.loadingMore,selected:this.selectedLabel??e.selected,selectAll:this.selectAllLabel??e.selectAll,deselectAll:this.deselectAllLabel??e.deselectAll,selectAllRows:this.selectAllAriaLabel??e.selectAllRows,deselectAllRows:this.deselectAllAriaLabel??e.deselectAllRows,selectRow:this.selectRowAriaLabel??e.selectRow,selectionActions:this.toolbarAriaLabel??e.selectionActions,clearSelection:this.closeActionBarAriaLabel??e.clearSelection,rowNumber:this.rowNumberAriaLabel??e.rowNumber}}currentRows(){if(this.virtualize)return this.logicalRows;let e=this.tableEl;return e?Array.from(e.tBodies).filter(t=>!t.hasAttribute(H)).flatMap(t=>Array.from(t.rows)).filter(t=>!t.classList.contains(O)):[]}get bodyEl(){let e=this.tableEl;return e?Array.from(e.tBodies).find(t=>!t.hasAttribute(H)):void 0}sync(){this.virtualize&&this.syncLogicalRows();let e=this.tableEl;if(e){let t=this.currentRows();this.toggleAttribute("empty",t.length===0),this.syncHeader(e),this.syncFooter(e),this.syncRows(t),this.syncSkeleton(e),this.syncAriaRows(e),this.syncing||this.loading?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")}this.watchCaption(e?.caption??void 0),this.watchScrollEdges(),this.toggleAttribute("selection-active",this.selectionActive),this.syncActionBar(),this.mutationObserver?.takeRecords()}watchScrollEdges(){let e=this.frameEl;if(!e)return;this.scrollEdgeObserver||(this.scrollEdgeObserver=new ResizeObserver(this.scheduleScrollEdges),this.scrollEdgeObserver.observe(e),e.addEventListener("scroll",this.syncScrollOverflow,{passive:!0}));let t=this.tableEl??void 0;t!==this.observedTable&&(this.observedTable&&this.scrollEdgeObserver.unobserve(this.observedTable),this.observedTable=t,t&&this.scrollEdgeObserver.observe(t)),this.scheduleScrollEdges()}unwatchScrollEdges(){this.scrollEdgeObserver?.disconnect(),this.scrollEdgeObserver=void 0,this.observedTable=void 0,this.frameEl?.removeEventListener("scroll",this.syncScrollOverflow),this.scrollEdgeHandle&&(cancelAnimationFrame(this.scrollEdgeHandle),this.scrollEdgeHandle=void 0)}placeScrollShadows(e){let t=this.leftShadowEl,a=this.rightShadowEl;if(!t||!a)return;let r=this.getBoundingClientRect(),l=e.getBoundingClientRect(),[n,c]=this.stickyBandWidths(),b=this.rtl?c:n,u=this.rtl?n:c;t.toggleAttribute("data-edge",b===0),a.toggleAttribute("data-edge",u===0);for(let s of[t,a])s.style.top=`${l.top-r.top+e.clientTop}px`,s.style.height=`${e.clientHeight}px`;t.style.left=`${l.left-r.left+e.clientLeft+b}px`,a.style.right=`${r.right-l.right+e.offsetWidth-e.clientLeft-e.clientWidth+u}px`}stickyBandWidths(){let e=this.tableEl,t=e?.tHead?.rows[0]??e?.tBodies[0]?.rows[0],a=t?Array.from(t.cells):[],r=(l,n)=>{let c=0;for(let b of l){let u=getComputedStyle(b);if(u.position!=="sticky"||u[n]==="auto")break;c+=b.getBoundingClientRect().width}return c};return[r(a,"insetInlineStart"),r([...a].reverse(),"insetInlineEnd")]}tableName(){let e=this.tableEl;if(!e)return;let t=e.caption?.textContent?.trim();return t||(this.ariaName(e)??this.ariaName(this))}ariaName(e){let t=e.getAttribute("aria-label")?.trim();if(t)return t;let a=this.getRootNode();return(e.getAttribute("aria-labelledby")??"").split(/\s+/).map(l=>l?a.getElementById(l)?.textContent?.trim():"").filter(Boolean).join(" ")||void 0}watchCaption(e){if(e===this.observedCaption)return;if(this.captionObserver?.disconnect(),this.observedCaption=e,!e){this.style.removeProperty("--_table-caption-height");return}let t=()=>{this.style.setProperty("--_table-caption-height",`${e.getBoundingClientRect().height}px`)};this.captionObserver??=new ResizeObserver(()=>this.observedCaption?t():void 0),this.captionObserver.observe(e),t()}ensureSelectCell(e,t){let a=e.cells[0];if(a?.hasAttribute(w))return a;let r=document.createElement(t);return r.setAttribute(w,""),e.prepend(r),r}removeSelectCell(e){let t=e.cells[0];t?.hasAttribute(w)&&t.remove()}findRowNumberCell(e){return Array.from(e.cells).slice(0,2).find(t=>t.hasAttribute(M))}ensureRowNumberCell(e,t){let a=this.findRowNumberCell(e);if(a)return a;let r=document.createElement(t);r.setAttribute(M,"");let l=e.cells[0];return l?.hasAttribute(w)?l.after(r):e.prepend(r),r}removeRowNumberCell(e){this.findRowNumberCell(e)?.remove()}ensureCheckbox(e){let t=e.querySelector("eun-checkbox");return t||(t=document.createElement("eun-checkbox"),t.setAttribute("tabindex","0"),e.replaceChildren(t)),t}syncHeader(e){let t=e.tHead?Array.from(e.tHead.rows):[],[a,...r]=t;if(r.forEach(p=>{this.removeSelectCell(p),this.removeRowNumberCell(p)}),!a)return;if(this.syncHeaderRowNumber(a,t.length),!this.selectable){this.removeSelectCell(a);return}let l=this.ensureSelectCell(a,"th");l.setAttribute("scope","col"),l.rowSpan=t.length;let n=this.labels,c=this.currentRows().length,b=this.internalSelection.size,u=c>0&&b===c,s=this.ensureCheckbox(l);s.checked=u,s.indeterminate=b>0&&!u,s.disabled=c===0,s.setAttribute("aria-label",u?n.deselectAllRows:n.selectAllRows)}syncHeaderRowNumber(e,t){if(!this.rowNumbers){this.removeRowNumberCell(e);return}let a=this.ensureRowNumberCell(e,"th");a.setAttribute("scope","col"),a.rowSpan=t;let r=this.labels.rowNumber;if(a.querySelector(".eun-table-visually-hidden")?.textContent!==r){let l=document.createElement("span");l.setAttribute("aria-hidden","true"),l.textContent="#";let n=document.createElement("span");n.className="eun-table-visually-hidden",n.textContent=r,a.replaceChildren(l,n)}}syncFooter(e){(e.tFoot?Array.from(e.tFoot.rows):[]).forEach(a=>{this.selectable?this.ensureSelectCell(a,"td").replaceChildren():this.removeSelectCell(a),this.rowNumbers?this.ensureRowNumberCell(a,"td").replaceChildren():this.removeRowNumberCell(a)})}syncRows(e){let t=new Map,a=this.selectionActive,r=this.labels;e.forEach((l,n)=>{let c=N(l.dataset.rowKey,n);t.set(l,c);let b=this.selectable&&this.internalSelection.has(c);if(l.toggleAttribute(be,b),this.selectable){let u=this.ensureCheckbox(this.ensureSelectCell(l,"td"));u.checked=b,u.setAttribute("aria-label",`${r.selectRow} ${this.rowName(l)??n+1}`)}else this.removeSelectCell(l);if(this.rowNumbers){let u=this.ensureRowNumberCell(l,"td"),s=String(n+1);u.textContent!==s&&(u.textContent=s)}else this.removeRowNumberCell(l);for(let u of Array.from(l.cells))u.hasAttribute(S)&&(u.inert=a)}),this.rowKeys=t}rowName(e){return(e.querySelector(':scope > th[scope="row"]')??e.querySelector(`:scope > th:not([${w}])`))?.textContent?.replace(/\s+/g," ").trim()||void 0}syncAriaRows(e){if(!this.virtualize){this.ariaRowsApplied&&(e.removeAttribute("aria-rowcount"),e.querySelectorAll("tr[aria-rowindex]").forEach(a=>a.removeAttribute("aria-rowindex")),this.ariaRowsApplied=!1);return}let t=[...e.tHead?Array.from(e.tHead.rows):[],...this.logicalRows,...e.tFoot?Array.from(e.tFoot.rows):[]];e.setAttribute("aria-rowcount",this.infinite&&this.hasMore?"-1":String(t.length)),t.forEach((a,r)=>a.setAttribute("aria-rowindex",String(r+1))),this.ariaRowsApplied=!0}announceLoadedRows(){if(this.rowCountBeforeLoad===void 0||!this.announcerEl)return;let e=this.currentRows().length-this.rowCountBeforeLoad;e<=0||(this.rowCountBeforeLoad=void 0,this.announcerEl.textContent=this.dictionary.table.rowsLoaded(e))}syncSkeleton(e){let t=e.querySelector(`:scope > tbody[${H}]`);if(!this.loading){this.loadingBeforeUpgrade=!1,t?.remove();return}let a=e.tHead?.rows[0]?Array.from(e.tHead.rows[0].cells).filter(b=>!b.hasAttribute(w)&&!b.hasAttribute(M)):[],r=[this.selectable,this.rowNumbers,this.skeletonRows,...a.map(b=>`${b.colSpan}${b.hasAttribute(S)?"a":""}`)].join(",");if(t?.dataset.tableSkeleton===r)return;let l=document.createElement("tbody");l.setAttribute(H,r),l.toggleAttribute(de,this.loadingBeforeUpgrade),l.setAttribute("aria-hidden","true");for(let b=0;b<this.skeletonRows;b++){let u=l.insertRow();if(u.style.setProperty("--_row-index",String(b)),this.selectable){let s=u.insertCell();s.setAttribute(w,""),s.append(this.createSkeleton("18px","18px","4px"))}if(this.rowNumbers){let s=u.insertCell();s.setAttribute(M,""),s.append(this.createSkeleton("16px","14px","4px"))}for(let s of a){let p=u.insertCell();p.colSpan=s.colSpan,s.hasAttribute(S)?(p.setAttribute(S,""),p.append(this.createSkeleton("18px","18px","6px"))):p.append(this.createSkeleton("50%","14px","4px"))}}if(t){t.replaceWith(l);return}let n=Array.from(e.tBodies),c=n[n.length-1];c?c.after(l):e.tFoot?e.tFoot.before(l):e.append(l)}createSkeleton(e,t,a){let r=document.createElement("eun-skeleton");return r.setAttribute("variant","rect"),r.setAttribute("height",t),r.setAttribute("radius",a),r.style.width=e,r}bodyRowOf(e){let t=e.closest?.("tr");return t&&this.rowKeys.has(t)?t:void 0}isInteractiveClick(e,t){for(let a of e.composedPath()){if(a===t)return!1;if(a instanceof Element&&a.matches(he))return!0}return!1}activateRow(e,t){let a=this.rowKeys.get(e)??"";if(this.selectionActive){this.toggleRow(a);return}let r=new z(a);this.dispatchEvent(r),r.defaultPrevented||this.followRowLink(e,t)}followRowLink(e,t){let a=e.querySelector(`[${ce}]`);if(!a)return;((a.matches("a[href]")?a:null)??a.querySelector("a[href]")??a.shadowRoot?.querySelector("a[href]")??a).dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,altKey:t.altKey}))}toggleRow(e){let t=new Set(this.internalSelection);t.has(e)?t.delete(e):t.add(e),this.setSelection(t)}toggleSelectAll(){let e=Array.from(this.rowKeys.values()),t=e.length>0&&e.every(a=>this.internalSelection.has(a));this.setSelection(t?new Set:new Set(e))}setSelection(e){let t=this.internalSelection;e.size===t.size&&[...e].every(a=>t.has(a))||(this.internalSelection=e,this.dispatchEvent(new B(Array.from(e))))}ensureActionBar(){if(!this.actionBarEl){let e=document.createElement(te);e.setAttribute("popover","manual"),e.addEventListener(T.eventName,this.handlePortaledAction),this.after(e),e.showPopover?.(),this.actionBarEl=e,this.positionActionBar(),this.actionBarObserver=new ResizeObserver(this.positionActionBar),this.actionBarObserver.observe(this),this.actionBarObserver.observe(e),this.parentElement&&this.actionBarObserver.observe(this.parentElement),window.addEventListener("resize",this.positionActionBar)}return this.actionBarEl}teardownActionBar(){if(!this.actionBarEl)return;let e=this.actionBarEl.contains(this.ownerDocument.activeElement);this.actionBarEl.removeEventListener(T.eventName,this.handlePortaledAction),this.actionBarObserver?.disconnect(),this.actionBarObserver=void 0,window.removeEventListener("resize",this.positionActionBar),this.style.removeProperty("--_table-action-bar-room"),this.actionBarEl.remove(),this.actionBarEl=void 0,e&&this.querySelector(`[${w}] eun-checkbox:not([disabled])`)?.focus()}listenForEscape(e){e!==this.listeningForEscape&&(this.listeningForEscape=e,e?document.addEventListener("keydown",this.handleEscapeClear):document.removeEventListener("keydown",this.handleEscapeClear))}syncActionBar(){if(this.listenForEscape(this.selectionActive&&this.clearOnEscape),!this.selectionActive||this.hideActionBar){this.teardownActionBar();return}let e=this.ensureActionBar();e.selectedCount=this.internalSelection.size,e.totalCount=this.rowKeys.size,e.actions=this.actions,e.collapsible=this.collapsibleActionBar,e.viewportCenteredBelow=this.actionBarViewportCenteredBelow;let t=this.labels;e.toolbarAriaLabel=t.selectionActions,e.selectedLabel=t.selected,e.selectAllLabel=t.selectAll,e.deselectAllLabel=t.deselectAll,e.closeAriaLabel=t.clearSelection,e.onSelectAll=()=>this.toggleSelectAll(),e.onClose=()=>this.setSelection(new Set)}renderManagedTable(){let e=this.columns??[],t=this.data.map((l,n)=>this.rowKey?this.rowKey(l,n):N(void 0,n));this.mountAllPages(),V(m`<table>
|
|
1004
1007
|
<thead>
|
|
1005
1008
|
<tr>
|
|
1006
1009
|
${e.map(l=>m`<th
|
|
@@ -1048,7 +1051,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
1048
1051
|
@click=${()=>e.onClick(t,a)}
|
|
1049
1052
|
>
|
|
1050
1053
|
${e.icon?m`<eun-icon name=${e.icon} size="16"></eun-icon>`:e.label}
|
|
1051
|
-
</eun-button>`}syncLogicalRows(){let e=[];for(let r of Array.from(this.bodyEl?.rows??[]))r.classList.contains(
|
|
1054
|
+
</eun-button>`}syncLogicalRows(){let e=[];for(let r of Array.from(this.bodyEl?.rows??[]))r.classList.contains(O)?e.push(...this.detachedByPage.get(Number(r.dataset.eunPage))??[]):e.push(r);this.logicalRows=e;let t=Math.ceil(e.length/this.pageSize),a=new Set;for(let r=0;r<t;r++)this.detachedByPage.has(r)||a.add(r);this.mountedPages=a}mountAllPages(){for(let e of Array.from(this.detachedByPage.keys()))this.mountPage(e);this.detachedByPage.clear(),this.pageHeights=[],this.mutationObserver?.takeRecords()}syncPages(){let e=this.logicalRows.length;if(e===0)return;let t=Math.ceil(e/this.pageSize),a=!1;if(e<=this.virtualizeThreshold)for(let r=0;r<t;r++)a=this.mountPage(r)||a;else{if(!this.frameEl?.clientHeight)return;let r=this.estimateCenterPage(t),l=Math.max(0,r-this.bufferPages),n=Math.min(t-1,r+this.bufferPages);for(let c=0;c<t;c++)c>=l&&c<=n?a=this.mountPage(c)||a:a=this.unmountPage(c)||a}a&&this.sync()}estimateCenterPage(e){let t=this.frameEl,a=t?t.scrollTop+t.clientHeight/2:0,r=0;for(let l=0;l<e;l++){let n=this.pageHeights[l]??this.estimatePageHeight(l);if(a<r+n)return l;r+=n}return Math.max(0,e-1)}estimatePageHeight(e){let t=Math.ceil(this.logicalRows.length/this.pageSize);return(e===t-1?this.logicalRows.length-e*this.pageSize:this.pageSize)*this.avgRowHeight}mountPage(e){let t=this.detachedByPage.get(e);if(this.mountedPages.has(e)||!t?.length)return!1;let a=this.bodyEl?.querySelector(`:scope > .${O}[data-eun-page="${e}"]`);return a?(a.before(...t),a.remove()):this.bodyEl?.append(...t),this.detachedByPage.delete(e),this.mountedPages.add(e),!0}unmountPage(e){if(!this.mountedPages.has(e))return!1;let t=e*this.pageSize,a=Math.min(t+this.pageSize,this.logicalRows.length),r=this.logicalRows.slice(t,a).filter(s=>s.isConnected);if(r.length===0)return!1;let l=r[0],c=r[r.length-1].getBoundingClientRect().bottom-l.getBoundingClientRect().top;if(c<=0)return!1;this.pageHeights[e]=c,this.avgRowHeight=(this.avgRowHeight+c/r.length)/2;let b=document.createElement("tr");b.className=O,b.dataset.eunPage=String(e),b.setAttribute("aria-hidden","true");let u=b.insertCell();return u.colSpan=1e3,u.style.blockSize=`${c}px`,l.before(b),r.forEach(s=>s.remove()),this.detachedByPage.set(e,r),this.mountedPages.delete(e),!0}ensureVirtualizeObservers(){if(!this.virtualize){this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.frameEl?.removeEventListener("scroll",this.handleTableScroll),this.syncHandle&&(cancelAnimationFrame(this.syncHandle),this.syncHandle=void 0);return}!this.resizeObserver&&this.frameEl&&(this.resizeObserver=new ResizeObserver(()=>this.scheduleAnimationFrame(()=>this.syncPages())),this.resizeObserver.observe(this.frameEl),this.frameEl.addEventListener("scroll",this.handleTableScroll,{passive:!0})),this.sync(),this.scheduleAnimationFrame(()=>this.syncPages())}setupTableLoadObserver(){this.setupLoadObserver(this.sentinelEl,this.frameScrollsVertically?this.frameEl??null:null,this.rootMargin,()=>this.maybeLoadMore())}maybeLoadMore(){this.loadingMore||!this.hasMore||(this.loadingMore=!0,this.rowCountBeforeLoad=this.currentRows().length,this.requestedPages+=1,this.dispatchEvent(new Q(this.requestedPages,this.pageSize)))}render(){return m`
|
|
1052
1055
|
<div id="frame" part="frame">
|
|
1053
1056
|
<slot></slot>
|
|
1054
1057
|
<div id="empty"><slot name="empty"></slot></div>
|
|
@@ -1076,7 +1079,7 @@ import{a as _,c as ee,d as te}from"./chunks/chunk-FQUWHNQT.js";import"./chunks/c
|
|
|
1076
1079
|
aria-live="polite"
|
|
1077
1080
|
class="visually-hidden"
|
|
1078
1081
|
></div>
|
|
1079
|
-
`}};o.styles=oe,i([d({type:Boolean,reflect:!0})],o.prototype,"selectable",2),i([d({type:Boolean,reflect:!0,attribute:"row-numbers"})],o.prototype,"rowNumbers",2),i([d({attribute:"row-number-aria-label"})],o.prototype,"rowNumberAriaLabel",2),i([d({type:Boolean,reflect:!0,attribute:"checkbox-always-visible"})],o.prototype,"checkboxAlwaysVisible",2),i([d({type:Boolean,reflect:!0,attribute:"action-always-visible"})],o.prototype,"actionAlwaysVisible",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-header"})],o.prototype,"stickyHeader",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-footer"})],o.prototype,"stickyFooter",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-first-column"})],o.prototype,"stickyFirstColumn",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-last-column"})],o.prototype,"stickyLastColumn",2),i([d({type:Boolean,reflect:!0,attribute:"hide-action-bar"})],o.prototype,"hideActionBar",2),i([d({type:Boolean,reflect:!0,attribute:"collapsible-action-bar"})],o.prototype,"collapsibleActionBar",2),i([d({reflect:!0,attribute:"action-bar-viewport-centered-below",converter:ee})],o.prototype,"actionBarViewportCenteredBelow",2),i([d({type:Boolean,reflect:!0,attribute:"clear-on-escape"})],o.prototype,"clearOnEscape",2),i([d({type:Boolean,reflect:!0})],o.prototype,"loading",2),i([d({attribute:"skeleton-rows",type:Number})],o.prototype,"skeletonRows",2),i([d({type:Boolean,reflect:!0})],o.prototype,"syncing",2),i([d({reflect:!0})],o.prototype,"density",2),i([d({type:Boolean,reflect:!0})],o.prototype,"clickable",2),i([d({type:Boolean,reflect:!0})],o.prototype,"infinite",2),i([d({type:Boolean,reflect:!0})],o.prototype,"virtualize",2),i([d({attribute:"page-size",type:Number})],o.prototype,"pageSize",2),i([d({attribute:"virtualize-threshold",type:Number})],o.prototype,"virtualizeThreshold",2),i([d({attribute:"buffer-pages",type:Number})],o.prototype,"bufferPages",2),i([d({attribute:"has-more",type:Boolean,reflect:!0})],o.prototype,"hasMore",2),i([d({attribute:"loading-more",type:Boolean,reflect:!0})],o.prototype,"loadingMore",2),i([d({attribute:"root-margin"})],o.prototype,"rootMargin",2),i([d({attribute:"loading-more-label"})],o.prototype,"loadingMoreLabel",2),i([d({attribute:!1})],o.prototype,"actions",2),i([d({attribute:"selected-label"})],o.prototype,"selectedLabel",2),i([d({attribute:"select-all-label"})],o.prototype,"selectAllLabel",2),i([d({attribute:"deselect-all-label"})],o.prototype,"deselectAllLabel",2),i([d({attribute:"select-all-aria-label"})],o.prototype,"selectAllAriaLabel",2),i([d({attribute:"deselect-all-aria-label"})],o.prototype,"deselectAllAriaLabel",2),i([d({attribute:"select-row-aria-label"})],o.prototype,"selectRowAriaLabel",2),i([d({attribute:"toolbar-aria-label"})],o.prototype,"toolbarAriaLabel",2),i([d({attribute:"close-action-bar-aria-label"})],o.prototype,"closeActionBarAriaLabel",2),i([d({attribute:!1})],o.prototype,"columns",2),i([d({attribute:!1})],o.prototype,"data",2),i([d({attribute:!1})],o.prototype,"rowAction",2),i([d({attribute:!1})],o.prototype,"rowKey",2),i([
|
|
1082
|
+
`}};o.styles=oe,i([d({type:Boolean,reflect:!0})],o.prototype,"selectable",2),i([d({type:Boolean,reflect:!0,attribute:"row-numbers"})],o.prototype,"rowNumbers",2),i([d({attribute:"row-number-aria-label"})],o.prototype,"rowNumberAriaLabel",2),i([d({type:Boolean,reflect:!0,attribute:"checkbox-always-visible"})],o.prototype,"checkboxAlwaysVisible",2),i([d({type:Boolean,reflect:!0,attribute:"action-always-visible"})],o.prototype,"actionAlwaysVisible",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-header"})],o.prototype,"stickyHeader",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-footer"})],o.prototype,"stickyFooter",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-first-column"})],o.prototype,"stickyFirstColumn",2),i([d({type:Boolean,reflect:!0,attribute:"sticky-last-column"})],o.prototype,"stickyLastColumn",2),i([d({type:Boolean,reflect:!0,attribute:"hide-action-bar"})],o.prototype,"hideActionBar",2),i([d({type:Boolean,reflect:!0,attribute:"collapsible-action-bar"})],o.prototype,"collapsibleActionBar",2),i([d({reflect:!0,attribute:"action-bar-viewport-centered-below",converter:ee})],o.prototype,"actionBarViewportCenteredBelow",2),i([d({type:Boolean,reflect:!0,attribute:"clear-on-escape"})],o.prototype,"clearOnEscape",2),i([d({type:Boolean,reflect:!0})],o.prototype,"loading",2),i([d({attribute:"skeleton-rows",type:Number})],o.prototype,"skeletonRows",2),i([d({type:Boolean,reflect:!0})],o.prototype,"syncing",2),i([d({reflect:!0})],o.prototype,"density",2),i([d({type:Boolean,reflect:!0})],o.prototype,"clickable",2),i([d({type:Boolean,reflect:!0})],o.prototype,"infinite",2),i([d({type:Boolean,reflect:!0})],o.prototype,"virtualize",2),i([d({attribute:"page-size",type:Number})],o.prototype,"pageSize",2),i([d({attribute:"virtualize-threshold",type:Number})],o.prototype,"virtualizeThreshold",2),i([d({attribute:"buffer-pages",type:Number})],o.prototype,"bufferPages",2),i([d({attribute:"has-more",type:Boolean,reflect:!0})],o.prototype,"hasMore",2),i([d({attribute:"loading-more",type:Boolean,reflect:!0})],o.prototype,"loadingMore",2),i([d({attribute:"root-margin"})],o.prototype,"rootMargin",2),i([d({attribute:"loading-more-label"})],o.prototype,"loadingMoreLabel",2),i([d({attribute:!1})],o.prototype,"actions",2),i([d({attribute:"selected-label"})],o.prototype,"selectedLabel",2),i([d({attribute:"select-all-label"})],o.prototype,"selectAllLabel",2),i([d({attribute:"deselect-all-label"})],o.prototype,"deselectAllLabel",2),i([d({attribute:"select-all-aria-label"})],o.prototype,"selectAllAriaLabel",2),i([d({attribute:"deselect-all-aria-label"})],o.prototype,"deselectAllAriaLabel",2),i([d({attribute:"select-row-aria-label"})],o.prototype,"selectRowAriaLabel",2),i([d({attribute:"toolbar-aria-label"})],o.prototype,"toolbarAriaLabel",2),i([d({attribute:"close-action-bar-aria-label"})],o.prototype,"closeActionBarAriaLabel",2),i([d({attribute:!1})],o.prototype,"columns",2),i([d({attribute:!1})],o.prototype,"data",2),i([d({attribute:!1})],o.prototype,"rowAction",2),i([d({attribute:!1})],o.prototype,"rowKey",2),i([F()],o.prototype,"internalSelection",2),i([A("#table-sentinel")],o.prototype,"sentinelEl",2),i([A("#frame")],o.prototype,"frameEl",2),i([A("#scroll-shadow-left")],o.prototype,"leftShadowEl",2),i([A("#scroll-shadow-right")],o.prototype,"rightShadowEl",2),i([A("#announcer")],o.prototype,"announcerEl",2),o=i([K(se)],o);export{o as EunomiaTable,se as EunomiaTableTagName};
|
|
1080
1083
|
/*! Bundled license information:
|
|
1081
1084
|
|
|
1082
1085
|
lit-html/directives/repeat.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunks/chunk-
|
|
1
|
+
import{a as m}from"./chunks/chunk-DWTNRFWW.js";import{a as u}from"./chunks/chunk-NK5SGOBP.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);
|