@lmvz-ds/components 0.13.1 → 0.13.3
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/dist/cjs/{icons-FIfJEo6G.js → Effect-CpZhfb0D.js} +5153 -1359
- package/dist/cjs/aria-loader-BBKbBZLq.js +76 -0
- package/dist/cjs/{assets-CJzJZPzV.js → assets-BnJmIx_h.js} +2 -2
- package/dist/cjs/icons-Brr4vqiE.js +653 -0
- package/dist/cjs/{index-D3BMpL5w.js → index-9ZJx0550.js} +3 -0
- package/dist/cjs/index-QRnWYctw.js +35629 -0
- package/dist/cjs/index.cjs.js +12 -4
- package/dist/cjs/lmvz-action.cjs.entry.js +1 -1
- package/dist/cjs/lmvz-button.cjs.entry.js +6 -3
- package/dist/cjs/lmvz-card.cjs.entry.js +2 -2
- package/dist/cjs/lmvz-chip.cjs.entry.js +1 -1
- package/dist/cjs/lmvz-components.cjs.js +1 -1
- package/dist/cjs/lmvz-header.cjs.entry.js +8 -5
- package/dist/cjs/lmvz-icon.cjs.entry.js +20 -9
- package/dist/cjs/lmvz-input.cjs.entry.js +8 -5
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +7 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{reactive-controller-host-BMDEj1kX.js → reactive-controller-host-DWpVosFu.js} +71 -50
- package/dist/collection/components/lmvz-button/lmvz-button.js +3 -1
- package/dist/collection/components/lmvz-header/lmvz-header.js +5 -3
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +14 -5
- package/dist/collection/components/lmvz-input/lmvz-input.js +5 -3
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/integration/header-integration.js +1 -3
- package/dist/collection/utils/aria/aria-validation-controller.js +68 -27
- package/dist/components/index.js +1 -1
- package/dist/components/lmvz-action.js +1 -1
- package/dist/components/lmvz-button.js +1 -1
- package/dist/components/lmvz-card.js +1 -1
- package/dist/components/lmvz-chip.js +1 -1
- package/dist/components/lmvz-header.js +1 -1
- package/dist/components/lmvz-icon.js +1 -1
- package/dist/components/lmvz-input.js +1 -1
- package/dist/components/lmvz-menuitem.js +1 -1
- package/dist/components/p-BaPwpeMs.js +1 -0
- package/dist/components/p-Bz0S2cGj.js +1 -0
- package/dist/components/p-CSRpdnrt.js +1 -0
- package/dist/components/p-DK2hpvEW.js +12 -0
- package/dist/{lmvz-components/p-CVf2C8dL.js → components/p-DcMNH3fv.js} +1 -1
- package/dist/components/p-DugBvwmd.js +1 -0
- package/dist/esm/{icons-CM7lsnuO.js → Effect-DyamyJqO.js} +4951 -1357
- package/dist/esm/aria-loader-DB71Xewa.js +69 -0
- package/dist/esm/{assets-BelZNJ1W.js → assets-CvV1KMMV.js} +1 -1
- package/dist/esm/icons-C69Um2xB.js +649 -0
- package/dist/esm/index-CekEw3_K.js +35626 -0
- package/dist/esm/{index-T5ljELGS.js → index-smGPjoDX.js} +3 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/lmvz-action.entry.js +1 -1
- package/dist/esm/lmvz-button.entry.js +6 -3
- package/dist/esm/lmvz-card.entry.js +2 -2
- package/dist/esm/lmvz-chip.entry.js +1 -1
- package/dist/esm/lmvz-components.js +2 -2
- package/dist/esm/lmvz-header.entry.js +8 -5
- package/dist/esm/lmvz-icon.entry.js +20 -9
- package/dist/esm/lmvz-input.entry.js +8 -5
- package/dist/esm/lmvz-menuitem.entry.js +7 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{reactive-controller-host-CZ3dGAjR.js → reactive-controller-host-1nFoJEdT.js} +65 -44
- package/dist/lmvz-components/index.esm.js +1 -1
- package/dist/lmvz-components/lmvz-components.esm.js +1 -1
- package/dist/lmvz-components/{p-d9dc29a1.entry.js → p-0e5aa1a3.entry.js} +1 -1
- package/dist/lmvz-components/p-5775a56c.entry.js +1 -0
- package/dist/lmvz-components/p-814ee542.entry.js +1 -0
- package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
- package/dist/lmvz-components/p-B3j8zrhV.js +1 -0
- package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
- package/dist/lmvz-components/p-BTpia82J.js +1 -0
- package/dist/{components/p-CdYWDK7m.js → lmvz-components/p-D7GrtdQF.js} +1 -1
- package/dist/lmvz-components/p-DyamyJqO.js +1 -0
- package/dist/lmvz-components/p-c61f7daa.entry.js +1 -0
- package/dist/lmvz-components/p-c6bae21b.entry.js +1 -0
- package/dist/lmvz-components/p-cM67HC0Z.js +12 -0
- package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
- package/dist/lmvz-components/p-f1559aa1.entry.js +1 -0
- package/dist/lmvz-components/p-smGPjoDX.js +2 -0
- package/dist/manifest.json +1 -1
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +1 -0
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +1 -0
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +3 -0
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +2 -1
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/aria/aria-validation-controller.d.ts +8 -2
- package/hydrate/index.js +96 -39
- package/hydrate/index.mjs +96 -39
- package/package.json +6 -8
- package/dist/components/p-BsS3QvWn.js +0 -1
- package/dist/components/p-CMteT-Yo.js +0 -1
- package/dist/components/p-vi4YzJmv.js +0 -1
- package/dist/lmvz-components/p-16878d4c.entry.js +0 -1
- package/dist/lmvz-components/p-6e3314ab.entry.js +0 -1
- package/dist/lmvz-components/p-8ea1a349.entry.js +0 -1
- package/dist/lmvz-components/p-BoR31cjC.js +0 -1
- package/dist/lmvz-components/p-CZ3dGAjR.js +0 -1
- package/dist/lmvz-components/p-T5ljELGS.js +0 -2
- package/dist/lmvz-components/p-a34542fa.entry.js +0 -1
- package/dist/lmvz-components/p-d2bf6a3f.entry.js +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
|
|
4
|
+
const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
|
|
5
|
+
function 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
|
+
function notifyRuntimeChange() {
|
|
15
|
+
if (typeof window === 'undefined')
|
|
16
|
+
return;
|
|
17
|
+
window.dispatchEvent(new CustomEvent(ARIA_VALIDATION_RUNTIME_CHANGED_EVENT));
|
|
18
|
+
}
|
|
19
|
+
async function fetchRuntime() {
|
|
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 = Promise.resolve().then(function () { return require('./index-QRnWYctw.js'); }).catch(() => null);
|
|
27
|
+
}
|
|
28
|
+
const runtime = await state.loadPromise;
|
|
29
|
+
if (runtime) {
|
|
30
|
+
state.runtime = runtime;
|
|
31
|
+
}
|
|
32
|
+
return runtime;
|
|
33
|
+
}
|
|
34
|
+
async function initializeValidation(...args) {
|
|
35
|
+
const runtime = await fetchRuntime();
|
|
36
|
+
const s = getRuntimeState();
|
|
37
|
+
if (!s.enabled)
|
|
38
|
+
return;
|
|
39
|
+
if (!runtime) {
|
|
40
|
+
console.warn('Failed to load aria validation runtime');
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
runtime.initializeValidationStream(...args);
|
|
44
|
+
}
|
|
45
|
+
const isAriaValidationEnabled = () => getRuntimeState().enabled;
|
|
46
|
+
const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
|
|
47
|
+
const enableAriaValidation = (options = {}) => {
|
|
48
|
+
const state = getRuntimeState();
|
|
49
|
+
if (state.enabled)
|
|
50
|
+
return;
|
|
51
|
+
Object.assign(state, options);
|
|
52
|
+
state.enabled = true;
|
|
53
|
+
initializeValidation().then(() => {
|
|
54
|
+
notifyRuntimeChange();
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
const disableAriaValidation = () => {
|
|
58
|
+
const state = getRuntimeState();
|
|
59
|
+
if (!state.enabled)
|
|
60
|
+
return;
|
|
61
|
+
state.enabled = false;
|
|
62
|
+
notifyRuntimeChange();
|
|
63
|
+
};
|
|
64
|
+
function queueValidation(...args) {
|
|
65
|
+
const state = getRuntimeState();
|
|
66
|
+
if (!state.enabled || !state.runtime)
|
|
67
|
+
return;
|
|
68
|
+
state.runtime.enqueueValidation(...args);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
|
|
72
|
+
exports.disableAriaValidation = disableAriaValidation;
|
|
73
|
+
exports.enableAriaValidation = enableAriaValidation;
|
|
74
|
+
exports.isAriaValidationEnabled = isAriaValidationEnabled;
|
|
75
|
+
exports.queueValidation = queueValidation;
|
|
76
|
+
exports.useVerboseLogging = useVerboseLogging;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-9ZJx0550.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
function getLocationBase() {
|
|
7
|
-
return (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('assets-
|
|
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
8
|
}
|
|
9
9
|
|
|
10
10
|
const relativeAssetsPath = '../../assets';
|