@lmvz-ds/components 0.13.1 → 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 (98) hide show
  1. package/dist/cjs/{icons-FIfJEo6G.js → Effect-CpZhfb0D.js} +5153 -1359
  2. package/dist/cjs/aria-loader-BhgXpCuo.js +77 -0
  3. package/dist/cjs/{assets-CJzJZPzV.js → assets-BnJmIx_h.js} +2 -2
  4. package/dist/cjs/icons-Brr4vqiE.js +653 -0
  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 +2 -2
  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-header/lmvz-header.js +5 -3
  21. package/dist/collection/components/lmvz-icon/lmvz-icon.js +14 -5
  22. package/dist/collection/components/lmvz-input/lmvz-input.js +5 -3
  23. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
  24. package/dist/collection/index.js +1 -0
  25. package/dist/collection/integration/header-integration.js +1 -3
  26. package/dist/collection/utils/aria/aria-validation-controller.js +68 -27
  27. package/dist/components/index.js +1 -1
  28. package/dist/components/lmvz-action.js +1 -1
  29. package/dist/components/lmvz-button.js +1 -1
  30. package/dist/components/lmvz-card.js +1 -1
  31. package/dist/components/lmvz-chip.js +1 -1
  32. package/dist/components/lmvz-header.js +1 -1
  33. package/dist/components/lmvz-icon.js +1 -1
  34. package/dist/components/lmvz-input.js +1 -1
  35. package/dist/components/lmvz-menuitem.js +1 -1
  36. package/dist/components/p-B68hOTYN.js +12 -0
  37. package/dist/components/p-BaPwpeMs.js +1 -0
  38. package/dist/components/p-CSRpdnrt.js +1 -0
  39. package/dist/components/p-DFXwtZsD.js +1 -0
  40. package/dist/{lmvz-components/p-CVf2C8dL.js → components/p-DcMNH3fv.js} +1 -1
  41. package/dist/components/p-dQa_lGo8.js +1 -0
  42. package/dist/esm/{icons-CM7lsnuO.js → Effect-DyamyJqO.js} +4951 -1357
  43. package/dist/esm/aria-loader-BQXogs4-.js +70 -0
  44. package/dist/esm/{assets-BelZNJ1W.js → assets-CvV1KMMV.js} +1 -1
  45. package/dist/esm/icons-C69Um2xB.js +649 -0
  46. package/dist/esm/index-BRxn9h5l.js +35626 -0
  47. package/dist/esm/{index-T5ljELGS.js → index-smGPjoDX.js} +3 -1
  48. package/dist/esm/index.js +5 -4
  49. package/dist/esm/lmvz-action.entry.js +1 -1
  50. package/dist/esm/lmvz-button.entry.js +6 -3
  51. package/dist/esm/lmvz-card.entry.js +2 -2
  52. package/dist/esm/lmvz-chip.entry.js +1 -1
  53. package/dist/esm/lmvz-components.js +2 -2
  54. package/dist/esm/lmvz-header.entry.js +8 -5
  55. package/dist/esm/lmvz-icon.entry.js +20 -9
  56. package/dist/esm/lmvz-input.entry.js +8 -5
  57. package/dist/esm/lmvz-menuitem.entry.js +7 -4
  58. package/dist/esm/loader.js +2 -2
  59. package/dist/esm/{reactive-controller-host-CZ3dGAjR.js → reactive-controller-host-puHvKP9Y.js} +65 -44
  60. package/dist/lmvz-components/index.esm.js +1 -1
  61. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  62. package/dist/lmvz-components/{p-d9dc29a1.entry.js → p-0e5aa1a3.entry.js} +1 -1
  63. package/dist/lmvz-components/p-0f930140.entry.js +1 -0
  64. package/dist/lmvz-components/p-2df3646d.entry.js +1 -0
  65. package/dist/lmvz-components/p-470f6f56.entry.js +1 -0
  66. package/dist/lmvz-components/p-67af4826.entry.js +1 -0
  67. package/dist/lmvz-components/p-775b737d.entry.js +1 -0
  68. package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
  69. package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
  70. package/dist/{components/p-CdYWDK7m.js → lmvz-components/p-D7GrtdQF.js} +1 -1
  71. package/dist/lmvz-components/p-DJp2UHon.js +12 -0
  72. package/dist/lmvz-components/p-DWVncv6N.js +1 -0
  73. package/dist/lmvz-components/p-DyamyJqO.js +1 -0
  74. package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
  75. package/dist/lmvz-components/p-qPGwETYT.js +1 -0
  76. package/dist/lmvz-components/p-smGPjoDX.js +2 -0
  77. package/dist/manifest.json +1 -1
  78. package/dist/types/components/lmvz-button/lmvz-button.d.ts +1 -0
  79. package/dist/types/components/lmvz-header/lmvz-header.d.ts +1 -0
  80. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +3 -0
  81. package/dist/types/components/lmvz-input/lmvz-input.d.ts +2 -1
  82. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -1
  83. package/dist/types/index.d.ts +1 -0
  84. package/dist/types/utils/aria/aria-validation-controller.d.ts +8 -2
  85. package/hydrate/index.js +94 -37
  86. package/hydrate/index.mjs +94 -37
  87. package/package.json +6 -8
  88. package/dist/components/p-BsS3QvWn.js +0 -1
  89. package/dist/components/p-CMteT-Yo.js +0 -1
  90. package/dist/components/p-vi4YzJmv.js +0 -1
  91. package/dist/lmvz-components/p-16878d4c.entry.js +0 -1
  92. package/dist/lmvz-components/p-6e3314ab.entry.js +0 -1
  93. package/dist/lmvz-components/p-8ea1a349.entry.js +0 -1
  94. package/dist/lmvz-components/p-BoR31cjC.js +0 -1
  95. package/dist/lmvz-components/p-CZ3dGAjR.js +0 -1
  96. package/dist/lmvz-components/p-T5ljELGS.js +0 -2
  97. package/dist/lmvz-components/p-a34542fa.entry.js +0 -1
  98. package/dist/lmvz-components/p-d2bf6a3f.entry.js +0 -1
