@limetech/lime-elements 39.11.1 → 39.12.1
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 +14 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +4 -4
- package/dist/cjs/limel-form.cjs.entry.js +103 -178
- package/dist/cjs/limel-helper-line_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +213 -0
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +2 -2
- 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/form/form.js +13 -16
- package/dist/collection/components/form/schema-cache.js +66 -0
- package/dist/collection/components/masonry-layout/masonry-layout.css +21 -0
- package/dist/collection/components/masonry-layout/masonry-layout.js +267 -0
- package/dist/collection/components/menu/menu.js +1 -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 +1 -1
- 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 +1 -1
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table.js +3 -3
- 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/lime-elements.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +4 -4
- package/dist/esm/limel-form.entry.js +103 -178
- package/dist/esm/limel-helper-line_2.entry.js +1 -1
- package/dist/esm/limel-masonry-layout.entry.js +211 -0
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +2 -2
- 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-3d724fc2.entry.js → p-0ea2db02.entry.js} +1 -1
- package/dist/lime-elements/{p-730a05e3.entry.js → p-0f4b1953.entry.js} +1 -1
- package/dist/lime-elements/{p-2906606d.entry.js → p-173def13.entry.js} +1 -1
- package/dist/lime-elements/{p-fe993f80.entry.js → p-341857fa.entry.js} +1 -1
- package/dist/lime-elements/p-469ec146.entry.js +1 -0
- package/dist/lime-elements/p-58615011.entry.js +1 -0
- package/dist/lime-elements/{p-8203eea8.entry.js → p-79c797f5.entry.js} +1 -1
- package/dist/lime-elements/{p-1635ece7.entry.js → p-7e584d40.entry.js} +1 -1
- package/dist/lime-elements/{p-3f188493.entry.js → p-803ec458.entry.js} +1 -1
- package/dist/lime-elements/{p-e0716b51.entry.js → p-811c4820.entry.js} +1 -1
- package/dist/lime-elements/{p-c308e2a5.entry.js → p-8fed01b1.entry.js} +2 -2
- package/dist/lime-elements/{p-de203f64.entry.js → p-92539877.entry.js} +1 -1
- package/dist/lime-elements/{p-8805080c.entry.js → p-9728aa4a.entry.js} +1 -1
- package/dist/lime-elements/{p-89b35965.entry.js → p-a6fe98eb.entry.js} +1 -1
- package/dist/lime-elements/{p-8b106865.entry.js → p-bd77c457.entry.js} +1 -1
- package/dist/lime-elements/{p-afd4be62.entry.js → p-d1477eca.entry.js} +1 -1
- package/dist/lime-elements/{p-9aa07388.entry.js → p-d1717de1.entry.js} +1 -1
- package/dist/lime-elements/{p-faceccc0.entry.js → p-d4d4236b.entry.js} +1 -1
- package/dist/lime-elements/{p-9015c90c.entry.js → p-e7438c81.entry.js} +1 -1
- package/dist/lime-elements/p-f93163eb.entry.js +7 -0
- package/dist/lime-elements/{p-50f51eb9.entry.js → p-fbdca779.entry.js} +1 -1
- package/dist/types/components/form/form.d.ts +1 -0
- package/dist/types/components/form/schema-cache.d.ts +17 -0
- package/dist/types/components/masonry-layout/masonry-layout.d.ts +94 -0
- package/dist/types/components.d.ts +90 -0
- package/package.json +1 -2
- package/dist/lime-elements/p-59716b48.entry.js +0 -1
- package/dist/lime-elements/p-fb6c42a6.entry.js +0 -7
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-DBTJNfo7.js';
|
|
2
|
+
|
|
3
|
+
const masonryLayoutCss = () => `:host(limel-masonry-layout){display:block;position:relative;box-sizing:border-box;visibility:hidden}:host(limel-masonry-layout) ::slotted(*){opacity:0;box-sizing:border-box}:host(limel-masonry-layout.is-laid-out){visibility:visible}:host(limel-masonry-layout.is-laid-out) ::slotted(*){opacity:1}`;
|
|
4
|
+
|
|
5
|
+
const MasonryLayout = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* When `true`, items are placed left-to-right in DOM order.
|
|
10
|
+
* When `false` (default), items are placed in the shortest column.
|
|
11
|
+
*/
|
|
12
|
+
this.ordered = false;
|
|
13
|
+
this.containerHeight = 0;
|
|
14
|
+
this.hasRendered = false;
|
|
15
|
+
this.pendingLayoutFrame = null;
|
|
16
|
+
}
|
|
17
|
+
onOrderedChange() {
|
|
18
|
+
this.scheduleLayout();
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.setupObservers();
|
|
22
|
+
this.layoutItems();
|
|
23
|
+
this.hasRendered = true;
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
if (this.hasRendered) {
|
|
27
|
+
this.setupObservers();
|
|
28
|
+
this.scheduleLayout();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
34
|
+
(_b = this.mutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
35
|
+
(_c = this.itemResizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
36
|
+
if (this.pendingLayoutFrame !== null) {
|
|
37
|
+
cancelAnimationFrame(this.pendingLayoutFrame);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
const style = {
|
|
42
|
+
height: `${this.containerHeight}rem`,
|
|
43
|
+
};
|
|
44
|
+
return (h(Host, { key: 'e41aecdf81962515dabef9b872cac4a44facf45d', style: style, class: { 'is-laid-out': this.hasRendered } }, h("slot", { key: '94e9603630597a47bef3861a076fca9a8e90dd3c' })));
|
|
45
|
+
}
|
|
46
|
+
setupObservers() {
|
|
47
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
48
|
+
this.scheduleLayout();
|
|
49
|
+
});
|
|
50
|
+
this.resizeObserver.observe(this.host);
|
|
51
|
+
this.itemResizeObserver = new ResizeObserver(() => {
|
|
52
|
+
this.scheduleLayout();
|
|
53
|
+
});
|
|
54
|
+
this.mutationObserver = new MutationObserver(() => {
|
|
55
|
+
this.observeItemSizes();
|
|
56
|
+
this.scheduleLayout();
|
|
57
|
+
});
|
|
58
|
+
this.mutationObserver.observe(this.host, { childList: true });
|
|
59
|
+
this.observeItemSizes();
|
|
60
|
+
}
|
|
61
|
+
observeItemSizes() {
|
|
62
|
+
var _a;
|
|
63
|
+
(_a = this.itemResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
64
|
+
const items = this.getItems();
|
|
65
|
+
for (const item of items) {
|
|
66
|
+
this.itemResizeObserver.observe(item);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
getItems() {
|
|
70
|
+
return [...this.host.children].filter((child) => child instanceof HTMLElement);
|
|
71
|
+
}
|
|
72
|
+
getRootFontSize() {
|
|
73
|
+
return Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
74
|
+
}
|
|
75
|
+
pxToRem(px, rootFontSize) {
|
|
76
|
+
return px / rootFontSize;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Reads a CSS custom property from the host element and resolves
|
|
80
|
+
* its value to pixels. Falls back to the provided default if the
|
|
81
|
+
* property is not set.
|
|
82
|
+
*
|
|
83
|
+
* @param property - The CSS custom property name to read.
|
|
84
|
+
* @param fallback - The fallback CSS value if the property is not set.
|
|
85
|
+
* @param rootFontSize - The root font size in pixels for rem conversion.
|
|
86
|
+
*/
|
|
87
|
+
getCssPropertyInPx(property, fallback, rootFontSize) {
|
|
88
|
+
const value = getComputedStyle(this.host).getPropertyValue(property).trim() ||
|
|
89
|
+
fallback;
|
|
90
|
+
const number = Number.parseFloat(value);
|
|
91
|
+
if (value.endsWith('px')) {
|
|
92
|
+
return number;
|
|
93
|
+
}
|
|
94
|
+
// Assume rem for any other unit (rem is the project standard)
|
|
95
|
+
return number * rootFontSize;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Debounces layout recalculations using `requestAnimationFrame`
|
|
99
|
+
* to coalesce multiple observer callbacks into a single layout
|
|
100
|
+
* pass per frame, avoiding layout thrashing.
|
|
101
|
+
*/
|
|
102
|
+
scheduleLayout() {
|
|
103
|
+
if (this.pendingLayoutFrame !== null) {
|
|
104
|
+
cancelAnimationFrame(this.pendingLayoutFrame);
|
|
105
|
+
}
|
|
106
|
+
this.pendingLayoutFrame = requestAnimationFrame(() => {
|
|
107
|
+
this.pendingLayoutFrame = null;
|
|
108
|
+
this.layoutItems();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
layoutItems() {
|
|
112
|
+
const items = this.getItems();
|
|
113
|
+
if (items.length === 0) {
|
|
114
|
+
this.containerHeight = 0;
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const hostWidth = this.host.offsetWidth;
|
|
118
|
+
if (!hostWidth) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const rootFontSize = this.getRootFontSize();
|
|
122
|
+
const gapPx = this.getCssPropertyInPx('--masonry-layout-gap', '1rem', rootFontSize);
|
|
123
|
+
const { columnCount, columnWidth } = this.calculateColumns(hostWidth, gapPx, rootFontSize);
|
|
124
|
+
const columnHeights = this.positionItems(items, columnCount, columnWidth, gapPx, rootFontSize);
|
|
125
|
+
const newHeight = this.pxToRem(Math.max(...columnHeights) - gapPx, rootFontSize);
|
|
126
|
+
if (Math.abs(newHeight - this.containerHeight) > 0.1) {
|
|
127
|
+
this.containerHeight = newHeight;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
calculateColumns(hostWidth, gapPx, rootFontSize) {
|
|
131
|
+
const minColumnWidthPx = this.getCssPropertyInPx('--masonry-layout-min-column-width', '12rem', rootFontSize);
|
|
132
|
+
const columnCount = Math.max(1, Math.floor((hostWidth + gapPx) / (minColumnWidthPx + gapPx)));
|
|
133
|
+
const columnWidth = (hostWidth - (columnCount - 1) * gapPx) / columnCount;
|
|
134
|
+
return { columnCount, columnWidth };
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Absolutely positions each item into the grid. In ordered mode,
|
|
138
|
+
* items are placed left-to-right via round-robin. In default mode,
|
|
139
|
+
* each item is placed in the shortest column for balanced heights.
|
|
140
|
+
*
|
|
141
|
+
* @param items - The child elements to position.
|
|
142
|
+
* @param columnCount - The number of columns in the grid.
|
|
143
|
+
* @param columnWidth - The width of each column in pixels.
|
|
144
|
+
* @param gapPx - The gap between items in pixels.
|
|
145
|
+
* @param rootFontSize - The root font size in pixels for rem conversion.
|
|
146
|
+
* @returns The cumulative height of each column in pixels.
|
|
147
|
+
*/
|
|
148
|
+
positionItems(items, columnCount, columnWidth, gapPx, rootFontSize) {
|
|
149
|
+
const columnHeights = Array.from({ length: columnCount }, () => 0);
|
|
150
|
+
let index = 0;
|
|
151
|
+
for (const item of items) {
|
|
152
|
+
const column = this.ordered
|
|
153
|
+
? index % columnCount
|
|
154
|
+
: columnHeights.indexOf(Math.min(...columnHeights));
|
|
155
|
+
const x = column * (columnWidth + gapPx);
|
|
156
|
+
const y = columnHeights[column];
|
|
157
|
+
item.style.position = 'absolute';
|
|
158
|
+
item.style.left = `${this.pxToRem(x, rootFontSize)}rem`;
|
|
159
|
+
item.style.top = `${this.pxToRem(y, rootFontSize)}rem`;
|
|
160
|
+
item.style.width = `${this.pxToRem(columnWidth, rootFontSize)}rem`;
|
|
161
|
+
if (!this.hasRendered) {
|
|
162
|
+
this.staggerFadeIn(item, index);
|
|
163
|
+
}
|
|
164
|
+
columnHeights[column] += item.offsetHeight + gapPx;
|
|
165
|
+
index++;
|
|
166
|
+
}
|
|
167
|
+
return columnHeights;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Applies a staggered fade-in transition to an item.
|
|
171
|
+
* Inline `transition` and `transitionDelay` styles are set
|
|
172
|
+
* temporarily and cleaned up via a `transitionend` listener
|
|
173
|
+
* so they don't interfere with the consumer's own transitions.
|
|
174
|
+
*
|
|
175
|
+
* The listener filters by `event.target` to avoid reacting to
|
|
176
|
+
* bubbled events from descendant elements.
|
|
177
|
+
*
|
|
178
|
+
* Skipped entirely when `prefers-reduced-motion: reduce` is
|
|
179
|
+
* active — items become visible instantly via the CSS
|
|
180
|
+
* `is-laid-out` class instead.
|
|
181
|
+
*
|
|
182
|
+
* @param item - The element to fade in.
|
|
183
|
+
* @param index - The item's position in the list, used to calculate the delay.
|
|
184
|
+
*/
|
|
185
|
+
staggerFadeIn(item, index) {
|
|
186
|
+
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
187
|
+
if (prefersReducedMotion) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
item.style.transition = 'opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1)';
|
|
191
|
+
item.style.transitionDelay = `${index * 20}ms`;
|
|
192
|
+
const cleanup = (event) => {
|
|
193
|
+
if (event.target !== item || event.propertyName !== 'opacity') {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
item.style.transition = '';
|
|
197
|
+
item.style.transitionDelay = '';
|
|
198
|
+
item.removeEventListener('transitionend', cleanup);
|
|
199
|
+
};
|
|
200
|
+
item.addEventListener('transitionend', cleanup);
|
|
201
|
+
}
|
|
202
|
+
get host() { return getElement(this); }
|
|
203
|
+
static get watchers() { return {
|
|
204
|
+
"ordered": [{
|
|
205
|
+
"onOrderedChange": 0
|
|
206
|
+
}]
|
|
207
|
+
}; }
|
|
208
|
+
};
|
|
209
|
+
MasonryLayout.style = masonryLayoutCss();
|
|
210
|
+
|
|
211
|
+
export { MasonryLayout as limel_masonry_layout };
|
|
@@ -187,7 +187,7 @@ const Picker = class {
|
|
|
187
187
|
props.maxItems = 1;
|
|
188
188
|
}
|
|
189
189
|
return [
|
|
190
|
-
h("limel-chip-set", Object.assign({ key: '
|
|
190
|
+
h("limel-chip-set", Object.assign({ key: '4f760b3049b45f6db36e19fd776479dcef11403f', type: "input", inputType: "search", label: this.label, helperText: this.helperText, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, invalid: this.invalid, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, clearAllButton: this.multiple && !this.chipSetEditMode }, props)),
|
|
191
191
|
this.renderDropdown(),
|
|
192
192
|
];
|
|
193
193
|
}
|
|
@@ -122,7 +122,7 @@ const Popover = class {
|
|
|
122
122
|
render() {
|
|
123
123
|
const cssProperties = this.getCssProperties();
|
|
124
124
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
125
|
-
return (h("div", { key: '
|
|
125
|
+
return (h("div", { key: '7bc94b0e636ab16a04e76947731eb815f9a33e38', class: "trigger-anchor" }, h("slot", { key: 'e35b20eb6e38755cd50f71ada0413efcc79ce9e0', name: "trigger", ref: this.setTriggerRef }), h("limel-portal", { key: '397107a1f1fa9f796f0801da60df81084a0862ea', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, h("limel-popover-surface", { key: 'f63f011a8d529a68b535fcbed4685a5bb508dded', contentCollection: this.host.children, style: cssProperties }))));
|
|
126
126
|
}
|
|
127
127
|
globalClickListener(event) {
|
|
128
128
|
const element = event.target;
|
|
@@ -165,7 +165,7 @@ const PopoverSurface = class {
|
|
|
165
165
|
this.appendElement();
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return h("div", { key: '
|
|
168
|
+
return h("div", { key: '2ade664e817c3559b6721f0567736c8942afd2f1', class: "limel-popover-surface", tabindex: "0" });
|
|
169
169
|
}
|
|
170
170
|
appendElement() {
|
|
171
171
|
const portalContainer = this.host.shadowRoot.querySelector('.limel-popover-surface');
|
|
@@ -1873,7 +1873,7 @@ const Portal = class {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
1875
|
render() {
|
|
1876
|
-
return h("slot", { key: '
|
|
1876
|
+
return h("slot", { key: 'c8e7ba60cdab45dd239eae6c9123f673a48e8e22' });
|
|
1877
1877
|
}
|
|
1878
1878
|
onVisible() {
|
|
1879
1879
|
if (!this.container && this.visible) {
|
|
@@ -2141,10 +2141,10 @@ const Tooltip = class {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
render() {
|
|
2143
2143
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
2144
|
-
return (h("div", { key: '
|
|
2144
|
+
return (h("div", { key: '41e07fbdde2814c108805286e919ac0da916c0f3', class: "trigger-anchor" }, h("limel-portal", { key: '4bb06a6307a3ccb934cc30c76ebde152fb784beb', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
2145
2145
|
'z-index': tooltipZIndex,
|
|
2146
2146
|
'pointer-events': 'none',
|
|
2147
|
-
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '
|
|
2147
|
+
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: 'eb24b1a7df99ef054b4d0108275480568c22eede', label: this.label, helperLabel: this.helperLabel, maxlength: this.maxlength, role: "tooltip", "aria-hidden": !this.open, id: this.tooltipId }))));
|
|
2148
2148
|
}
|
|
2149
2149
|
setOwnerAriaLabel() {
|
|
2150
2150
|
var _a;
|
|
@@ -2187,7 +2187,7 @@ const TooltipContent = class {
|
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
2189
2189
|
return [
|
|
2190
|
-
h("text", Object.assign({ key: '
|
|
2190
|
+
h("text", Object.assign({ key: 'c19e656075b926d26447a5620a0a779686445129', class: { 'has-column-layout': isLabelsTextLong } }, props), h("div", { key: '3e6c1220fde6121d6da548c48c776cbfbb83f4cd', class: "label" }, this.label), h("div", { key: 'e0dd60dc54481586a4af70a6c133ded3b32bb688', class: "helper-label" }, this.helperLabel)),
|
|
2191
2191
|
];
|
|
2192
2192
|
}
|
|
2193
2193
|
};
|
|
@@ -27824,7 +27824,7 @@ const ProsemirrorAdapter = class {
|
|
|
27824
27824
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
27825
27825
|
}
|
|
27826
27826
|
render() {
|
|
27827
|
-
return (h(Host, { key: '
|
|
27827
|
+
return (h(Host, { key: 'b7dbbd5a73e68e2df2b52f36f6d57bc0885f87a3', onFocus: this.handleFocus }, h("div", { key: 'a630b7eacb1b5be9460b85944e2a3a5955661437', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
27828
27828
|
}
|
|
27829
27829
|
renderToolbar() {
|
|
27830
27830
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|
|
@@ -24,7 +24,7 @@ const RadioButtonGroup = class {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h("limel-list", { key: '
|
|
27
|
+
return (h("limel-list", { key: '0a68f90122f1e246d966e3b747f0e13bed2c901b', items: this.createItems(), type: "radio", badgeIcons: this.badgeIcons, maxLinesSecondaryText: this.maxLinesSecondaryText, onChange: this.handleChange }));
|
|
28
28
|
}
|
|
29
29
|
createItems() {
|
|
30
30
|
return this.items.map((option) => {
|
|
@@ -7,12 +7,12 @@ const RadioButtonComponent = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'd198242b1e1a066b38b1d6ddc55fcd8dd7817c36', class: {
|
|
11
11
|
'boolean-input': true,
|
|
12
12
|
'radio-button': true,
|
|
13
13
|
checked: this.checked,
|
|
14
14
|
disabled: this.disabled,
|
|
15
|
-
} }, h("input", { key: '
|
|
15
|
+
} }, h("input", { key: '7b2a009c5753d4ad9bad3c1ee9d8aa2b1fc30db8', type: "radio", id: this.id, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), h("div", { key: '8eef5a56df7502ec7b6cb1ed84c8b8f0a72cd21c', class: "box" }), h("label", { key: 'bcd0883bf0dbdd307508a47e98402e590167fa00', class: "boolean-input-label", htmlFor: this.id }, this.label)));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
RadioButtonComponent.style = radioButtonCss();
|
|
@@ -551,7 +551,7 @@ const Select = class {
|
|
|
551
551
|
}
|
|
552
552
|
render() {
|
|
553
553
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
554
|
-
return (h(SelectTemplate, { key: '
|
|
554
|
+
return (h(SelectTemplate, { key: '10e53df1cc7d3e629da0e5b18a96045e4f8e6224', 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() }));
|
|
555
555
|
}
|
|
556
556
|
watchOpen(newValue, oldValue) {
|
|
557
557
|
if (this.checkValid) {
|
|
@@ -46,7 +46,7 @@ const Shortcut = class {
|
|
|
46
46
|
render() {
|
|
47
47
|
var _a, _b, _c, _d, _e;
|
|
48
48
|
const rel = getRel((_a = this.link) === null || _a === void 0 ? void 0 : _a.target, (_b = this.link) === null || _b === void 0 ? void 0 : _b.rel);
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'cfca58724948367892595cd9dd49d4482ac61bf3', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("a", { key: 'f13f91fa379319448a95ca0182f61d375636b952', "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 }, h("limel-icon", { key: '3d5b929acb6a26081626098f69cd29fb70b42faa', name: this.icon }), h("limel-3d-hover-effect-glow", { key: '05dd83b54485aa7fdbc103e84f50532313e4b8f0' })), this.renderLabel(), this.renderNotification()));
|
|
50
50
|
}
|
|
51
51
|
get host() { return getElement(this); }
|
|
52
52
|
};
|
|
@@ -194,9 +194,9 @@ const Slider = class {
|
|
|
194
194
|
if (this.disabled || this.readonly) {
|
|
195
195
|
inputProps.disabled = true;
|
|
196
196
|
}
|
|
197
|
-
return (h(Host, { key: '
|
|
197
|
+
return (h(Host, { key: '00987f40cc3a4a7d47a5efec7257acbfcde2df06', class: this.getContainerClassList() }, h("limel-notched-outline", { key: '90d73bb40733a3bd85b0c7d6fb0420f4b48de9e9', 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: 'd35d56c074af9c68663a7f2c475794f82cc2f924', slot: "content" }, h("div", { key: '28367643903a7c888eb4c381e498d179afb2374a', class: "slider", style: { '--slider-fraction': `${fraction}` } }, h("input", Object.assign({ key: '9e2f5519e946f39444b21c893fa7c45db769b1d6', type: "range", min: min, max: max, value: this.displayValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperText
|
|
198
198
|
? this.helperTextId
|
|
199
|
-
: undefined, onInput: this.handleInput, onChange: this.handleChange }, inputProps)), h("div", { key: '
|
|
199
|
+
: undefined, onInput: this.handleInput, onChange: this.handleChange }, inputProps)), h("div", { key: '58525aba7ff932188e1395a71f43a5b3a448cfcc', class: "track" }, h("div", { key: '4e4c6f0eb6fea869a9e204c79adb8ca2c481f566', class: "active" }), this.renderStepDots(min, max)), h("div", { key: '326cefe13667b61450ed270fee96ec6bca479fa6', class: "thumb" }, h("div", { key: '716621ccf495c5f9ec27758b62d5f15b9995cf06', class: "knob" }), h("div", { key: '110c06b6803a4120ee1c613880b2ea8243702c89', class: "indicator", "aria-hidden": "true" }, this.displayValue))), h("div", { key: '0c82e7f841b39be2380a450898c231c37282e502', class: "range-labels" }, h("span", { key: '40088f1c268470bc585f5dbcf92f479641a6c2e0', class: "min" }, this.multiplyByFactor(this.valuemin), this.unit), h("span", { key: '8375f191def455fb3967209d18d839ada677c477', class: "max" }, this.multiplyByFactor(this.valuemax), this.unit)))), this.renderHelperLine()));
|
|
200
200
|
}
|
|
201
201
|
watchValue() {
|
|
202
202
|
this.displayValue = this.multiplyByFactor(this.getValue());
|
|
@@ -145,14 +145,14 @@ const Snackbar = class {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (h("aside", { key: '
|
|
148
|
+
return (h("aside", { key: 'f6658fa4fb12f30db4bed68726dfc8a45acb0075', popover: "manual", style: {
|
|
149
149
|
'--snackbar-timeout': `${Math.max(this.timeout || 0, 0)}ms`,
|
|
150
150
|
'--snackbar-distance-to-top-edge': `${this.offset}px`,
|
|
151
151
|
}, class: {
|
|
152
152
|
open: this.open,
|
|
153
153
|
'is-closing': this.closing,
|
|
154
154
|
'limel-portal--parent': true,
|
|
155
|
-
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '
|
|
155
|
+
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '2656ead3fd0b2e1e478229141a5651ed6fbf9c53', class: "surface" }, h("div", { key: '767a77e8558909e5f050715c94e2f72e7f3904e5', class: "label" }, this.message), this.renderActions(this.actionText), this.renderDismissButton(this.dismissible))));
|
|
156
156
|
}
|
|
157
157
|
setAriaRoles() {
|
|
158
158
|
if (!this.open) {
|
|
@@ -43,9 +43,9 @@ const SplitButton = class {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '461a17ec679b6f3e17ae9e89d03ebf00b1c28127', class: {
|
|
47
47
|
'has-menu': this.items.length > 0,
|
|
48
|
-
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '
|
|
48
|
+
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: 'a2493b1f91c1ab1376685f2f9eec5fb8bbc7b1e8', label: this.label, primary: this.primary, icon: this.icon, disabled: this.disabled, loading: this.loading, loadingFailed: this.loadingFailed }), this.renderMenu()));
|
|
49
49
|
}
|
|
50
50
|
static get delegatesFocus() { return true; }
|
|
51
51
|
};
|
|
@@ -65,7 +65,7 @@ const Switch = class {
|
|
|
65
65
|
removeEnterClickable(this.host);
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'dd6c6cb7fabaf8bae143a4787845c56aebf2fe74' }, this.readonly
|
|
69
69
|
? this.renderReadonly()
|
|
70
70
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
71
71
|
}
|
|
@@ -2082,11 +2082,11 @@ const TabBar = class {
|
|
|
2082
2082
|
this.tearDown();
|
|
2083
2083
|
}
|
|
2084
2084
|
render() {
|
|
2085
|
-
return (h("div", { key: '
|
|
2085
|
+
return (h("div", { key: '5fcbc5f69907b3437a7c17d18d5356ac45f84ea4', class: "mdc-tab-bar", role: "tablist" }, h("div", { key: '0ec7bac2105ac5a2620379a907fc660344387539', class: {
|
|
2086
2086
|
'mdc-tab-scroller': true,
|
|
2087
2087
|
'can-scroll-left': this.canScrollLeft,
|
|
2088
2088
|
'can-scroll-right': this.canScrollRight,
|
|
2089
|
-
} }, h("div", { key: '
|
|
2089
|
+
} }, h("div", { key: 'e4bd200335ff91ff6cb6476fef0c30ff90ee1c44', class: "mdc-tab-scroller__scroll-area lime-hide-scrollbars" }, h("div", { key: 'c3f774e3524131d4d42c34eb1884ac95a173422e', class: "mdc-tab-scroller__scroll-content" }, this.tabs.map(this.renderTab))), h("div", { key: 'babdaf65720c52c03cf4bfedee68993ead018e94', class: "scroll-fade left" }), h("div", { key: 'fe06945559ccf14921f523776a15f68f62496804', class: "scroll-button left" }, h("button", { key: '5a6098a7776d635f9aaa9a7f59b4e7024f270ee1', type: "button", tabindex: "-1", "aria-hidden": "true", disabled: !this.canScrollLeft, onClick: this.handleLeftScrollClick }, h("limel-icon", { key: '89bdf714b634b0ec7d56d3b1b66961a74999e9e6', name: "angle_left" }))), h("div", { key: 'e7c6d0adb6634015c3482a3787451ffcfa37ee90', class: "scroll-fade right" }), h("div", { key: '97d2229df3f45d495ec59f97ae92c53fa63a5cab', class: "scroll-button right" }, h("button", { key: '1d4c1bf329e8739802faa4040d7438aa4c2056f0', type: "button", tabindex: "-1", "aria-hidden": "true", disabled: !this.canScrollRight, onClick: this.handleRightScrollClick }, h("limel-icon", { key: '1bc8b53f7958170c51aac799e05d441e5d6666c7', name: "angle_right" }))))));
|
|
2090
2090
|
}
|
|
2091
2091
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
2092
2092
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -42,7 +42,7 @@ const TabPanel = class {
|
|
|
42
42
|
this.tabs.forEach(this.setTabStatus);
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'cc2be22eb941e72c7333ee435d912e55bc38fd20', onChangeTab: this.handleChangeTabs }, h("div", { key: 'a5ea8894f2bb8121320dabf15757ec6d667c3e9d', class: "tab-panel" }, h("limel-tab-bar", { key: '42be419551f9c3e1310de21bb89bab89bd759dee', tabs: this.tabs }), h("div", { key: '13e156b564873aaa4de691bd3cefc703ba7d2f65', class: "tab-content" }, h("slot", { key: 'b48cff50f857f337af2c60a0d7411a6b8860ae3d' })))));
|
|
46
46
|
}
|
|
47
47
|
setSlotElements() {
|
|
48
48
|
const slot = this.getSlot();
|
|
@@ -31031,16 +31031,16 @@ const Table = class {
|
|
|
31031
31031
|
render() {
|
|
31032
31032
|
var _a, _b;
|
|
31033
31033
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
31034
|
-
return (h(Host, { key: '
|
|
31034
|
+
return (h(Host, { key: '9277abb7977cb9acb8b8f4eb89b65d960d5e86c6', class: {
|
|
31035
31035
|
'has-low-density': this.layout === 'lowDensity',
|
|
31036
31036
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
31037
|
-
} }, h("div", { key: '
|
|
31037
|
+
} }, h("div", { key: '75386d5a89d461ce2c0c6318ed3c465abb92c8e9', id: "tabulator-container", class: {
|
|
31038
31038
|
'has-pagination': totalRows > this.pageSize,
|
|
31039
31039
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
31040
31040
|
'has-movable-columns': this.movableColumns,
|
|
31041
31041
|
'has-rowselector': this.selectable,
|
|
31042
31042
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
31043
|
-
} }, h("div", { key: '
|
|
31043
|
+
} }, h("div", { key: 'e3ab9bf53c9b5f4192ab65c49245bfc5be555940', id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } }, h("limel-spinner", { key: 'ccef86fe3824a5117495e3fb96ea2928217663ce', size: "large" })), this.renderEmptyMessage(), this.renderSelectAll(), h("div", { key: 'cc7c274d6b0f81ac24b5a56467dc38fb204ed306', id: "tabulator-table" }))));
|
|
31044
31044
|
}
|
|
31045
31045
|
renderSelectAll() {
|
|
31046
31046
|
var _a, _b, _c;
|
|
@@ -107,9 +107,9 @@ const TextEditorLinkMenu = class {
|
|
|
107
107
|
var _a, _b;
|
|
108
108
|
const isValid = this.isValid(this.link.href);
|
|
109
109
|
return [
|
|
110
|
-
h("limel-input-field", { key: '
|
|
111
|
-
h("limel-input-field", { key: '
|
|
112
|
-
h("div", { key: '
|
|
110
|
+
h("limel-input-field", { key: '453392d104185e6ad22ee90e204960da0c0f1def', label: this.getTranslation('editor-link-menu.text'), value: ((_a = this.link) === null || _a === void 0 ? void 0 : _a.text) || '', leadingIcon: "text_cursor", onChange: this.handleLinkTitleChange, onKeyDown: this.handleKeyDown, ref: (el) => (this.textInput = el) }),
|
|
111
|
+
h("limel-input-field", { key: '78c1dcc14cde3e8e6a053560e92fa9828b55d266', label: this.getTranslation('editor-link-menu.link'), value: ((_b = this.link) === null || _b === void 0 ? void 0 : _b.href) || '', type: "text", leadingIcon: "-lime-text-link", trailingIcon: "external_link", invalid: !isValid, onChange: this.handleLinkValueChange, onAction: this.handleLinkInputAction, onKeyDown: this.handleKeyDown }),
|
|
112
|
+
h("div", { key: '2d77225e278410cb4af77b35ba756f0805f30b8c', class: "actions" }, h("limel-button", { key: 'bf2ad2a86c6231517e18f50a65a41785f5d0c38b', label: this.getTranslation('cancel'), onClick: this.handleCancel }), h("limel-button", { key: 'b86cddda73e5027fb88c0cb36ed784341b1081a7', primary: true, label: this.getTranslation('save'), disabled: !isValid, onClick: this.handleSave, ref: (el) => (this.saveButton = el), slot: "button" })),
|
|
113
113
|
];
|
|
114
114
|
}
|
|
115
115
|
};
|
|
@@ -129,7 +129,7 @@ const TextEditor = class {
|
|
|
129
129
|
this.editorId = createRandomString();
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: 'bde3c6cc9cb0ed28fc72a3749a178b40d8694633' }, h("limel-notched-outline", { key: '344abd4bc6c049085605d9ea74cb942f93b331a6', labelId: this.editorId, label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasFloatingLabel: true }, this.renderEditor(), this.renderPlaceholder()), this.renderHelperLine()));
|
|
133
133
|
}
|
|
134
134
|
renderEditor() {
|
|
135
135
|
if (this.readonly) {
|