@skf-design-system/ui-components 1.0.0-alpha.34 → 1.0.0-alpha.36
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 +20 -27
- package/custom-elements.json +25490 -0
- package/dist/components/accordion/accordion-item.component.d.ts +36 -0
- package/dist/components/accordion/accordion-item.component.js +98 -0
- package/dist/components/accordion/accordion-item.d.ts +3 -3
- package/dist/components/accordion/accordion-item.js +4 -5
- package/dist/components/accordion/accordion-item.styles.js +77 -0
- package/dist/components/accordion/accordion.component.d.ts +10 -14
- package/dist/components/accordion/accordion.component.js +10 -11
- package/dist/components/accordion/accordion.d.ts +0 -1
- package/dist/components/accordion/accordion.js +0 -2
- package/dist/components/alert/alert.component.d.ts +12 -12
- package/dist/components/alert/alert.component.js +57 -55
- package/dist/components/alert/alert.styles.js +50 -51
- package/dist/components/breadcrumb/breadcrumb-item.component.js +60 -0
- package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +63 -0
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +7 -4
- package/dist/components/breadcrumb/breadcrumb.component.js +65 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +25 -0
- package/dist/components/button/button.component.d.ts +17 -14
- package/dist/components/button/button.component.js +73 -61
- package/dist/components/button/button.styles.d.ts +1 -2
- package/dist/components/button/button.styles.js +13 -3
- package/dist/components/card/card.component.d.ts +6 -1
- package/dist/components/card/card.component.js +46 -36
- package/dist/components/card/card.styles.js +37 -23
- package/dist/components/checkbox/checkbox.component.d.ts +17 -13
- package/dist/components/checkbox/checkbox.component.js +74 -61
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
- package/dist/components/checkbox/checkbox.styles.js +1 -5
- package/dist/components/datepicker/datepicker-calendar.component.d.ts +80 -0
- package/dist/components/datepicker/datepicker-calendar.component.js +415 -0
- package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
- package/dist/components/datepicker/datepicker-calendar.js +6 -0
- package/dist/components/datepicker/datepicker-calendar.styles.js +202 -0
- package/dist/components/datepicker/datepicker-popup.component.d.ts +64 -0
- package/dist/components/datepicker/datepicker-popup.component.js +261 -0
- package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
- package/dist/components/datepicker/datepicker-popup.helpers.d.ts +41 -0
- package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
- package/dist/components/datepicker/datepicker-popup.js +6 -0
- package/dist/components/datepicker/datepicker-popup.styles.js +87 -0
- package/dist/components/datepicker/datepicker.component.d.ts +121 -0
- package/dist/components/datepicker/datepicker.component.js +456 -0
- package/dist/components/datepicker/datepicker.d.ts +8 -0
- package/dist/components/datepicker/datepicker.helpers.d.ts +38 -0
- package/dist/components/datepicker/datepicker.helpers.js +31 -0
- package/dist/components/datepicker/datepicker.js +6 -0
- package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
- package/dist/components/datepicker/datepicker.styles.js +18 -0
- package/dist/components/dialog/dialog.component.d.ts +20 -29
- package/dist/components/dialog/dialog.component.js +85 -75
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.styles.js +4 -4
- package/dist/components/divider/divider.component.d.ts +4 -8
- package/dist/components/divider/divider.component.js +24 -46
- package/dist/components/divider/divider.styles.js +34 -30
- package/dist/components/drawer/drawer.component.d.ts +61 -0
- package/dist/components/drawer/drawer.component.js +125 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.js +71 -0
- package/dist/components/header/header.component.d.ts +46 -0
- package/dist/components/header/header.component.js +116 -0
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/header.js +6 -0
- package/dist/components/header/header.styles.js +68 -0
- package/dist/components/heading/heading.component.d.ts +8 -12
- package/dist/components/heading/heading.component.js +52 -24
- package/dist/components/heading/heading.styles.d.ts +1 -2
- package/dist/components/heading/heading.styles.js +35 -37
- package/dist/components/icon/icon.component.d.ts +15 -17
- package/dist/components/icon/icon.component.js +52 -43
- package/dist/components/icon/icon.styles.d.ts +1 -2
- package/dist/components/icon/icon.styles.js +60 -60
- package/dist/components/input/input.component.d.ts +31 -31
- package/dist/components/input/input.component.js +167 -146
- package/dist/components/input/input.controllers.d.ts +20 -6
- package/dist/components/input/input.controllers.js +14 -10
- package/dist/components/link/link.component.d.ts +20 -25
- package/dist/components/link/link.component.js +99 -107
- package/dist/components/link/link.styles.d.ts +1 -2
- package/dist/components/link/link.styles.js +47 -43
- package/dist/components/loader/loader.component.d.ts +1 -1
- package/dist/components/loader/loader.component.js +36 -40
- package/dist/components/loader/loader.styles.d.ts +1 -2
- package/dist/components/loader/loader.styles.js +40 -32
- package/dist/components/logo/logo.component.d.ts +8 -6
- package/dist/components/logo/logo.component.js +55 -51
- package/dist/components/logo/logo.styles.js +26 -16
- package/dist/components/menu/menu-item.component.d.ts +13 -0
- package/dist/components/menu/menu-item.component.js +13 -0
- package/dist/components/{menu-item → menu}/menu-item.d.ts +2 -2
- package/dist/components/{menu-item → menu}/menu-item.styles.js +8 -5
- package/dist/components/menu/menu.component.d.ts +10 -8
- package/dist/components/menu/menu.component.js +8 -10
- package/dist/components/menu/menu.d.ts +2 -2
- package/dist/components/nav/nav-item.component.d.ts +22 -0
- package/dist/components/nav/nav-item.component.js +57 -0
- package/dist/components/nav/nav-item.d.ts +8 -0
- package/dist/components/nav/nav-item.js +6 -0
- package/dist/components/nav/nav-item.styles.js +43 -0
- package/dist/components/nav/nav.component.d.ts +23 -0
- package/dist/components/nav/nav.component.js +55 -0
- package/dist/components/nav/nav.d.ts +8 -0
- package/dist/components/nav/nav.js +6 -0
- package/dist/components/nav/nav.styles.js +23 -0
- package/dist/components/popover/popover.component.d.ts +15 -8
- package/dist/components/popover/popover.component.js +29 -23
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/progress.component.d.ts +4 -2
- package/dist/components/progress/progress.component.js +38 -35
- package/dist/components/progress/progress.d.ts +2 -2
- package/dist/components/progress/progress.styles.js +40 -33
- package/dist/components/radio/radio.component.d.ts +19 -13
- package/dist/components/radio/radio.component.js +12 -12
- package/dist/components/radio/radio.styles.d.ts +1 -2
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
- package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
- package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button-item.js +6 -0
- package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
- package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
- package/dist/components/segmented-button/segmented-button.component.js +73 -0
- package/dist/components/segmented-button/segmented-button.d.ts +8 -0
- package/dist/components/segmented-button/segmented-button.js +6 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
- package/dist/components/segmented-button/segmented-button.styles.js +16 -0
- package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +4 -0
- package/dist/components/select/select-option-group.component.js +50 -0
- package/dist/components/{select-option-group → select}/select-option-group.d.ts +2 -2
- package/dist/components/select/select-option-group.style.d.ts +1 -0
- package/dist/components/select/select-option-group.style.js +24 -0
- package/dist/components/{select-option → select}/select-option.component.d.ts +14 -11
- package/dist/components/select/select-option.component.js +140 -0
- package/dist/components/select/select-option.controllers.d.ts +15 -0
- package/dist/components/select/select-option.styles.d.ts +1 -0
- package/dist/components/select/select-option.styles.js +65 -0
- package/dist/components/select/select.component.d.ts +22 -17
- package/dist/components/select/select.component.js +62 -45
- package/dist/components/select/select.controllers.d.ts +21 -10
- package/dist/components/select/select.controllers.js +29 -23
- package/dist/components/select/stories/select.stories.icons.d.ts +7 -0
- package/dist/components/{stepper-item → stepper}/stepper-item.component.js +48 -48
- package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +2 -2
- package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
- package/dist/components/stepper/stepper.component.d.ts +4 -3
- package/dist/components/stepper/stepper.component.js +15 -15
- package/dist/components/stepper/stepper.d.ts +2 -2
- package/dist/components/stepper/stepper.helpers.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +7 -6
- package/dist/components/switch/switch.component.js +21 -21
- package/dist/components/switch/switch.d.ts +2 -2
- package/dist/components/{tab-panel → tabs}/tab-panel.component.js +1 -1
- package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
- package/dist/components/tabs/tab-panel.styles.d.ts +1 -0
- package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
- package/dist/components/{tab → tabs}/tab.component.js +1 -1
- package/dist/components/{tab → tabs}/tab.d.ts +2 -2
- package/dist/components/tabs/tab.styles.d.ts +1 -0
- package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
- package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +36 -37
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
- package/dist/components/tag/tag.component.d.ts +20 -17
- package/dist/components/tag/tag.component.js +68 -67
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.styles.js +63 -50
- package/dist/components/textarea/textarea.component.d.ts +10 -11
- package/dist/components/textarea/textarea.component.js +67 -68
- package/dist/components/{toast-item → toast}/toast-item.component.js +15 -15
- package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
- package/dist/components/{toast-item → toast}/toast-item.js +4 -0
- package/dist/components/toast/toast-item.styles.js +18 -0
- package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
- package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast/toast.component.d.ts +9 -5
- package/dist/components/toast/toast.component.js +31 -27
- package/dist/components/toast/toast.singleton.d.ts +7 -12
- package/dist/components/toast/toast.singleton.js +26 -26
- package/dist/components/tooltip/tooltip.component.d.ts +7 -7
- package/dist/components/tooltip/tooltip.component.js +16 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/custom-elements.json +3980 -2348
- package/dist/index.d.ts +22 -9
- package/dist/index.js +111 -74
- package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
- package/dist/internal/base-classes/popover/popover.base.js +140 -79
- package/dist/internal/base-classes/popover/popover.styles.js +17 -5
- package/dist/internal/components/hint/hint.component.d.ts +6 -2
- package/dist/internal/components/hint/hint.component.js +47 -20
- package/dist/internal/components/hint/hint.styles.d.ts +1 -2
- package/dist/internal/components/hint/hint.styles.js +30 -26
- package/dist/internal/components/skf-element.d.ts +1 -3
- package/dist/internal/components/skf-element.js +4 -9
- package/dist/internal/constants/iconSeverity.d.ts +3 -2
- package/dist/internal/constants/iconSeverity.js +2 -3
- package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
- package/dist/internal/controllers/popover.controller.d.ts +12 -6
- package/dist/internal/controllers/popover.controller.js +9 -14
- package/dist/internal/helpers/dateFormatter.d.ts +2 -0
- package/dist/internal/helpers/hintSeverity.d.ts +2 -2
- package/dist/internal/helpers/hintSeverity.js +1 -1
- package/dist/internal/helpers/stateMap.d.ts +14 -0
- package/dist/internal/helpers/stateMap.js +68 -0
- package/dist/internal/helpers/utilityTypes.d.ts +22 -0
- package/dist/internal/helpers/uuid.d.ts +15 -0
- package/dist/internal/helpers/uuid.js +14 -0
- package/dist/internal/helpers/watch.d.ts +1 -1
- package/dist/internal/helpers/watch.js +12 -12
- package/dist/internal/storybook/styles.d.ts +1 -0
- package/dist/internal/types/formField.d.ts +1 -1
- package/dist/internal/types.d.ts +18 -0
- package/dist/styles/component.styles.d.ts +1 -2
- package/dist/styles/component.styles.js +38 -37
- package/dist/styles/form-field.styles.js +11 -6
- package/dist/styles/global-alt.css +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +871 -1307
- package/dist/types/vue/index.d.ts +593 -360
- package/dist/vscode.html-custom-data.json +630 -1184
- package/dist/web-types.json +1422 -945
- package/package.json +47 -63
- package/dist/components/accordion/accordion.test.d.ts +0 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/collapse/collapse.component.d.ts +0 -40
- package/dist/components/collapse/collapse.component.js +0 -86
- package/dist/components/collapse/collapse.d.ts +0 -8
- package/dist/components/collapse/collapse.js +0 -6
- package/dist/components/collapse/collapse.styles.d.ts +0 -2
- package/dist/components/collapse/collapse.styles.js +0 -77
- package/dist/components/collapse/collapse.test.d.ts +0 -1
- package/dist/components/input/input.test.d.ts +0 -1
- package/dist/components/menu-item/menu-item.component.d.ts +0 -25
- package/dist/components/menu-item/menu-item.component.js +0 -13
- package/dist/components/radio/radio.test.d.ts +0 -1
- package/dist/components/select-option/select-option.component.js +0 -123
- package/dist/components/select-option/select-option.controllers.d.ts +0 -9
- package/dist/components/select-option/select-option.styles.js +0 -53
- package/dist/components/select-option-group/select-option-group.component.js +0 -31
- package/dist/components/select-option-group/select-option-group.style.js +0 -18
- package/dist/components/switch/switch.test.d.ts +0 -1
- package/dist/components/tab-group/tab-group.d.ts +0 -8
- package/dist/components/tab-group/tab-group.js +0 -6
- package/dist/components/toast-item/toast-item.styles.js +0 -16
- package/dist/internal/constants/heading.d.ts +0 -2
- package/dist/internal/playwright/index.d.ts +0 -1
- package/dist/react/index.d.ts +0 -35
- package/dist/react/index.js +0 -35
- package/dist/react/skf-accordion/index.d.ts +0 -3
- package/dist/react/skf-accordion/index.js +0 -13
- package/dist/react/skf-alert/index.d.ts +0 -9
- package/dist/react/skf-alert/index.js +0 -17
- package/dist/react/skf-breadcrumb/index.d.ts +0 -9
- package/dist/react/skf-breadcrumb/index.js +0 -17
- package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
- package/dist/react/skf-breadcrumb-item/index.js +0 -13
- package/dist/react/skf-button/index.d.ts +0 -9
- package/dist/react/skf-button/index.js +0 -17
- package/dist/react/skf-card/index.d.ts +0 -3
- package/dist/react/skf-card/index.js +0 -13
- package/dist/react/skf-checkbox/index.d.ts +0 -9
- package/dist/react/skf-checkbox/index.js +0 -17
- package/dist/react/skf-collapse/index.d.ts +0 -9
- package/dist/react/skf-collapse/index.js +0 -17
- package/dist/react/skf-dialog/index.d.ts +0 -15
- package/dist/react/skf-dialog/index.js +0 -19
- package/dist/react/skf-divider/index.d.ts +0 -3
- package/dist/react/skf-divider/index.js +0 -13
- package/dist/react/skf-heading/index.d.ts +0 -3
- package/dist/react/skf-heading/index.js +0 -13
- package/dist/react/skf-icon/index.d.ts +0 -3
- package/dist/react/skf-icon/index.js +0 -13
- package/dist/react/skf-input/index.d.ts +0 -12
- package/dist/react/skf-input/index.js +0 -18
- package/dist/react/skf-link/index.d.ts +0 -3
- package/dist/react/skf-link/index.js +0 -13
- package/dist/react/skf-loader/index.d.ts +0 -3
- package/dist/react/skf-loader/index.js +0 -13
- package/dist/react/skf-logo/index.d.ts +0 -3
- package/dist/react/skf-logo/index.js +0 -13
- package/dist/react/skf-menu/index.d.ts +0 -12
- package/dist/react/skf-menu/index.js +0 -18
- package/dist/react/skf-menu-item/index.d.ts +0 -27
- package/dist/react/skf-menu-item/index.js +0 -23
- package/dist/react/skf-popover/index.d.ts +0 -12
- package/dist/react/skf-popover/index.js +0 -18
- package/dist/react/skf-progress/index.d.ts +0 -3
- package/dist/react/skf-progress/index.js +0 -13
- package/dist/react/skf-radio/index.d.ts +0 -9
- package/dist/react/skf-radio/index.js +0 -17
- package/dist/react/skf-select/index.d.ts +0 -21
- package/dist/react/skf-select/index.js +0 -21
- package/dist/react/skf-select-option/index.d.ts +0 -9
- package/dist/react/skf-select-option/index.js +0 -17
- package/dist/react/skf-select-option-group/index.d.ts +0 -3
- package/dist/react/skf-select-option-group/index.js +0 -13
- package/dist/react/skf-stepper/index.d.ts +0 -9
- package/dist/react/skf-stepper/index.js +0 -17
- package/dist/react/skf-stepper-item/index.d.ts +0 -9
- package/dist/react/skf-stepper-item/index.js +0 -17
- package/dist/react/skf-switch/index.d.ts +0 -3
- package/dist/react/skf-switch/index.js +0 -13
- package/dist/react/skf-tab/index.d.ts +0 -12
- package/dist/react/skf-tab/index.js +0 -18
- package/dist/react/skf-tab-group/index.d.ts +0 -3
- package/dist/react/skf-tab-group/index.js +0 -13
- package/dist/react/skf-tab-panel/index.d.ts +0 -3
- package/dist/react/skf-tab-panel/index.js +0 -13
- package/dist/react/skf-tag/index.d.ts +0 -3
- package/dist/react/skf-tag/index.js +0 -13
- package/dist/react/skf-textarea/index.d.ts +0 -12
- package/dist/react/skf-textarea/index.js +0 -18
- package/dist/react/skf-toast/index.d.ts +0 -3
- package/dist/react/skf-toast/index.js +0 -13
- package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
- package/dist/react/skf-toast-wrapper/index.js +0 -13
- package/dist/react/skf-tooltip/index.d.ts +0 -12
- package/dist/react/skf-tooltip/index.js +0 -18
- /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
- /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
- /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group/select-option-group.style.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
- /package/dist/components/{select-option/select-option.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
- /package/dist/components/{stepper-item/stepper-item.styles.d.ts → drawer/drawer.styles.d.ts} +0 -0
- /package/dist/components/{tab-group/tab-group.styles.d.ts → header/header.styles.d.ts} +0 -0
- /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
- /package/dist/components/{tab-panel/tab-panel.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
- /package/dist/components/{tab/tab.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
- /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav.styles.d.ts} +0 -0
- /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
- /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
- /package/dist/components/{select-option → select}/select-option.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
- /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
- /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
- /package/dist/components/{tab → tabs}/tab.js +0 -0
- /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
- /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
- /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,27 +1,39 @@
|
|
1
|
+
var y = (e) => {
|
2
|
+
throw TypeError(e);
|
3
|
+
};
|
4
|
+
var k = (e, o, t) => o.has(e) || y("Cannot " + t);
|
5
|
+
var m = (e, o, t) => (k(e, o, "read from private field"), t ? t.call(e) : o.get(e)), d = (e, o, t) => o.has(e) ? y("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, t), v = (e, o, t, i) => (k(e, o, "write to private field"), i ? i.call(e, t) : o.set(e, t), t);
|
1
6
|
import "../icon/icon.js";
|
2
|
-
import { SkfElement as
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
import { SkfElement as _ } from "../../internal/components/skf-element.js";
|
8
|
+
import { stateMap as g } from "../../internal/helpers/stateMap.js";
|
9
|
+
import { watch as w } from "../../internal/helpers/watch.js";
|
10
|
+
import { componentStyles as $ } from "../../styles/component.styles.js";
|
11
|
+
import { nothing as C, html as f } from "lit";
|
12
|
+
import { property as c, query as R } from "lit/decorators.js";
|
13
|
+
import { ifDefined as D } from "lit/directives/if-defined.js";
|
14
|
+
import { styles as E } from "./tag.styles.js";
|
15
|
+
var P = Object.defineProperty, z = Object.getOwnPropertyDescriptor, r = (e, o, t, i) => {
|
16
|
+
for (var s = i > 1 ? void 0 : i ? z(o, t) : o, l = e.length - 1, p; l >= 0; l--)
|
17
|
+
(p = e[l]) && (s = (i ? p(o, t, s) : p(s)) || s);
|
18
|
+
return i && s && P(o, t, s), s;
|
19
|
+
};
|
20
|
+
const b = {
|
21
|
+
size: ["sm", "md"],
|
22
|
+
color: ["error", "info", "success", "warning"]
|
13
23
|
};
|
14
|
-
|
24
|
+
var a, h;
|
25
|
+
const u = class u extends _ {
|
15
26
|
constructor() {
|
16
|
-
super(...arguments)
|
27
|
+
super(...arguments);
|
28
|
+
d(this, a);
|
29
|
+
d(this, h);
|
30
|
+
v(this, a, this.attachInternals()), v(this, h, m(this, a).states), this.size = "md", this.removable = !1, this._handleKeyDown = (t) => {
|
17
31
|
(t.key === "Enter" || t.key === " ") && this.$removeButton.click();
|
18
32
|
}, this._handleRemove = (t) => {
|
19
33
|
this._onRemove && this._onRemove(t);
|
20
34
|
}, this._handleClick = (t) => {
|
21
|
-
var
|
22
|
-
t.stopPropagation();
|
23
|
-
const s = t.composedPath()[0];
|
24
|
-
console.log("$clickTarget", s), s.localName === "button" ? this.remove() : (e = this.onClick) == null || e.call(this, t);
|
35
|
+
var l;
|
36
|
+
t.stopPropagation(), t.composedPath()[0].localName === "button" ? this.remove() : (l = this.onClick) == null || l.call(this, t);
|
25
37
|
};
|
26
38
|
}
|
27
39
|
set onClick(t) {
|
@@ -42,63 +54,52 @@ const h = class h extends u {
|
|
42
54
|
disconnectedCallback() {
|
43
55
|
super.disconnectedCallback(), this.removeEventListener("click", this._handleClick);
|
44
56
|
}
|
45
|
-
attributeChangedCallback(t,
|
46
|
-
super.attributeChangedCallback(t,
|
57
|
+
attributeChangedCallback(t, i, s) {
|
58
|
+
super.attributeChangedCallback(t, i, s), t === "removable" && s !== null ? this.addEventListener("keydown", this._handleKeyDown) : this.removeEventListener("keydown", this._handleKeyDown);
|
59
|
+
}
|
60
|
+
_handleStateChange(t, i, s) {
|
61
|
+
g(m(this, h), b[t]).set(s);
|
47
62
|
}
|
48
63
|
render() {
|
49
|
-
return
|
50
|
-
<div
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"tag--color-info": this.color === "info",
|
56
|
-
"tag--color-success": this.color === "success",
|
57
|
-
"tag--color-warning": this.color === "warning",
|
58
|
-
"tag--small": this.size === "sm"
|
59
|
-
})}
|
60
|
-
>
|
61
|
-
${this.icon ? a`
|
62
|
-
<skf-icon
|
63
|
-
class="tag__icon"
|
64
|
-
color=${_(this.color)}
|
65
|
-
name=${this.icon}
|
66
|
-
size="sm"
|
67
|
-
></skf-icon>
|
68
|
-
` : p}
|
69
|
-
<slot class="tag__slot"></slot>
|
70
|
-
${this.removable ? a`
|
71
|
-
<button @click=${this._handleRemove} class="tag__btn" type="button">
|
64
|
+
return f`
|
65
|
+
<div id="root">
|
66
|
+
${this.icon ? f`<skf-icon color=${D(this.color)} name=${this.icon} size="sm"></skf-icon>` : C}
|
67
|
+
<slot></slot>
|
68
|
+
${this.removable ? f`
|
69
|
+
<button @click=${this._handleRemove} type="button">
|
72
70
|
<skf-icon name="close" size="xs"></skf-icon>
|
73
71
|
</button>
|
74
|
-
` :
|
72
|
+
` : C}
|
75
73
|
</div>
|
76
74
|
`;
|
77
75
|
}
|
78
76
|
};
|
79
|
-
h.styles = [
|
80
|
-
let
|
81
|
-
|
82
|
-
|
83
|
-
],
|
84
|
-
|
85
|
-
|
86
|
-
],
|
87
|
-
|
88
|
-
|
89
|
-
],
|
90
|
-
|
91
|
-
|
92
|
-
],
|
93
|
-
|
94
|
-
|
95
|
-
],
|
96
|
-
|
97
|
-
|
98
|
-
],
|
99
|
-
|
100
|
-
|
101
|
-
],
|
77
|
+
a = new WeakMap(), h = new WeakMap(), u.styles = [$, E];
|
78
|
+
let n = u;
|
79
|
+
r([
|
80
|
+
c({ type: String })
|
81
|
+
], n.prototype, "size", 2);
|
82
|
+
r([
|
83
|
+
c({ type: String })
|
84
|
+
], n.prototype, "icon", 2);
|
85
|
+
r([
|
86
|
+
c({ type: String })
|
87
|
+
], n.prototype, "color", 2);
|
88
|
+
r([
|
89
|
+
c({ attribute: !1 })
|
90
|
+
], n.prototype, "onClick", 1);
|
91
|
+
r([
|
92
|
+
c({ attribute: !1 })
|
93
|
+
], n.prototype, "onRemove", 1);
|
94
|
+
r([
|
95
|
+
c({ type: Boolean })
|
96
|
+
], n.prototype, "removable", 2);
|
97
|
+
r([
|
98
|
+
R("button")
|
99
|
+
], n.prototype, "$removeButton", 2);
|
100
|
+
r([
|
101
|
+
w(Object.keys(b))
|
102
|
+
], n.prototype, "_handleStateChange", 1);
|
102
103
|
export {
|
103
|
-
|
104
|
+
n as SkfTag
|
104
105
|
};
|
@@ -1,66 +1,79 @@
|
|
1
1
|
import { css as r } from "lit";
|
2
2
|
const s = r`
|
3
|
-
/* stylelint-disable selector-class-pattern */
|
4
3
|
@layer components {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
border: var(--skf-border-width-sm) solid
|
10
|
-
var(--_skf-tag-border-color, var(--skf-border-color-primary));
|
11
|
-
border-radius: var(--_skf-tag-border-radius, var(--skf-border-radius-md));
|
12
|
-
color: var(--_skf-tag-text-color, var(--skf-text-color-primary));
|
13
|
-
display: inline-flex;
|
14
|
-
font-size: var(--_skf-tag-font-size, var(--skf-font-size-50));
|
15
|
-
gap: var(--skf-spacing-25);
|
16
|
-
max-inline-size: 48ch;
|
17
|
-
padding-inline: var(--skf-spacing-50);
|
18
|
-
}
|
4
|
+
@layer base {
|
5
|
+
:host {
|
6
|
+
display: inline-flex;
|
7
|
+
}
|
19
8
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
#root {
|
10
|
+
--_skf-tag-bg-color: var(--skf-bg-color-neutral-1);
|
11
|
+
--_skf-tag-border-color: var(--skf-border-color-primary);
|
12
|
+
--_skf-tag-border-radius: var(--skf-border-radius-md);
|
13
|
+
--_skf-tag-font-size: var(--skf-font-size-50);
|
14
|
+
--_skf-tag-height: var(--skf-size-32);
|
15
|
+
--_skf-tag-text-color: var(--skf-text-color-primary);
|
24
16
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
17
|
+
align-items: center;
|
18
|
+
background-color: var(--_skf-tag-bg-color);
|
19
|
+
block-size: var(--_skf-tag-height);
|
20
|
+
border: var(--skf-border-width-sm) solid var(--_skf-tag-border-color);
|
21
|
+
border-radius: var(--_skf-tag-border-radius);
|
22
|
+
color: var(--_skf-tag-text-color);
|
23
|
+
display: flex;
|
24
|
+
font-size: var(--_skf-tag-font-size);
|
25
|
+
gap: var(--skf-spacing-25);
|
26
|
+
max-inline-size: 48ch;
|
27
|
+
padding-inline: var(--skf-spacing-50);
|
28
|
+
}
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
slot {
|
31
|
+
display: block;
|
32
|
+
overflow: hidden;
|
33
|
+
text-overflow: ellipsis;
|
34
|
+
white-space: nowrap;
|
35
|
+
}
|
34
36
|
|
35
|
-
|
36
|
-
|
37
|
-
--_skf-tag-border-color: var(--skf-severity-fg-color-success);
|
38
|
-
}
|
37
|
+
button {
|
38
|
+
display: flex;
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
&:focus-visible {
|
41
|
+
border-radius: var(--skf-border-radius-sm);
|
42
|
+
outline: var(--skf-border-width-md) solid var(--skf-interactive-border-color-focus);
|
43
|
+
}
|
44
|
+
}
|
43
45
|
}
|
44
46
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
@layer mods {
|
48
|
+
:host(:state(alert)) #root {
|
49
|
+
--_skf-tag-bg-color: var(--skf-severity-bg-color-alert);
|
50
|
+
--_skf-tag-border-color: var(--skf-severity-fg-color-alert);
|
51
|
+
}
|
50
52
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
white-space: nowrap;
|
56
|
-
}
|
53
|
+
:host(:state(error)) #root {
|
54
|
+
--_skf-tag-bg-color: var(--skf-severity-bg-color-error);
|
55
|
+
--_skf-tag-border-color: var(--skf-severity-fg-color-error);
|
56
|
+
}
|
57
57
|
|
58
|
-
|
59
|
-
|
58
|
+
:host(:state(info)) #root {
|
59
|
+
--_skf-tag-bg-color: var(--skf-severity-bg-color-info);
|
60
|
+
--_skf-tag-border-color: var(--skf-severity-fg-color-info);
|
61
|
+
}
|
62
|
+
|
63
|
+
:host(:state(success)) #root {
|
64
|
+
--_skf-tag-bg-color: var(--skf-severity-bg-color-success);
|
65
|
+
--_skf-tag-border-color: var(--skf-severity-fg-color-success);
|
66
|
+
}
|
67
|
+
|
68
|
+
:host(:state(warning)) #root {
|
69
|
+
--_skf-tag-bg-color: var(--skf-severity-bg-color-warning);
|
70
|
+
--_skf-tag-border-color: var(--skf-severity-fg-color-warning);
|
71
|
+
}
|
60
72
|
|
61
|
-
|
62
|
-
border-radius:
|
63
|
-
|
73
|
+
:host(:state(sm)) #root {
|
74
|
+
--_skf-tag-border-radius: 0.25rem; /* token needed */
|
75
|
+
--_skf-tag-font-size: var(--skf-font-size-25);
|
76
|
+
--_skf-tag-height: var(--skf-size-24);
|
64
77
|
}
|
65
78
|
}
|
66
79
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import '../icon/icon.js';
|
2
2
|
import { FormBase } from '../../internal/components/formBase.js';
|
3
3
|
import '../../internal/components/hint/hint.js';
|
4
|
+
import type { FormFieldSeverity } from '../../internal/types.js';
|
4
5
|
import type { FormFieldBaseProps } from '../../internal/types/formField.js';
|
5
6
|
import { type CSSResultGroup } from 'lit';
|
6
7
|
interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
|
@@ -14,8 +15,8 @@ interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
|
|
14
15
|
*
|
15
16
|
* @documentation See [zeroheight](https://zeroheight.com/853e936c9/p/143f9d-text-area) for design principles.
|
16
17
|
*
|
17
|
-
* @attribute {boolean} disabled - If true, sets disabled state
|
18
|
-
* @attribute {boolean} required - If true, value is required or must be checked for the form to be submittable
|
18
|
+
* @attribute {boolean} [disabled=false] - If true, sets disabled state
|
19
|
+
* @attribute {boolean} [required=false] - If true, value is required or must be checked for the form to be submittable
|
19
20
|
*
|
20
21
|
* @event change - Fires when the value of the input changes
|
21
22
|
* @event invalid - Fires when the input is invalid
|
@@ -26,6 +27,7 @@ interface SkfTextAreaProps extends Omit<FormFieldBaseProps, 'type'> {
|
|
26
27
|
*/
|
27
28
|
export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
|
28
29
|
static styles: CSSResultGroup;
|
30
|
+
/** @internal */
|
29
31
|
private customError;
|
30
32
|
/** If defined, sets the cols of the textarea */
|
31
33
|
cols?: number;
|
@@ -33,9 +35,9 @@ export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
|
|
33
35
|
set customInvalid(value: string | undefined);
|
34
36
|
get customInvalid(): string | undefined;
|
35
37
|
/** If true, outputs helping hints in console */
|
36
|
-
debug
|
38
|
+
debug: boolean;
|
37
39
|
/** If true, hides the label visually */
|
38
|
-
hideLabel
|
40
|
+
hideLabel: boolean;
|
39
41
|
/** If defined, displays informational text below the field */
|
40
42
|
hint?: string;
|
41
43
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
@@ -49,18 +51,15 @@ export declare class SkfTextArea extends FormBase implements SkfTextAreaProps {
|
|
49
51
|
/** If defined, displays placeholder text */
|
50
52
|
placeholder?: string;
|
51
53
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
52
|
-
readonly
|
54
|
+
readonly: boolean;
|
53
55
|
/** If defined, renders an alternative A11y text for the asterisk */
|
54
56
|
requiredLabel?: string;
|
55
57
|
/** If defined, sets the rows of the textarea */
|
56
58
|
rows?: number;
|
57
|
-
/**
|
58
|
-
|
59
|
-
* @type {"success" | "info" | "warning" | "alert"}
|
60
|
-
*/
|
61
|
-
severity?: SkfTextAreaProps['severity'];
|
59
|
+
/** If defined, displays provided severity state */
|
60
|
+
severity?: FormFieldSeverity;
|
62
61
|
/** If true, displays valid state after interaction */
|
63
|
-
showValid
|
62
|
+
showValid: boolean;
|
64
63
|
/** Size of the Textarea */
|
65
64
|
size?: 'sm' | 'md';
|
66
65
|
/** Sets validation start */
|
@@ -1,28 +1,29 @@
|
|
1
1
|
import "../icon/icon.js";
|
2
2
|
import { FormBase as m } from "../../internal/components/formBase.js";
|
3
3
|
import "../../internal/components/hint/hint.js";
|
4
|
-
import {
|
5
|
-
import y from "../../
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
import { hintSeverity as c } from "../../internal/helpers/hintSeverity.js";
|
5
|
+
import { Asterisk as y } from "../../internal/templates/asterisk.js";
|
6
|
+
import { componentStyles as b } from "../../styles/component.styles.js";
|
7
|
+
import { nothing as u, html as v } from "lit";
|
8
|
+
import { property as r, state as f, query as g } from "lit/decorators.js";
|
9
|
+
import { ifDefined as o } from "lit/directives/if-defined.js";
|
10
|
+
import $ from "./textarea.styles.js";
|
11
|
+
var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (p, i, s, a) => {
|
12
|
+
for (var l = a > 1 ? void 0 : a ? _(i, s) : i, n = p.length - 1, h; n >= 0; n--)
|
13
|
+
(h = p[n]) && (l = (a ? h(i, s, l) : h(l)) || l);
|
14
|
+
return a && l && E(i, s, l), l;
|
14
15
|
};
|
15
|
-
const
|
16
|
+
const d = class d extends m {
|
16
17
|
constructor() {
|
17
|
-
super(...arguments), this.size = "md", this.validateOn = "change", this.value = "", this.invalid = !1, this._resetValue = (
|
18
|
+
super(...arguments), this.debug = !1, this.hideLabel = !1, this.readonly = !1, this.showValid = !1, this.size = "md", this.validateOn = "change", this.value = "", this.invalid = !1, this._resetValue = (i) => {
|
18
19
|
var s;
|
19
|
-
|
20
|
+
i.stopPropagation(), this.value = ((s = this.getAttribute("value")) == null ? void 0 : s.trim()) ?? "", this._internals.setFormValue(this.value), this.$input.focus();
|
20
21
|
}, this._handleInput = () => {
|
21
22
|
this.value = this.$input.value || "", this.validateOn === "input" && (this.pristine = !1, this.validateInput());
|
22
23
|
};
|
23
24
|
}
|
24
|
-
set customInvalid(
|
25
|
-
this.customError =
|
25
|
+
set customInvalid(i) {
|
26
|
+
this.customError = i ?? "";
|
26
27
|
}
|
27
28
|
get customInvalid() {
|
28
29
|
return this.customError;
|
@@ -30,12 +31,12 @@ const u = class u extends m {
|
|
30
31
|
firstUpdated() {
|
31
32
|
this.$input.addEventListener("change", () => {
|
32
33
|
this.validateOn === "change" && (this.validateOn = "input", this.pristine = !1), this._internals.setFormValue(this.$input.value || ""), this.emitEvent("change"), this.validateInput();
|
33
|
-
}), this.addEventListener("invalid", (
|
34
|
-
this.pristine = !1, this.invalid = !0, this.customErrorDisplay &&
|
34
|
+
}), this.addEventListener("invalid", (i) => {
|
35
|
+
this.pristine = !1, this.invalid = !0, this.customErrorDisplay && i.preventDefault();
|
35
36
|
}), this.addEventListener("reset", this._resetValue), this.validateInput();
|
36
37
|
}
|
37
|
-
willUpdate(
|
38
|
-
if (
|
38
|
+
willUpdate(i) {
|
39
|
+
if (i.has("invalid"))
|
39
40
|
if (this.invalid) {
|
40
41
|
this.setAttribute("invalid", ""), this.showValid || this.removeAttribute("valid");
|
41
42
|
const s = this._internals.validationMessage;
|
@@ -43,11 +44,11 @@ const u = class u extends m {
|
|
43
44
|
} else
|
44
45
|
this.removeAttribute("invalid"), !this.pristine && this.showValid && this.setAttribute("valid", "true"), this.hint = this.getAttribute("hint") ?? "";
|
45
46
|
}
|
46
|
-
attributeChangedCallback(
|
47
|
-
if (super.attributeChangedCallback(
|
47
|
+
attributeChangedCallback(i, s, a) {
|
48
|
+
if (super.attributeChangedCallback(i, s, a), i === "value" && this._internals.setFormValue(a), i === "custom-invalid")
|
48
49
|
if (typeof a == "string") {
|
49
|
-
const
|
50
|
-
this.pristine = !1, this._internals.setValidity({ customError: !0 },
|
50
|
+
const n = this.withFallback(a);
|
51
|
+
this.pristine = !1, this._internals.setValidity({ customError: !0 }, n), this.invalid = !0, this.hint = n, this.checkValidity();
|
51
52
|
} else
|
52
53
|
this._internals.setValidity({}), this.validateInput();
|
53
54
|
}
|
@@ -66,22 +67,22 @@ const u = class u extends m {
|
|
66
67
|
`Add custom message on ${this.localName} using attribute: ${l.toUpperCase()}="Your custom message"`
|
67
68
|
), s[a]) {
|
68
69
|
this.validationError = a.toString();
|
69
|
-
const
|
70
|
+
const n = this.hasAttribute(l) ? this.getAttribute(l) : this.$input.validationMessage;
|
70
71
|
this._internals.setValidity(
|
71
72
|
{ [this.validationError]: !0, customError: this._internals.validity.customError },
|
72
|
-
this.withFallback(
|
73
|
+
this.withFallback(n)
|
73
74
|
), this.invalid && this.customErrorDisplay && this.checkValidity();
|
74
75
|
}
|
75
76
|
}
|
76
77
|
}
|
77
78
|
}
|
78
79
|
render() {
|
79
|
-
var
|
80
|
-
return
|
80
|
+
var i, s;
|
81
|
+
return v`
|
81
82
|
<div id="root">
|
82
83
|
<label>
|
83
84
|
<div class=${this.hideLabel ? "visually-hidden" : ""} id="label">
|
84
|
-
<slot>${this.label}</slot> ${this.required ?
|
85
|
+
<slot>${this.label}</slot> ${this.required ? y(this.requiredLabel) : null}
|
85
86
|
</div>
|
86
87
|
<div id="input">
|
87
88
|
<textarea
|
@@ -90,97 +91,95 @@ const u = class u extends m {
|
|
90
91
|
?required=${this.required}
|
91
92
|
.value=${this.value}
|
92
93
|
@input=${this._handleInput}
|
93
|
-
aria-describedby=${
|
94
|
-
aria-errormessage=${
|
94
|
+
aria-describedby=${o((i = this.hint) != null && i.trim() ? "hint" : u)}
|
95
|
+
aria-errormessage=${o((s = this.hint) != null && s.trim() ? "hint" : u)}
|
95
96
|
aria-invalid=${!!this.invalid}
|
96
|
-
cols=${
|
97
|
-
maxlength=${
|
98
|
-
minlength=${
|
99
|
-
name=${
|
100
|
-
placeholder=${
|
101
|
-
rows=${
|
97
|
+
cols=${o(this.cols)}
|
98
|
+
maxlength=${o(this.maxLength)}
|
99
|
+
minlength=${o(this.minLength)}
|
100
|
+
name=${o(this.name)}
|
101
|
+
placeholder=${o(this.placeholder)}
|
102
|
+
rows=${o(this.rows)}
|
102
103
|
>
|
103
104
|
</textarea>
|
104
105
|
</div>
|
105
106
|
</label>
|
106
|
-
${this.hint &&
|
107
|
+
${this.hint && v`
|
107
108
|
<skf-hint
|
109
|
+
?disabled=${this.disabled}
|
108
110
|
aria-live=${this.invalid ? "assertive" : "polite"}
|
109
111
|
id="hint"
|
110
|
-
severity=${
|
112
|
+
severity=${o(c(this.invalid, this.severity))}
|
111
113
|
>
|
112
|
-
${this.customInvalid
|
114
|
+
${this.customInvalid ?? this.hint}
|
113
115
|
</skf-hint>
|
114
116
|
`}
|
115
117
|
</div>
|
116
118
|
`;
|
117
119
|
}
|
118
120
|
};
|
119
|
-
|
120
|
-
let
|
121
|
+
d.styles = [b, $];
|
122
|
+
let t = d;
|
121
123
|
e([
|
122
124
|
r({ type: Number })
|
123
|
-
],
|
125
|
+
], t.prototype, "cols", 2);
|
124
126
|
e([
|
125
127
|
r({ attribute: "custom-invalid", reflect: !0 })
|
126
|
-
],
|
128
|
+
], t.prototype, "customInvalid", 1);
|
127
129
|
e([
|
128
130
|
r({ type: Boolean })
|
129
|
-
],
|
131
|
+
], t.prototype, "debug", 2);
|
130
132
|
e([
|
131
133
|
r({ type: Boolean, attribute: "hide-label" })
|
132
|
-
],
|
134
|
+
], t.prototype, "hideLabel", 2);
|
133
135
|
e([
|
134
136
|
r()
|
135
|
-
],
|
137
|
+
], t.prototype, "hint", 2);
|
136
138
|
e([
|
137
139
|
r()
|
138
|
-
],
|
140
|
+
], t.prototype, "label", 2);
|
139
141
|
e([
|
140
142
|
r()
|
141
|
-
],
|
143
|
+
], t.prototype, "name", 2);
|
142
144
|
e([
|
143
145
|
r({ type: Number, attribute: "maxlength" })
|
144
|
-
],
|
146
|
+
], t.prototype, "maxLength", 2);
|
145
147
|
e([
|
146
148
|
r({ type: Number, attribute: "minlength" })
|
147
|
-
],
|
149
|
+
], t.prototype, "minLength", 2);
|
148
150
|
e([
|
149
151
|
r()
|
150
|
-
],
|
152
|
+
], t.prototype, "placeholder", 2);
|
151
153
|
e([
|
152
154
|
r({ type: Boolean })
|
153
|
-
],
|
155
|
+
], t.prototype, "readonly", 2);
|
154
156
|
e([
|
155
157
|
r({ attribute: "required-label" })
|
156
|
-
],
|
158
|
+
], t.prototype, "requiredLabel", 2);
|
157
159
|
e([
|
158
160
|
r({ type: Number })
|
159
|
-
],
|
161
|
+
], t.prototype, "rows", 2);
|
160
162
|
e([
|
161
163
|
r()
|
162
|
-
],
|
164
|
+
], t.prototype, "severity", 2);
|
163
165
|
e([
|
164
166
|
r({ type: Boolean, attribute: "show-valid" })
|
165
|
-
],
|
167
|
+
], t.prototype, "showValid", 2);
|
166
168
|
e([
|
167
169
|
r({ reflect: !0 })
|
168
|
-
],
|
170
|
+
], t.prototype, "size", 2);
|
169
171
|
e([
|
170
|
-
r({
|
171
|
-
],
|
172
|
+
r({ attribute: "validate-on" })
|
173
|
+
], t.prototype, "validateOn", 2);
|
172
174
|
e([
|
173
175
|
r()
|
174
|
-
],
|
176
|
+
], t.prototype, "value", 2);
|
175
177
|
e([
|
176
|
-
|
177
|
-
],
|
178
|
+
f()
|
179
|
+
], t.prototype, "invalid", 2);
|
178
180
|
e([
|
179
|
-
|
180
|
-
],
|
181
|
-
function _(h, t) {
|
182
|
-
return t ? "error" : h;
|
183
|
-
}
|
181
|
+
g("textarea")
|
182
|
+
], t.prototype, "$input", 2);
|
184
183
|
export {
|
185
|
-
|
184
|
+
t as SkfTextArea
|
186
185
|
};
|