@lmvz-ds/components 0.32.0 → 0.34.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 +13 -0
- package/cjs/{aria-loader-BRo2FTGh.js → aria-loader-DWUVcapD.js} +1 -1
- package/cjs/{aria-validation-controller-Z4TtOp2l.js → aria-validation-controller-BC0Eaiv4.js} +1 -1
- package/cjs/async.util-BQ60l-WC.js +20 -0
- package/cjs/{ds.constants-CKeXfK-s.js → ds.constants-C6eKRAEu.js} +5 -1
- package/cjs/{element.util-Cq4y-_iX.js → element.util-Dbyc8yUG.js} +35 -0
- package/cjs/{icons-BQASWgk-.js → icons-snv0hyf1.js} +1 -1
- package/cjs/{index-3g9Z9sfF.js → index-Bn3k5SiE.js} +1044 -508
- package/cjs/index.cjs.js +7 -5
- package/cjs/{list-keyboard-controller-StN6Yn8W.js → list-keyboard-controller-Dm5S_l0D.js} +1 -1
- package/cjs/lmvz-action-list.cjs.entry.js +13 -6
- package/cjs/lmvz-button-group.cjs.entry.js +4 -4
- package/cjs/lmvz-button_2.cjs.entry.js +7 -7
- package/cjs/lmvz-card.cjs.entry.js +1 -1
- package/cjs/lmvz-checkbox.cjs.entry.js +5 -5
- package/cjs/lmvz-chip.cjs.entry.js +3 -3
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-header_2.cjs.entry.js +4 -4
- package/cjs/lmvz-input.cjs.entry.js +4 -3
- package/cjs/lmvz-link.cjs.entry.js +4 -4
- package/cjs/lmvz-menuitem.cjs.entry.js +3 -3
- package/cjs/lmvz-message.cjs.entry.js +3 -3
- package/cjs/lmvz-modal.cjs.entry.js +6 -6
- package/cjs/lmvz-popover.cjs.entry.js +1570 -0
- package/cjs/lmvz-radio.cjs.entry.js +4 -4
- package/cjs/lmvz-select.cjs.entry.js +3 -3
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +1 -1
- package/cjs/lmvz-tabs.cjs.entry.js +3 -3
- package/cjs/lmvz-toggle.cjs.entry.js +6 -5
- package/cjs/loader.cjs.js +1 -1
- package/cjs/{logger-DsM6xg6V.js → logger-NBdKPSou.js} +1 -1
- package/cjs/{stencil.util-DzvzXSwk.js → stencil.util-DxdYjVoH.js} +2 -10
- package/cjs/{svg-BMBduILB.js → svg-CysxzZw7.js} +1 -1
- package/collection/api/ds.constants.js +3 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-action-list/lmvz-action-list.css +150 -38
- package/collection/components/lmvz-action-list/lmvz-action-list.js +9 -1
- package/collection/components/lmvz-button/lmvz-button.css +14 -18
- package/collection/components/lmvz-button/lmvz-button.js +1 -1
- package/collection/components/lmvz-button-group/lmvz-button-group.css +1 -2
- package/collection/components/lmvz-card/lmvz-card.css +16 -19
- package/collection/components/lmvz-checkbox/lmvz-checkbox.css +3 -6
- package/collection/components/lmvz-link/lmvz-link.css +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.css +1 -2
- package/collection/components/lmvz-modal/lmvz-modal.css +1 -2
- package/collection/components/lmvz-popover/lmvz-popover.css +46 -0
- package/collection/components/lmvz-popover/lmvz-popover.js +470 -0
- package/collection/components/lmvz-radio/lmvz-radio.css +2 -4
- package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
- package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
- package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
- package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.css +1 -2
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/collection/utils/async/async.util.js +6 -0
- package/collection/utils/element/element.util.js +33 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-action-list.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-link.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-popover.d.ts +11 -0
- package/components/lmvz-popover.d.ts.bak +11 -0
- package/components/lmvz-popover.js +1 -0
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-0ctLESas.js +1 -0
- package/components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
- package/components/p-BhSTYZC6.js +1 -0
- package/components/p-CE-QR3Tp.js +1 -0
- package/components/{p-C8znmF2h.js → p-CFTmV4XZ.js} +1 -1
- package/components/{p-CxfT9IA1.js → p-CK3Ixl1K.js} +1 -1
- package/components/p-Cghfdblf.js +12 -0
- package/components/{p-B4m1n4et.js → p-D-2gj6LP.js} +1 -1
- package/components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
- package/components/{p-DeO5Vbxh.js → p-D7S1WiEC.js} +1 -1
- package/components/p-D9nUtvTm.js +1 -0
- package/components/{p-DJ90327O.js → p-De-xQqdU.js} +1 -1
- package/components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
- package/esm/{aria-loader-GfsGHZHY.js → aria-loader-BfH06m7H.js} +1 -1
- package/esm/{aria-validation-controller-BnyUKeJ6.js → aria-validation-controller-BvOU1BO8.js} +1 -1
- package/esm/async.util-D9nUtvTm.js +17 -0
- package/esm/{ds.constants-DuEtnKRj.js → ds.constants-0ctLESas.js} +4 -2
- package/esm/{element.util-CxfT9IA1.js → element.util-B0eCxdyI.js} +34 -1
- package/esm/{icons-CmuFKDRz.js → icons-DQOFaux5.js} +1 -1
- package/esm/{index-Dh_9sN0q.js → index-7ULiPTL_.js} +1044 -508
- package/esm/index.js +5 -5
- package/esm/{list-keyboard-controller-BKa9Kd2t.js → list-keyboard-controller-tle6IRkv.js} +1 -1
- package/esm/lmvz-action-list.entry.js +13 -6
- package/esm/lmvz-button-group.entry.js +4 -4
- package/esm/lmvz-button_2.entry.js +7 -7
- package/esm/lmvz-card.entry.js +1 -1
- package/esm/lmvz-checkbox.entry.js +5 -5
- package/esm/lmvz-chip.entry.js +3 -3
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-header_2.entry.js +4 -4
- package/esm/lmvz-input.entry.js +4 -3
- package/esm/lmvz-link.entry.js +4 -4
- package/esm/lmvz-menuitem.entry.js +3 -3
- package/esm/lmvz-message.entry.js +3 -3
- package/esm/lmvz-modal.entry.js +6 -6
- package/esm/lmvz-popover.entry.js +1568 -0
- package/esm/lmvz-radio.entry.js +4 -4
- package/esm/lmvz-select.entry.js +3 -3
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +1 -1
- package/esm/lmvz-tabs.entry.js +3 -3
- package/esm/lmvz-toggle.entry.js +6 -5
- package/esm/loader.js +1 -1
- package/esm/{logger-CGmJG63p.js → logger-D06Ds9Dh.js} +1 -1
- package/esm/{stencil.util-CJRqhXjK.js → stencil.util-wGFRYLwZ.js} +1 -9
- package/esm/{svg-B2YoIRuh.js → svg-Dz3GD0LB.js} +1 -1
- package/hydrate/index.js +1652 -25
- package/hydrate/index.mjs +1652 -25
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-03c38ff2.entry.js +1 -0
- package/lmvz-components/{p-582f44ff.entry.js → p-08613ba2.entry.js} +1 -1
- package/lmvz-components/p-0ctLESas.js +1 -0
- package/lmvz-components/{p-ed3c2b13.entry.js → p-11de5905.entry.js} +1 -1
- package/lmvz-components/{p-b79af711.entry.js → p-2036044c.entry.js} +1 -1
- package/lmvz-components/{p-c0d05a97.entry.js → p-4254aa38.entry.js} +1 -1
- package/lmvz-components/{p-8e1f66dd.entry.js → p-49e98627.entry.js} +1 -1
- package/lmvz-components/p-4f005b23.entry.js +1 -0
- package/lmvz-components/p-50063516.entry.js +1 -0
- package/lmvz-components/{p-48109e1d.entry.js → p-585470ef.entry.js} +1 -1
- package/lmvz-components/{p-24125bcf.entry.js → p-5bbbcfc0.entry.js} +1 -1
- package/lmvz-components/{p-c3e8092e.entry.js → p-6140866f.entry.js} +1 -1
- package/lmvz-components/p-9b7ce515.entry.js +1 -0
- package/lmvz-components/p-9f8fd077.entry.js +1 -0
- package/lmvz-components/{p-CxfT9IA1.js → p-B0eCxdyI.js} +1 -1
- package/lmvz-components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
- package/lmvz-components/p-BhSTYZC6.js +1 -0
- package/lmvz-components/p-Cghfdblf.js +12 -0
- package/lmvz-components/p-CyDgnpOB.js +1 -0
- package/lmvz-components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
- package/lmvz-components/{p-CPOia2kT.js → p-D9PQIBzA.js} +1 -1
- package/lmvz-components/p-D9nUtvTm.js +1 -0
- package/lmvz-components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
- package/lmvz-components/{p-B4m1n4et.js → p-DuLiExhX.js} +1 -1
- package/lmvz-components/{p-1ce90ea7.entry.js → p-b0626234.entry.js} +1 -1
- package/lmvz-components/{p-fa2cd315.entry.js → p-b67ff2d1.entry.js} +1 -1
- package/lmvz-components/p-bfde444e.entry.js +1 -0
- package/lmvz-components/{p-703b10b5.entry.js → p-cc2734e9.entry.js} +1 -1
- package/lmvz-components/{p-25a78ead.entry.js → p-ce1a9f39.entry.js} +1 -1
- package/lmvz-components/{p-80a26307.entry.js → p-ddc28256.entry.js} +1 -1
- package/lmvz-components/p-fd455288.entry.js +1 -0
- package/manifest.json +386 -3
- package/package.json +7 -3
- package/types/api/ds.constants.d.ts +3 -1
- package/types/api/ds.types.d.ts +7 -0
- package/types/components/lmvz-popover/lmvz-popover.d.ts +37 -0
- package/types/components.d.ts +108 -1
- package/types/utils/async/async.util.d.ts +3 -0
- package/types/utils/element/element.util.d.ts +2 -0
- package/components/p-0s99QfRy.js +0 -12
- package/components/p-B0H9qIwE.js +0 -1
- package/components/p-CJRqhXjK.js +0 -1
- package/components/p-DuEtnKRj.js +0 -1
- package/lmvz-components/p-0s99QfRy.js +0 -12
- package/lmvz-components/p-4072b2fb.entry.js +0 -1
- package/lmvz-components/p-592d509b.entry.js +0 -1
- package/lmvz-components/p-6f61c24d.entry.js +0 -1
- package/lmvz-components/p-74c7521c.entry.js +0 -1
- package/lmvz-components/p-947e1fe6.entry.js +0 -1
- package/lmvz-components/p-CFsC37ww.js +0 -1
- package/lmvz-components/p-CJRqhXjK.js +0 -1
- package/lmvz-components/p-DuEtnKRj.js +0 -1
- package/lmvz-components/p-c00f0d96.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @lmvz-ds/components
|
|
2
2
|
|
|
3
|
+
## 0.34.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 34a1f84: ActionListItems verwenden nun Button-Variants für Styling. Zusätzlich werden auch "normale" <button>s nun richtig als solche gestyled.
|
|
8
|
+
- 1ed9cca: Popover Komponente hinzugefügt
|
|
9
|
+
|
|
10
|
+
## 0.33.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 62ae65a: Plattform und Dependencies aktualisiert (Node 26, TypeScript 6, uvm.)
|
|
15
|
+
|
|
3
16
|
## 0.32.0
|
|
4
17
|
|
|
5
18
|
## 0.31.0
|
|
@@ -43,7 +43,7 @@ async function fetchRuntime() {
|
|
|
43
43
|
if (state.runtime)
|
|
44
44
|
return state.runtime;
|
|
45
45
|
if (!state.loadPromise) {
|
|
46
|
-
state.loadPromise = Promise.resolve().then(function () { return require('./index-
|
|
46
|
+
state.loadPromise = Promise.resolve().then(function () { return require('./index-Bn3k5SiE.js'); }).catch(() => null);
|
|
47
47
|
}
|
|
48
48
|
const runtime = await state.loadPromise;
|
|
49
49
|
if (runtime) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const nextFrame = () => new Promise((resolve) => requestAnimationFrame(() => resolve()));
|
|
4
|
+
const wait = () => new Promise((resolve) => setTimeout(() => resolve()));
|
|
5
|
+
const waitFrame = async () => {
|
|
6
|
+
await wait();
|
|
7
|
+
await nextFrame();
|
|
8
|
+
};
|
|
9
|
+
const raf = (h) => {
|
|
10
|
+
if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
|
11
|
+
return __zone_symbol__requestAnimationFrame(h);
|
|
12
|
+
}
|
|
13
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
14
|
+
return requestAnimationFrame(h);
|
|
15
|
+
}
|
|
16
|
+
return setTimeout(h);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.raf = raf;
|
|
20
|
+
exports.waitFrame = waitFrame;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const variants = ['primary', 'secondary', 'tertiary'];
|
|
3
|
+
const variants = ['primary', 'secondary', 'tertiary', 'danger'];
|
|
4
4
|
const scaleValues = ['small', 'default', 'large'];
|
|
5
5
|
const sizes = ['xs', 'sm', 'md', 'lg'];
|
|
6
6
|
const textSizes = [...sizes, 'xl'];
|
|
@@ -16,6 +16,8 @@ const messageTypes = ['neutral', 'warning'];
|
|
|
16
16
|
const snackbarStatuses = ['success', 'warning', 'error'];
|
|
17
17
|
const snackbarPriorities = ['low', 'normal', 'high'];
|
|
18
18
|
const snackbarDismissReasons = ['timeout', 'manual', 'action', 'overridden', 'swallowed'];
|
|
19
|
+
const popoverPlacements = ['top', 'bottom', 'start', 'end', 'top-start', 'top-end', 'bottom-start', 'bottom-end'];
|
|
20
|
+
const popoverSizes = ['sm', 'md', 'lg'];
|
|
19
21
|
|
|
20
22
|
exports.chipSizes = chipSizes;
|
|
21
23
|
exports.chipTypes = chipTypes;
|
|
@@ -25,6 +27,8 @@ exports.inputSizes = inputSizes;
|
|
|
25
27
|
exports.inputTypes = inputTypes;
|
|
26
28
|
exports.linkTypes = linkTypes;
|
|
27
29
|
exports.messageTypes = messageTypes;
|
|
30
|
+
exports.popoverPlacements = popoverPlacements;
|
|
31
|
+
exports.popoverSizes = popoverSizes;
|
|
28
32
|
exports.scaleValues = scaleValues;
|
|
29
33
|
exports.selectSizes = selectSizes;
|
|
30
34
|
exports.sizes = sizes;
|
|
@@ -110,6 +110,19 @@ function getDeepActiveElement(root = document) {
|
|
|
110
110
|
}
|
|
111
111
|
return activeElement;
|
|
112
112
|
}
|
|
113
|
+
function walkShadowDOMUntil(start, condition) {
|
|
114
|
+
if (!start)
|
|
115
|
+
return undefined;
|
|
116
|
+
if (condition(start))
|
|
117
|
+
return start;
|
|
118
|
+
const children = start.shadowRoot ? Array.from(start.shadowRoot.children) : Array.from(start.children);
|
|
119
|
+
for (const child of children) {
|
|
120
|
+
const result = walkShadowDOMUntil(child, condition);
|
|
121
|
+
if (result)
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
113
126
|
function canReceiveFocus(el) {
|
|
114
127
|
if (!el)
|
|
115
128
|
return false;
|
|
@@ -141,6 +154,26 @@ function findFormByRef(form, el) {
|
|
|
141
154
|
}
|
|
142
155
|
return el.closest('form');
|
|
143
156
|
}
|
|
157
|
+
function isInteractiveElement(el) {
|
|
158
|
+
const tagName = el.tagName.toLowerCase();
|
|
159
|
+
if (['button', 'input', 'select', 'textarea'].includes(tagName)) {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
if (tagName === 'a' && el.hasAttribute('href')) {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
if (el.hasAttribute('tabindex')) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
const role = el.getAttribute('role');
|
|
169
|
+
if (role) {
|
|
170
|
+
const interactiveRoles = ['button', 'link', 'menuitem', 'option', 'combobox', 'listbox', 'checkbox', 'radio', 'switch', 'tab'];
|
|
171
|
+
if (interactiveRoles.includes(role)) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
144
177
|
|
|
145
178
|
exports.canReceiveFocus = canReceiveFocus;
|
|
146
179
|
exports.findFormByRef = findFormByRef;
|
|
@@ -148,7 +181,9 @@ exports.getDeepActiveElement = getDeepActiveElement;
|
|
|
148
181
|
exports.inheritAriaAttributes = inheritAriaAttributes;
|
|
149
182
|
exports.isActionButton = isActionButton;
|
|
150
183
|
exports.isDisabledButton = isDisabledButton;
|
|
184
|
+
exports.isInteractiveElement = isInteractiveElement;
|
|
151
185
|
exports.isLmvzButton = isLmvzButton;
|
|
152
186
|
exports.isPrimaryAction = isPrimaryAction;
|
|
153
187
|
exports.isSecondaryAction = isSecondaryAction;
|
|
154
188
|
exports.isVisible = isVisible;
|
|
189
|
+
exports.walkShadowDOMUntil = walkShadowDOMUntil;
|