@limetech/lime-elements 39.11.0 → 39.12.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 +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-flatpickr-adapter.cjs.entry.js +51 -9
- 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/date-picker/flatpickr-adapter/deferred-destroy.js +31 -0
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +10 -3
- package/dist/collection/components/date-picker/pickers/month-picker.js +1 -1
- package/dist/collection/components/date-picker/pickers/picker.js +7 -3
- package/dist/collection/components/date-picker/pickers/quarter-picker.js +1 -1
- package/dist/collection/components/date-picker/pickers/year-picker.js +1 -1
- 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-flatpickr-adapter.entry.js +51 -9
- 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-3e68cbda.entry.js → p-c4e2885d.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-50f51eb9.entry.js → p-fbdca779.entry.js} +1 -1
- package/dist/types/components/date-picker/flatpickr-adapter/deferred-destroy.d.ts +19 -0
- package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +2 -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 -1
- package/dist/lime-elements/p-59716b48.entry.js +0 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A responsive masonry grid layout component.
|
|
4
|
+
*
|
|
5
|
+
* This component arranges slotted elements into a masonry-style grid,
|
|
6
|
+
* where items are placed in the shortest column, resulting in a
|
|
7
|
+
* Pinterest-like layout with minimal vertical gaps.
|
|
8
|
+
*
|
|
9
|
+
* The component uses JavaScript to calculate positions, providing
|
|
10
|
+
* reliable cross-browser support — unlike CSS-only approaches such as
|
|
11
|
+
* `columns` or `grid-template-rows: masonry`, which have limited
|
|
12
|
+
* browser support or produce poor results.
|
|
13
|
+
*
|
|
14
|
+
* The number of columns is determined automatically based on the
|
|
15
|
+
* available width and the minimum column width.
|
|
16
|
+
*
|
|
17
|
+
* @exampleComponent limel-example-masonry-layout-basic
|
|
18
|
+
* @exampleComponent limel-example-masonry-layout-images
|
|
19
|
+
* @exampleComponent limel-example-masonry-layout-ordered
|
|
20
|
+
* @slot - Items to arrange in the masonry layout
|
|
21
|
+
* @beta
|
|
22
|
+
*/
|
|
23
|
+
export class MasonryLayout {
|
|
24
|
+
constructor() {
|
|
25
|
+
/**
|
|
26
|
+
* When `true`, items are placed left-to-right in DOM order.
|
|
27
|
+
* When `false` (default), items are placed in the shortest column.
|
|
28
|
+
*/
|
|
29
|
+
this.ordered = false;
|
|
30
|
+
this.containerHeight = 0;
|
|
31
|
+
this.hasRendered = false;
|
|
32
|
+
this.pendingLayoutFrame = null;
|
|
33
|
+
}
|
|
34
|
+
onOrderedChange() {
|
|
35
|
+
this.scheduleLayout();
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
this.setupObservers();
|
|
39
|
+
this.layoutItems();
|
|
40
|
+
this.hasRendered = true;
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
if (this.hasRendered) {
|
|
44
|
+
this.setupObservers();
|
|
45
|
+
this.scheduleLayout();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
var _a, _b, _c;
|
|
50
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
51
|
+
(_b = this.mutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
52
|
+
(_c = this.itemResizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
|
53
|
+
if (this.pendingLayoutFrame !== null) {
|
|
54
|
+
cancelAnimationFrame(this.pendingLayoutFrame);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
const style = {
|
|
59
|
+
height: `${this.containerHeight}rem`,
|
|
60
|
+
};
|
|
61
|
+
return (h(Host, { key: 'e41aecdf81962515dabef9b872cac4a44facf45d', style: style, class: { 'is-laid-out': this.hasRendered } }, h("slot", { key: '94e9603630597a47bef3861a076fca9a8e90dd3c' })));
|
|
62
|
+
}
|
|
63
|
+
setupObservers() {
|
|
64
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
65
|
+
this.scheduleLayout();
|
|
66
|
+
});
|
|
67
|
+
this.resizeObserver.observe(this.host);
|
|
68
|
+
this.itemResizeObserver = new ResizeObserver(() => {
|
|
69
|
+
this.scheduleLayout();
|
|
70
|
+
});
|
|
71
|
+
this.mutationObserver = new MutationObserver(() => {
|
|
72
|
+
this.observeItemSizes();
|
|
73
|
+
this.scheduleLayout();
|
|
74
|
+
});
|
|
75
|
+
this.mutationObserver.observe(this.host, { childList: true });
|
|
76
|
+
this.observeItemSizes();
|
|
77
|
+
}
|
|
78
|
+
observeItemSizes() {
|
|
79
|
+
var _a;
|
|
80
|
+
(_a = this.itemResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
81
|
+
const items = this.getItems();
|
|
82
|
+
for (const item of items) {
|
|
83
|
+
this.itemResizeObserver.observe(item);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
getItems() {
|
|
87
|
+
return [...this.host.children].filter((child) => child instanceof HTMLElement);
|
|
88
|
+
}
|
|
89
|
+
getRootFontSize() {
|
|
90
|
+
return Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
91
|
+
}
|
|
92
|
+
pxToRem(px, rootFontSize) {
|
|
93
|
+
return px / rootFontSize;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Reads a CSS custom property from the host element and resolves
|
|
97
|
+
* its value to pixels. Falls back to the provided default if the
|
|
98
|
+
* property is not set.
|
|
99
|
+
*
|
|
100
|
+
* @param property - The CSS custom property name to read.
|
|
101
|
+
* @param fallback - The fallback CSS value if the property is not set.
|
|
102
|
+
* @param rootFontSize - The root font size in pixels for rem conversion.
|
|
103
|
+
*/
|
|
104
|
+
getCssPropertyInPx(property, fallback, rootFontSize) {
|
|
105
|
+
const value = getComputedStyle(this.host).getPropertyValue(property).trim() ||
|
|
106
|
+
fallback;
|
|
107
|
+
const number = Number.parseFloat(value);
|
|
108
|
+
if (value.endsWith('px')) {
|
|
109
|
+
return number;
|
|
110
|
+
}
|
|
111
|
+
// Assume rem for any other unit (rem is the project standard)
|
|
112
|
+
return number * rootFontSize;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Debounces layout recalculations using `requestAnimationFrame`
|
|
116
|
+
* to coalesce multiple observer callbacks into a single layout
|
|
117
|
+
* pass per frame, avoiding layout thrashing.
|
|
118
|
+
*/
|
|
119
|
+
scheduleLayout() {
|
|
120
|
+
if (this.pendingLayoutFrame !== null) {
|
|
121
|
+
cancelAnimationFrame(this.pendingLayoutFrame);
|
|
122
|
+
}
|
|
123
|
+
this.pendingLayoutFrame = requestAnimationFrame(() => {
|
|
124
|
+
this.pendingLayoutFrame = null;
|
|
125
|
+
this.layoutItems();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
layoutItems() {
|
|
129
|
+
const items = this.getItems();
|
|
130
|
+
if (items.length === 0) {
|
|
131
|
+
this.containerHeight = 0;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const hostWidth = this.host.offsetWidth;
|
|
135
|
+
if (!hostWidth) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const rootFontSize = this.getRootFontSize();
|
|
139
|
+
const gapPx = this.getCssPropertyInPx('--masonry-layout-gap', '1rem', rootFontSize);
|
|
140
|
+
const { columnCount, columnWidth } = this.calculateColumns(hostWidth, gapPx, rootFontSize);
|
|
141
|
+
const columnHeights = this.positionItems(items, columnCount, columnWidth, gapPx, rootFontSize);
|
|
142
|
+
const newHeight = this.pxToRem(Math.max(...columnHeights) - gapPx, rootFontSize);
|
|
143
|
+
if (Math.abs(newHeight - this.containerHeight) > 0.1) {
|
|
144
|
+
this.containerHeight = newHeight;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
calculateColumns(hostWidth, gapPx, rootFontSize) {
|
|
148
|
+
const minColumnWidthPx = this.getCssPropertyInPx('--masonry-layout-min-column-width', '12rem', rootFontSize);
|
|
149
|
+
const columnCount = Math.max(1, Math.floor((hostWidth + gapPx) / (minColumnWidthPx + gapPx)));
|
|
150
|
+
const columnWidth = (hostWidth - (columnCount - 1) * gapPx) / columnCount;
|
|
151
|
+
return { columnCount, columnWidth };
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Absolutely positions each item into the grid. In ordered mode,
|
|
155
|
+
* items are placed left-to-right via round-robin. In default mode,
|
|
156
|
+
* each item is placed in the shortest column for balanced heights.
|
|
157
|
+
*
|
|
158
|
+
* @param items - The child elements to position.
|
|
159
|
+
* @param columnCount - The number of columns in the grid.
|
|
160
|
+
* @param columnWidth - The width of each column in pixels.
|
|
161
|
+
* @param gapPx - The gap between items in pixels.
|
|
162
|
+
* @param rootFontSize - The root font size in pixels for rem conversion.
|
|
163
|
+
* @returns The cumulative height of each column in pixels.
|
|
164
|
+
*/
|
|
165
|
+
positionItems(items, columnCount, columnWidth, gapPx, rootFontSize) {
|
|
166
|
+
const columnHeights = Array.from({ length: columnCount }, () => 0);
|
|
167
|
+
let index = 0;
|
|
168
|
+
for (const item of items) {
|
|
169
|
+
const column = this.ordered
|
|
170
|
+
? index % columnCount
|
|
171
|
+
: columnHeights.indexOf(Math.min(...columnHeights));
|
|
172
|
+
const x = column * (columnWidth + gapPx);
|
|
173
|
+
const y = columnHeights[column];
|
|
174
|
+
item.style.position = 'absolute';
|
|
175
|
+
item.style.left = `${this.pxToRem(x, rootFontSize)}rem`;
|
|
176
|
+
item.style.top = `${this.pxToRem(y, rootFontSize)}rem`;
|
|
177
|
+
item.style.width = `${this.pxToRem(columnWidth, rootFontSize)}rem`;
|
|
178
|
+
if (!this.hasRendered) {
|
|
179
|
+
this.staggerFadeIn(item, index);
|
|
180
|
+
}
|
|
181
|
+
columnHeights[column] += item.offsetHeight + gapPx;
|
|
182
|
+
index++;
|
|
183
|
+
}
|
|
184
|
+
return columnHeights;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Applies a staggered fade-in transition to an item.
|
|
188
|
+
* Inline `transition` and `transitionDelay` styles are set
|
|
189
|
+
* temporarily and cleaned up via a `transitionend` listener
|
|
190
|
+
* so they don't interfere with the consumer's own transitions.
|
|
191
|
+
*
|
|
192
|
+
* The listener filters by `event.target` to avoid reacting to
|
|
193
|
+
* bubbled events from descendant elements.
|
|
194
|
+
*
|
|
195
|
+
* Skipped entirely when `prefers-reduced-motion: reduce` is
|
|
196
|
+
* active — items become visible instantly via the CSS
|
|
197
|
+
* `is-laid-out` class instead.
|
|
198
|
+
*
|
|
199
|
+
* @param item - The element to fade in.
|
|
200
|
+
* @param index - The item's position in the list, used to calculate the delay.
|
|
201
|
+
*/
|
|
202
|
+
staggerFadeIn(item, index) {
|
|
203
|
+
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
204
|
+
if (prefersReducedMotion) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
item.style.transition = 'opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1)';
|
|
208
|
+
item.style.transitionDelay = `${index * 20}ms`;
|
|
209
|
+
const cleanup = (event) => {
|
|
210
|
+
if (event.target !== item || event.propertyName !== 'opacity') {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
item.style.transition = '';
|
|
214
|
+
item.style.transitionDelay = '';
|
|
215
|
+
item.removeEventListener('transitionend', cleanup);
|
|
216
|
+
};
|
|
217
|
+
item.addEventListener('transitionend', cleanup);
|
|
218
|
+
}
|
|
219
|
+
static get is() { return "limel-masonry-layout"; }
|
|
220
|
+
static get encapsulation() { return "shadow"; }
|
|
221
|
+
static get originalStyleUrls() {
|
|
222
|
+
return {
|
|
223
|
+
"$": ["masonry-layout.scss"]
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
static get styleUrls() {
|
|
227
|
+
return {
|
|
228
|
+
"$": ["masonry-layout.css"]
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
static get properties() {
|
|
232
|
+
return {
|
|
233
|
+
"ordered": {
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "boolean",
|
|
238
|
+
"resolved": "boolean",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "When `true`, items are placed left-to-right in DOM order.\nWhen `false` (default), items are placed in the shortest column."
|
|
246
|
+
},
|
|
247
|
+
"getter": false,
|
|
248
|
+
"setter": false,
|
|
249
|
+
"reflect": true,
|
|
250
|
+
"attribute": "ordered",
|
|
251
|
+
"defaultValue": "false"
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
static get states() {
|
|
256
|
+
return {
|
|
257
|
+
"containerHeight": {}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static get elementRef() { return "host"; }
|
|
261
|
+
static get watchers() {
|
|
262
|
+
return [{
|
|
263
|
+
"propName": "ordered",
|
|
264
|
+
"methodName": "onOrderedChange"
|
|
265
|
+
}];
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -557,7 +557,7 @@ export class Menu {
|
|
|
557
557
|
const cssProperties = this.getCssProperties();
|
|
558
558
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
559
559
|
const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
|
|
560
|
-
return (h("div", { key: '
|
|
560
|
+
return (h("div", { key: '2092a7969b69b03062b4db3188b5c14e63cb20c5', class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, h("slot", { key: 'a6b4e705ec6cf6b77d4a4071faee771b2bb3a86b', ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), h("limel-portal", { key: 'c574ec67d773a18900cd9e85b6df4a7664f1018c', visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, h("limel-menu-surface", { key: '56edb093385ecc773f8a4abb8373b3c98c21f2d4', 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: {
|
|
561
561
|
'has-grid-layout': this.gridLayout,
|
|
562
562
|
} }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
|
|
563
563
|
}
|
|
@@ -88,7 +88,7 @@ export class MenuList {
|
|
|
88
88
|
iconSize: this.iconSize,
|
|
89
89
|
};
|
|
90
90
|
const html = this.MenuListRenderer.render(this.items, this.config);
|
|
91
|
-
return h("div", { key: '
|
|
91
|
+
return h("div", { key: '4740635dd33eb64cccfaa762ae6a51bbff6d8a6f', class: "mdc-menu mdc-menu-surface" }, html);
|
|
92
92
|
}
|
|
93
93
|
itemsChanged() {
|
|
94
94
|
setTimeout(() => {
|
|
@@ -105,7 +105,7 @@ export class MenuSurface {
|
|
|
105
105
|
'mdc-elevation-transition': true,
|
|
106
106
|
'mdc-elevation--z4': true,
|
|
107
107
|
};
|
|
108
|
-
return (h("div", { key: '
|
|
108
|
+
return (h("div", { key: '730ef068d80ac9e2fd561cd871cca45c16747b56', class: classList, tabindex: "-1" }, h("slot", { key: 'bc02c14a725340086b2c6459f5218242854341b4' })));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "limel-menu-surface"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class NotchedOutline {
|
|
|
59
59
|
this.hasFloatingLabel = false;
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: '075d440c16ca092fd36dfc72b59937d09db55b50', class: "limel-notched-outline" }, h("slot", { key: '5efa4c54ce73c15d7d259d2f8d856be9e40ebc16', name: "content" }), h("span", { key: '2ad07b5b8b404d2ac59b05de0a22e52c77ced6a3', class: "limel-notched-outline--outlines", "aria-hidden": "true" }, h("span", { key: '1f70d37ebf40173162e71b3ca4bd31bf14bf3dec', class: "limel-notched-outline--leading-outline" }), this.renderLabel(), h("span", { key: '0097c9838a78c1972a014faa4f6439f40c6dee66', class: "limel-notched-outline--trailing-outline" }), this.renderEmptyReadonlyValue())));
|
|
63
63
|
}
|
|
64
64
|
renderLabel() {
|
|
65
65
|
if (!this.label) {
|
|
@@ -188,7 +188,7 @@ export class Picker {
|
|
|
188
188
|
props.maxItems = 1;
|
|
189
189
|
}
|
|
190
190
|
return [
|
|
191
|
-
h("limel-chip-set", Object.assign({ key: '
|
|
191
|
+
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)),
|
|
192
192
|
this.renderDropdown(),
|
|
193
193
|
];
|
|
194
194
|
}
|
|
@@ -127,7 +127,7 @@ export class Popover {
|
|
|
127
127
|
render() {
|
|
128
128
|
const cssProperties = this.getCssProperties();
|
|
129
129
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
130
|
-
return (h("div", { key: '
|
|
130
|
+
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 }))));
|
|
131
131
|
}
|
|
132
132
|
globalClickListener(event) {
|
|
133
133
|
const element = event.target;
|
|
@@ -8,7 +8,7 @@ export class PopoverSurface {
|
|
|
8
8
|
this.appendElement();
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("div", { key: '
|
|
11
|
+
return h("div", { key: '2ade664e817c3559b6721f0567736c8942afd2f1', class: "limel-popover-surface", tabindex: "0" });
|
|
12
12
|
}
|
|
13
13
|
appendElement() {
|
|
14
14
|
const portalContainer = this.host.shadowRoot.querySelector('.limel-popover-surface');
|
|
@@ -120,7 +120,7 @@ export class Portal {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
|
-
return h("slot", { key: '
|
|
123
|
+
return h("slot", { key: 'c8e7ba60cdab45dd239eae6c9123f673a48e8e22' });
|
|
124
124
|
}
|
|
125
125
|
onVisible() {
|
|
126
126
|
if (!this.container && this.visible) {
|
|
@@ -37,7 +37,7 @@ export class RadioButtonGroup {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("limel-list", { key: '
|
|
40
|
+
return (h("limel-list", { key: '0a68f90122f1e246d966e3b747f0e13bed2c901b', items: this.createItems(), type: "radio", badgeIcons: this.badgeIcons, maxLinesSecondaryText: this.maxLinesSecondaryText, onChange: this.handleChange }));
|
|
41
41
|
}
|
|
42
42
|
createItems() {
|
|
43
43
|
return this.items.map((option) => {
|
|
@@ -31,12 +31,12 @@ import { Host, h } from "@stencil/core";
|
|
|
31
31
|
*/
|
|
32
32
|
export class RadioButtonComponent {
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'd198242b1e1a066b38b1d6ddc55fcd8dd7817c36', class: {
|
|
35
35
|
'boolean-input': true,
|
|
36
36
|
'radio-button': true,
|
|
37
37
|
checked: this.checked,
|
|
38
38
|
disabled: this.disabled,
|
|
39
|
-
} }, h("input", { key: '
|
|
39
|
+
} }, 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)));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "limel-radio-button"; }
|
|
42
42
|
static get originalStyleUrls() {
|
|
@@ -104,7 +104,7 @@ export class Select {
|
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
106
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
107
|
-
return (h(SelectTemplate, { key: '
|
|
107
|
+
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() }));
|
|
108
108
|
}
|
|
109
109
|
watchOpen(newValue, oldValue) {
|
|
110
110
|
if (this.checkValid) {
|
|
@@ -56,7 +56,7 @@ export class Shortcut {
|
|
|
56
56
|
render() {
|
|
57
57
|
var _a, _b, _c, _d, _e;
|
|
58
58
|
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);
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
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()));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "limel-shortcut"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,9 +150,9 @@ export class Slider {
|
|
|
150
150
|
if (this.disabled || this.readonly) {
|
|
151
151
|
inputProps.disabled = true;
|
|
152
152
|
}
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
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
|
|
154
154
|
? this.helperTextId
|
|
155
|
-
: undefined, onInput: this.handleInput, onChange: this.handleChange }, inputProps)), h("div", { key: '
|
|
155
|
+
: 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()));
|
|
156
156
|
}
|
|
157
157
|
watchValue() {
|
|
158
158
|
this.displayValue = this.multiplyByFactor(this.getValue());
|
|
@@ -121,14 +121,14 @@ export class Snackbar {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
|
-
return (h("aside", { key: '
|
|
124
|
+
return (h("aside", { key: 'f6658fa4fb12f30db4bed68726dfc8a45acb0075', popover: "manual", style: {
|
|
125
125
|
'--snackbar-timeout': `${Math.max(this.timeout || 0, 0)}ms`,
|
|
126
126
|
'--snackbar-distance-to-top-edge': `${this.offset}px`,
|
|
127
127
|
}, class: {
|
|
128
128
|
open: this.open,
|
|
129
129
|
'is-closing': this.closing,
|
|
130
130
|
'limel-portal--parent': true,
|
|
131
|
-
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '
|
|
131
|
+
}, 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))));
|
|
132
132
|
}
|
|
133
133
|
setAriaRoles() {
|
|
134
134
|
if (!this.open) {
|
|
@@ -16,7 +16,7 @@ export class Spinner {
|
|
|
16
16
|
this.limeBranded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'b5577d30805f87fcb6f670886ff22af94554d18a' }, h("svg", { key: '895db390ea2b9393d315622ffb9e23b40f036c39', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
20
20
|
}
|
|
21
21
|
renderSpinner() {
|
|
22
22
|
if (!this.limeBranded) {
|
|
@@ -55,9 +55,9 @@ export class SplitButton {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '461a17ec679b6f3e17ae9e89d03ebf00b1c28127', class: {
|
|
59
59
|
'has-menu': this.items.length > 0,
|
|
60
|
-
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '
|
|
60
|
+
}, 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()));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "limel-split-button"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,7 +78,7 @@ export class Switch {
|
|
|
78
78
|
removeEnterClickable(this.host);
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'dd6c6cb7fabaf8bae143a4787845c56aebf2fe74' }, this.readonly
|
|
82
82
|
? this.renderReadonly()
|
|
83
83
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
84
84
|
}
|
|
@@ -62,11 +62,11 @@ export class TabBar {
|
|
|
62
62
|
this.tearDown();
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h("div", { key: '
|
|
65
|
+
return (h("div", { key: '5fcbc5f69907b3437a7c17d18d5356ac45f84ea4', class: "mdc-tab-bar", role: "tablist" }, h("div", { key: '0ec7bac2105ac5a2620379a907fc660344387539', class: {
|
|
66
66
|
'mdc-tab-scroller': true,
|
|
67
67
|
'can-scroll-left': this.canScrollLeft,
|
|
68
68
|
'can-scroll-right': this.canScrollRight,
|
|
69
|
-
} }, h("div", { key: '
|
|
69
|
+
} }, 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" }))))));
|
|
70
70
|
}
|
|
71
71
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
72
72
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -56,7 +56,7 @@ export class TabPanel {
|
|
|
56
56
|
this.tabs.forEach(this.setTabStatus);
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
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' })))));
|
|
60
60
|
}
|
|
61
61
|
setSlotElements() {
|
|
62
62
|
const slot = this.getSlot();
|
|
@@ -578,16 +578,16 @@ export class Table {
|
|
|
578
578
|
render() {
|
|
579
579
|
var _a, _b;
|
|
580
580
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
581
|
-
return (h(Host, { key: '
|
|
581
|
+
return (h(Host, { key: '9277abb7977cb9acb8b8f4eb89b65d960d5e86c6', class: {
|
|
582
582
|
'has-low-density': this.layout === 'lowDensity',
|
|
583
583
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
584
|
-
} }, h("div", { key: '
|
|
584
|
+
} }, h("div", { key: '75386d5a89d461ce2c0c6318ed3c465abb92c8e9', id: "tabulator-container", class: {
|
|
585
585
|
'has-pagination': totalRows > this.pageSize,
|
|
586
586
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
587
587
|
'has-movable-columns': this.movableColumns,
|
|
588
588
|
'has-rowselector': this.selectable,
|
|
589
589
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
590
|
-
} }, h("div", { key: '
|
|
590
|
+
} }, 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" }))));
|
|
591
591
|
}
|
|
592
592
|
renderSelectAll() {
|
|
593
593
|
var _a, _b, _c;
|
|
@@ -106,9 +106,9 @@ export class TextEditorLinkMenu {
|
|
|
106
106
|
var _a, _b;
|
|
107
107
|
const isValid = this.isValid(this.link.href);
|
|
108
108
|
return [
|
|
109
|
-
h("limel-input-field", { key: '
|
|
110
|
-
h("limel-input-field", { key: '
|
|
111
|
-
h("div", { key: '
|
|
109
|
+
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) }),
|
|
110
|
+
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 }),
|
|
111
|
+
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" })),
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "limel-text-editor-link-menu"; }
|
|
@@ -246,7 +246,7 @@ export class ProsemirrorAdapter {
|
|
|
246
246
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
247
247
|
}
|
|
248
248
|
render() {
|
|
249
|
-
return (h(Host, { key: '
|
|
249
|
+
return (h(Host, { key: 'b7dbbd5a73e68e2df2b52f36f6d57bc0885f87a3', onFocus: this.handleFocus }, h("div", { key: 'a630b7eacb1b5be9460b85944e2a3a5955661437', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
250
250
|
}
|
|
251
251
|
renderToolbar() {
|
|
252
252
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|
|
@@ -142,7 +142,7 @@ export class TextEditor {
|
|
|
142
142
|
this.editorId = createRandomString();
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h(Host, { key: '
|
|
145
|
+
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()));
|
|
146
146
|
}
|
|
147
147
|
renderEditor() {
|
|
148
148
|
if (this.readonly) {
|
|
@@ -18,7 +18,7 @@ export class TooltipContent {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
return [
|
|
21
|
-
h("text", Object.assign({ key: '
|
|
21
|
+
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)),
|
|
22
22
|
];
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "limel-tooltip-content"; }
|
|
@@ -78,10 +78,10 @@ export class Tooltip {
|
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
81
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: '41e07fbdde2814c108805286e919ac0da916c0f3', class: "trigger-anchor" }, h("limel-portal", { key: '4bb06a6307a3ccb934cc30c76ebde152fb784beb', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
82
82
|
'z-index': tooltipZIndex,
|
|
83
83
|
'pointer-events': 'none',
|
|
84
|
-
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '
|
|
84
|
+
}, 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 }))));
|
|
85
85
|
}
|
|
86
86
|
setOwnerAriaLabel() {
|
|
87
87
|
var _a;
|