@lmvz-ds/components 0.13.0 → 0.13.1

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 (43) hide show
  1. package/dist/cjs/assets-CJzJZPzV.js +26 -0
  2. package/dist/cjs/{assets-CB5ikzmP.js → icons-FIfJEo6G.js} +1251 -773
  3. package/dist/cjs/index.cjs.js +3 -3
  4. package/dist/cjs/lmvz-card.cjs.entry.js +3 -3
  5. package/dist/cjs/lmvz-icon.cjs.entry.js +3 -3
  6. package/dist/collection/components/lmvz-card/lmvz-card.js +3 -4
  7. package/dist/collection/components/lmvz-icon/icons.js +2 -2
  8. package/dist/collection/utils/assets.js +9 -6
  9. package/dist/collection/utils/http.js +2 -2
  10. package/dist/collection/utils/http.unit.js +1 -1
  11. package/dist/collection/utils/validation/svg.js +1 -1
  12. package/dist/components/index.js +1 -1
  13. package/dist/components/lmvz-card.js +1 -1
  14. package/dist/components/lmvz-header.js +1 -1
  15. package/dist/components/lmvz-icon.js +1 -1
  16. package/dist/components/p-BsS3QvWn.js +1 -0
  17. package/dist/components/p-CdYWDK7m.js +1 -0
  18. package/dist/esm/assets-BelZNJ1W.js +23 -0
  19. package/dist/esm/{assets-ozES4zSA.js → icons-CM7lsnuO.js} +1249 -708
  20. package/dist/esm/index.js +3 -2
  21. package/dist/esm/lmvz-card.entry.js +3 -3
  22. package/dist/esm/lmvz-icon.entry.js +2 -2
  23. package/dist/lmvz-components/index.esm.js +1 -1
  24. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  25. package/dist/lmvz-components/p-6e3314ab.entry.js +1 -0
  26. package/dist/lmvz-components/p-BoR31cjC.js +1 -0
  27. package/dist/lmvz-components/p-CVf2C8dL.js +1 -0
  28. package/dist/lmvz-components/p-d9dc29a1.entry.js +1 -0
  29. package/dist/manifest.json +1 -1
  30. package/dist/types/utils/assets.d.ts +1 -8
  31. package/dist/types/utils/http.d.ts +3 -3
  32. package/dist/types/utils/validation/svg.d.ts +2 -2
  33. package/hydrate/index.js +2131 -12411
  34. package/hydrate/index.mjs +2131 -12411
  35. package/package.json +4 -4
  36. package/dist/cjs/icons-DM_TTn48.js +0 -857
  37. package/dist/components/p-BBDH9X49.js +0 -1
  38. package/dist/components/p-Bs6_m7Uw.js +0 -1
  39. package/dist/esm/icons-kpJZ1u9g.js +0 -853
  40. package/dist/lmvz-components/p-4ad8c332.entry.js +0 -1
  41. package/dist/lmvz-components/p-5eee0752.entry.js +0 -1
  42. package/dist/lmvz-components/p-D9lc4ayG.js +0 -1
  43. package/dist/lmvz-components/p-iviTjlUy.js +0 -1
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D3BMpL5w.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-CJzJZPzV.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;