@nldd/design-system 0.11.0 → 0.13.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/custom-elements.json +2726 -617
- package/dist/components/actions/button-group/button-group.d.ts +4 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +4 -3
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +6 -6
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +3 -0
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/components.js +21704 -19266
- package/dist/components/content/avatar/avatar.d.ts +2 -1
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +12 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +30 -2
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.i18n.js +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +96 -7
- package/dist/components/content/avatar-group/avatar-group.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 +35 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts +1 -0
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +52 -29
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +14 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts +40 -0
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.diff.js +261 -0
- package/dist/components/content/code-viewer/code-viewer.diff.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.d.ts +5 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.i18n.js +9 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +98 -6
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +180 -14
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +5 -4
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +32 -4
- 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 +19 -0
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +19 -4
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +10 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +10 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +2 -0
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{dist-Bo5Jeyfn.js → dist-B5E3q-ea.js} +2 -1
- package/dist/components/{dist-DbNhCpS5.js → dist-BFw_yEMS.js} +2 -1
- package/dist/components/{dist-DnZmcpbQ.js → dist-BNLAXAyO.js} +2 -1
- package/dist/components/{dist-DkqAbJH8.js → dist-BOVSVPSz.js} +1 -1
- package/dist/components/{dist-Ch3gNAuT.js → dist-BPB3rWnd.js} +2 -1
- package/dist/components/{dist-Bud_7w5g.js → dist-BWlUmyq3.js} +34 -2869
- package/dist/components/dist-CC8oiVtm.js +366 -0
- package/dist/components/dist-COKR0tYU.js +2860 -0
- package/dist/components/{dist-CaxHkqR2.js → dist-Co-tsc9S.js} +4 -3
- package/dist/components/{dist-iC2RTM0V.js → dist-D_9ZyZ5v.js} +3 -2
- package/dist/components/{dist-BB5mlo7D.js → dist-Dn9pjiud.js} +3 -2
- package/dist/components/{dist-B2QcygzG.js → dist-Dz28se9B.js} +2 -1
- package/dist/components/{dist-CA0yDFIt.js → dist-IPm8ilWf.js} +3 -2
- package/dist/components/{icon-zNX9A6d3.js → icon-BJHKWhY5.js} +39 -8
- package/dist/components/{icon-button-Cntrg4_E.js → icon-button-DhBIq6lN.js} +75 -2
- package/dist/components/inputs/code-editor/code-editor.d.ts +4 -54
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +22 -262
- 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 +43 -6
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.js +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +86 -10
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts +34 -0
- package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.drop.js +176 -0
- package/dist/components/inputs/file-field/file-field.drop.js.map +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +20 -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 +20 -1
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +283 -15
- 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 +245 -10
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +167 -28
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +22 -0
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.truncate.js +62 -0
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +9 -7
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +16 -0
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.clipboard.js +50 -0
- package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts +10 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +141 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +31 -58
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +17 -64
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.drag.js +2 -1
- package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +3 -0
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js +55 -0
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts +6 -0
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +305 -0
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +5 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +7 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +126 -315
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.keymap.d.ts +6 -0
- package/dist/components/inputs/text-editor/text-editor.keymap.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.keymap.js +38 -0
- package/dist/components/inputs/text-editor/text-editor.keymap.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +11 -9
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +1 -17
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +32 -188
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts +52 -0
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.mention.js +186 -0
- package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +0 -16
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +1 -41
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.d.ts +13 -0
- package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.selection.js +72 -0
- package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.spellcheck.js +4 -6
- package/dist/components/inputs/text-editor/text-editor.spellcheck.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 +301 -60
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.syntax.d.ts +22 -0
- package/dist/components/inputs/text-editor/text-editor.syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.syntax.js +44 -0
- package/dist/components/inputs/text-editor/text-editor.syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts +17 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.js +109 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +61 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +6 -0
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +16 -0
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +13 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- 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.js +5 -0
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +2 -0
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -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 +3 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -2
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +3 -2
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +9 -4
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +18 -0
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +14 -0
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/css/rich-text.css +61 -1
- package/dist/css/themes/donkergeel.css +12 -3
- package/dist/css/themes/geel.css +12 -3
- package/dist/css/themes.css +24 -6
- package/dist/css/variables.css +16 -10
- package/dist/nldd.min.js +2217 -1329
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +34 -4
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +29 -4
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +34 -4
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +29 -4
- 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 +29 -4
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +43 -39
- package/dist/utilities/carried-context.d.ts +20 -0
- package/dist/utilities/carried-context.d.ts.map +1 -0
- package/dist/utilities/carried-context.js +76 -0
- package/dist/utilities/carried-context.js.map +1 -0
- package/dist/utilities/codemirror/codemirror-input.d.ts +90 -0
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -0
- package/dist/utilities/codemirror/codemirror-input.js +250 -0
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -0
- package/dist/utilities/codemirror/languages.d.ts +5 -1
- package/dist/utilities/codemirror/languages.d.ts.map +1 -1
- package/dist/utilities/codemirror/languages.js +21 -1
- package/dist/utilities/codemirror/languages.js.map +1 -1
- package/dist/utilities/dismiss-from-title-bar.d.ts +1 -1
- package/dist/utilities/dismiss-from-title-bar.js +1 -1
- package/package.json +2 -1
|
@@ -4,105 +4,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* Nederlandse Digitale Dienst Code Editor Component (Lit + TypeScript)
|
|
9
|
-
*
|
|
10
|
-
* A monospace editor for code, YAML, JSON and other technical content, built
|
|
11
|
-
* on CodeMirror 6 (via NLDDCodeMirrorElement). Visually pairs with
|
|
12
|
-
* nldd-code-viewer for a matching read-only surface.
|
|
13
|
-
*
|
|
14
|
-
* Default `appearance="simple"` is a bare, flush editor (no frame, no focus ring)
|
|
15
|
-
* for use inside an nldd-form-field or a consumer composition that owns its own
|
|
16
|
-
* chrome and focus treatment; the caret is rendered as a prominent accent as
|
|
17
|
-
* the focus cue. `appearance="input-field"` adds the framed surface (border ring, tinted
|
|
18
|
-
* fill, inner padding, radius) and a focus ring for standalone use.
|
|
19
|
-
*
|
|
20
|
-
* The simple variant has no surrounding space of its own: let a layout
|
|
21
|
-
* container own the spacing and forward clicks with `focusFromPoint()` so
|
|
22
|
-
* clicking the padding still starts editing.
|
|
23
|
-
*
|
|
24
|
-
* Optional `language` enables lazy syntax highlighting; `line-numbers` adds a
|
|
25
|
-
* gutter (click a number to move the caret to that line).
|
|
26
|
-
*
|
|
27
|
-
* @element nldd-code-editor
|
|
28
|
-
*
|
|
29
|
-
* @attr {string} value - Editor content
|
|
30
|
-
* @attr {string} placeholder - Placeholder text shown while empty
|
|
31
|
-
* @attr {string} input-id - Sets the id on the editable element. Set automatically by nldd-form-field.
|
|
32
|
-
* @attr {boolean} disabled - Disabled state
|
|
33
|
-
* @attr {string} name - Field name for form submission
|
|
34
|
-
* @attr {boolean} readonly - Readonly state (focusable and selectable, not editable)
|
|
35
|
-
* @attr {boolean} required - Required state
|
|
36
|
-
* @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
|
|
37
|
-
* @attr {number} rows - Minimum visible rows (the floor in every resize mode). Default: 6.
|
|
38
|
-
* @attr {string} resize - 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)
|
|
39
|
-
* @attr {string} appearance - 'simple' (default, bare) | 'input-field' (framed surface)
|
|
40
|
-
* @attr {string} language - Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
|
|
41
|
-
* @attr {boolean} line-numbers - Show a line-number gutter
|
|
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.
|
|
44
|
-
*
|
|
45
|
-
* @fires input - When the content changes (detail: { value })
|
|
46
|
-
* @fires change - When the content is committed on blur (detail: { value })
|
|
47
|
-
*/
|
|
48
|
-
import { LitElement } from 'lit';
|
|
49
7
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
50
|
-
import { FormAssociated } from '../../../utilities/form-associated-mixin.js';
|
|
51
8
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
52
|
-
import { EditorView, keymap, drawSelection, lineNumbers as cmLineNumbers
|
|
53
|
-
import { Compartment
|
|
9
|
+
import { EditorView, keymap, drawSelection, lineNumbers as cmLineNumbers } from '@codemirror/view';
|
|
10
|
+
import { Compartment } from '@codemirror/state';
|
|
54
11
|
import { defaultKeymap, history, historyKeymap } from '@codemirror/commands';
|
|
55
|
-
import {
|
|
12
|
+
import { NLDDCodeMirrorInput } from '../../../utilities/codemirror/codemirror-input.js';
|
|
56
13
|
import { nlddCodeMirrorTheme } from '../../../utilities/codemirror/theme.js';
|
|
57
14
|
import { loadLanguage } from '../../../utilities/codemirror/languages.js';
|
|
58
15
|
import { codeEditorStyles } from './code-editor.styles.js';
|
|
59
16
|
import { codeEditorTemplate } from './code-editor.template.js';
|
|
60
|
-
|
|
61
|
-
let NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NLDDCodeMirrorElement)) {
|
|
17
|
+
let NLDDCodeEditor = class NLDDCodeEditor extends NLDDCodeMirrorInput {
|
|
62
18
|
constructor() {
|
|
63
19
|
super(...arguments);
|
|
64
|
-
this._initialValue = '';
|
|
65
|
-
this._valueAtFocus = '';
|
|
66
|
-
this._accessibleLabelWarned = false;
|
|
67
|
-
this.value = '';
|
|
68
|
-
this.inputId = '';
|
|
69
|
-
this.placeholder = '';
|
|
70
|
-
this.disabled = false;
|
|
71
|
-
this.name = '';
|
|
72
|
-
this.readonly = false;
|
|
73
|
-
this.required = false;
|
|
74
20
|
this.wrap = false;
|
|
75
|
-
this.rows = 6;
|
|
76
21
|
this.resize = 'auto';
|
|
77
22
|
this.appearance = 'simple';
|
|
78
23
|
this.language = '';
|
|
79
24
|
this.lineNumbers = false;
|
|
80
|
-
this.
|
|
25
|
+
this.rowsProperty = '--_code-editor-rows';
|
|
81
26
|
// Compartments let us reconfigure single concerns without rebuilding state.
|
|
82
|
-
this._editableCompartment = new Compartment();
|
|
83
27
|
this._wrapCompartment = new Compartment();
|
|
84
28
|
this._lineNumbersCompartment = new Compartment();
|
|
85
|
-
this._placeholderCompartment = new Compartment();
|
|
86
|
-
this._attrsCompartment = new Compartment();
|
|
87
29
|
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;
|
|
98
|
-
this._onScrollerPointerDown = (event) => {
|
|
99
|
-
// Only the scroller's own padding — not the content/gutter inside it.
|
|
100
|
-
// pointerdown covers mouse, touch and pen in one event.
|
|
101
|
-
if (event.target !== this.view?.scrollDOM)
|
|
102
|
-
return;
|
|
103
|
-
this.focusFromPoint(event.clientX, event.clientY);
|
|
104
|
-
event.preventDefault();
|
|
105
|
-
};
|
|
106
30
|
}
|
|
107
31
|
getEditorParent() {
|
|
108
32
|
return this._container;
|
|
@@ -113,36 +37,12 @@ let NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NLD
|
|
|
113
37
|
history(),
|
|
114
38
|
drawSelection(),
|
|
115
39
|
keymap.of([...defaultKeymap, ...historyKeymap]),
|
|
116
|
-
this.
|
|
40
|
+
...this.inputExtensions(),
|
|
117
41
|
this._wrapCompartment.of(this.wrap ? EditorView.lineWrapping : []),
|
|
118
42
|
this._lineNumbersCompartment.of(this._lineNumbersExtension()),
|
|
119
|
-
this._editableCompartment.of(this._editableExtension()),
|
|
120
|
-
this._attrsCompartment.of(this._attrsExtension()),
|
|
121
43
|
this._languageCompartment.of([]),
|
|
122
|
-
EditorView.updateListener.of((u) => {
|
|
123
|
-
if (u.docChanged)
|
|
124
|
-
this._onDocChanged();
|
|
125
|
-
}),
|
|
126
|
-
EditorView.domEventHandlers({
|
|
127
|
-
focus: () => {
|
|
128
|
-
this._valueAtFocus = this.value;
|
|
129
|
-
},
|
|
130
|
-
blur: () => {
|
|
131
|
-
if (this.value !== this._valueAtFocus)
|
|
132
|
-
this._emitChange();
|
|
133
|
-
},
|
|
134
|
-
}),
|
|
135
44
|
];
|
|
136
45
|
}
|
|
137
|
-
_editableExtension() {
|
|
138
|
-
// Readonly stays focusable/selectable (read + copy); disabled is inert.
|
|
139
|
-
const editable = !this.disabled;
|
|
140
|
-
const readOnly = this.disabled || this.readonly;
|
|
141
|
-
return [EditorView.editable.of(editable), EditorState.readOnly.of(readOnly)];
|
|
142
|
-
}
|
|
143
|
-
_placeholderExtension() {
|
|
144
|
-
return this.placeholder ? cmPlaceholder(this.placeholder) : [];
|
|
145
|
-
}
|
|
146
46
|
_lineNumbersExtension() {
|
|
147
47
|
if (!this.lineNumbers)
|
|
148
48
|
return [];
|
|
@@ -157,88 +57,31 @@ let NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NLD
|
|
|
157
57
|
},
|
|
158
58
|
});
|
|
159
59
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const attrs = {
|
|
165
|
-
'role': 'textbox',
|
|
166
|
-
'aria-multiline': 'true',
|
|
167
|
-
};
|
|
168
|
-
if (this.accessibleLabel)
|
|
169
|
-
attrs['aria-label'] = this.accessibleLabel;
|
|
170
|
-
if (this.inputId)
|
|
171
|
-
attrs['id'] = this.inputId;
|
|
172
|
-
// disabled makes the field inert (contenteditable=false); readonly keeps it
|
|
173
|
-
// focusable but non-editable. Either way it's not editable, so reflect
|
|
174
|
-
// aria-readonly. aria-required mirrors the required constraint.
|
|
175
|
-
if (this.readonly || this.disabled)
|
|
176
|
-
attrs['aria-readonly'] = 'true';
|
|
177
|
-
if (this.required)
|
|
178
|
-
attrs['aria-required'] = 'true';
|
|
179
|
-
return EditorView.contentAttributes.of(attrs);
|
|
180
|
-
}
|
|
181
|
-
firstUpdated() {
|
|
182
|
-
this._initialValue = this.value;
|
|
183
|
-
this.style.setProperty('--_code-editor-rows', String(this.rows));
|
|
184
|
-
this.mountEditor(this.value);
|
|
185
|
-
this.onEditorMounted();
|
|
60
|
+
// CodeMirror's content is a bare contenteditable; give it the textbox
|
|
61
|
+
// semantics a native <textarea> had, so screen readers announce it (WCAG 4.1.2).
|
|
62
|
+
contentAttributes() {
|
|
63
|
+
return { 'role': 'textbox', 'aria-multiline': 'true' };
|
|
186
64
|
}
|
|
187
65
|
/* Runs on the initial mount and on every re-mount after a detach/reattach
|
|
188
|
-
* (e.g. Vue <KeepAlive>): the view
|
|
189
|
-
* padding-click forwarder and language must be (re)applied here. */
|
|
66
|
+
* (e.g. Vue <KeepAlive>): the view is rebuilt, so the language goes on again. */
|
|
190
67
|
onEditorMounted() {
|
|
191
|
-
|
|
192
|
-
// place a caret; forward it to the nearest line so the padding is
|
|
193
|
-
// clickable too. CM attaches its own handlers to the content, not the
|
|
194
|
-
// scroller, so this is a plain listener on the scroller element.
|
|
195
|
-
this.view?.scrollDOM.addEventListener('pointerdown', this._onScrollerPointerDown);
|
|
196
|
-
this.commitFormValue();
|
|
68
|
+
super.onEditorMounted();
|
|
197
69
|
if (this.language)
|
|
198
70
|
void this._applyLanguage();
|
|
199
|
-
this._checkAccessibleLabel();
|
|
200
71
|
}
|
|
201
72
|
updated(changed) {
|
|
202
|
-
|
|
203
|
-
|
|
73
|
+
super.updated(changed);
|
|
74
|
+
if (!this.view)
|
|
75
|
+
return;
|
|
76
|
+
if (changed.has('wrap')) {
|
|
77
|
+
this.reconfigure(this._wrapCompartment, this.wrap ? EditorView.lineWrapping : []);
|
|
78
|
+
}
|
|
79
|
+
if (changed.has('lineNumbers')) {
|
|
80
|
+
this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension());
|
|
204
81
|
}
|
|
205
|
-
if (
|
|
206
|
-
|
|
207
|
-
const docWas = this.doc;
|
|
208
|
-
this.setDoc(this.value);
|
|
209
|
-
this.commitFormValue();
|
|
210
|
-
// A programmatic value change while focused must not look like a user edit
|
|
211
|
-
// on the next blur: if setDoc actually moved the doc (i.e. this wasn't the
|
|
212
|
-
// echo of the user's own typing, where the doc already equals value),
|
|
213
|
-
// advance the focus-time baseline too.
|
|
214
|
-
if (docWas !== this.value)
|
|
215
|
-
this._valueAtFocus = this.value;
|
|
216
|
-
}
|
|
217
|
-
if (changed.has('disabled') || changed.has('readonly')) {
|
|
218
|
-
this.reconfigure(this._editableCompartment, this._editableExtension());
|
|
219
|
-
}
|
|
220
|
-
// readonly/required/disabled also drive the content's aria-readonly/
|
|
221
|
-
// aria-required, so refresh the attrs compartment when they change.
|
|
222
|
-
if (changed.has('disabled') || changed.has('readonly') || changed.has('required')) {
|
|
223
|
-
this.reconfigure(this._attrsCompartment, this._attrsExtension());
|
|
224
|
-
}
|
|
225
|
-
if (changed.has('wrap')) {
|
|
226
|
-
this.reconfigure(this._wrapCompartment, this.wrap ? EditorView.lineWrapping : []);
|
|
227
|
-
}
|
|
228
|
-
if (changed.has('lineNumbers')) {
|
|
229
|
-
this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension());
|
|
230
|
-
}
|
|
231
|
-
if (changed.has('placeholder')) {
|
|
232
|
-
this.reconfigure(this._placeholderCompartment, this._placeholderExtension());
|
|
233
|
-
}
|
|
234
|
-
if (changed.has('accessibleLabel') || changed.has('inputId')) {
|
|
235
|
-
this.reconfigure(this._attrsCompartment, this._attrsExtension());
|
|
236
|
-
}
|
|
237
|
-
if (changed.has('language')) {
|
|
238
|
-
void this._applyLanguage();
|
|
239
|
-
}
|
|
82
|
+
if (changed.has('language')) {
|
|
83
|
+
void this._applyLanguage();
|
|
240
84
|
}
|
|
241
|
-
this._checkAccessibleLabel();
|
|
242
85
|
}
|
|
243
86
|
async _applyLanguage() {
|
|
244
87
|
const lang = this.language;
|
|
@@ -261,91 +104,14 @@ let NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NLD
|
|
|
261
104
|
this.reconfigure(this._languageCompartment, []);
|
|
262
105
|
}
|
|
263
106
|
}
|
|
264
|
-
_onDocChanged() {
|
|
265
|
-
const text = this.doc;
|
|
266
|
-
if (text === this.value)
|
|
267
|
-
return;
|
|
268
|
-
this.value = text;
|
|
269
|
-
this.commitFormValue();
|
|
270
|
-
this.dispatchEvent(new CustomEvent('input', {
|
|
271
|
-
detail: { value: text },
|
|
272
|
-
bubbles: true,
|
|
273
|
-
composed: true,
|
|
274
|
-
}));
|
|
275
|
-
}
|
|
276
|
-
_emitChange() {
|
|
277
|
-
this.commitFormValue();
|
|
278
|
-
this.dispatchEvent(new CustomEvent('change', {
|
|
279
|
-
detail: { value: this.value },
|
|
280
|
-
bubbles: true,
|
|
281
|
-
composed: true,
|
|
282
|
-
}));
|
|
283
|
-
}
|
|
284
|
-
/* Ran from updated(), not firstUpdated(): a parent nldd-form-field sets
|
|
285
|
-
* input-id slightly after our first render, so checking earlier triggers
|
|
286
|
-
* a spurious warning for the standard form-field usage. We re-check on
|
|
287
|
-
* every update and warn once if the missing label is still missing. */
|
|
288
|
-
_checkAccessibleLabel() {
|
|
289
|
-
if (this._accessibleLabelWarned)
|
|
290
|
-
return;
|
|
291
|
-
if (this.accessibleLabel || this.inputId)
|
|
292
|
-
return;
|
|
293
|
-
this._accessibleLabelWarned = true;
|
|
294
|
-
console.warn('<nldd-code-editor>: No accessible-label or input-id provided. Use nldd-form-field for labeled usage, or set accessible-label for screen reader accessibility (WCAG SC 4.1.2).');
|
|
295
|
-
}
|
|
296
|
-
formValue() {
|
|
297
|
-
return this.value;
|
|
298
|
-
}
|
|
299
|
-
formResetCallback() {
|
|
300
|
-
this.value = this._initialValue;
|
|
301
|
-
}
|
|
302
|
-
formStateRestoreCallback(state) {
|
|
303
|
-
if (typeof state === 'string')
|
|
304
|
-
this.value = state;
|
|
305
|
-
}
|
|
306
|
-
/** CodeMirror builds the textbox; the host is only its container. */
|
|
307
|
-
describedTarget() {
|
|
308
|
-
return this.shadowRoot?.querySelector('.cm-content') ?? null;
|
|
309
|
-
}
|
|
310
107
|
render() {
|
|
311
108
|
return codeEditorTemplate(this);
|
|
312
109
|
}
|
|
313
110
|
};
|
|
314
|
-
NLDDCodeEditor.shadowRootOptions = {
|
|
315
|
-
...LitElement.shadowRootOptions,
|
|
316
|
-
delegatesFocus: true,
|
|
317
|
-
};
|
|
318
111
|
NLDDCodeEditor.styles = codeEditorStyles;
|
|
319
|
-
/** Says this is the control an nldd-form-field is about, so the field can
|
|
320
|
-
* find it, name it and move focus into it. See nldd-form-field. */
|
|
321
|
-
NLDDCodeEditor.isFormInput = true;
|
|
322
|
-
__decorate([
|
|
323
|
-
property({ type: String })
|
|
324
|
-
], NLDDCodeEditor.prototype, "value", void 0);
|
|
325
|
-
__decorate([
|
|
326
|
-
property({ type: String, attribute: 'input-id' })
|
|
327
|
-
], NLDDCodeEditor.prototype, "inputId", void 0);
|
|
328
|
-
__decorate([
|
|
329
|
-
property({ reflect: true, converter: reflectNonDefault('') })
|
|
330
|
-
], NLDDCodeEditor.prototype, "placeholder", void 0);
|
|
331
|
-
__decorate([
|
|
332
|
-
property({ type: Boolean, reflect: true })
|
|
333
|
-
], NLDDCodeEditor.prototype, "disabled", void 0);
|
|
334
|
-
__decorate([
|
|
335
|
-
property({ reflect: true, converter: reflectNonDefault('') })
|
|
336
|
-
], NLDDCodeEditor.prototype, "name", void 0);
|
|
337
|
-
__decorate([
|
|
338
|
-
property({ type: Boolean, reflect: true })
|
|
339
|
-
], NLDDCodeEditor.prototype, "readonly", void 0);
|
|
340
|
-
__decorate([
|
|
341
|
-
property({ type: Boolean, reflect: true })
|
|
342
|
-
], NLDDCodeEditor.prototype, "required", void 0);
|
|
343
112
|
__decorate([
|
|
344
113
|
property({ type: Boolean, reflect: true })
|
|
345
114
|
], NLDDCodeEditor.prototype, "wrap", void 0);
|
|
346
|
-
__decorate([
|
|
347
|
-
property({ type: Number })
|
|
348
|
-
], NLDDCodeEditor.prototype, "rows", void 0);
|
|
349
115
|
__decorate([
|
|
350
116
|
property({ reflect: true, converter: reflectNonDefault('auto') })
|
|
351
117
|
], NLDDCodeEditor.prototype, "resize", void 0);
|
|
@@ -358,15 +124,9 @@ __decorate([
|
|
|
358
124
|
__decorate([
|
|
359
125
|
property({ type: Boolean, reflect: true, attribute: 'line-numbers' })
|
|
360
126
|
], NLDDCodeEditor.prototype, "lineNumbers", void 0);
|
|
361
|
-
__decorate([
|
|
362
|
-
property({ type: String, attribute: 'accessible-label' })
|
|
363
|
-
], NLDDCodeEditor.prototype, "accessibleLabel", void 0);
|
|
364
127
|
__decorate([
|
|
365
128
|
query('.code-editor')
|
|
366
129
|
], NLDDCodeEditor.prototype, "_container", void 0);
|
|
367
|
-
__decorate([
|
|
368
|
-
property({ type: Boolean, reflect: true })
|
|
369
|
-
], NLDDCodeEditor.prototype, "invalid", void 0);
|
|
370
130
|
NLDDCodeEditor = __decorate([
|
|
371
131
|
customElement('nldd-code-editor')
|
|
372
132
|
], NLDDCodeEditor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"code-editor.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":";;;;;;AA0CA,OAAO,EAAE,aAAa,EAAE,QAAQ,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AAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC9B;AAGb;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAa,MAAM,CAAC,EAAE,CAAC;8CAClD;AAG5B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAuB,QAAQ,CAAC,EAAE,CAAC;kDAC9C;AAG5C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;gDACxD;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;mDAClD;AAGZ;IADP,KAAK,CAAC,cAAc,CAAC;kDACW;AApBrB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA8G1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBAsK5B,CAAC"}
|
|
@@ -13,8 +13,12 @@ export const codeEditorStyles = css `
|
|
|
13
13
|
--_code-editor-caret-color: var(--components-code-editor-caret-color);
|
|
14
14
|
--_code-editor-corner-radius: 0;
|
|
15
15
|
--_code-editor-background-color: transparent;
|
|
16
|
-
--_code-editor-
|
|
17
|
-
--_code-editor-border-
|
|
16
|
+
--_code-editor-gutter-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
17
|
+
--_code-editor-gutter-border-width: var(--semantics-dividers-thickness);
|
|
18
|
+
--_code-editor-gutter-border-color: var(--semantics-dividers-color);
|
|
19
|
+
--_code-editor-input-field-border-z-index: 1;
|
|
20
|
+
--_code-editor-input-field-border-color: transparent;
|
|
21
|
+
--_code-editor-input-field-border-shadow: none;
|
|
18
22
|
--_code-editor-padding-block: 0px;
|
|
19
23
|
--_code-editor-padding-inline: 0px;
|
|
20
24
|
--_code-editor-content-color: var(--semantics-content-color);
|
|
@@ -50,8 +54,9 @@ export const codeEditorStyles = css `
|
|
|
50
54
|
/* Match the other input fields (text-field, textarea): the input-field
|
|
51
55
|
surface + border + control padding, not the tinted surface. */
|
|
52
56
|
--_code-editor-background-color: var(--semantics-input-fields-background-color);
|
|
53
|
-
--_code-editor-
|
|
54
|
-
--_code-editor-border-
|
|
57
|
+
--_code-editor-gutter-background-color: var(--_code-editor-background-color);
|
|
58
|
+
--_code-editor-input-field-border-color: var(--semantics-input-fields-border-color);
|
|
59
|
+
--_code-editor-input-field-border-shadow: inset 0 0 0 var(--semantics-input-fields-border-width) var(--_code-editor-input-field-border-color);
|
|
55
60
|
--_code-editor-padding-block: var(--semantics-controls-md-inline-padding);
|
|
56
61
|
--_code-editor-padding-inline: var(--semantics-controls-md-inline-padding);
|
|
57
62
|
}
|
|
@@ -64,7 +69,6 @@ export const codeEditorStyles = css `
|
|
|
64
69
|
display: flex;
|
|
65
70
|
position: relative;
|
|
66
71
|
border-radius: var(--_code-editor-corner-radius);
|
|
67
|
-
box-shadow: var(--_code-editor-border-shadow);
|
|
68
72
|
background-color: var(--_code-editor-background-color);
|
|
69
73
|
min-height: 0;
|
|
70
74
|
flex-direction: column;
|
|
@@ -75,9 +79,27 @@ export const codeEditorStyles = css `
|
|
|
75
79
|
font: var(--_code-editor-font);
|
|
76
80
|
}
|
|
77
81
|
|
|
82
|
+
/* The border ring lies over the content, so the sticky gutter cannot cover
|
|
83
|
+
it. Inset, it takes no layout space. */
|
|
84
|
+
.code-editor::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0;
|
|
88
|
+
z-index: var(--_code-editor-input-field-border-z-index);
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
box-shadow: var(--_code-editor-input-field-border-shadow);
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.code-editor .cm-editor {
|
|
95
|
+
isolation: isolate;
|
|
96
|
+
}
|
|
97
|
+
|
|
78
98
|
:host([disabled]) .code-editor {
|
|
79
99
|
opacity: var(--primitives-opacity-disabled);
|
|
80
100
|
pointer-events: none;
|
|
101
|
+
-webkit-user-select: none;
|
|
102
|
+
user-select: none;
|
|
81
103
|
}
|
|
82
104
|
|
|
83
105
|
/* Focus ring only on the input-field variant. The simple variant relies on a
|
|
@@ -85,7 +107,7 @@ export const codeEditorStyles = css `
|
|
|
85
107
|
:host([appearance="input-field"]) .code-editor:focus-within {
|
|
86
108
|
outline: var(--semantics-focus-ring-outline);
|
|
87
109
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
88
|
-
box-shadow: var(--semantics-focus-ring-box-shadow)
|
|
110
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
89
111
|
}
|
|
90
112
|
|
|
91
113
|
|
|
@@ -108,6 +130,21 @@ export const codeEditorStyles = css `
|
|
|
108
130
|
tab-size: 2;
|
|
109
131
|
}
|
|
110
132
|
|
|
133
|
+
/* The gutter stays put while the code scrolls sideways under it. The
|
|
134
|
+
divider is a gradient: an inset shadow with an offset leaves a hairline on iOS. */
|
|
135
|
+
:host .cm-gutters.cm-gutters {
|
|
136
|
+
background-color: var(--_code-editor-gutter-background-color);
|
|
137
|
+
background-image: linear-gradient(var(--_code-editor-gutter-border-color), var(--_code-editor-gutter-border-color));
|
|
138
|
+
background-repeat: no-repeat;
|
|
139
|
+
background-position: right;
|
|
140
|
+
background-size: var(--_code-editor-gutter-border-width) 100%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Read-only, like a native read-only field: select and copy, but no caret. */
|
|
144
|
+
:host([readonly]) .cm-cursorLayer {
|
|
145
|
+
visibility: hidden;
|
|
146
|
+
}
|
|
147
|
+
|
|
111
148
|
/* Accent caret. The doubled class is purely for specificity — it outweighs
|
|
112
149
|
CodeMirror's theme cursor color without depending on an attribute. */
|
|
113
150
|
:host .cm-cursor.cm-cursor {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgC/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIrB,CAAC"}
|
|
@@ -77,7 +77,7 @@ declare const NLDDDatePicker_base: (abstract new (...args: any[]) => LitElement
|
|
|
77
77
|
'components.date-picker.friday-short-lowercase': string;
|
|
78
78
|
'components.date-picker.saturday-short-lowercase': string;
|
|
79
79
|
'components.date-picker.week-number-column-label': string;
|
|
80
|
-
'components.date-picker.week-number-column-short-label': string;
|
|
80
|
+
'components.date-picker.week-number-column-short-lowercase-label': string;
|
|
81
81
|
'components.date-picker.week-number-label': string;
|
|
82
82
|
'components.date-picker.date-label': string;
|
|
83
83
|
'components.date-picker.today-lowercase': string;
|
|
@@ -91,7 +91,7 @@ declare const NLDDDatePicker_base: (abstract new (...args: any[]) => LitElement
|
|
|
91
91
|
'components.date-picker.range-selected-text': string;
|
|
92
92
|
'components.date-picker.range-blocked-text': string;
|
|
93
93
|
}>;
|
|
94
|
-
_t(key: "components.date-picker.view-previous-month-action" | "components.date-picker.view-next-month-action" | "components.date-picker.view-today-action" | "components.date-picker.choose-month-action" | "components.date-picker.choose-year-action" | "components.date-picker.january-lowercase" | "components.date-picker.january-capitalize" | "components.date-picker.february-lowercase" | "components.date-picker.february-capitalize" | "components.date-picker.march-lowercase" | "components.date-picker.march-capitalize" | "components.date-picker.april-lowercase" | "components.date-picker.april-capitalize" | "components.date-picker.may-lowercase" | "components.date-picker.may-capitalize" | "components.date-picker.june-lowercase" | "components.date-picker.june-capitalize" | "components.date-picker.july-lowercase" | "components.date-picker.july-capitalize" | "components.date-picker.august-lowercase" | "components.date-picker.august-capitalize" | "components.date-picker.september-lowercase" | "components.date-picker.september-capitalize" | "components.date-picker.october-lowercase" | "components.date-picker.october-capitalize" | "components.date-picker.november-lowercase" | "components.date-picker.november-capitalize" | "components.date-picker.december-lowercase" | "components.date-picker.december-capitalize" | "components.date-picker.sunday-lowercase" | "components.date-picker.monday-lowercase" | "components.date-picker.tuesday-lowercase" | "components.date-picker.wednesday-lowercase" | "components.date-picker.thursday-lowercase" | "components.date-picker.friday-lowercase" | "components.date-picker.saturday-lowercase" | "components.date-picker.sunday-short-lowercase" | "components.date-picker.monday-short-lowercase" | "components.date-picker.tuesday-short-lowercase" | "components.date-picker.wednesday-short-lowercase" | "components.date-picker.thursday-short-lowercase" | "components.date-picker.friday-short-lowercase" | "components.date-picker.saturday-short-lowercase" | "components.date-picker.week-number-column-label" | "components.date-picker.week-number-column-short-label" | "components.date-picker.week-number-label" | "components.date-picker.date-label" | "components.date-picker.today-lowercase" | "components.date-picker.unavailable-lowercase-label" | "components.date-picker.range-anchor-lowercase-label" | "components.date-picker.range-start-lowercase-label" | "components.date-picker.range-end-lowercase-label" | "components.date-picker.in-range-lowercase-label" | "components.date-picker.date-selected-text" | "components.date-picker.range-anchor-text" | "components.date-picker.range-selected-text" | "components.date-picker.range-blocked-text", vars?: Record<string, string | number>): string;
|
|
94
|
+
_t(key: "components.date-picker.view-previous-month-action" | "components.date-picker.view-next-month-action" | "components.date-picker.view-today-action" | "components.date-picker.choose-month-action" | "components.date-picker.choose-year-action" | "components.date-picker.january-lowercase" | "components.date-picker.january-capitalize" | "components.date-picker.february-lowercase" | "components.date-picker.february-capitalize" | "components.date-picker.march-lowercase" | "components.date-picker.march-capitalize" | "components.date-picker.april-lowercase" | "components.date-picker.april-capitalize" | "components.date-picker.may-lowercase" | "components.date-picker.may-capitalize" | "components.date-picker.june-lowercase" | "components.date-picker.june-capitalize" | "components.date-picker.july-lowercase" | "components.date-picker.july-capitalize" | "components.date-picker.august-lowercase" | "components.date-picker.august-capitalize" | "components.date-picker.september-lowercase" | "components.date-picker.september-capitalize" | "components.date-picker.october-lowercase" | "components.date-picker.october-capitalize" | "components.date-picker.november-lowercase" | "components.date-picker.november-capitalize" | "components.date-picker.december-lowercase" | "components.date-picker.december-capitalize" | "components.date-picker.sunday-lowercase" | "components.date-picker.monday-lowercase" | "components.date-picker.tuesday-lowercase" | "components.date-picker.wednesday-lowercase" | "components.date-picker.thursday-lowercase" | "components.date-picker.friday-lowercase" | "components.date-picker.saturday-lowercase" | "components.date-picker.sunday-short-lowercase" | "components.date-picker.monday-short-lowercase" | "components.date-picker.tuesday-short-lowercase" | "components.date-picker.wednesday-short-lowercase" | "components.date-picker.thursday-short-lowercase" | "components.date-picker.friday-short-lowercase" | "components.date-picker.saturday-short-lowercase" | "components.date-picker.week-number-column-label" | "components.date-picker.week-number-column-short-lowercase-label" | "components.date-picker.week-number-label" | "components.date-picker.date-label" | "components.date-picker.today-lowercase" | "components.date-picker.unavailable-lowercase-label" | "components.date-picker.range-anchor-lowercase-label" | "components.date-picker.range-start-lowercase-label" | "components.date-picker.range-end-lowercase-label" | "components.date-picker.in-range-lowercase-label" | "components.date-picker.date-selected-text" | "components.date-picker.range-anchor-text" | "components.date-picker.range-selected-text" | "components.date-picker.range-blocked-text", vars?: Record<string, string | number>): string;
|
|
95
95
|
}) & typeof LitElement & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
96
96
|
export declare class NLDDDatePicker extends NLDDDatePicker_base {
|
|
97
97
|
static styles: import("lit").CSSResult;
|
|
@@ -47,7 +47,7 @@ export declare const nlddDatePickerTranslations: {
|
|
|
47
47
|
'components.date-picker.friday-short-lowercase': string;
|
|
48
48
|
'components.date-picker.saturday-short-lowercase': string;
|
|
49
49
|
'components.date-picker.week-number-column-label': string;
|
|
50
|
-
'components.date-picker.week-number-column-short-label': string;
|
|
50
|
+
'components.date-picker.week-number-column-short-lowercase-label': string;
|
|
51
51
|
'components.date-picker.week-number-label': string;
|
|
52
52
|
'components.date-picker.date-label': string;
|
|
53
53
|
'components.date-picker.today-lowercase': string;
|
|
@@ -53,7 +53,7 @@ export const nlddDatePickerTranslations = {
|
|
|
53
53
|
// The short form goes in the column heading, the full one rides along as an
|
|
54
54
|
// abbr for screen readers.
|
|
55
55
|
'components.date-picker.week-number-column-label': 'Weeknummer',
|
|
56
|
-
'components.date-picker.week-number-column-short-label': 'wk',
|
|
56
|
+
'components.date-picker.week-number-column-short-lowercase-label': 'wk',
|
|
57
57
|
'components.date-picker.week-number-label': 'Week {week}',
|
|
58
58
|
// The full accessible name of a cell. '31' on its own tells a screen reader
|
|
59
59
|
// user nothing about the month or the weekday. The weekday arrives as a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-picker/date-picker.i18n.ts"],"names":[],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E;IAC5E,4EAA4E;IAC5E,qDAAqD,EAAE,oCAAoC;IAC3F,oDAAoD,EAAE,sBAAsB;IAC5E,kDAAkD,EAAE,sBAAsB;IAC1E,iDAAiD,EAAE,eAAe;IAElE,6EAA6E;IAC7E,+EAA+E;IAC/E,gFAAgF;IAChF,2CAA2C,EAAE,uBAAuB;IACpE,6EAA6E;IAC7E,yCAAyC;IACzC,0CAA0C,EAAE,kEAAkE;IAC9G,4CAA4C,EAAE,yCAAyC;IACvF,2CAA2C,EAAE,uEAAuE;CACpH,CAAC"}
|
|
@@ -144,7 +144,7 @@ function renderColumnHeaders(component) {
|
|
|
144
144
|
scope="col"
|
|
145
145
|
abbr=${component._t('components.date-picker.week-number-column-label')}
|
|
146
146
|
>
|
|
147
|
-
${component._t('components.date-picker.week-number-column-short-label')}
|
|
147
|
+
${component._t('components.date-picker.week-number-column-short-lowercase-label')}
|
|
148
148
|
</th>
|
|
149
149
|
` : nothing}
|
|
150
150
|
${component._weekdays.map((day) => html `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-picker/date-picker.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,4CAA4C,CAAC;AACpD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0CAA0C,CAAC;AAClD,OAAO,8BAA8B,CAAC;AAEtC,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAErC;;;;;GAKG;AACH,SAAS,eAAe,CACvB,SAAyB,EACzB,IAAsB,EACtB,KAAa,EACb,OAAe,EACf,QAAiB;IAEjB,IAAI,OAAO,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA,0CAA0C,KAAK,S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B,CAAC,SAAyB;IACrD,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA;;;YAGrB,SAAS,CAAC,EAAE,CAAC,iDAAiD,CAAC;;OAEpE,SAAS,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"date-picker.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-picker/date-picker.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,4CAA4C,CAAC;AACpD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0CAA0C,CAAC;AAClD,OAAO,8BAA8B,CAAC;AAEtC,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAErC;;;;;GAKG;AACH,SAAS,eAAe,CACvB,SAAyB,EACzB,IAAsB,EACtB,KAAa,EACb,OAAe,EACf,QAAiB;IAEjB,IAAI,OAAO,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA,0CAA0C,KAAK,SAAS,CAAC;IACrF,OAAO,IAAI,CAAA;sCAC0B,IAAI;;;mBAGvB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;;KAEzC,KAAK;;;;;;;;EAQR,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,YAAY,CAAC,SAAyB;IAC9C,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;IACjC,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC;IAC/B,OAAO,IAAI,CAAA;;;SAGH,QAAQ;;;MAGX,eAAe,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC;MACnG,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