@limetech/lime-elements 39.9.4 → 39.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/device-C9O7lYI9.js +50 -0
- package/dist/cjs/hotkeys-BtR8uxvl.js +219 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +143 -9
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +2 -2
- package/dist/cjs/limel-helper-line_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-hotkey.cjs.entry.js +128 -0
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-list-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +12 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +5 -5
- package/dist/cjs/limel-portal_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +2 -2
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/badge/badge.js +3 -3
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/button-group/button-group.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip-set/chip-set.js +2 -2
- package/dist/collection/components/circular-progress/circular-progress.js +2 -2
- package/dist/collection/components/code-editor/code-editor.js +2 -2
- package/dist/collection/components/dialog/dialog.js +3 -3
- package/dist/collection/components/dynamic-label/dynamic-label.js +1 -1
- package/dist/collection/components/file/file.js +2 -2
- package/dist/collection/components/file-dropzone/file-dropzone.js +2 -2
- package/dist/collection/components/file-input/file-input.js +2 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/help/help.js +3 -3
- package/dist/collection/components/helper-line/helper-line.js +3 -3
- package/dist/collection/components/hotkey/format-display-token.js +95 -0
- package/dist/collection/components/hotkey/hotkey.css +136 -0
- package/dist/collection/components/hotkey/hotkey.js +92 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +3 -3
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/linear-progress/linear-progress.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +52 -2
- package/dist/collection/components/markdown/markdown.js +1 -1
- package/dist/collection/components/menu/menu.js +137 -5
- package/dist/collection/components/menu-list/menu-list-renderer.js +4 -1
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +1 -1
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +4 -4
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/shortcut/shortcut.js +2 -2
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +3 -3
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +3 -3
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/table/table.js +4 -4
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/esm/device-B-tmXAXV.js +45 -0
- package/dist/esm/hotkeys-BxrRWYts.js +215 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +143 -9
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +2 -2
- package/dist/esm/limel-file-dropzone_2.entry.js +2 -2
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_2.entry.js +3 -3
- package/dist/esm/limel-hotkey.entry.js +126 -0
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-list-item.entry.js +2 -2
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +12 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +5 -5
- package/dist/esm/limel-portal_3.entry.js +4 -4
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +2 -2
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +3 -3
- package/dist/esm/limel-text-editor-link-menu.entry.js +3 -3
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-a30bf079.entry.js → p-12646794.entry.js} +1 -1
- package/dist/lime-elements/{p-f70b8487.entry.js → p-1635ece7.entry.js} +1 -1
- package/dist/lime-elements/{p-86eebe44.entry.js → p-17e1d911.entry.js} +1 -1
- package/dist/lime-elements/{p-8c418a0b.entry.js → p-23c1033d.entry.js} +1 -1
- package/dist/lime-elements/{p-57c53ed4.entry.js → p-268d2a30.entry.js} +1 -1
- package/dist/lime-elements/{p-e2f1b070.entry.js → p-2750b828.entry.js} +1 -1
- package/dist/lime-elements/{p-1a3a7374.entry.js → p-30e54f05.entry.js} +1 -1
- package/dist/lime-elements/{p-1d4285b1.entry.js → p-3e68cbda.entry.js} +2 -2
- package/dist/lime-elements/{p-de1e5ad9.entry.js → p-438652d6.entry.js} +1 -1
- package/dist/lime-elements/{p-ef75eed9.entry.js → p-59716b48.entry.js} +1 -1
- package/dist/lime-elements/{p-b11751c9.entry.js → p-60260fa3.entry.js} +1 -1
- package/dist/lime-elements/{p-444c7966.entry.js → p-607ad3b7.entry.js} +1 -1
- package/dist/lime-elements/{p-b6ccc921.entry.js → p-61253dea.entry.js} +1 -1
- package/dist/lime-elements/{p-a2295fa6.entry.js → p-689770db.entry.js} +1 -1
- package/dist/lime-elements/{p-08d1b87a.entry.js → p-6fd84e57.entry.js} +1 -1
- package/dist/lime-elements/{p-1547b9c8.entry.js → p-733ebba6.entry.js} +1 -1
- package/dist/lime-elements/{p-288aa326.entry.js → p-77f42eff.entry.js} +1 -1
- package/dist/lime-elements/{p-d5da5b05.entry.js → p-7bd71b2b.entry.js} +1 -1
- package/dist/lime-elements/{p-266c228c.entry.js → p-86a001e2.entry.js} +1 -1
- package/dist/lime-elements/{p-aeebf410.entry.js → p-87c5e951.entry.js} +1 -1
- package/dist/lime-elements/p-8805080c.entry.js +1 -0
- package/dist/lime-elements/{p-c6b9425b.entry.js → p-889a05e4.entry.js} +1 -1
- package/dist/lime-elements/{p-e14b7393.entry.js → p-8b106865.entry.js} +1 -1
- package/dist/lime-elements/{p-b3622713.entry.js → p-8e3cc9b0.entry.js} +1 -1
- package/dist/lime-elements/{p-f59590f1.entry.js → p-9015c90c.entry.js} +2 -2
- package/dist/lime-elements/{p-287c4fb1.entry.js → p-9abfb8ba.entry.js} +1 -1
- package/dist/lime-elements/{p-da9f1fc4.entry.js → p-9d629f5f.entry.js} +10 -10
- package/dist/lime-elements/p-B-tmXAXV.js +1 -0
- package/dist/lime-elements/p-BxrRWYts.js +1 -0
- package/dist/lime-elements/p-a026cc24.entry.js +1 -0
- package/dist/lime-elements/{p-74cd80a9.entry.js → p-a243b8e2.entry.js} +1 -1
- package/dist/lime-elements/p-b64ae828.entry.js +1 -0
- package/dist/lime-elements/{p-bb38bb3c.entry.js → p-b91b1aed.entry.js} +1 -1
- package/dist/lime-elements/{p-d6d177bc.entry.js → p-be0cbddb.entry.js} +1 -1
- package/dist/lime-elements/p-c20a620d.entry.js +1 -0
- package/dist/lime-elements/{p-1590b341.entry.js → p-c84911e6.entry.js} +1 -1
- package/dist/lime-elements/{p-2af214de.entry.js → p-c9591213.entry.js} +1 -1
- package/dist/lime-elements/{p-268a695b.entry.js → p-ce20d720.entry.js} +1 -1
- package/dist/lime-elements/{p-eaac5ad2.entry.js → p-e0716b51.entry.js} +1 -1
- package/dist/lime-elements/{p-37b41bad.entry.js → p-e89dcf27.entry.js} +1 -1
- package/dist/lime-elements/{p-3683e2e2.entry.js → p-f92f4f00.entry.js} +1 -1
- package/dist/lime-elements/{p-ef9bb368.entry.js → p-f9cfcd03.entry.js} +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/banner/banner.d.ts +1 -1
- package/dist/types/components/button-group/button-group.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/chip-set/chip-set.d.ts +1 -1
- package/dist/types/components/circular-progress/circular-progress.d.ts +1 -1
- package/dist/types/components/code-editor/code-editor.d.ts +1 -1
- package/dist/types/components/dialog/dialog.d.ts +1 -1
- package/dist/types/components/dynamic-label/dynamic-label.d.ts +1 -1
- package/dist/types/components/file/file.d.ts +1 -1
- package/dist/types/components/file-dropzone/file-dropzone.d.ts +1 -1
- package/dist/types/components/file-input/file-input.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +1 -1
- package/dist/types/components/help/help.d.ts +1 -1
- package/dist/types/components/helper-line/helper-line.d.ts +1 -1
- package/dist/types/components/hotkey/format-display-token.d.ts +15 -0
- package/dist/types/components/hotkey/hotkey.d.ts +27 -0
- package/dist/types/components/info-tile/info-tile.d.ts +1 -1
- package/dist/types/components/linear-progress/linear-progress.d.ts +1 -1
- package/dist/types/components/list/list.d.ts +1 -1
- package/dist/types/components/list-item/menu-item-meta/menu-item-meta.d.ts +8 -0
- package/dist/types/components/menu/menu.d.ts +14 -1
- package/dist/types/components/menu/menu.types.d.ts +14 -0
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/shortcut/shortcut.d.ts +1 -1
- package/dist/types/components/snackbar/snackbar.d.ts +1 -1
- package/dist/types/components/spinner/spinner.d.ts +1 -1
- package/dist/types/components/switch/switch.d.ts +1 -1
- package/dist/types/components/tab-bar/tab-bar.d.ts +1 -1
- package/dist/types/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/types/components/table/table.d.ts +1 -1
- package/dist/types/components.d.ts +211 -108
- package/package.json +1 -1
- package/dist/cjs/device-CDZCRYph.js +0 -30
- package/dist/esm/device-CY72JnWG.js +0 -26
- package/dist/lime-elements/p-3e9a1f2b.entry.js +0 -1
- package/dist/lime-elements/p-5178cc39.entry.js +0 -1
- package/dist/lime-elements/p-7afe6c3e.entry.js +0 -1
- package/dist/lime-elements/p-CY72JnWG.js +0 -1
|
@@ -19,7 +19,7 @@ const PERCENT = 100;
|
|
|
19
19
|
* full progress.
|
|
20
20
|
* :::
|
|
21
21
|
*
|
|
22
|
-
* @exampleComponent limel-example-circular-progress
|
|
22
|
+
* @exampleComponent limel-example-circular-progress-basic
|
|
23
23
|
* @exampleComponent limel-example-circular-progress-sizes
|
|
24
24
|
* @exampleComponent limel-example-circular-progress-props
|
|
25
25
|
* @exampleComponent limel-example-circular-progress-css-variables
|
|
@@ -60,7 +60,7 @@ export class CircularProgress {
|
|
|
60
60
|
};
|
|
61
61
|
const currentPercentage = (this.value * PERCENT) / this.maxValue + '%';
|
|
62
62
|
const value = Math.round(this.value * 10) / 10;
|
|
63
|
-
return (h("div", { key: '
|
|
63
|
+
return (h("div", { key: 'b2de8450baa7722c2a362a41ea97de6b694bf6ba', role: "progressbar", class: classList, "aria-label": "%", "aria-valuemin": "0", "aria-valuemax": this.maxValue, "aria-valuenow": this.value, style: { '--percentage': currentPercentage } }, this.renderPrefix(), h("span", { key: 'e3fdb555dd58a1a18227659761e9ee9171050b79', class: "value" }, abbreviate(value), h("span", { key: 'a0d25b4e71beaf4993bb78e96eb2094020b5de52', class: "suffix" }, this.suffix))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "limel-circular-progress"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ import "codemirror/addon/fold/xml-fold";
|
|
|
16
16
|
import jslint from "jsonlint-mod";
|
|
17
17
|
import translate from "../../global/translations";
|
|
18
18
|
/**
|
|
19
|
-
* @exampleComponent limel-example-code-editor
|
|
19
|
+
* @exampleComponent limel-example-code-editor-basic
|
|
20
20
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
21
21
|
* @exampleComponent limel-example-code-editor-fold-lint-wrap
|
|
22
22
|
* @exampleComponent limel-example-code-editor-copy
|
|
@@ -250,7 +250,7 @@ export class CodeEditor {
|
|
|
250
250
|
'is-dark-mode': this.isDarkMode(),
|
|
251
251
|
'is-light-mode': !this.isDarkMode(),
|
|
252
252
|
};
|
|
253
|
-
return (h(Host, { key: '
|
|
253
|
+
return (h(Host, { key: '648df79d8ea88a3f87028743197214b45f3708af' }, this.renderCopyButton(), h("limel-notched-outline", { key: '8ec590da7d7cfb0c313ae61ecf517f36e978a756', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasFloatingLabel: true }, h("div", { key: '3fd86155267f590d9578ed673d56e1e2fe6ee7ce', slot: "content", class: classList })), this.renderHelperLine()));
|
|
254
254
|
}
|
|
255
255
|
forceRedraw() {
|
|
256
256
|
// eslint-disable-next-line sonarjs/pseudo-random
|
|
@@ -20,7 +20,7 @@ import { createRandomString } from "../../util/random-string";
|
|
|
20
20
|
* from Lime Web Components to open dialogs in Lime CRM.
|
|
21
21
|
* :::
|
|
22
22
|
*
|
|
23
|
-
* @exampleComponent limel-example-dialog
|
|
23
|
+
* @exampleComponent limel-example-dialog-basic
|
|
24
24
|
* @exampleComponent limel-example-dialog-nested-close-events
|
|
25
25
|
* @exampleComponent limel-example-dialog-heading
|
|
26
26
|
* @exampleComponent limel-example-dialog-heading-actions
|
|
@@ -84,10 +84,10 @@ export class Dialog {
|
|
|
84
84
|
this.mdcDialog.destroy();
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '748566bd65db98ee75a743a7deedc7d0c9f80a90', class: {
|
|
88
88
|
'mdc-dialog': true,
|
|
89
89
|
'full-screen': !!this.fullscreen,
|
|
90
|
-
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, h("input", { key: '
|
|
90
|
+
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, h("input", { key: '15d2c40108a2348f54066eab22d507c6a9b3eda9', hidden: true, id: "initialFocusEl" }), h("div", { key: 'f46ee440d02b257bde93273936ce1dfe8dc324ea', class: "mdc-dialog__container" }, h("div", { key: '9ba9919b2b880039ede217c0608d9f780d6ca770', class: "mdc-dialog__surface" }, h("input", { key: '07bb68ae4c7b8d91cb7f0fd02105738160bd9e8f', type: "button", id: "initialFocusElement" }), this.renderHeading(), h("div", { key: '1729cb0f7f442b3ee56272387de42b462926275c', class: "mdc-dialog__content", id: 'limel-dialog-content-' + this.id }, h("slot", { key: 'a5554b316a4e57700a2902ae4499f594045f267d' })), this.renderFooter())), h("div", { key: '85ecb0922ece938a5de20b804b6a2590f98032df', class: "mdc-dialog__scrim" })));
|
|
91
91
|
}
|
|
92
92
|
watchHandler(newValue, oldValue) {
|
|
93
93
|
if (oldValue === newValue) {
|
|
@@ -13,7 +13,7 @@ import { h } from "@stencil/core";
|
|
|
13
13
|
* provide the best way of _visualizing information_, potentially leading to
|
|
14
14
|
* confusion and negatively affecting the end-users' experience.
|
|
15
15
|
*
|
|
16
|
-
* @exampleComponent limel-example-dynamic-label
|
|
16
|
+
* @exampleComponent limel-example-dynamic-label-basic
|
|
17
17
|
* @exampleComponent limel-example-dynamic-label-readonly-boolean
|
|
18
18
|
*/
|
|
19
19
|
export class DynamicLabel {
|
|
@@ -35,7 +35,7 @@ const DEFAULT_FILE_CHIP = {
|
|
|
35
35
|
* and similar phrases...
|
|
36
36
|
* :::
|
|
37
37
|
*
|
|
38
|
-
* @exampleComponent limel-example-file
|
|
38
|
+
* @exampleComponent limel-example-file-basic
|
|
39
39
|
* @exampleComponent limel-example-file-custom-icon
|
|
40
40
|
* @exampleComponent limel-example-file-menu-items
|
|
41
41
|
* @exampleComponent limel-example-file-accepted-types
|
|
@@ -89,7 +89,7 @@ export class File {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '4b91f02cff596bca5da1a635ce24d2bb8a5154e1' }, h("limel-file-dropzone", { key: 'c3636964ee41bd5396fe667cc983a74256845af5', disabled: this.disabled || this.readonly || !!this.value, accept: this.accept, onFilesSelected: this.handleNewFiles }, this.renderChipset()), this.renderDragAndDropTip()));
|
|
93
93
|
}
|
|
94
94
|
renderDragAndDropTip() {
|
|
95
95
|
if (this.value || this.disabled || this.readonly) {
|
|
@@ -14,7 +14,7 @@ import { partition } from "lodash-es";
|
|
|
14
14
|
* The event detail would be an array of `FileInfo` objects,
|
|
15
15
|
* each representing a file dropped into the dropzone.
|
|
16
16
|
*
|
|
17
|
-
* @exampleComponent limel-example-file-dropzone
|
|
17
|
+
* @exampleComponent limel-example-file-dropzone-basic
|
|
18
18
|
* @exampleComponent limel-example-file-dropzone-type-filtering
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
@@ -90,7 +90,7 @@ export class FileDropzone {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: 'a66ef9c3d9a005567749b61967a63caa4496135a', onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave }, h("slot", { key: '7a770aa9f98365da4b83038662f04c0e9e5c20c6' }), this.renderOnDragLayout()));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "limel-file-dropzone"; }
|
|
96
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ import { createFileInfo } from "../../util/files";
|
|
|
14
14
|
* The event detail would be an array of `FileInfo` objects,
|
|
15
15
|
* each representing a file dropped into the dropzone.
|
|
16
16
|
*
|
|
17
|
-
* @exampleComponent limel-example-file-input
|
|
17
|
+
* @exampleComponent limel-example-file-input-basic
|
|
18
18
|
* @exampleComponent limel-example-file-input-type-filtering
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
@@ -71,7 +71,7 @@ export class FileInput {
|
|
|
71
71
|
this.fileInput = this.element.shadowRoot.getElementById(this.fileInputId);
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '62d72f49b1a71bef9c5b91c36f34f763a04d78e2', onClick: this.handleClick, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown }, h("input", { key: '72272f710f8ffb09eec2ace7409ab516ec4f80bd', hidden: true, id: this.fileInputId, onChange: this.handleFileChange, type: "file", accept: this.accept, disabled: this.disabled, multiple: this.multiple }), h("slot", { key: '7ecff23ba41d76a23a2b8a542f56044615cb8b24' })));
|
|
75
75
|
}
|
|
76
76
|
handleKeyDown(event) {
|
|
77
77
|
if (event.code === 'Tab' ||
|
|
@@ -40,7 +40,7 @@ import { getIconName } from "../icon/get-icon-props";
|
|
|
40
40
|
* and take a lot of attention from users.
|
|
41
41
|
* :::
|
|
42
42
|
*
|
|
43
|
-
* @exampleComponent limel-example-header
|
|
43
|
+
* @exampleComponent limel-example-header-basic
|
|
44
44
|
* @exampleComponent limel-example-header-slot-actions
|
|
45
45
|
* @exampleComponent limel-example-header-colors
|
|
46
46
|
* @exampleComponent limel-example-header-responsive
|
|
@@ -61,7 +61,7 @@ export class Header {
|
|
|
61
61
|
this.subheadingDivider = '·';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '4a94e7808e3b295669faa4711d37f8d9ed50b006' }, h("div", { key: '7c02e31819ddac504b5c58b6200c00a621079990', class: "information" }, this.renderIcon(), h("div", { key: 'b38172e5332ee39476bd19f7ad4f0ce127cc30d6', class: "headings" }, h("h1", { key: '9ee1f899ba0f403a588e0dbca52d82c1c12e355e', class: "heading", title: this.heading }, this.heading), h("h2", { key: '49b81ef3a96a9c2f7fa27ec2d13a15907131624e', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), h("slot", { key: '29984270ca745ce430deef27704b9c63065c2964', name: "actions" }, h("slot", { key: '1c3b766dc1444a0255ea605359b25d148d25ba57' }))));
|
|
65
65
|
}
|
|
66
66
|
renderIcon() {
|
|
67
67
|
var _a, _b, _c, _d, _e;
|
|
@@ -15,7 +15,7 @@ import { h, Host } from "@stencil/core";
|
|
|
15
15
|
* of an app more effortlessly, minimizes the learning curve,
|
|
16
16
|
* transforming complex features into accessible opportunities for exploration.
|
|
17
17
|
*
|
|
18
|
-
* @exampleComponent limel-example-help
|
|
18
|
+
* @exampleComponent limel-example-help-basic
|
|
19
19
|
* @exampleComponent limel-example-read-more
|
|
20
20
|
* @exampleComponent limel-example-open-direction
|
|
21
21
|
* @exampleComponent limel-example-placement
|
|
@@ -41,9 +41,9 @@ export class HelpComponent {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'a52d9b4c220e21005011449735b97599cffb542e' }, h("limel-popover", { key: '8b6690894351ec32f5b982ca5d3aeac7300f5576', open: this.isOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, h("button", { key: '98e5dc4abcff54df74b02c737e4889e17639ddc6', slot: "trigger", type: "button", onClick: this.openPopover, class: {
|
|
45
45
|
'is-open': this.isOpen,
|
|
46
|
-
} }, this.trigger), h("limel-help-content", { key: '
|
|
46
|
+
} }, this.trigger), h("limel-help-content", { key: '10b2d483aa459403b3d922add805bf6f64ae66e3', value: this.value, readMoreLink: this.readMoreLink }))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "limel-help"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ import { Host, h } from "@stencil/core";
|
|
|
10
10
|
* Also this enables us to open the helper line in limel-portal,
|
|
11
11
|
* more easily without having to send the styles to the portal.
|
|
12
12
|
*
|
|
13
|
-
* @exampleComponent limel-example-helper-line
|
|
13
|
+
* @exampleComponent limel-example-helper-line-basic
|
|
14
14
|
* @exampleComponent limel-example-helper-line-invalid
|
|
15
15
|
* @exampleComponent limel-example-helper-line-long-text
|
|
16
16
|
* @exampleComponent limel-example-helper-line-long-text-no-counter
|
|
@@ -46,9 +46,9 @@ export class HelperLine {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '8ef6eb3b3e372e5dc61af1424a88c1c342023d13', tabIndex: -1, class: {
|
|
50
50
|
invalid: this.invalid,
|
|
51
|
-
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: '
|
|
51
|
+
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: '3b4e31c23f5964aabb67556e68bd1785c871d934' }, this.renderHelperText(), this.renderCharacterCounter())));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "limel-helper-line"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Note: this function handles the same key aliases as `KEY_ALIASES` in
|
|
2
|
+
// `../../util/hotkeys.ts`, but maps them to display strings rather than
|
|
3
|
+
// canonical names. Keep both in sync when adding new aliases.
|
|
4
|
+
/**
|
|
5
|
+
* Maps a single hotkey token to its display representation.
|
|
6
|
+
*
|
|
7
|
+
* @param token - A single token from `tokenizeHotkeyString` (e.g. `"meta"`, `"k"`, `"+"`).
|
|
8
|
+
* @param isApple - Whether the current device is an Apple device.
|
|
9
|
+
* @returns The display string, whether it is a glyph (for styling),
|
|
10
|
+
* and a human-readable name for screen readers.
|
|
11
|
+
*/
|
|
12
|
+
export function formatDisplayToken(token, isApple) {
|
|
13
|
+
const trimmed = (token !== null && token !== void 0 ? token : '').trim();
|
|
14
|
+
if (!trimmed) {
|
|
15
|
+
return { display: '', isGlyph: false, ariaName: '' };
|
|
16
|
+
}
|
|
17
|
+
if (trimmed === '+') {
|
|
18
|
+
return { display: '+', isGlyph: false, ariaName: 'plus' };
|
|
19
|
+
}
|
|
20
|
+
const lower = trimmed.toLowerCase();
|
|
21
|
+
switch (lower) {
|
|
22
|
+
case 'meta':
|
|
23
|
+
case 'win':
|
|
24
|
+
case 'windows': {
|
|
25
|
+
return isApple
|
|
26
|
+
? { display: '⌘', isGlyph: true, ariaName: 'Command' }
|
|
27
|
+
: { display: '⊞ Win', isGlyph: false, ariaName: 'Windows' };
|
|
28
|
+
}
|
|
29
|
+
case 'cmd':
|
|
30
|
+
case 'command': {
|
|
31
|
+
return { display: '⌘', isGlyph: true, ariaName: 'Command' };
|
|
32
|
+
}
|
|
33
|
+
case 'alt':
|
|
34
|
+
case 'option': {
|
|
35
|
+
return isApple
|
|
36
|
+
? { display: '⌥', isGlyph: true, ariaName: 'Option' }
|
|
37
|
+
: { display: 'Alt', isGlyph: false, ariaName: 'Alt' };
|
|
38
|
+
}
|
|
39
|
+
case 'shift': {
|
|
40
|
+
return { display: '⇧', isGlyph: true, ariaName: 'Shift' };
|
|
41
|
+
}
|
|
42
|
+
case 'enter':
|
|
43
|
+
case 'return': {
|
|
44
|
+
return { display: '↩', isGlyph: true, ariaName: 'Enter' };
|
|
45
|
+
}
|
|
46
|
+
case 'tab': {
|
|
47
|
+
return { display: '⇥', isGlyph: true, ariaName: 'Tab' };
|
|
48
|
+
}
|
|
49
|
+
case 'delete':
|
|
50
|
+
case 'del':
|
|
51
|
+
case 'backspace': {
|
|
52
|
+
if (isApple) {
|
|
53
|
+
return { display: '⌫', isGlyph: true, ariaName: 'Delete' };
|
|
54
|
+
}
|
|
55
|
+
return lower === 'backspace'
|
|
56
|
+
? {
|
|
57
|
+
display: 'Backspace',
|
|
58
|
+
isGlyph: false,
|
|
59
|
+
ariaName: 'Backspace',
|
|
60
|
+
}
|
|
61
|
+
: { display: 'Del', isGlyph: false, ariaName: 'Delete' };
|
|
62
|
+
}
|
|
63
|
+
case 'ctrl':
|
|
64
|
+
case 'control': {
|
|
65
|
+
return isApple
|
|
66
|
+
? { display: '⌃', isGlyph: true, ariaName: 'Control' }
|
|
67
|
+
: { display: 'Ctrl', isGlyph: false, ariaName: 'Control' };
|
|
68
|
+
}
|
|
69
|
+
case 'escape':
|
|
70
|
+
case 'esc': {
|
|
71
|
+
return { display: 'Esc', isGlyph: false, ariaName: 'Escape' };
|
|
72
|
+
}
|
|
73
|
+
case 'space':
|
|
74
|
+
case 'spacebar': {
|
|
75
|
+
return { display: '␣', isGlyph: true, ariaName: 'Space' };
|
|
76
|
+
}
|
|
77
|
+
case 'arrowup':
|
|
78
|
+
case 'up': {
|
|
79
|
+
return { display: '↑', isGlyph: true, ariaName: 'Up' };
|
|
80
|
+
}
|
|
81
|
+
case 'arrowdown':
|
|
82
|
+
case 'down': {
|
|
83
|
+
return { display: '↓', isGlyph: true, ariaName: 'Down' };
|
|
84
|
+
}
|
|
85
|
+
case 'arrowleft':
|
|
86
|
+
case 'left': {
|
|
87
|
+
return { display: '←', isGlyph: true, ariaName: 'Left' };
|
|
88
|
+
}
|
|
89
|
+
case 'arrowright':
|
|
90
|
+
case 'right': {
|
|
91
|
+
return { display: '→', isGlyph: true, ariaName: 'Right' };
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return { display: trimmed, isGlyph: false, ariaName: trimmed };
|
|
95
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* Note! This file is forwarded via `src/style/exports.scss`
|
|
4
|
+
* and exposed to consumers through the root `index.scss`.
|
|
5
|
+
*
|
|
6
|
+
* Consumers import it using:
|
|
7
|
+
* `@use '@limetech/lime-elements' as lime-elements;`
|
|
8
|
+
*
|
|
9
|
+
* Legacy import paths (`dist/scss/mixins`) are maintained
|
|
10
|
+
* for backward compatibility via copy rules in the Stencil config.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* This mixin will mask out the content that is close to
|
|
17
|
+
* the edges of a scrollable area.
|
|
18
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
19
|
+
* as an argument for `$direction`.
|
|
20
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
21
|
+
* as an argument for `$direction`.
|
|
22
|
+
*
|
|
23
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
24
|
+
* the size of the fade-out edge effect is the same as the
|
|
25
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
26
|
+
* scrollable area that does not have a padding will fade out before
|
|
27
|
+
* any scrolling has been done.
|
|
28
|
+
* This is why this mixin already adds paddings, which automatically
|
|
29
|
+
* default to the size of the fade-out effect.
|
|
30
|
+
* This size defaults to `1rem`, but to override the size use
|
|
31
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
32
|
+
* when `vertically` argument is set, and use
|
|
33
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
34
|
+
* when `horizontally` argument is set.
|
|
35
|
+
* Of course you can also programmatically increase and decrease the
|
|
36
|
+
* size of these variables for each edge, based on the amount of
|
|
37
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
38
|
+
* to add a custom padding where the mixin is used, to override
|
|
39
|
+
* the paddings that are automatically added by the mixin in the
|
|
40
|
+
* compiled CSS code.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
44
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
45
|
+
* before using this mixin.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* This mixin creates a cross-browser font stack.
|
|
49
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
50
|
+
* - `monospace` can be used for code.
|
|
51
|
+
*
|
|
52
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
53
|
+
* 1. the consumer documentation in `README.md`, and
|
|
54
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
55
|
+
* in the `<style>` tag of `index.html`.
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* This mixin is a hack, using old CSS syntax
|
|
59
|
+
* to enable you to truncate a piece of text,
|
|
60
|
+
* after a certain number of lines.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* This mixin will add a chessboard background pattern,
|
|
64
|
+
* typically used to visualize transparency.
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* Make a container resizable by the user.
|
|
68
|
+
* This is used in the documentations and examples
|
|
69
|
+
* of some components, to demonstrate how the component
|
|
70
|
+
* behaves in a resizable container.
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Drag to reorder mixins
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* The breakpoints below are used to create responsive designs
|
|
77
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
78
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
79
|
+
* file, to create consistent styles.
|
|
80
|
+
*
|
|
81
|
+
* :::important
|
|
82
|
+
* In very rare cases you should used media queries!
|
|
83
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
84
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
85
|
+
* :::
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* Media query mixins for responsive design based on screen width.
|
|
89
|
+
* Note that these mixins do not detect the device type!
|
|
90
|
+
*/
|
|
91
|
+
kbd {
|
|
92
|
+
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
color: rgb(var(--contrast-1100));
|
|
95
|
+
background-color: rgb(var(--contrast-200));
|
|
96
|
+
white-space: pre;
|
|
97
|
+
word-spacing: normal;
|
|
98
|
+
word-break: normal;
|
|
99
|
+
word-wrap: normal;
|
|
100
|
+
line-height: normal;
|
|
101
|
+
padding: 0.125rem 0.5rem;
|
|
102
|
+
margin: 0 0.25rem;
|
|
103
|
+
box-shadow: var(--button-shadow-normal), 0 0.03125rem 0.21875rem 0 rgba(var(--contrast-100), 0.5) inset;
|
|
104
|
+
border-radius: 0.125rem;
|
|
105
|
+
border-style: solid;
|
|
106
|
+
border-color: rgba(var(--contrast-600), 0.8);
|
|
107
|
+
border-width: 0 1px 0.125rem 1px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host(limel-hotkey) {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
gap: 0.25rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host(limel-hotkey[disabled]:not([disabled=false])) {
|
|
118
|
+
opacity: 0.5;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
kbd {
|
|
122
|
+
margin: 0;
|
|
123
|
+
font-size: 0.75rem;
|
|
124
|
+
box-shadow: var(--button-shadow-pressed), 0 0.625rem 0.375px -0.5rem rgb(var(--color-black), 0.02), 0 0.025rem 0.5rem 0 rgb(var(--contrast-100)) inset;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
span {
|
|
128
|
+
display: inline-block;
|
|
129
|
+
}
|
|
130
|
+
span::first-letter {
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
kbd.is-glyph span {
|
|
135
|
+
transform: scale(1.2);
|
|
136
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { tokenizeHotkeyString } from "../../util/hotkeys";
|
|
3
|
+
import { isAppleDevice } from "../../util/device";
|
|
4
|
+
import { formatDisplayToken } from "./format-display-token";
|
|
5
|
+
/**
|
|
6
|
+
* This is a display-only component used to visualize keyboard shortcuts.
|
|
7
|
+
* It renders hotkey strings as styled `<kbd>` elements with
|
|
8
|
+
* platform-aware glyphs (e.g. `⌘` on macOS, `⊞ Win` on Windows).
|
|
9
|
+
*
|
|
10
|
+
* It does **not** listen for or handle any keyboard events.
|
|
11
|
+
* Keyboard event handling is the responsibility of the parent component
|
|
12
|
+
* (e.g. `limel-menu` or `limel-select`).
|
|
13
|
+
*
|
|
14
|
+
* @exampleComponent limel-example-hotkey-basic
|
|
15
|
+
* @exampleComponent limel-example-hotkey-disabled
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
export class Hotkey {
|
|
19
|
+
constructor() {
|
|
20
|
+
/**
|
|
21
|
+
* When `true`, the hotkey is rendered in a visually disabled state.
|
|
22
|
+
*/
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
}
|
|
25
|
+
componentWillLoad() {
|
|
26
|
+
this.isApple = isAppleDevice();
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
const parts = tokenizeHotkeyString(this.value);
|
|
30
|
+
const displayParts = parts.map((part) => formatDisplayToken(part, this.isApple));
|
|
31
|
+
const ariaLabel = displayParts
|
|
32
|
+
.map((p) => p.ariaName)
|
|
33
|
+
.filter(Boolean)
|
|
34
|
+
.join(' ');
|
|
35
|
+
return (h(Host, { key: 'ab1b9d31080740d19a4633c8c5bc92b02625c111', "aria-label": ariaLabel || undefined }, displayParts.map(({ display, isGlyph }, index) => (h("kbd", { key: `${parts[index]}-${index}`, class: isGlyph ? 'is-glyph' : undefined }, h("span", null, display))))));
|
|
36
|
+
}
|
|
37
|
+
static get is() { return "limel-hotkey"; }
|
|
38
|
+
static get encapsulation() { return "shadow"; }
|
|
39
|
+
static get originalStyleUrls() {
|
|
40
|
+
return {
|
|
41
|
+
"$": ["hotkey.scss"]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get styleUrls() {
|
|
45
|
+
return {
|
|
46
|
+
"$": ["hotkey.css"]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
static get properties() {
|
|
50
|
+
return {
|
|
51
|
+
"value": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "string",
|
|
56
|
+
"resolved": "string",
|
|
57
|
+
"references": {}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": false,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": "The hotkey string to visualize, e.g. `\"meta+c\"` or `\"shift+enter\"`."
|
|
64
|
+
},
|
|
65
|
+
"getter": false,
|
|
66
|
+
"setter": false,
|
|
67
|
+
"reflect": true,
|
|
68
|
+
"attribute": "value"
|
|
69
|
+
},
|
|
70
|
+
"disabled": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "boolean",
|
|
75
|
+
"resolved": "boolean",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "When `true`, the hotkey is rendered in a visually disabled state."
|
|
83
|
+
},
|
|
84
|
+
"getter": false,
|
|
85
|
+
"setter": false,
|
|
86
|
+
"reflect": true,
|
|
87
|
+
"attribute": "disabled",
|
|
88
|
+
"defaultValue": "false"
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -18,7 +18,7 @@ export class Icon {
|
|
|
18
18
|
this.loadIcon(this.name);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return h("div", { key: '
|
|
21
|
+
return h("div", { key: '23b5f2c90c98461f65c0bcdb291f9958e00ac353', class: "container" });
|
|
22
22
|
}
|
|
23
23
|
async loadIcon(name) {
|
|
24
24
|
if (name === undefined || name === '') {
|
|
@@ -52,7 +52,7 @@ export class IconButton {
|
|
|
52
52
|
if (this.host.hasAttribute('tabindex')) {
|
|
53
53
|
buttonAttributes.tabindex = this.host.getAttribute('tabindex');
|
|
54
54
|
}
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '0df3febef19dcdb72c7c7f3740090414b313be51', onClick: this.filterClickWhenDisabled }, h("button", Object.assign({ key: 'fd0d61e30789619c52cd6a71269602efc7065f8e', disabled: this.disabled, id: this.tooltipId }, buttonAttributes), this.renderIcon(), this.renderTooltip(this.tooltipId))));
|
|
56
56
|
}
|
|
57
57
|
renderIcon() {
|
|
58
58
|
var _a, _b;
|
|
@@ -10,7 +10,7 @@ import { getRel } from "../../util/link-helper";
|
|
|
10
10
|
* a new screen or web page, you need to provide a URL,
|
|
11
11
|
* using the `link` property.
|
|
12
12
|
*
|
|
13
|
-
* @exampleComponent limel-example-info-tile
|
|
13
|
+
* @exampleComponent limel-example-info-tile-basic
|
|
14
14
|
* @exampleComponent limel-example-info-tile-badge
|
|
15
15
|
* @exampleComponent limel-example-info-tile-progress
|
|
16
16
|
* @exampleComponent limel-example-info-tile-loading
|
|
@@ -116,9 +116,9 @@ export class InfoTile {
|
|
|
116
116
|
this.checkProps((_d = this === null || this === void 0 ? void 0 : this.link) === null || _d === void 0 ? void 0 : _d.title);
|
|
117
117
|
const link = this.disabled ? '#' : (_e = this.link) === null || _e === void 0 ? void 0 : _e.href;
|
|
118
118
|
const rel = getRel((_f = this.link) === null || _f === void 0 ? void 0 : _f.target, (_g = this.link) === null || _g === void 0 ? void 0 : _g.rel);
|
|
119
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '3754cadd6c7cf0ee99e0f5dc2234732126dcdc1e', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, class: { 'has-primary-slot-content': this.hasPrimarySlot } }, h("a", { key: 'c812a64253f3687f230c9a306727addae91ac685', title: (_h = this.link) === null || _h === void 0 ? void 0 : _h.title, href: link, target: (_j = this.link) === null || _j === void 0 ? void 0 : _j.target, rel: rel, tabindex: "0", "aria-label": extendedAriaLabel, "aria-disabled": this.disabled, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite", class: {
|
|
120
120
|
'is-clickable': !!((_k = this.link) === null || _k === void 0 ? void 0 : _k.href) && !this.disabled,
|
|
121
|
-
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: '
|
|
121
|
+
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: '62e330f8b945d562b5ee4677a62ab21ec1b6defe', name: "primary", onSlotchange: this.updateHasPrimarySlotContent }), h("div", { key: 'de41a8bc66d7f706153188f84b96481dfa25f8f9', class: "value-group" }, this.renderPrefix(), h("div", { key: '8ae36080dadd6b4a7135c7280e51a88015f30fbc', class: "value-and-suffix" }, this.renderValue(), this.renderSuffix()), this.renderSpinner()), this.renderLabel(), h("limel-3d-hover-effect-glow", { key: '0221c5e66f2a30b60e619bc7d6fe35e66d1db653' })), this.renderNotification()));
|
|
122
122
|
}
|
|
123
123
|
checkProps(propValue) {
|
|
124
124
|
return propValue ? propValue + ' ' : '';
|
|
@@ -588,7 +588,7 @@ export class InputField {
|
|
|
588
588
|
if (ariaControls) {
|
|
589
589
|
properties['aria-controls'] = ariaControls;
|
|
590
590
|
}
|
|
591
|
-
return (h(Host, { key: '
|
|
591
|
+
return (h(Host, { key: 'be352ea1f105d4c3f77b567de32626488ea4a60b' }, h("limel-notched-outline", { key: '0bae1383ad7421ffdc3468bbfc79af59d7c2e3cb', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasLeadingIcon: !!this.leadingIcon }, h("label", { key: '3667d9fbf90227232d8089a421455c7ab72e4202', slot: "content", class: this.getContainerClassList() }, this.renderLeadingIcon(), this.renderPrefix(), this.renderFormattedNumber(), this.renderInput(properties), this.renderSuffix(), this.renderTextarea(properties), this.renderTrailingLinkOrButton())), this.renderHelperLine(), this.renderAutocompleteList()));
|
|
592
592
|
}
|
|
593
593
|
valueWatcher(newValue) {
|
|
594
594
|
if (!this.mdcTextField) {
|
|
@@ -5,7 +5,7 @@ const PERCENT = 100;
|
|
|
5
5
|
* The linear progress component can be used to visualize the current state of a progress in a scale;
|
|
6
6
|
* for example percentage of completion of a task.
|
|
7
7
|
*
|
|
8
|
-
* @exampleComponent limel-example-linear-progress
|
|
8
|
+
* @exampleComponent limel-example-linear-progress-basic
|
|
9
9
|
* @exampleComponent limel-example-linear-progress-indeterminate
|
|
10
10
|
* @exampleComponent limel-example-linear-progress-accessible-label
|
|
11
11
|
* @exampleComponent limel-example-linear-progress-color
|
|
@@ -4,7 +4,7 @@ import { h, Host, } from "@stencil/core";
|
|
|
4
4
|
import { ListRenderer } from "./list-renderer";
|
|
5
5
|
const { ACTION_EVENT } = listStrings;
|
|
6
6
|
/**
|
|
7
|
-
* @exampleComponent limel-example-list
|
|
7
|
+
* @exampleComponent limel-example-list-basic
|
|
8
8
|
* @exampleComponent limel-example-list-secondary
|
|
9
9
|
* @exampleComponent limel-example-list-separator
|
|
10
10
|
* @exampleComponent limel-example-list-icons
|
|
@@ -143,7 +143,7 @@ export class List {
|
|
|
143
143
|
maxLinesSecondaryText = 1;
|
|
144
144
|
}
|
|
145
145
|
const html = this.listRenderer.render(this.items, this.config);
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: 'cbe0fda77189118ad3515dc3c4ab02c6cd9bc58a', style: {
|
|
147
147
|
'--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
|
|
148
148
|
} }, html));
|
|
149
149
|
}
|
|
@@ -162,9 +162,9 @@ export class ListItemComponent {
|
|
|
162
162
|
// also keep for `menuitem` for visual state consistency
|
|
163
163
|
ariaProps['aria-selected'] = this.selected ? 'true' : 'false';
|
|
164
164
|
}
|
|
165
|
-
return (h(Host, Object.assign({ key: '
|
|
165
|
+
return (h(Host, Object.assign({ key: '4f769d4dc9bcf065f0891ae394efb8f2cb4e3cbe', role: this.getHostRole(), class: {
|
|
166
166
|
'has-primary-component': !!((_a = this.primaryComponent) === null || _a === void 0 ? void 0 : _a.name),
|
|
167
|
-
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: '
|
|
167
|
+
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: 'f3ae79f70d048a6541af55782a8a1956fd7338c5', class: "text" }, this.renderLabel(), this.renderDescription()), this.renderActionMenu(this.actions)));
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* Returns a stable reference for the provided actions array to avoid
|