@eunomia/elements 1.0.0-beta.4 → 1.0.0-beta.6
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 +1 -1
- package/dist/breakpoints.d.ts +37 -10
- package/dist/breakpoints.js +38 -10
- package/dist/cdn/components/chunks/{chunk-MMLIPCOY.js → chunk-22D3SRFR.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-4MXL6PZC.js → chunk-2Y2EU2CI.js} +28 -28
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-7KKWYPHY.js} +4 -2
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +1 -0
- package/dist/cdn/components/chunks/chunk-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-NHFWATVN.js → chunk-BQFJR2UP.js} +5 -5
- package/dist/cdn/components/chunks/chunk-EUWUDCBZ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-P32B7BFD.js → chunk-FF3I7C3C.js} +15 -15
- package/dist/cdn/components/chunks/{chunk-74AOAB4X.js → chunk-FOILAXLL.js} +6 -5
- package/dist/cdn/components/chunks/{chunk-E4IS25H7.js → chunk-G5SBDQQ3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-S2UCEWNG.js → chunk-JYIIWN2P.js} +13 -11
- package/dist/cdn/components/chunks/{chunk-EOWBYZV7.js → chunk-KDN4O5W2.js} +26 -13
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-L2ADCEN7.js} +1 -1
- package/dist/cdn/components/chunks/chunk-LMVW522V.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-MOMYII3P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-SIHZFOTK.js → chunk-MQQ4BGVJ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-A4EQSU36.js → chunk-O7PHBLH2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-PD62MBOJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KBH5PCUO.js → chunk-PE4DAXHQ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-GSJEJLFA.js → chunk-PMPSJG5V.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-EJIX2D4Z.js → chunk-QZ5SHR3I.js} +15 -11
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +1 -0
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-YGUJJ25C.js → chunk-SZYEBMG6.js} +11 -10
- package/dist/cdn/components/chunks/chunk-UDVB4LAE.js +56 -0
- package/dist/cdn/components/chunks/{chunk-UAGCQF23.js → chunk-UYZR4JXZ.js} +17 -12
- package/dist/cdn/components/chunks/chunk-VG6NAAIV.js +1 -0
- package/dist/cdn/components/chunks/chunk-VJCNHMQZ.js +10 -0
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +38 -0
- package/dist/cdn/components/chunks/{chunk-BMQOI7HX.js → chunk-VYFR364B.js} +128 -74
- package/dist/cdn/components/chunks/{chunk-IJ5WFMK4.js → chunk-XDPRWUKN.js} +7 -6
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RJCJXB7Y.js → chunk-ZKZV2YG5.js} +18 -18
- package/dist/cdn/components/eun-alert.js +24 -16
- package/dist/cdn/components/eun-animate.js +12 -6
- package/dist/cdn/components/eun-badge.js +7 -7
- package/dist/cdn/components/eun-breadcrumb.js +25 -41
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +68 -66
- package/dist/cdn/components/eun-card.js +67 -13
- package/dist/cdn/components/eun-carousel.js +66 -35
- package/dist/cdn/components/eun-check-card.js +13 -6
- package/dist/cdn/components/eun-checkbox-list.js +4 -4
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +1 -1
- package/dist/cdn/components/eun-collapse.js +87 -39
- package/dist/cdn/components/eun-color-picker.js +54 -53
- package/dist/cdn/components/eun-counter.js +14 -13
- package/dist/cdn/components/eun-date-picker.js +66 -63
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +1 -1
- package/dist/cdn/components/eun-drawer.js +26 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -5
- package/dist/cdn/components/eun-fab.js +20 -19
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +79 -22
- package/dist/cdn/components/eun-image-carousel.js +92 -47
- package/dist/cdn/components/eun-infinite-list.js +23 -11
- package/dist/cdn/components/eun-input-file.js +14 -13
- package/dist/cdn/components/eun-input-phone.js +26 -26
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +174 -27
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +29 -22
- package/dist/cdn/components/eun-pagination.js +17 -12
- package/dist/cdn/components/eun-password-strength.js +6 -2
- package/dist/cdn/components/eun-progress-bar.js +13 -5
- package/dist/cdn/components/eun-radio-card.js +16 -9
- package/dist/cdn/components/eun-radio-list.js +4 -4
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +8 -8
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +42 -42
- package/dist/cdn/components/eun-search.js +21 -20
- package/dist/cdn/components/eun-select.js +12 -11
- package/dist/cdn/components/eun-sidebar.js +34 -20
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +15 -14
- package/dist/cdn/components/eun-sliding-card.js +8 -4
- package/dist/cdn/components/eun-step.js +17 -6
- package/dist/cdn/components/eun-stepper.js +17 -6
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +22 -17
- package/dist/cdn/components/eun-tab-panel.js +11 -3
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +572 -31
- package/dist/cdn/components/eun-tag.js +13 -7
- package/dist/cdn/components/eun-textarea.js +24 -24
- package/dist/cdn/components/eun-time-picker.js +21 -19
- package/dist/cdn/components/eun-toast.js +36 -16
- package/dist/cdn/components/eun-toggle-group.js +64 -37
- package/dist/cdn/components/eun-toggle-item.js +24 -21
- package/dist/cdn/components/eun-toggle.js +12 -10
- package/dist/cdn/components/eun-toolbar.js +62 -52
- package/dist/cdn/components/eun-tooltip.js +30 -14
- package/dist/cdn/styles/breakpoints.scss +8 -0
- package/dist/cdn/styles/eunomia-grid.scss +6 -0
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +4 -3
- package/dist/cdn/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/dist/cdn/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/dist/cdn/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/dist/cdn/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/dist/cdn/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/components/action/button/button.d.ts +51 -19
- package/dist/components/action/button/button.js +107 -24
- package/dist/components/action/button/button.styles.js +115 -62
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +10 -10
- package/dist/components/action/dropdown-button/dropdown-button.js +18 -17
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +3 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +5 -6
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +3 -2
- package/dist/components/action/fab/fab.d.ts +7 -6
- package/dist/components/action/fab/fab.js +11 -8
- package/dist/components/action/fab/fab.styles.js +18 -17
- package/dist/components/action/link/link.d.ts +72 -9
- package/dist/components/action/link/link.js +183 -23
- package/dist/components/action/link/link.styles.js +146 -10
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +3 -3
- package/dist/components/action/shared-styles/button-palette.styles.js +29 -29
- package/dist/components/action/toggle/toggle-group.d.ts +17 -5
- package/dist/components/action/toggle/toggle-group.js +46 -19
- package/dist/components/action/toggle/toggle-group.styles.d.ts +4 -1
- package/dist/components/action/toggle/toggle-group.styles.js +56 -27
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +20 -17
- package/dist/components/action/toggle/toggle.d.ts +2 -0
- package/dist/components/action/toggle/toggle.js +2 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle.styles.js +12 -8
- package/dist/components/alert/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert/alert.js +2 -0
- package/dist/components/alert/alert/alert.styles.js +23 -13
- package/dist/components/alert/drawer/drawer.d.ts +3 -1
- package/dist/components/alert/drawer/drawer.js +5 -3
- package/dist/components/alert/drawer/drawer.styles.js +25 -9
- package/dist/components/alert/modal/modal.d.ts +11 -9
- package/dist/components/alert/modal/modal.js +15 -13
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +2 -0
- package/dist/components/alert/toast/toast.js +2 -0
- package/dist/components/alert/toast/toast.styles.js +37 -15
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +4 -4
- package/dist/components/content/card/card.d.ts +39 -7
- package/dist/components/content/card/card.js +71 -7
- package/dist/components/content/card/card.styles.js +58 -11
- package/dist/components/content/card/image-card.d.ts +62 -7
- package/dist/components/content/card/image-card.js +121 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +4 -1
- package/dist/components/content/card/sliding-card.js +3 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/collapse/collapse.d.ts +39 -12
- package/dist/components/content/collapse/collapse.js +65 -25
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +69 -18
- package/dist/components/content/description-list/description-list.d.ts +87 -0
- package/dist/components/content/description-list/description-list.js +107 -0
- package/dist/components/content/description-list/description-list.styles.d.ts +1 -0
- package/dist/components/content/description-list/description-list.styles.js +185 -0
- package/dist/components/content/icon/icon.d.ts +14 -2
- package/dist/components/content/icon/icon.js +54 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -2
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +48 -45
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- package/dist/components/content/password-strength/password-strength.styles.js +5 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +12 -4
- package/dist/components/content/shared-styles/card-link.styles.js +5 -3
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +5 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +19 -14
- package/dist/components/content/tag/tag.d.ts +4 -0
- package/dist/components/content/tag/tag.js +4 -0
- package/dist/components/content/tag/tag.styles.js +14 -4
- package/dist/components/content/tooltip/tooltip.d.ts +3 -2
- package/dist/components/content/tooltip/tooltip.js +9 -16
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +4 -1
- package/dist/components/form/checkbox/check-card.js +4 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox-list.js +11 -7
- package/dist/components/form/checkbox/checkbox.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox.js +4 -1
- package/dist/components/form/checkbox/checkbox.styles.js +2 -2
- package/dist/components/form/color-picker/color-picker.d.ts +10 -4
- package/dist/components/form/color-picker/color-picker.js +23 -25
- package/dist/components/form/color-picker/color-picker.styles.js +6 -5
- package/dist/components/form/counter/counter.d.ts +7 -4
- package/dist/components/form/counter/counter.js +8 -5
- package/dist/components/form/counter/counter.styles.js +10 -9
- package/dist/components/form/date-picker/date-picker.d.ts +40 -36
- package/dist/components/form/date-picker/date-picker.js +35 -45
- package/dist/components/form/date-picker/date-picker.styles.js +13 -10
- package/dist/components/form/input/input.d.ts +10 -4
- package/dist/components/form/input/input.js +12 -6
- package/dist/components/form/input-file/input-file.d.ts +4 -1
- package/dist/components/form/input-file/input-file.js +8 -5
- package/dist/components/form/input-file/input-file.styles.js +3 -2
- package/dist/components/form/input-phone/input-phone.d.ts +11 -5
- package/dist/components/form/input-phone/input-phone.js +16 -20
- package/dist/components/form/input-phone/input-phone.styles.js +16 -16
- package/dist/components/form/label/label.styles.js +3 -3
- package/dist/components/form/radio/radio-card.d.ts +5 -2
- package/dist/components/form/radio/radio-card.js +5 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +5 -2
- package/dist/components/form/radio/radio-list.js +14 -10
- package/dist/components/form/radio/radio.d.ts +5 -2
- package/dist/components/form/radio/radio.js +5 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- package/dist/components/form/search/search.d.ts +2 -1
- package/dist/components/form/search/search.js +6 -15
- package/dist/components/form/search/search.styles.js +8 -7
- package/dist/components/form/select/select.d.ts +12 -5
- package/dist/components/form/select/select.js +18 -21
- package/dist/components/form/select/select.styles.js +3 -2
- package/dist/components/form/shared-styles/card.styles.js +5 -4
- package/dist/components/form/shared-styles/field.styles.js +21 -11
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/slider/slider.d.ts +4 -1
- package/dist/components/form/slider/slider.js +5 -2
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +4 -1
- package/dist/components/form/switch/switch.js +4 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +10 -4
- package/dist/components/form/textarea/textarea.js +18 -12
- package/dist/components/form/time-picker/time-picker-columns.styles.js +4 -2
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -1
- package/dist/components/form/time-picker/time-picker.d.ts +9 -5
- package/dist/components/form/time-picker/time-picker.js +25 -29
- package/dist/components/form/time-picker/time-picker.styles.js +9 -8
- package/dist/components/layout/animate/animate.d.ts +41 -11
- package/dist/components/layout/animate/animate.js +48 -16
- package/dist/components/layout/animate/animate.styles.js +9 -16
- package/dist/components/layout/infinite-list/infinite-list.d.ts +33 -10
- package/dist/components/layout/infinite-list/infinite-list.js +115 -18
- package/dist/components/layout/infinite-list/infinite-list.styles.d.ts +3 -0
- package/dist/components/layout/infinite-list/infinite-list.styles.js +17 -5
- package/dist/components/loader/loader/loader.styles.js +3 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +31 -45
- package/dist/components/navigation/breadcrumb/breadcrumb.js +111 -77
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +22 -26
- package/dist/components/navigation/carousel/carousel.d.ts +30 -10
- package/dist/components/navigation/carousel/carousel.js +37 -18
- package/dist/components/navigation/carousel/carousel.styles.js +60 -20
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +2 -0
- package/dist/components/navigation/sidebar/sidebar.js +2 -0
- package/dist/components/navigation/sidebar/sidebar.styles.js +27 -11
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.styles.js +16 -5
- package/dist/components/navigation/tabs/tab/tab.d.ts +11 -0
- package/dist/components/navigation/tabs/tab/tab.js +11 -0
- package/dist/components/navigation/tabs/tab/tab.styles.js +22 -16
- package/dist/components/navigation/tabs/tab-group/tab-group.js +7 -8
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +19 -14
- package/dist/components/navigation/tabs/tab-panel/tab-panel.d.ts +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.js +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +18 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +17 -49
- package/dist/components/navigation/toolbar/toolbar.js +23 -71
- package/dist/components/navigation/toolbar/toolbar.styles.js +59 -36
- package/dist/events/table-row-click.event.d.ts +5 -4
- package/dist/events/table-row-click.event.js +10 -5
- package/dist/features/scheduler/calendar/calendar.d.ts +12 -12
- package/dist/features/scheduler/calendar/calendar.js +15 -14
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +21 -35
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +12 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +9 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +16 -10
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +2 -2
- package/dist/features/table/table/table-native.styles.d.ts +28 -0
- package/dist/features/table/table/table-native.styles.js +502 -0
- package/dist/features/table/table/table.d.ts +342 -294
- package/dist/features/table/table/table.js +820 -546
- package/dist/features/table/table/table.styles.js +31 -17
- package/dist/features/table/table/table.types.d.ts +18 -23
- package/dist/features/table/table/table.utils.d.ts +6 -36
- package/dist/features/table/table/table.utils.js +16 -65
- package/dist/features/table/table-action-bar/table-action-bar.d.ts +33 -16
- package/dist/features/table/table-action-bar/table-action-bar.js +18 -25
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +34 -0
- package/dist/i18n/en.js +34 -0
- package/dist/i18n/fr.js +38 -0
- package/dist/index.d.ts +7 -13
- package/dist/index.js +6 -10
- package/dist/jsx.d.ts +1 -1
- package/dist/mixins/button.mixin.d.ts +10 -9
- package/dist/mixins/button.mixin.js +14 -6
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.js +4 -5
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +17 -1
- package/dist/mixins/form.mixin.js +80 -25
- package/dist/mixins/radio.mixin.js +4 -5
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/animate-ssr.css +27 -72
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +184 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toolbar-ssr.css +77 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/drag-drop.utils.js +18 -2
- package/dist/utils/dropdown-menu.utils.d.ts +2 -2
- package/dist/utils/dropdown-menu.utils.js +4 -14
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/media.styles.d.ts +19 -0
- package/dist/utils/media.styles.js +23 -0
- package/dist/utils/motion.utils.d.ts +40 -0
- package/dist/utils/motion.utils.js +51 -0
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +9 -2
- package/dist/utils/theme-generator.utils.js +62 -21
- package/package.json +24 -29
- package/styles/breakpoints.scss +8 -0
- package/styles/eunomia-grid.scss +6 -0
- package/styles/themes/eunomia-theme.scss +4 -3
- package/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/cdn/components/chunks/chunk-2JLDJFYD.js +0 -48
- package/dist/cdn/components/chunks/chunk-A6KGFALA.js +0 -132
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-CEDHJUUH.js +0 -1
- package/dist/cdn/components/chunks/chunk-D2M4BV5Y.js +0 -328
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +0 -1
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +0 -38
- package/dist/cdn/components/chunks/chunk-PCM7D3YF.js +0 -84
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +0 -93
- package/dist/cdn/components/eun-table-cell.js +0 -1
- package/dist/cdn/components/eun-table-column.js +0 -1
- package/dist/cdn/components/eun-table-header.js +0 -1
- package/dist/cdn/components/eun-table-item.js +0 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +0 -1
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +0 -77
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +0 -130
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +0 -78
- package/dist/features/table/native-table.css +0 -276
- package/dist/features/table/shared-styles/table-row.styles.d.ts +0 -7
- package/dist/features/table/shared-styles/table-row.styles.js +0 -47
- package/dist/features/table/shared-styles/table-shared.styles.d.ts +0 -23
- package/dist/features/table/shared-styles/table-shared.styles.js +0 -33
- package/dist/features/table/table-cell/table-cell.d.ts +0 -59
- package/dist/features/table/table-cell/table-cell.js +0 -73
- package/dist/features/table/table-cell/table-cell.styles.d.ts +0 -1
- package/dist/features/table/table-cell/table-cell.styles.js +0 -46
- package/dist/features/table/table-column/table-column.d.ts +0 -73
- package/dist/features/table/table-column/table-column.js +0 -89
- package/dist/features/table/table-column/table-column.styles.d.ts +0 -1
- package/dist/features/table/table-column/table-column.styles.js +0 -51
- package/dist/features/table/table-header/table-header.d.ts +0 -102
- package/dist/features/table/table-header/table-header.js +0 -165
- package/dist/features/table/table-header/table-header.styles.d.ts +0 -1
- package/dist/features/table/table-header/table-header.styles.js +0 -147
- package/dist/features/table/table-item/table-item.d.ts +0 -179
- package/dist/features/table/table-item/table-item.js +0 -291
- package/dist/features/table/table-item/table-item.styles.d.ts +0 -1
- package/dist/features/table/table-item/table-item.styles.js +0 -404
- package/dist/features/table/table-managed/table-managed.d.ts +0 -19
- package/dist/features/table/table-managed/table-managed.js +0 -128
- package/dist/features/table/table-skeleton-row/table-skeleton-row.d.ts +0 -46
- package/dist/features/table/table-skeleton-row/table-skeleton-row.js +0 -110
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.d.ts +0 -12
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +0 -65
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
- package/dist/mixins/table-row.mixin.d.ts +0 -37
- package/dist/mixins/table-row.mixin.js +0 -103
- package/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
package/dist/i18n/fr.js
CHANGED
|
@@ -63,9 +63,16 @@ export const fr = {
|
|
|
63
63
|
carousel: {
|
|
64
64
|
ofTotal: (index, total) => `${index} sur ${total}`,
|
|
65
65
|
slideNavigation: "Navigation des diapositives",
|
|
66
|
+
previous: "Diapositive précédente",
|
|
67
|
+
next: "Diapositive suivante",
|
|
66
68
|
goToSlide: (index, total) => `Aller à la diapositive ${index} sur ${total}`,
|
|
67
69
|
},
|
|
68
70
|
imageCarousel: {
|
|
71
|
+
gallery: "Galerie d'images",
|
|
72
|
+
previous: "Image précédente",
|
|
73
|
+
next: "Image suivante",
|
|
74
|
+
expand: "Voir l'image en taille réelle",
|
|
75
|
+
lightbox: "Visionneuse d'images",
|
|
69
76
|
selectImage: "Sélectionner une image",
|
|
70
77
|
showImage: (index, total) => `Afficher l'image ${index} sur ${total}`,
|
|
71
78
|
imageNavigation: "Navigation des images",
|
|
@@ -75,4 +82,35 @@ export const fr = {
|
|
|
75
82
|
chip: {
|
|
76
83
|
remove: "Retirer",
|
|
77
84
|
},
|
|
85
|
+
infiniteList: {
|
|
86
|
+
loadingMore: "Chargement d'autres éléments…",
|
|
87
|
+
itemsLoaded: (count) => count > 1
|
|
88
|
+
? `${count} éléments supplémentaires chargés`
|
|
89
|
+
: `${count} élément supplémentaire chargé`,
|
|
90
|
+
},
|
|
91
|
+
table: {
|
|
92
|
+
loadingMore: "Chargement d'autres lignes…",
|
|
93
|
+
selected: "sélectionnée(s)",
|
|
94
|
+
selectAll: "Tout sélectionner",
|
|
95
|
+
deselectAll: "Tout désélectionner",
|
|
96
|
+
selectAllRows: "Sélectionner toutes les lignes",
|
|
97
|
+
deselectAllRows: "Désélectionner toutes les lignes",
|
|
98
|
+
selectRow: "Sélectionner la ligne",
|
|
99
|
+
selectionActions: "Actions de sélection",
|
|
100
|
+
clearSelection: "Vider la sélection",
|
|
101
|
+
rowActions: "Actions de la ligne",
|
|
102
|
+
rowsLoaded: (count) => count > 1
|
|
103
|
+
? `${count} lignes supplémentaires chargées`
|
|
104
|
+
: `${count} ligne supplémentaire chargée`,
|
|
105
|
+
},
|
|
106
|
+
link: {
|
|
107
|
+
opensInNewTab: "ouvre dans un nouvel onglet",
|
|
108
|
+
},
|
|
109
|
+
validation: {
|
|
110
|
+
valueMissing: "Ce champ est obligatoire",
|
|
111
|
+
tooShort: (min, length) => `Saisissez au moins ${min} caractères (actuellement ${length}).`,
|
|
112
|
+
tooLong: (max, length) => `Saisissez au plus ${max} caractères (actuellement ${length}).`,
|
|
113
|
+
invalidDate: "Saisissez une date valide",
|
|
114
|
+
invalidTime: "Saisissez une heure valide",
|
|
115
|
+
},
|
|
78
116
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { EunomiaInfiniteList, EunomiaInfiniteListTagName, } from "./components/l
|
|
|
4
4
|
export { EunomiaDivider, EunomiaDividerTagName, } from "./components/layout/divider/divider.js";
|
|
5
5
|
export type { EunomiaDividerOrientation } from "./components/layout/divider/divider.js";
|
|
6
6
|
export { EunomiaButton, EunomiaButtonTagName, } from "./components/action/button/button.js";
|
|
7
|
-
export type {
|
|
7
|
+
export type { EunomiaActionColor, EunomiaSeverity, EunomiaAppearance, EunomiaFieldAppearance, EunomiaTone, EunomiaSize, } from "./types/variant.type.js";
|
|
8
8
|
export { EunomiaFab, EunomiaFabTagName } from "./components/action/fab/fab.js";
|
|
9
9
|
export type { EunomiaFabPosition } from "./components/action/fab/fab.js";
|
|
10
10
|
export { EunomiaDropdownButton, EunomiaDropdownButtonTagName, } from "./components/action/dropdown-button/dropdown-button.js";
|
|
@@ -18,10 +18,12 @@ export { EunomiaLink, EunomiaLinkTagName, } from "./components/action/link/link.
|
|
|
18
18
|
export { EunomiaIcon, EunomiaIconTagName, setIconBaseUrl, } from "./components/content/icon/icon.js";
|
|
19
19
|
export type { EunomiaIconName, EunomiaIconType, } from "./components/content/icon/icon.type.js";
|
|
20
20
|
export { EunomiaTag, EunomiaTagTagName } from "./components/content/tag/tag.js";
|
|
21
|
+
export { EunomiaDescriptionList, EunomiaDescriptionListTagName, } from "./components/content/description-list/description-list.js";
|
|
22
|
+
export type { EunomiaDescriptionListAlign, EunomiaDescriptionListLayout, } from "./components/content/description-list/description-list.js";
|
|
21
23
|
export { EunomiaChip, EunomiaChipTagName, } from "./components/content/chip/chip.js";
|
|
22
24
|
export type { EunomiaChipColor, EunomiaChipAppearance, EunomiaChipSeverity, EunomiaChipSize, EunomiaChipAvatarShape, } from "./components/content/chip/chip.js";
|
|
23
25
|
export { EunomiaBadge, EunomiaBadgeTagName, } from "./components/content/badge/badge.js";
|
|
24
|
-
export type { EunomiaBadgeSize,
|
|
26
|
+
export type { EunomiaBadgeSize, EunomiaBadgeColor, } from "./components/content/badge/badge.js";
|
|
25
27
|
export { EunomiaCollapse, EunomiaCollapseTagName, } from "./components/content/collapse/collapse.js";
|
|
26
28
|
export { EunomiaCard, EunomiaCardTagName, } from "./components/content/card/card.js";
|
|
27
29
|
export { EunomiaImageCard, EunomiaImageCardTagName, } from "./components/content/card/image-card.js";
|
|
@@ -41,8 +43,6 @@ export { EunomiaTabPanel, EunomiaTabPanelTagName, } from "./components/navigatio
|
|
|
41
43
|
export { EunomiaCarousel, EunomiaCarouselTagName, } from "./components/navigation/carousel/carousel.js";
|
|
42
44
|
export type { EunomiaCarouselLayout } from "./components/navigation/carousel/carousel.js";
|
|
43
45
|
export { EunomiaBreadcrumb, EunomiaBreadcrumbTagName, } from "./components/navigation/breadcrumb/breadcrumb.js";
|
|
44
|
-
export type { EunomiaBreadcrumbItemData } from "./components/navigation/breadcrumb/breadcrumb.js";
|
|
45
|
-
export { EunomiaBreadcrumbItem, EunomiaBreadcrumbItemTagName, } from "./components/navigation/breadcrumb/breadcrumb-item.js";
|
|
46
46
|
export { EunomiaPagination, EunomiaPaginationTagName, } from "./components/navigation/pagination/pagination.js";
|
|
47
47
|
export { EunomiaStepper, EunomiaStepperTagName, } from "./components/navigation/stepper/stepper.js";
|
|
48
48
|
export type { EunomiaStepperItemState, EunomiaStepperOrientation, EunomiaStepperStepData, EunomiaStepperSubstepData, EunomiaStepperVariant, } from "./components/navigation/stepper/stepper.js";
|
|
@@ -90,21 +90,15 @@ export type { EunomiaSkeletonVariant } from "./components/loader/skeleton/skelet
|
|
|
90
90
|
export { EunomiaScheduler, EunomiaSchedulerTagName, } from "./features/scheduler/scheduler/scheduler.js";
|
|
91
91
|
export { EunomiaCalendar, EunomiaCalendarTagName, } from "./features/scheduler/calendar/calendar.js";
|
|
92
92
|
export { EunomiaSchedulerEventCard, EunomiaSchedulerEventCardTagName, } from "./features/scheduler/scheduler-event/scheduler-event.js";
|
|
93
|
-
export type {
|
|
93
|
+
export type { EunomiaSchedulerEventAppearance } from "./features/scheduler/scheduler-event/scheduler-event.js";
|
|
94
94
|
export { EunomiaSchedulerEventEditor, EunomiaSchedulerEventEditorTagName, } from "./features/scheduler/scheduler-event-editor/scheduler-event-editor.js";
|
|
95
95
|
export type { EunomiaSchedulerEvent, EunomiaSchedulerEventColor, EunomiaSchedulerEventPriority, EunomiaSchedulerGuest, EunomiaSchedulerGuestStatus, EunomiaSchedulerView, } from "./features/scheduler/shared/scheduler.types.js";
|
|
96
96
|
export { EunomiaTable, EunomiaTableTagName, } from "./features/table/table/table.js";
|
|
97
|
-
export { EunomiaTableHeader, EunomiaTableHeaderTagName, } from "./features/table/table-header/table-header.js";
|
|
98
|
-
export { EunomiaTableColumn, EunomiaTableColumnTagName, } from "./features/table/table-column/table-column.js";
|
|
99
|
-
export type { EunomiaTableColumnSort } from "./features/table/table-column/table-column.js";
|
|
100
|
-
export { EunomiaTableItem, EunomiaTableItemTagName, } from "./features/table/table-item/table-item.js";
|
|
101
|
-
export { EunomiaTableCell, EunomiaTableCellTagName, } from "./features/table/table-cell/table-cell.js";
|
|
102
97
|
export { EunomiaTableActionBar, EunomiaTableActionBarTagName, } from "./features/table/table-action-bar/table-action-bar.js";
|
|
103
|
-
export {
|
|
104
|
-
export type { EunomiaTableAction, EunomiaTableColumnDef, EunomiaTableRowButtonActionDef, EunomiaTableRowDropdownActionDef, EunomiaTableRowActionDef, } from "./features/table/table/table.types.js";
|
|
98
|
+
export type { EunomiaTableAction, EunomiaTableColumnDef, EunomiaTableColumnSort, EunomiaTableRowButtonActionDef, EunomiaTableRowDropdownActionDef, EunomiaTableRowActionDef, } from "./features/table/table/table.types.js";
|
|
105
99
|
export { debounce, throttle } from "./utils/time.utils.js";
|
|
106
100
|
export { createDragReorder } from "./utils/drag-drop.utils.js";
|
|
107
|
-
export { EUNOMIA_BREAKPOINTS } from "./breakpoints.js";
|
|
101
|
+
export { EUNOMIA_BREAKPOINTS, mediaBelow, mediaFrom } from "./breakpoints.js";
|
|
108
102
|
export type { EunomiaBreakpoint } from "./breakpoints.js";
|
|
109
103
|
export { setDefaultLocale, getDefaultLocale } from "./i18n/index.js";
|
|
110
104
|
export type { Dictionary } from "./i18n/index.js";
|
package/dist/index.js
CHANGED
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
// `buildThemeCss` is its pure counterpart, returning the same tokens as a
|
|
29
29
|
// stylesheet so an SSR app can ship the brand in the HTML itself instead
|
|
30
30
|
// of flashing the base theme until `initializeTheme` runs after hydration.
|
|
31
|
-
// `EUNOMIA_BREAKPOINTS`
|
|
32
|
-
// code
|
|
33
|
-
// react to internally
|
|
31
|
+
// `EUNOMIA_BREAKPOINTS`, `mediaBelow` and `mediaFrom` are exported so a
|
|
32
|
+
// consumer's own responsive code switches at the exact same widths the
|
|
33
|
+
// components react to internally. They're also published on their own as
|
|
34
|
+
// the `./breakpoints.js` subpath, which registers no component.
|
|
34
35
|
export { EunomiaAnimate, EunomiaAnimateTagName, } from "./components/layout/animate/animate.js";
|
|
35
36
|
export { EunomiaInfiniteList, EunomiaInfiniteListTagName, } from "./components/layout/infinite-list/infinite-list.js";
|
|
36
37
|
export { EunomiaDivider, EunomiaDividerTagName, } from "./components/layout/divider/divider.js";
|
|
@@ -44,6 +45,7 @@ export { EunomiaToggleGroup, EunomiaToggleGroupTagName, } from "./components/act
|
|
|
44
45
|
export { EunomiaLink, EunomiaLinkTagName, } from "./components/action/link/link.js";
|
|
45
46
|
export { EunomiaIcon, EunomiaIconTagName, setIconBaseUrl, } from "./components/content/icon/icon.js";
|
|
46
47
|
export { EunomiaTag, EunomiaTagTagName } from "./components/content/tag/tag.js";
|
|
48
|
+
export { EunomiaDescriptionList, EunomiaDescriptionListTagName, } from "./components/content/description-list/description-list.js";
|
|
47
49
|
export { EunomiaChip, EunomiaChipTagName, } from "./components/content/chip/chip.js";
|
|
48
50
|
export { EunomiaBadge, EunomiaBadgeTagName, } from "./components/content/badge/badge.js";
|
|
49
51
|
export { EunomiaCollapse, EunomiaCollapseTagName, } from "./components/content/collapse/collapse.js";
|
|
@@ -60,7 +62,6 @@ export { EunomiaTab, EunomiaTabTagName, } from "./components/navigation/tabs/tab
|
|
|
60
62
|
export { EunomiaTabPanel, EunomiaTabPanelTagName, } from "./components/navigation/tabs/tab-panel/tab-panel.js";
|
|
61
63
|
export { EunomiaCarousel, EunomiaCarouselTagName, } from "./components/navigation/carousel/carousel.js";
|
|
62
64
|
export { EunomiaBreadcrumb, EunomiaBreadcrumbTagName, } from "./components/navigation/breadcrumb/breadcrumb.js";
|
|
63
|
-
export { EunomiaBreadcrumbItem, EunomiaBreadcrumbItemTagName, } from "./components/navigation/breadcrumb/breadcrumb-item.js";
|
|
64
65
|
export { EunomiaPagination, EunomiaPaginationTagName, } from "./components/navigation/pagination/pagination.js";
|
|
65
66
|
export { EunomiaStepper, EunomiaStepperTagName, } from "./components/navigation/stepper/stepper.js";
|
|
66
67
|
export { EunomiaStep, EunomiaStepTagName, } from "./components/navigation/stepper/step.js";
|
|
@@ -96,15 +97,10 @@ export { EunomiaCalendar, EunomiaCalendarTagName, } from "./features/scheduler/c
|
|
|
96
97
|
export { EunomiaSchedulerEventCard, EunomiaSchedulerEventCardTagName, } from "./features/scheduler/scheduler-event/scheduler-event.js";
|
|
97
98
|
export { EunomiaSchedulerEventEditor, EunomiaSchedulerEventEditorTagName, } from "./features/scheduler/scheduler-event-editor/scheduler-event-editor.js";
|
|
98
99
|
export { EunomiaTable, EunomiaTableTagName, } from "./features/table/table/table.js";
|
|
99
|
-
export { EunomiaTableHeader, EunomiaTableHeaderTagName, } from "./features/table/table-header/table-header.js";
|
|
100
|
-
export { EunomiaTableColumn, EunomiaTableColumnTagName, } from "./features/table/table-column/table-column.js";
|
|
101
|
-
export { EunomiaTableItem, EunomiaTableItemTagName, } from "./features/table/table-item/table-item.js";
|
|
102
|
-
export { EunomiaTableCell, EunomiaTableCellTagName, } from "./features/table/table-cell/table-cell.js";
|
|
103
100
|
export { EunomiaTableActionBar, EunomiaTableActionBarTagName, } from "./features/table/table-action-bar/table-action-bar.js";
|
|
104
|
-
export { EunomiaTableSkeletonRow, EunomiaTableSkeletonRowTagName, } from "./features/table/table-skeleton-row/table-skeleton-row.js";
|
|
105
101
|
export { debounce, throttle } from "./utils/time.utils.js";
|
|
106
102
|
export { createDragReorder } from "./utils/drag-drop.utils.js";
|
|
107
|
-
export { EUNOMIA_BREAKPOINTS } from "./breakpoints.js";
|
|
103
|
+
export { EUNOMIA_BREAKPOINTS, mediaBelow, mediaFrom } from "./breakpoints.js";
|
|
108
104
|
export { setDefaultLocale, getDefaultLocale } from "./i18n/index.js";
|
|
109
105
|
export { buildPalette, buildTints, buildThemeCss, initializeTheme, } from "./utils/theme-generator.utils.js";
|
|
110
106
|
export { findRichTextColor, formatRichText, getPlainTextLength, joinAlign, parseInlineNodes, RICH_TEXT_COLORS, splitAlign, toHtml, toPlainText, } from "./utils/rich-text.utils.js";
|
package/dist/jsx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="index.d.ts" />
|
|
2
2
|
/**
|
|
3
|
-
* JSX/TSX support for every `eun-*` tag: `<eun-button
|
|
3
|
+
* JSX/TSX support for every `eun-*` tag: `<eun-button color="primary">`
|
|
4
4
|
* type-checks in a `.tsx` file the same way a native `<button>` does, with
|
|
5
5
|
* prop autocomplete and invalid-prop rejection, once this module has been
|
|
6
6
|
* imported anywhere in the program.
|
|
@@ -3,29 +3,30 @@ import { CommandMixinInterface } from "./command.mixin.js";
|
|
|
3
3
|
import { DisabledMixinInterface } from "./disabled.mixin.js";
|
|
4
4
|
import { PopoverMixinInterface } from "./popover.mixin.js";
|
|
5
5
|
import { Constructor } from "../utils/constructor.type.js";
|
|
6
|
-
import {
|
|
6
|
+
import { EunomiaActionColor, EunomiaAppearance, EunomiaSize, EunomiaTone } from "../types/variant.type.js";
|
|
7
7
|
/**
|
|
8
8
|
* The button's native HTML mechanism when clicked inside a form — distinct
|
|
9
|
-
* from every other component's `
|
|
9
|
+
* from every other component's `color`/`appearance`, and left as `type`
|
|
10
10
|
* since it mirrors the real `<button type>` attribute.
|
|
11
11
|
*/
|
|
12
12
|
export type ButtonType = "submit" | "reset" | "button";
|
|
13
13
|
/**
|
|
14
|
-
* All available
|
|
15
|
-
* {@link
|
|
14
|
+
* All available colors for the button component: the semantic
|
|
15
|
+
* {@link EunomiaActionColor} set, plus the neutral, non-semantic grey tones
|
|
16
16
|
* borrowed from {@link EunomiaTone} (`light`/`medium`/`dark`), the same
|
|
17
17
|
* vocabulary `eun-tag`'s `color` uses. They cover a de-emphasized action,
|
|
18
18
|
* such as a secondary link next to a colored CTA, without resorting to
|
|
19
19
|
* manual `--button-*` cssprop overrides.
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type ButtonColor = EunomiaActionColor | Extract<EunomiaTone, "light" | "medium" | "dark">;
|
|
22
22
|
/**
|
|
23
23
|
* All available sizes for the button component.
|
|
24
24
|
*/
|
|
25
25
|
export type ButtonSize = EunomiaSize;
|
|
26
26
|
/**
|
|
27
|
-
* All available button surface treatments —
|
|
28
|
-
*
|
|
27
|
+
* All available button surface treatments — every {@link EunomiaAppearance}
|
|
28
|
+
* value except the field-only `underline` and the scheduler-only
|
|
29
|
+
* `transparent`, since a button (unlike a passive display
|
|
29
30
|
* component) has a hover/focus/active state for `ghost` to reveal itself
|
|
30
31
|
* on, and can be visually elevated (`raised`) the way a static piece of
|
|
31
32
|
* content never is. Not part of {@link ButtonMixinInterface} itself : only
|
|
@@ -33,14 +34,14 @@ export type ButtonSize = EunomiaSize;
|
|
|
33
34
|
* (a floating action button has no `stroke`/`raised`/`flat`/`ghost` look of
|
|
34
35
|
* its own).
|
|
35
36
|
*/
|
|
36
|
-
export type EunomiaButtonAppearance = EunomiaAppearance
|
|
37
|
+
export type EunomiaButtonAppearance = Extract<EunomiaAppearance, "default" | "fill" | "outline" | "flat" | "raised" | "ghost">;
|
|
37
38
|
/**
|
|
38
39
|
* Interface for the ButtonMixin.
|
|
39
40
|
* Extend this in components if needed.
|
|
40
41
|
*/
|
|
41
42
|
export declare class ButtonMixinInterface {
|
|
42
43
|
type?: ButtonType;
|
|
43
|
-
|
|
44
|
+
color?: ButtonColor;
|
|
44
45
|
fixedColor?: boolean;
|
|
45
46
|
size?: ButtonSize;
|
|
46
47
|
rounded?: boolean;
|
|
@@ -22,14 +22,16 @@ export const ButtonMixin = (superClass) => {
|
|
|
22
22
|
super(...arguments);
|
|
23
23
|
/**
|
|
24
24
|
* The button type: "submit", "reset", or "button".
|
|
25
|
-
* Determines behavior when clicked inside a form.
|
|
25
|
+
* Determines behavior when clicked inside a form. Only reflected once it
|
|
26
|
+
* differs from the default, so an SSR framework doesn't see an
|
|
27
|
+
* attribute it never rendered.
|
|
26
28
|
* @default "button"
|
|
27
29
|
*/
|
|
28
30
|
this.type = "button";
|
|
29
31
|
/**
|
|
30
32
|
* Keeps a `light` or `dark` button white or black in every theme.
|
|
31
33
|
* Without it, they follow the grey scale, which flips with the active
|
|
32
|
-
* theme. Has no effect on the other
|
|
34
|
+
* theme. Has no effect on the other colors.
|
|
33
35
|
* @default false
|
|
34
36
|
*/
|
|
35
37
|
this.fixedColor = false;
|
|
@@ -61,13 +63,14 @@ export const ButtonMixin = (superClass) => {
|
|
|
61
63
|
* Lifecycle hook: adds keyboard and click listeners, and sets the
|
|
62
64
|
* default role to "button" if not already defined.
|
|
63
65
|
*
|
|
64
|
-
* Skipped entirely when `href` is set
|
|
66
|
+
* Skipped entirely when `href` is set, or when a native `<a>` is slotted
|
|
67
|
+
* as a direct child : that anchor (internal or the consumer's own)
|
|
65
68
|
* already provides native role, focus and activation semantics, so the
|
|
66
69
|
* host must stay out of the way rather than duplicate them.
|
|
67
70
|
*/
|
|
68
71
|
connectedCallback() {
|
|
69
72
|
super.connectedCallback?.();
|
|
70
|
-
if (this.href) {
|
|
73
|
+
if (this.href || this.querySelector(":scope > a")) {
|
|
71
74
|
return;
|
|
72
75
|
}
|
|
73
76
|
if (!this.hasAttribute("role")) {
|
|
@@ -154,11 +157,16 @@ export const ButtonMixin = (superClass) => {
|
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
159
|
__decorate([
|
|
157
|
-
property({
|
|
160
|
+
property({
|
|
161
|
+
reflect: true,
|
|
162
|
+
converter: {
|
|
163
|
+
toAttribute: (value) => (value === "button" ? null : value),
|
|
164
|
+
},
|
|
165
|
+
})
|
|
158
166
|
], ButtonMixinClass.prototype, "type", void 0);
|
|
159
167
|
__decorate([
|
|
160
168
|
property({ reflect: true })
|
|
161
|
-
], ButtonMixinClass.prototype, "
|
|
169
|
+
], ButtonMixinClass.prototype, "color", void 0);
|
|
162
170
|
__decorate([
|
|
163
171
|
property({ type: Boolean, reflect: true, attribute: "fixed-color" })
|
|
164
172
|
], ButtonMixinClass.prototype, "fixedColor", void 0);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement, nothing, TemplateResult } from "lit";
|
|
2
2
|
import { Constructor } from "../utils/constructor.type.js";
|
|
3
|
+
import { LocalizableMixinInterface } from "./localizable.mixin.js";
|
|
3
4
|
/**
|
|
4
5
|
* The native `target` values a card can be given, mirroring
|
|
5
6
|
* `eun-button`/`eun-link`'s own `target` type.
|
|
@@ -15,7 +16,7 @@ export declare class CardLinkMixinInterface {
|
|
|
15
16
|
get isExternal(): boolean;
|
|
16
17
|
get linkAriaLabel(): string | undefined;
|
|
17
18
|
renderNewTabHint(): TemplateResult | typeof nothing;
|
|
18
|
-
renderExternalLinkBadge(): TemplateResult | typeof nothing;
|
|
19
|
+
renderExternalLinkBadge(slottedBlank?: boolean): TemplateResult | typeof nothing;
|
|
19
20
|
renderCardLink(id: string, content: TemplateResult, className?: string): TemplateResult;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
@@ -37,4 +38,4 @@ export declare class CardLinkMixinInterface {
|
|
|
37
38
|
* @param superClass - The base class to extend (must include LitElement).
|
|
38
39
|
* @returns A class extended with the card link behavior.
|
|
39
40
|
*/
|
|
40
|
-
export declare const CardLinkMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<CardLinkMixinInterface> & T;
|
|
41
|
+
export declare const CardLinkMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<CardLinkMixinInterface & LocalizableMixinInterface> & T;
|
|
@@ -8,6 +8,7 @@ import { html, nothing } from "lit";
|
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
10
|
import { handleLinkNavigation } from "../utils/navigation.utils.js";
|
|
11
|
+
import { LocalizableMixin, } from "./localizable.mixin.js";
|
|
11
12
|
/**
|
|
12
13
|
* CardLinkMixin adds the "link state" shared by every card in this family
|
|
13
14
|
* (`eun-card`, `eun-image-card`, `eun-sliding-card`) : `href`/`target`/
|
|
@@ -28,7 +29,7 @@ import { handleLinkNavigation } from "../utils/navigation.utils.js";
|
|
|
28
29
|
* @returns A class extended with the card link behavior.
|
|
29
30
|
*/
|
|
30
31
|
export const CardLinkMixin = (superClass) => {
|
|
31
|
-
class CardLinkMixinClass extends superClass {
|
|
32
|
+
class CardLinkMixinClass extends LocalizableMixin(superClass) {
|
|
32
33
|
/**
|
|
33
34
|
* Whether the link, if any, opens in a new tab.
|
|
34
35
|
*/
|
|
@@ -44,7 +45,9 @@ export const CardLinkMixin = (superClass) => {
|
|
|
44
45
|
*/
|
|
45
46
|
get linkAriaLabel() {
|
|
46
47
|
const label = this.ariaLabel ?? undefined;
|
|
47
|
-
return this.isExternal && label
|
|
48
|
+
return this.isExternal && label
|
|
49
|
+
? `${label} (${this.dictionary.link.opensInNewTab})`
|
|
50
|
+
: label;
|
|
48
51
|
}
|
|
49
52
|
/**
|
|
50
53
|
* Gives an SPA router (Next.js, Angular, React Router, Vue Router, ...)
|
|
@@ -71,16 +74,20 @@ export const CardLinkMixin = (superClass) => {
|
|
|
71
74
|
if (!(this.href && this.isExternal) || this.ariaLabel) {
|
|
72
75
|
return nothing;
|
|
73
76
|
}
|
|
74
|
-
|
|
77
|
+
const hint = this.dictionary.link.opensInNewTab;
|
|
78
|
+
return html `<span class="sr-only"> (${hint})</span>`;
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
77
81
|
* The absolute, top-right external-link badge shown when `href` and
|
|
78
82
|
* `target="_blank"` are both set — purely decorative (`aria-hidden`),
|
|
79
83
|
* the accessible "(opens in a new tab)" wording lives on the `<a>`
|
|
80
84
|
* itself (see {@link linkAriaLabel}/{@link renderNewTabHint}).
|
|
85
|
+
*
|
|
86
|
+
* @param slottedBlank whether a slotted anchor, rather than `href`,
|
|
87
|
+
* opens in a new tab (its wording goes on its own aria-description).
|
|
81
88
|
*/
|
|
82
|
-
renderExternalLinkBadge() {
|
|
83
|
-
if (!(this.href && this.isExternal)) {
|
|
89
|
+
renderExternalLinkBadge(slottedBlank = false) {
|
|
90
|
+
if (!(this.href && this.isExternal) && !slottedBlank) {
|
|
84
91
|
return nothing;
|
|
85
92
|
}
|
|
86
93
|
return html `
|
|
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { property } from "lit/decorators.js";
|
|
8
|
+
import { hasErrorDisplayChange } from "./form.mixin.js";
|
|
8
9
|
import { ChangeEvent } from "../events/change.event.js";
|
|
9
10
|
/**
|
|
10
11
|
* Mixin adding "checkable" behavior to a component.
|
|
@@ -47,7 +48,7 @@ export const CheckMixin = (superClass) => {
|
|
|
47
48
|
if (this.required && !this.checked) {
|
|
48
49
|
return {
|
|
49
50
|
validity: { valueMissing: true },
|
|
50
|
-
message:
|
|
51
|
+
message: this.validationDictionary.validation.valueMissing,
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
return { validity: {} };
|
|
@@ -98,10 +99,8 @@ export const CheckMixin = (superClass) => {
|
|
|
98
99
|
this.setAttribute("aria-checked", String(this.checked));
|
|
99
100
|
this.updateInternals();
|
|
100
101
|
}
|
|
101
|
-
if (_changedProperties
|
|
102
|
-
|
|
103
|
-
_changedProperties.has("disabled")) {
|
|
104
|
-
this.setAttribute("aria-invalid", String(!this.hideError && !this.disabled && !this.valid));
|
|
102
|
+
if (hasErrorDisplayChange(_changedProperties)) {
|
|
103
|
+
this.setAttribute("aria-invalid", String(this.showError));
|
|
105
104
|
}
|
|
106
105
|
if (_changedProperties.has("required")) {
|
|
107
106
|
this.setAttribute("aria-required", String(this.required));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import { Constructor } from
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "../utils/constructor.type.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface defining the contract for components using DisabledMixin.
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class DisabledMixinInterface {
|
|
|
11
11
|
*
|
|
12
12
|
* When the `disabled` property changes, it automatically updates:
|
|
13
13
|
* - `tabindex` (to prevent focus when disabled),
|
|
14
|
-
* - `aria-disabled` for accessibility.
|
|
14
|
+
* - `aria-disabled` for accessibility, only present while disabled.
|
|
15
15
|
*
|
|
16
16
|
* @param superClass - The base class to extend.
|
|
17
17
|
* @returns A new class extending the base with `disabled` behavior.
|
|
@@ -4,13 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { property } from
|
|
7
|
+
import { property } from "lit/decorators.js";
|
|
8
8
|
/**
|
|
9
9
|
* A mixin that adds a `disabled` property to a LitElement component.
|
|
10
10
|
*
|
|
11
11
|
* When the `disabled` property changes, it automatically updates:
|
|
12
12
|
* - `tabindex` (to prevent focus when disabled),
|
|
13
|
-
* - `aria-disabled` for accessibility.
|
|
13
|
+
* - `aria-disabled` for accessibility, only present while disabled.
|
|
14
14
|
*
|
|
15
15
|
* @param superClass - The base class to extend.
|
|
16
16
|
* @returns A new class extending the base with `disabled` behavior.
|
|
@@ -34,9 +34,14 @@ export const DisabledMixin = (superClass) => {
|
|
|
34
34
|
*/
|
|
35
35
|
updated(_changedProperties) {
|
|
36
36
|
super.updated(_changedProperties);
|
|
37
|
-
if (_changedProperties.has(
|
|
38
|
-
this.setAttribute(
|
|
39
|
-
|
|
37
|
+
if (_changedProperties.has("disabled")) {
|
|
38
|
+
this.setAttribute("tabindex", this.disabled ? "-1" : "0");
|
|
39
|
+
if (this.disabled) {
|
|
40
|
+
this.setAttribute("aria-disabled", "true");
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.removeAttribute("aria-disabled");
|
|
44
|
+
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
42
47
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { Constructor } from "../utils/constructor.type.js";
|
|
3
|
+
import { EunomiaFieldAppearance } from "../types/variant.type.js";
|
|
4
|
+
/**
|
|
5
|
+
* Interface defining the contract for components using FieldAppearanceMixin.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FieldAppearanceMixinInterface {
|
|
8
|
+
appearance?: EunomiaFieldAppearance;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A mixin that adds an `appearance` property to a text-like form field
|
|
12
|
+
* component, controlling how its surface is drawn: bordered box
|
|
13
|
+
* (`outline`, default), muted background with no border (`flat`), or a
|
|
14
|
+
* bottom-only border (`underline`).
|
|
15
|
+
*
|
|
16
|
+
* @param superClass - The base class to extend.
|
|
17
|
+
* @returns A new class extending the base with `appearance` behavior.
|
|
18
|
+
*/
|
|
19
|
+
export declare const FieldAppearanceMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<FieldAppearanceMixinInterface> & T;
|
|
@@ -6,27 +6,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { property } from "lit/decorators.js";
|
|
8
8
|
/**
|
|
9
|
-
* A mixin that adds
|
|
10
|
-
* component, controlling its
|
|
11
|
-
* default),
|
|
12
|
-
* border (`underline`).
|
|
9
|
+
* A mixin that adds an `appearance` property to a text-like form field
|
|
10
|
+
* component, controlling how its surface is drawn: bordered box
|
|
11
|
+
* (`outline`, default), muted background with no border (`flat`), or a
|
|
12
|
+
* bottom-only border (`underline`).
|
|
13
13
|
*
|
|
14
14
|
* @param superClass - The base class to extend.
|
|
15
|
-
* @returns A new class extending the base with `
|
|
15
|
+
* @returns A new class extending the base with `appearance` behavior.
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
class
|
|
17
|
+
export const FieldAppearanceMixin = (superClass) => {
|
|
18
|
+
class FieldAppearanceMixinClass extends superClass {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* How the field's surface is drawn.
|
|
23
23
|
* By default, set to "outline".
|
|
24
24
|
*/
|
|
25
|
-
this.
|
|
25
|
+
this.appearance = "outline";
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
__decorate([
|
|
29
29
|
property({ reflect: true })
|
|
30
|
-
],
|
|
31
|
-
return
|
|
30
|
+
], FieldAppearanceMixinClass.prototype, "appearance", void 0);
|
|
31
|
+
return FieldAppearanceMixinClass;
|
|
32
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, nothing, TemplateResult } from "lit";
|
|
1
|
+
import { LitElement, nothing, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { DisabledMixinInterface } from "./disabled.mixin.js";
|
|
3
3
|
import { ValidatorsMixinInterface } from "./validators.mixin.js";
|
|
4
4
|
import { Constructor } from "../utils/constructor.type.js";
|
|
@@ -20,13 +20,29 @@ export declare class FormMixinInterface<T> {
|
|
|
20
20
|
form: HTMLFormElement | null;
|
|
21
21
|
dirty: boolean;
|
|
22
22
|
touched: boolean;
|
|
23
|
+
validationRequested: boolean;
|
|
23
24
|
controlled: boolean;
|
|
25
|
+
get showError(): boolean;
|
|
24
26
|
get pristine(): boolean;
|
|
25
27
|
get untouched(): boolean;
|
|
26
28
|
get value(): T;
|
|
27
29
|
set value(value: T);
|
|
28
30
|
get defaultValue(): T | undefined;
|
|
29
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Every property {@link FormMixinInterface.showError} depends on, for
|
|
34
|
+
* components mirroring it outside their template (e.g. onto the host's
|
|
35
|
+
* `aria-invalid`).
|
|
36
|
+
*/
|
|
37
|
+
export declare const ERROR_DISPLAY_PROPERTIES: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Whether any property {@link FormMixinInterface.showError} depends on
|
|
40
|
+
* changed in this update.
|
|
41
|
+
*
|
|
42
|
+
* @param changed - The changed properties of the update.
|
|
43
|
+
* @returns true when the error display may have changed.
|
|
44
|
+
*/
|
|
45
|
+
export declare const hasErrorDisplayChange: (changed: PropertyValues) => boolean;
|
|
30
46
|
/**
|
|
31
47
|
* Mixin that adds form-related behavior and value management.
|
|
32
48
|
*
|