@limetech/lime-elements 39.9.4 → 39.9.5
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 +9 -0
- 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 +16 -4
- 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-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-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 +2 -2
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-popover_2.cjs.entry.js +4 -4
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.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/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/info-tile/info-tile.js +3 -3
- package/dist/collection/components/linear-progress/linear-progress.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/menu/menu.js +15 -3
- package/dist/collection/components/popover/popover.js +4 -4
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/shortcut/shortcut.js +2 -2
- package/dist/collection/components/snackbar/snackbar.js +3 -3
- package/dist/collection/components/spinner/spinner.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/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +16 -4
- 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-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-header.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_2.entry.js +2 -2
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-popover_2.entry.js +4 -4
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-snackbar.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/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-eaac5ad2.entry.js → p-0e1c15c8.entry.js} +1 -1
- package/dist/lime-elements/{p-57c53ed4.entry.js → p-268d2a30.entry.js} +1 -1
- package/dist/lime-elements/{p-1a3a7374.entry.js → p-30e54f05.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-f59590f1.entry.js → p-62d6a350.entry.js} +1 -1
- package/dist/lime-elements/{p-2af214de.entry.js → p-6614bbfc.entry.js} +1 -1
- package/dist/lime-elements/{p-b3622713.entry.js → p-6e0078f1.entry.js} +1 -1
- package/dist/lime-elements/{p-08d1b87a.entry.js → p-6fd84e57.entry.js} +1 -1
- package/dist/lime-elements/{p-da9f1fc4.entry.js → p-72a4841a.entry.js} +2 -2
- 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-74cd80a9.entry.js → p-95ed243e.entry.js} +1 -1
- package/dist/lime-elements/{p-287c4fb1.entry.js → p-9859b556.entry.js} +1 -1
- package/dist/lime-elements/p-9d51583a.entry.js +1 -0
- package/dist/lime-elements/{p-1547b9c8.entry.js → p-abdede40.entry.js} +1 -1
- package/dist/lime-elements/{p-bb38bb3c.entry.js → p-b91b1aed.entry.js} +1 -1
- package/dist/lime-elements/{p-37b41bad.entry.js → p-bbaaf7c1.entry.js} +1 -1
- package/dist/lime-elements/{p-d6d177bc.entry.js → p-be0cbddb.entry.js} +1 -1
- package/dist/lime-elements/{p-f70b8487.entry.js → p-c5b6ac7a.entry.js} +1 -1
- package/dist/lime-elements/{p-268a695b.entry.js → p-ce20d720.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/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/menu/menu.d.ts +2 -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 +104 -104
- package/package.json +1 -1
- package/dist/lime-elements/p-3e9a1f2b.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [39.9.5](https://github.com/Lundalogik/lime-elements/compare/v39.9.4...v39.9.5) (2026-03-30)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* **popover:** don't restore focus to trigger on click-outside dismiss ([4452a1d](https://github.com/Lundalogik/lime-elements/commit/4452a1d13667bbef0a9e2330a656087fe027dd0b))
|
|
7
|
+
* **popover:** don't restore focus to trigger on click-outside dismiss ([21820e4](https://github.com/Lundalogik/lime-elements/commit/21820e441c198452f55f9bb2c5582b51126812a5))
|
|
8
|
+
* **popover:** handle Esc on `keydown` instead of `keyup` ([99bac40](https://github.com/Lundalogik/lime-elements/commit/99bac401789ed5b8e0333e9ccca1a01f968835d6))
|
|
9
|
+
|
|
1
10
|
## [39.9.4](https://github.com/Lundalogik/lime-elements/compare/v39.9.3...v39.9.4) (2026-03-25)
|
|
2
11
|
|
|
3
12
|
### Bug Fixes
|
|
@@ -11,9 +11,9 @@ const Badge = class {
|
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, { key: '
|
|
14
|
+
return (index.h(index.Host, { key: '995d46502d8ea017877e6308ea9dde691706cf9a', title: this.labelIsLarge() ? this.label : '', class: {
|
|
15
15
|
'has-large-label': this.labelIsLarge(),
|
|
16
|
-
} }, index.h("span", { key: '
|
|
16
|
+
} }, index.h("span", { key: 'dc6f429f03e8768b2af2fb254bef0715e9fce839' }, this.renderLabel())));
|
|
17
17
|
}
|
|
18
18
|
renderLabel() {
|
|
19
19
|
if (typeof this.label === 'number') {
|
|
@@ -22,7 +22,7 @@ const Banner = class {
|
|
|
22
22
|
this.isOpen = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h("div", { key: '
|
|
25
|
+
return (index.h("div", { key: '4c52de06b1d1710e79d2fbe729c76b49c7a4dae9', class: `lime-banner ${this.isOpen ? 'lime-banner--open' : ''}` }, index.h("div", { key: '2085a6a5d07c036642646f6cb9cab56e7f86f48a', class: "lime-banner__surface" }, index.h("div", { key: '0b021548bdee32661d458a88e0472a6a1ef0f195', class: "lime-banner__content" }, index.h("div", { key: '65db98d6d60fdf856871e68c6c3bdaa55fb87526', class: "icon-message" }, this.renderIcon(), index.h("div", { key: '94eb50955800bc6a18c49bed8d6fd949909cf5bd' }, this.message)), index.h("div", { key: '8331420f88b294bb1a21682ca1446704e9dc0ffb', class: "lime-banner__actions" }, index.h("slot", { key: 'b784df0968fa19c093c3c0db6de980d6472154d4', name: "buttons" }))))));
|
|
26
26
|
}
|
|
27
27
|
renderIcon() {
|
|
28
28
|
if (!this.icon) {
|
|
@@ -2527,7 +2527,7 @@ const List = class {
|
|
|
2527
2527
|
maxLinesSecondaryText = 1;
|
|
2528
2528
|
}
|
|
2529
2529
|
const html = this.listRenderer.render(this.items, this.config);
|
|
2530
|
-
return (index.h(index.Host, { key: '
|
|
2530
|
+
return (index.h(index.Host, { key: 'e08edeaabf6b51f940e305539aecec91517a51ca', style: {
|
|
2531
2531
|
'--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
|
|
2532
2532
|
} }, html));
|
|
2533
2533
|
}
|
|
@@ -2635,6 +2635,7 @@ const Menu = class {
|
|
|
2635
2635
|
* Clicking it navigates back from a sub-menu to the root menu.
|
|
2636
2636
|
*/
|
|
2637
2637
|
this.rootItem = DEFAULT_ROOT_BREADCRUMBS_ITEM;
|
|
2638
|
+
this.shouldRestoreFocusOnClose = false;
|
|
2638
2639
|
this.renderLoader = () => {
|
|
2639
2640
|
if (!this.loadingSubItems && !this.loading) {
|
|
2640
2641
|
return;
|
|
@@ -2889,11 +2890,20 @@ const Menu = class {
|
|
|
2889
2890
|
}
|
|
2890
2891
|
}
|
|
2891
2892
|
};
|
|
2893
|
+
this.handleEscapeCapture = (event) => {
|
|
2894
|
+
if (event.key === keycodes.ESCAPE && this.open) {
|
|
2895
|
+
this.shouldRestoreFocusOnClose = true;
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2892
2898
|
this.onClose = () => {
|
|
2899
|
+
const restoreFocus = this.shouldRestoreFocusOnClose;
|
|
2900
|
+
this.shouldRestoreFocusOnClose = false;
|
|
2893
2901
|
this.cancel.emit();
|
|
2894
2902
|
this.open = false;
|
|
2895
2903
|
this.currentSubMenu = null;
|
|
2896
|
-
|
|
2904
|
+
if (restoreFocus) {
|
|
2905
|
+
setTimeout(this.focusTrigger, 0);
|
|
2906
|
+
}
|
|
2897
2907
|
};
|
|
2898
2908
|
this.onTriggerClick = (event) => {
|
|
2899
2909
|
event.stopPropagation();
|
|
@@ -3079,7 +3089,7 @@ const Menu = class {
|
|
|
3079
3089
|
const cssProperties = this.getCssProperties();
|
|
3080
3090
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
3081
3091
|
const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
|
|
3082
|
-
return (index.h("div", { key: '
|
|
3092
|
+
return (index.h("div", { key: 'a54987a1be3e3fcc4ceae95c7cc334411a0c474f', class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, index.h("slot", { key: '1bacdb5d1387b8357d1c6f93db47369c8cf64a4f', ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), index.h("limel-portal", { key: 'fbc7982b1dcab9fd5172a95e7a7f0328281f3a35', visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, index.h("limel-menu-surface", { key: '48b96e2e6fe815f4cc976553dfea7b26f36ea6d4', open: this.open, onDismiss: this.onClose, style: Object.assign(Object.assign({}, cssProperties), { '--menu-surface-width': menuSurfaceWidth, '--limel-menu-surface-display': 'flex', '--limel-menu-surface-flex-direction': 'column' }), class: {
|
|
3083
3093
|
'has-grid-layout': this.gridLayout,
|
|
3084
3094
|
} }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
|
|
3085
3095
|
}
|
|
@@ -3090,9 +3100,11 @@ const Menu = class {
|
|
|
3090
3100
|
openWatcher(newValue) {
|
|
3091
3101
|
const opened = newValue;
|
|
3092
3102
|
if (opened) {
|
|
3103
|
+
document.addEventListener('keydown', this.handleEscapeCapture, true);
|
|
3093
3104
|
this.setFocus();
|
|
3094
3105
|
}
|
|
3095
3106
|
else {
|
|
3107
|
+
document.removeEventListener('keydown', this.handleEscapeCapture, true);
|
|
3096
3108
|
this.clearSearch();
|
|
3097
3109
|
}
|
|
3098
3110
|
}
|
|
@@ -4933,7 +4945,7 @@ const Spinner = class {
|
|
|
4933
4945
|
this.limeBranded = false;
|
|
4934
4946
|
}
|
|
4935
4947
|
render() {
|
|
4936
|
-
return (index.h(index.Host, { key: '
|
|
4948
|
+
return (index.h(index.Host, { key: '15c39e3df6a446d4f809e23d2316e535bf77dc99' }, index.h("svg", { key: 'e88d11c66514783aa11bb01c4e902a15d0cb6dd4', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
4937
4949
|
}
|
|
4938
4950
|
renderSpinner() {
|
|
4939
4951
|
if (!this.limeBranded) {
|
|
@@ -32,7 +32,7 @@ const ButtonGroup = class {
|
|
|
32
32
|
this.setSelectedButton();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '2295d3bf146ae9d3aa44c4a4c3281ce1b72d8a63', role: "radiogroup" }, this.value.map(this.renderButton)));
|
|
36
36
|
}
|
|
37
37
|
renderButton(button) {
|
|
38
38
|
// Prefix with 'b' because html IDs cannot start with a digit,
|
|
@@ -113,7 +113,7 @@ const Checkbox = class {
|
|
|
113
113
|
this.destroyMDCInstances();
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (index.h(checkbox_template.CheckboxTemplate, { key: '
|
|
116
|
+
return (index.h(checkbox_template.CheckboxTemplate, { key: '2a6a0bbfb8b740dccf629adda516b83fbfcfc23c', disabled: this.disabled || this.readonly, label: this.label, readonlyLabels: this.readonlyLabels, helperText: this.helperText, helperTextId: this.helperTextId, checked: this.checked || this.indeterminate, indeterminate: this.indeterminate, required: this.required, readonly: this.readonly, invalid: this.isInvalid(), onChange: this.onChange, id: this.id }));
|
|
117
117
|
}
|
|
118
118
|
get limelCheckbox() { return index.getElement(this); }
|
|
119
119
|
static get watchers() { return {
|
|
@@ -558,7 +558,7 @@ const ChipSet = class {
|
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
const value = this.getValue();
|
|
561
|
-
return (index.h(index.Host, { key: '
|
|
561
|
+
return (index.h(index.Host, { key: 'cc38b12787a887fa3cf6d54412d460fffdc10d37' }, index.h("limel-notched-outline", { key: '363ee1953a0880a987acbaeb75ad7682c03c26ec', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, index.h("div", Object.assign({ key: 'c05be9685e36d5283791bf30aceb937f8da0c0a0', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
|
|
562
562
|
}
|
|
563
563
|
getContentProps() {
|
|
564
564
|
if (this.type === 'input') {
|
|
@@ -43,7 +43,7 @@ const CircularProgress = class {
|
|
|
43
43
|
};
|
|
44
44
|
const currentPercentage = (this.value * PERCENT) / this.maxValue + '%';
|
|
45
45
|
const value = Math.round(this.value * 10) / 10;
|
|
46
|
-
return (index.h("div", { key: '
|
|
46
|
+
return (index.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(), index.h("span", { key: 'e3fdb555dd58a1a18227659761e9ee9171050b79', class: "value" }, format.abbreviate(value), index.h("span", { key: 'a0d25b4e71beaf4993bb78e96eb2094020b5de52', class: "suffix" }, this.suffix))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
CircularProgress.style = circularProgressCss();
|
|
@@ -14878,7 +14878,7 @@ const CodeEditor = class {
|
|
|
14878
14878
|
'is-dark-mode': this.isDarkMode(),
|
|
14879
14879
|
'is-light-mode': !this.isDarkMode(),
|
|
14880
14880
|
};
|
|
14881
|
-
return (index.h(index.Host, { key: '
|
|
14881
|
+
return (index.h(index.Host, { key: '648df79d8ea88a3f87028743197214b45f3708af' }, this.renderCopyButton(), index.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 }, index.h("div", { key: '3fd86155267f590d9578ed673d56e1e2fe6ee7ce', slot: "content", class: classList })), this.renderHelperLine()));
|
|
14882
14882
|
}
|
|
14883
14883
|
forceRedraw() {
|
|
14884
14884
|
// eslint-disable-next-line sonarjs/pseudo-random
|
|
@@ -930,10 +930,10 @@ const Dialog = class {
|
|
|
930
930
|
this.mdcDialog.destroy();
|
|
931
931
|
}
|
|
932
932
|
render() {
|
|
933
|
-
return (index.h("div", { key: '
|
|
933
|
+
return (index.h("div", { key: '748566bd65db98ee75a743a7deedc7d0c9f80a90', class: {
|
|
934
934
|
'mdc-dialog': true,
|
|
935
935
|
'full-screen': !!this.fullscreen,
|
|
936
|
-
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, index.h("input", { key: '
|
|
936
|
+
}, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, index.h("input", { key: '15d2c40108a2348f54066eab22d507c6a9b3eda9', hidden: true, id: "initialFocusEl" }), index.h("div", { key: 'f46ee440d02b257bde93273936ce1dfe8dc324ea', class: "mdc-dialog__container" }, index.h("div", { key: '9ba9919b2b880039ede217c0608d9f780d6ca770', class: "mdc-dialog__surface" }, index.h("input", { key: '07bb68ae4c7b8d91cb7f0fd02105738160bd9e8f', type: "button", id: "initialFocusElement" }), this.renderHeading(), index.h("div", { key: '1729cb0f7f442b3ee56272387de42b462926275c', class: "mdc-dialog__content", id: 'limel-dialog-content-' + this.id }, index.h("slot", { key: 'a5554b316a4e57700a2902ae4499f594045f267d' })), this.renderFooter())), index.h("div", { key: '85ecb0922ece938a5de20b804b6a2590f98032df', class: "mdc-dialog__scrim" })));
|
|
937
937
|
}
|
|
938
938
|
watchHandler(newValue, oldValue) {
|
|
939
939
|
if (oldValue === newValue) {
|
|
@@ -229,7 +229,7 @@ const FileDropzone = class {
|
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
render() {
|
|
232
|
-
return (index.h(index.Host, { key: '
|
|
232
|
+
return (index.h(index.Host, { key: 'a66ef9c3d9a005567749b61967a63caa4496135a', onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave }, index.h("slot", { key: '7a770aa9f98365da4b83038662f04c0e9e5c20c6' }), this.renderOnDragLayout()));
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
FileDropzone.style = fileDropzoneCss();
|
|
@@ -289,7 +289,7 @@ const FileInput = class {
|
|
|
289
289
|
this.fileInput = this.element.shadowRoot.getElementById(this.fileInputId);
|
|
290
290
|
}
|
|
291
291
|
render() {
|
|
292
|
-
return (index.h(index.Host, { key: '
|
|
292
|
+
return (index.h(index.Host, { key: '62d72f49b1a71bef9c5b91c36f34f763a04d78e2', onClick: this.handleClick, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown }, index.h("input", { key: '72272f710f8ffb09eec2ace7409ab516ec4f80bd', hidden: true, id: this.fileInputId, onChange: this.handleFileChange, type: "file", accept: this.accept, disabled: this.disabled, multiple: this.multiple }), index.h("slot", { key: '7ecff23ba41d76a23a2b8a542f56044615cb8b24' })));
|
|
293
293
|
}
|
|
294
294
|
handleKeyDown(event) {
|
|
295
295
|
if (event.code === 'Tab' ||
|
|
@@ -63,7 +63,7 @@ const File = class {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (index.h(index.Host, { key: '
|
|
66
|
+
return (index.h(index.Host, { key: '4b91f02cff596bca5da1a635ce24d2bb8a5154e1' }, index.h("limel-file-dropzone", { key: 'c3636964ee41bd5396fe667cc983a74256845af5', disabled: this.disabled || this.readonly || !!this.value, accept: this.accept, onFilesSelected: this.handleNewFiles }, this.renderChipset()), this.renderDragAndDropTip()));
|
|
67
67
|
}
|
|
68
68
|
renderDragAndDropTip() {
|
|
69
69
|
if (this.value || this.disabled || this.readonly) {
|
|
@@ -15,7 +15,7 @@ const Header = class {
|
|
|
15
15
|
this.subheadingDivider = '·';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '4a94e7808e3b295669faa4711d37f8d9ed50b006' }, index.h("div", { key: '7c02e31819ddac504b5c58b6200c00a621079990', class: "information" }, this.renderIcon(), index.h("div", { key: 'b38172e5332ee39476bd19f7ad4f0ce127cc30d6', class: "headings" }, index.h("h1", { key: '9ee1f899ba0f403a588e0dbca52d82c1c12e355e', class: "heading", title: this.heading }, this.heading), index.h("h2", { key: '49b81ef3a96a9c2f7fa27ec2d13a15907131624e', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), index.h("slot", { key: '29984270ca745ce430deef27704b9c63065c2964', name: "actions" }, index.h("slot", { key: '1c3b766dc1444a0255ea605359b25d148d25ba57' }))));
|
|
19
19
|
}
|
|
20
20
|
renderIcon() {
|
|
21
21
|
var _a, _b, _c, _d, _e;
|
|
@@ -26,9 +26,9 @@ const HelpComponent = class {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: 'a52d9b4c220e21005011449735b97599cffb542e' }, index.h("limel-popover", { key: '8b6690894351ec32f5b982ca5d3aeac7300f5576', open: this.isOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, index.h("button", { key: '98e5dc4abcff54df74b02c737e4889e17639ddc6', slot: "trigger", type: "button", onClick: this.openPopover, class: {
|
|
30
30
|
'is-open': this.isOpen,
|
|
31
|
-
} }, this.trigger), index.h("limel-help-content", { key: '
|
|
31
|
+
} }, this.trigger), index.h("limel-help-content", { key: '10b2d483aa459403b3d922add805bf6f64ae66e3', value: this.value, readMoreLink: this.readMoreLink }))));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
HelpComponent.style = helpCss();
|
|
@@ -32,9 +32,9 @@ const HelperLine = class {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '8ef6eb3b3e372e5dc61af1424a88c1c342023d13', tabIndex: -1, class: {
|
|
36
36
|
invalid: this.invalid,
|
|
37
|
-
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, index.h("div", { key: '
|
|
37
|
+
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, index.h("div", { key: '3b4e31c23f5964aabb67556e68bd1785c871d934' }, this.renderHelperText(), this.renderCharacterCounter())));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
HelperLine.style = helperLineCss();
|
|
@@ -106,9 +106,9 @@ const InfoTile = class {
|
|
|
106
106
|
this.checkProps((_d = this === null || this === void 0 ? void 0 : this.link) === null || _d === void 0 ? void 0 : _d.title);
|
|
107
107
|
const link = this.disabled ? '#' : (_e = this.link) === null || _e === void 0 ? void 0 : _e.href;
|
|
108
108
|
const rel = linkHelper.getRel((_f = this.link) === null || _f === void 0 ? void 0 : _f.target, (_g = this.link) === null || _g === void 0 ? void 0 : _g.rel);
|
|
109
|
-
return (index.h(index.Host, { key: '
|
|
109
|
+
return (index.h(index.Host, { key: '7c8d656a077f6c80cc7d4d64bf1aa9ef7d5bd781', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, class: { 'has-primary-slot-content': this.hasPrimarySlot } }, index.h("a", { key: 'f73467be963a8aa901c890958eda32212ff2f3a0', 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: {
|
|
110
110
|
'is-clickable': !!((_k = this.link) === null || _k === void 0 ? void 0 : _k.href) && !this.disabled,
|
|
111
|
-
} }, this.renderIcon(), this.renderProgress(), index.h("slot", { key: '
|
|
111
|
+
} }, this.renderIcon(), this.renderProgress(), index.h("slot", { key: '2e4972465f34d57ce81a0c55782e9fcbc4c91c90', name: "primary", onSlotchange: this.updateHasPrimarySlotContent }), index.h("div", { key: '119b244389b740a05b266c80a78bffd2287f6dab', class: "value-group" }, this.renderPrefix(), index.h("div", { key: '9a9fc38d8c997b3ce6db3715a1aed622ec0af586', class: "value-and-suffix" }, this.renderValue(), this.renderSuffix()), this.renderSpinner()), this.renderLabel(), index.h("limel-3d-hover-effect-glow", { key: '1809611bebee438d5b840907f09adda725c7849c' })), this.renderNotification()));
|
|
112
112
|
}
|
|
113
113
|
checkProps(propValue) {
|
|
114
114
|
return propValue ? propValue + ' ' : '';
|
|
@@ -114,17 +114,17 @@ const Popover = class {
|
|
|
114
114
|
document.addEventListener('click', this.globalClickListener, {
|
|
115
115
|
capture: true,
|
|
116
116
|
});
|
|
117
|
-
document.addEventListener('
|
|
117
|
+
document.addEventListener('keydown', this.handleGlobalKeyPress);
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
document.removeEventListener('click', this.globalClickListener);
|
|
121
|
-
document.removeEventListener('
|
|
121
|
+
document.removeEventListener('keydown', this.handleGlobalKeyPress);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
125
|
const cssProperties = this.getCssProperties();
|
|
126
126
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
127
|
-
return (index.h("div", { key: '
|
|
127
|
+
return (index.h("div", { key: 'ac6e4c9358d68223f43ea60a29302d725438cf05', class: "trigger-anchor" }, index.h("slot", { key: '5e5ae7d194f7cc005573e909cd10343283603a7f', name: "trigger", ref: this.setTriggerRef }), index.h("limel-portal", { key: '5d4bda03c1ea9b07c17b7222fb2f30e29af9b3d3', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, index.h("limel-popover-surface", { key: '0f9804103a70f924375429ba7e96ad62858cb2ea', contentCollection: this.host.children, style: cssProperties }))));
|
|
128
128
|
}
|
|
129
129
|
globalClickListener(event) {
|
|
130
130
|
const element = event.target;
|
|
@@ -132,7 +132,7 @@ const Popover = class {
|
|
|
132
132
|
if (this.open && !clickedInside) {
|
|
133
133
|
event.stopPropagation();
|
|
134
134
|
event.preventDefault();
|
|
135
|
-
this.
|
|
135
|
+
this.close.emit();
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
getCssProperties() {
|
|
@@ -553,7 +553,7 @@ const Select = class {
|
|
|
553
553
|
}
|
|
554
554
|
render() {
|
|
555
555
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
556
|
-
return (index.h(SelectTemplate, { key: '
|
|
556
|
+
return (index.h(SelectTemplate, { key: '12c687df2b999aa6d8a06c7fab59bda425678791', id: this.portalId, disabled: this.disabled || this.readonly, readonly: this.readonly, required: this.required, invalid: this.invalid, label: this.label, helperText: this.helperText, value: this.value, options: this.options, onMenuChange: this.handleMenuChange, onNativeChange: this.handleNativeChange, onTriggerPress: this.handleMenuTriggerKeyPress, multiple: this.multiple, isOpen: this.menuOpen, open: this.openMenu, close: this.closeMenu, checkValid: this.checkValid, native: this.isMobileDevice && !this.multiple, dropdownZIndex: dropdownZIndex, anchor: this.getAnchorElement() }));
|
|
557
557
|
}
|
|
558
558
|
watchOpen(newValue, oldValue) {
|
|
559
559
|
if (this.checkValid) {
|
|
@@ -48,7 +48,7 @@ const Shortcut = class {
|
|
|
48
48
|
render() {
|
|
49
49
|
var _a, _b, _c, _d, _e;
|
|
50
50
|
const rel = linkHelper.getRel((_a = this.link) === null || _a === void 0 ? void 0 : _a.target, (_b = this.link) === null || _b === void 0 ? void 0 : _b.rel);
|
|
51
|
-
return (index.h(index.Host, { key: '
|
|
51
|
+
return (index.h(index.Host, { key: '6d8f34f6545714c032ca8a106bd19b8c25b49c9e', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, index.h("a", { key: 'ea703109895bf2baedeb85a573a7b9b95b6c77a5', "aria-disabled": this.disabled, href: (_c = this.link) === null || _c === void 0 ? void 0 : _c.href, target: (_d = this.link) === null || _d === void 0 ? void 0 : _d.target, rel: rel, tabindex: "0", "aria-label": this.getAriaLabel(), title: (_e = this.link) === null || _e === void 0 ? void 0 : _e.title }, index.h("limel-icon", { key: '065f25188bb6a712e3933d89067f6151362eee72', name: this.icon }), index.h("limel-3d-hover-effect-glow", { key: '7c0ac50c83d7047d2745427c210e278150951b02' })), this.renderLabel(), this.renderNotification()));
|
|
52
52
|
}
|
|
53
53
|
get host() { return index.getElement(this); }
|
|
54
54
|
};
|
|
@@ -147,14 +147,14 @@ const Snackbar = class {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (index.h("aside", { key: '
|
|
150
|
+
return (index.h("aside", { key: '50e3fbd9e15990446adc21cf46c5a50025ae32b2', popover: "manual", style: {
|
|
151
151
|
'--snackbar-timeout': `${Math.max(this.timeout || 0, 0)}ms`,
|
|
152
152
|
'--snackbar-distance-to-top-edge': `${this.offset}px`,
|
|
153
153
|
}, class: {
|
|
154
154
|
open: this.open,
|
|
155
155
|
'is-closing': this.closing,
|
|
156
156
|
'limel-portal--parent': true,
|
|
157
|
-
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, index.h("div", { key: '
|
|
157
|
+
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, index.h("div", { key: 'e256db2465275aee96cdd0b523382bfe26f4fed3', class: "surface" }, index.h("div", { key: '02cbd256b396c3aab857aebe0ba05db1a5d00d04', class: "label" }, this.message), this.renderActions(this.actionText), this.renderDismissButton(this.dismissible))));
|
|
158
158
|
}
|
|
159
159
|
setAriaRoles() {
|
|
160
160
|
if (!this.open) {
|
|
@@ -67,7 +67,7 @@ const Switch = class {
|
|
|
67
67
|
makeEnterClickable.removeEnterClickable(this.host);
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: '06ea93968a9f60b3fe115e1f54a9354cd4b8e891' }, this.readonly
|
|
71
71
|
? this.renderReadonly()
|
|
72
72
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
73
73
|
}
|
|
@@ -2084,11 +2084,11 @@ const TabBar = class {
|
|
|
2084
2084
|
this.tearDown();
|
|
2085
2085
|
}
|
|
2086
2086
|
render() {
|
|
2087
|
-
return (index.h("div", { key: '
|
|
2087
|
+
return (index.h("div", { key: 'bdc335fde021cff31e6a47b8d0ab14de6e1f7c9b', class: "mdc-tab-bar", role: "tablist" }, index.h("div", { key: 'e4c25d25283507ce29d06260b5dd5fd9cbc41a49', class: {
|
|
2088
2088
|
'mdc-tab-scroller': true,
|
|
2089
2089
|
'can-scroll-left': this.canScrollLeft,
|
|
2090
2090
|
'can-scroll-right': this.canScrollRight,
|
|
2091
|
-
} }, index.h("div", { key: '
|
|
2091
|
+
} }, index.h("div", { key: '0fd262305222f95f4dfab1e792a0686b9ffb3117', class: "mdc-tab-scroller__scroll-area lime-hide-scrollbars" }, index.h("div", { key: 'ff4dd675de9c6cde5c4a0dddd90211a73ea34962', class: "mdc-tab-scroller__scroll-content" }, this.tabs.map(this.renderTab))), index.h("div", { key: '3c201211c344ce09ef12166acfab2af0b3a4f64c', class: "scroll-fade left" }), index.h("div", { key: 'e124c7d58974629de53319948d0a961a293989a8', class: "scroll-button left" }, index.h("button", { key: 'df876f20c9177923218d773a5fd0880ac7eefb2a', type: "button", tabindex: "-1", "aria-hidden": "true", disabled: !this.canScrollLeft, onClick: this.handleLeftScrollClick }, index.h("limel-icon", { key: '65dbb20efcd7f233cd8637641e764f1be7b7e2a0', name: "angle_left" }))), index.h("div", { key: '5e8c69252a54be76393de70822ec2f6817e7a6d1', class: "scroll-fade right" }), index.h("div", { key: '341d0c50fe1513c8ad254ff8cebaf9be8607d5f0', class: "scroll-button right" }, index.h("button", { key: '8ea21fad4dace603ffdc8c51ac597806979a9dd4', type: "button", tabindex: "-1", "aria-hidden": "true", disabled: !this.canScrollRight, onClick: this.handleRightScrollClick }, index.h("limel-icon", { key: 'e28a22555f3ce6e434afa64faac037ae63787141', name: "angle_right" }))))));
|
|
2092
2092
|
}
|
|
2093
2093
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
2094
2094
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -44,7 +44,7 @@ const TabPanel = class {
|
|
|
44
44
|
this.tabs.forEach(this.setTabStatus);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
47
|
+
return (index.h(index.Host, { key: 'd1eb596b4d03fa6ac2ada4f05e67f243835cf341', onChangeTab: this.handleChangeTabs }, index.h("div", { key: 'f3970a0afb5c17ea357dcd9fcb5c031a71d4d7da', class: "tab-panel" }, index.h("limel-tab-bar", { key: 'ff232710bd7284cf7f96739c3aeaf1a9d7233101', tabs: this.tabs }), index.h("div", { key: 'b6d3c3a176466efd859eacd90a610c8c8895bc8a', class: "tab-content" }, index.h("slot", { key: '7a442c6f4347e506b3037dd2ec19f7edc7b2b066' })))));
|
|
48
48
|
}
|
|
49
49
|
setSlotElements() {
|
|
50
50
|
const slot = this.getSlot();
|
|
@@ -31030,16 +31030,16 @@ const Table = class {
|
|
|
31030
31030
|
render() {
|
|
31031
31031
|
var _a, _b;
|
|
31032
31032
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
31033
|
-
return (index.h(index.Host, { key: '
|
|
31033
|
+
return (index.h(index.Host, { key: 'ffcd07f62babe29a526ae77d2c36afa4bc066cc9', class: {
|
|
31034
31034
|
'has-low-density': this.layout === 'lowDensity',
|
|
31035
31035
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
31036
|
-
} }, index.h("div", { key: '
|
|
31036
|
+
} }, index.h("div", { key: '5fe17a812c0e2f0afb730222930f1b8878669511', id: "tabulator-container", class: {
|
|
31037
31037
|
'has-pagination': totalRows > this.pageSize,
|
|
31038
31038
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
31039
31039
|
'has-movable-columns': this.movableColumns,
|
|
31040
31040
|
'has-rowselector': this.selectable,
|
|
31041
31041
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
31042
|
-
} }, index.h("div", { key: '
|
|
31042
|
+
} }, index.h("div", { key: '7f2f41c8faff5b81e49bd0731f0cf7f268bbf1da', id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } }, index.h("limel-spinner", { key: '95ab49709be868ea55a9b92b262c93fb93f41f4b', size: "large" })), this.renderEmptyMessage(), this.renderSelectAll(), index.h("div", { key: '0c3e2605fefc6ddfdd72a68a13182d0517448f74', id: "tabulator-table" }))));
|
|
31043
31043
|
}
|
|
31044
31044
|
renderSelectAll() {
|
|
31045
31045
|
var _a, _b, _c;
|
|
@@ -4,15 +4,15 @@ import { abbreviate } from "./format";
|
|
|
4
4
|
* The Badge component can be used to display a notification badge,
|
|
5
5
|
* optionally with a number or a text label.
|
|
6
6
|
*
|
|
7
|
-
* @exampleComponent limel-example-badge
|
|
7
|
+
* @exampleComponent limel-example-badge-basic
|
|
8
8
|
* @exampleComponent limel-example-badge-number
|
|
9
9
|
* @exampleComponent limel-example-badge-string
|
|
10
10
|
*/
|
|
11
11
|
export class Badge {
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '995d46502d8ea017877e6308ea9dde691706cf9a', title: this.labelIsLarge() ? this.label : '', class: {
|
|
14
14
|
'has-large-label': this.labelIsLarge(),
|
|
15
|
-
} }, h("span", { key: '
|
|
15
|
+
} }, h("span", { key: 'dc6f429f03e8768b2af2fb254bef0715e9fce839' }, this.renderLabel())));
|
|
16
16
|
}
|
|
17
17
|
renderLabel() {
|
|
18
18
|
if (typeof this.label === 'number') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
|
-
* @exampleComponent limel-example-banner
|
|
3
|
+
* @exampleComponent limel-example-banner-basic
|
|
4
4
|
* @slot buttons - Buttons to show in the banner
|
|
5
5
|
*/
|
|
6
6
|
export class Banner {
|
|
@@ -20,7 +20,7 @@ export class Banner {
|
|
|
20
20
|
this.isOpen = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: '4c52de06b1d1710e79d2fbe729c76b49c7a4dae9', class: `lime-banner ${this.isOpen ? 'lime-banner--open' : ''}` }, h("div", { key: '2085a6a5d07c036642646f6cb9cab56e7f86f48a', class: "lime-banner__surface" }, h("div", { key: '0b021548bdee32661d458a88e0472a6a1ef0f195', class: "lime-banner__content" }, h("div", { key: '65db98d6d60fdf856871e68c6c3bdaa55fb87526', class: "icon-message" }, this.renderIcon(), h("div", { key: '94eb50955800bc6a18c49bed8d6fd949909cf5bd' }, this.message)), h("div", { key: '8331420f88b294bb1a21682ca1446704e9dc0ffb', class: "lime-banner__actions" }, h("slot", { key: 'b784df0968fa19c093c3c0db6de980d6472154d4', name: "buttons" }))))));
|
|
24
24
|
}
|
|
25
25
|
renderIcon() {
|
|
26
26
|
if (!this.icon) {
|
|
@@ -31,7 +31,7 @@ import { createRandomString } from "../../util/random-string";
|
|
|
31
31
|
* inherits its width from its content.
|
|
32
32
|
*
|
|
33
33
|
* @exampleComponent limel-example-button-group-icons
|
|
34
|
-
* @exampleComponent limel-example-button-group
|
|
34
|
+
* @exampleComponent limel-example-button-group-basic
|
|
35
35
|
* @exampleComponent limel-example-button-group-mix
|
|
36
36
|
* @exampleComponent limel-example-button-group-badges
|
|
37
37
|
* @exampleComponent limel-example-button-group-composite
|
|
@@ -61,7 +61,7 @@ export class ButtonGroup {
|
|
|
61
61
|
this.setSelectedButton();
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '2295d3bf146ae9d3aa44c4a4c3281ce1b72d8a63', role: "radiogroup" }, this.value.map(this.renderButton)));
|
|
65
65
|
}
|
|
66
66
|
renderButton(button) {
|
|
67
67
|
// Prefix with 'b' because html IDs cannot start with a digit,
|
|
@@ -22,7 +22,7 @@ import { CheckboxTemplate } from "./checkbox.template";
|
|
|
22
22
|
* But there is an important difference between the two! Please read our guidelines about
|
|
23
23
|
* [Switch vs. Checkbox](#/DesignGuidelines/switch-vs-checkbox.md/).
|
|
24
24
|
*
|
|
25
|
-
* @exampleComponent limel-example-checkbox
|
|
25
|
+
* @exampleComponent limel-example-checkbox-basic
|
|
26
26
|
* @exampleComponent limel-example-checkbox-helper-text
|
|
27
27
|
* @exampleComponent limel-example-checkbox-readonly
|
|
28
28
|
*/
|
|
@@ -131,7 +131,7 @@ export class Checkbox {
|
|
|
131
131
|
this.destroyMDCInstances();
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h(CheckboxTemplate, { key: '
|
|
134
|
+
return (h(CheckboxTemplate, { key: '2a6a0bbfb8b740dccf629adda516b83fbfcfc23c', disabled: this.disabled || this.readonly, label: this.label, readonlyLabels: this.readonlyLabels, helperText: this.helperText, helperTextId: this.helperTextId, checked: this.checked || this.indeterminate, indeterminate: this.indeterminate, required: this.required, readonly: this.readonly, invalid: this.isInvalid(), onChange: this.onChange, id: this.id }));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "limel-checkbox"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,7 +36,7 @@ import { createRandomString } from "../../util/random-string";
|
|
|
36
36
|
* ```
|
|
37
37
|
* :::
|
|
38
38
|
*
|
|
39
|
-
* @exampleComponent limel-example-chip-set
|
|
39
|
+
* @exampleComponent limel-example-chip-set-basic
|
|
40
40
|
* @exampleComponent limel-example-chip-set-choice
|
|
41
41
|
* @exampleComponent limel-example-chip-set-filter
|
|
42
42
|
* @exampleComponent limel-example-chip-set-filter-badge
|
|
@@ -269,7 +269,7 @@ export class ChipSet {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
const value = this.getValue();
|
|
272
|
-
return (h(Host, { key: '
|
|
272
|
+
return (h(Host, { key: 'cc38b12787a887fa3cf6d54412d460fffdc10d37' }, h("limel-notched-outline", { key: '363ee1953a0880a987acbaeb75ad7682c03c26ec', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: 'c05be9685e36d5283791bf30aceb937f8da0c0a0', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
|
|
273
273
|
}
|
|
274
274
|
getContentProps() {
|
|
275
275
|
if (this.type === 'input') {
|
|
@@ -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 {
|