@nldd/design-system 0.13.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +1 -1
- package/README.md +4 -2
- package/custom-elements.json +2089 -172
- package/dist/components/actions/button/button.d.ts +1 -3
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +27 -34
- 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 +4 -4
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +0 -2
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +2 -12
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +8 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +40 -22
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +1 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +14 -12
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +4 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-divider.d.ts +1 -0
- package/dist/components/actions/menu/menu-divider.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-divider.js +1 -0
- package/dist/components/actions/menu/menu-divider.js.map +1 -1
- package/dist/components/actions/menu/menu-group.d.ts +1 -0
- package/dist/components/actions/menu/menu-group.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-group.js +1 -0
- package/dist/components/actions/menu/menu-group.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +1 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +7 -7
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +26 -4
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.i18n.d.ts +2 -0
- package/dist/components/actions/menu/menu.i18n.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.i18n.js +4 -0
- package/dist/components/actions/menu/menu.i18n.js.map +1 -1
- package/dist/components/actions/menu/menu.js +57 -19
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +2 -1
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +0 -2
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +2 -20
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -1
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +2 -1
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/button.i18n-DiDGynnq.js +8 -0
- package/dist/components/components.js +2357 -1255
- package/dist/components/content/avatar/avatar.d.ts +0 -2
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +2 -27
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +0 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -24
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +2 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +1 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts +2 -0
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.diff.js +1 -4
- package/dist/components/content/code-viewer/code-viewer.diff.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +16 -11
- package/dist/components/content/code-viewer/code-viewer.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.d.ts +3 -0
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +19 -15
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +2 -1
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +5 -11
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +14 -31
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.d.ts.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +2 -1
- package/dist/components/content/image/lqip-encoder-element.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +2 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +4 -1
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +6 -2
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -5
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +2 -1
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +9 -5
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +23 -27
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +13 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +2 -1
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +6 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/components/{decorate-Cz9-peTN.js → decorate-CzRe1eif.js} +9 -1
- package/dist/components/{with-translations-DRuOq3QK.js → defer-focus-DIPAUUJa.js} +57 -5
- package/dist/components/dev-checks-tdnaA2UV.js +2518 -0
- package/dist/components/{dist-BaLc58I_.js → dist-245LaK9m.js} +1 -1
- package/dist/components/{dist-DgjvHvsN.js → dist-4g23YHP0.js} +1 -1
- package/dist/components/{dist-YYLChwRq.js → dist-Bf823YyL.js} +1 -1
- package/dist/components/{dist-Bm3708s5.js → dist-CeMOOqgP.js} +13 -1
- package/dist/components/{dist-CJ9uLG0u.js → dist-DFjwTlJV.js} +1 -1
- package/dist/components/element-state-BnarBv0M.js +42 -0
- package/dist/components/forms/form/form.d.ts +1 -96
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +2 -1
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +3 -4
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +14 -29
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +3 -2
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +1 -67
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -16
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +26 -0
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.i18n.d.ts +12 -0
- package/dist/components/forms/validation-list/validation-list.i18n.d.ts.map +1 -0
- package/dist/components/forms/validation-list/validation-list.i18n.js +11 -0
- package/dist/components/forms/validation-list/validation-list.i18n.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.js +81 -8
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-DRpTWSIg.js → icon-BPNDyhu9.js} +18 -4
- package/dist/components/{icon-button-DUEmWlBD.js → icon-button-Dbo_SGor.js} +51 -29
- package/dist/components/icon-button.i18n-1_N-wN6x.js +10 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +5 -1
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +5 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +36 -13
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +4 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +16 -5
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +4 -4
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +2 -1
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +3 -3
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +5 -1
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +10 -5
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +147 -17
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts +16 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.js +33 -0
- package/dist/components/inputs/file-field/file-field.drop.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +11 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.js +16 -6
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +421 -75
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +235 -91
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts +2 -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 +282 -83
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +17 -0
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.js +26 -3
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
- 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 +2 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +5 -4
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +2 -1
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +2 -1
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -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 +2 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +0 -1
- 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 +5 -6
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +5 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +0 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +7 -11
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +32 -10
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +115 -35
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +22 -13
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.template.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.template.js +12 -4
- package/dist/components/inputs/slider/slider.template.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +5 -1
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +5 -4
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +5 -1
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.cursor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.cursor.js +1 -11
- package/dist/components/inputs/text-editor/text-editor.cursor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +127 -11
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +3 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +5 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +14 -8
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +3 -0
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +9 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +9 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +61 -147
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +187 -2
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +1 -5
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +9 -23
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +3 -3
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +2 -1
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +5 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +0 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +5 -23
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +0 -2
- 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 +5 -12
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +4 -0
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.d.ts +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +14 -1
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.js +1 -1
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/just-in-time-education.i18n-BgCd3s-c.js +395 -0
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +2 -1
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +0 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +2 -15
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.template.js +2 -2
- package/dist/components/layout/collection/collection.d.ts +4 -2
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +64 -32
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.js +1 -1
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +6 -3
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +17 -23
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +2 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +9 -12
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +2 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +13 -7
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +22 -8
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +2 -0
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +0 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +9 -28
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -4
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +7 -29
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +2 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +14 -6
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +26 -30
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +0 -2
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +9 -20
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.js +2 -1
- package/dist/components/layout/shell/shell.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +2 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +6 -6
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +9 -12
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- 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 +2 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +2 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +2 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +2 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/task-board/task-board-column.d.ts.map +1 -1
- package/dist/components/layout/task-board/task-board-column.js +2 -4
- package/dist/components/layout/task-board/task-board-column.js.map +1 -1
- package/dist/components/layout/task-board/task-board.d.ts +1 -1
- package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
- package/dist/components/layout/task-board/task-board.js +12 -7
- package/dist/components/layout/task-board/task-board.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +0 -1
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +4 -6
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/list-item.i18n-89uqlBMK.js +8 -0
- package/dist/components/list.i18n-CKqbhFQ_.js +13 -0
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +4 -2
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +4 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +1 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +3 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +0 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +5 -15
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +4 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +5 -4
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +5 -23
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.js +1 -1
- package/dist/components/lists-and-tables/list/list.js +54 -99
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +18 -16
- 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 +61 -88
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +3 -3
- 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 +17 -13
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +24 -13
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +58 -45
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.d.ts +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +7 -6
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +2 -1
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +0 -4
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -2
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +4 -0
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +17 -10
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js +9 -0
- package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.template.js +25 -19
- package/dist/components/navigation/menu-bar/menu-bar.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +12 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.d.ts +3 -3
- package/dist/components/navigation/pagination/pagination.i18n.js +3 -3
- package/dist/components/navigation/pagination/pagination.i18n.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -1
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +3 -3
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +6 -8
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +8 -15
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +0 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +6 -6
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +11 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +44 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/nl.generated-D-8UF1iR.js +62 -0
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +5 -4
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +3 -6
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +4 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +9 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- 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 +2 -1
- 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 -4
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +3 -15
- 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 +9 -6
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +3 -7
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +4 -5
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +2 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +1 -1
- 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 +8 -7
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +0 -7
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +2 -24
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/{visibility-mixin-C-K7ho5Q.js → visibility-mixin-CNCT26tu.js} +1 -7
- package/dist/css/rich-text.css +5 -0
- package/dist/nldd.min.js +1493 -997
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +44 -22
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +44 -22
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +32 -10
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +44 -22
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +44 -22
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +123 -35
- package/dist/utilities/carried-context.d.ts +14 -3
- package/dist/utilities/carried-context.d.ts.map +1 -1
- package/dist/utilities/carried-context.js +12 -5
- package/dist/utilities/carried-context.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.d.ts +0 -2
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.js +0 -14
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
- package/dist/utilities/custom-element.d.ts +7 -0
- package/dist/utilities/custom-element.d.ts.map +1 -0
- package/dist/utilities/custom-element.js +7 -0
- package/dist/utilities/custom-element.js.map +1 -0
- package/dist/utilities/defer-focus.d.ts +24 -0
- package/dist/utilities/defer-focus.d.ts.map +1 -0
- package/dist/utilities/defer-focus.js +33 -0
- package/dist/utilities/defer-focus.js.map +1 -0
- package/dist/utilities/dev-checks-trigger.d.ts +2 -0
- package/dist/utilities/dev-checks-trigger.d.ts.map +1 -0
- package/dist/utilities/dev-checks-trigger.js +10 -0
- package/dist/utilities/dev-checks-trigger.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +40 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -0
- package/dist/utilities/dev-checks.js +115 -0
- package/dist/utilities/dev-checks.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts +3 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -0
- package/dist/utilities/dev-rules.generated.js +2487 -0
- package/dist/utilities/dev-rules.generated.js.map +1 -0
- package/dist/utilities/element-state.d.ts +19 -0
- package/dist/utilities/element-state.d.ts.map +1 -0
- package/dist/utilities/element-state.js +49 -0
- package/dist/utilities/element-state.js.map +1 -0
- package/dist/utilities/file-drag-and-drop.d.ts +18 -0
- package/dist/utilities/file-drag-and-drop.d.ts.map +1 -0
- package/dist/utilities/file-drag-and-drop.js +31 -0
- package/dist/utilities/file-drag-and-drop.js.map +1 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +2 -1
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/link-hint.d.ts +2 -21
- package/dist/utilities/link-hint.d.ts.map +1 -1
- package/dist/utilities/link-hint.js +22 -8
- package/dist/utilities/link-hint.js.map +1 -1
- package/dist/utilities/list-items.d.ts +10 -0
- package/dist/utilities/list-items.d.ts.map +1 -0
- package/dist/utilities/list-items.js +21 -0
- package/dist/utilities/list-items.js.map +1 -0
- package/dist/utilities/popover-target.d.ts +14 -0
- package/dist/utilities/popover-target.d.ts.map +1 -0
- package/dist/utilities/popover-target.js +21 -0
- package/dist/utilities/popover-target.js.map +1 -0
- package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
- package/dist/utilities/popup-anchor-controller.js +6 -1
- package/dist/utilities/popup-anchor-controller.js.map +1 -1
- package/dist/utilities/render-marked.d.ts +2 -0
- package/dist/utilities/render-marked.d.ts.map +1 -1
- package/dist/utilities/render-marked.js +4 -0
- package/dist/utilities/render-marked.js.map +1 -1
- package/dist/utilities/row-header-mixin.d.ts +31 -0
- package/dist/utilities/row-header-mixin.d.ts.map +1 -0
- package/dist/utilities/row-header-mixin.js +44 -0
- package/dist/utilities/row-header-mixin.js.map +1 -0
- package/dist/utilities/spacing-scale.d.ts +4 -5
- package/dist/utilities/spacing-scale.d.ts.map +1 -1
- package/dist/utilities/spacing-scale.js +4 -23
- package/dist/utilities/spacing-scale.js.map +1 -1
- package/dist/utilities/translations.d.ts.map +1 -1
- package/dist/utilities/translations.js +3 -15
- package/dist/utilities/translations.js.map +1 -1
- package/dist/utilities/visibility-mixin.d.ts +7 -0
- package/dist/utilities/visibility-mixin.d.ts.map +1 -1
- package/dist/utilities/visibility-mixin.js +0 -10
- package/dist/utilities/visibility-mixin.js.map +1 -1
- package/lint/cli.js +18 -0
- package/lint/data.generated.json +1 -0
- package/lint/engine.js +191 -0
- package/lint/fix.js +293 -0
- package/lint/format.js +133 -0
- package/lint/frontends.js +483 -0
- package/lint/linter.js +262 -0
- package/lint/main.js +279 -0
- package/lint/project.js +143 -0
- package/lint/rule-data.js +83 -0
- package/lint/rule-index.js +20 -0
- package/lint/rule.schema.json +65 -0
- package/lint/tree.js +131 -0
- package/package.json +22 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable lit-a11y/click-events-have-key-events -- the icons step the
|
|
2
|
+
value on a click; the keyboard does that on the thumb with Page Up and Down. */
|
|
1
3
|
import { html, nothing } from 'lit';
|
|
2
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
5
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
@@ -15,6 +17,7 @@ function thumbInput(component, thumb, value) {
|
|
|
15
17
|
aria-invalid=${component.invalid ? 'true' : nothing}
|
|
16
18
|
?disabled=${component.disabled}
|
|
17
19
|
@input=${(event) => component._handleInput(event, thumb)}
|
|
20
|
+
@keydown=${(event) => component._handleKeyDown(event, thumb)}
|
|
18
21
|
@change=${component._handleChange}
|
|
19
22
|
>
|
|
20
23
|
`;
|
|
@@ -59,9 +62,13 @@ export function sliderTemplate(component) {
|
|
|
59
62
|
const startOnTop = range && start === end && start > (component.min + component.max) / 2;
|
|
60
63
|
const tooltips = component.tooltipTiming !== 'never';
|
|
61
64
|
return html `
|
|
62
|
-
<div class="slider"
|
|
65
|
+
<div class="slider"
|
|
66
|
+
@pointerdown=${component._handlePointerDown}
|
|
67
|
+
>
|
|
63
68
|
${component.startIcon ? html `
|
|
64
|
-
<span class="slider__start-icon"
|
|
69
|
+
<span class="slider__start-icon"
|
|
70
|
+
@click=${range ? nothing : () => component._handleIconClick(-1)}
|
|
71
|
+
>
|
|
65
72
|
<nldd-icon icon=${component.startIcon}></nldd-icon>
|
|
66
73
|
</span>
|
|
67
74
|
` : nothing}
|
|
@@ -70,7 +77,6 @@ export function sliderTemplate(component) {
|
|
|
70
77
|
'--_slider-start': String(component._fraction(start)),
|
|
71
78
|
'--_slider-end': String(component._fraction(end)),
|
|
72
79
|
})}
|
|
73
|
-
@pointerdown=${component._handlePointerDown}
|
|
74
80
|
>
|
|
75
81
|
${component.histogram.length ? histogram(component, start, end) : nothing}
|
|
76
82
|
<span class="slider__track"></span>
|
|
@@ -89,7 +95,9 @@ export function sliderTemplate(component) {
|
|
|
89
95
|
`}
|
|
90
96
|
</div>
|
|
91
97
|
${component.endIcon ? html `
|
|
92
|
-
<span class="slider__end-icon"
|
|
98
|
+
<span class="slider__end-icon"
|
|
99
|
+
@click=${range ? nothing : () => component._handleIconClick(1)}
|
|
100
|
+
>
|
|
93
101
|
<nldd-icon icon=${component.endIcon}></nldd-icon>
|
|
94
102
|
</span>
|
|
95
103
|
` : nothing}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/slider/slider.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,4BAA4B,CAAC;AAEpC,SAAS,UAAU,CAAC,SAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"slider.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/slider/slider.template.ts"],"names":[],"mappings":"AAAA;kFACkF;AAClF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,4BAA4B,CAAC;AAEpC,SAAS,UAAU,CAAC,SAAqB,EAAE,KAAY,EAAE,KAAa;IACrE,OAAO,IAAI,CAAA;+CACmC,KAAK;;SAE3C,SAAS,CAAC,GAAG;SACb,SAAS,CAAC,GAAG;UACZ,SAAS,CAAC,IAAI;YACZ,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AAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/stepper/stepper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/stepper/stepper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAK7F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AAKtC,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;;AAE7C,qBACa,WAAY,SAAQ,gBAAuC;IAEvE,OAAgB,MAAM,0BAAiB;IAEvC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,OAAO,CAAC,aAAa,CAAK;IAG1B,KAAK,SAAK;IAGV,GAAG,SAAK;IAGR,GAAG,SAAY;IAGf,IAAI,SAAK;IAGT,QAAQ,UAAS;IAGjB,IAAI,EAAE,WAAW,CAAQ;IAGzB,IAAI,SAAM;IAEV;;;;OAIG;IAEH,eAAe,SAAM;IAErB,kFAAkF;IAElF,YAAY,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAM;IAGpD;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAKpB,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAQ/D,EAAE,CAAC,GAAG,EAAE,MAAM,uBAAuB,GAAG,MAAM;IAM9C,UAAU,IAAI,IAAI;IASlB,UAAU,IAAI,IAAI;IASlB,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IA6B7C,OAAO,CAAC,eAAe;IASvB;;;;;OAKG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C,gFAAgF;IACvE,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,cAAc,EAAE,WAAW,CAAC;KAC5B;CACD"}
|
|
@@ -24,7 +24,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
24
24
|
* @fires change - When the value changes; detail: { value: number }
|
|
25
25
|
*/
|
|
26
26
|
import { LitElement } from 'lit';
|
|
27
|
-
import {
|
|
27
|
+
import { property } from 'lit/decorators.js';
|
|
28
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
28
29
|
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
29
30
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
30
31
|
import { stepperStyles } from './stepper.styles.js';
|
|
@@ -34,6 +35,7 @@ import './../../actions/icon-button/icon-button.js';
|
|
|
34
35
|
import './../../content/icon/icon.js';
|
|
35
36
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
36
37
|
import { translate } from '../../../utilities/translations.js';
|
|
38
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
37
39
|
let NLDDStepper = class NLDDStepper extends DescribedBy(FormAssociated(LitElement)) {
|
|
38
40
|
constructor() {
|
|
39
41
|
super(...arguments);
|
|
@@ -146,6 +148,8 @@ let NLDDStepper = class NLDDStepper extends DescribedBy(FormAssociated(LitElemen
|
|
|
146
148
|
* disabled, because the spinbutton drops its tabindex then.
|
|
147
149
|
*/
|
|
148
150
|
focus(options) {
|
|
151
|
+
if (deferFocus(this, options))
|
|
152
|
+
return;
|
|
149
153
|
this.shadowRoot?.querySelector('.stepper')?.focus(options);
|
|
150
154
|
}
|
|
151
155
|
/** The spinbutton is the control; the buttons beside it are shortcuts to it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.js","sourceRoot":"","sources":["../../../../src/components/inputs/stepper/stepper.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"stepper.js","sourceRoot":"","sources":["../../../../src/components/inputs/stepper/stepper.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAKxD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAAjE;;QASE,kBAAa,GAAG,CAAC,CAA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;6CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAc,IAAI,CAAC,EAAE,CAAC;yCACpD;AAGzB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;yCACpD;AAQV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;oDACrC;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACyB;AAapD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC3B;AAvDJ,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAgKvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/switch/switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/switch/switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAO7F,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;;AAErC,qBACa,UAAW,SAAQ,eAAuC;IAEtE,OAAgB,MAAM,0BAAgB;IAEtC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAI1B,IAAI,SAAM;IAGV,OAAO,UAAS;IAGhB,QAAQ,UAAS;IACjB;;;4BAGwB;IAExB,KAAK,UAAS;IAId,IAAI,EAAE,UAAU,CAAQ;IAExB,iEAAiE;IAEjE,KAAK,EAAE,EAAE,GAAG,SAAS,CAAM;IAG3B,eAAe,SAAM;IAGrB,KAAK,SAAQ;IAEb,OAAO,CAAC,eAAe,CAAS;IAIhC,QAAQ,UAAS;IAGjB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEP,YAAY,IAAI,IAAI;IAKpB,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAMtE,OAAO,CAAC,cAAc,CAAuB;IAC7C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAM;IAE7C,kBAAkB,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI;IAMzC,kBAAkB,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI;IAWzC,gBAAgB,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI;IAkBvC,oBAAoB,IAAI,IAAI;IAK5B,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IASrB,MAAM,IAAI,IAAI;IAWd,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAYpC;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAKnC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -32,12 +32,14 @@ var NLDDSwitch_1;
|
|
|
32
32
|
* @fires change - When the switch state changes; detail: { checked: boolean, value: string }
|
|
33
33
|
*/
|
|
34
34
|
import { LitElement } from 'lit';
|
|
35
|
-
import {
|
|
35
|
+
import { property } from 'lit/decorators.js';
|
|
36
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
36
37
|
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
37
38
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
38
39
|
import { switchStyles } from './switch.styles.js';
|
|
39
40
|
import { switchTemplate } from './switch.template.js';
|
|
40
41
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
42
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
41
43
|
let NLDDSwitch = NLDDSwitch_1 = class NLDDSwitch extends DescribedBy(FormAssociated(LitElement)) {
|
|
42
44
|
constructor() {
|
|
43
45
|
super(...arguments);
|
|
@@ -71,9 +73,6 @@ let NLDDSwitch = NLDDSwitch_1 = class NLDDSwitch extends DescribedBy(FormAssocia
|
|
|
71
73
|
this._swiped = false;
|
|
72
74
|
}
|
|
73
75
|
firstUpdated() {
|
|
74
|
-
if (import.meta.env?.DEV && !this.accessibleLabel) {
|
|
75
|
-
console.warn('<nldd-switch>: No accessible-label provided. Use nldd-switch-field for labeled usage, or provide an accessible-label attribute for screen reader accessibility.');
|
|
76
|
-
}
|
|
77
76
|
this._initialChecked = this.checked;
|
|
78
77
|
}
|
|
79
78
|
formValue() {
|
|
@@ -159,6 +158,8 @@ let NLDDSwitch = NLDDSwitch_1 = class NLDDSwitch extends DescribedBy(FormAssocia
|
|
|
159
158
|
* call `switchEl.focus()` without reaching into shadow DOM.
|
|
160
159
|
*/
|
|
161
160
|
focus(options) {
|
|
161
|
+
if (deferFocus(this, options))
|
|
162
|
+
return;
|
|
162
163
|
this.shadowRoot?.querySelector('.switch__input')?.focus(options);
|
|
163
164
|
}
|
|
164
165
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/components/inputs/switch/switch.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EA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AAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;yCACnC;AAG3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;mDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACd;AAMb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC1B;AAajB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAC3B;AAvDJ,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAqKtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/switch-field/switch-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;
|
|
1
|
+
{"version":3,"file":"switch-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/switch-field/switch-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;AAUjC,qBACa,eAAgB,SAAQ,oBAAuB;IAC3D,OAAgB,MAAM,0BAAqB;IAE3C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAGjB,KAAK,SAAQ;IAGb,IAAI,SAAM;IAEV,+EAA+E;IAE/E,KAAK,EAAE,EAAE,GAAG,SAAS,CAAM;IAG3B,KAAK,SAAM;IAIX,QAAQ,UAAS;IAGjB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAET,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAOjC,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IASpC;;;;OAIG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C,8EAA8E;IACrE,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -23,10 +23,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
*/
|
|
24
24
|
import { LitElement } from 'lit';
|
|
25
25
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
26
|
-
import {
|
|
26
|
+
import { property } from 'lit/decorators.js';
|
|
27
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
27
28
|
import { switchFieldStyles } from './switch-field.styles.js';
|
|
28
29
|
import { switchFieldTemplate } from './switch-field.template.js';
|
|
29
30
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
31
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
30
32
|
let NLDDSwitchField = class NLDDSwitchField extends DescribedBy(LitElement) {
|
|
31
33
|
constructor() {
|
|
32
34
|
super(...arguments);
|
|
@@ -71,6 +73,8 @@ let NLDDSwitchField = class NLDDSwitchField extends DescribedBy(LitElement) {
|
|
|
71
73
|
* reaching into shadow DOM.
|
|
72
74
|
*/
|
|
73
75
|
focus(options) {
|
|
76
|
+
if (deferFocus(this, options))
|
|
77
|
+
return;
|
|
74
78
|
this.shadowRoot?.querySelector('nldd-switch')?.focus(options);
|
|
75
79
|
}
|
|
76
80
|
/** The switch it renders knows which element inside itself is the control. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/switch-field/switch-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;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M,EAAE,CAAC;6CACjB;AAIV;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;8CACnC;AAG3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAChB;AAIX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAajB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AAzCJ,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CA6E3B"}
|
|
@@ -5,7 +5,7 @@ import { treeAdvanced } from './text-editor.syntax.js';
|
|
|
5
5
|
export const codeCopyLabels = Facet.define({
|
|
6
6
|
combine: (values) => values[0] ?? { copy: () => 'Kopieer', success: () => 'Gekopieerd', failure: () => 'Kopiëren mislukt' },
|
|
7
7
|
});
|
|
8
|
-
const
|
|
8
|
+
const COPY_FEEDBACK_DURATION_MS = 2000;
|
|
9
9
|
function clipboardAvailable() {
|
|
10
10
|
return typeof window !== 'undefined' && window.isSecureContext && typeof navigator.clipboard?.writeText === 'function';
|
|
11
11
|
}
|
|
@@ -77,7 +77,7 @@ class CopyButton extends WidgetType {
|
|
|
77
77
|
try {
|
|
78
78
|
await navigator.clipboard.writeText(codeOf(view.state, view.state.doc.lineAt(view.posAtDOM(button)).from));
|
|
79
79
|
setState(button, labels(), 'success');
|
|
80
|
-
feedbackTimers.set(wrap, setTimeout(() => setState(button, labels(), 'idle'),
|
|
80
|
+
feedbackTimers.set(wrap, setTimeout(() => setState(button, labels(), 'idle'), COPY_FEEDBACK_DURATION_MS));
|
|
81
81
|
}
|
|
82
82
|
catch {
|
|
83
83
|
// Stays until the reader moves on, as in nldd-code-viewer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.code-copy.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.code-copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,EAAE,UAAU,EAA8B,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAqBvD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAiC;IAC1E,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE;CAC3H,CAAC,CAAC;AAEH,MAAM,
|
|
1
|
+
{"version":3,"file":"text-editor.code-copy.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.code-copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,EAAE,UAAU,EAA8B,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAqBvD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAiC;IAC1E,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,GAA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D;AAC5D,MAAM,UAAU,QAAQ,CAAC,MAAsB;IAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAgB;QAC9C,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,YAAY,IAAI,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACnI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;KAC9C,CAAC,CAAC;IACH,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.cursor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAwE,MAAM,kBAAkB,CAAC;AAgEpH;gFACgF;AAChF,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAahF;
|
|
1
|
+
{"version":3,"file":"text-editor.cursor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAwE,MAAM,kBAAkB,CAAC;AAgEpH;gFACgF;AAChF,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAahF;AAmID,eAAO,MAAM,YAAY,EAAE,SAAwE,CAAC"}
|
|
@@ -206,15 +206,5 @@ const cursorLayer = layer({
|
|
|
206
206
|
dom.style.animationDuration = `${getDrawSelectionConfig(view.state).cursorBlinkRate}ms`;
|
|
207
207
|
},
|
|
208
208
|
});
|
|
209
|
-
|
|
210
|
-
* layer takes over the drawing and that one is hidden. Its selection layer,
|
|
211
|
-
* blink keyframes and native-caret suppression stay in force. The rules below
|
|
212
|
-
* mirror what CodeMirror's theme gives its own cursor layer. */
|
|
213
|
-
const theme = EditorView.theme({
|
|
214
|
-
'.cm-cursorLayer': { display: 'none' },
|
|
215
|
-
'.cm-nldd-cursorLayer': { pointerEvents: 'none' },
|
|
216
|
-
'&.cm-focused > .cm-scroller > .cm-nldd-cursorLayer': { animation: 'steps(1) cm-blink 1.2s infinite' },
|
|
217
|
-
'&.cm-focused > .cm-scroller > .cm-nldd-cursorLayer .cm-cursor': { display: 'block' },
|
|
218
|
-
});
|
|
219
|
-
export const stableCursor = [cursorLayer, pointerTracker, stepOverKeymap, typePastBadge, theme];
|
|
209
|
+
export const stableCursor = [cursorLayer, pointerTracker, stepOverKeymap, typePastBadge];
|
|
220
210
|
//# sourceMappingURL=text-editor.cursor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.cursor.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAkB,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,EAAE,KAAK,EAAgB,MAAM,kBAAkB,CAAC;AACpH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,wBAAwB,C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IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAkB1D;;;;;;;;;;;0CAWsC;IACtC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI;IA0BjD,8EAA8E;IAC9E,QAAQ,IAAI,eAAe;IAW3B;;;;;;;;;;;;oCAYgC;IAChC,YAAY,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAA;KAAE;IAqBnG;;6EAEyE;IACzE,cAAc,IAAI,UAAU,EAAE;IAY9B;;;iCAG6B;IAC7B,OAAO,CAAC,UAAU,CAAgC;IAElD,OAAO,CAAC,UAAU;IAoBlB,OAAO,CAAC,eAAe;IAIvB;;6BAEyB;IACzB,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,qBAAqB,CAiB3B;IAEF;;;iEAG6D;IAC7D,OAAO,CAAC,uBAAuB,CAW7B;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.hidden-syntax.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.hidden-syntax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AACvH,OAAO,EAAQ,UAAU,EAAgC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-editor.hidden-syntax.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.hidden-syntax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AACvH,OAAO,EAAQ,UAAU,EAAgC,MAAM,mBAAmB,CAAC;AA6ZnF;2DAC2D;AAC3D,wBAAgB,YAAY,0EAE3B"}
|
|
@@ -3,6 +3,7 @@ import { Prec, StateField } from '@codemirror/state';
|
|
|
3
3
|
import { syntaxTree } from '@codemirror/language';
|
|
4
4
|
import { isMentionLink } from './text-editor.mention.js';
|
|
5
5
|
import { forEachLineStart, treeAdvanced } from './text-editor.syntax.js';
|
|
6
|
+
import { prefixLength } from './text-editor.markdown.js';
|
|
6
7
|
import { taskBox } from './text-editor.tasks.js';
|
|
7
8
|
/* syntax="hidden": the formatting marks of bold, italic, strikethrough, inline
|
|
8
9
|
* code, links and headings are hidden, a bullet reads as a dot, a quote as a
|
|
@@ -31,11 +32,13 @@ const bullet = Decoration.mark({ class: 'cm-md-bullet' });
|
|
|
31
32
|
const TASK_PREFIX_RE = /^(\s*)[-*+]\s+\[[ xX]\](\s+)/;
|
|
32
33
|
/** The width of the box in mono advances; matches .cm-md-task-box. */
|
|
33
34
|
const TASK_BOX_WIDTH = 2.5;
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
// A hanging indent for a prefix that hides part of itself, a task's bullet or
|
|
36
|
+
// the spare spaces of a quote. !important: CodeMirror joins this style with the
|
|
37
|
+
// full-prefix indent of the line into one style attribute, where that one comes
|
|
38
|
+
// last and would win.
|
|
39
|
+
const prefixIndentCache = {};
|
|
40
|
+
function prefixIndent(length) {
|
|
41
|
+
return (prefixIndentCache[length] ?? (prefixIndentCache[length] = Decoration.line({
|
|
39
42
|
attributes: {
|
|
40
43
|
style: `text-indent:calc(${length} * var(--_text-editor-marker-advance) * -1) !important;padding-left:calc(${length} * var(--_text-editor-marker-advance)) !important`,
|
|
41
44
|
},
|
|
@@ -44,11 +47,26 @@ function taskIndent(length) {
|
|
|
44
47
|
// The number of a numbered list is content, so it takes the color of the text
|
|
45
48
|
// rather than the dimmed color of a mark. Only the color: the mono width stays.
|
|
46
49
|
const ordinal = Decoration.mark({ class: 'cm-md-ordinal' });
|
|
47
|
-
// A quote reads as a line on the left
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
50
|
+
// A quote reads as a line on the left, one per level, each where its `>` is,
|
|
51
|
+
// as nldd-rich-text draws a border per nested blockquote. The `>` keeps its
|
|
52
|
+
// width, and so does one space after it; spaces beyond that mean nothing in
|
|
53
|
+
// the result ("> > " is "> > "), so they are hidden. The whole quote is the
|
|
54
|
+
// construct: the caret anywhere in it shows every `>` and space, and drops the
|
|
55
|
+
// lines.
|
|
56
|
+
const quoteLineCache = {};
|
|
57
|
+
function quoteLine(columns) {
|
|
58
|
+
const key = columns.join(',');
|
|
59
|
+
return (quoteLineCache[key] ?? (quoteLineCache[key] = Decoration.line({
|
|
60
|
+
class: 'cm-md-quote-line',
|
|
61
|
+
attributes: {
|
|
62
|
+
style: `background-image:${columns.map(() => 'var(--_text-editor-quote-rule)').join(',')};background-position:${columns.map((column) => `calc(${column} * var(--_text-editor-marker-advance)) 0`).join(',')}`,
|
|
63
|
+
},
|
|
64
|
+
})));
|
|
65
|
+
}
|
|
51
66
|
const quoteMark = Decoration.mark({ class: 'cm-md-quote-mark-hidden' });
|
|
67
|
+
// A `>` with no space after it gets the room of one, since ">>" is "> >" in the
|
|
68
|
+
// result, so every level is a step of the same width.
|
|
69
|
+
const quoteGap = Decoration.mark({ class: 'cm-md-quote-gap' });
|
|
52
70
|
// With its backticks hidden, inline code gets room inside its tint as padding on
|
|
53
71
|
// the text. Not as a widget: Safari measured the selection wrong beside one.
|
|
54
72
|
const bareCode = Decoration.mark({ class: 'cm-md-code-bare' });
|
|
@@ -74,6 +92,70 @@ function outermostQuote(node) {
|
|
|
74
92
|
outer = up;
|
|
75
93
|
return outer;
|
|
76
94
|
}
|
|
95
|
+
/** The width of one quote level in mono advances, of "> ". */
|
|
96
|
+
const QUOTE_STEP = 2;
|
|
97
|
+
// A lazy line has fewer `>` than its level, so its text is pushed in by the
|
|
98
|
+
// levels it misses, as if their `> ` were there. !important for the same
|
|
99
|
+
// reason as prefixIndent.
|
|
100
|
+
const lazyIndentCache = {};
|
|
101
|
+
function lazyIndent(prefix, extra) {
|
|
102
|
+
var _a;
|
|
103
|
+
return (lazyIndentCache[_a = `${prefix},${extra}`] ?? (lazyIndentCache[_a] = Decoration.line({
|
|
104
|
+
attributes: {
|
|
105
|
+
style: `text-indent:calc(${prefix} * var(--_text-editor-marker-advance) * -1) !important;padding-left:calc(${prefix + extra} * var(--_text-editor-marker-advance)) !important`,
|
|
106
|
+
},
|
|
107
|
+
})));
|
|
108
|
+
}
|
|
109
|
+
/** How many quotes each line of a quote lies in, per line start. */
|
|
110
|
+
function quoteDepths(state, quote) {
|
|
111
|
+
const depths = new Map();
|
|
112
|
+
syntaxTree(state).iterate({
|
|
113
|
+
from: quote.from,
|
|
114
|
+
to: quote.to,
|
|
115
|
+
enter: (node) => {
|
|
116
|
+
if (node.name !== 'Blockquote')
|
|
117
|
+
return;
|
|
118
|
+
forEachLineStart(state, node.from, node.to, (lineFrom) => depths.set(lineFrom, (depths.get(lineFrom) ?? 0) + 1));
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
return depths;
|
|
122
|
+
}
|
|
123
|
+
/** The start of the last line of a quote with more than its marks on it. */
|
|
124
|
+
function lastLineWithText(state, quote) {
|
|
125
|
+
for (let line = state.doc.lineAt(quote.to);; line = state.doc.line(line.number - 1)) {
|
|
126
|
+
if (/[^\s>]/.test(line.text) || line.from <= quote.from)
|
|
127
|
+
return line.from;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/** The spaces after each `>` beyond the first, as [from, to) columns: 2 to 4
|
|
131
|
+
* spaces are padding the result ignores, while 5 or more start an indented
|
|
132
|
+
* code block in the quote, which keeps them. */
|
|
133
|
+
function spareSpaces(text, marks) {
|
|
134
|
+
const spare = [];
|
|
135
|
+
for (const mark of marks) {
|
|
136
|
+
const run = /^[ ]*/.exec(text.slice(mark + 1))[0].length;
|
|
137
|
+
if (run >= 2 && run <= 4)
|
|
138
|
+
spare.push([mark + 2, mark + 1 + run]);
|
|
139
|
+
}
|
|
140
|
+
return spare;
|
|
141
|
+
}
|
|
142
|
+
/** The column of every `>` in a quote, per line start. */
|
|
143
|
+
function quoteColumns(state, quote) {
|
|
144
|
+
const columns = new Map();
|
|
145
|
+
syntaxTree(state).iterate({
|
|
146
|
+
from: quote.from,
|
|
147
|
+
to: quote.to,
|
|
148
|
+
enter: (node) => {
|
|
149
|
+
if (node.name !== 'QuoteMark')
|
|
150
|
+
return;
|
|
151
|
+
const line = state.doc.lineAt(node.from);
|
|
152
|
+
const list = columns.get(line.from) ?? [];
|
|
153
|
+
list.push(node.from - line.from);
|
|
154
|
+
columns.set(line.from, list);
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
return columns;
|
|
158
|
+
}
|
|
77
159
|
function revealsAnything(state) {
|
|
78
160
|
return !state.readOnly && state.facet(EditorView.editable);
|
|
79
161
|
}
|
|
@@ -172,7 +254,41 @@ function buildHidden(view) {
|
|
|
172
254
|
const outer = outermostQuote(node.node);
|
|
173
255
|
if (outer !== node.node || revealed(outer.from, outer.to))
|
|
174
256
|
return;
|
|
175
|
-
|
|
257
|
+
const columns = quoteColumns(state, outer);
|
|
258
|
+
const depths = quoteDepths(state, outer);
|
|
259
|
+
// The lines go as deep as the parser puts a line, which is not always
|
|
260
|
+
// its number of `>`: a line with fewer, or none, right under a
|
|
261
|
+
// paragraph goes on in that paragraph (a lazy line), as it will in
|
|
262
|
+
// the result. Empty lines at the end show nothing there, so no lines.
|
|
263
|
+
const lastText = lastLineWithText(state, outer);
|
|
264
|
+
let last = [0];
|
|
265
|
+
forEachLineStart(state, outer.from, outer.to, (lineFrom) => {
|
|
266
|
+
if (lineFrom > lastText)
|
|
267
|
+
return;
|
|
268
|
+
const line = state.doc.lineAt(lineFrom);
|
|
269
|
+
const marks = columns.get(lineFrom) ?? [];
|
|
270
|
+
const spare = spareSpaces(line.text, marks);
|
|
271
|
+
const hidden = spare.reduce((sum, [from, to]) => sum + to - from, 0);
|
|
272
|
+
for (const [from, to] of spare)
|
|
273
|
+
ranges.push(hideMark.range(lineFrom + from, lineFrom + to));
|
|
274
|
+
const tight = marks.filter((column) => /[^ \t]/.test(line.text.charAt(column + 1)));
|
|
275
|
+
for (const column of tight)
|
|
276
|
+
ranges.push(quoteGap.range(lineFrom + column, lineFrom + column + 1));
|
|
277
|
+
const own = marks.map((column) => column - spare.filter(([from]) => from < column).reduce((sum, [from, to]) => sum + to - from, 0) + tight.filter((mark) => mark < column).length);
|
|
278
|
+
const depth = Math.max(1, depths.get(lineFrom) ?? 0);
|
|
279
|
+
const prefix = prefixLength(line.text) - hidden + tight.length;
|
|
280
|
+
// A line without `>` lines up under the levels of the line above it.
|
|
281
|
+
const rules = (own.length ? own : last).slice(0, depth);
|
|
282
|
+
while (rules.length < depth)
|
|
283
|
+
rules.push(rules.length ? rules[rules.length - 1] + QUOTE_STEP : 0);
|
|
284
|
+
const missing = own.length ? (depth - own.length) * QUOTE_STEP : rules[rules.length - 1] + QUOTE_STEP;
|
|
285
|
+
if (missing > 0)
|
|
286
|
+
ranges.push(lazyIndent(prefix, missing).range(lineFrom));
|
|
287
|
+
else if (hidden || tight.length)
|
|
288
|
+
ranges.push(prefixIndent(prefix).range(lineFrom));
|
|
289
|
+
ranges.push(quoteLine(rules).range(lineFrom));
|
|
290
|
+
last = rules;
|
|
291
|
+
});
|
|
176
292
|
return;
|
|
177
293
|
}
|
|
178
294
|
if (!parent)
|
|
@@ -194,7 +310,7 @@ function buildHidden(view) {
|
|
|
194
310
|
const task = TASK_PREFIX_RE.exec(line.text);
|
|
195
311
|
const marker = task && node.node.parent?.getChild('Task')?.getChild('TaskMarker');
|
|
196
312
|
if (task && marker) {
|
|
197
|
-
ranges.push(
|
|
313
|
+
ranges.push(prefixIndent(task[1].length + TASK_BOX_WIDTH + task[2].length).range(line.from), hideMark.range(node.from, marker.from), taskBox(state, /x/i.test(state.sliceDoc(marker.from, marker.to))).range(marker.from, marker.to));
|
|
198
314
|
return;
|
|
199
315
|
}
|
|
200
316
|
ranges.push(bullet.range(node.from, node.to));
|