@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.
- package/dist/cjs/{icons-FIfJEo6G.js → Effect-CpZhfb0D.js} +5153 -1359
- package/dist/cjs/aria-loader-BhgXpCuo.js +77 -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-BVxGxK9i.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-t3uLq_s2.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-B68hOTYN.js +12 -0
- package/dist/components/p-BaPwpeMs.js +1 -0
- package/dist/components/p-CSRpdnrt.js +1 -0
- package/dist/components/p-DFXwtZsD.js +1 -0
- package/dist/{lmvz-components/p-CVf2C8dL.js → components/p-DcMNH3fv.js} +1 -1
- package/dist/components/p-dQa_lGo8.js +1 -0
- package/dist/esm/{icons-CM7lsnuO.js → Effect-DyamyJqO.js} +4951 -1357
- package/dist/esm/aria-loader-BQXogs4-.js +70 -0
- package/dist/esm/{assets-BelZNJ1W.js → assets-CvV1KMMV.js} +1 -1
- package/dist/esm/icons-C69Um2xB.js +649 -0
- package/dist/esm/index-BRxn9h5l.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-puHvKP9Y.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-0f930140.entry.js +1 -0
- package/dist/lmvz-components/p-2df3646d.entry.js +1 -0
- package/dist/lmvz-components/p-470f6f56.entry.js +1 -0
- package/dist/lmvz-components/p-67af4826.entry.js +1 -0
- package/dist/lmvz-components/p-775b737d.entry.js +1 -0
- package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
- package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
- package/dist/{components/p-CdYWDK7m.js → lmvz-components/p-D7GrtdQF.js} +1 -1
- package/dist/lmvz-components/p-DJp2UHon.js +12 -0
- package/dist/lmvz-components/p-DWVncv6N.js +1 -0
- package/dist/lmvz-components/p-DyamyJqO.js +1 -0
- package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
- package/dist/lmvz-components/p-qPGwETYT.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 +94 -37
- package/hydrate/index.mjs +94 -37
- 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,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;
|
|
@@ -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';
|