@nldd/design-system 0.8.83 → 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 +3415 -476
- package/dist/components/actions/button/button.d.ts +4 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +7 -2
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +1 -1
- package/dist/components/actions/icon-button/icon-button.js +1 -1
- 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 +2027 -941
- 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.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 +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/components/content/icon/icon-registry.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/title/title.d.ts +4 -4
- package/dist/components/content/title/title.js +4 -4
- 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-C1Kikpol.js → icon-VTLbdcvZ.js} +4 -1
- package/dist/components/{icon-button-BYy6hnAY.js → icon-button-Sne5TwRG.js} +5 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- 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 +13 -2
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +32 -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 +9 -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 +4 -0
- 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 +0 -1
- 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 +7 -3
- 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 +12 -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 +2 -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 +10 -3
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +18 -8
- 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 +3 -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 +0 -1
- 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 +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 +1 -0
- 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 +5 -0
- 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 +117 -25
- 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 +292 -67
- 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 +41 -3
- 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 +82 -16
- 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.js +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -4
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- 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.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +6 -4
- 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/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 +108 -7
- package/dist/nldd.min.js +851 -753
- package/dist/types/vue.d.ts +439 -291
- 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/package.json +14 -6
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
* @attr {boolean} multiple - Allows choosing more than one file
|
|
30
30
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
31
31
|
* @attr {string} input-id - Sets the id on the native input. Set automatically by nldd-form-field.
|
|
32
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner input. Set automatically by nldd-form-field.
|
|
33
32
|
* @attr {boolean} valid - Marks the field as valid; shows a check icon on the right, like nldd-dropdown
|
|
34
33
|
* @attr {boolean} invalid - Marks the field as invalid; shows an alert icon on the right, like nldd-dropdown
|
|
35
34
|
* @attr {boolean} disabled - Disabled state
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
import { LitElement, type PropertyValues } from 'lit';
|
|
45
44
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
46
45
|
import { type NLDDFileFieldTranslations } from './file-field.i18n.js';
|
|
47
|
-
declare const NLDDFileField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
46
|
+
declare const NLDDFileField_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);
|
|
48
47
|
export declare class NLDDFileField extends NLDDFileField_base {
|
|
49
48
|
static styles: import("lit").CSSResult;
|
|
50
49
|
/** Says this is the control an nldd-form-field is about, so the field can
|
|
@@ -56,7 +55,6 @@ export declare class NLDDFileField extends NLDDFileField_base {
|
|
|
56
55
|
/** Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field. */
|
|
57
56
|
accessibleLabel: string;
|
|
58
57
|
inputId: string;
|
|
59
|
-
errorMessageIds: string;
|
|
60
58
|
valid: boolean;
|
|
61
59
|
invalid: boolean;
|
|
62
60
|
disabled: boolean;
|
|
@@ -104,6 +102,9 @@ export declare class NLDDFileField extends NLDDFileField_base {
|
|
|
104
102
|
* sees as the control.
|
|
105
103
|
*/
|
|
106
104
|
focus(options?: FocusOptions): void;
|
|
105
|
+
/** The file input is display:none and therefore not in the accessibility tree.
|
|
106
|
+
* What a screen reader meets is the button, so the description goes there. */
|
|
107
|
+
describedTarget(): Element | null;
|
|
107
108
|
render(): import("lit-html").TemplateResult;
|
|
108
109
|
}
|
|
109
110
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"file-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAI7F,OAAO,EAA6B,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;;AAGjG,qBACa,aAAc,SAAQ,kBAAuC;IAEzE,OAAgB,MAAM,0BAAmB;IAEzC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAI1B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,MAAM,SAAM;IAGZ,QAAQ,UAAS;IAEjB,6FAA6F;IAE7F,eAAe,SAAM;IAGrB,OAAO,SAAM;IAIb,KAAK,UAAS;IAGd,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,QAAQ,UAAS;IAGjB,YAAY,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAM;IAEtD;yDACqD;IAErD,OAAO,CAAC,MAAM,CAAc;IAE5B,IAAI,KAAK,IAAI,IAAI,EAAE,CAElB;IAGD,OAAO,CAAC,MAAM,CAAoB;IAElC,gBAAgB;IACT,EAAE,CAAC,GAAG,EAAE,MAAM,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM;IAU/F,gBAAgB;IACT,YAAY,IAAI,MAAM;IAM7B;;;;;;OAMG;IACI,sBAAsB,IAAI,MAAM;IAKvC,gBAAgB;IACT,WAAW,IAAI,MAAM;IAMnB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAKlD,gBAAgB;IACT,aAAa,IAAI,IAAI;IAI5B,gBAAgB;IACT,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAOzC,gBAAgB;IACT,YAAY,IAAI,IAAI;IAU3B,OAAO,CAAC,OAAO;IAYf;;qEAEiE;IACxD,SAAS,IAAI,SAAS;IAQtB,eAAe,IAAI,IAAI;IAKhC,iEAAiE;IACjE,OAAO,CAAC,eAAe;IAYvB,iBAAiB,IAAI,IAAI;IAMzB;;;;OAIG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C;mFAC+E;IACtE,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -35,7 +35,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
35
35
|
* @attr {boolean} multiple - Allows choosing more than one file
|
|
36
36
|
* @attr {string} accessible-label - Accessible label forwarded to the inner input. Set automatically by nldd-form-field.
|
|
37
37
|
* @attr {string} input-id - Sets the id on the native input. Set automatically by nldd-form-field.
|
|
38
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner input. Set automatically by nldd-form-field.
|
|
39
38
|
* @attr {boolean} valid - Marks the field as valid; shows a check icon on the right, like nldd-dropdown
|
|
40
39
|
* @attr {boolean} invalid - Marks the field as invalid; shows an alert icon on the right, like nldd-dropdown
|
|
41
40
|
* @attr {boolean} disabled - Disabled state
|
|
@@ -54,7 +53,8 @@ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
|
54
53
|
import { fileFieldStyles } from './file-field.styles.js';
|
|
55
54
|
import { fileFieldTemplate } from './file-field.template.js';
|
|
56
55
|
import { nlddFileFieldTranslations } from './file-field.i18n.js';
|
|
57
|
-
|
|
56
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
57
|
+
let NLDDFileField = class NLDDFileField extends DescribedBy(FormAssociated(LitElement)) {
|
|
58
58
|
constructor() {
|
|
59
59
|
super(...arguments);
|
|
60
60
|
// Property order matches the story controls.
|
|
@@ -64,7 +64,6 @@ let NLDDFileField = class NLDDFileField extends FormAssociated(LitElement) {
|
|
|
64
64
|
/** Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field. */
|
|
65
65
|
this.accessibleLabel = '';
|
|
66
66
|
this.inputId = '';
|
|
67
|
-
this.errorMessageIds = '';
|
|
68
67
|
this.valid = false;
|
|
69
68
|
this.invalid = false;
|
|
70
69
|
this.disabled = false;
|
|
@@ -192,6 +191,11 @@ let NLDDFileField = class NLDDFileField extends FormAssociated(LitElement) {
|
|
|
192
191
|
const button = this.shadowRoot?.querySelector('nldd-button');
|
|
193
192
|
button?.focus(options);
|
|
194
193
|
}
|
|
194
|
+
/** The file input is display:none and therefore not in the accessibility tree.
|
|
195
|
+
* What a screen reader meets is the button, so the description goes there. */
|
|
196
|
+
describedTarget() {
|
|
197
|
+
return this.shadowRoot?.querySelector('nldd-button') ?? null;
|
|
198
|
+
}
|
|
195
199
|
render() {
|
|
196
200
|
return fileFieldTemplate(this);
|
|
197
201
|
}
|
|
@@ -215,9 +219,6 @@ __decorate([
|
|
|
215
219
|
__decorate([
|
|
216
220
|
property({ type: String, attribute: 'input-id' })
|
|
217
221
|
], NLDDFileField.prototype, "inputId", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
property({ type: String, attribute: 'error-message-ids' })
|
|
220
|
-
], NLDDFileField.prototype, "errorMessageIds", void 0);
|
|
221
222
|
__decorate([
|
|
222
223
|
property({ type: Boolean, reflect: true })
|
|
223
224
|
], NLDDFileField.prototype, "valid", void 0);
|
|
@@ -228,7 +229,7 @@ __decorate([
|
|
|
228
229
|
property({ type: Boolean, reflect: true })
|
|
229
230
|
], NLDDFileField.prototype, "disabled", void 0);
|
|
230
231
|
__decorate([
|
|
231
|
-
property({
|
|
232
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
232
233
|
], NLDDFileField.prototype, "name", void 0);
|
|
233
234
|
__decorate([
|
|
234
235
|
property({ type: Boolean, reflect: true })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"file-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,C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C,EAAE,CAAC;2CACpD;AAGzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC9B;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC1B;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;sDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;8CACrC;AAIb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC7B;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC3B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;2CACpD;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAC2B;AAK9C;IADP,KAAK,EAAE;6CACoB;AAOpB;IADP,KAAK,CAAC,oBAAoB,CAAC;6CACM;AAtDtB,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CA4LzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,gCAAgC,CAAC;AACxC,OAAO,0CAA0C,CAAC;AAClD,OAAO,4BAA4B,CAAC;AAepC,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"file-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,gCAAgC,CAAC;AACxC,OAAO,0CAA0C,CAAC;AAClD,OAAO,4BAA4B,CAAC;AAepC,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc,CA4C1E"}
|
|
@@ -28,7 +28,6 @@ export function fileFieldTemplate(component) {
|
|
|
28
28
|
?disabled=${component.disabled}
|
|
29
29
|
?required=${component.required}
|
|
30
30
|
aria-label=${component.accessibleLabel || nothing}
|
|
31
|
-
aria-describedby=${component.errorMessageIds || nothing}
|
|
32
31
|
@change=${component._handleInputChange}
|
|
33
32
|
>
|
|
34
33
|
<div class="file-field__choose-button">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,gCAAgC,CAAC;AACxC,OAAO,0CAA0C,CAAC;AAClD,OAAO,4BAA4B,CAAC;AAEpC,SAAS,oBAAoB,CAAC,SAAwB;IACrD,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IAE3D,OAAO,IAAI,CAAA;;;WAGD,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;;;;EAIhD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAAwB;IACzD,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAE5C,OAAO,IAAI,CAAA;;;;SAIH,SAAS,CAAC,OAAO,IAAI,OAAO;aACxB,SAAS,CAAC,MAAM,IAAI,OAAO;gBACxB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;iBACjB,SAAS,CAAC,eAAe,IAAI,OAAO;
|
|
1
|
+
{"version":3,"file":"file-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/file-field/file-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,gCAAgC,CAAC;AACxC,OAAO,0CAA0C,CAAC;AAClD,OAAO,4BAA4B,CAAC;AAEpC,SAAS,oBAAoB,CAAC,SAAwB;IACrD,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IAE3D,OAAO,IAAI,CAAA;;;WAGD,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;;;;EAIhD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAAwB;IACzD,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAE5C,OAAO,IAAI,CAAA;;;;SAIH,SAAS,CAAC,OAAO,IAAI,OAAO;aACxB,SAAS,CAAC,MAAM,IAAI,OAAO;gBACxB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;iBACjB,SAAS,CAAC,eAAe,IAAI,OAAO;cACvC,SAAS,CAAC,kBAAkB;;;;;YAK9B,SAAS,CAAC,IAAI;YACd,SAAS,CAAC,YAAY,EAAE;wBACZ,SAAS,CAAC,sBAAsB,EAAE,IAAI,OAAO;iBACpD,SAAS,CAAC,QAAQ;cACrB,SAAS,CAAC,aAAa;;;iBAGpB,QAAQ,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;MACzE,SAAS,CAAC,WAAW,EAAE;;KAExB,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;;;;aAIP,UAAU;;aAEV,SAAS,CAAC,EAAE,CAAC,oCAAoC,CAAC;kBAC7C,SAAS,CAAC,QAAQ;eACrB,SAAS,CAAC,YAAY;;;IAGjC,CAAC,CAAC,CAAC,OAAO;KACT,oBAAoB,CAAC,SAAS,CAAC;;EAElC,CAAC;AACH,CAAC"}
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
* @attr {number} rows - Initial visible rows (minimum height). Default: 3.
|
|
20
20
|
* @attr {string} resize - 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle.
|
|
21
21
|
* @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
|
|
22
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner textarea. Set automatically by nldd-form-field.
|
|
23
22
|
* @attr {boolean} no-spellcheck - Disables browser spellchecking on the inner textarea
|
|
24
23
|
* @attr {string} width - Optional fixed width (any CSS length, e.g. "240px"). Default: stretches to fill container.
|
|
24
|
+
* @attr {number} minlength - Fewest characters the value may have.
|
|
25
|
+
* @attr {number} maxlength - Most characters the value may have.
|
|
25
26
|
*
|
|
26
27
|
* @fires input - When value changes
|
|
27
28
|
* @fires change - When value is committed (blur)
|
|
@@ -31,7 +32,7 @@ import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
|
31
32
|
import type { Keyboard, EnterKey } from '../text-field/text-field.js';
|
|
32
33
|
export type ResizeMode = 'none' | 'vertical' | 'auto';
|
|
33
34
|
export type { Keyboard, EnterKey } from '../text-field/text-field.js';
|
|
34
|
-
declare const NLDDMultiLineTextField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
35
|
+
declare const NLDDMultiLineTextField_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);
|
|
35
36
|
export declare class NLDDMultiLineTextField extends NLDDMultiLineTextField_base {
|
|
36
37
|
static shadowRootOptions: {
|
|
37
38
|
delegatesFocus: boolean;
|
|
@@ -65,11 +66,14 @@ export declare class NLDDMultiLineTextField extends NLDDMultiLineTextField_base
|
|
|
65
66
|
resize: ResizeMode;
|
|
66
67
|
/** Accessible label forwarded to the inner <textarea>. Set automatically by nldd-form-field. */
|
|
67
68
|
accessibleLabel: string;
|
|
68
|
-
errorMessageIds: string;
|
|
69
69
|
noSpellcheck: boolean;
|
|
70
70
|
/** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
|
|
71
71
|
width: string;
|
|
72
72
|
private _textarea;
|
|
73
|
+
/** Fewest characters the value may have, as the native `minlength`. */
|
|
74
|
+
minlength?: number;
|
|
75
|
+
/** Most characters the value may have, as the native `maxlength`. */
|
|
76
|
+
maxlength?: number;
|
|
73
77
|
firstUpdated(): void;
|
|
74
78
|
updated(changed: PropertyValues): void;
|
|
75
79
|
formValue(): FormValue;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAI7F,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGtE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;;AAEtE,qBACa,sBAAuB,SAAQ,2BAAuC;IAElF,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAA4B;IAElD;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,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;IAElB,mEAAmE;IAEnE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,4DAA4D;IAE5D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAU;IAE5B,gGAAgG;IAEhG,eAAe,SAAM;IAIrB,YAAY,UAAS;IAErB,oGAAoG;IAEpG,KAAK,SAAM;IAIX,OAAO,CAAC,SAAS,CAAuB;IAGxC,uEAAuE;IAEvE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,qEAAqE;IAErE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEV,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"}
|
|
@@ -25,9 +25,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
25
25
|
* @attr {number} rows - Initial visible rows (minimum height). Default: 3.
|
|
26
26
|
* @attr {string} resize - 'none' | 'vertical' | 'auto' (default). 'auto' grows with content (native field-sizing), no manual handle.
|
|
27
27
|
* @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
|
|
28
|
-
* @attr {string} error-message-ids - Ids for aria-describedby on the inner textarea. Set automatically by nldd-form-field.
|
|
29
28
|
* @attr {boolean} no-spellcheck - Disables browser spellchecking on the inner textarea
|
|
30
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.
|
|
31
32
|
*
|
|
32
33
|
* @fires input - When value changes
|
|
33
34
|
* @fires change - When value is committed (blur)
|
|
@@ -38,7 +39,8 @@ import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
|
38
39
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
39
40
|
import { multiLineTextFieldStyles } from './multi-line-text-field.styles.js';
|
|
40
41
|
import { multiLineTextFieldTemplate } from './multi-line-text-field.template.js';
|
|
41
|
-
|
|
42
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
43
|
+
let NLDDMultiLineTextField = class NLDDMultiLineTextField extends DescribedBy(FormAssociated(LitElement)) {
|
|
42
44
|
constructor() {
|
|
43
45
|
super(...arguments);
|
|
44
46
|
this._initialValue = '';
|
|
@@ -57,7 +59,6 @@ let NLDDMultiLineTextField = class NLDDMultiLineTextField extends FormAssociated
|
|
|
57
59
|
this.resize = 'auto';
|
|
58
60
|
/** Accessible label forwarded to the inner <textarea>. Set automatically by nldd-form-field. */
|
|
59
61
|
this.accessibleLabel = '';
|
|
60
|
-
this.errorMessageIds = '';
|
|
61
62
|
this.noSpellcheck = false;
|
|
62
63
|
/** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
|
|
63
64
|
this.width = '';
|
|
@@ -157,7 +158,7 @@ __decorate([
|
|
|
157
158
|
property({ type: Boolean, reflect: true })
|
|
158
159
|
], NLDDMultiLineTextField.prototype, "disabled", void 0);
|
|
159
160
|
__decorate([
|
|
160
|
-
property({
|
|
161
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
161
162
|
], NLDDMultiLineTextField.prototype, "name", void 0);
|
|
162
163
|
__decorate([
|
|
163
164
|
property({ type: Boolean, reflect: true })
|
|
@@ -183,18 +184,21 @@ __decorate([
|
|
|
183
184
|
__decorate([
|
|
184
185
|
property({ type: String, attribute: 'accessible-label' })
|
|
185
186
|
], NLDDMultiLineTextField.prototype, "accessibleLabel", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
property({ type: String, attribute: 'error-message-ids' })
|
|
188
|
-
], NLDDMultiLineTextField.prototype, "errorMessageIds", void 0);
|
|
189
187
|
__decorate([
|
|
190
188
|
property({ type: Boolean, reflect: true, attribute: 'no-spellcheck' })
|
|
191
189
|
], NLDDMultiLineTextField.prototype, "noSpellcheck", void 0);
|
|
192
190
|
__decorate([
|
|
193
|
-
property({
|
|
191
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
194
192
|
], NLDDMultiLineTextField.prototype, "width", void 0);
|
|
195
193
|
__decorate([
|
|
196
194
|
query('.multi-line-text-field__input')
|
|
197
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);
|
|
198
202
|
NLDDMultiLineTextField = __decorate([
|
|
199
203
|
customElement('nldd-multi-line-text-field')
|
|
200
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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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,6 +27,8 @@ 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}
|
|
32
34
|
inputmode=${component.keyboard || nothing}
|
|
@@ -39,7 +41,6 @@ export function multiLineTextFieldTemplate(component) {
|
|
|
39
41
|
autocomplete=${component.autocomplete || nothing}
|
|
40
42
|
spellcheck=${component.noSpellcheck ? 'false' : 'true'}
|
|
41
43
|
aria-label=${component.accessibleLabel || nothing}
|
|
42
|
-
aria-describedby=${component.errorMessageIds || nothing}
|
|
43
44
|
aria-invalid=${component.invalid ? 'true' : nothing}
|
|
44
45
|
@input=${component._handleInput}
|
|
45
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,wBAAwB,CAAC;AAC1E,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;;AAE1C,qBACa,eAAgB,SAAQ,oBAAuC;IAE3E,OAAgB,MAAM,0BAAqB;IAE3C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBAAwB,UAAQ;IAGvC,OAAO,CAAC,aAAa,CAAK;IAG1B,KAAK,SAAK;IAGV,GAAG,SAAa;IAGhB,GAAG,SAAY;IAGf,IAAI,SAAK;IAGT,IAAI,EAAE,eAAe,CAAQ;IAG7B,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAEV,mEAAmE;IAEnE,KAAK,SAAM;IAGX,eAAe,UAAS;IAExB,oEAAoE;IAEpE,eAAe,SAAM;IAErB,kFAAkF;IAElF,YAAY,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAM;IAExD;;oFAEgF;IAChF,OAAO,CAAC,eAAe,CAAK;IAG5B;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAQpB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAgBtD,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAQ/D,EAAE,CAAC,GAAG,EAAE,MAAM,2BAA2B,GAAG,MAAM;IAMlD,eAAe,IAAI,IAAI;IAKvB,eAAe,IAAI,IAAI;IAK9B,mGAAmG;IACnG;kDAC8C;IACvC,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAItC,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAcnC,kGAAkG;IAC3F,aAAa,CAAC,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"}
|
|
@@ -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
|
+
{"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/number-field/number-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;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,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,M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AM,EAAE,CAAC;8CACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;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,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;6CACpD;AAIV;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,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,iBAAkB,SAAQ,sBAAuC;IAE7E,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAuB;IAE7C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBAAwB,UAAQ;IAGvC,OAAO,CAAC,aAAa,CAAM;IAG3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,KAAK,UAAS;IAGd,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAGjB,MAAM,UAAQ;IAEd,gFAAgF;IAEhF,cAAc,SAAU;IAExB,kFAAkF;IAElF,cAAc,SAAa;IAE3B,uGAAuG;IAEvG,yBAAyB,SAAqB;IAE9C,yGAAyG;IAEzG,yBAAyB,SAAwB;IAGjD,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,YAAY,SAAM;IAElB,6FAA6F;IAE7F,eAAe,S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