@@ -0,0 +1,70 @@
1
+ const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
2
+ const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
3
+ const getRuntimeState = () => {
4
+ const globalState = globalThis;
5
+ if (!globalState[GLOBAL_STATE_KEY]) {
6
+ globalState[GLOBAL_STATE_KEY] = {
7
+ enabled: false,
8
+ };
9
+ }
10
+ return globalState[GLOBAL_STATE_KEY];
11
+ };
12
+ const notifyRuntimeChange = () => {
13
+ if (typeof window === 'undefined')
14
+ return;
15
+ window.dispatchEvent(new CustomEvent(ARIA_VALIDATION_RUNTIME_CHANGED_EVENT));
16
+ };
17
+ const isAriaValidationEnabled = () => getRuntimeState().enabled;
18
+ const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
19
+ const fetchRuntime = async () => {
20
+ const state = getRuntimeState();
21
+ if (!state.enabled)
22
+ return null;
23
+ if (state.runtime)
24
+ return state.runtime;
25
+ if (!state.loadPromise) {
26
+ state.loadPromise = import('./index-BRxn9h5l.js').catch(() => null);
27
+ }
28
+ const runtime = await state.loadPromise;
29
+ if (runtime) {
30
+ state.runtime = runtime;
31
+ }
32
+ return runtime;
33
+ };
34
+ const enableAriaValidation = (options = {}) => {
35
+ const state = getRuntimeState();
36
+ if (state.enabled)
37
+ return;
38
+ Object.assign(state, options);
39
+ state.enabled = true;
40
+ initializeValidation().then(() => {
41
+ notifyRuntimeChange();
42
+ });
43
+ };
44
+ const disableAriaValidation = () => {
45
+ const state = getRuntimeState();
46
+ if (!state.enabled)
47
+ return;
48
+ state.enabled = false;
49
+ notifyRuntimeChange();
50
+ };
51
+ function initializeValidation(...args) {
52
+ return fetchRuntime().then((runtime) => {
53
+ const s = getRuntimeState();
54
+ if (!s.enabled)
55
+ return;
56
+ if (!runtime) {
57
+ console.warn('Failed to load aria validation runtime');
58
+ return;
59
+ }
60
+ runtime.initializeValidationStream(...args);
61
+ });
62
+ }
63
+ function queueValidation(...args) {
64
+ const state = getRuntimeState();
65
+ if (!state.enabled || !state.runtime)
66
+ return;
67
+ state.runtime.enqueueValidation(...args);
68
+ }
69
+
70
+ export { ARIA_VALIDATION_RUNTIME_CHANGED_EVENT as A, disableAriaValidation as d, enableAriaValidation as e, isAriaValidationEnabled as i, queueValidation as q, useVerboseLogging as u };
@@ -1,4 +1,4 @@
1
- import { a as getAssetPath } from './index-T5ljELGS.js';
1
+ import { a as getAssetPath } from './index-smGPjoDX.js';
2
2
 
3
3
  function getLocationBase() {
4
4
  return import.meta?.url ?? window?.location?.origin ?? '';