@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as inheritedTextReset } from "./shadow-resets-aG-rgyNQ.js";
|
|
2
|
-
import { t as __decorate } from "./decorate-
|
|
3
|
-
import { t as withTranslations } from "./with-translations-
|
|
2
|
+
import { t as __decorate } from "./decorate-lwt_OrAG.js";
|
|
3
|
+
import { t as withTranslations } from "./with-translations-CqUV9S5g.js";
|
|
4
4
|
import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
|
|
5
|
-
import "./icon-
|
|
5
|
+
import "./icon-VTLbdcvZ.js";
|
|
6
6
|
import { r as isTouchMode } from "./input-modality-DhTeUxKi.js";
|
|
7
7
|
import { LitElement, css, html, nothing } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -1102,7 +1102,7 @@ function tooltipTemplate(component) {
|
|
|
1102
1102
|
*
|
|
1103
1103
|
* @element nldd-tooltip
|
|
1104
1104
|
* @attr {string} text - Tooltip text
|
|
1105
|
-
* @attr {boolean} open - Forces the tooltip visible, whatever hover or focus does. Use it for programmatic feedback ("Copied", for instance). Reset it to false to restore the hover
|
|
1105
|
+
* @attr {boolean} open - Forces the tooltip visible, whatever hover or focus does. Use it for programmatic feedback ("Copied", for instance). Reset it to false to restore the hover behavior.
|
|
1106
1106
|
* @attr {string} placement - Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices)
|
|
1107
1107
|
* @attr {string} timing - When the tooltip appears on hover: 'instant' — right away, without a show delay. 'default' — after the standard show delay (700ms). 'never' — the tooltip is never shown; hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. A focus trigger is always instant.
|
|
1108
1108
|
*
|
|
@@ -1484,13 +1484,13 @@ var nlddIconButtonTranslations = { "components.icon-button.opens-in-new-tab-labe
|
|
|
1484
1484
|
* Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
|
|
1485
1485
|
*
|
|
1486
1486
|
* @element nldd-icon-button
|
|
1487
|
-
* @attr {string} variant - Button variant: 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted' | 'primary' | 'secondary' | 'destructive'.
|
|
1487
|
+
* @attr {string} variant - Button variant: 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted' | 'primary' | 'secondary' | 'destructive'. The inherit variants derive their colors from currentColor, for buttons on colored surfaces.
|
|
1488
1488
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
1489
1489
|
* @attr {boolean} hide-lg-text - In lg size, hides the text label and enlarges the icon by one step (28px)
|
|
1490
1490
|
* @attr {boolean} no-highlight-border - Removes the per-variant highlight border (e.g. when a control group draws a single border instead).
|
|
1491
1491
|
* @attr {boolean} loading - Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled).
|
|
1492
1492
|
* @attr {boolean} disabled - Disabled state
|
|
1493
|
-
* @attr {boolean} no-tab - Takes the button out of the tab order (tabindex="-1"), for a control owned by a roving container (
|
|
1493
|
+
* @attr {boolean} no-tab - Takes the button out of the tab order (tabindex="-1"), for a control owned by a roving container (an nldd-token in nldd-token-field, a button in a row of an nldd-list) that manages focus itself. Still mouse- and script-focusable.
|
|
1494
1494
|
* @attr {string} type - Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set)
|
|
1495
1495
|
* @attr {boolean} expandable - Whether the button opens a menu or popover and shows chevron next to the icon
|
|
1496
1496
|
* @attr {boolean} expanded - Whether the popover/menu controlled by this button is currently open. Forwarded as aria-expanded on the inner button; toggles the is-expanded visual state.
|
|
@@ -24,12 +24,14 @@ export { NLDDImage } from './content/image/image.js';
|
|
|
24
24
|
export { NLDDKeyboardShortcut } from './content/keyboard-shortcut/keyboard-shortcut.js';
|
|
25
25
|
export { NLDDRichText } from './content/rich-text/rich-text.js';
|
|
26
26
|
export { NLDDTag } from './content/tag/tag.js';
|
|
27
|
+
export { NLDDText } from './content/text/text.js';
|
|
27
28
|
export { NLDDTitle } from './content/title/title.js';
|
|
28
29
|
export { NLDDToken } from './content/token/token.js';
|
|
29
30
|
export { NLDDTooltip } from './content/tooltip/tooltip.js';
|
|
30
31
|
export { NLDDForm } from './forms/form/form.js';
|
|
31
32
|
export { NLDDFormActions } from './forms/form-actions/form-actions.js';
|
|
32
33
|
export { NLDDFormField } from './forms/form-field/form-field.js';
|
|
34
|
+
export { NLDDValidationList } from './forms/validation-list/validation-list.js';
|
|
33
35
|
export { NLDDFormSection } from './forms/form-section/form-section.js';
|
|
34
36
|
export { NLDDCheckbox } from './inputs/checkbox/checkbox.js';
|
|
35
37
|
export { NLDDCheckboxField } from './inputs/checkbox-field/checkbox-field.js';
|
|
@@ -84,7 +86,7 @@ export { NLDDWindow } from './layout/window/window.js';
|
|
|
84
86
|
export { NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem } from './layout/page-footer/page-footer.js';
|
|
85
87
|
export { NLDDList } from './lists-and-tables/list/list.js';
|
|
86
88
|
export { NLDDListItem } from './lists-and-tables/list-item/list-item.js';
|
|
87
|
-
export {
|
|
89
|
+
export { NLDDListItemSegment } from './lists-and-tables/list-item-segment/list-item-segment.js';
|
|
88
90
|
export { NLDDTable, NLDDTableRow } from './lists-and-tables/table/table.js';
|
|
89
91
|
export { NLDDCell } from './lists-and-tables/cells/cell/cell.js';
|
|
90
92
|
export { NLDDSpacerCell } from './lists-and-tables/cells/spacer-cell/spacer-cell.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAKlD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,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DAAoD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACtH,OAAO,EAAE,kBAAkB,EAAE,kCAAkC,EAAE,MAAM,0DAA0D,CAAC;AAClI,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wEAAwE,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export { NLDDImage } from './content/image/image.js';
|
|
|
26
26
|
export { NLDDKeyboardShortcut } from './content/keyboard-shortcut/keyboard-shortcut.js';
|
|
27
27
|
export { NLDDRichText } from './content/rich-text/rich-text.js';
|
|
28
28
|
export { NLDDTag } from './content/tag/tag.js';
|
|
29
|
+
export { NLDDText } from './content/text/text.js';
|
|
29
30
|
export { NLDDTitle } from './content/title/title.js';
|
|
30
31
|
export { NLDDToken } from './content/token/token.js';
|
|
31
32
|
export { NLDDTooltip } from './content/tooltip/tooltip.js';
|
|
@@ -33,6 +34,7 @@ export { NLDDTooltip } from './content/tooltip/tooltip.js';
|
|
|
33
34
|
export { NLDDForm } from './forms/form/form.js';
|
|
34
35
|
export { NLDDFormActions } from './forms/form-actions/form-actions.js';
|
|
35
36
|
export { NLDDFormField } from './forms/form-field/form-field.js';
|
|
37
|
+
export { NLDDValidationList } from './forms/validation-list/validation-list.js';
|
|
36
38
|
export { NLDDFormSection } from './forms/form-section/form-section.js';
|
|
37
39
|
// # Input components
|
|
38
40
|
export { NLDDCheckbox } from './inputs/checkbox/checkbox.js';
|
|
@@ -90,7 +92,7 @@ export { NLDDPageFooter, NLDDPageFooterLegalBar, NLDDPageFooterLegalBarItem } fr
|
|
|
90
92
|
// # List and Table components
|
|
91
93
|
export { NLDDList } from './lists-and-tables/list/list.js';
|
|
92
94
|
export { NLDDListItem } from './lists-and-tables/list-item/list-item.js';
|
|
93
|
-
export {
|
|
95
|
+
export { NLDDListItemSegment } from './lists-and-tables/list-item-segment/list-item-segment.js';
|
|
94
96
|
export { NLDDTable, NLDDTableRow } from './lists-and-tables/table/table.js';
|
|
95
97
|
export { NLDDCell } from './lists-and-tables/cells/cell/cell.js';
|
|
96
98
|
export { NLDDSpacerCell } from './lists-and-tables/cells/spacer-cell/spacer-cell.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,sBAAsB;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,uBAAuB;AAEvB,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,oBAA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iCAAiC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAGvE,mCAAmC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACtH,OAAO,EAAE,kBAAkB,EAAE,kCAAkC,EAAE,MAAM,0DAA0D,CAAC;AAClI,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wEAAwE,CAAC;AAEjH,gEAAgE"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @element nldd-checkbox
|
|
5
5
|
* @attr {boolean} checked - Checked state
|
|
6
6
|
* @attr {boolean} disabled - Disabled state
|
|
7
|
+
* @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.
|
|
7
8
|
* @attr {boolean} decorative - Renders the box without the input: no focus, no
|
|
8
9
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
9
10
|
* such as a list row that is itself the checkbox; putting a real input in
|
|
@@ -12,13 +13,15 @@
|
|
|
12
13
|
* @attr {string} value - Value for form submission
|
|
13
14
|
* @attr {string} name - Name for form submission
|
|
14
15
|
* @attr {string} accessible-label - Accessible label forwarded as aria-label to the native input.
|
|
16
|
+
* @attr {boolean} required - Required state
|
|
17
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
15
18
|
* Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries.
|
|
16
19
|
*
|
|
17
20
|
* @fires change - Fired when the checkbox state changes; detail: { checked: boolean, value: string }
|
|
18
21
|
*/
|
|
19
22
|
import { LitElement } from 'lit';
|
|
20
23
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
21
|
-
declare const NLDDCheckbox_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
24
|
+
declare const NLDDCheckbox_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);
|
|
22
25
|
export declare class NLDDCheckbox extends NLDDCheckbox_base {
|
|
23
26
|
static styles: import("lit").CSSResult;
|
|
24
27
|
/** Says this is the control an nldd-form-field is about, so the field can
|
|
@@ -28,10 +31,26 @@ export declare class NLDDCheckbox extends NLDDCheckbox_base {
|
|
|
28
31
|
checked: boolean;
|
|
29
32
|
decorative: boolean;
|
|
30
33
|
disabled: boolean;
|
|
34
|
+
/** Take the control out of the tab order (`tabindex="-1"`) — for a control
|
|
35
|
+
* owned by a roving container (an `nldd-list` sets it on the rows that are
|
|
36
|
+
* not the current one) that manages focus itself. Still mouse- and
|
|
37
|
+
* script-focusable. */
|
|
38
|
+
noTab: boolean;
|
|
31
39
|
indeterminate: boolean;
|
|
32
40
|
value: string;
|
|
33
41
|
name: string;
|
|
34
42
|
accessibleLabel: string;
|
|
43
|
+
required: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Marks the control as invalid.
|
|
46
|
+
*
|
|
47
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
48
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
49
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
50
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
51
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
52
|
+
*/
|
|
53
|
+
invalid: boolean;
|
|
35
54
|
firstUpdated(): void;
|
|
36
55
|
formValue(): FormValue;
|
|
37
56
|
formResetCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAM7F,qBACa,YAAa,SAAQ,iBAAuC;IACxE,OAAgB,MAAM,0BAAkB;IAExC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B,OAAO,CAAC,eAAe,CAAS;IAGhC,OAAO,UAAS;IAGhB,UAAU,UAAS;IAGnB,QAAQ,UAAS;IACjB;;;4BAGwB;IAExB,KAAK,UAAS;IAId,aAAa,UAAS;IAGtB,KAAK,SAAQ;IAGb,IAAI,SAAM;IAGV,eAAe,SAAM;IAIrB,QAAQ,UAAS;IAGjB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAIpB,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;IAYd,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAYpC;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,YAAY,CAAC;KAC9B;CACD"}
|
|
@@ -10,6 +10,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
* @element nldd-checkbox
|
|
11
11
|
* @attr {boolean} checked - Checked state
|
|
12
12
|
* @attr {boolean} disabled - Disabled state
|
|
13
|
+
* @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.
|
|
13
14
|
* @attr {boolean} decorative - Renders the box without the input: no focus, no
|
|
14
15
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
15
16
|
* such as a list row that is itself the checkbox; putting a real input in
|
|
@@ -18,6 +19,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
19
|
* @attr {string} value - Value for form submission
|
|
19
20
|
* @attr {string} name - Name for form submission
|
|
20
21
|
* @attr {string} accessible-label - Accessible label forwarded as aria-label to the native input.
|
|
22
|
+
* @attr {boolean} required - Required state
|
|
23
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
21
24
|
* Note: aria-labelledby is not supported as IDREF resolution cannot cross shadow DOM boundaries.
|
|
22
25
|
*
|
|
23
26
|
* @fires change - Fired when the checkbox state changes; detail: { checked: boolean, value: string }
|
|
@@ -27,17 +30,35 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
27
30
|
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
28
31
|
import { checkboxStyles } from './checkbox.styles.js';
|
|
29
32
|
import { checkboxTemplate } from './checkbox.template.js';
|
|
30
|
-
|
|
33
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
34
|
+
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
35
|
+
let NLDDCheckbox = class NLDDCheckbox extends DescribedBy(FormAssociated(LitElement)) {
|
|
31
36
|
constructor() {
|
|
32
37
|
super(...arguments);
|
|
33
38
|
this._initialChecked = false;
|
|
34
39
|
this.checked = false;
|
|
35
40
|
this.decorative = false;
|
|
36
41
|
this.disabled = false;
|
|
42
|
+
/** Take the control out of the tab order (`tabindex="-1"`) — for a control
|
|
43
|
+
* owned by a roving container (an `nldd-list` sets it on the rows that are
|
|
44
|
+
* not the current one) that manages focus itself. Still mouse- and
|
|
45
|
+
* script-focusable. */
|
|
46
|
+
this.noTab = false;
|
|
37
47
|
this.indeterminate = false;
|
|
38
48
|
this.value = 'on';
|
|
39
49
|
this.name = '';
|
|
40
50
|
this.accessibleLabel = '';
|
|
51
|
+
this.required = false;
|
|
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
|
+
this.invalid = false;
|
|
41
62
|
}
|
|
42
63
|
firstUpdated() {
|
|
43
64
|
this._initialChecked = this.checked;
|
|
@@ -99,6 +120,9 @@ __decorate([
|
|
|
99
120
|
__decorate([
|
|
100
121
|
property({ type: Boolean, reflect: true })
|
|
101
122
|
], NLDDCheckbox.prototype, "disabled", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
property({ type: Boolean, reflect: true, attribute: 'no-tab' })
|
|
125
|
+
], NLDDCheckbox.prototype, "noTab", void 0);
|
|
102
126
|
__decorate([
|
|
103
127
|
property({ type: Boolean, reflect: true })
|
|
104
128
|
], NLDDCheckbox.prototype, "indeterminate", void 0);
|
|
@@ -106,11 +130,17 @@ __decorate([
|
|
|
106
130
|
property({ type: String })
|
|
107
131
|
], NLDDCheckbox.prototype, "value", void 0);
|
|
108
132
|
__decorate([
|
|
109
|
-
property({
|
|
133
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
110
134
|
], NLDDCheckbox.prototype, "name", void 0);
|
|
111
135
|
__decorate([
|
|
112
136
|
property({ type: String, attribute: 'accessible-label' })
|
|
113
137
|
], NLDDCheckbox.prototype, "accessibleLabel", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
property({ type: Boolean, reflect: true })
|
|
140
|
+
], NLDDCheckbox.prototype, "required", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
property({ type: Boolean, reflect: true })
|
|
143
|
+
], NLDDCheckbox.prototype, "invalid", void 0);
|
|
114
144
|
NLDDCheckbox = __decorate([
|
|
115
145
|
customElement('nldd-checkbox')
|
|
116
146
|
], NLDDCheckbox);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAGvE,IAAM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,SAAS,EAAE,QAAQ,EAAE,CAAC;2CAClD;AAId;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACrB;AAGtB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACd;AAGb;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;0CACpD;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;qDACrC;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAajB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC3B;AApDJ,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CA0GxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,8BAA8B,CAAC;AAEtC,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"checkbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,8BAA8B,CAAC;AAEtC,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,CAoCxE"}
|
|
@@ -14,6 +14,7 @@ export function checkboxTemplate(component) {
|
|
|
14
14
|
}
|
|
15
15
|
return html `
|
|
16
16
|
<input class="checkbox__input"
|
|
17
|
+
?required=${component.required}
|
|
17
18
|
type="checkbox"
|
|
18
19
|
.checked=${component.checked}
|
|
19
20
|
.indeterminate=${component.indeterminate}
|
|
@@ -21,6 +22,7 @@ export function checkboxTemplate(component) {
|
|
|
21
22
|
name=${component.name || ''}
|
|
22
23
|
value=${component.value}
|
|
23
24
|
aria-label=${component.accessibleLabel || nothing}
|
|
25
|
+
tabindex=${component.noTab ? '-1' : nothing}
|
|
24
26
|
@change=${component._handleChange}
|
|
25
27
|
>
|
|
26
28
|
<div class="checkbox__box"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AAEtC,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,wEAAwE;IACxE,0EAA0E;IAC1E,uCAAuC;IACvC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAA;;;;;GAKV,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA
|
|
1
|
+
{"version":3,"file":"checkbox.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox/checkbox.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AAEtC,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,wEAAwE;IACxE,0EAA0E;IAC1E,uCAAuC;IACvC,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAA;;;;;GAKV,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;;eAEG,SAAS,CAAC,QAAQ;;cAEnB,SAAS,CAAC,OAAO;oBACX,SAAS,CAAC,aAAa;eAC5B,SAAS,CAAC,QAAQ;UACvB,SAAS,CAAC,IAAI,IAAI,EAAE;WACnB,SAAS,CAAC,KAAK;gBACV,SAAS,CAAC,eAAe,IAAI,OAAO;cACtC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;aACjC,SAAS,CAAC,aAAa;;;;;;;;;;;;EAYlC,CAAC;AACH,CAAC"}
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
* @attr {string} value - Value for form submission
|
|
15
15
|
* @attr {string} name - Name for form submission
|
|
16
16
|
* @attr {string} label - Label text for the checkbox
|
|
17
|
+
* @attr {boolean} required - Required state
|
|
18
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
17
19
|
*
|
|
18
20
|
* @fires change - When checked state changes; detail: { checked: boolean, value: string }
|
|
19
21
|
*/
|
|
20
22
|
import { LitElement } from 'lit';
|
|
21
23
|
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
22
|
-
declare const NLDDCheckboxField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
24
|
+
declare const NLDDCheckboxField_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);
|
|
23
25
|
export declare class NLDDCheckboxField extends NLDDCheckboxField_base {
|
|
24
26
|
static styles: import("lit").CSSResult;
|
|
25
27
|
/** Says this is the control an nldd-form-field is about, so the field can
|
|
@@ -34,6 +36,17 @@ export declare class NLDDCheckboxField extends NLDDCheckboxField_base {
|
|
|
34
36
|
* the property alone must still register the field with the form. */
|
|
35
37
|
name: string;
|
|
36
38
|
label: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Marks the control as invalid.
|
|
42
|
+
*
|
|
43
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
44
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
45
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
46
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
47
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
48
|
+
*/
|
|
49
|
+
invalid: boolean;
|
|
37
50
|
firstUpdated(): void;
|
|
38
51
|
formValue(): FormValue;
|
|
39
52
|
formResetCallback(): void;
|
|
@@ -46,6 +59,8 @@ export declare class NLDDCheckboxField extends NLDDCheckboxField_base {
|
|
|
46
59
|
* reaching into shadow DOM.
|
|
47
60
|
*/
|
|
48
61
|
focus(options?: FocusOptions): void;
|
|
62
|
+
/** The checkbox it renders knows which element inside itself is the control. */
|
|
63
|
+
describedTarget(): Element | null;
|
|
49
64
|
render(): import("lit-html").TemplateResult;
|
|
50
65
|
}
|
|
51
66
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"checkbox-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAO7F,qBACa,iBAAkB,SAAQ,sBAAuC;IAE7E,OAAgB,MAAM,0BAAuB;IAE7C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,OAAO,CAAC,eAAe,CAAS;IAGhC,OAAO,UAAS;IAGhB,aAAa,UAAS;IAGtB,QAAQ,UAAS;IAGjB,KAAK,SAAQ;IAEb;0EACsE;IAEtE,IAAI,SAAM;IAGV,KAAK,SAAM;IAIX,QAAQ,UAAS;IAGjB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAKpB,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAMzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI/D,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAOjC,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAYpC;;;;OAIG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAI5C,gFAAgF;IACvE,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,qBAAqB,EAAE,iBAAiB,CAAC;KACzC;CACD"}
|
|
@@ -20,6 +20,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
* @attr {string} value - Value for form submission
|
|
21
21
|
* @attr {string} name - Name for form submission
|
|
22
22
|
* @attr {string} label - Label text for the checkbox
|
|
23
|
+
* @attr {boolean} required - Required state
|
|
24
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
23
25
|
*
|
|
24
26
|
* @fires change - When checked state changes; detail: { checked: boolean, value: string }
|
|
25
27
|
*/
|
|
@@ -28,7 +30,9 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
28
30
|
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
29
31
|
import { checkboxFieldStyles } from './checkbox-field.styles.js';
|
|
30
32
|
import { checkboxFieldTemplate } from './checkbox-field.template.js';
|
|
31
|
-
|
|
33
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
34
|
+
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
35
|
+
let NLDDCheckboxField = class NLDDCheckboxField extends DescribedBy(FormAssociated(LitElement)) {
|
|
32
36
|
constructor() {
|
|
33
37
|
super(...arguments);
|
|
34
38
|
this._initialChecked = false;
|
|
@@ -40,6 +44,17 @@ let NLDDCheckboxField = class NLDDCheckboxField extends FormAssociated(LitElemen
|
|
|
40
44
|
* the property alone must still register the field with the form. */
|
|
41
45
|
this.name = '';
|
|
42
46
|
this.label = '';
|
|
47
|
+
this.required = false;
|
|
48
|
+
/**
|
|
49
|
+
* Marks the control as invalid.
|
|
50
|
+
*
|
|
51
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
52
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
53
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
54
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
55
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
56
|
+
*/
|
|
57
|
+
this.invalid = false;
|
|
43
58
|
}
|
|
44
59
|
firstUpdated() {
|
|
45
60
|
this._initialChecked = this.checked;
|
|
@@ -81,6 +96,10 @@ let NLDDCheckboxField = class NLDDCheckboxField extends FormAssociated(LitElemen
|
|
|
81
96
|
focus(options) {
|
|
82
97
|
this.shadowRoot?.querySelector('nldd-checkbox')?.focus(options);
|
|
83
98
|
}
|
|
99
|
+
/** The checkbox it renders knows which element inside itself is the control. */
|
|
100
|
+
describedTarget() {
|
|
101
|
+
return this.shadowRoot?.querySelector('nldd-checkbox') ?? null;
|
|
102
|
+
}
|
|
84
103
|
render() {
|
|
85
104
|
return checkboxFieldTemplate(this);
|
|
86
105
|
}
|
|
@@ -102,11 +121,17 @@ __decorate([
|
|
|
102
121
|
property({ type: String })
|
|
103
122
|
], NLDDCheckboxField.prototype, "value", void 0);
|
|
104
123
|
__decorate([
|
|
105
|
-
property({
|
|
124
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
106
125
|
], NLDDCheckboxField.prototype, "name", void 0);
|
|
107
126
|
__decorate([
|
|
108
127
|
property({ type: String })
|
|
109
128
|
], NLDDCheckboxField.prototype, "label", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property({ type: Boolean, reflect: true })
|
|
131
|
+
], NLDDCheckboxField.prototype, "required", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ type: Boolean, reflect: true })
|
|
134
|
+
], NLDDCheckboxField.prototype, "invalid", void 0);
|
|
110
135
|
NLDDCheckboxField = __decorate([
|
|
111
136
|
customElement('nldd-checkbox-field')
|
|
112
137
|
], NLDDCheckboxField);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"checkbox-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAGvE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAAvE;;QASE,oBAAe,GAAG,KAAK,CAAC;QAGhC,YAAO,GAAG,KAAK,CAAC;QAGhB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ADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAC3B;AA9CJ,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAuG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,yBAAyB,CAAC;AAGjC,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"checkbox-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,yBAAyB,CAAC;AAGjC,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAqBlF"}
|
|
@@ -8,6 +8,8 @@ export function checkboxFieldTemplate(component) {
|
|
|
8
8
|
>
|
|
9
9
|
<div class="checkbox-field__control">
|
|
10
10
|
<nldd-checkbox
|
|
11
|
+
?invalid=${component.invalid}
|
|
12
|
+
?required=${component.required}
|
|
11
13
|
?checked=${component.checked}
|
|
12
14
|
?indeterminate=${component.indeterminate}
|
|
13
15
|
?disabled=${component.disabled}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,yBAAyB,CAAC;AAEjC,uGAAuG;AACvG,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,OAAO,IAAI,CAAA;;YAEA,SAAS,CAAC,iBAAiB;;;;gBAIvB,SAAS,CAAC,OAAO;sBACX,SAAS,CAAC,aAAa;iBAC5B,SAAS,CAAC,QAAQ;YACvB,SAAS,CAAC,IAAI,IAAI,OAAO;aACxB,SAAS,CAAC,KAAK;wBACJ,SAAS,CAAC,KAAK,IAAI,OAAO;eACnC,SAAS,CAAC,aAAa;;;yCAGG,SAAS,CAAC,KAAK;;EAEtD,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"checkbox-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/checkbox-field/checkbox-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,yBAAyB,CAAC;AAEjC,uGAAuG;AACvG,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,OAAO,IAAI,CAAA;;YAEA,SAAS,CAAC,iBAAiB;;;;gBAIvB,SAAS,CAAC,OAAO;iBAChB,SAAS,CAAC,QAAQ;gBACnB,SAAS,CAAC,OAAO;sBACX,SAAS,CAAC,aAAa;iBAC5B,SAAS,CAAC,QAAQ;YACvB,SAAS,CAAC,IAAI,IAAI,OAAO;aACxB,SAAS,CAAC,KAAK;wBACJ,SAAS,CAAC,KAAK,IAAI,OAAO;eACnC,SAAS,CAAC,aAAa;;;yCAGG,SAAS,CAAC,KAAK;;EAEtD,CAAC;AACH,CAAC"}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
* @attr {string} language - Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
|
|
35
35
|
* @attr {boolean} line-numbers - Show a line-number gutter
|
|
36
36
|
* @attr {string} accessible-label - Accessible label forwarded to the editor. Set automatically by nldd-form-field.
|
|
37
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
37
38
|
*
|
|
38
39
|
* @fires input - When the content changes (detail: { value })
|
|
39
40
|
* @fires change - When the content is committed on blur (detail: { value })
|
|
@@ -44,7 +45,7 @@ import { type Extension } from '@codemirror/state';
|
|
|
44
45
|
import { NLDDCodeMirrorElement } from '../../../utilities/codemirror/codemirror-element.js';
|
|
45
46
|
export type ResizeMode = 'none' | 'vertical' | 'auto';
|
|
46
47
|
export type CodeEditorVariant = 'input-field' | 'simple';
|
|
47
|
-
declare const NLDDCodeEditor_base: typeof NLDDCodeMirrorElement & (abstract new (...args: any[]) => NLDDCodeMirrorElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement);
|
|
48
|
+
declare const NLDDCodeEditor_base: typeof NLDDCodeMirrorElement & (abstract new (...args: any[]) => NLDDCodeMirrorElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
48
49
|
export declare class NLDDCodeEditor extends NLDDCodeEditor_base {
|
|
49
50
|
static shadowRootOptions: {
|
|
50
51
|
delegatesFocus: boolean;
|
|
@@ -82,6 +83,16 @@ export declare class NLDDCodeEditor extends NLDDCodeEditor_base {
|
|
|
82
83
|
private _placeholderCompartment;
|
|
83
84
|
private _attrsCompartment;
|
|
84
85
|
private _languageCompartment;
|
|
86
|
+
/**
|
|
87
|
+
* Marks the control as invalid.
|
|
88
|
+
*
|
|
89
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
90
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
91
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
92
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
93
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
94
|
+
*/
|
|
95
|
+
invalid: boolean;
|
|
85
96
|
protected getEditorParent(): HTMLElement | null | undefined;
|
|
86
97
|
protected buildExtensions(): Extension[];
|
|
87
98
|
private _editableExtension;
|
|
@@ -99,6 +110,8 @@ export declare class NLDDCodeEditor extends NLDDCodeEditor_base {
|
|
|
99
110
|
formValue(): FormValue;
|
|
100
111
|
formResetCallback(): void;
|
|
101
112
|
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
113
|
+
/** CodeMirror builds the textbox; the host is only its container. */
|
|
114
|
+
describedTarget(): Element | null;
|
|
102
115
|
render(): import("lit-html").TemplateResult;
|
|
103
116
|
}
|
|
104
117
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAS7F,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAO5F,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,QAAQ,CAAC;;AAEzD,qBACa,cAAe,SAAQ,mBAAkD;IAErF,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAoB;IAE1C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,sBAAsB,CAAS;IAGvC,KAA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M,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -40,6 +40,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
40
40
|
* @attr {string} language - Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
|
|
41
41
|
* @attr {boolean} line-numbers - Show a line-number gutter
|
|
42
42
|
* @attr {string} accessible-label - Accessible label forwarded to the editor. Set automatically by nldd-form-field.
|
|
43
|
+
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
43
44
|
*
|
|
44
45
|
* @fires input - When the content changes (detail: { value })
|
|
45
46
|
* @fires change - When the content is committed on blur (detail: { value })
|
|
@@ -56,7 +57,8 @@ import { nlddCodeMirrorTheme } from '../../../utilities/codemirror/theme.js';
|
|
|
56
57
|
import { loadLanguage } from '../../../utilities/codemirror/languages.js';
|
|
57
58
|
import { codeEditorStyles } from './code-editor.styles.js';
|
|
58
59
|
import { codeEditorTemplate } from './code-editor.template.js';
|
|
59
|
-
|
|
60
|
+
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
61
|
+
let NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NLDDCodeMirrorElement)) {
|
|
60
62
|
constructor() {
|
|
61
63
|
super(...arguments);
|
|
62
64
|
this._initialValue = '';
|
|
@@ -83,6 +85,16 @@ let NLDDCodeEditor = class NLDDCodeEditor extends FormAssociated(NLDDCodeMirrorE
|
|
|
83
85
|
this._placeholderCompartment = new Compartment();
|
|
84
86
|
this._attrsCompartment = new Compartment();
|
|
85
87
|
this._languageCompartment = new Compartment();
|
|
88
|
+
/**
|
|
89
|
+
* Marks the control as invalid.
|
|
90
|
+
*
|
|
91
|
+
* Announced and not drawn. What is wrong belongs in an
|
|
92
|
+
* nldd-validation-list, in words: a red ring around a single
|
|
93
|
+
* checkbox or radio would say the option is wrong, while it is the question
|
|
94
|
+
* that is unanswered. `aria-invalid` still goes on the control, because
|
|
95
|
+
* choosing not to show something is not a reason to keep quiet about it.
|
|
96
|
+
*/
|
|
97
|
+
this.invalid = false;
|
|
86
98
|
this._onScrollerPointerDown = (event) => {
|
|
87
99
|
// Only the scroller's own padding — not the content/gutter inside it.
|
|
88
100
|
// pointerdown covers mouse, touch and pen in one event.
|
|
@@ -291,6 +303,10 @@ let NLDDCodeEditor = class NLDDCodeEditor extends FormAssociated(NLDDCodeMirrorE
|
|
|
291
303
|
if (typeof state === 'string')
|
|
292
304
|
this.value = state;
|
|
293
305
|
}
|
|
306
|
+
/** CodeMirror builds the textbox; the host is only its container. */
|
|
307
|
+
describedTarget() {
|
|
308
|
+
return this.shadowRoot?.querySelector('.cm-content') ?? null;
|
|
309
|
+
}
|
|
294
310
|
render() {
|
|
295
311
|
return codeEditorTemplate(this);
|
|
296
312
|
}
|
|
@@ -316,7 +332,7 @@ __decorate([
|
|
|
316
332
|
property({ type: Boolean, reflect: true })
|
|
317
333
|
], NLDDCodeEditor.prototype, "disabled", void 0);
|
|
318
334
|
__decorate([
|
|
319
|
-
property({
|
|
335
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
320
336
|
], NLDDCodeEditor.prototype, "name", void 0);
|
|
321
337
|
__decorate([
|
|
322
338
|
property({ type: Boolean, reflect: true })
|
|
@@ -348,6 +364,9 @@ __decorate([
|
|
|
348
364
|
__decorate([
|
|
349
365
|
query('.code-editor')
|
|
350
366
|
], NLDDCodeEditor.prototype, "_container", void 0);
|
|
367
|
+
__decorate([
|
|
368
|
+
property({ type: Boolean, reflect: true })
|
|
369
|
+
], NLDDCodeEditor.prototype, "invalid", void 0);
|
|
351
370
|
NLDDCodeEditor = __decorate([
|
|
352
371
|
customElement('nldd-code-editor')
|
|
353
372
|
], NLDDCodeEditor);
|