@nldd/design-system 0.8.82 → 0.8.84
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/custom-elements.json +3849 -542
- package/dist/components/actions/button/button.d.ts +9 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +15 -2
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -0
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
- package/dist/components/actions/icon-button/icon-button.js +2 -2
- package/dist/components/actions/menu/menu.d.ts +3 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +22 -11
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +2 -2
- package/dist/components/components.js +2911 -1157
- package/dist/components/content/avatar/avatar.d.ts +6 -0
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +9 -0
- 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 +5 -1
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +2 -0
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +6 -16
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +3 -4
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +3 -4
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +80 -6
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +57 -94
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +36 -4
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +8 -2
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +17 -2
- 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 +8 -0
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -1
- package/dist/components/content/image/image.js +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +11 -0
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +30 -30
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +30 -30
- package/dist/components/content/rich-text/rich-text.d.ts +20 -20
- package/dist/components/content/rich-text/rich-text.js +20 -20
- package/dist/components/content/text/text.d.ts +50 -0
- package/dist/components/content/text/text.d.ts.map +1 -0
- package/dist/components/content/text/text.js +81 -0
- package/dist/components/content/text/text.js.map +1 -0
- package/dist/components/content/text/text.styles.d.ts +2 -0
- package/dist/components/content/text/text.styles.d.ts.map +1 -0
- package/dist/components/content/text/text.styles.js +116 -0
- package/dist/components/content/text/text.styles.js.map +1 -0
- package/dist/components/content/text/text.template.d.ts +3 -0
- package/dist/components/content/text/text.template.d.ts.map +1 -0
- package/dist/components/content/text/text.template.js +7 -0
- package/dist/components/content/text/text.template.js.map +1 -0
- package/dist/components/content/title/title.d.ts +4 -4
- package/dist/components/content/title/title.js +4 -4
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +9 -13
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +1 -1
- package/dist/components/content/tooltip/tooltip.js +1 -1
- package/dist/components/{decorate-BKn10QQi.js → decorate-lwt_OrAG.js} +1 -1
- package/dist/components/{dist-TpIL8G4G.js → dist-762GHPyH.js} +3 -3
- package/dist/components/{dist-OBifyiJS.js → dist-BB7TxeMK.js} +2 -2
- package/dist/components/{dist-CJR_Rwhh.js → dist-BJI4-6iQ.js} +1 -1
- package/dist/components/{dist-C400RcFU.js → dist-B_3OW7pC.js} +1 -1
- package/dist/components/{dist-afrAoubg.js → dist-C09E9-dJ.js} +34 -34
- package/dist/components/{dist-Ccw7ZfsU.js → dist-C6gnorjP.js} +4 -3
- package/dist/components/{dist-bO14jlsr.js → dist-CRsR6ckU.js} +1 -1
- package/dist/components/{dist-C0PiB1dr.js → dist-CjaG8dOI.js} +2 -2
- package/dist/components/{dist-CCg5Mso_.js → dist-DZoFKUO-.js} +1 -1
- package/dist/components/{dist-Bq4xc7Bm.js → dist-DaavuU6W.js} +14 -3
- package/dist/components/{dist-BYVOPNHp.js → dist-la_b3ZSq.js} +1 -1
- package/dist/components/forms/form/form.d.ts +76 -22
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +127 -22
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +14 -15
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +14 -15
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +42 -39
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +79 -111
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts +0 -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 +7 -73
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.d.ts +0 -2
- package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +0 -15
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +26 -28
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +27 -29
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +193 -0
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -0
- package/dist/components/forms/validation-list/validation-list.js +358 -0
- package/dist/components/forms/validation-list/validation-list.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.styles.d.ts +3 -0
- package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -0
- package/dist/components/forms/validation-list/validation-list.styles.js +58 -0
- package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.template.d.ts +5 -0
- package/dist/components/forms/validation-list/validation-list.template.d.ts.map +1 -0
- package/dist/components/forms/validation-list/validation-list.template.js +16 -0
- package/dist/components/forms/validation-list/validation-list.template.js.map +1 -0
- package/dist/components/{icon-CIpJq_cf.js → icon-VTLbdcvZ.js} +104 -11
- package/dist/components/{icon-button-BAkUJTn6.js → icon-button-Sne5TwRG.js} +6 -6
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +20 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +32 -2
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +2 -0
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +16 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +27 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js +2 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +14 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +21 -2
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +15 -2
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +54 -5
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +14 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +27 -20
- package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +29 -31
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +40 -37
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +11 -0
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +7 -2
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +34 -21
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +42 -22
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +36 -3
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +4 -3
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +8 -7
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +0 -1
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +15 -4
- 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 +20 -8
- 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.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +4 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +12 -1
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +18 -3
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +8 -16
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +10 -3
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +18 -8
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.js +3 -1
- package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +18 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +27 -2
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +1 -0
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +14 -1
- 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 +22 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js +1 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +11 -0
- 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 +21 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +23 -1
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +37 -3
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +4 -0
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +28 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +52 -2
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +1 -0
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +14 -1
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +21 -2
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +20 -1
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +31 -2
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.template.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.template.js +2 -0
- package/dist/components/inputs/switch/switch.template.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +18 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +25 -1
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.js +2 -0
- package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +14 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +21 -2
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +31 -3
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +65 -7
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +5 -1
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +33 -35
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +43 -40
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +12 -0
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +7 -2
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +34 -19
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +42 -22
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +22 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +35 -2
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +3 -0
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +27 -0
- 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 +46 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +7 -1
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +14 -1
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +12 -0
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +4 -4
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +4 -4
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +4 -6
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +18 -19
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +18 -19
- 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 +1 -0
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +6 -2
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/divider/divider.d.ts +1 -1
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +15 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -1
- package/dist/components/layout/sheet/sheet.js +2 -2
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +15 -3
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +8 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +29 -11
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +20 -21
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +21 -22
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +41 -12
- 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 +47 -17
- 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 +42 -13
- 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 +12 -4
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +168 -61
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +0 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.js +0 -1
- package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +361 -122
- 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 +5 -0
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts +1 -3
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +2 -7
- 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 +134 -23
- 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.js +354 -61
- 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 +116 -34
- 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 +5 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +116 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.js → list-item-segment/list-item-segment.js} +85 -56
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +179 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +3 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.template.js → list-item-segment/list-item-segment.template.js} +5 -4
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -0
- package/dist/components/lists-and-tables/table/table.d.ts +12 -9
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.i18n.d.ts +0 -1
- package/dist/components/lists-and-tables/table/table.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.i18n.js +0 -1
- package/dist/components/lists-and-tables/table/table.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +26 -16
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +5 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +5 -9
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +30 -24
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +33 -24
- package/dist/components/navigation/link/link.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/menu-bar.d.ts +7 -7
- package/dist/components/navigation/menu-bar/menu-bar.js +7 -7
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +23 -23
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +23 -23
- package/dist/components/navigation/pagination/pagination.d.ts +4 -4
- package/dist/components/navigation/pagination/pagination.js +4 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts +7 -7
- package/dist/components/navigation/skip-link/skip-link.js +7 -7
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +5 -3
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +18 -13
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +8 -8
- package/dist/components/navigation/tab-bar/tab-bar.template.js +5 -5
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +15 -15
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +15 -15
- 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 +14 -2
- 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 +2 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js +2 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts +8 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +17 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +41 -10
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +2 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +37 -36
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +37 -36
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +2 -2
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +7 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification-region.js +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +29 -28
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +29 -28
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +1 -1
- package/dist/components/{visibility-mixin-GxbwkBb1.js → visibility-mixin-vbfhyo7f.js} +1 -1
- package/dist/components/{with-translations-DzAdFTK8.js → with-translations-CqUV9S5g.js} +1 -1
- package/dist/css/form-section.css +28 -46
- package/dist/css/form.css +7 -13
- package/dist/css/rich-text.css +5 -5
- package/dist/css/variables.css +133 -8
- package/dist/nldd.min.js +1382 -875
- package/dist/types/vue.d.ts +530 -336
- package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.js +5 -0
- package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +49 -0
- package/dist/utilities/described-by-mixin.d.ts.map +1 -0
- package/dist/utilities/described-by-mixin.js +109 -0
- package/dist/utilities/described-by-mixin.js.map +1 -0
- package/dist/utilities/form-associated-mixin.d.ts +5 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +69 -0
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +9 -1
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +10 -2
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +21 -9
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +0 -108
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +0 -145
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +0 -3
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +0 -1
|
@@ -20,12 +20,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
* @attr {boolean} readonly - Readonly state
|
|
21
21
|
* @attr {boolean} required - Required state
|
|
22
22
|
* @attr {string} autocomplete - Autocomplete hint
|
|
23
|
+
* @attr {string} keyboard - Which virtual keyboard a phone or tablet raises, forwarded as `inputmode`: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'. It changes nothing about what the field accepts, and nothing at all on a desktop.
|
|
24
|
+
* @attr {string} enter-key - What the Enter key of the virtual keyboard says, forwarded as `enterkeyhint`: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'. In a field where Enter starts a new line, leave it alone.
|
|
23
25
|
* @attr {number} rows - Initial visible rows (minimum height). Default: 3.
|
|
24
26
|
* @attr {string} resize - 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle.
|
|
25
27
|
* @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
|
|
26
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner textarea. Set automatically by nldd-form-field.
|
|
27
28
|
* @attr {boolean} no-spellcheck - Disables browser spellchecking on the inner textarea
|
|
28
29
|
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
30
|
+
* @attr {number} minlength - Fewest characters the value may have.
|
|
31
|
+
* @attr {number} maxlength - Most characters the value may have.
|
|
29
32
|
*
|
|
30
33
|
* @fires input - When value changes
|
|
31
34
|
* @fires change - When value is committed (blur)
|
|
@@ -36,7 +39,8 @@ import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
|
36
39
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
37
40
|
import { multiLineTextFieldStyles } from './multi-line-text-field.styles.js';
|
|
38
41
|
import { multiLineTextFieldTemplate } from './multi-line-text-field.template.js';
|
|
39
|
-
|
|
42
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
43
|
+
let NLDDMultiLineTextField = class NLDDMultiLineTextField extends DescribedBy(FormAssociated(LitElement)) {
|
|
40
44
|
constructor() {
|
|
41
45
|
super(...arguments);
|
|
42
46
|
this._initialValue = '';
|
|
@@ -55,7 +59,6 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends FormAssociated
|
|
|
55
59
|
this.resize = 'auto';
|
|
56
60
|
/** Accessible label forwarded to the inner <textarea>. Set automatically by nldd-form-field. */
|
|
57
61
|
this.accessibleLabel = '';
|
|
58
|
-
this.errorMessageIds = '';
|
|
59
62
|
this.noSpellcheck = false;
|
|
60
63
|
/** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
|
|
61
64
|
this.width = '';
|
|
@@ -155,7 +158,7 @@ __decorate([
|
|
|
155
158
|
property({ type: Boolean, reflect: true })
|
|
156
159
|
], NLDDMultiLineTextField.prototype, "disabled", void 0);
|
|
157
160
|
__decorate([
|
|
158
|
-
property({
|
|
161
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
159
162
|
], NLDDMultiLineTextField.prototype, "name", void 0);
|
|
160
163
|
__decorate([
|
|
161
164
|
property({ type: Boolean, reflect: true })
|
|
@@ -166,6 +169,12 @@ __decorate([
|
|
|
166
169
|
__decorate([
|
|
167
170
|
property({ type: String })
|
|
168
171
|
], NLDDMultiLineTextField.prototype, "autocomplete", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
property({ type: String, reflect: true })
|
|
174
|
+
], NLDDMultiLineTextField.prototype, "keyboard", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
property({ type: String, reflect: true, attribute: 'enter-key' })
|
|
177
|
+
], NLDDMultiLineTextField.prototype, "enterKey", void 0);
|
|
169
178
|
__decorate([
|
|
170
179
|
property({ type: Number })
|
|
171
180
|
], NLDDMultiLineTextField.prototype, "rows", void 0);
|
|
@@ -175,18 +184,21 @@ __decorate([
|
|
|
175
184
|
__decorate([
|
|
176
185
|
property({ type: String, attribute: 'accessible-label' })
|
|
177
186
|
], NLDDMultiLineTextField.prototype, "accessibleLabel", void 0);
|
|
178
|
-
__decorate([
|
|
179
|
-
property({ type: String, attribute: 'error-message-ids' })
|
|
180
|
-
], NLDDMultiLineTextField.prototype, "errorMessageIds", void 0);
|
|
181
187
|
__decorate([
|
|
182
188
|
property({ type: Boolean, reflect: true, attribute: 'no-spellcheck' })
|
|
183
189
|
], NLDDMultiLineTextField.prototype, "noSpellcheck", void 0);
|
|
184
190
|
__decorate([
|
|
185
|
-
property({
|
|
191
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
186
192
|
], NLDDMultiLineTextField.prototype, "width", void 0);
|
|
187
193
|
__decorate([
|
|
188
194
|
query('.multi-line-text-field__input')
|
|
189
195
|
], NLDDMultiLineTextField.prototype, "_textarea", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
property({ type: Number, reflect: true })
|
|
198
|
+
], NLDDMultiLineTextField.prototype, "minlength", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
property({ type: Number, reflect: true })
|
|
201
|
+
], NLDDMultiLineTextField.prototype, "maxlength", void 0);
|
|
190
202
|
NLDDMultiLineTextField = __decorate([
|
|
191
203
|
customElement('nldd-multi-line-text-field')
|
|
192
204
|
], NLDDMultiLineTextField);
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAOhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAA5E;;QAcE,kBAAa,GAAG,EAAE,CAAC;QAG3B,SAAI,GAAgB,IAAI,CAAC;QAGzB,UAAK,GAAG,EAAE,CAAC;QAGX,YAAO,GAAG,EAAE,CAAC;QAGb,gBAAW,GAAG,EAAE,CAAC;QAGjB,YAAO,GAAG,KAAK,CAAC;QAGhB,UAAK,GAAG,KAAK,CAAC;QAGd,aAAQ,GAAG,KAAK,CAAC;QAGjB,SAAI,GAAG,EAAE,CAAC;QAGV,aAAQ,GAAG,KAAK,CAAC;QAGjB,aAAQ,GAAG,KAAK,CAAC;QAGjB,iBAAY,GAAG,EAAE,CAAC;QAWlB,SAAI,GAAG,CAAC,CAAC;QAGT,WAAM,GAAe,MAAM,CAAC;QAE5B,gGAAgG;QAEhG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EAAE,CAAC;4DACT;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDACtB;AAIpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;wDAC9C;AAGpB;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;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;4DAClD;AAIrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;qDACnD;AAIH;IADP,KAAK,CAAC,+BAA+B,CAAC;yDACC;AAKxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDACvB;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDACvB;AAtFP,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CA8JlC"}
|
package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,8BAA8B,CAAC;AA0BtC,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,sBAAsB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,8BAA8B,CAAC;AA0BtC,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,sBAAsB,GAAG,cAAc,CAyB5F"}
|
|
@@ -27,8 +27,12 @@ export function multiLineTextFieldTemplate(component) {
|
|
|
27
27
|
return html `
|
|
28
28
|
<div class="multi-line-text-field">
|
|
29
29
|
<textarea class="multi-line-text-field__input"
|
|
30
|
+
minlength=${component.minlength ?? nothing}
|
|
31
|
+
maxlength=${component.maxlength ?? nothing}
|
|
30
32
|
id=${component.inputId || nothing}
|
|
31
33
|
rows=${component.rows}
|
|
34
|
+
inputmode=${component.keyboard || nothing}
|
|
35
|
+
enterkeyhint=${component.enterKey || nothing}
|
|
32
36
|
.value=${component.value}
|
|
33
37
|
placeholder=${component.placeholder || nothing}
|
|
34
38
|
?disabled=${component.disabled}
|
|
@@ -37,7 +41,6 @@ export function multiLineTextFieldTemplate(component) {
|
|
|
37
41
|
autocomplete=${component.autocomplete || nothing}
|
|
38
42
|
spellcheck=${component.noSpellcheck ? 'false' : 'true'}
|
|
39
43
|
aria-label=${component.accessibleLabel || nothing}
|
|
40
|
-
aria-describedby=${component.errorMessageIds || nothing}
|
|
41
44
|
aria-invalid=${component.invalid ? 'true' : nothing}
|
|
42
45
|
@input=${component._handleInput}
|
|
43
46
|
@change=${component._handleChange}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-line-text-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AAEtC,SAAS,oBAAoB,CAAC,SAAiC;IAC9D,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,SAAiC;IAC3E,OAAO,IAAI,CAAA;;;
|
|
1
|
+
{"version":3,"file":"multi-line-text-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/multi-line-text-field/multi-line-text-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AAEtC,SAAS,oBAAoB,CAAC,SAAiC;IAC9D,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,SAAiC;IAC3E,OAAO,IAAI,CAAA;;;gBAGI,SAAS,CAAC,SAAS,IAAI,OAAO;gBAC9B,SAAS,CAAC,SAAS,IAAI,OAAO;SACrC,SAAS,CAAC,OAAO,IAAI,OAAO;WAC1B,SAAS,CAAC,IAAI;gBACT,SAAS,CAAC,QAAQ,IAAI,OAAO;mBAC1B,SAAS,CAAC,QAAQ,IAAI,OAAO;aACnC,SAAS,CAAC,KAAK;kBACV,SAAS,CAAC,WAAW,IAAI,OAAO;gBAClC,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;mBACf,SAAS,CAAC,YAAY,IAAI,OAAO;iBACnC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;iBACzC,SAAS,CAAC,eAAe,IAAI,OAAO;mBAClC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;aAC1C,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;KAEhC,oBAAoB,CAAC,SAAS,CAAC;;EAElC,CAAC;AACH,CAAC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
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
17
|
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
18
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
18
19
|
*
|
|
19
20
|
* @fires input - When the value changes (typing, +/- button, or on-commit correction); detail: { value: number }
|
|
20
21
|
* @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,7 +26,7 @@ import type { NLDDNumberFieldTranslations } from './number-field.i18n.js';
|
|
|
25
26
|
import './../../actions/icon-button/icon-button.js';
|
|
26
27
|
import './../../content/icon/icon.js';
|
|
27
28
|
export type NumberFieldSize = 'sm' | 'md';
|
|
28
|
-
declare const NLDDNumberField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
29
|
+
declare const NLDDNumberField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
29
30
|
export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
30
31
|
static styles: import("lit").CSSResult;
|
|
31
32
|
/** Says this is the control an nldd-form-field is about, so the field can
|
|
@@ -53,6 +54,16 @@ export declare class NLDDNumberField extends NLDDNumberField_base {
|
|
|
53
54
|
* Initialized to the clamped `value` in firstUpdated — the 0 default is only
|
|
54
55
|
* relevant before the first render, which no user-facing handler can reach. */
|
|
55
56
|
private _lastValidValue;
|
|
57
|
+
/**
|
|
58
|
+
* Marks the control as invalid.
|
|
59
|
+
*
|
|
60
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
61
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
62
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
63
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
64
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
65
|
+
*/
|
|
66
|
+
invalid: boolean;
|
|
56
67
|
firstUpdated(): void;
|
|
57
68
|
updated(changedProperties: Map<string, unknown>): void;
|
|
58
69
|
formValue(): FormValue;
|
|
@@ -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-field/number-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAM7F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBA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AAG,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"}
|
|
@@ -21,6 +21,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
21
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
23
|
* @attr {string} accessible-label - Accessible label (aria-label) forwarded to the native input
|
|
24
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
24
25
|
*
|
|
25
26
|
* @fires input - When the value changes (typing, +/- button, or on-commit correction); detail: { value: number }
|
|
26
27
|
* @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 }
|
|
@@ -35,7 +36,8 @@ import { numberFieldTemplate } from './number-field.template.js';
|
|
|
35
36
|
import { nlddNumberFieldTranslations } from './number-field.i18n.js';
|
|
36
37
|
import './../../actions/icon-button/icon-button.js';
|
|
37
38
|
import './../../content/icon/icon.js';
|
|
38
|
-
|
|
39
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
40
|
+
let NLDDNumberField = class NLDDNumberField extends DescribedBy(FormAssociated(LitElement)) {
|
|
39
41
|
constructor() {
|
|
40
42
|
super(...arguments);
|
|
41
43
|
this._initialValue = 0;
|
|
@@ -57,6 +59,16 @@ let NLDDNumberField = class NLDDNumberField extends FormAssociated(LitElement) {
|
|
|
57
59
|
* Initialized to the clamped `value` in firstUpdated — the 0 default is only
|
|
58
60
|
* relevant before the first render, which no user-facing handler can reach. */
|
|
59
61
|
this._lastValidValue = 0;
|
|
62
|
+
/**
|
|
63
|
+
* Marks the control as invalid.
|
|
64
|
+
*
|
|
65
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
66
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
67
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
68
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
69
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
70
|
+
*/
|
|
71
|
+
this.invalid = false;
|
|
60
72
|
}
|
|
61
73
|
firstUpdated() {
|
|
62
74
|
if (import.meta.env?.DEV && !this.accessibleLabel) {
|
|
@@ -203,10 +215,10 @@ __decorate([
|
|
|
203
215
|
property({ type: Boolean, reflect: true })
|
|
204
216
|
], NLDDNumberField.prototype, "disabled", void 0);
|
|
205
217
|
__decorate([
|
|
206
|
-
property({
|
|
218
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
207
219
|
], NLDDNumberField.prototype, "name", void 0);
|
|
208
220
|
__decorate([
|
|
209
|
-
property({
|
|
221
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
210
222
|
], NLDDNumberField.prototype, "width", void 0);
|
|
211
223
|
__decorate([
|
|
212
224
|
property({ type: Boolean, reflect: true, attribute: 'hide-spin-buttons' })
|
|
@@ -217,6 +229,9 @@ __decorate([
|
|
|
217
229
|
__decorate([
|
|
218
230
|
property({ type: Object })
|
|
219
231
|
], NLDDNumberField.prototype, "translations", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
property({ type: Boolean, reflect: true })
|
|
234
|
+
], NLDDNumberField.prototype, "invalid", void 0);
|
|
220
235
|
NLDDNumberField = __decorate([
|
|
221
236
|
customElement('nldd-number-field')
|
|
222
237
|
], NLDDNumberField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
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AAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;8CACnD;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;AAkBxD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AAnEJ,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAkM3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"number-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,yBA2H7B,CAAC"}
|
|
@@ -42,22 +42,23 @@ export const numberFieldStyles = css `
|
|
|
42
42
|
opacity: 1;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
:host {
|
|
46
|
+
width: var(--_width);
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
:host([width="full"]) {
|
|
46
51
|
display: block;
|
|
47
52
|
width: 100%;
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
:host([width]) {
|
|
51
|
-
width: var(--_width);
|
|
52
|
-
max-width: 100%;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
55
|
|
|
56
56
|
/* # Block */
|
|
57
57
|
|
|
58
58
|
.number-field {
|
|
59
59
|
box-sizing: border-box;
|
|
60
60
|
display: inline-flex;
|
|
61
|
+
width: 100%;
|
|
61
62
|
border: var(--semantics-input-fields-border);
|
|
62
63
|
border-radius: var(--_corner-radius);
|
|
63
64
|
background-color: var(--semantics-input-fields-background-color);
|
|
@@ -66,11 +67,6 @@ export const numberFieldStyles = css `
|
|
|
66
67
|
align-items: center;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
:host([width="full"]) .number-field,
|
|
70
|
-
:host([width]) .number-field {
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
70
|
.number-field:has(.number-field__input:focus-visible) {
|
|
75
71
|
outline: var(--semantics-focus-ring-outline);
|
|
76
72
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
@@ -101,9 +97,10 @@ export const numberFieldStyles = css `
|
|
|
101
97
|
outline: none;
|
|
102
98
|
border: none;
|
|
103
99
|
background: transparent;
|
|
104
|
-
min-width:
|
|
100
|
+
min-width: 0;
|
|
105
101
|
padding: 0 var(--primitives-space-6);
|
|
106
102
|
align-self: stretch;
|
|
103
|
+
flex-grow: 1;
|
|
107
104
|
text-align: center;
|
|
108
105
|
color: var(--semantics-content-color);
|
|
109
106
|
font: var(--_text-font);
|
|
@@ -126,10 +123,5 @@ export const numberFieldStyles = css `
|
|
|
126
123
|
text-align: left;
|
|
127
124
|
}
|
|
128
125
|
|
|
129
|
-
:host([width="full"]) .number-field__input,
|
|
130
|
-
:host([width]) .number-field__input {
|
|
131
|
-
min-width: 0;
|
|
132
|
-
flex-grow: 1;
|
|
133
|
-
}
|
|
134
126
|
`;
|
|
135
127
|
//# sourceMappingURL=number-field.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;IAgBhC,kBAAkB
|
|
1
|
+
{"version":3,"file":"number-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;IAgBhC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GrB,CAAC"}
|
|
@@ -22,15 +22,17 @@
|
|
|
22
22
|
* @attr {string} name - Input name for form submission
|
|
23
23
|
* @attr {string} autocomplete - Autocomplete hint
|
|
24
24
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
25
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner input. Set automatically by nldd-form-field.
|
|
26
25
|
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
26
|
+
* @attr {string} pattern - Regular expression the value has to match, as the native `pattern`.
|
|
27
|
+
* @attr {number} minlength - Fewest characters the value may have.
|
|
28
|
+
* @attr {number} maxlength - Most characters the value may have.
|
|
27
29
|
*
|
|
28
30
|
* @fires input - When the input value changes ({ detail: { value } })
|
|
29
31
|
* @fires change - When the input value is committed ({ detail: { value } })
|
|
30
32
|
*/
|
|
31
33
|
import { LitElement, type PropertyValues } from 'lit';
|
|
32
34
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
33
|
-
declare const NLDDPasswordField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
35
|
+
declare const NLDDPasswordField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
34
36
|
export declare class NLDDPasswordField extends NLDDPasswordField_base {
|
|
35
37
|
static shadowRootOptions: {
|
|
36
38
|
delegatesFocus: boolean;
|
|
@@ -70,10 +72,15 @@ export declare class NLDDPasswordField extends NLDDPasswordField_base {
|
|
|
70
72
|
autocomplete: string;
|
|
71
73
|
/** Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field. */
|
|
72
74
|
accessibleLabel: string;
|
|
73
|
-
errorMessageIds: string;
|
|
74
75
|
/** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
|
|
75
76
|
width: string;
|
|
76
77
|
private _input;
|
|
78
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
79
|
+
pattern: string;
|
|
80
|
+
/** Fewest characters the value may have, as the native `minlength`. */
|
|
81
|
+
minlength?: number;
|
|
82
|
+
/** Most characters the value may have, as the native `maxlength`. */
|
|
83
|
+
maxlength?: number;
|
|
77
84
|
firstUpdated(): void;
|
|
78
85
|
updated(changed: PropertyValues): void;
|
|
79
86
|
formValue(): FormValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"password-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAO7F,qBACa,iBAA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Aa,IAAI,IAAI;IAIrB,KAAK,IAAI,IAAI;IAIb,IAAI,IAAI,IAAI;IAIV,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,qBAAqB,EAAE,iBAAiB,CAAC;KACzC;CACD"}
|
|
@@ -28,8 +28,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
28
28
|
* @attr {string} name - Input name for form submission
|
|
29
29
|
* @attr {string} autocomplete - Autocomplete hint
|
|
30
30
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
31
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner input. Set automatically by nldd-form-field.
|
|
32
31
|
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
32
|
+
* @attr {string} pattern - Regular expression the value has to match, as the native `pattern`.
|
|
33
|
+
* @attr {number} minlength - Fewest characters the value may have.
|
|
34
|
+
* @attr {number} maxlength - Most characters the value may have.
|
|
33
35
|
*
|
|
34
36
|
* @fires input - When the input value changes ({ detail: { value } })
|
|
35
37
|
* @fires change - When the input value is committed ({ detail: { value } })
|
|
@@ -41,7 +43,8 @@ import { submitOnEnter } from '../../../utilities/implicit-submission.js';
|
|
|
41
43
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
42
44
|
import { passwordFieldStyles } from './password-field.styles.js';
|
|
43
45
|
import { passwordFieldTemplate } from './password-field.template.js';
|
|
44
|
-
|
|
46
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
47
|
+
let NLDDPasswordField = class NLDDPasswordField extends DescribedBy(FormAssociated(LitElement)) {
|
|
45
48
|
constructor() {
|
|
46
49
|
super(...arguments);
|
|
47
50
|
this._initialValue = '';
|
|
@@ -67,9 +70,10 @@ let NLDDPasswordField = class NLDDPasswordField extends FormAssociated(LitElemen
|
|
|
67
70
|
this.autocomplete = '';
|
|
68
71
|
/** Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field. */
|
|
69
72
|
this.accessibleLabel = '';
|
|
70
|
-
this.errorMessageIds = '';
|
|
71
73
|
/** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
|
|
72
74
|
this.width = '';
|
|
75
|
+
/** Regular expression the value has to match, as the native `pattern`. */
|
|
76
|
+
this.pattern = '';
|
|
73
77
|
}
|
|
74
78
|
firstUpdated() {
|
|
75
79
|
this._initialValue = this.value;
|
|
@@ -189,7 +193,7 @@ __decorate([
|
|
|
189
193
|
property({ type: Boolean, reflect: true })
|
|
190
194
|
], NLDDPasswordField.prototype, "required", void 0);
|
|
191
195
|
__decorate([
|
|
192
|
-
property({
|
|
196
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
193
197
|
], NLDDPasswordField.prototype, "name", void 0);
|
|
194
198
|
__decorate([
|
|
195
199
|
property({ type: String })
|
|
@@ -198,14 +202,20 @@ __decorate([
|
|
|
198
202
|
property({ type: String, attribute: 'accessible-label' })
|
|
199
203
|
], NLDDPasswordField.prototype, "accessibleLabel", void 0);
|
|
200
204
|
__decorate([
|
|
201
|
-
property({
|
|
202
|
-
], NLDDPasswordField.prototype, "errorMessageIds", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
property({ type: String, reflect: true })
|
|
205
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
205
206
|
], NLDDPasswordField.prototype, "width", void 0);
|
|
206
207
|
__decorate([
|
|
207
208
|
query('.password-field__input')
|
|
208
209
|
], NLDDPasswordField.prototype, "_input", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
212
|
+
], NLDDPasswordField.prototype, "pattern", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
property({ type: Number, reflect: true })
|
|
215
|
+
], NLDDPasswordField.prototype, "minlength", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
property({ type: Number, reflect: true })
|
|
218
|
+
], NLDDPasswordField.prototype, "maxlength", void 0);
|
|
209
219
|
NLDDPasswordField = __decorate([
|
|
210
220
|
customElement('nldd-password-field')
|
|
211
221
|
], NLDDPasswordField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"password-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;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,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGhE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAAvE;;QAkBE,kBAAa,GAAG,EAAE,CAAC;QAG3B,SAAI,GAAgB,IAAI,CAAC;QAGzB,UAAK,GAAG,EAAE,CAAC;QAGX,YAAO,GAAG,EAAE,CAAC;QAGb,gBAAW,GAAG,EAAE,CAAC;QAGjB,UAAK,GAAG,KAAK,CAAC;QAGd,YAAO,GAAG,KAAK,CAAC;QAGhB,aAAQ,GAAG,KAAK,CAAC;QAGjB,WAAM,GAAG,IAAI,CAAC;QAEd,gFAAgF;QAEhF,mBAAc,GAAG,MAAM,C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8B,EAAE,CAAC;oEACxB;AAI9C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,8BAA8B,EAAE,CAAC;oEACrB;AAGjD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;+CACpD;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDACT;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DACrC;AAKrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;gDACnD;AAGH;IADP,KAAK,CAAC,wBAAwB,CAAC;iDACE;AAKlC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;kDACjD;AAIb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AA/FP,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA0K7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,8BAA8B,CAAC;AACtC,OAAO,kCAAkC,CAAC;AA8C1C,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"password-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,8BAA8B,CAAC;AACtC,OAAO,kCAAkC,CAAC;AA8C1C,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,CA4BlF"}
|
|
@@ -46,6 +46,9 @@ export function passwordFieldTemplate(component) {
|
|
|
46
46
|
return html `
|
|
47
47
|
<div class="password-field">
|
|
48
48
|
<input class="password-field__input ${component.masked ? 'is-masked' : ''}"
|
|
49
|
+
pattern=${component.pattern || nothing}
|
|
50
|
+
minlength=${component.minlength ?? nothing}
|
|
51
|
+
maxlength=${component.maxlength ?? nothing}
|
|
49
52
|
id=${component.inputId || nothing}
|
|
50
53
|
type=${component.masked ? 'password' : 'text'}
|
|
51
54
|
.value=${component.value}
|
|
@@ -57,7 +60,6 @@ export function passwordFieldTemplate(component) {
|
|
|
57
60
|
autocomplete=${component.autocomplete || nothing}
|
|
58
61
|
spellcheck="false"
|
|
59
62
|
aria-label=${component.accessibleLabel || nothing}
|
|
60
|
-
aria-describedby=${component.errorMessageIds || nothing}
|
|
61
63
|
aria-invalid=${component.invalid ? 'true' : nothing}
|
|
62
64
|
@keydown=${component._handleKeydown}
|
|
63
65
|
@input=${component._handleInput}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,kCAAkC,CAAC;AAE1C,SAAS,oBAAoB,CAAC,SAA4B;IACzD,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,SAAS,sBAAsB,CAAC,SAA4B;IAC3D,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC;IACrF,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC;IAErH,OAAO,IAAI,CAAA;;;WAGD,UAAU;;WAEV,KAAK;uBACO,eAAe;gBACtB,SAAS,CAAC,QAAQ;aACrB,SAAS,CAAC,aAAa;mBACjB,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;;;EAGjD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,OAAO,IAAI,CAAA;;yCAE6B,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"password-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"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O;SACrC,SAAS,CAAC,OAAO,IAAI,OAAO;WAC1B,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;aACpC,SAAS,CAAC,KAAK;kBACV,SAAS,CAAC,WAAW,IAAI,OAAO;gBAClC,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;WACvB,SAAS,CAAC,IAAI,IAAI,OAAO;mBACjB,SAAS,CAAC,YAAY,IAAI,OAAO;;iBAEnC,SAAS,CAAC,eAAe,IAAI,OAAO;mBAClC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;eACxC,SAAS,CAAC,cAAc;aAC1B,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;;KAGhC,oBAAoB,CAAC,SAAS,CAAC;KAC/B,sBAAsB,CAAC,SAAS,CAAC;;EAEpC,CAAC;AACH,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* @element nldd-radio-button
|
|
15
15
|
* @attr {boolean} checked - Checked state
|
|
16
16
|
* @attr {boolean} disabled - Disabled state
|
|
17
|
+
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
17
18
|
* @attr {boolean} decorative - Renders the shape without the input: no focus, no
|
|
18
19
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
19
20
|
* such as a list row that is itself the radio; putting a real input in there
|
|
@@ -22,13 +23,14 @@
|
|
|
22
23
|
* @attr {string} name - Radio group name for form submission; ties the buttons of one group together
|
|
23
24
|
* @attr {string} value - Value submitted with the form when this radio button is checked
|
|
24
25
|
* @attr {string} accessible-label - Accessible label forwarded as aria-label to the native input.
|
|
26
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
25
27
|
* Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries.
|
|
26
28
|
*
|
|
27
29
|
* @fires change - When checked state changes; detail: { checked: boolean, value: string, name: string }
|
|
28
30
|
*/
|
|
29
31
|
import { LitElement } from 'lit';
|
|
30
32
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
31
|
-
declare const NLDDRadioButton_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
33
|
+
declare const NLDDRadioButton_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
32
34
|
export declare class NLDDRadioButton extends NLDDRadioButton_base {
|
|
33
35
|
static styles: import("lit").CSSResult;
|
|
34
36
|
/** Says this is the control an nldd-form-field is about, so the field can
|
|
@@ -38,10 +40,25 @@ export declare class NLDDRadioButton extends NLDDRadioButton_base {
|
|
|
38
40
|
checked: boolean;
|
|
39
41
|
decorative: boolean;
|
|
40
42
|
disabled: boolean;
|
|
43
|
+
/** Take the control out of the tab order (`tabindex="-1"`) — for a control
|
|
44
|
+
* owned by a roving container (an `nldd-list` sets it on the rows that are
|
|
45
|
+
* not the current one) that manages focus itself. Still mouse- and
|
|
46
|
+
* script-focusable. */
|
|
47
|
+
noTab: boolean;
|
|
41
48
|
required: boolean;
|
|
42
49
|
name: string;
|
|
43
50
|
value: string;
|
|
44
51
|
accessibleLabel: string;
|
|
52
|
+
/**
|
|
53
|
+
* Marks the control as invalid.
|
|
54
|
+
*
|
|
55
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
56
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
57
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
58
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
59
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
60
|
+
*/
|
|
61
|
+
invalid: boolean;
|
|
45
62
|
firstUpdated(): void;
|
|
46
63
|
formValue(): FormValue;
|
|
47
64
|
formResetCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/radio-button/radio-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"radio-button.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/radio-button/radio-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAM7F,qBACa,eAAgB,SAAQ,oBAAuC;IAE3E,OAAgB,MAAM,0BAAqB;IAE3C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,OAAO,CAAC,eAAe,CAAS;IAGhC,OAAO,UAAS;IAGhB,UAAU,UAAS;IAGnB,QAAQ,UAAS;IACjB;;;4BAGwB;IAExB,KAAK,UAAS;IAId,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,KAAK,SAAM;IAGX,eAAe,SAAM;IAGrB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAKpB,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI/D,MAAM,IAAI,IAAI;IAQd,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAWpC;;;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"}
|