@lmvz-ds/components 0.13.0 → 0.13.2

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 (110) hide show
  1. package/dist/{esm/assets-ozES4zSA.js → cjs/Effect-CpZhfb0D.js} +5538 -1194
  2. package/dist/cjs/aria-loader-BhgXpCuo.js +77 -0
  3. package/dist/cjs/assets-BnJmIx_h.js +26 -0
  4. package/dist/cjs/{icons-DM_TTn48.js → icons-Brr4vqiE.js} +165 -369
  5. package/dist/cjs/{index-D3BMpL5w.js → index-9ZJx0550.js} +3 -0
  6. package/dist/cjs/index-BVxGxK9i.js +35629 -0
  7. package/dist/cjs/index.cjs.js +12 -4
  8. package/dist/cjs/lmvz-action.cjs.entry.js +1 -1
  9. package/dist/cjs/lmvz-button.cjs.entry.js +6 -3
  10. package/dist/cjs/lmvz-card.cjs.entry.js +4 -4
  11. package/dist/cjs/lmvz-chip.cjs.entry.js +1 -1
  12. package/dist/cjs/lmvz-components.cjs.js +1 -1
  13. package/dist/cjs/lmvz-header.cjs.entry.js +8 -5
  14. package/dist/cjs/lmvz-icon.cjs.entry.js +20 -9
  15. package/dist/cjs/lmvz-input.cjs.entry.js +8 -5
  16. package/dist/cjs/lmvz-menuitem.cjs.entry.js +7 -4
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/cjs/{reactive-controller-host-BMDEj1kX.js → reactive-controller-host-t3uLq_s2.js} +71 -50
  19. package/dist/collection/components/lmvz-button/lmvz-button.js +3 -1
  20. package/dist/collection/components/lmvz-card/lmvz-card.js +3 -4
  21. package/dist/collection/components/lmvz-header/lmvz-header.js +5 -3
  22. package/dist/collection/components/lmvz-icon/icons.js +2 -2
  23. package/dist/collection/components/lmvz-icon/lmvz-icon.js +14 -5
  24. package/dist/collection/components/lmvz-input/lmvz-input.js +5 -3
  25. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
  26. package/dist/collection/index.js +1 -0
  27. package/dist/collection/integration/header-integration.js +1 -3
  28. package/dist/collection/utils/aria/aria-validation-controller.js +68 -27
  29. package/dist/collection/utils/assets.js +9 -6
  30. package/dist/collection/utils/http.js +2 -2
  31. package/dist/collection/utils/http.unit.js +1 -1
  32. package/dist/collection/utils/validation/svg.js +1 -1
  33. package/dist/components/index.js +1 -1
  34. package/dist/components/lmvz-action.js +1 -1
  35. package/dist/components/lmvz-button.js +1 -1
  36. package/dist/components/lmvz-card.js +1 -1
  37. package/dist/components/lmvz-chip.js +1 -1
  38. package/dist/components/lmvz-header.js +1 -1
  39. package/dist/components/lmvz-icon.js +1 -1
  40. package/dist/components/lmvz-input.js +1 -1
  41. package/dist/components/lmvz-menuitem.js +1 -1
  42. package/dist/components/p-B68hOTYN.js +12 -0
  43. package/dist/components/p-BaPwpeMs.js +1 -0
  44. package/dist/components/p-CSRpdnrt.js +1 -0
  45. package/dist/components/p-DFXwtZsD.js +1 -0
  46. package/dist/components/p-DcMNH3fv.js +1 -0
  47. package/dist/components/p-dQa_lGo8.js +1 -0
  48. package/dist/{cjs/assets-CB5ikzmP.js → esm/Effect-DyamyJqO.js} +5329 -1266
  49. package/dist/esm/aria-loader-BQXogs4-.js +70 -0
  50. package/dist/esm/assets-CvV1KMMV.js +23 -0
  51. package/dist/esm/{icons-kpJZ1u9g.js → icons-C69Um2xB.js} +69 -273
  52. package/dist/esm/index-BRxn9h5l.js +35626 -0
  53. package/dist/esm/{index-T5ljELGS.js → index-smGPjoDX.js} +3 -1
  54. package/dist/esm/index.js +5 -3
  55. package/dist/esm/lmvz-action.entry.js +1 -1
  56. package/dist/esm/lmvz-button.entry.js +6 -3
  57. package/dist/esm/lmvz-card.entry.js +4 -4
  58. package/dist/esm/lmvz-chip.entry.js +1 -1
  59. package/dist/esm/lmvz-components.js +2 -2
  60. package/dist/esm/lmvz-header.entry.js +8 -5
  61. package/dist/esm/lmvz-icon.entry.js +20 -9
  62. package/dist/esm/lmvz-input.entry.js +8 -5
  63. package/dist/esm/lmvz-menuitem.entry.js +7 -4
  64. package/dist/esm/loader.js +2 -2
  65. package/dist/esm/{reactive-controller-host-CZ3dGAjR.js → reactive-controller-host-puHvKP9Y.js} +65 -44
  66. package/dist/lmvz-components/index.esm.js +1 -1
  67. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  68. package/dist/lmvz-components/p-0e5aa1a3.entry.js +1 -0
  69. package/dist/lmvz-components/p-0f930140.entry.js +1 -0
  70. package/dist/lmvz-components/p-2df3646d.entry.js +1 -0
  71. package/dist/lmvz-components/p-470f6f56.entry.js +1 -0
  72. package/dist/lmvz-components/p-67af4826.entry.js +1 -0
  73. package/dist/lmvz-components/p-775b737d.entry.js +1 -0
  74. package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
  75. package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
  76. package/dist/lmvz-components/p-D7GrtdQF.js +1 -0
  77. package/dist/lmvz-components/p-DJp2UHon.js +12 -0
  78. package/dist/lmvz-components/p-DWVncv6N.js +1 -0
  79. package/dist/lmvz-components/p-DyamyJqO.js +1 -0
  80. package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
  81. package/dist/lmvz-components/p-qPGwETYT.js +1 -0
  82. package/dist/lmvz-components/p-smGPjoDX.js +2 -0
  83. package/dist/manifest.json +1 -1
  84. package/dist/types/components/lmvz-button/lmvz-button.d.ts +1 -0
  85. package/dist/types/components/lmvz-header/lmvz-header.d.ts +1 -0
  86. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +3 -0
  87. package/dist/types/components/lmvz-input/lmvz-input.d.ts +2 -1
  88. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -1
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/utils/aria/aria-validation-controller.d.ts +8 -2
  91. package/dist/types/utils/assets.d.ts +1 -8
  92. package/dist/types/utils/http.d.ts +3 -3
  93. package/dist/types/utils/validation/svg.d.ts +2 -2
  94. package/hydrate/index.js +2225 -12448
  95. package/hydrate/index.mjs +2225 -12448
  96. package/package.json +6 -8
  97. package/dist/components/p-BBDH9X49.js +0 -1
  98. package/dist/components/p-Bs6_m7Uw.js +0 -1
  99. package/dist/components/p-CMteT-Yo.js +0 -1
  100. package/dist/components/p-vi4YzJmv.js +0 -1
  101. package/dist/lmvz-components/p-16878d4c.entry.js +0 -1
  102. package/dist/lmvz-components/p-4ad8c332.entry.js +0 -1
  103. package/dist/lmvz-components/p-5eee0752.entry.js +0 -1
  104. package/dist/lmvz-components/p-8ea1a349.entry.js +0 -1
  105. package/dist/lmvz-components/p-CZ3dGAjR.js +0 -1
  106. package/dist/lmvz-components/p-D9lc4ayG.js +0 -1
  107. package/dist/lmvz-components/p-T5ljELGS.js +0 -2
  108. package/dist/lmvz-components/p-a34542fa.entry.js +0 -1
  109. package/dist/lmvz-components/p-d2bf6a3f.entry.js +0 -1
  110. package/dist/lmvz-components/p-iviTjlUy.js +0 -1
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
4
+ const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
5
+ const getRuntimeState = () => {
6
+ const globalState = globalThis;
7
+ if (!globalState[GLOBAL_STATE_KEY]) {
8
+ globalState[GLOBAL_STATE_KEY] = {
9
+ enabled: false,
10
+ };
11
+ }
12
+ return globalState[GLOBAL_STATE_KEY];
13
+ };
14
+ const notifyRuntimeChange = () => {
15
+ if (typeof window === 'undefined')
16
+ return;
17
+ window.dispatchEvent(new CustomEvent(ARIA_VALIDATION_RUNTIME_CHANGED_EVENT));
18
+ };
19
+ const isAriaValidationEnabled = () => getRuntimeState().enabled;
20
+ const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
21
+ const fetchRuntime = async () => {
22
+ const state = getRuntimeState();
23
+ if (!state.enabled)
24
+ return null;
25
+ if (state.runtime)
26
+ return state.runtime;
27
+ if (!state.loadPromise) {
28
+ state.loadPromise = Promise.resolve().then(function () { return require('./index-BVxGxK9i.js'); }).catch(() => null);
29
+ }
30
+ const runtime = await state.loadPromise;
31
+ if (runtime) {
32
+ state.runtime = runtime;
33
+ }
34
+ return runtime;
35
+ };
36
+ const enableAriaValidation = (options = {}) => {
37
+ const state = getRuntimeState();
38
+ if (state.enabled)
39
+ return;
40
+ Object.assign(state, options);
41
+ state.enabled = true;
42
+ initializeValidation().then(() => {
43
+ notifyRuntimeChange();
44
+ });
45
+ };
46
+ const disableAriaValidation = () => {
47
+ const state = getRuntimeState();
48
+ if (!state.enabled)
49
+ return;
50
+ state.enabled = false;
51
+ notifyRuntimeChange();
52
+ };
53
+ function initializeValidation(...args) {
54
+ return fetchRuntime().then((runtime) => {
55
+ const s = getRuntimeState();
56
+ if (!s.enabled)
57
+ return;
58
+ if (!runtime) {
59
+ console.warn('Failed to load aria validation runtime');
60
+ return;
61
+ }
62
+ runtime.initializeValidationStream(...args);
63
+ });
64
+ }
65
+ function queueValidation(...args) {
66
+ const state = getRuntimeState();
67
+ if (!state.enabled || !state.runtime)
68
+ return;
69
+ state.runtime.enqueueValidation(...args);
70
+ }
71
+
72
+ exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
73
+ exports.disableAriaValidation = disableAriaValidation;
74
+ exports.enableAriaValidation = enableAriaValidation;
75
+ exports.isAriaValidationEnabled = isAriaValidationEnabled;
76
+ exports.queueValidation = queueValidation;
77
+ exports.useVerboseLogging = useVerboseLogging;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-9ZJx0550.js');
4
+
5
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
+ function getLocationBase() {
7
+ return (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('assets-BnJmIx_h.js', document.baseURI).href)) ?? window?.location?.origin ?? '';
8
+ }
9
+
10
+ const relativeAssetsPath = '../../assets';
11
+ const createAssetUrlSafely = (file, pathFromAssetRoot) => {
12
+ const relativeAssetPath = joinPath(relativeAssetsPath, pathFromAssetRoot, file);
13
+ try {
14
+ return index.getAssetPath(relativeAssetPath);
15
+ }
16
+ catch {
17
+ console.warn(`Failed to create URL for asset "${file}" in path "${pathFromAssetRoot}".
18
+ Please provide an absolute URL in your app's 'setAssetPath(...)' configuration! Falling back to a relative URL, which may work in some environments but is not guaranteed to be correct.`);
19
+ return new URL(relativeAssetPath, getLocationBase());
20
+ }
21
+ };
22
+ function joinPath(...parts) {
23
+ return parts.filter(Boolean).join('/').replace('//', '/').replace('/./', '/');
24
+ }
25
+
26
+ exports.createAssetUrlSafely = createAssetUrlSafely;