@nldd/design-system 0.8.80 → 0.8.83
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 +1138 -71
- package/dist/components/actions/button/button.d.ts +5 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +8 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -0
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +1 -1
- package/dist/components/actions/icon-button/icon-button.js +1 -1
- package/dist/components/actions/menu/menu.d.ts +25 -2
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +31 -8
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +7 -3
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +20 -0
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +54 -0
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/breakpoints-CkxsiRgH.js +10 -0
- package/dist/components/components.js +52643 -117
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +5 -1
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +78 -6
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +63 -92
- 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 +44 -6
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +8 -2
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +17 -2
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +8 -0
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/text/text.d.ts +50 -0
- package/dist/components/content/text/text.d.ts.map +1 -0
- package/dist/components/content/text/text.js +81 -0
- package/dist/components/content/text/text.js.map +1 -0
- package/dist/components/content/text/text.styles.d.ts +2 -0
- package/dist/components/content/text/text.styles.d.ts.map +1 -0
- package/dist/components/content/text/text.styles.js +116 -0
- package/dist/components/content/text/text.styles.js.map +1 -0
- package/dist/components/content/text/text.template.d.ts +3 -0
- package/dist/components/content/text/text.template.d.ts.map +1 -0
- package/dist/components/content/text/text.template.js +7 -0
- package/dist/components/content/text/text.template.js.map +1 -0
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +9 -13
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/decorate-BKn10QQi.js +9 -0
- package/dist/components/dist-BYVOPNHp.js +381 -0
- package/dist/components/dist-Bq4xc7Bm.js +624 -0
- package/dist/components/dist-C0PiB1dr.js +870 -0
- package/dist/components/dist-C400RcFU.js +1498 -0
- package/dist/components/dist-CCg5Mso_.js +390 -0
- package/dist/components/dist-CJR_Rwhh.js +464 -0
- package/dist/components/dist-Ccw7ZfsU.js +18481 -0
- package/dist/components/dist-OBifyiJS.js +887 -0
- package/dist/components/dist-TpIL8G4G.js +1480 -0
- package/dist/components/dist-afrAoubg.js +1181 -0
- package/dist/components/dist-bO14jlsr.js +78 -0
- package/dist/components/forms/form-field/form-field.d.ts +59 -2
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +120 -35
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/gherkin-uCVRxsGf.js +108 -0
- package/dist/components/icon-C1Kikpol.js +841 -0
- package/dist/components/icon-button-BYy6hnAY.js +1676 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-modality-DhTeUxKi.js +43 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +10 -0
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +9 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +11 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +3 -0
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +3 -0
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +8 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +36 -0
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +5 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +23 -20
- package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +6 -0
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +11 -0
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +7 -1
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +3 -0
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +4 -1
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +29 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +44 -1
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +3 -0
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +3 -0
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +11 -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 +11 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +9 -0
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +12 -0
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.js +1 -0
- package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +9 -0
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +12 -0
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.js +1 -0
- package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +10 -0
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +9 -0
- 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 +11 -0
- 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 +16 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +33 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +6 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +6 -0
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +16 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +26 -7
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +17 -0
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +22 -0
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +1 -1
- package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +3 -0
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +3 -0
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +3 -0
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +3 -0
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +4 -1
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +30 -0
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +60 -0
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +3 -0
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +6 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +11 -0
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +7 -1
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +3 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +4 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +10 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +14 -0
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +11 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +16 -6
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +6 -0
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +13 -0
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +3 -3
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +3 -3
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -6
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +10 -3
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +60 -45
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +94 -80
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +94 -21
- 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 +275 -48
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +116 -34
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +5 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +116 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.js → list-item-segment/list-item-segment.js} +77 -52
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +179 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +3 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.template.js → list-item-segment/list-item-segment.template.js} +5 -4
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -0
- package/dist/components/reflect-non-default-OLaK60rT.js +37 -0
- package/dist/components/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/components/shadow-resets-aG-rgyNQ.js +61 -0
- package/dist/components/shell-C61GCsJA.js +223 -0
- package/dist/components/status-and-feedback/badge/badge.d.ts +8 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +17 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +35 -6
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +7 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/toml-C2HBbPgG.js +59 -0
- package/dist/components/visibility-mixin-GxbwkBb1.js +104 -0
- package/dist/components/with-translations-DzAdFTK8.js +48 -0
- package/dist/css/variables.css +25 -1
- package/dist/nldd.min.js +2797 -2355
- package/dist/types/vue.d.ts +106 -48
- package/dist/utilities/implicit-submission.d.ts +31 -0
- package/dist/utilities/implicit-submission.d.ts.map +1 -0
- package/dist/utilities/implicit-submission.js +65 -0
- package/dist/utilities/implicit-submission.js.map +1 -0
- package/dist/utilities/owned-attribute.d.ts +19 -0
- package/dist/utilities/owned-attribute.d.ts.map +1 -0
- package/dist/utilities/owned-attribute.js +32 -0
- package/dist/utilities/owned-attribute.js.map +1 -0
- package/dist/utilities/scroll-mode-controller.d.ts +9 -1
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +10 -2
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +10 -6
- package/dist/components/gherkin-DhZlEZiy.js +0 -115
- package/dist/components/index-8pDDdMeW.js +0 -384
- package/dist/components/index-C7QocEcT.js +0 -81
- package/dist/components/index-CDz7-C9c.js +0 -177
- package/dist/components/index-CWQunWUb.js +0 -75039
- package/dist/components/index-CoY3JfIy.js +0 -688
- package/dist/components/index-DP9dl7P7.js +0 -703
- package/dist/components/index-DV_2YpaH.js +0 -405
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +0 -108
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +0 -145
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +0 -3
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +0 -1
- package/dist/components/shell-BlsXDxCn.js +0 -222
- package/dist/components/toml-BOuWGMcf.js +0 -76
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { C as indentNodeProp, M as styleTags, N as tags, m as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as foldInside, y as foldNodeProp } from "./dist-Ccw7ZfsU.js";
|
|
2
|
+
//#region node_modules/@lezer/json/dist/index.js
|
|
3
|
+
var jsonHighlighting = styleTags({
|
|
4
|
+
String: tags.string,
|
|
5
|
+
Number: tags.number,
|
|
6
|
+
"True False": tags.bool,
|
|
7
|
+
PropertyName: tags.propertyName,
|
|
8
|
+
Null: tags.null,
|
|
9
|
+
", :": tags.separator,
|
|
10
|
+
"[ ]": tags.squareBracket,
|
|
11
|
+
"{ }": tags.brace
|
|
12
|
+
});
|
|
13
|
+
var parser = LRParser.deserialize({
|
|
14
|
+
version: 14,
|
|
15
|
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
16
|
+
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
|
17
|
+
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
18
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
|
|
19
|
+
maxTerm: 25,
|
|
20
|
+
nodeProps: [
|
|
21
|
+
[
|
|
22
|
+
"isolate",
|
|
23
|
+
-2,
|
|
24
|
+
6,
|
|
25
|
+
11,
|
|
26
|
+
""
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"openedBy",
|
|
30
|
+
7,
|
|
31
|
+
"{",
|
|
32
|
+
14,
|
|
33
|
+
"["
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"closedBy",
|
|
37
|
+
8,
|
|
38
|
+
"}",
|
|
39
|
+
15,
|
|
40
|
+
"]"
|
|
41
|
+
]
|
|
42
|
+
],
|
|
43
|
+
propSources: [jsonHighlighting],
|
|
44
|
+
skippedNodes: [0],
|
|
45
|
+
repeatNodeCount: 2,
|
|
46
|
+
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
|
47
|
+
tokenizers: [0],
|
|
48
|
+
topRules: { "JsonText": [0, 1] },
|
|
49
|
+
tokenPrec: 0
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/@codemirror/lang-json/dist/index.js
|
|
53
|
+
/**
|
|
54
|
+
A language provider that provides JSON parsing.
|
|
55
|
+
*/
|
|
56
|
+
var jsonLanguage = /*@__PURE__*/ LRLanguage.define({
|
|
57
|
+
name: "json",
|
|
58
|
+
parser: /*@__PURE__*/ parser.configure({ props: [/*@__PURE__*/ indentNodeProp.add({
|
|
59
|
+
Object: /*@__PURE__*/ continuedIndent({ except: /^\s*\}/ }),
|
|
60
|
+
Array: /*@__PURE__*/ continuedIndent({ except: /^\s*\]/ })
|
|
61
|
+
}), /*@__PURE__*/ foldNodeProp.add({ "Object Array": foldInside })] }),
|
|
62
|
+
languageData: {
|
|
63
|
+
closeBrackets: { brackets: [
|
|
64
|
+
"[",
|
|
65
|
+
"{",
|
|
66
|
+
"\""
|
|
67
|
+
] },
|
|
68
|
+
indentOnInput: /^\s*[\}\]]$/
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
JSON language support.
|
|
73
|
+
*/
|
|
74
|
+
function json() {
|
|
75
|
+
return new LanguageSupport(jsonLanguage);
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { json };
|
|
@@ -79,16 +79,73 @@ export declare class NLDDFormField extends LitElement {
|
|
|
79
79
|
optionalLabel: string;
|
|
80
80
|
private _childObserver;
|
|
81
81
|
private _observer;
|
|
82
|
+
/** The last label this field wrote onto the control, so it only takes back its own. */
|
|
83
|
+
private _appliedLabel;
|
|
84
|
+
/** Keeps the "no input found" warning to one per field rather than one per mutation. */
|
|
85
|
+
private _warnedNoInput;
|
|
82
86
|
private _hasErrors;
|
|
83
87
|
render(): import("lit-html").TemplateResult;
|
|
84
88
|
updated(changed: Map<PropertyKey, unknown>): void;
|
|
85
89
|
connectedCallback(): void;
|
|
86
90
|
firstUpdated(): void;
|
|
87
91
|
disconnectedCallback(): void;
|
|
88
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Called when the label is clicked — focuses the slotted input.
|
|
94
|
+
*
|
|
95
|
+
* The label carries no `for` and does not wrap the control, which sits in
|
|
96
|
+
* the slot beside it, so it labels nothing as far as the platform is
|
|
97
|
+
* concerned and has no activation behavior to suppress. Focus is moved by
|
|
98
|
+
* hand instead. This is a field caption, not a control label: it never
|
|
99
|
+
* toggles a checkbox or picks a radio, because every one of those carries
|
|
100
|
+
* its own label, and a caption over a group could not say which one it
|
|
101
|
+
* meant anyway.
|
|
102
|
+
*
|
|
103
|
+
* Reaching the control relies on it being focusable: a native input, or a
|
|
104
|
+
* component with its own `focus()` or `delegatesFocus`. Components that
|
|
105
|
+
* wrap a control owe consumers that `focus()`.
|
|
106
|
+
*/
|
|
89
107
|
_focusInput(e: Event): void;
|
|
90
108
|
private _onSlotChange;
|
|
91
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Hands the label to the control as its accessible name, through whichever
|
|
111
|
+
* channel the control offers.
|
|
112
|
+
*
|
|
113
|
+
* It has to be handed over rather than referenced. `for` and
|
|
114
|
+
* `aria-labelledby` are IDREFs and an IDREF only resolves inside its own
|
|
115
|
+
* tree, so a label in this shadow root cannot point at a control in the
|
|
116
|
+
* consumer's light DOM.
|
|
117
|
+
*
|
|
118
|
+
* Which channel is a question about the control, not about its element
|
|
119
|
+
* kind, and those two came apart. `accessible-label` is the naming channel
|
|
120
|
+
* of this system: a component that has it forwards the name to whatever it
|
|
121
|
+
* renders inside. A native `<input>` takes `aria-label`. A component with
|
|
122
|
+
* neither carries a visible label of its own (`nldd-checkbox-field` and its
|
|
123
|
+
* siblings), and that label already names the control. Overwriting it would
|
|
124
|
+
* replace "Nieuwsbrief" with the caption above it, so those are left alone.
|
|
125
|
+
*
|
|
126
|
+
* The caption fills a gap, it does not overrule. A name set on the control
|
|
127
|
+
* itself is the more specific one, so this field leaves it alone and never
|
|
128
|
+
* takes back what it did not write.
|
|
129
|
+
*/
|
|
130
|
+
private _applyAccessibleLabel;
|
|
131
|
+
/**
|
|
132
|
+
* The input this field is about: the first one in the light DOM, wrapped or
|
|
133
|
+
* not.
|
|
134
|
+
*
|
|
135
|
+
* A field may hold more than one. A radio group whose last option is
|
|
136
|
+
* "Anders" and the text field that appears with it are one question and
|
|
137
|
+
* belong in one field. The first input carries the caption, and the ones
|
|
138
|
+
* after it name themselves.
|
|
139
|
+
*
|
|
140
|
+
* Looking inside matters because a `div` or an `nldd-container` around your
|
|
141
|
+
* input is a normal thing to write. Stopping at that wrapper sent the id,
|
|
142
|
+
* the name and the error wiring to the wrapper and left the field unnamed,
|
|
143
|
+
* with nothing about it visible on screen.
|
|
144
|
+
*
|
|
145
|
+
* Finding nothing is a real answer: the field then wires up nothing at all
|
|
146
|
+
* and says so in DEV, rather than picking whatever came first and quietly
|
|
147
|
+
* treating a tag or a button as your input.
|
|
148
|
+
*/
|
|
92
149
|
private _findInput;
|
|
93
150
|
/**
|
|
94
151
|
* Reads `invalid` and `error-message` from the input and toggles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE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iB,EAAE,aAAa,CAAC;QACjC,2BAA2B,EAAE,qBAAqB,CAAC;QACnD,4BAA4B,EAAE,sBAAsB,CAAC;KACrD;CACD"}
|
|
@@ -47,10 +47,30 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
47
47
|
*/
|
|
48
48
|
import { LitElement } from 'lit';
|
|
49
49
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
50
|
+
import { setOwnedAttribute } from '../../../utilities/owned-attribute.js';
|
|
50
51
|
import { formFieldStyles, formFieldHelpTextStyles, formFieldErrorTextStyles, } from './form-field.styles.js';
|
|
51
52
|
import { formFieldTemplate, formFieldHelpTextTemplate, formFieldErrorTextTemplate, } from './form-field.template.js';
|
|
52
53
|
// Exclude helper elements so _findInput() never returns them instead of the actual input
|
|
53
54
|
const HELPER_TAGS = ['nldd-form-field-help-text', 'nldd-form-field-error-text'];
|
|
55
|
+
/**
|
|
56
|
+
* Whether this element is the input a field is about.
|
|
57
|
+
*
|
|
58
|
+
* Asked, not inferred. Every input in this system carries
|
|
59
|
+
* `static isFormInput = true`, and a native `<input>`, `<select>` or
|
|
60
|
+
* `<textarea>` is one by the platform's own definition. Nothing else counts,
|
|
61
|
+
* deliberately: half the components in the package accept `accessible-label`
|
|
62
|
+
* and taking that as the signal would let a tag or a button beside your field
|
|
63
|
+
* be mistaken for the field.
|
|
64
|
+
*
|
|
65
|
+
* A consumer with an input of their own says so the same way, or names the
|
|
66
|
+
* control themselves and leaves this field out of it.
|
|
67
|
+
*/
|
|
68
|
+
function isFormInput(el) {
|
|
69
|
+
return el instanceof HTMLInputElement
|
|
70
|
+
|| el instanceof HTMLSelectElement
|
|
71
|
+
|| el instanceof HTMLTextAreaElement
|
|
72
|
+
|| el.constructor.isFormInput === true;
|
|
73
|
+
}
|
|
54
74
|
// crypto.randomUUID() requires a secure context (HTTPS or localhost).
|
|
55
75
|
// The fallback uses Math.random() which is sufficient for non-security-sensitive DOM IDs.
|
|
56
76
|
function generateId() {
|
|
@@ -99,6 +119,10 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
99
119
|
this.optionalLabel = 'Optioneel';
|
|
100
120
|
this._childObserver = null;
|
|
101
121
|
this._observer = null;
|
|
122
|
+
/** The last label this field wrote onto the control, so it only takes back its own. */
|
|
123
|
+
this._appliedLabel = null;
|
|
124
|
+
/** Keeps the "no input found" warning to one per field rather than one per mutation. */
|
|
125
|
+
this._warnedNoInput = false;
|
|
102
126
|
this._hasErrors = false;
|
|
103
127
|
}
|
|
104
128
|
render() {
|
|
@@ -123,33 +147,52 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
123
147
|
this._childObserver?.disconnect();
|
|
124
148
|
this._observer?.disconnect();
|
|
125
149
|
}
|
|
126
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Called when the label is clicked — focuses the slotted input.
|
|
152
|
+
*
|
|
153
|
+
* The label carries no `for` and does not wrap the control, which sits in
|
|
154
|
+
* the slot beside it, so it labels nothing as far as the platform is
|
|
155
|
+
* concerned and has no activation behavior to suppress. Focus is moved by
|
|
156
|
+
* hand instead. This is a field caption, not a control label: it never
|
|
157
|
+
* toggles a checkbox or picks a radio, because every one of those carries
|
|
158
|
+
* its own label, and a caption over a group could not say which one it
|
|
159
|
+
* meant anyway.
|
|
160
|
+
*
|
|
161
|
+
* Reaching the control relies on it being focusable: a native input, or a
|
|
162
|
+
* component with its own `focus()` or `delegatesFocus`. Components that
|
|
163
|
+
* wrap a control owe consumers that `focus()`.
|
|
164
|
+
*/
|
|
127
165
|
_focusInput(e) {
|
|
128
|
-
// <label for> cannot cross shadow boundaries so we focus manually.
|
|
129
166
|
const input = this._findInput();
|
|
130
167
|
if (!input)
|
|
131
168
|
return;
|
|
132
|
-
|
|
133
|
-
// For checkbox/radio, preventDefault cancels the native toggle — don't call it.
|
|
134
|
-
const tag = input.tagName.toLowerCase();
|
|
135
|
-
const type = input.type?.toLowerCase();
|
|
136
|
-
if (tag !== 'input' || (type !== 'checkbox' && type !== 'radio')) {
|
|
137
|
-
e.preventDefault();
|
|
138
|
-
}
|
|
169
|
+
e.preventDefault();
|
|
139
170
|
input.focus();
|
|
140
171
|
}
|
|
141
172
|
_onSlotChange() {
|
|
142
173
|
// Disconnect the previous attribute observer before wiring up a new one.
|
|
143
174
|
this._observer?.disconnect();
|
|
144
175
|
const input = this._findInput();
|
|
145
|
-
if (!input)
|
|
176
|
+
if (!input) {
|
|
177
|
+
// Only once there is something to look at. An empty field is usually one
|
|
178
|
+
// still being filled, and a component that forgot `static isFormInput`
|
|
179
|
+
// should be the one that stands out.
|
|
180
|
+
const hasContent = Array.from(this.children)
|
|
181
|
+
.some(el => !HELPER_TAGS.includes(el.tagName.toLowerCase()));
|
|
182
|
+
if (import.meta.env?.DEV && hasContent && !this._warnedNoInput) {
|
|
183
|
+
this._warnedNoInput = true;
|
|
184
|
+
const which = this.label ? ` (label="${this.label}")` : '';
|
|
185
|
+
console.warn(`<nldd-form-field>${which}: No form input found among its children. The label cannot name anything or move focus into it. Every nldd input carries \`static isFormInput = true\`; a component of your own says the same, or names its control itself.`);
|
|
186
|
+
}
|
|
146
187
|
return;
|
|
188
|
+
}
|
|
189
|
+
this._warnedNoInput = false;
|
|
147
190
|
// Ensure the inner native input has an id so aria-describedby can reference it.
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
if (
|
|
191
|
+
// `inputId` is a component that hands out the id of the control it renders, which
|
|
192
|
+
// is a different question from how it wants to be named, so it is asked separately
|
|
193
|
+
// (see _applyAccessibleLabel). For plain <input> elements we set the id directly.
|
|
194
|
+
// We never set the host element's id to avoid duplicate IDs.
|
|
195
|
+
if ('inputId' in input) {
|
|
153
196
|
const existingId = input.inputId;
|
|
154
197
|
const generatedId = existingId || generateId();
|
|
155
198
|
input.inputId = generatedId;
|
|
@@ -158,23 +201,7 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
158
201
|
if (!input.id)
|
|
159
202
|
input.id = generateId();
|
|
160
203
|
}
|
|
161
|
-
|
|
162
|
-
// attribute that they forward to their inner <input aria-label>. Native <input>
|
|
163
|
-
// elements have no such property — set aria-label directly on them instead.
|
|
164
|
-
if (this.label) {
|
|
165
|
-
if (isCustomInput) {
|
|
166
|
-
input.setAttribute('accessible-label', this.label);
|
|
167
|
-
input.removeAttribute('aria-label');
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
input.setAttribute('aria-label', this.label);
|
|
171
|
-
input.removeAttribute('accessible-label');
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
input.removeAttribute('accessible-label');
|
|
176
|
-
input.removeAttribute('aria-label');
|
|
177
|
-
}
|
|
204
|
+
this._applyAccessibleLabel(input);
|
|
178
205
|
// Ensure each help text element has an id so it can be referenced in aria-describedby
|
|
179
206
|
Array.from(this.children)
|
|
180
207
|
.filter(el => el.tagName.toLowerCase() === 'nldd-form-field-help-text')
|
|
@@ -187,10 +214,68 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
187
214
|
});
|
|
188
215
|
this._syncErrorText();
|
|
189
216
|
}
|
|
190
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* Hands the label to the control as its accessible name, through whichever
|
|
219
|
+
* channel the control offers.
|
|
220
|
+
*
|
|
221
|
+
* It has to be handed over rather than referenced. `for` and
|
|
222
|
+
* `aria-labelledby` are IDREFs and an IDREF only resolves inside its own
|
|
223
|
+
* tree, so a label in this shadow root cannot point at a control in the
|
|
224
|
+
* consumer's light DOM.
|
|
225
|
+
*
|
|
226
|
+
* Which channel is a question about the control, not about its element
|
|
227
|
+
* kind, and those two came apart. `accessible-label` is the naming channel
|
|
228
|
+
* of this system: a component that has it forwards the name to whatever it
|
|
229
|
+
* renders inside. A native `<input>` takes `aria-label`. A component with
|
|
230
|
+
* neither carries a visible label of its own (`nldd-checkbox-field` and its
|
|
231
|
+
* siblings), and that label already names the control. Overwriting it would
|
|
232
|
+
* replace "Nieuwsbrief" with the caption above it, so those are left alone.
|
|
233
|
+
*
|
|
234
|
+
* The caption fills a gap, it does not overrule. A name set on the control
|
|
235
|
+
* itself is the more specific one, so this field leaves it alone and never
|
|
236
|
+
* takes back what it did not write.
|
|
237
|
+
*/
|
|
238
|
+
_applyAccessibleLabel(input) {
|
|
239
|
+
const attribute = 'accessibleLabel' in input
|
|
240
|
+
? 'accessible-label'
|
|
241
|
+
: input instanceof HTMLInputElement
|
|
242
|
+
|| input instanceof HTMLSelectElement
|
|
243
|
+
|| input instanceof HTMLTextAreaElement
|
|
244
|
+
? 'aria-label'
|
|
245
|
+
: null;
|
|
246
|
+
if (!attribute)
|
|
247
|
+
return;
|
|
248
|
+
this._appliedLabel = setOwnedAttribute(input, attribute, this.label, this._appliedLabel);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* The input this field is about: the first one in the light DOM, wrapped or
|
|
252
|
+
* not.
|
|
253
|
+
*
|
|
254
|
+
* A field may hold more than one. A radio group whose last option is
|
|
255
|
+
* "Anders" and the text field that appears with it are one question and
|
|
256
|
+
* belong in one field. The first input carries the caption, and the ones
|
|
257
|
+
* after it name themselves.
|
|
258
|
+
*
|
|
259
|
+
* Looking inside matters because a `div` or an `nldd-container` around your
|
|
260
|
+
* input is a normal thing to write. Stopping at that wrapper sent the id,
|
|
261
|
+
* the name and the error wiring to the wrapper and left the field unnamed,
|
|
262
|
+
* with nothing about it visible on screen.
|
|
263
|
+
*
|
|
264
|
+
* Finding nothing is a real answer: the field then wires up nothing at all
|
|
265
|
+
* and says so in DEV, rather than picking whatever came first and quietly
|
|
266
|
+
* treating a tag or a button as your input.
|
|
267
|
+
*/
|
|
191
268
|
_findInput() {
|
|
192
|
-
|
|
193
|
-
.
|
|
269
|
+
const children = Array.from(this.children)
|
|
270
|
+
.filter(el => !HELPER_TAGS.includes(el.tagName.toLowerCase()));
|
|
271
|
+
for (const child of children) {
|
|
272
|
+
if (isFormInput(child))
|
|
273
|
+
return child;
|
|
274
|
+
const nested = Array.from(child.querySelectorAll('*')).find(isFormInput);
|
|
275
|
+
if (nested)
|
|
276
|
+
return nested;
|
|
277
|
+
}
|
|
278
|
+
return undefined;
|
|
194
279
|
}
|
|
195
280
|
/**
|
|
196
281
|
* Reads `invalid` and `error-message` from the input and toggles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EACN,eAAe,EACf,uBAAuB,EACvB,wBAAwB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,GAC1B,MAAM,0BAA0B,CAAC;AAIlC,yFAAyF;AACzF,MAAM,WAAW,GAAG,CAAC,2BAA2B,EAAE,4BAA4B,CAAC,CAAC;AAEhF,sEAAsE;AACtE,0FAA0F;AAC1F,SAAS,UAAU;IAClB,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO,oBAAoB,IAAI,EAAE,CAAC;AACnC,CAAC;AAGD;;kEAEkE;AAG3D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QAGN;;;;;;;;;;;;;;WAcG;QAEH,mBAAc,GAA+B,SAAS,CAAC;QAEvD,0FAA0F;QAE1F,UAAK,GAAG,EAAE,CAAC;QAEX;;;WAGG;QAEH,oBAAe,GAAG,EAAE,CAAC;QAErB;;;;;;;WAOG;QAE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ACnG,6EAA6E;QAC7E,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;IACtB,CAAC;IAEQ,MAAM;QACd,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;;AAlBe,6BAAM,GAAG,wBAAwB,AAA3B,CAA4B;AAOlD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAC3B;AARJ,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CAoBlC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//#region node_modules/@codemirror/legacy-modes/mode/gherkin.js
|
|
2
|
+
var gherkin = {
|
|
3
|
+
name: "gherkin",
|
|
4
|
+
startState: function() {
|
|
5
|
+
return {
|
|
6
|
+
lineNumber: 0,
|
|
7
|
+
tableHeaderLine: false,
|
|
8
|
+
allowFeature: true,
|
|
9
|
+
allowBackground: false,
|
|
10
|
+
allowScenario: false,
|
|
11
|
+
allowSteps: false,
|
|
12
|
+
allowPlaceholders: false,
|
|
13
|
+
allowMultilineArgument: false,
|
|
14
|
+
inMultilineString: false,
|
|
15
|
+
inMultilineTable: false,
|
|
16
|
+
inKeywordLine: false
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
token: function(stream, state) {
|
|
20
|
+
if (stream.sol()) {
|
|
21
|
+
state.lineNumber++;
|
|
22
|
+
state.inKeywordLine = false;
|
|
23
|
+
if (state.inMultilineTable) {
|
|
24
|
+
state.tableHeaderLine = false;
|
|
25
|
+
if (!stream.match(/\s*\|/, false)) {
|
|
26
|
+
state.allowMultilineArgument = false;
|
|
27
|
+
state.inMultilineTable = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
stream.eatSpace();
|
|
32
|
+
if (state.allowMultilineArgument) {
|
|
33
|
+
if (state.inMultilineString) {
|
|
34
|
+
if (stream.match("\"\"\"")) {
|
|
35
|
+
state.inMultilineString = false;
|
|
36
|
+
state.allowMultilineArgument = false;
|
|
37
|
+
} else stream.match(/.*/);
|
|
38
|
+
return "string";
|
|
39
|
+
}
|
|
40
|
+
if (state.inMultilineTable) {
|
|
41
|
+
if (stream.match(/\|\s*/)) return "bracket";
|
|
42
|
+
else {
|
|
43
|
+
stream.match(/[^\|]*/);
|
|
44
|
+
return state.tableHeaderLine ? "header" : "string";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (stream.match("\"\"\"")) {
|
|
48
|
+
state.inMultilineString = true;
|
|
49
|
+
return "string";
|
|
50
|
+
} else if (stream.match("|")) {
|
|
51
|
+
state.inMultilineTable = true;
|
|
52
|
+
state.tableHeaderLine = true;
|
|
53
|
+
return "bracket";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (stream.match(/#.*/)) return "comment";
|
|
57
|
+
else if (!state.inKeywordLine && stream.match(/@\S+/)) return "tag";
|
|
58
|
+
else if (!state.inKeywordLine && state.allowFeature && stream.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)) {
|
|
59
|
+
state.allowScenario = true;
|
|
60
|
+
state.allowBackground = true;
|
|
61
|
+
state.allowPlaceholders = false;
|
|
62
|
+
state.allowSteps = false;
|
|
63
|
+
state.allowMultilineArgument = false;
|
|
64
|
+
state.inKeywordLine = true;
|
|
65
|
+
return "keyword";
|
|
66
|
+
} else if (!state.inKeywordLine && state.allowBackground && stream.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)) {
|
|
67
|
+
state.allowPlaceholders = false;
|
|
68
|
+
state.allowSteps = true;
|
|
69
|
+
state.allowBackground = false;
|
|
70
|
+
state.allowMultilineArgument = false;
|
|
71
|
+
state.inKeywordLine = true;
|
|
72
|
+
return "keyword";
|
|
73
|
+
} else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)) {
|
|
74
|
+
state.allowPlaceholders = true;
|
|
75
|
+
state.allowSteps = true;
|
|
76
|
+
state.allowMultilineArgument = false;
|
|
77
|
+
state.inKeywordLine = true;
|
|
78
|
+
return "keyword";
|
|
79
|
+
} else if (state.allowScenario && stream.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)) {
|
|
80
|
+
state.allowPlaceholders = false;
|
|
81
|
+
state.allowSteps = true;
|
|
82
|
+
state.allowBackground = false;
|
|
83
|
+
state.allowMultilineArgument = true;
|
|
84
|
+
return "keyword";
|
|
85
|
+
} else if (!state.inKeywordLine && state.allowScenario && stream.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)) {
|
|
86
|
+
state.allowPlaceholders = false;
|
|
87
|
+
state.allowSteps = true;
|
|
88
|
+
state.allowBackground = false;
|
|
89
|
+
state.allowMultilineArgument = false;
|
|
90
|
+
state.inKeywordLine = true;
|
|
91
|
+
return "keyword";
|
|
92
|
+
} else if (!state.inKeywordLine && state.allowSteps && stream.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)) {
|
|
93
|
+
state.inStep = true;
|
|
94
|
+
state.allowPlaceholders = true;
|
|
95
|
+
state.allowMultilineArgument = true;
|
|
96
|
+
state.inKeywordLine = true;
|
|
97
|
+
return "keyword";
|
|
98
|
+
} else if (stream.match(/"[^"]*"?/)) return "string";
|
|
99
|
+
else if (state.allowPlaceholders && stream.match(/<[^>]*>?/)) return "variable";
|
|
100
|
+
else {
|
|
101
|
+
stream.next();
|
|
102
|
+
stream.eatWhile(/[^@"<#]/);
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { gherkin };
|