@webtides/element-library 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +384 -3
- package/README.md +61 -41
- package/all.js +28 -0
- package/catalog.d.ts +14 -0
- package/catalog.js +55 -27
- package/custom-elements.json +16604 -3420
- package/package.json +35 -28
- package/src/components/accordion/accordion.changelog.md +10 -0
- package/src/components/accordion/accordion.js +10 -7
- package/src/components/accordion/accordion.readme.md +2 -0
- package/src/components/accordion/accordion.style.js +8 -0
- package/src/components/amount-field/amount-field.changelog.md +23 -3
- package/src/components/amount-field/amount-field.js +53 -26
- package/src/components/amount-field/amount-field.readme.md +82 -20
- package/src/components/amount-field/amount-field.style.js +111 -47
- package/src/components/avatar/avatar.changelog.md +23 -0
- package/src/components/avatar/avatar.define.js +3 -0
- package/src/components/avatar/avatar.js +115 -0
- package/src/components/avatar/avatar.readme.md +132 -0
- package/src/components/avatar/avatar.style.js +67 -0
- package/src/components/badge/badge.changelog.md +23 -0
- package/src/components/badge/badge.define.js +3 -0
- package/src/components/badge/badge.js +59 -0
- package/src/components/badge/badge.readme.md +109 -0
- package/src/components/badge/badge.style.js +63 -0
- package/src/components/breadcrumb/breadcrumb.changelog.md +22 -0
- package/src/components/breadcrumb/breadcrumb.define.js +3 -0
- package/src/components/breadcrumb/breadcrumb.js +47 -0
- package/src/components/breadcrumb/breadcrumb.readme.md +108 -0
- package/src/components/breadcrumb/breadcrumb.style.js +20 -0
- package/src/components/breadcrumb-item/breadcrumb-item.changelog.md +23 -0
- package/src/components/breadcrumb-item/breadcrumb-item.define.js +3 -0
- package/src/components/breadcrumb-item/breadcrumb-item.js +82 -0
- package/src/components/breadcrumb-item/breadcrumb-item.readme.md +106 -0
- package/src/components/breadcrumb-item/breadcrumb-item.style.js +92 -0
- package/src/components/button/button.changelog.md +34 -1
- package/src/components/button/button.js +285 -29
- package/src/components/button/button.readme.md +130 -10
- package/src/components/button/button.style.js +99 -120
- package/src/components/button-group/button-group.changelog.md +24 -0
- package/src/components/button-group/button-group.define.js +3 -0
- package/src/components/button-group/button-group.js +53 -0
- package/src/components/button-group/button-group.readme.md +114 -0
- package/src/components/button-group/button-group.style.js +41 -0
- package/src/components/card/card.changelog.md +23 -0
- package/src/components/card/card.define.js +3 -0
- package/src/components/card/card.js +73 -0
- package/src/components/card/card.readme.md +136 -0
- package/src/components/card/card.style.js +99 -0
- package/src/components/carousel/carousel.changelog.md +20 -0
- package/src/components/carousel/carousel.js +89 -40
- package/src/components/carousel/carousel.readme.md +39 -6
- package/src/components/carousel/carousel.style.js +21 -77
- package/src/components/carousel/glide/components/ShadowAnchors.js +3 -1
- package/src/components/carousel/glide/components/ShadowClones.js +21 -24
- package/src/components/carousel/glide/components/ShadowGaps.js +2 -2
- package/src/components/carousel/glide/components/ShadowHtml.js +22 -3
- package/src/components/checkbox-field/checkbox-field.changelog.md +19 -0
- package/src/components/checkbox-field/checkbox-field.js +25 -10
- package/src/components/checkbox-field/checkbox-field.readme.md +17 -4
- package/src/components/checkbox-field/checkbox-field.style.js +15 -3
- package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +25 -0
- package/src/components/checkbox-group-field/checkbox-group-field.define.js +3 -0
- package/src/components/checkbox-group-field/checkbox-group-field.js +217 -0
- package/src/components/checkbox-group-field/checkbox-group-field.readme.md +95 -0
- package/src/components/checkbox-group-field/checkbox-group-field.style.js +62 -0
- package/src/components/color-field/color-field.changelog.md +24 -0
- package/src/components/color-field/color-field.define.js +3 -0
- package/src/components/color-field/color-field.js +184 -0
- package/src/components/color-field/color-field.readme.md +95 -0
- package/src/components/color-field/color-field.style.js +39 -0
- package/src/components/combobox-field/combobox-field.changelog.md +23 -0
- package/src/components/combobox-field/combobox-field.define.js +3 -0
- package/src/components/combobox-field/combobox-field.js +97 -0
- package/src/components/combobox-field/combobox-field.readme.md +93 -0
- package/src/components/combobox-field/combobox-field.style.js +56 -0
- package/src/components/copy-button/copy-button.changelog.md +24 -0
- package/src/components/copy-button/copy-button.define.js +3 -0
- package/src/components/copy-button/copy-button.events.js +4 -0
- package/src/components/copy-button/copy-button.js +237 -0
- package/src/components/copy-button/copy-button.readme.md +134 -0
- package/src/components/copy-button/copy-button.style.js +109 -0
- package/src/components/date-field/date-field.changelog.md +24 -0
- package/src/components/date-field/date-field.define.js +3 -0
- package/src/components/date-field/date-field.js +119 -0
- package/src/components/date-field/date-field.readme.md +110 -0
- package/src/components/date-field/date-field.style.js +53 -0
- package/src/components/dialog/dialog.changelog.md +16 -1
- package/src/components/dialog/dialog.js +252 -57
- package/src/components/dialog/dialog.readme.md +36 -4
- package/src/components/dialog/dialog.style.js +9 -109
- package/src/components/divider/divider.changelog.md +23 -0
- package/src/components/divider/divider.define.js +3 -0
- package/src/components/divider/divider.js +48 -0
- package/src/components/divider/divider.readme.md +101 -0
- package/src/components/divider/divider.style.js +50 -0
- package/src/components/drawer/drawer.changelog.md +25 -0
- package/src/components/drawer/drawer.define.js +3 -0
- package/src/components/drawer/drawer.events.js +8 -0
- package/src/components/drawer/drawer.js +80 -0
- package/src/components/drawer/drawer.readme.md +194 -0
- package/src/components/drawer/drawer.style.js +83 -0
- package/src/components/dropdown/dropdown.js +9 -7
- package/src/components/empty-state/empty-state.changelog.md +22 -0
- package/src/components/empty-state/empty-state.define.js +3 -0
- package/src/components/empty-state/empty-state.js +55 -0
- package/src/components/empty-state/empty-state.readme.md +114 -0
- package/src/components/empty-state/empty-state.style.js +60 -0
- package/src/components/file-field/file-field.changelog.md +24 -0
- package/src/components/file-field/file-field.define.js +3 -0
- package/src/components/file-field/file-field.js +205 -0
- package/src/components/file-field/file-field.readme.md +103 -0
- package/src/components/file-field/file-field.style.js +28 -0
- package/src/components/form-field/form-field.changelog.md +25 -0
- package/src/components/form-field/form-field.js +212 -15
- package/src/components/form-field/form-field.readme.md +82 -18
- package/src/components/form-field/form-field.style.js +6 -24
- package/src/components/input-field/input-field.changelog.md +24 -0
- package/src/components/input-field/input-field.js +82 -6
- package/src/components/input-field/input-field.readme.md +34 -5
- package/src/components/input-field/input-field.style.js +32 -13
- package/src/components/notification/notification.changelog.md +21 -1
- package/src/components/notification/notification.js +80 -74
- package/src/components/notification/notification.readme.md +54 -13
- package/src/components/notification/notification.style.js +37 -22
- package/src/components/otp-field/otp-field.changelog.md +23 -0
- package/src/components/otp-field/otp-field.define.js +3 -0
- package/src/components/otp-field/otp-field.events.js +3 -0
- package/src/components/otp-field/otp-field.js +172 -0
- package/src/components/otp-field/otp-field.readme.md +111 -0
- package/src/components/otp-field/otp-field.style.js +53 -0
- package/src/components/pagination/pagination.changelog.md +30 -0
- package/src/components/pagination/pagination.define.js +3 -0
- package/src/components/pagination/pagination.events.js +3 -0
- package/src/components/pagination/pagination.js +282 -0
- package/src/components/pagination/pagination.readme.md +167 -0
- package/src/components/pagination/pagination.style.js +162 -0
- package/src/components/password-field/password-field.changelog.md +24 -0
- package/src/components/password-field/password-field.js +7 -1
- package/src/components/password-field/password-field.readme.md +15 -6
- package/src/components/password-field/password-field.style.js +36 -13
- package/src/components/popover/popover.changelog.md +24 -0
- package/src/components/popover/popover.define.js +3 -0
- package/src/components/popover/popover.events.js +4 -0
- package/src/components/popover/popover.js +255 -0
- package/src/components/popover/popover.readme.md +132 -0
- package/src/components/popover/popover.style.js +41 -0
- package/src/components/progress-bar/progress-bar.changelog.md +23 -0
- package/src/components/progress-bar/progress-bar.define.js +3 -0
- package/src/components/progress-bar/progress-bar.js +80 -0
- package/src/components/progress-bar/progress-bar.readme.md +110 -0
- package/src/components/progress-bar/progress-bar.style.js +93 -0
- package/src/components/progress-ring/progress-ring.changelog.md +23 -0
- package/src/components/progress-ring/progress-ring.define.js +3 -0
- package/src/components/progress-ring/progress-ring.js +83 -0
- package/src/components/progress-ring/progress-ring.readme.md +115 -0
- package/src/components/progress-ring/progress-ring.style.js +85 -0
- package/src/components/radio-field/radio-field.changelog.md +16 -0
- package/src/components/radio-field/radio-field.js +34 -11
- package/src/components/radio-field/radio-field.readme.md +13 -8
- package/src/components/radio-field/radio-field.style.js +17 -65
- package/src/components/range-field/range-field.changelog.md +24 -0
- package/src/components/range-field/range-field.define.js +3 -0
- package/src/components/range-field/range-field.js +167 -0
- package/src/components/range-field/range-field.readme.md +87 -0
- package/src/components/range-field/range-field.style.js +41 -0
- package/src/components/rating-field/rating-field.changelog.md +24 -0
- package/src/components/rating-field/rating-field.define.js +3 -0
- package/src/components/rating-field/rating-field.js +195 -0
- package/src/components/rating-field/rating-field.readme.md +82 -0
- package/src/components/rating-field/rating-field.style.js +79 -0
- package/src/components/select-field/select-field.changelog.md +17 -0
- package/src/components/select-field/select-field.js +100 -8
- package/src/components/select-field/select-field.readme.md +32 -6
- package/src/components/select-field/select-field.style.js +19 -9
- package/src/components/skeleton/skeleton.changelog.md +22 -0
- package/src/components/skeleton/skeleton.define.js +3 -0
- package/src/components/skeleton/skeleton.js +49 -0
- package/src/components/skeleton/skeleton.readme.md +115 -0
- package/src/components/skeleton/skeleton.style.js +79 -0
- package/src/components/slider/slider.changelog.md +15 -0
- package/src/components/slider/slider.js +37 -5
- package/src/components/slider/slider.readme.md +28 -6
- package/src/components/slider/slider.style.js +7 -71
- package/src/components/spinner/spinner.changelog.md +22 -0
- package/src/components/spinner/spinner.define.js +3 -0
- package/src/components/spinner/spinner.js +48 -0
- package/src/components/spinner/spinner.readme.md +98 -0
- package/src/components/spinner/spinner.style.js +44 -0
- package/src/components/switch-field/switch-field.changelog.md +16 -0
- package/src/components/switch-field/switch-field.js +17 -9
- package/src/components/switch-field/switch-field.readme.md +11 -4
- package/src/components/switch-field/switch-field.style.js +13 -13
- package/src/components/tab-group/tab-group.changelog.md +19 -0
- package/src/components/tab-group/tab-group.js +122 -10
- package/src/components/tab-group/tab-group.readme.md +25 -4
- package/src/components/tab-link/tab-link.changelog.md +16 -0
- package/src/components/tab-link/tab-link.js +51 -8
- package/src/components/tab-link/tab-link.readme.md +14 -8
- package/src/components/tab-link/tab-link.style.js +13 -0
- package/src/components/tab-panel/tab-panel.changelog.md +8 -2
- package/src/components/tab-panel/tab-panel.js +7 -3
- package/src/components/tab-panel/tab-panel.readme.md +7 -5
- package/src/components/tag/tag.changelog.md +24 -0
- package/src/components/tag/tag.define.js +3 -0
- package/src/components/tag/tag.events.js +3 -0
- package/src/components/tag/tag.js +116 -0
- package/src/components/tag/tag.readme.md +119 -0
- package/src/components/tag/tag.style.js +101 -0
- package/src/components/tag-field/tag-field.changelog.md +25 -0
- package/src/components/tag-field/tag-field.define.js +3 -0
- package/src/components/tag-field/tag-field.js +359 -0
- package/src/components/tag-field/tag-field.readme.md +113 -0
- package/src/components/tag-field/tag-field.style.js +62 -0
- package/src/components/textarea-field/textarea-field.changelog.md +28 -4
- package/src/components/textarea-field/textarea-field.js +68 -14
- package/src/components/textarea-field/textarea-field.readme.md +45 -9
- package/src/components/textarea-field/textarea-field.style.js +45 -2
- package/src/components/toast/toast.changelog.md +24 -0
- package/src/components/toast/toast.define.js +3 -0
- package/src/components/toast/toast.js +193 -0
- package/src/components/toast/toast.readme.md +189 -0
- package/src/components/toast/toast.style.js +74 -0
- package/src/components/tooltip/tooltip.changelog.md +24 -0
- package/src/components/tooltip/tooltip.define.js +3 -0
- package/src/components/tooltip/tooltip.events.js +4 -0
- package/src/components/tooltip/tooltip.js +377 -0
- package/src/components/tooltip/tooltip.readme.md +172 -0
- package/src/components/tooltip/tooltip.style.js +107 -0
- package/src/components/transition-classes/transition-classes.js +6 -6
- package/src/styles/appearance.style.js +42 -0
- package/src/styles/arrow.style.js +65 -0
- package/src/styles/choice-group.style.js +94 -0
- package/src/styles/form-control.style.js +79 -0
- package/src/styles/host.style.js +55 -0
- package/src/styles/layers.css +31 -0
- package/src/styles/modal.style.js +146 -0
- package/src/styles/native.css +275 -0
- package/src/styles/size.style.js +48 -0
- package/src/styles/slide-controls.style.js +225 -0
- package/src/styles/utilities.css +30 -0
- package/src/styles/variants.style.js +78 -0
- package/src/themes/default.css +86 -142
- package/src/themes/high-contrast.css +72 -129
- package/src/themes/sketchy.css +95 -175
- package/src/utils/floating.js +71 -0
- package/src/utils/focus.js +18 -0
- package/src/utils/progress.js +25 -0
- package/src/utils/slots.js +21 -0
- package/src/utils/text-entry-attributes.js +51 -0
- package/types/all.d.ts +54 -1
- package/types/index.d.ts +1 -0
- package/types/src/components/accordion/accordion.d.ts +6 -4
- package/types/src/components/accordion/accordion.events.d.ts +3 -3
- package/types/src/components/accordion-group/accordion-group.d.ts +4 -3
- package/types/src/components/amount-field/amount-field.d.ts +30 -16
- package/types/src/components/avatar/avatar.d.ts +57 -0
- package/types/src/components/avatar/avatar.define.d.ts +1 -0
- package/types/src/components/avatar/avatar.style.d.ts +2 -0
- package/types/src/components/badge/badge.d.ts +32 -0
- package/types/src/components/badge/badge.define.d.ts +1 -0
- package/types/src/components/badge/badge.style.d.ts +2 -0
- package/types/src/components/breadcrumb/breadcrumb.d.ts +27 -0
- package/types/src/components/breadcrumb/breadcrumb.define.d.ts +1 -0
- package/types/src/components/breadcrumb/breadcrumb.style.d.ts +2 -0
- package/types/src/components/breadcrumb-item/breadcrumb-item.d.ts +38 -0
- package/types/src/components/breadcrumb-item/breadcrumb-item.define.d.ts +1 -0
- package/types/src/components/breadcrumb-item/breadcrumb-item.style.d.ts +2 -0
- package/types/src/components/button/button.d.ts +129 -14
- package/types/src/components/button-group/button-group.d.ts +28 -0
- package/types/src/components/button-group/button-group.define.d.ts +1 -0
- package/types/src/components/button-group/button-group.style.d.ts +2 -0
- package/types/src/components/card/card.d.ts +40 -0
- package/types/src/components/card/card.define.d.ts +1 -0
- package/types/src/components/card/card.style.d.ts +2 -0
- package/types/src/components/carousel/carousel.d.ts +22 -8
- package/types/src/components/carousel/carousel.events.d.ts +3 -3
- package/types/src/components/carousel/glide/components/ShadowAnchors.d.ts +1 -1
- package/types/src/components/carousel/glide/components/ShadowClones.d.ts +8 -1
- package/types/src/components/carousel/glide/components/ShadowGaps.d.ts +1 -1
- package/types/src/components/carousel/glide/components/ShadowHtml.d.ts +1 -1
- package/types/src/components/carousel/glide/components/glide-html.d.ts +1 -1
- package/types/src/components/checkbox-field/checkbox-field.d.ts +22 -15
- package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +100 -0
- package/types/src/components/checkbox-group-field/checkbox-group-field.define.d.ts +1 -0
- package/types/src/components/checkbox-group-field/checkbox-group-field.style.d.ts +2 -0
- package/types/src/components/color-field/color-field.d.ts +102 -0
- package/types/src/components/color-field/color-field.define.d.ts +1 -0
- package/types/src/components/color-field/color-field.style.d.ts +2 -0
- package/types/src/components/combobox-field/combobox-field.d.ts +84 -0
- package/types/src/components/combobox-field/combobox-field.define.d.ts +1 -0
- package/types/src/components/combobox-field/combobox-field.style.d.ts +2 -0
- package/types/src/components/copy-button/copy-button.d.ts +93 -0
- package/types/src/components/copy-button/copy-button.define.d.ts +1 -0
- package/types/src/components/copy-button/copy-button.events.d.ts +5 -0
- package/types/src/components/copy-button/copy-button.style.d.ts +2 -0
- package/types/src/components/date-field/date-field.d.ts +102 -0
- package/types/src/components/date-field/date-field.define.d.ts +1 -0
- package/types/src/components/date-field/date-field.style.d.ts +2 -0
- package/types/src/components/dialog/dialog.d.ts +101 -19
- package/types/src/components/dialog/dialog.events.d.ts +8 -8
- package/types/src/components/divider/divider.d.ts +27 -0
- package/types/src/components/divider/divider.define.d.ts +1 -0
- package/types/src/components/divider/divider.style.d.ts +2 -0
- package/types/src/components/drawer/drawer.d.ts +70 -0
- package/types/src/components/drawer/drawer.define.d.ts +1 -0
- package/types/src/components/drawer/drawer.events.d.ts +9 -0
- package/types/src/components/drawer/drawer.style.d.ts +2 -0
- package/types/src/components/dropdown/dropdown.d.ts +5 -3
- package/types/src/components/empty-state/empty-state.d.ts +29 -0
- package/types/src/components/empty-state/empty-state.define.d.ts +1 -0
- package/types/src/components/empty-state/empty-state.style.d.ts +2 -0
- package/types/src/components/file-field/file-field.d.ts +115 -0
- package/types/src/components/file-field/file-field.define.d.ts +1 -0
- package/types/src/components/file-field/file-field.style.d.ts +2 -0
- package/types/src/components/form-field/form-field.d.ts +129 -14
- package/types/src/components/form-field/form-field.events.d.ts +4 -4
- package/types/src/components/input-field/input-field.d.ts +52 -5
- package/types/src/components/lazy-src/lazy-src.d.ts +7 -5
- package/types/src/components/lazy-src/lazy-src.events.d.ts +5 -5
- package/types/src/components/notification/notification.d.ts +18 -18
- package/types/src/components/notification/notification.events.d.ts +6 -6
- package/types/src/components/otp-field/otp-field.d.ts +130 -0
- package/types/src/components/otp-field/otp-field.define.d.ts +1 -0
- package/types/src/components/otp-field/otp-field.events.d.ts +4 -0
- package/types/src/components/otp-field/otp-field.style.d.ts +2 -0
- package/types/src/components/pagination/pagination.d.ts +117 -0
- package/types/src/components/pagination/pagination.define.d.ts +1 -0
- package/types/src/components/pagination/pagination.events.d.ts +4 -0
- package/types/src/components/pagination/pagination.style.d.ts +2 -0
- package/types/src/components/password-field/password-field.d.ts +29 -12
- package/types/src/components/popover/popover.d.ts +123 -0
- package/types/src/components/popover/popover.define.d.ts +1 -0
- package/types/src/components/popover/popover.events.d.ts +5 -0
- package/types/src/components/popover/popover.style.d.ts +2 -0
- package/types/src/components/progress-bar/progress-bar.d.ts +35 -0
- package/types/src/components/progress-bar/progress-bar.define.d.ts +1 -0
- package/types/src/components/progress-bar/progress-bar.style.d.ts +2 -0
- package/types/src/components/progress-ring/progress-ring.d.ts +40 -0
- package/types/src/components/progress-ring/progress-ring.define.d.ts +1 -0
- package/types/src/components/progress-ring/progress-ring.style.d.ts +2 -0
- package/types/src/components/radio-field/radio-field.d.ts +21 -9
- package/types/src/components/range-field/range-field.d.ts +94 -0
- package/types/src/components/range-field/range-field.define.d.ts +1 -0
- package/types/src/components/range-field/range-field.style.d.ts +2 -0
- package/types/src/components/rating-field/rating-field.d.ts +96 -0
- package/types/src/components/rating-field/rating-field.define.d.ts +1 -0
- package/types/src/components/rating-field/rating-field.style.d.ts +2 -0
- package/types/src/components/scroll-to/scroll-to.d.ts +3 -2
- package/types/src/components/scroll-to-top/scroll-to-top.d.ts +4 -2
- package/types/src/components/select-field/select-field.d.ts +55 -5
- package/types/src/components/skeleton/skeleton.d.ts +29 -0
- package/types/src/components/skeleton/skeleton.define.d.ts +1 -0
- package/types/src/components/skeleton/skeleton.style.d.ts +2 -0
- package/types/src/components/slider/slider.d.ts +14 -8
- package/types/src/components/slider/slider.events.d.ts +4 -4
- package/types/src/components/spinner/spinner.d.ts +28 -0
- package/types/src/components/spinner/spinner.define.d.ts +1 -0
- package/types/src/components/spinner/spinner.style.d.ts +2 -0
- package/types/src/components/sticky/sticky.d.ts +4 -2
- package/types/src/components/svg-use/svg-use.d.ts +4 -2
- package/types/src/components/switch-field/switch-field.d.ts +17 -15
- package/types/src/components/tab-group/tab-group.d.ts +44 -3
- package/types/src/components/tab-link/tab-link.d.ts +33 -10
- package/types/src/components/tab-panel/tab-panel.d.ts +8 -5
- package/types/src/components/tag/tag.d.ts +53 -0
- package/types/src/components/tag/tag.define.d.ts +1 -0
- package/types/src/components/tag/tag.events.d.ts +4 -0
- package/types/src/components/tag/tag.style.d.ts +2 -0
- package/types/src/components/tag-field/tag-field.d.ts +178 -0
- package/types/src/components/tag-field/tag-field.define.d.ts +1 -0
- package/types/src/components/tag-field/tag-field.style.d.ts +2 -0
- package/types/src/components/textarea-field/textarea-field.d.ts +44 -4
- package/types/src/components/toast/toast.d.ts +110 -0
- package/types/src/components/toast/toast.define.d.ts +1 -0
- package/types/src/components/toast/toast.style.d.ts +2 -0
- package/types/src/components/tooltip/tooltip.d.ts +161 -0
- package/types/src/components/tooltip/tooltip.define.d.ts +1 -0
- package/types/src/components/tooltip/tooltip.events.d.ts +5 -0
- package/types/src/components/tooltip/tooltip.style.d.ts +2 -0
- package/types/src/components/transition-classes/transition-classes.d.ts +9 -8
- package/types/src/styles/appearance.style.d.ts +18 -0
- package/types/src/styles/arrow.style.d.ts +15 -0
- package/types/src/styles/choice-group.style.d.ts +23 -0
- package/types/src/styles/form-control.style.d.ts +26 -0
- package/types/src/styles/host.style.d.ts +24 -0
- package/types/src/styles/modal.style.d.ts +20 -0
- package/types/src/styles/size.style.d.ts +20 -0
- package/types/src/styles/slide-controls.style.d.ts +20 -0
- package/types/src/styles/variants.style.d.ts +32 -0
- package/types/src/utils/body-scroll.d.ts +12 -2
- package/types/src/utils/floating.d.ts +36 -0
- package/types/src/utils/focus.d.ts +16 -0
- package/types/src/utils/progress.d.ts +19 -0
- package/types/src/utils/slots.d.ts +19 -0
- package/types/src/utils/text-entry-attributes.d.ts +18 -0
- package/types/src/utils/transitions.d.ts +2 -2
- package/web-types.json +6590 -1584
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { TemplateElement } from '@webtides/element-js';
|
|
2
|
+
import Events from './dialog.events.js';
|
|
2
3
|
/**
|
|
3
4
|
* A modal dialog built on the native `<dialog>` element, so the platform owns focus trapping,
|
|
4
|
-
* background `inert`, top-layer rendering
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* background `inert`, top-layer rendering and focus restoration. The component adds an animated,
|
|
6
|
+
* cancelable open/close lifecycle and ref-counted body-scroll locking on top, and closes for a
|
|
7
|
+
* `<form method="dialog">` in one of its slots.
|
|
7
8
|
*
|
|
8
9
|
* @element el-dialog
|
|
9
10
|
*
|
|
@@ -41,7 +42,38 @@ export function define(): void;
|
|
|
41
42
|
* your own dismissal when set. Reflected to the `no-header` attribute.
|
|
42
43
|
* @property {string} closeLabel - Accessible label for the built-in close button. Default `'Close'`.
|
|
43
44
|
*/
|
|
44
|
-
export default class Dialog {
|
|
45
|
+
export default class Dialog extends TemplateElement {
|
|
46
|
+
/**
|
|
47
|
+
* Counts the ways the dialog has set out on. See `_sync()`.
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
_run;
|
|
51
|
+
/**
|
|
52
|
+
* Where the dialog is, or is on its way to: shown (`true`) or closed.
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
_heading;
|
|
56
|
+
/**
|
|
57
|
+
* Whether it is on its way, with a transition still to wait for.
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
_moving;
|
|
61
|
+
open: boolean;
|
|
62
|
+
_shown: any;
|
|
63
|
+
_rest: any;
|
|
64
|
+
_scrollLocked: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @param {object} [options] - For a component that extends the dialog: its own `styles`, and
|
|
67
|
+
* `propertyOptions` for the properties it adds.
|
|
68
|
+
*/
|
|
69
|
+
constructor(options?: object);
|
|
70
|
+
/**
|
|
71
|
+
* The names of the events. A component that extends the dialog fires them under names of its
|
|
72
|
+
* own.
|
|
73
|
+
* @protected
|
|
74
|
+
* @returns {typeof Events}
|
|
75
|
+
*/
|
|
76
|
+
protected get _eventNames(): typeof Events;
|
|
45
77
|
properties(): {
|
|
46
78
|
open: boolean;
|
|
47
79
|
label: string;
|
|
@@ -51,7 +83,7 @@ export default class Dialog {
|
|
|
51
83
|
connected(): void;
|
|
52
84
|
disconnected(): void;
|
|
53
85
|
watch(): {
|
|
54
|
-
open: (
|
|
86
|
+
open: () => void;
|
|
55
87
|
};
|
|
56
88
|
events(): {
|
|
57
89
|
'[data-dialog-close]': {
|
|
@@ -63,41 +95,91 @@ export default class Dialog {
|
|
|
63
95
|
"[part~='base']": {
|
|
64
96
|
cancel: (event: any) => void;
|
|
65
97
|
click: (event: any) => void;
|
|
98
|
+
submit: (event: any) => void;
|
|
66
99
|
};
|
|
67
100
|
};
|
|
68
101
|
/**
|
|
69
102
|
* Opens the dialog.
|
|
70
|
-
* @returns {Promise<void>} Resolves
|
|
103
|
+
* @returns {Promise<void>} Resolves once the dialog has come to rest. That is after the open
|
|
104
|
+
* transition as a rule; when a `hide()` overtakes it, it is once the dialog is closed again.
|
|
105
|
+
* It never rejects.
|
|
71
106
|
*/
|
|
72
107
|
show(): Promise<void>;
|
|
73
|
-
open: boolean;
|
|
74
108
|
/**
|
|
75
109
|
* Closes the dialog.
|
|
76
|
-
* @returns {Promise<void>} Resolves
|
|
110
|
+
* @returns {Promise<void>} Resolves once the dialog has come to rest. That is after the close
|
|
111
|
+
* transition as a rule; when a `show()` overtakes it, it is once the dialog is shown again.
|
|
112
|
+
* It never rejects.
|
|
77
113
|
*/
|
|
78
114
|
hide(): Promise<void>;
|
|
79
115
|
/**
|
|
80
|
-
* Requests that the dialog close, emitting
|
|
81
|
-
*
|
|
116
|
+
* Requests that the dialog close, emitting its cancelable request-close event. When a listener
|
|
117
|
+
* calls `preventDefault()` the dialog stays open and plays a short deny animation.
|
|
82
118
|
* @param {'close-button' | 'keyboard' | 'overlay'} source - What triggered the request.
|
|
83
119
|
* @returns {void}
|
|
84
120
|
*/
|
|
85
|
-
requestClose(source:
|
|
86
|
-
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
121
|
+
requestClose(source: 'close-button' | 'keyboard' | 'overlay'): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets `open` and hands out the promise for the moment the dialog is at rest again.
|
|
124
|
+
* @private
|
|
125
|
+
* @param {boolean} open
|
|
126
|
+
* @returns {Promise<void>}
|
|
127
|
+
*/
|
|
128
|
+
private _setOpen;
|
|
129
|
+
/**
|
|
130
|
+
* Brings the `<dialog>` to what `open` says, with the transition on the way.
|
|
131
|
+
*
|
|
132
|
+
* Every time the dialog has to turn, it sets out on a new way with a number of its own. A way
|
|
133
|
+
* waits, for two frames and for the transition, and when it goes on it first looks whether a
|
|
134
|
+
* later way has begun. If so it stops: the last value of `open` wins, and no way finishes
|
|
135
|
+
* work that is out of date.
|
|
136
|
+
*
|
|
137
|
+
* `…-after-show` and `…-after-hide` are fired by the way that gets there. A way that is cut
|
|
138
|
+
* short has none: after `…-show` comes `…-after-show` or `…-hide`, after `…-hide` comes
|
|
139
|
+
* `…-after-hide` or `…-show`.
|
|
140
|
+
* @private
|
|
141
|
+
*/
|
|
142
|
+
private _sync;
|
|
143
|
+
/**
|
|
144
|
+
* Closes the `<dialog>` for the platform and gives the page back.
|
|
145
|
+
* @private
|
|
146
|
+
* @param {HTMLDialogElement} dialog
|
|
147
|
+
*/
|
|
148
|
+
private _close;
|
|
149
|
+
/**
|
|
150
|
+
* The dialog is at rest, shown or closed: whoever waits for that can go on.
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
private _settle;
|
|
154
|
+
/**
|
|
155
|
+
* Takes the lock on the scrolling of the page, once for this dialog.
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
158
|
+
private _lockScroll;
|
|
159
|
+
/**
|
|
160
|
+
* Gives the lock back, if this dialog holds it. The lock counts its holders, so a dialog must
|
|
161
|
+
* not give back more than it took.
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
private _unlockScroll;
|
|
90
165
|
/** @private */
|
|
91
166
|
private _handleOverlayClick;
|
|
167
|
+
/**
|
|
168
|
+
* Closes the dialog for a form with `method="dialog"` in one of its slots, as the platform does
|
|
169
|
+
* for a form inside a `<dialog>`. The platform looks for the `<dialog>` above the form in the
|
|
170
|
+
* tree of the form, and a form in a slot is a child of the element, in the page. Its `submit`
|
|
171
|
+
* passes the `<dialog>` all the same, on its way up through the slot.
|
|
172
|
+
* @private
|
|
173
|
+
* @param {SubmitEvent} event
|
|
174
|
+
*/
|
|
175
|
+
private _handleSubmit;
|
|
92
176
|
/** @private */
|
|
93
177
|
private _denyClose;
|
|
94
178
|
/** @private */
|
|
95
179
|
private _syncFooter;
|
|
96
180
|
/** @private */
|
|
97
|
-
private _once;
|
|
98
|
-
/** @private */
|
|
99
181
|
private headerTemplate;
|
|
100
182
|
template(): any;
|
|
101
183
|
}
|
|
184
|
+
export declare function define(): void;
|
|
102
185
|
export { Events };
|
|
103
|
-
import Events from './dialog.events.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
declare const _default: {
|
|
2
|
+
SHOW: string;
|
|
3
|
+
AFTER_SHOW: string;
|
|
4
|
+
HIDE: string;
|
|
5
|
+
AFTER_HIDE: string;
|
|
6
|
+
INITIAL_FOCUS: string;
|
|
7
|
+
REQUEST_CLOSE: string;
|
|
8
|
+
};
|
|
9
9
|
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TemplateElement } from '@webtides/element-js';
|
|
2
|
+
/**
|
|
3
|
+
* A divider: a line between two groups of content, the regions of a card, the entries of a menu,
|
|
4
|
+
* the controls of a toolbar. Horizontal by default, as wide as its container; vertical it is as
|
|
5
|
+
* high as the row it stands in. The line is a native `<hr>`, which is a separator to assistive
|
|
6
|
+
* technology.
|
|
7
|
+
*
|
|
8
|
+
* @element el-divider
|
|
9
|
+
*
|
|
10
|
+
* @csspart base - The line, an `<hr>`.
|
|
11
|
+
*
|
|
12
|
+
* @cssproperty --el-divider-color - The colour of the line. Unset, it is `--el-color-border`, and
|
|
13
|
+
* a fifth of the text colour without a theme.
|
|
14
|
+
* @cssproperty --el-divider-width - The thickness of the line. Unset, it is `--el-border-width`,
|
|
15
|
+
* and `1px` without a theme.
|
|
16
|
+
*
|
|
17
|
+
* @property {'horizontal'|'vertical'} orientation - The direction of the line. Default
|
|
18
|
+
* `'horizontal'`. Reflected to the `orientation` attribute.
|
|
19
|
+
*/
|
|
20
|
+
export default class Divider extends TemplateElement {
|
|
21
|
+
constructor();
|
|
22
|
+
properties(): {
|
|
23
|
+
orientation: string;
|
|
24
|
+
};
|
|
25
|
+
template(): any;
|
|
26
|
+
}
|
|
27
|
+
export declare function define(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import Dialog from '../dialog/dialog.js';
|
|
2
|
+
import Events from './drawer.events.js';
|
|
3
|
+
/**
|
|
4
|
+
* A panel that slides in from an edge of the viewport and lies over the page: for a navigation, a
|
|
5
|
+
* filter, the details of a row. It is the dialog of the library at another place, a modal built on
|
|
6
|
+
* the native `<dialog>` element. The platform keeps the focus inside, makes the page behind it
|
|
7
|
+
* `inert`, renders it in the top layer and gives the focus back when it closes. The component adds
|
|
8
|
+
* the edge it comes from, the slide, a close that a listener can refuse, and the lock on the
|
|
9
|
+
* scrolling of the page.
|
|
10
|
+
*
|
|
11
|
+
* @element el-drawer
|
|
12
|
+
*
|
|
13
|
+
* @fires {CustomEvent} drawer-show - Fired when the drawer starts to open.
|
|
14
|
+
* @fires {CustomEvent} drawer-after-show - Fired once the drawer has slid in.
|
|
15
|
+
* @fires {CustomEvent} drawer-hide - Fired when the drawer starts to close.
|
|
16
|
+
* @fires {CustomEvent} drawer-after-hide - Fired once the drawer has slid out.
|
|
17
|
+
* @fires {CustomEvent} drawer-initial-focus - Fired after the drawer has been opened and the
|
|
18
|
+
* platform has moved the focus into it. Move the focus in a listener to have it elsewhere.
|
|
19
|
+
* @fires {CustomEvent<{ source: 'close-button' | 'keyboard' | 'overlay' }>} drawer-request-close -
|
|
20
|
+
* Fired before the drawer closes for the close button, `Escape` or a click on the backdrop.
|
|
21
|
+
* Cancelable: call `preventDefault()` to keep the drawer open.
|
|
22
|
+
*
|
|
23
|
+
* @slot - The content of the drawer (body).
|
|
24
|
+
* @slot label - The title of the drawer. Takes precedence over the `label` attribute.
|
|
25
|
+
* @slot header-actions - Controls in the header, before the close button.
|
|
26
|
+
* @slot footer - The footer, for buttons as a rule. It is left out when it is empty.
|
|
27
|
+
*
|
|
28
|
+
* @csspart base - The native `<dialog>` element: the surface of the drawer (background, border,
|
|
29
|
+
* shadow). The backdrop is its `::backdrop` pseudo-element.
|
|
30
|
+
* @csspart header - The header row with the title, the header actions and the close button.
|
|
31
|
+
* @csspart title - The title heading.
|
|
32
|
+
* @csspart header-actions - The container of the `header-actions` slot.
|
|
33
|
+
* @csspart close-button - The built-in close button.
|
|
34
|
+
* @csspart body - The body with the default slot. It scrolls when the content is longer.
|
|
35
|
+
* @csspart footer - The footer with the `footer` slot.
|
|
36
|
+
*
|
|
37
|
+
* @cssstate open - Set while the drawer is open. Style with `:host(:state(open))` or
|
|
38
|
+
* `el-drawer:state(open)` from outside.
|
|
39
|
+
*
|
|
40
|
+
* @property {boolean} open - Whether the drawer is open. Reflected to the `open` attribute.
|
|
41
|
+
* @property {string} label - The title of the drawer (used when the `label` slot is empty), and
|
|
42
|
+
* its accessible name when `no-header` is set.
|
|
43
|
+
* @property {'start'|'end'|'top'|'bottom'} placement - The edge of the viewport the drawer comes
|
|
44
|
+
* from. `start` and `end` are the two ends of a line of text: left and right, and the other way
|
|
45
|
+
* round in a right-to-left page. Default `'end'`. Reflected to the `placement` attribute.
|
|
46
|
+
* @property {boolean} noHeader - Removes the header (title and built-in close button). Provide a
|
|
47
|
+
* way to close the drawer when set. Reflected to the `no-header` attribute.
|
|
48
|
+
* @property {string} closeLabel - Accessible label of the built-in close button. Default `'Close'`.
|
|
49
|
+
*/
|
|
50
|
+
export default class Drawer extends Dialog {
|
|
51
|
+
constructor(options?: {});
|
|
52
|
+
properties(): {
|
|
53
|
+
open: boolean;
|
|
54
|
+
label: string;
|
|
55
|
+
noHeader: boolean;
|
|
56
|
+
closeLabel: string;
|
|
57
|
+
placement: string;
|
|
58
|
+
};
|
|
59
|
+
/** @protected */
|
|
60
|
+
protected get _eventNames(): {
|
|
61
|
+
SHOW: string;
|
|
62
|
+
AFTER_SHOW: string;
|
|
63
|
+
HIDE: string;
|
|
64
|
+
AFTER_HIDE: string;
|
|
65
|
+
INITIAL_FOCUS: string;
|
|
66
|
+
REQUEST_CLOSE: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export declare function define(): void;
|
|
70
|
+
export { Events };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { TemplateElement } from '@webtides/element-js';
|
|
2
2
|
/**
|
|
3
3
|
* Toggleable dropdown menu with `trigger` and `content` slots. Auto-closes on outside
|
|
4
4
|
* click or `Escape`.
|
|
@@ -20,7 +20,9 @@ export function define(): void;
|
|
|
20
20
|
* @property {boolean} open - Whether the dropdown content is visible. Setting to `true`
|
|
21
21
|
* attaches a one-shot outside-click / `Escape` listener that closes the dropdown.
|
|
22
22
|
*/
|
|
23
|
-
export default class Dropdown {
|
|
23
|
+
export default class Dropdown extends TemplateElement {
|
|
24
|
+
open: boolean;
|
|
25
|
+
constructor();
|
|
24
26
|
properties(): {
|
|
25
27
|
open: boolean;
|
|
26
28
|
};
|
|
@@ -32,7 +34,6 @@ export default class Dropdown {
|
|
|
32
34
|
click: () => void;
|
|
33
35
|
};
|
|
34
36
|
};
|
|
35
|
-
open: boolean;
|
|
36
37
|
/** @private */
|
|
37
38
|
private addEventListeners;
|
|
38
39
|
/** @private */
|
|
@@ -43,3 +44,4 @@ export default class Dropdown {
|
|
|
43
44
|
private onKeyDown;
|
|
44
45
|
template(): any;
|
|
45
46
|
}
|
|
47
|
+
export declare function define(): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TemplateElement } from '@webtides/element-js';
|
|
2
|
+
/**
|
|
3
|
+
* An empty state: what stands in the place of a list or a collection while there is nothing in
|
|
4
|
+
* it. A message in the middle, with a heading above it, an icon above that and an action below, as
|
|
5
|
+
* far as they are given. Pure presentation, without a role and without behaviour.
|
|
6
|
+
*
|
|
7
|
+
* @element el-empty-state
|
|
8
|
+
*
|
|
9
|
+
* @slot - The message: what is missing, and what to do about it.
|
|
10
|
+
* @slot icon - An icon or an illustration above the heading.
|
|
11
|
+
* @slot heading - A short heading above the message.
|
|
12
|
+
* @slot action - What the user can do now: a button, a link, or two.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The column in the middle that holds the regions.
|
|
15
|
+
* @csspart icon - The region of the `icon` slot.
|
|
16
|
+
* @csspart heading - The region of the `heading` slot.
|
|
17
|
+
* @csspart message - The region of the default slot.
|
|
18
|
+
* @csspart action - The region of the `action` slot.
|
|
19
|
+
*/
|
|
20
|
+
export default class EmptyState extends TemplateElement {
|
|
21
|
+
constructor();
|
|
22
|
+
events(): {
|
|
23
|
+
"[part~='base']": {
|
|
24
|
+
slotchange: () => any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
template(): any;
|
|
28
|
+
}
|
|
29
|
+
export declare function define(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import FormField from '../form-field/form-field.js';
|
|
2
|
+
/**
|
|
3
|
+
* One or several files for a form. Renders a native `<input type="file">`, so the dialog of the
|
|
4
|
+
* system, a drop onto the control, the keyboard and the form submission are the ones of the
|
|
5
|
+
* browser. Extends `FormField` and inherits its label / help / error / required surface.
|
|
6
|
+
*
|
|
7
|
+
* The files come from the user. A script cannot choose one, the browser does not allow that; it can
|
|
8
|
+
* take the choice away with an empty `value`.
|
|
9
|
+
*
|
|
10
|
+
* @element el-file-field
|
|
11
|
+
*
|
|
12
|
+
* @fires {CustomEvent<string[]>} input-change - Fired when the user has chosen files, and when the
|
|
13
|
+
* choice was taken away. `detail` is the list of the names; the files are in `files` of the
|
|
14
|
+
* element. Bubbles.
|
|
15
|
+
*
|
|
16
|
+
* @cssstate touched - Set on the host once the user has left the control for another place of the
|
|
17
|
+
* page, or the browser has refused a submit because of it. Inherits `valid` and `invalid` from
|
|
18
|
+
* `FormField`.
|
|
19
|
+
*
|
|
20
|
+
* @property {string[]} value - The names of the chosen files. It follows the control: a script can
|
|
21
|
+
* set it to an empty list, which takes the choice away, and to nothing else.
|
|
22
|
+
* @property {string} accept - Passed on to the control as its `accept` attribute: the kinds of
|
|
23
|
+
* files the dialog offers (`'image/*'`, `'.pdf,.docx'`). Empty (the default) offers every file.
|
|
24
|
+
* @property {boolean} multiple - Whether more than one file can be chosen. Default `false`.
|
|
25
|
+
* @property {string | null} capture - Passed on as `capture`: a phone takes the picture or the
|
|
26
|
+
* recording with its camera (`'user'`, `'environment'`) and does not open its files. `null` (the
|
|
27
|
+
* default) leaves the attribute out.
|
|
28
|
+
* @property {'small'|'medium'|'large'} size - Size of the control: its height, its padding and its
|
|
29
|
+
* font size. Default `'medium'`. Reflected to the `size` attribute. It shows once the control is
|
|
30
|
+
* decorated (`styles/native.css`); a control with the look of the browser keeps its size.
|
|
31
|
+
*/
|
|
32
|
+
export default class FileField extends FormField {
|
|
33
|
+
/**
|
|
34
|
+
* The names the control had when the field last looked. See `_matchControl()`.
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
private _chosen;
|
|
38
|
+
/**
|
|
39
|
+
* The value that `input-change` last reported, or that the field started with. See `watch()`.
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
private _reportedValue;
|
|
43
|
+
constructor(options: any);
|
|
44
|
+
properties(): {
|
|
45
|
+
name: string;
|
|
46
|
+
required: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
label: string;
|
|
49
|
+
labelScreenReaderOnly: boolean;
|
|
50
|
+
errorMessage: string;
|
|
51
|
+
helpMessage: string;
|
|
52
|
+
valid: boolean;
|
|
53
|
+
touched: boolean;
|
|
54
|
+
value: any[];
|
|
55
|
+
accept: string;
|
|
56
|
+
multiple: boolean;
|
|
57
|
+
capture: any;
|
|
58
|
+
size: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The chosen files, as the control has them.
|
|
62
|
+
* @returns {File[]}
|
|
63
|
+
*/
|
|
64
|
+
get files(): File[];
|
|
65
|
+
afterUpdate(): void;
|
|
66
|
+
watch(): {
|
|
67
|
+
valid: () => void;
|
|
68
|
+
touched: () => void;
|
|
69
|
+
value: () => void;
|
|
70
|
+
};
|
|
71
|
+
events(): {
|
|
72
|
+
'[ref=input]': {
|
|
73
|
+
change: () => void;
|
|
74
|
+
focus: () => void;
|
|
75
|
+
blur: () => void;
|
|
76
|
+
invalid: (event: any) => void;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* The user has chosen files, or has taken the choice away in the dialog.
|
|
81
|
+
* @returns {void}
|
|
82
|
+
*/
|
|
83
|
+
onChange(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Fires `input-change` with the value of now, once for every value.
|
|
86
|
+
* @private
|
|
87
|
+
* @param {boolean} [always] - Also when the value is the one that was reported last.
|
|
88
|
+
*/
|
|
89
|
+
private _report;
|
|
90
|
+
/**
|
|
91
|
+
* The value as a list of names. An attribute that is no JSON list gives a single text.
|
|
92
|
+
* @private
|
|
93
|
+
* @returns {string[]}
|
|
94
|
+
*/
|
|
95
|
+
private _names;
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
* @param {HTMLInputElement} control
|
|
99
|
+
* @returns {string[]}
|
|
100
|
+
*/
|
|
101
|
+
private _namesOf;
|
|
102
|
+
/**
|
|
103
|
+
* Makes `value` say what the control has, after every render and every change of `value`.
|
|
104
|
+
*
|
|
105
|
+
* The browser lets nobody but the user choose a file, so the control is what counts: a value
|
|
106
|
+
* from outside that names other files is put back to the names of the control. The one thing a
|
|
107
|
+
* script can do is take the choice away. An empty value after a choice does that; an empty
|
|
108
|
+
* value from the start does not, the browser can have brought a choice back with the page.
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
111
|
+
private _matchControl;
|
|
112
|
+
/** @private */
|
|
113
|
+
private fieldTemplate;
|
|
114
|
+
}
|
|
115
|
+
export declare function define(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|