@nldd/design-system 0.8.70 → 0.8.71
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 +12 -5
- package/custom-elements.json +2990 -577
- package/dist/assets/styles/style-resets.d.ts +1 -1
- package/dist/assets/styles/style-resets.js +1 -1
- package/dist/components/actions/button/button.d.ts +10 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +1 -1
- package/dist/components/actions/button/button.i18n.js +1 -1
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +19 -4
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +13 -3
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +6 -0
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +26 -39
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +25 -38
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +47 -52
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +55 -54
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +7 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +10 -4
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +30 -11
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +3 -3
- package/dist/components/components.js +65 -62
- package/dist/components/content/avatar/avatar.d.ts +44 -12
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts +5 -0
- package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -0
- package/dist/components/content/avatar/avatar.i18n.js +4 -0
- package/dist/components/content/avatar/avatar.i18n.js.map +1 -0
- package/dist/components/content/avatar/avatar.js +87 -13
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +44 -9
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts +2 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +53 -23
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/byline/byline.d.ts +6 -6
- package/dist/components/content/byline/byline.js +6 -6
- package/dist/components/content/code-viewer/code-viewer.js +2 -2
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +5 -4
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +19 -5
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +9 -2
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +14 -16
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +13 -15
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +7 -4
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/image/image.d.ts +9 -9
- package/dist/components/content/image/image.js +9 -9
- package/dist/components/content/image/image.styles.js +2 -2
- package/dist/components/content/image/image.template.js +2 -2
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/image/lqip-encoder.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +2 -2
- package/dist/components/content/rich-text/rich-text.d.ts +4 -4
- package/dist/components/content/rich-text/rich-text.js +4 -4
- package/dist/components/content/token/token.d.ts +7 -7
- package/dist/components/content/token/token.js +7 -7
- package/dist/components/content/tooltip/tooltip.d.ts +4 -14
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +4 -14
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +10 -19
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +10 -19
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +2 -6
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +2 -6
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +7 -14
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +7 -14
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +15 -2
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +2 -3
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -3
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/{index-Dgxr-sEe.js → index-CDK46KLh.js} +1 -1
- package/dist/components/{index-Bh_hMHn8.js → index-CbaaFM8N.js} +1 -1
- package/dist/components/{index-DS-RnHMu.js → index-DRtuMofR.js} +1 -1
- package/dist/components/{index-BP0XMTYa.js → index-DuvuHfMi.js} +1 -1
- package/dist/components/{index-CTUlN5qN.js → index-DzJola_U.js} +1 -1
- package/dist/components/{index-sa60dMt-.js → index-n8evy8Za.js} +1 -1
- package/dist/components/{index-BuLJAwiB.js → index-t08wCuGl.js} +4213 -2494
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +11 -11
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +11 -15
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +20 -6
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +29 -7
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +19 -18
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +23 -23
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -2
- package/dist/components/inputs/combo-box/combo-box.d.ts +26 -29
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +74 -39
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +7 -7
- package/dist/components/inputs/date-field/date-field.d.ts +25 -24
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +26 -29
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +5 -5
- package/dist/components/inputs/date-picker/date-picker.d.ts +16 -13
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +35 -15
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +21 -29
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +4 -4
- package/dist/components/inputs/dropdown/dropdown.js +4 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +21 -21
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +23 -26
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +5 -5
- package/dist/components/inputs/number-field/number-field.d.ts +17 -20
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +20 -23
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +4 -4
- package/dist/components/inputs/password-field/password-field.d.ts +25 -24
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +27 -29
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +7 -7
- package/dist/components/inputs/radio-button/radio-button.d.ts +10 -10
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +9 -14
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +2 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +24 -6
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +32 -7
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +3 -3
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +17 -10
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +15 -17
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +19 -22
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +5 -5
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +27 -29
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +47 -57
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -4
- package/dist/components/inputs/stepper/stepper.d.ts +14 -14
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +13 -18
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +12 -13
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +13 -18
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +6 -6
- package/dist/components/inputs/switch-field/switch-field.d.ts +4 -4
- package/dist/components/inputs/switch-field/switch-field.js +4 -4
- package/dist/components/inputs/text-editor/text-editor.caret.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.caret.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +21 -21
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +27 -27
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +4 -4
- package/dist/components/inputs/text-editor/text-editor.markdown.js +7 -7
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +14 -14
- package/dist/components/inputs/text-field/text-field.d.ts +20 -19
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +22 -24
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +14 -13
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +18 -18
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +7 -7
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +25 -17
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +24 -29
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.d.ts +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +35 -39
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +4 -4
- package/dist/components/inputs/token-field/token-field.template.js +1 -1
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +16 -4
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +18 -13
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +8 -18
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +26 -9
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +1 -1
- package/dist/components/layout/card/card.i18n.js +1 -1
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +51 -14
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +41 -4
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +14 -6
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +3 -10
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +3 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +21 -3
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +41 -41
- package/dist/components/layout/container/container.js +41 -41
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.js +2 -2
- package/dist/components/layout/page-footer/page-footer.d.ts +10 -12
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +11 -13
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +8 -1
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -3
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -3
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +20 -18
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +26 -20
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +20 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +18 -47
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +18 -47
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +9 -17
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +39 -27
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -4
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -4
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +17 -17
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -17
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -2
- package/dist/components/layout/window/window.d.ts +26 -20
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +58 -30
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.template.d.ts.map +1 -1
- package/dist/components/layout/window/window.template.js +1 -0
- package/dist/components/layout/window/window.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +43 -9
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +69 -9
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +96 -43
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +19 -7
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +77 -31
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +4 -4
- package/dist/components/lists-and-tables/list/list.i18n.js +4 -4
- package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +202 -70
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +29 -22
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +4 -3
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +189 -18
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +467 -45
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +133 -101
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +51 -24
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +108 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js +228 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +145 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +3 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js +35 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +1 -0
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -2
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -7
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -7
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +15 -16
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.d.ts +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +14 -15
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +2 -2
- package/dist/components/navigation/link/link.i18n.d.ts +1 -1
- package/dist/components/navigation/link/link.i18n.js +1 -1
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +1 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.js +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +5 -5
- package/dist/components/navigation/pagination/pagination.template.js +1 -1
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +11 -11
- package/dist/components/navigation/tab-bar/tab-bar.js +11 -11
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +7 -7
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +11 -11
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +11 -12
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +9 -4
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -5
- package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +3 -3
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -4
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +6 -6
- package/dist/components/status-and-feedback/badge/badge.d.ts +2 -2
- package/dist/components/status-and-feedback/badge/badge.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/badge/badge.i18n.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +9 -9
- package/dist/components/status-and-feedback/banner/banner.js +9 -9
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +6 -6
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +6 -6
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +7 -7
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +8 -8
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +22 -8
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +63 -27
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +1 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +13 -13
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +2 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +2 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +14 -14
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +15 -15
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +20 -20
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +4 -4
- package/dist/components/status-and-feedback/status-bar/status-bar.js +4 -4
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +124 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts +9 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js +8 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +210 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +294 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts +5 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +69 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js.map +1 -0
- package/dist/css/form.css +16 -7
- package/dist/css/settings.css +68 -73
- package/dist/types/vue.d.ts +186 -42
- package/dist/utilities/autofocus.d.ts +19 -0
- package/dist/utilities/autofocus.d.ts.map +1 -0
- package/dist/utilities/autofocus.js +35 -0
- package/dist/utilities/autofocus.js.map +1 -0
- package/dist/utilities/codemirror/theme.js +2 -2
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/color-scheme-repaint.d.ts +2 -2
- package/dist/utilities/color-scheme-repaint.js +2 -2
- package/dist/utilities/form-associated-mixin.d.ts +33 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -0
- package/dist/utilities/form-associated-mixin.js +52 -0
- package/dist/utilities/form-associated-mixin.js.map +1 -0
- package/dist/utilities/input-modality.d.ts +3 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +12 -1
- package/dist/utilities/input-modality.js.map +1 -1
- package/dist/utilities/page-section-mixin.d.ts +1 -1
- package/dist/utilities/page-section-mixin.js +2 -2
- package/dist/utilities/popup-anchor-controller.d.ts +2 -2
- package/package.json +9 -1
|
@@ -21,12 +21,15 @@ export const datePickerStyles = css `
|
|
|
21
21
|
--_week-number-column-width: var(--primitives-space-32);
|
|
22
22
|
--_week-number-font: var(--primitives-font-body-xs-regular-flat);
|
|
23
23
|
--_week-number-content-color: var(--semantics-content-secondary-color);
|
|
24
|
+
/* Set from JS by the width attribute; initial keeps it guaranteed-invalid
|
|
25
|
+
so every var(--_width, ...) below falls back to its own default. */
|
|
26
|
+
--_width: initial;
|
|
24
27
|
--_day-size: var(--semantics-controls-md-min-size);
|
|
25
28
|
--_day-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
26
29
|
--_day-font: var(--primitives-font-body-sm-regular-flat);
|
|
27
30
|
--_day-indicator-inset: var(--primitives-space-2);
|
|
28
31
|
--_day-indicator-size: calc(var(--_day-size) - var(--_day-indicator-inset) * 2);
|
|
29
|
-
--_day-indicator-corner-radius:
|
|
32
|
+
--_day-indicator-corner-radius: var(--_day-corner-radius);
|
|
30
33
|
--_day-is-in-range-background-color: var(--semantics-categories-accent-tinted-background-color);
|
|
31
34
|
--_day-is-in-range-content-color: var(--semantics-content-color);
|
|
32
35
|
--_day-is-today-border-color: light-dark(var(--primitives-color-neutral-250), var(--primitives-color-neutral-400));
|
|
@@ -39,20 +42,25 @@ export const datePickerStyles = css `
|
|
|
39
42
|
${inheritedTextReset}
|
|
40
43
|
display: block;
|
|
41
44
|
/* Stated, not fit-content: the calendar inside is sized in percentages, so
|
|
42
|
-
measuring it from here is circular and resolves to the container.
|
|
43
|
-
|
|
45
|
+
measuring it from here is circular and resolves to the container. The
|
|
46
|
+
width attribute (--_width) overrides the intrinsic seven-cell width;
|
|
47
|
+
the percentage-based inside stretches along. */
|
|
48
|
+
width: var(--_width, calc(var(--_day-size) * 7));
|
|
44
49
|
color: var(--semantics-content-color);
|
|
45
50
|
-webkit-tap-highlight-color: transparent;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
:host([week-numbers]) {
|
|
49
|
-
width: calc(var(--_day-size) * 7 + var(--_week-number-column-width));
|
|
54
|
+
width: var(--_width, calc(var(--_day-size) * 7 + var(--_week-number-column-width)));
|
|
50
55
|
}
|
|
51
56
|
|
|
57
|
+
/* An explicit width attribute outranks the derived stacked width: stacked
|
|
58
|
+
only describes how narrow the picker happens to be, not what the consumer
|
|
59
|
+
asked for. */
|
|
52
60
|
:host([stacked]) {
|
|
53
61
|
--_title-font: var(--primitives-font-display-4-sm);
|
|
54
62
|
|
|
55
|
-
width: 100
|
|
63
|
+
width: var(--_width, 100%);
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
:host([hidden]) {
|
|
@@ -220,30 +228,14 @@ export const datePickerStyles = css `
|
|
|
220
228
|
transform: translate(-50%, -50%);
|
|
221
229
|
}
|
|
222
230
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
is closed, when there is no band to connect to. */
|
|
227
|
-
.date-picker__day.is-range-start .date-picker__day-indicator,
|
|
228
|
-
.date-picker__day.is-range-end .date-picker__day-indicator {
|
|
229
|
-
top: var(--_day-indicator-inset);
|
|
230
|
-
left: auto;
|
|
231
|
-
border-radius: 0;
|
|
232
|
-
width: auto;
|
|
233
|
-
height: var(--_day-indicator-size);
|
|
234
|
-
transform: none;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.date-picker__day.is-range-start .date-picker__day-indicator {
|
|
238
|
-
inset-inline: var(--_day-indicator-inset) 0;
|
|
239
|
-
border-start-start-radius: var(--_day-indicator-size);
|
|
240
|
-
border-end-start-radius: var(--_day-indicator-size);
|
|
231
|
+
.date-picker__day.is-range-start:not(.is-range-end) .date-picker__day-indicator {
|
|
232
|
+
border-start-end-radius: 0;
|
|
233
|
+
border-end-end-radius: 0;
|
|
241
234
|
}
|
|
242
235
|
|
|
243
|
-
.date-picker__day.is-range-end .date-picker__day-indicator {
|
|
244
|
-
|
|
245
|
-
border-start-
|
|
246
|
-
border-end-end-radius: var(--_day-indicator-size);
|
|
236
|
+
.date-picker__day.is-range-end:not(.is-range-start) .date-picker__day-indicator {
|
|
237
|
+
border-start-start-radius: 0;
|
|
238
|
+
border-end-start-radius: 0;
|
|
247
239
|
}
|
|
248
240
|
|
|
249
241
|
.date-picker__day-number {
|
|
@@ -264,7 +256,7 @@ export const datePickerStyles = css `
|
|
|
264
256
|
decision instead - and while it is absent the ring shows, so a failure leaves
|
|
265
257
|
focus visible rather than hidden.
|
|
266
258
|
|
|
267
|
-
Raised above its
|
|
259
|
+
Raised above its neighbors: the ring sits outside the indicator, so an
|
|
268
260
|
adjacent selected day would paint over part of it. */
|
|
269
261
|
.date-picker__day:focus:not(.is-pointer-focus) {
|
|
270
262
|
z-index: 1;
|
|
@@ -276,7 +268,7 @@ export const datePickerStyles = css `
|
|
|
276
268
|
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
277
269
|
}
|
|
278
270
|
|
|
279
|
-
/* These four all set the
|
|
271
|
+
/* These four all set the color at equal specificity, so the order is what
|
|
280
272
|
decides: outside the month is the weakest, chosen the strongest. */
|
|
281
273
|
.date-picker__day.is-outside-month {
|
|
282
274
|
color: var(--_day-is-outside-month-content-color);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-picker/date-picker.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"date-picker.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-picker/date-picker.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuC/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8SrB,CAAC"}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* dynamic changes to options.
|
|
9
9
|
*
|
|
10
10
|
* @element nldd-dropdown
|
|
11
|
-
* @attr {string}
|
|
12
|
-
* @attr {boolean} valid
|
|
13
|
-
* @attr {boolean} invalid
|
|
11
|
+
* @attr {string} size - Size: 'xs' | 'sm' | 'md' (default: 'md')
|
|
12
|
+
* @attr {boolean} valid - Marks the field as valid
|
|
13
|
+
* @attr {boolean} invalid - Marks the field as invalid
|
|
14
14
|
* @attr {boolean} disabled - Disabled state; also forwarded to the slotted select
|
|
15
15
|
* @attr {boolean} expanded - Reflects whether the native picker popup is open (driven internally)
|
|
16
|
-
* @attr {string}
|
|
16
|
+
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
17
17
|
*
|
|
18
18
|
* @slot - A native `<select>` element with `<option>` and/or `<optgroup>` children
|
|
19
19
|
*
|
|
@@ -14,12 +14,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
* dynamic changes to options.
|
|
15
15
|
*
|
|
16
16
|
* @element nldd-dropdown
|
|
17
|
-
* @attr {string}
|
|
18
|
-
* @attr {boolean} valid
|
|
19
|
-
* @attr {boolean} invalid
|
|
17
|
+
* @attr {string} size - Size: 'xs' | 'sm' | 'md' (default: 'md')
|
|
18
|
+
* @attr {boolean} valid - Marks the field as valid
|
|
19
|
+
* @attr {boolean} invalid - Marks the field as invalid
|
|
20
20
|
* @attr {boolean} disabled - Disabled state; also forwarded to the slotted select
|
|
21
21
|
* @attr {boolean} expanded - Reflects whether the native picker popup is open (driven internally)
|
|
22
|
-
* @attr {string}
|
|
22
|
+
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
23
23
|
*
|
|
24
24
|
* @slot - A native `<select>` element with `<option>` and/or `<optgroup>` children
|
|
25
25
|
*
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @element nldd-multi-line-text-field
|
|
5
5
|
*
|
|
6
|
-
* @attr {string} value
|
|
7
|
-
* @attr {string} placeholder
|
|
8
|
-
* @attr {string} input-id
|
|
9
|
-
* @attr {string} size
|
|
10
|
-
* @attr {boolean} invalid
|
|
11
|
-
* @attr {boolean} valid
|
|
12
|
-
* @attr {boolean} disabled
|
|
13
|
-
* @attr {string} name
|
|
14
|
-
* @attr {boolean} readonly
|
|
15
|
-
* @attr {boolean} required
|
|
16
|
-
* @attr {string} autocomplete
|
|
17
|
-
* @attr {number} rows
|
|
18
|
-
* @attr {string} resize
|
|
19
|
-
* 'auto' grows with content (native field-sizing), no manual handle.
|
|
6
|
+
* @attr {string} value - The textarea value
|
|
7
|
+
* @attr {string} placeholder - Placeholder text
|
|
8
|
+
* @attr {string} input-id - Sets the id on the native textarea. Set automatically by nldd-form-field.
|
|
9
|
+
* @attr {string} size - 'md' (default) | 'sm'. Set automatically by nldd-form-field.
|
|
10
|
+
* @attr {boolean} invalid - Marks the field as invalid
|
|
11
|
+
* @attr {boolean} valid - Marks the field as valid
|
|
12
|
+
* @attr {boolean} disabled - Disabled state
|
|
13
|
+
* @attr {string} name - Textarea name for form submission
|
|
14
|
+
* @attr {boolean} readonly - Readonly state
|
|
15
|
+
* @attr {boolean} required - Required state
|
|
16
|
+
* @attr {string} autocomplete - Autocomplete hint
|
|
17
|
+
* @attr {number} rows - Initial visible rows (minimum height). Default: 3.
|
|
18
|
+
* @attr {string} resize - 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle.
|
|
20
19
|
* @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
|
|
21
20
|
* @attr {string} error-message-ids - Ids for aria-describedby on the inner textarea. Set automatically by nldd-form-field.
|
|
22
|
-
* @attr {boolean} no-spellcheck
|
|
23
|
-
* @attr {string} width
|
|
21
|
+
* @attr {boolean} no-spellcheck - Disables browser spellchecking on the inner textarea
|
|
22
|
+
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
24
23
|
*
|
|
25
|
-
* @fires input
|
|
24
|
+
* @fires input - When value changes
|
|
26
25
|
* @fires change - When value is committed (blur)
|
|
27
26
|
*/
|
|
28
27
|
import { LitElement, type PropertyValues } from 'lit';
|
|
28
|
+
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
29
29
|
export type ResizeMode = 'none' | 'vertical' | 'auto';
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
declare const NLDDMultiLineTextField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
31
|
+
export declare class NLDDMultiLineTextField extends NLDDMultiLineTextField_base {
|
|
32
32
|
static shadowRootOptions: {
|
|
33
33
|
delegatesFocus: boolean;
|
|
34
34
|
clonable?: boolean;
|
|
@@ -38,7 +38,6 @@ export declare class NLDDMultiLineTextField extends LitElement {
|
|
|
38
38
|
slotAssignment?: SlotAssignmentMode;
|
|
39
39
|
};
|
|
40
40
|
static styles: import("lit").CSSResult;
|
|
41
|
-
private _internals;
|
|
42
41
|
private _initialValue;
|
|
43
42
|
size: 'md' | 'sm';
|
|
44
43
|
value: string;
|
|
@@ -62,8 +61,8 @@ export declare class NLDDMultiLineTextField extends LitElement {
|
|
|
62
61
|
private _textarea;
|
|
63
62
|
firstUpdated(): void;
|
|
64
63
|
updated(changed: PropertyValues): void;
|
|
64
|
+
formValue(): FormValue;
|
|
65
65
|
formResetCallback(): void;
|
|
66
|
-
formDisabledCallback(disabled: boolean): void;
|
|
67
66
|
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
68
67
|
_handleInput(e: Event): void;
|
|
69
68
|
_handleChange(e: Event): void;
|
|
@@ -74,4 +73,5 @@ declare global {
|
|
|
74
73
|
'nldd-multi-line-text-field': NLDDMultiLineTextField;
|
|
75
74
|
}
|
|
76
75
|
}
|
|
76
|
+
export {};
|
|
77
77
|
//# sourceMappingURL=multi-line-text-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAK7F,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;;AAEtD,qBACa,sBAAuB,SAAQ,2BAA0B;IAErE,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAA4B;IAGlD,OAAO,CAAC,aAAa,CAAM;IAG3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,OAAO,UAAS;IAGhB,KAAK,UAAS;IAGd,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,YAAY,SAAM;IAGlB,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAU;IAE5B,gGAAgG;IAEhG,eAAe,SAAM;IAGrB,eAAe,SAAM;IAGrB,YAAY,UAAS;IAErB,oGAAoG;IAEpG,KAAK,SAAM;IAIX,OAAO,CAAC,SAAS,CAAuB;IAE/B,YAAY,IAAI,IAAI;IAOpB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAuBtC,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI/D,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAY5B,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAY3B,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,4BAA4B,EAAE,sBAAsB,CAAC;KACrD;CACD"}
|
|
@@ -9,37 +9,36 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
*
|
|
10
10
|
* @element nldd-multi-line-text-field
|
|
11
11
|
*
|
|
12
|
-
* @attr {string} value
|
|
13
|
-
* @attr {string} placeholder
|
|
14
|
-
* @attr {string} input-id
|
|
15
|
-
* @attr {string} size
|
|
16
|
-
* @attr {boolean} invalid
|
|
17
|
-
* @attr {boolean} valid
|
|
18
|
-
* @attr {boolean} disabled
|
|
19
|
-
* @attr {string} name
|
|
20
|
-
* @attr {boolean} readonly
|
|
21
|
-
* @attr {boolean} required
|
|
22
|
-
* @attr {string} autocomplete
|
|
23
|
-
* @attr {number} rows
|
|
24
|
-
* @attr {string} resize
|
|
25
|
-
* 'auto' grows with content (native field-sizing), no manual handle.
|
|
12
|
+
* @attr {string} value - The textarea value
|
|
13
|
+
* @attr {string} placeholder - Placeholder text
|
|
14
|
+
* @attr {string} input-id - Sets the id on the native textarea. Set automatically by nldd-form-field.
|
|
15
|
+
* @attr {string} size - 'md' (default) | 'sm'. Set automatically by nldd-form-field.
|
|
16
|
+
* @attr {boolean} invalid - Marks the field as invalid
|
|
17
|
+
* @attr {boolean} valid - Marks the field as valid
|
|
18
|
+
* @attr {boolean} disabled - Disabled state
|
|
19
|
+
* @attr {string} name - Textarea name for form submission
|
|
20
|
+
* @attr {boolean} readonly - Readonly state
|
|
21
|
+
* @attr {boolean} required - Required state
|
|
22
|
+
* @attr {string} autocomplete - Autocomplete hint
|
|
23
|
+
* @attr {number} rows - Initial visible rows (minimum height). Default: 3.
|
|
24
|
+
* @attr {string} resize - 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle.
|
|
26
25
|
* @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
|
|
27
26
|
* @attr {string} error-message-ids - Ids for aria-describedby on the inner textarea. Set automatically by nldd-form-field.
|
|
28
|
-
* @attr {boolean} no-spellcheck
|
|
29
|
-
* @attr {string} width
|
|
27
|
+
* @attr {boolean} no-spellcheck - Disables browser spellchecking on the inner textarea
|
|
28
|
+
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
30
29
|
*
|
|
31
|
-
* @fires input
|
|
30
|
+
* @fires input - When value changes
|
|
32
31
|
* @fires change - When value is committed (blur)
|
|
33
32
|
*/
|
|
34
33
|
import { LitElement } from 'lit';
|
|
35
34
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
35
|
+
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
36
36
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
37
37
|
import { multiLineTextFieldStyles } from './multi-line-text-field.styles.js';
|
|
38
38
|
import { multiLineTextFieldTemplate } from './multi-line-text-field.template.js';
|
|
39
|
-
let NLDDMultiLineTextField = class NLDDMultiLineTextField extends LitElement {
|
|
39
|
+
let NLDDMultiLineTextField = class NLDDMultiLineTextField extends FormAssociated(LitElement) {
|
|
40
40
|
constructor() {
|
|
41
41
|
super(...arguments);
|
|
42
|
-
this._internals = this.attachInternals();
|
|
43
42
|
this._initialValue = '';
|
|
44
43
|
this.size = 'md';
|
|
45
44
|
this.value = '';
|
|
@@ -89,16 +88,13 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends LitElement {
|
|
|
89
88
|
this._textarea.style.width = '';
|
|
90
89
|
this._textarea.style.height = '';
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
}
|
|
92
|
+
formValue() {
|
|
93
|
+
return this.value;
|
|
95
94
|
}
|
|
96
95
|
formResetCallback() {
|
|
97
96
|
this.value = this._initialValue;
|
|
98
97
|
}
|
|
99
|
-
formDisabledCallback(disabled) {
|
|
100
|
-
this.disabled = disabled;
|
|
101
|
-
}
|
|
102
98
|
formStateRestoreCallback(state) {
|
|
103
99
|
if (typeof state === 'string')
|
|
104
100
|
this.value = state;
|
|
@@ -107,6 +103,7 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends LitElement {
|
|
|
107
103
|
e.stopPropagation();
|
|
108
104
|
const textarea = e.target;
|
|
109
105
|
this.value = textarea.value;
|
|
106
|
+
this.commitFormValue();
|
|
110
107
|
this.dispatchEvent(new CustomEvent('input', {
|
|
111
108
|
detail: { value: this.value },
|
|
112
109
|
bubbles: true,
|
|
@@ -117,6 +114,7 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends LitElement {
|
|
|
117
114
|
e.stopPropagation();
|
|
118
115
|
const textarea = e.target;
|
|
119
116
|
this.value = textarea.value;
|
|
117
|
+
this.commitFormValue();
|
|
120
118
|
this.dispatchEvent(new CustomEvent('change', {
|
|
121
119
|
detail: { value: this.value },
|
|
122
120
|
bubbles: true,
|
|
@@ -127,7 +125,6 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends LitElement {
|
|
|
127
125
|
return multiLineTextFieldTemplate(this);
|
|
128
126
|
}
|
|
129
127
|
};
|
|
130
|
-
NLDDMultiLineTextField.formAssociated = true;
|
|
131
128
|
NLDDMultiLineTextField.shadowRootOptions = {
|
|
132
129
|
...LitElement.shadowRootOptions,
|
|
133
130
|
delegatesFocus: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAK1E,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,cAAc,CAAC,UAAU,CAAC;IAA/D;;QAUE,kBAAa,GAAG,EAAE,CAAC;QAG3B,SAAI,GAAgB,IAA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AO,EAAE,IAAI,EAAE,CAAC;wDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAChC;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DACT;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDAClB;AAGT;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAa,MAAM,CAAC,EAAE,CAAC;sDAClD;AAI5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;+DACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;+DACtC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;4DAClD;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAC/B;AAIH;IADP,KAAK,CAAC,+BAA+B,CAAC;yDACC;AAnE5B,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CA2IlC"}
|
|
@@ -12,10 +12,10 @@ export const multiLineTextFieldStyles = css `
|
|
|
12
12
|
--_width: 100%;
|
|
13
13
|
--_background-color: var(--semantics-input-fields-background-color);
|
|
14
14
|
--_corner-radius: var(--semantics-controls-md-corner-radius);
|
|
15
|
-
--_inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-
|
|
15
|
+
--_inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-width));
|
|
16
16
|
--_min-height: var(--semantics-controls-md-min-size);
|
|
17
17
|
--_text-font: var(--semantics-input-fields-md-text-font);
|
|
18
|
-
--_icon-area-size: calc(var(--_min-height) - var(--semantics-input-fields-border-
|
|
18
|
+
--_icon-area-size: calc(var(--_min-height) - var(--semantics-input-fields-border-width) * 2);
|
|
19
19
|
--_validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
20
20
|
--_rows: 3;
|
|
21
21
|
|
|
@@ -32,7 +32,7 @@ export const multiLineTextFieldStyles = css `
|
|
|
32
32
|
|
|
33
33
|
:host([size="sm"]) {
|
|
34
34
|
--_corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
35
|
-
--_inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-
|
|
35
|
+
--_inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-width));
|
|
36
36
|
--_min-height: var(--semantics-controls-sm-min-size);
|
|
37
37
|
--_text-font: var(--semantics-input-fields-sm-text-font);
|
|
38
38
|
--_validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
|
|
@@ -93,8 +93,8 @@ export const multiLineTextFieldStyles = css `
|
|
|
93
93
|
/* rows is the floor in every resize mode: one row already fits in
|
|
94
94
|
--_min-height, each extra row adds one line height. (resize="auto"
|
|
95
95
|
then grows past it via field-sizing.) */
|
|
96
|
-
min-height: calc(var(--_min-height) - var(--semantics-input-fields-border-
|
|
97
|
-
padding-block: calc((var(--_min-height) - var(--semantics-input-fields-border-
|
|
96
|
+
min-height: calc(var(--_min-height) - var(--semantics-input-fields-border-width) * 2 + (var(--_rows) - 1) * 1lh);
|
|
97
|
+
padding-block: calc((var(--_min-height) - var(--semantics-input-fields-border-width) * 2 - 1lh) / 2);
|
|
98
98
|
padding-inline: var(--_inline-padding);
|
|
99
99
|
color: var(--semantics-content-color);
|
|
100
100
|
font: var(--_text-font);
|
|
@@ -4,34 +4,30 @@
|
|
|
4
4
|
* A numeric input field with decrement and increment buttons.
|
|
5
5
|
*
|
|
6
6
|
* @element nldd-number-field
|
|
7
|
-
* @attr {number}
|
|
8
|
-
* @attr {number}
|
|
9
|
-
* @attr {number}
|
|
10
|
-
* @attr {number}
|
|
11
|
-
* @attr {string}
|
|
12
|
-
* @attr {boolean} disabled
|
|
13
|
-
* @attr {string}
|
|
14
|
-
* @attr {object}
|
|
15
|
-
* @attr {string}
|
|
7
|
+
* @attr {number} value - Current value
|
|
8
|
+
* @attr {number} min - Minimum value (default: -Infinity)
|
|
9
|
+
* @attr {number} max - Maximum value (default: Infinity)
|
|
10
|
+
* @attr {number} step - Step size (default: 1)
|
|
11
|
+
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
12
|
+
* @attr {boolean} disabled - Disabled state
|
|
13
|
+
* @attr {string} name - Name for form submission
|
|
14
|
+
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
15
|
+
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px')
|
|
16
16
|
* @attr {boolean} hide-spin-buttons - When set, hides the decrement and increment buttons
|
|
17
|
-
* @attr {string}
|
|
17
|
+
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
18
18
|
*
|
|
19
|
-
* @fires input
|
|
20
|
-
*
|
|
21
|
-
* @fires change - When the value is committed (blur/Enter or +/- button), clamped to
|
|
22
|
-
* [min, max]; empty input falls back to the last valid value. When the
|
|
23
|
-
* committed value differs from the typed value, a matching input event
|
|
24
|
-
* is fired immediately before this one. detail: { value: number }
|
|
19
|
+
* @fires input - When the value changes (typing, +/- button, or on-commit correction); detail: { value: number }
|
|
20
|
+
* @fires change - When the value is committed (blur/Enter or +/- button), clamped to [min, max]; empty input falls back to the last valid value. When the committed value differs from the typed value, a matching input event is fired immediately before this one. detail: { value: number }
|
|
25
21
|
*/
|
|
26
22
|
import { LitElement } from 'lit';
|
|
23
|
+
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
27
24
|
import type { NLDDNumberFieldTranslations } from './number-field.i18n.js';
|
|
28
25
|
import './../../actions/icon-button/icon-button.js';
|
|
29
26
|
import './../../content/icon/icon.js';
|
|
30
27
|
export type NumberFieldSize = 'sm' | 'md';
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
declare const NLDDNumberField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
29
|
+
export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
33
30
|
static styles: import("lit").CSSResult;
|
|
34
|
-
private _internals;
|
|
35
31
|
private _initialValue;
|
|
36
32
|
value: number;
|
|
37
33
|
min: number;
|
|
@@ -53,8 +49,8 @@ export declare class NLDDNumberField extends LitElement {
|
|
|
53
49
|
private _lastValidValue;
|
|
54
50
|
firstUpdated(): void;
|
|
55
51
|
updated(changedProperties: Map<string, unknown>): void;
|
|
52
|
+
formValue(): FormValue;
|
|
56
53
|
formResetCallback(): void;
|
|
57
|
-
formDisabledCallback(disabled: boolean): void;
|
|
58
54
|
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
59
55
|
_t(key: keyof NLDDNumberFieldTranslations): string;
|
|
60
56
|
_handleDecrease(): void;
|
|
@@ -77,4 +73,5 @@ declare global {
|
|
|
77
73
|
'nldd-number-field': NLDDNumberField;
|
|
78
74
|
}
|
|
79
75
|
}
|
|
76
|
+
export {};
|
|
80
77
|
//# sourceMappingURL=number-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-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AC,CAAC,EAAE,KAAK,GAAG,IAAI;IAQpC,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,MAAM;IAId;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -10,37 +10,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
* A numeric input field with decrement and increment buttons.
|
|
11
11
|
*
|
|
12
12
|
* @element nldd-number-field
|
|
13
|
-
* @attr {number}
|
|
14
|
-
* @attr {number}
|
|
15
|
-
* @attr {number}
|
|
16
|
-
* @attr {number}
|
|
17
|
-
* @attr {string}
|
|
18
|
-
* @attr {boolean} disabled
|
|
19
|
-
* @attr {string}
|
|
20
|
-
* @attr {object}
|
|
21
|
-
* @attr {string}
|
|
13
|
+
* @attr {number} value - Current value
|
|
14
|
+
* @attr {number} min - Minimum value (default: -Infinity)
|
|
15
|
+
* @attr {number} max - Maximum value (default: Infinity)
|
|
16
|
+
* @attr {number} step - Step size (default: 1)
|
|
17
|
+
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
18
|
+
* @attr {boolean} disabled - Disabled state
|
|
19
|
+
* @attr {string} name - Name for form submission
|
|
20
|
+
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
21
|
+
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px')
|
|
22
22
|
* @attr {boolean} hide-spin-buttons - When set, hides the decrement and increment buttons
|
|
23
|
-
* @attr {string}
|
|
23
|
+
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
24
24
|
*
|
|
25
|
-
* @fires input
|
|
26
|
-
*
|
|
27
|
-
* @fires change - When the value is committed (blur/Enter or +/- button), clamped to
|
|
28
|
-
* [min, max]; empty input falls back to the last valid value. When the
|
|
29
|
-
* committed value differs from the typed value, a matching input event
|
|
30
|
-
* is fired immediately before this one. detail: { value: number }
|
|
25
|
+
* @fires input - When the value changes (typing, +/- button, or on-commit correction); detail: { value: number }
|
|
26
|
+
* @fires change - When the value is committed (blur/Enter or +/- button), clamped to [min, max]; empty input falls back to the last valid value. When the committed value differs from the typed value, a matching input event is fired immediately before this one. detail: { value: number }
|
|
31
27
|
*/
|
|
32
28
|
import { LitElement } from 'lit';
|
|
33
29
|
import { customElement, property } from 'lit/decorators.js';
|
|
30
|
+
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
34
31
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
35
32
|
import { numberFieldStyles } from './number-field.styles.js';
|
|
36
33
|
import { numberFieldTemplate } from './number-field.template.js';
|
|
37
34
|
import { nlddNumberFieldTranslations } from './number-field.i18n.js';
|
|
38
35
|
import './../../actions/icon-button/icon-button.js';
|
|
39
36
|
import './../../content/icon/icon.js';
|
|
40
|
-
let NLDDNumberField = class NLDDNumberField extends LitElement {
|
|
37
|
+
let NLDDNumberField = class NLDDNumberField extends FormAssociated(LitElement) {
|
|
41
38
|
constructor() {
|
|
42
39
|
super(...arguments);
|
|
43
|
-
this._internals = this.attachInternals();
|
|
44
40
|
this._initialValue = 0;
|
|
45
41
|
this.value = 0;
|
|
46
42
|
this.min = -Infinity;
|
|
@@ -81,15 +77,15 @@ let NLDDNumberField = class NLDDNumberField extends LitElement {
|
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
79
|
if (changedProperties.has('value')) {
|
|
84
|
-
this.
|
|
80
|
+
this.commitFormValue();
|
|
85
81
|
}
|
|
86
82
|
}
|
|
83
|
+
formValue() {
|
|
84
|
+
return String(this.value);
|
|
85
|
+
}
|
|
87
86
|
formResetCallback() {
|
|
88
87
|
this.value = this._initialValue;
|
|
89
88
|
}
|
|
90
|
-
formDisabledCallback(disabled) {
|
|
91
|
-
this.disabled = disabled;
|
|
92
|
-
}
|
|
93
89
|
formStateRestoreCallback(state) {
|
|
94
90
|
if (typeof state !== 'string')
|
|
95
91
|
return;
|
|
@@ -121,6 +117,7 @@ let NLDDNumberField = class NLDDNumberField extends LitElement {
|
|
|
121
117
|
if (isNaN(parsed))
|
|
122
118
|
return;
|
|
123
119
|
this.value = parsed;
|
|
120
|
+
this.commitFormValue();
|
|
124
121
|
this.dispatchEvent(new CustomEvent('input', {
|
|
125
122
|
detail: { value: this.value },
|
|
126
123
|
bubbles: true,
|
|
@@ -148,6 +145,7 @@ let NLDDNumberField = class NLDDNumberField extends LitElement {
|
|
|
148
145
|
input.value = String(clampedValue);
|
|
149
146
|
if (!changed)
|
|
150
147
|
return;
|
|
148
|
+
this.commitFormValue();
|
|
151
149
|
this.dispatchEvent(new CustomEvent('input', {
|
|
152
150
|
detail: { value: this.value },
|
|
153
151
|
bubbles: true,
|
|
@@ -173,7 +171,6 @@ let NLDDNumberField = class NLDDNumberField extends LitElement {
|
|
|
173
171
|
return numberFieldTemplate(this);
|
|
174
172
|
}
|
|
175
173
|
};
|
|
176
|
-
NLDDNumberField.formAssociated = true;
|
|
177
174
|
NLDDNumberField.styles = numberFieldStyles;
|
|
178
175
|
__decorate([
|
|
179
176
|
property({ type: Number })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CA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AC;4CACX;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAClB;AAGT;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAkB,IAAI,CAAC,EAAE,CAAC;6CACpD;AAG7B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAChC;AAIV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC/B;AAGX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;wDACnD;AAIxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;wDACrC;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAC6B;AAzC5C,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAuK3B"}
|
|
@@ -12,9 +12,9 @@ export const numberFieldStyles = css `
|
|
|
12
12
|
--_width: auto;
|
|
13
13
|
--_corner-radius: var(--semantics-controls-md-corner-radius);
|
|
14
14
|
--_min-size: var(--semantics-controls-md-min-size);
|
|
15
|
-
--_spin-button-padding: calc((var(--_min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-
|
|
15
|
+
--_spin-button-padding: calc((var(--_min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
16
16
|
--_text-font: var(--semantics-input-fields-md-text-font);
|
|
17
|
-
--_inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-
|
|
17
|
+
--_inline-padding: calc(var(--semantics-controls-md-inline-padding) - var(--semantics-input-fields-border-width));
|
|
18
18
|
|
|
19
19
|
${inheritedTextReset}
|
|
20
20
|
display: inline-block;
|
|
@@ -28,9 +28,9 @@ export const numberFieldStyles = css `
|
|
|
28
28
|
:host([size="sm"]) {
|
|
29
29
|
--_corner-radius: var(--semantics-controls-sm-corner-radius);
|
|
30
30
|
--_min-size: var(--semantics-controls-sm-min-size);
|
|
31
|
-
--_spin-button-padding: calc((var(--_min-size) - var(--semantics-controls-xs-min-size)) / 2 - var(--semantics-input-fields-border-
|
|
31
|
+
--_spin-button-padding: calc((var(--_min-size) - var(--semantics-controls-xs-min-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
32
32
|
--_text-font: var(--semantics-input-fields-sm-text-font);
|
|
33
|
-
--_inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-
|
|
33
|
+
--_inline-padding: calc(var(--semantics-controls-sm-inline-padding) - var(--semantics-input-fields-border-width));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:host([disabled]) {
|