@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,223 @@
|
|
|
1
|
+
//#region node_modules/@codemirror/legacy-modes/mode/shell.js
|
|
2
|
+
var words = {};
|
|
3
|
+
function define(style, dict) {
|
|
4
|
+
for (var i = 0; i < dict.length; i++) words[dict[i]] = style;
|
|
5
|
+
}
|
|
6
|
+
var commonAtoms = ["true", "false"];
|
|
7
|
+
var commonKeywords = [
|
|
8
|
+
"if",
|
|
9
|
+
"then",
|
|
10
|
+
"do",
|
|
11
|
+
"else",
|
|
12
|
+
"elif",
|
|
13
|
+
"while",
|
|
14
|
+
"until",
|
|
15
|
+
"for",
|
|
16
|
+
"in",
|
|
17
|
+
"esac",
|
|
18
|
+
"fi",
|
|
19
|
+
"fin",
|
|
20
|
+
"fil",
|
|
21
|
+
"done",
|
|
22
|
+
"exit",
|
|
23
|
+
"set",
|
|
24
|
+
"unset",
|
|
25
|
+
"export",
|
|
26
|
+
"function"
|
|
27
|
+
];
|
|
28
|
+
var commonCommands = [
|
|
29
|
+
"ab",
|
|
30
|
+
"awk",
|
|
31
|
+
"bash",
|
|
32
|
+
"beep",
|
|
33
|
+
"cat",
|
|
34
|
+
"cc",
|
|
35
|
+
"cd",
|
|
36
|
+
"chown",
|
|
37
|
+
"chmod",
|
|
38
|
+
"chroot",
|
|
39
|
+
"clear",
|
|
40
|
+
"cp",
|
|
41
|
+
"curl",
|
|
42
|
+
"cut",
|
|
43
|
+
"diff",
|
|
44
|
+
"echo",
|
|
45
|
+
"find",
|
|
46
|
+
"gawk",
|
|
47
|
+
"gcc",
|
|
48
|
+
"get",
|
|
49
|
+
"git",
|
|
50
|
+
"grep",
|
|
51
|
+
"hg",
|
|
52
|
+
"kill",
|
|
53
|
+
"killall",
|
|
54
|
+
"ln",
|
|
55
|
+
"ls",
|
|
56
|
+
"make",
|
|
57
|
+
"mkdir",
|
|
58
|
+
"openssl",
|
|
59
|
+
"mv",
|
|
60
|
+
"nc",
|
|
61
|
+
"nl",
|
|
62
|
+
"node",
|
|
63
|
+
"npm",
|
|
64
|
+
"ping",
|
|
65
|
+
"ps",
|
|
66
|
+
"restart",
|
|
67
|
+
"rm",
|
|
68
|
+
"rmdir",
|
|
69
|
+
"sed",
|
|
70
|
+
"service",
|
|
71
|
+
"sh",
|
|
72
|
+
"shopt",
|
|
73
|
+
"shred",
|
|
74
|
+
"source",
|
|
75
|
+
"sort",
|
|
76
|
+
"sleep",
|
|
77
|
+
"ssh",
|
|
78
|
+
"start",
|
|
79
|
+
"stop",
|
|
80
|
+
"su",
|
|
81
|
+
"sudo",
|
|
82
|
+
"svn",
|
|
83
|
+
"tee",
|
|
84
|
+
"telnet",
|
|
85
|
+
"top",
|
|
86
|
+
"touch",
|
|
87
|
+
"vi",
|
|
88
|
+
"vim",
|
|
89
|
+
"wall",
|
|
90
|
+
"wc",
|
|
91
|
+
"wget",
|
|
92
|
+
"who",
|
|
93
|
+
"write",
|
|
94
|
+
"yes",
|
|
95
|
+
"zsh"
|
|
96
|
+
];
|
|
97
|
+
define("atom", commonAtoms);
|
|
98
|
+
define("keyword", commonKeywords);
|
|
99
|
+
define("builtin", commonCommands);
|
|
100
|
+
function tokenBase(stream, state) {
|
|
101
|
+
if (stream.eatSpace()) return null;
|
|
102
|
+
var sol = stream.sol();
|
|
103
|
+
var ch = stream.next();
|
|
104
|
+
if (ch === "\\") {
|
|
105
|
+
stream.next();
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
if (ch === "'" || ch === "\"" || ch === "`") {
|
|
109
|
+
state.tokens.unshift(tokenString(ch, ch === "`" ? "quote" : "string"));
|
|
110
|
+
return tokenize(stream, state);
|
|
111
|
+
}
|
|
112
|
+
if (ch === "#") {
|
|
113
|
+
if (sol && stream.eat("!")) {
|
|
114
|
+
stream.skipToEnd();
|
|
115
|
+
return "meta";
|
|
116
|
+
}
|
|
117
|
+
stream.skipToEnd();
|
|
118
|
+
return "comment";
|
|
119
|
+
}
|
|
120
|
+
if (ch === "$") {
|
|
121
|
+
state.tokens.unshift(tokenDollar);
|
|
122
|
+
return tokenize(stream, state);
|
|
123
|
+
}
|
|
124
|
+
if (ch === "+" || ch === "=") return "operator";
|
|
125
|
+
if (ch === "-") {
|
|
126
|
+
stream.eat("-");
|
|
127
|
+
stream.eatWhile(/\w/);
|
|
128
|
+
return "attribute";
|
|
129
|
+
}
|
|
130
|
+
if (ch == "<") {
|
|
131
|
+
if (stream.match("<<")) return "operator";
|
|
132
|
+
var heredoc = stream.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
|
133
|
+
if (heredoc) {
|
|
134
|
+
state.tokens.unshift(tokenHeredoc(heredoc[1] || heredoc[2]));
|
|
135
|
+
return "string.special";
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (/\d/.test(ch)) {
|
|
139
|
+
stream.eatWhile(/\d/);
|
|
140
|
+
if (stream.eol() || !/\w/.test(stream.peek())) return "number";
|
|
141
|
+
}
|
|
142
|
+
stream.eatWhile(/[\w-]/);
|
|
143
|
+
var cur = stream.current();
|
|
144
|
+
if (stream.peek() === "=" && /\w+/.test(cur)) return "def";
|
|
145
|
+
return words.hasOwnProperty(cur) ? words[cur] : null;
|
|
146
|
+
}
|
|
147
|
+
function tokenString(quote, style) {
|
|
148
|
+
var close = quote == "(" ? ")" : quote == "{" ? "}" : quote;
|
|
149
|
+
return function(stream, state) {
|
|
150
|
+
var next, escaped = false;
|
|
151
|
+
while ((next = stream.next()) != null) {
|
|
152
|
+
if (next === close && !escaped) {
|
|
153
|
+
state.tokens.shift();
|
|
154
|
+
break;
|
|
155
|
+
} else if (next === "$" && !escaped && quote !== "'" && stream.peek() != close) {
|
|
156
|
+
escaped = true;
|
|
157
|
+
stream.backUp(1);
|
|
158
|
+
state.tokens.unshift(tokenDollar);
|
|
159
|
+
break;
|
|
160
|
+
} else if (!escaped && quote !== close && next === quote) {
|
|
161
|
+
state.tokens.unshift(tokenString(quote, style));
|
|
162
|
+
return tokenize(stream, state);
|
|
163
|
+
} else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
|
|
164
|
+
state.tokens.unshift(tokenStringStart(next, "string"));
|
|
165
|
+
stream.backUp(1);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
escaped = !escaped && next === "\\";
|
|
169
|
+
}
|
|
170
|
+
return style;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function tokenStringStart(quote, style) {
|
|
174
|
+
return function(stream, state) {
|
|
175
|
+
state.tokens[0] = tokenString(quote, style);
|
|
176
|
+
stream.next();
|
|
177
|
+
return tokenize(stream, state);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
var tokenDollar = function(stream, state) {
|
|
181
|
+
if (state.tokens.length > 1) stream.eat("$");
|
|
182
|
+
var ch = stream.next();
|
|
183
|
+
if (/['"({]/.test(ch)) {
|
|
184
|
+
state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
|
|
185
|
+
return tokenize(stream, state);
|
|
186
|
+
}
|
|
187
|
+
if (!/\d/.test(ch)) stream.eatWhile(/\w/);
|
|
188
|
+
state.tokens.shift();
|
|
189
|
+
return "def";
|
|
190
|
+
};
|
|
191
|
+
function tokenHeredoc(delim) {
|
|
192
|
+
return function(stream, state) {
|
|
193
|
+
if (stream.sol() && stream.string == delim) state.tokens.shift();
|
|
194
|
+
stream.skipToEnd();
|
|
195
|
+
return "string.special";
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function tokenize(stream, state) {
|
|
199
|
+
return (state.tokens[0] || tokenBase)(stream, state);
|
|
200
|
+
}
|
|
201
|
+
var shell = {
|
|
202
|
+
name: "shell",
|
|
203
|
+
startState: function() {
|
|
204
|
+
return { tokens: [] };
|
|
205
|
+
},
|
|
206
|
+
token: function(stream, state) {
|
|
207
|
+
return tokenize(stream, state);
|
|
208
|
+
},
|
|
209
|
+
languageData: {
|
|
210
|
+
autocomplete: commonAtoms.concat(commonKeywords, commonCommands),
|
|
211
|
+
closeBrackets: { brackets: [
|
|
212
|
+
"(",
|
|
213
|
+
"[",
|
|
214
|
+
"{",
|
|
215
|
+
"'",
|
|
216
|
+
"\"",
|
|
217
|
+
"`"
|
|
218
|
+
] },
|
|
219
|
+
commentTokens: { line: "#" }
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
//#endregion
|
|
223
|
+
export { shell };
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @element nldd-badge
|
|
17
17
|
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
18
|
-
* @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success')
|
|
18
|
+
* @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success'), a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …), or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'
|
|
19
|
+
* @attr {string} custom-color - A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it.
|
|
19
20
|
* @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
|
|
20
21
|
* @attr {string} text - Text (takes precedence over number)
|
|
21
22
|
* @attr {number} number - Numeric value. Shortened when it is over max
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
*/
|
|
27
28
|
import { LitElement } from 'lit';
|
|
28
29
|
import './../../content/icon/icon.js';
|
|
29
|
-
type Color = 'critical' | 'accent' | 'neutral' | 'warning' | 'success' | 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen';
|
|
30
|
+
type Color = 'critical' | 'accent' | 'neutral' | 'warning' | 'success' | 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen' | 'inherit';
|
|
30
31
|
type Size = 'sm' | 'md';
|
|
31
32
|
declare const NLDDBadge_base: (abstract new (...args: any[]) => LitElement & {
|
|
32
33
|
translations: Partial<{
|
|
@@ -38,6 +39,10 @@ export declare class NLDDBadge extends NLDDBadge_base {
|
|
|
38
39
|
static styles: import("lit").CSSResult;
|
|
39
40
|
size: Size;
|
|
40
41
|
color: Color;
|
|
42
|
+
/** Handed to the styles as a custom property rather than read from the
|
|
43
|
+
* attribute in CSS: `attr()` with a type is not available everywhere yet,
|
|
44
|
+
* and this keeps one code path. */
|
|
45
|
+
customColor: string;
|
|
41
46
|
pulse: boolean;
|
|
42
47
|
text: string;
|
|
43
48
|
number: number | undefined;
|
|
@@ -45,6 +50,7 @@ export declare class NLDDBadge extends NLDDBadge_base {
|
|
|
45
50
|
icon: string;
|
|
46
51
|
accessibleLabel: string;
|
|
47
52
|
decorative: boolean;
|
|
53
|
+
updated(changed: Map<string, unknown>): void;
|
|
48
54
|
get _hasText(): boolean;
|
|
49
55
|
get _isDot(): boolean;
|
|
50
56
|
get _isIconOnly(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GACP,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GACzD,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GACzD,OAAO,GAAG,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GACzC,YAAY,GAAG,MAAM,GACrB,aAAa,GAAG,OAAO,GACvB,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAClD,SAAS,CAAC;AACb,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;;;;;;;AAExB,qBACa,SAAU,SAAQ,cAAmD;IACjF,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAQ;IAGlB,KAAK,EAAE,KAAK,CAAc;IAE1B;;wCAEoC;IAEpC,WAAW,SAAM;IAGjB,KAAK,UAAS;IAGd,IAAI,SAAM;IAGV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAGvC,GAAG,SAAM;IAGT,IAAI,SAAM;IAGV,eAAe,SAAM;IAGrB,UAAU,UAAS;IAEV,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMrD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,aAAa,IAAI,MAAM,CAM1B;IAED,IAAI,UAAU,IAAI,MAAM,CAIvB;IAEQ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @element nldd-badge
|
|
17
17
|
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
18
|
-
* @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success')
|
|
18
|
+
* @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success'), a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …), or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'
|
|
19
|
+
* @attr {string} custom-color - A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it.
|
|
19
20
|
* @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
|
|
20
21
|
* @attr {string} text - Text (takes precedence over number)
|
|
21
22
|
* @attr {number} number - Numeric value. Shortened when it is over max
|
|
@@ -43,6 +44,10 @@ let NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTr
|
|
|
43
44
|
super(...arguments);
|
|
44
45
|
this.size = 'md';
|
|
45
46
|
this.color = 'critical';
|
|
47
|
+
/** Handed to the styles as a custom property rather than read from the
|
|
48
|
+
* attribute in CSS: `attr()` with a type is not available everywhere yet,
|
|
49
|
+
* and this keeps one code path. */
|
|
50
|
+
this.customColor = '';
|
|
46
51
|
this.pulse = false;
|
|
47
52
|
this.text = '';
|
|
48
53
|
this.number = undefined;
|
|
@@ -51,6 +56,14 @@ let NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTr
|
|
|
51
56
|
this.accessibleLabel = '';
|
|
52
57
|
this.decorative = false;
|
|
53
58
|
}
|
|
59
|
+
updated(changed) {
|
|
60
|
+
if (!changed.has('customColor'))
|
|
61
|
+
return;
|
|
62
|
+
if (this.customColor)
|
|
63
|
+
this.style.setProperty('--_custom-color', this.customColor);
|
|
64
|
+
else
|
|
65
|
+
this.style.removeProperty('--_custom-color');
|
|
66
|
+
}
|
|
54
67
|
get _hasText() {
|
|
55
68
|
return !!this.text || typeof this.number === 'number';
|
|
56
69
|
}
|
|
@@ -86,6 +99,9 @@ __decorate([
|
|
|
86
99
|
__decorate([
|
|
87
100
|
property({ reflect: true, converter: reflectNonDefault('critical') })
|
|
88
101
|
], NLDDBadge.prototype, "color", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
property({ reflect: true, attribute: 'custom-color', converter: reflectNonDefault('') })
|
|
104
|
+
], NLDDBadge.prototype, "customColor", void 0);
|
|
89
105
|
__decorate([
|
|
90
106
|
property({ type: Boolean, reflect: true })
|
|
91
107
|
], NLDDBadge.prototype, "pulse", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBAyUvB,CAAC"}
|
|
@@ -9,6 +9,7 @@ export const badgeStyles = css `
|
|
|
9
9
|
/* # Host */
|
|
10
10
|
|
|
11
11
|
:host {
|
|
12
|
+
--_custom-color: transparent;
|
|
12
13
|
--_background-color: var(--semantics-categories-critical-filled-background-color);
|
|
13
14
|
--_border-color: var(--semantics-categories-critical-filled-highlight-border-color);
|
|
14
15
|
--_border-width: var(--components-badge-border-width);
|
|
@@ -40,6 +41,18 @@ export const badgeStyles = css `
|
|
|
40
41
|
|
|
41
42
|
/* ## Color */
|
|
42
43
|
|
|
44
|
+
/* color on the host, for the same reason as custom-color below: the contrast
|
|
45
|
+
token reads currentColor, so without this the flip is computed against the
|
|
46
|
+
inherited color while the fill comes from the context channel. A row that
|
|
47
|
+
sets the channel to white over dark text then paints white on white. */
|
|
48
|
+
:host([color="inherit"]) {
|
|
49
|
+
color: var(--context-content-color, currentColor);
|
|
50
|
+
|
|
51
|
+
--_background-color: currentColor;
|
|
52
|
+
--_border-color: transparent;
|
|
53
|
+
--_content-color: var(--semantics-content-contrast-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
43
56
|
:host([color="accent"]) {
|
|
44
57
|
--_background-color: var(--semantics-categories-accent-filled-background-color);
|
|
45
58
|
--_border-color: var(--semantics-categories-accent-filled-highlight-border-color);
|
|
@@ -175,6 +188,17 @@ export const badgeStyles = css `
|
|
|
175
188
|
--_content-color: var(--semantics-categories-mintgroen-filled-content-color);
|
|
176
189
|
}
|
|
177
190
|
|
|
191
|
+
/* color on the host rather than on the fill: the contrast token reads
|
|
192
|
+
currentColor, so the text lands on black or white without a second formula
|
|
193
|
+
to keep in step. After every [color] rule, so it wins over one. */
|
|
194
|
+
:host([custom-color]) {
|
|
195
|
+
color: var(--_custom-color);
|
|
196
|
+
|
|
197
|
+
--_background-color: var(--_custom-color);
|
|
198
|
+
--_border-color: transparent;
|
|
199
|
+
--_content-color: var(--semantics-content-contrast-color);
|
|
200
|
+
}
|
|
201
|
+
|
|
178
202
|
:host([hidden]) {
|
|
179
203
|
display: none;
|
|
180
204
|
}
|
|
@@ -197,7 +221,6 @@ export const badgeStyles = css `
|
|
|
197
221
|
gap: var(--_gap);
|
|
198
222
|
align-items: center;
|
|
199
223
|
justify-content: center;
|
|
200
|
-
color: var(--_content-color);
|
|
201
224
|
font: var(--_font);
|
|
202
225
|
white-space: nowrap;
|
|
203
226
|
}
|
|
@@ -206,15 +229,15 @@ export const badgeStyles = css `
|
|
|
206
229
|
.badge {
|
|
207
230
|
border: 1px solid CanvasText;
|
|
208
231
|
background-color: Canvas;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.badge__icon,
|
|
235
|
+
.badge__text {
|
|
209
236
|
color: CanvasText;
|
|
210
237
|
}
|
|
211
238
|
}
|
|
212
239
|
|
|
213
|
-
/*
|
|
214
|
-
colour, so it works on a dot as well as on a counter. Behind the content
|
|
215
|
-
and inert, so it never affects layout or hit area.
|
|
216
|
-
|
|
217
|
-
A growing box-shadow rather than a scale: scaling multiplies, so a wide
|
|
240
|
+
/* A growing box-shadow rather than a scale: scaling multiplies, so a wide
|
|
218
241
|
badge would throw a halo that is far wider than it is tall. A spread adds
|
|
219
242
|
the same distance on every side, whatever the badge measures.
|
|
220
243
|
|
|
@@ -279,7 +302,12 @@ export const badgeStyles = css `
|
|
|
279
302
|
|
|
280
303
|
/* # Elements */
|
|
281
304
|
|
|
305
|
+
/* The content carries the content color, not .badge itself: the fill is a
|
|
306
|
+
custom property that resolves where it is used, and a fill of currentColor
|
|
307
|
+
on an element that also sets color would take that color instead of the
|
|
308
|
+
one around it. Mirrors nldd-avatar. */
|
|
282
309
|
.badge__icon {
|
|
310
|
+
color: var(--_content-color);
|
|
283
311
|
display: inline-flex;
|
|
284
312
|
width: var(--_icon-size);
|
|
285
313
|
height: var(--_icon-size);
|
|
@@ -298,6 +326,7 @@ export const badgeStyles = css `
|
|
|
298
326
|
}
|
|
299
327
|
|
|
300
328
|
.badge__text {
|
|
329
|
+
color: var(--_content-color);
|
|
301
330
|
display: inline-block;
|
|
302
331
|
}
|
|
303
332
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwB1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiTrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"modal-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,yBAsG7B,CAAC"}
|
|
@@ -27,6 +27,13 @@ export const modalDialogStyles = css `
|
|
|
27
27
|
/* # Block */
|
|
28
28
|
|
|
29
29
|
.modal-dialog {
|
|
30
|
+
/* Where the app's layout context ends, as in nldd-sheet: the dialog scrolls
|
|
31
|
+
itself and starts at its own top edge, so anything inside it stops
|
|
32
|
+
following the app's scroll mode and its layer offsets. */
|
|
33
|
+
--context-scroll-mode: nested;
|
|
34
|
+
--context-layer-top: 0px;
|
|
35
|
+
--context-layer-bottom: 0px;
|
|
36
|
+
|
|
30
37
|
box-sizing: border-box;
|
|
31
38
|
outline: none;
|
|
32
39
|
border: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAahC,kBAAkB
|
|
1
|
+
{"version":3,"file":"modal-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAahC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA+BC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D3B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//#region node_modules/@codemirror/legacy-modes/mode/toml.js
|
|
2
|
+
var toml = {
|
|
3
|
+
name: "toml",
|
|
4
|
+
startState: function() {
|
|
5
|
+
return {
|
|
6
|
+
inString: false,
|
|
7
|
+
stringType: "",
|
|
8
|
+
lhs: true,
|
|
9
|
+
inArray: 0
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
token: function(stream, state) {
|
|
13
|
+
let quote;
|
|
14
|
+
if (!state.inString && (quote = stream.match(/^('''|"""|'|")/))) {
|
|
15
|
+
state.stringType = quote[0];
|
|
16
|
+
state.inString = true;
|
|
17
|
+
}
|
|
18
|
+
if (stream.sol() && !state.inString && state.inArray === 0) state.lhs = true;
|
|
19
|
+
if (state.inString) {
|
|
20
|
+
while (state.inString) if (stream.match(state.stringType)) state.inString = false;
|
|
21
|
+
else if (stream.peek() === "\\") {
|
|
22
|
+
stream.next();
|
|
23
|
+
stream.next();
|
|
24
|
+
} else if (stream.eol()) break;
|
|
25
|
+
else stream.match(/^.[^\\\"\']*/);
|
|
26
|
+
return state.lhs ? "property" : "string";
|
|
27
|
+
} else if (state.inArray && stream.peek() === "]") {
|
|
28
|
+
stream.next();
|
|
29
|
+
state.inArray--;
|
|
30
|
+
return "bracket";
|
|
31
|
+
} else if (state.lhs && stream.peek() === "[" && stream.skipTo("]")) {
|
|
32
|
+
stream.next();
|
|
33
|
+
if (stream.peek() === "]") stream.next();
|
|
34
|
+
return "atom";
|
|
35
|
+
} else if (stream.peek() === "#") {
|
|
36
|
+
stream.skipToEnd();
|
|
37
|
+
return "comment";
|
|
38
|
+
} else if (stream.eatSpace()) return null;
|
|
39
|
+
else if (state.lhs && stream.eatWhile(function(c) {
|
|
40
|
+
return c != "=" && c != " ";
|
|
41
|
+
})) return "property";
|
|
42
|
+
else if (state.lhs && stream.peek() === "=") {
|
|
43
|
+
stream.next();
|
|
44
|
+
state.lhs = false;
|
|
45
|
+
return null;
|
|
46
|
+
} else if (!state.lhs && stream.match(/^\d\d\d\d[\d\-\:\.T]*Z/)) return "atom";
|
|
47
|
+
else if (!state.lhs && (stream.match("true") || stream.match("false"))) return "atom";
|
|
48
|
+
else if (!state.lhs && stream.peek() === "[") {
|
|
49
|
+
state.inArray++;
|
|
50
|
+
stream.next();
|
|
51
|
+
return "bracket";
|
|
52
|
+
} else if (!state.lhs && stream.match(/^\-?\d+(?:\.\d+)?/)) return "number";
|
|
53
|
+
else if (!stream.eatSpace()) stream.next();
|
|
54
|
+
return null;
|
|
55
|
+
},
|
|
56
|
+
languageData: { commentTokens: { line: "#" } }
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { toml };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { t as __decorate } from "./decorate-BKn10QQi.js";
|
|
2
|
+
import { t as breakpoints } from "./breakpoints-CkxsiRgH.js";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
//#region src/utilities/visibility-mixin.ts
|
|
5
|
+
function resolveHideBelow(value) {
|
|
6
|
+
if (value === "md") return breakpoints.smMax;
|
|
7
|
+
if (value === "lg") return breakpoints.mdMax;
|
|
8
|
+
if (value === "sm") return null;
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
function resolveHideAbove(value) {
|
|
12
|
+
if (value === "sm") return breakpoints.mdMin;
|
|
13
|
+
if (value === "md") return breakpoints.lgMin;
|
|
14
|
+
if (value === "lg") return null;
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The open edges resolve to null, so the attribute is written but nothing ever
|
|
19
|
+
* hides. That reads like a working value, and the name invites it: `hide-below`
|
|
20
|
+
* names the breakpoint you hide BELOW, so "hide it at sm" comes out as
|
|
21
|
+
* `hide-below="md"` and `hide-below="sm"` does nothing at all. Say so once,
|
|
22
|
+
* rather than let it look applied.
|
|
23
|
+
*/
|
|
24
|
+
function warnNoOp(host, attribute, value, resolved, openEdge, edgeLabel) {
|
|
25
|
+
if (value !== openEdge || resolved !== null) return;
|
|
26
|
+
console.warn(`[${host.localName}] ${attribute}="${openEdge}" never hides anything: there is no breakpoint ${edgeLabel}. The value names the breakpoint you hide below, so the smallest one that hides is "${attribute === "hide-below" ? "md" : "sm"}". Leave the attribute off if you meant "always visible".`);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Adds `hide-below` and `hide-above` attributes that toggle visibility based
|
|
30
|
+
* on the inline-size of an ancestor CSS container.
|
|
31
|
+
*
|
|
32
|
+
* Without a `containerName` argument the generated rule is an anonymous
|
|
33
|
+
* `@container (…)` query — it matches the nearest ancestor that declares
|
|
34
|
+
* `container-type: inline-size`. Pass a name to target a specific container
|
|
35
|
+
* (e.g. `'cells-container'` for cells inside `nldd-list`, which sets that
|
|
36
|
+
* name inline on its host as a Safari shadow-DOM workaround).
|
|
37
|
+
*
|
|
38
|
+
* Values are either a named breakpoint — `sm` / `md` / `lg` — or a CSS length
|
|
39
|
+
* (e.g. '320px', '20rem'). Named values resolve to the standard breakpoint
|
|
40
|
+
* thresholds: `hide-below` uses the breakpoint's lower bound (e.g.
|
|
41
|
+
* `hide-below="lg"` hides in sm+md and shows in lg), `hide-above` its upper
|
|
42
|
+
* bound; the open edges (below sm, above lg) are no-ops. Container queries can't
|
|
43
|
+
* read CSS variables in their conditions, so the query rule is generated at
|
|
44
|
+
* runtime and injected as a <style> element in the component's shadow root,
|
|
45
|
+
* wrapped in `:host { @container <name>? (…) { display: none !important; } }`
|
|
46
|
+
* (nested form — the flattened `@container { :host { … } }` is unreliable in
|
|
47
|
+
* Safari).
|
|
48
|
+
*
|
|
49
|
+
* @mixin VisibilityMixin
|
|
50
|
+
*
|
|
51
|
+
* @attr {string} hide-below - Hides the element below this breakpoint: `sm` | `md` | `lg`, or a CSS length. The value names the breakpoint you hide BELOW, so `hide-below="md"` is hidden in sm and visible from md up. `sm` is the open edge and never hides (DEV-warns).
|
|
52
|
+
* @attr {string} hide-above - Hides the element above this breakpoint: `sm` | `md` | `lg`, or a CSS length. `hide-above="sm"` is hidden in md and lg. `lg` is the open edge and never hides (DEV-warns).
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Cell inside nldd-list — target the named cells-container
|
|
57
|
+
* class NLDDTextCell extends VisibilityMixin(LitElement, 'cells-container') { … }
|
|
58
|
+
*
|
|
59
|
+
* // Other component — fall back to the nearest unnamed container
|
|
60
|
+
* class SomeComponent extends VisibilityMixin(LitElement) { … }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
function VisibilityMixin(Base, containerName) {
|
|
64
|
+
class WithVisibility extends Base {
|
|
65
|
+
updated(changed) {
|
|
66
|
+
super.updated(changed);
|
|
67
|
+
if (changed.has("hideBelow") || changed.has("hideAbove")) this._updateVisibilityStyle();
|
|
68
|
+
}
|
|
69
|
+
_updateVisibilityStyle() {
|
|
70
|
+
if (!this.shadowRoot) return;
|
|
71
|
+
const containerPrefix = containerName ? `${containerName} ` : "";
|
|
72
|
+
const rules = [];
|
|
73
|
+
const below = this.hideBelow ? resolveHideBelow(this.hideBelow) : null;
|
|
74
|
+
warnNoOp(this, "hide-below", this.hideBelow, below, "sm", "below sm");
|
|
75
|
+
if (below) rules.push(`:host { @container ${containerPrefix}(max-width: ${below}) { display: none !important; } }`);
|
|
76
|
+
const above = this.hideAbove ? resolveHideAbove(this.hideAbove) : null;
|
|
77
|
+
warnNoOp(this, "hide-above", this.hideAbove, above, "lg", "above lg");
|
|
78
|
+
if (above) rules.push(`:host { @container ${containerPrefix}(min-width: ${above}) { display: none !important; } }`);
|
|
79
|
+
if (rules.length === 0) {
|
|
80
|
+
this._visibilityStyle?.remove();
|
|
81
|
+
this._visibilityStyle = void 0;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!this._visibilityStyle) {
|
|
85
|
+
this._visibilityStyle = document.createElement("style");
|
|
86
|
+
this.shadowRoot.appendChild(this._visibilityStyle);
|
|
87
|
+
}
|
|
88
|
+
this._visibilityStyle.textContent = rules.join("\n");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
__decorate([property({
|
|
92
|
+
type: String,
|
|
93
|
+
reflect: true,
|
|
94
|
+
attribute: "hide-below"
|
|
95
|
+
})], WithVisibility.prototype, "hideBelow", void 0);
|
|
96
|
+
__decorate([property({
|
|
97
|
+
type: String,
|
|
98
|
+
reflect: true,
|
|
99
|
+
attribute: "hide-above"
|
|
100
|
+
})], WithVisibility.prototype, "hideAbove", void 0);
|
|
101
|
+
return WithVisibility;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { VisibilityMixin as t };
|