@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.
Files changed (191) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/cjs/{aria-loader-BRo2FTGh.js → aria-loader-DWUVcapD.js} +1 -1
  3. package/cjs/{aria-validation-controller-Z4TtOp2l.js → aria-validation-controller-BC0Eaiv4.js} +1 -1
  4. package/cjs/async.util-BQ60l-WC.js +20 -0
  5. package/cjs/{ds.constants-CKeXfK-s.js → ds.constants-C6eKRAEu.js} +5 -1
  6. package/cjs/{element.util-Cq4y-_iX.js → element.util-Dbyc8yUG.js} +35 -0
  7. package/cjs/{icons-BQASWgk-.js → icons-snv0hyf1.js} +1 -1
  8. package/cjs/{index-3g9Z9sfF.js → index-Bn3k5SiE.js} +1044 -508
  9. package/cjs/index.cjs.js +7 -5
  10. package/cjs/{list-keyboard-controller-StN6Yn8W.js → list-keyboard-controller-Dm5S_l0D.js} +1 -1
  11. package/cjs/lmvz-action-list.cjs.entry.js +13 -6
  12. package/cjs/lmvz-button-group.cjs.entry.js +4 -4
  13. package/cjs/lmvz-button_2.cjs.entry.js +7 -7
  14. package/cjs/lmvz-card.cjs.entry.js +1 -1
  15. package/cjs/lmvz-checkbox.cjs.entry.js +5 -5
  16. package/cjs/lmvz-chip.cjs.entry.js +3 -3
  17. package/cjs/lmvz-components.cjs.js +1 -1
  18. package/cjs/lmvz-header_2.cjs.entry.js +4 -4
  19. package/cjs/lmvz-input.cjs.entry.js +4 -3
  20. package/cjs/lmvz-link.cjs.entry.js +4 -4
  21. package/cjs/lmvz-menuitem.cjs.entry.js +3 -3
  22. package/cjs/lmvz-message.cjs.entry.js +3 -3
  23. package/cjs/lmvz-modal.cjs.entry.js +6 -6
  24. package/cjs/lmvz-popover.cjs.entry.js +1570 -0
  25. package/cjs/lmvz-radio.cjs.entry.js +4 -4
  26. package/cjs/lmvz-select.cjs.entry.js +3 -3
  27. package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
  28. package/cjs/lmvz-spinner.cjs.entry.js +1 -1
  29. package/cjs/lmvz-tab.cjs.entry.js +1 -1
  30. package/cjs/lmvz-tabs.cjs.entry.js +3 -3
  31. package/cjs/lmvz-toggle.cjs.entry.js +6 -5
  32. package/cjs/loader.cjs.js +1 -1
  33. package/cjs/{logger-DsM6xg6V.js → logger-NBdKPSou.js} +1 -1
  34. package/cjs/{stencil.util-DzvzXSwk.js → stencil.util-DxdYjVoH.js} +2 -10
  35. package/cjs/{svg-BMBduILB.js → svg-CysxzZw7.js} +1 -1
  36. package/collection/api/ds.constants.js +3 -1
  37. package/collection/collection-manifest.json +1 -0
  38. package/collection/components/lmvz-action-list/lmvz-action-list.css +150 -38
  39. package/collection/components/lmvz-action-list/lmvz-action-list.js +9 -1
  40. package/collection/components/lmvz-button/lmvz-button.css +14 -18
  41. package/collection/components/lmvz-button/lmvz-button.js +1 -1
  42. package/collection/components/lmvz-button-group/lmvz-button-group.css +1 -2
  43. package/collection/components/lmvz-card/lmvz-card.css +16 -19
  44. package/collection/components/lmvz-checkbox/lmvz-checkbox.css +3 -6
  45. package/collection/components/lmvz-link/lmvz-link.css +1 -1
  46. package/collection/components/lmvz-menuitem/lmvz-menuitem.css +1 -2
  47. package/collection/components/lmvz-modal/lmvz-modal.css +1 -2
  48. package/collection/components/lmvz-popover/lmvz-popover.css +46 -0
  49. package/collection/components/lmvz-popover/lmvz-popover.js +470 -0
  50. package/collection/components/lmvz-radio/lmvz-radio.css +2 -4
  51. package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
  52. package/collection/components/lmvz-select/lmvz-select.js +1 -1
  53. package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
  54. package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
  55. package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
  56. package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
  57. package/collection/components/lmvz-toggle/lmvz-toggle.css +1 -2
  58. package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
  59. package/collection/integration/header-integration/header-integration.js +1 -1
  60. package/collection/utils/async/async.util.js +6 -0
  61. package/collection/utils/element/element.util.js +33 -0
  62. package/components/index.d.ts +2 -0
  63. package/components/index.d.ts.bak +2 -0
  64. package/components/index.js +1 -1
  65. package/components/lmvz-action-list.js +1 -1
  66. package/components/lmvz-button-group.js +1 -1
  67. package/components/lmvz-button.js +1 -1
  68. package/components/lmvz-card.js +1 -1
  69. package/components/lmvz-checkbox.js +1 -1
  70. package/components/lmvz-chip.js +1 -1
  71. package/components/lmvz-header.js +1 -1
  72. package/components/lmvz-icon.js +1 -1
  73. package/components/lmvz-input.js +1 -1
  74. package/components/lmvz-link.js +1 -1
  75. package/components/lmvz-menuitem.js +1 -1
  76. package/components/lmvz-message.js +1 -1
  77. package/components/lmvz-modal.js +1 -1
  78. package/components/lmvz-popover.d.ts +11 -0
  79. package/components/lmvz-popover.d.ts.bak +11 -0
  80. package/components/lmvz-popover.js +1 -0
  81. package/components/lmvz-radio.js +1 -1
  82. package/components/lmvz-select.js +1 -1
  83. package/components/lmvz-snackbar.js +1 -1
  84. package/components/lmvz-spinner.js +1 -1
  85. package/components/lmvz-tab.js +1 -1
  86. package/components/lmvz-tabs.js +1 -1
  87. package/components/lmvz-toggle.js +1 -1
  88. package/components/p-0ctLESas.js +1 -0
  89. package/components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
  90. package/components/p-BhSTYZC6.js +1 -0
  91. package/components/p-CE-QR3Tp.js +1 -0
  92. package/components/{p-C8znmF2h.js → p-CFTmV4XZ.js} +1 -1
  93. package/components/{p-CxfT9IA1.js → p-CK3Ixl1K.js} +1 -1
  94. package/components/p-Cghfdblf.js +12 -0
  95. package/components/{p-B4m1n4et.js → p-D-2gj6LP.js} +1 -1
  96. package/components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
  97. package/components/{p-DeO5Vbxh.js → p-D7S1WiEC.js} +1 -1
  98. package/components/p-D9nUtvTm.js +1 -0
  99. package/components/{p-DJ90327O.js → p-De-xQqdU.js} +1 -1
  100. package/components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
  101. package/esm/{aria-loader-GfsGHZHY.js → aria-loader-BfH06m7H.js} +1 -1
  102. package/esm/{aria-validation-controller-BnyUKeJ6.js → aria-validation-controller-BvOU1BO8.js} +1 -1
  103. package/esm/async.util-D9nUtvTm.js +17 -0
  104. package/esm/{ds.constants-DuEtnKRj.js → ds.constants-0ctLESas.js} +4 -2
  105. package/esm/{element.util-CxfT9IA1.js → element.util-B0eCxdyI.js} +34 -1
  106. package/esm/{icons-CmuFKDRz.js → icons-DQOFaux5.js} +1 -1
  107. package/esm/{index-Dh_9sN0q.js → index-7ULiPTL_.js} +1044 -508
  108. package/esm/index.js +5 -5
  109. package/esm/{list-keyboard-controller-BKa9Kd2t.js → list-keyboard-controller-tle6IRkv.js} +1 -1
  110. package/esm/lmvz-action-list.entry.js +13 -6
  111. package/esm/lmvz-button-group.entry.js +4 -4
  112. package/esm/lmvz-button_2.entry.js +7 -7
  113. package/esm/lmvz-card.entry.js +1 -1
  114. package/esm/lmvz-checkbox.entry.js +5 -5
  115. package/esm/lmvz-chip.entry.js +3 -3
  116. package/esm/lmvz-components.js +1 -1
  117. package/esm/lmvz-header_2.entry.js +4 -4
  118. package/esm/lmvz-input.entry.js +4 -3
  119. package/esm/lmvz-link.entry.js +4 -4
  120. package/esm/lmvz-menuitem.entry.js +3 -3
  121. package/esm/lmvz-message.entry.js +3 -3
  122. package/esm/lmvz-modal.entry.js +6 -6
  123. package/esm/lmvz-popover.entry.js +1568 -0
  124. package/esm/lmvz-radio.entry.js +4 -4
  125. package/esm/lmvz-select.entry.js +3 -3
  126. package/esm/lmvz-snackbar.entry.js +1 -1
  127. package/esm/lmvz-spinner.entry.js +1 -1
  128. package/esm/lmvz-tab.entry.js +1 -1
  129. package/esm/lmvz-tabs.entry.js +3 -3
  130. package/esm/lmvz-toggle.entry.js +6 -5
  131. package/esm/loader.js +1 -1
  132. package/esm/{logger-CGmJG63p.js → logger-D06Ds9Dh.js} +1 -1
  133. package/esm/{stencil.util-CJRqhXjK.js → stencil.util-wGFRYLwZ.js} +1 -9
  134. package/esm/{svg-B2YoIRuh.js → svg-Dz3GD0LB.js} +1 -1
  135. package/hydrate/index.js +1652 -25
  136. package/hydrate/index.mjs +1652 -25
  137. package/lmvz-components/index.esm.js +1 -1
  138. package/lmvz-components/lmvz-components.esm.js +1 -1
  139. package/lmvz-components/p-03c38ff2.entry.js +1 -0
  140. package/lmvz-components/{p-582f44ff.entry.js → p-08613ba2.entry.js} +1 -1
  141. package/lmvz-components/p-0ctLESas.js +1 -0
  142. package/lmvz-components/{p-ed3c2b13.entry.js → p-11de5905.entry.js} +1 -1
  143. package/lmvz-components/{p-b79af711.entry.js → p-2036044c.entry.js} +1 -1
  144. package/lmvz-components/{p-c0d05a97.entry.js → p-4254aa38.entry.js} +1 -1
  145. package/lmvz-components/{p-8e1f66dd.entry.js → p-49e98627.entry.js} +1 -1
  146. package/lmvz-components/p-4f005b23.entry.js +1 -0
  147. package/lmvz-components/p-50063516.entry.js +1 -0
  148. package/lmvz-components/{p-48109e1d.entry.js → p-585470ef.entry.js} +1 -1
  149. package/lmvz-components/{p-24125bcf.entry.js → p-5bbbcfc0.entry.js} +1 -1
  150. package/lmvz-components/{p-c3e8092e.entry.js → p-6140866f.entry.js} +1 -1
  151. package/lmvz-components/p-9b7ce515.entry.js +1 -0
  152. package/lmvz-components/p-9f8fd077.entry.js +1 -0
  153. package/lmvz-components/{p-CxfT9IA1.js → p-B0eCxdyI.js} +1 -1
  154. package/lmvz-components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
  155. package/lmvz-components/p-BhSTYZC6.js +1 -0
  156. package/lmvz-components/p-Cghfdblf.js +12 -0
  157. package/lmvz-components/p-CyDgnpOB.js +1 -0
  158. package/lmvz-components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
  159. package/lmvz-components/{p-CPOia2kT.js → p-D9PQIBzA.js} +1 -1
  160. package/lmvz-components/p-D9nUtvTm.js +1 -0
  161. package/lmvz-components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
  162. package/lmvz-components/{p-B4m1n4et.js → p-DuLiExhX.js} +1 -1
  163. package/lmvz-components/{p-1ce90ea7.entry.js → p-b0626234.entry.js} +1 -1
  164. package/lmvz-components/{p-fa2cd315.entry.js → p-b67ff2d1.entry.js} +1 -1
  165. package/lmvz-components/p-bfde444e.entry.js +1 -0
  166. package/lmvz-components/{p-703b10b5.entry.js → p-cc2734e9.entry.js} +1 -1
  167. package/lmvz-components/{p-25a78ead.entry.js → p-ce1a9f39.entry.js} +1 -1
  168. package/lmvz-components/{p-80a26307.entry.js → p-ddc28256.entry.js} +1 -1
  169. package/lmvz-components/p-fd455288.entry.js +1 -0
  170. package/manifest.json +386 -3
  171. package/package.json +7 -3
  172. package/types/api/ds.constants.d.ts +3 -1
  173. package/types/api/ds.types.d.ts +7 -0
  174. package/types/components/lmvz-popover/lmvz-popover.d.ts +37 -0
  175. package/types/components.d.ts +108 -1
  176. package/types/utils/async/async.util.d.ts +3 -0
  177. package/types/utils/element/element.util.d.ts +2 -0
  178. package/components/p-0s99QfRy.js +0 -12
  179. package/components/p-B0H9qIwE.js +0 -1
  180. package/components/p-CJRqhXjK.js +0 -1
  181. package/components/p-DuEtnKRj.js +0 -1
  182. package/lmvz-components/p-0s99QfRy.js +0 -12
  183. package/lmvz-components/p-4072b2fb.entry.js +0 -1
  184. package/lmvz-components/p-592d509b.entry.js +0 -1
  185. package/lmvz-components/p-6f61c24d.entry.js +0 -1
  186. package/lmvz-components/p-74c7521c.entry.js +0 -1
  187. package/lmvz-components/p-947e1fe6.entry.js +0 -1
  188. package/lmvz-components/p-CFsC37ww.js +0 -1
  189. package/lmvz-components/p-CJRqhXjK.js +0 -1
  190. package/lmvz-components/p-DuEtnKRj.js +0 -1
  191. 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-3g9Z9sfF.js'); }).catch(() => null);
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) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ariaLoader = require('./aria-loader-BRo2FTGh.js');
3
+ var ariaLoader = require('./aria-loader-DWUVcapD.js');
4
4
  var index = require('./index-TGsVZNDP.js');
5
5
 
6
6
  class AriaValidationController {
@@ -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;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var svg = require('./svg-BMBduILB.js');
3
+ var svg = require('./svg-CysxzZw7.js');
4
4
 
5
5
  const IconProviderRegistryKey = Symbol.for('LMVZ__iconProviderRegistry');
6
6
  const inMemoryRegistry = {};