@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.
Files changed (98) hide show
  1. package/dist/cjs/{icons-FIfJEo6G.js → Effect-CpZhfb0D.js} +5153 -1359
  2. package/dist/cjs/aria-loader-BBKbBZLq.js +76 -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-QRnWYctw.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-DWpVosFu.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-BaPwpeMs.js +1 -0
  37. package/dist/components/p-Bz0S2cGj.js +1 -0
  38. package/dist/components/p-CSRpdnrt.js +1 -0
  39. package/dist/components/p-DK2hpvEW.js +12 -0
  40. package/dist/{lmvz-components/p-CVf2C8dL.js → components/p-DcMNH3fv.js} +1 -1
  41. package/dist/components/p-DugBvwmd.js +1 -0
  42. package/dist/esm/{icons-CM7lsnuO.js → Effect-DyamyJqO.js} +4951 -1357
  43. package/dist/esm/aria-loader-DB71Xewa.js +69 -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-CekEw3_K.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-1nFoJEdT.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-5775a56c.entry.js +1 -0
  64. package/dist/lmvz-components/p-814ee542.entry.js +1 -0
  65. package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
  66. package/dist/lmvz-components/p-B3j8zrhV.js +1 -0
  67. package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
  68. package/dist/lmvz-components/p-BTpia82J.js +1 -0
  69. package/dist/{components/p-CdYWDK7m.js → lmvz-components/p-D7GrtdQF.js} +1 -1
  70. package/dist/lmvz-components/p-DyamyJqO.js +1 -0
  71. package/dist/lmvz-components/p-c61f7daa.entry.js +1 -0
  72. package/dist/lmvz-components/p-c6bae21b.entry.js +1 -0
  73. package/dist/lmvz-components/p-cM67HC0Z.js +12 -0
  74. package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
  75. package/dist/lmvz-components/p-f1559aa1.entry.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 +96 -39
  86. package/hydrate/index.mjs +96 -39
  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
@@ -1 +1 @@
1
- import{a as t}from"./p-T5ljELGS.js";const e=(e,o)=>{const a=function(...t){return t.filter(Boolean).join("/").replace("//","/").replace("/./","/")}("../../assets",o,e);try{return t(a)}catch{return console.warn(`Failed to create URL for asset "${e}" in path "${o}".\n 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.`),new URL(a,import.meta?.url??window?.location?.origin??"")}};export{e as c}
1
+ import{g as t}from"./p-BaPwpeMs.js";const e=(e,o)=>{const a=function(...t){return t.filter(Boolean).join("/").replace("//","/").replace("/./","/")}("../../assets",o,e);try{return t(a)}catch{return console.warn(`Failed to create URL for asset "${e}" in path "${o}".\n 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.`),new URL(a,import.meta?.url??window?.location?.origin??"")}};export{e as c}
@@ -0,0 +1 @@
1
+ import{B as t,H as i}from"./p-BaPwpeMs.js";const o=Symbol("__lmvzAriaValidationRuntimeState"),s="lmvz:aria-validation-runtime-changed";function e(){const t=globalThis;return t[o]||(t[o]={enabled:!1}),t[o]}function n(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(s))}const h=()=>e().enabled,r=()=>e().verboseLogging??!1,a=(t={})=>{const i=e();i.enabled||(Object.assign(i,t),i.enabled=!0,async function(...t){const i=await async function(){const t=e();if(!t.enabled)return null;if(t.runtime)return t.runtime;t.loadPromise||(t.loadPromise=import("./p-DK2hpvEW.js").catch((()=>null)));const i=await t.loadPromise;return i&&(t.runtime=i),i}();e().enabled&&(i?i.initializeValidationStream(...t):console.warn("Failed to load aria validation runtime"))}().then((()=>{n()})))},l=()=>{const t=e();t.enabled&&(t.enabled=!1,n())};function c(...t){const i=e();i.enabled&&i.runtime&&i.runtime.enqueueValidation(...t)}class d{host;config;visibilityObserver;elementQueued=!1;elementValidated=!1;elementLoaded=!1;static knownValidationErrors=[];get disabled(){return!h()}get useVerboseLogging(){return this.config?.verboseLogging||t.isDev||r()}constructor(t,i){this.host=t,this.config=i}onRuntimeConfigChange=()=>{h()&&this.checkLazyValidation()};hostDidLoad(){this.elementLoaded=!0,"undefined"!=typeof window&&window.addEventListener(s,this.onRuntimeConfigChange),this.elementQueued||this.elementValidated||("slot"!==this.config?.validationTiming?this.host.validationEl?.checkVisibility()&&"load"===this.config?.validationTiming?this.enqueueValidation():this.observeVisibilityOnce():this.observeSlot())}hostDidUpdate(){this.checkLazyValidation()}hostDisconnected(){this.discardVisibilityObserver(),"undefined"!=typeof window&&window.removeEventListener(s,this.onRuntimeConfigChange)}revalidateAria(){this.enqueueValidation()}observeSlot(){this.host.validationSlot?.addEventListener("slotchange",this.enqueueValidation.bind(this))}observeVisibilityOnce(){window.setTimeout((()=>{this.host.validationEl&&(this.visibilityObserver=new IntersectionObserver((t=>{for(const i of t)i.target===this.host.validationEl&&i.isIntersecting&&(this.checkLazyValidation(),this.discardVisibilityObserver())}),{root:this.host.validationEl?.parentElement,rootMargin:"0px",threshold:.01}),this.visibilityObserver.observe(this.host.validationEl))}))}checkLazyValidation(){this.elementLoaded&&(this.config?.reValidateOnPropChanges||!this.elementQueued&&!this.elementValidated)&&this.host.validationEl?.checkVisibility()&&this.enqueueValidation()}enqueueValidation(){h()&&(this.elementQueued=!0,c({context:{include:this.host.validationEl,exclude:d.knownValidationErrors},onComplete:(t,i)=>{this.elementValidated=!0;const o=this.host.tagName||this.host.validationEl?.tagName||"Element";if(t)return console.error("Error running ARIA validation:",t,o),void(this.host.validationEl?.tagName||console.dir(this.host));const s=[o];if(!i?.violations.length)return void(this.useVerboseLogging&&(console.log(...s,"has no ARIA violations"),this.host.validationEl?.tagName||console.dir(this.host)));const e=i.violations.length,n=[...s,i.violations.at(0).id,e>1?`(+${e-1} more)`:""].filter(Boolean).join(" ");this.useVerboseLogging?console.group(n):console.groupCollapsed(n);const h=i.violations.flatMap((t=>(console.dir(t,{showHidden:!0,compact:!1}),t.nodes.map((t=>t.target)))));this.host.validationEl?console.log("element:",this.host.validationEl):console.dir(this.host),console.groupEnd(),d.knownValidationErrors.push(...h)}}))}discardVisibilityObserver(){this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=void 0)}}const u=class extends i{constructor(){super(!1)}controllers=new Set;addController(t){this.controllers.add(t)}removeController(t){this.controllers.delete(t)}get activeControllers(){return Array.from(this.controllers).filter((t=>!t.disabled))}connectedCallback(){this.controllers.size||console.warn("ReactiveControllerHost connected with no controllers registered.",this),this.activeControllers.forEach((t=>t.hostConnected?.()))}disconnectedCallback(){this.activeControllers.forEach((t=>t.hostDisconnected?.()))}componentWillLoad(){this.activeControllers.forEach((t=>t.hostWillLoad?.()))}componentDidLoad(){this.activeControllers.forEach((t=>t.hostDidLoad?.()))}componentWillRender(){this.activeControllers.forEach((t=>t.hostWillRender?.()))}componentDidRender(){this.activeControllers.forEach((t=>t.hostDidRender?.()))}componentWillUpdate(){this.activeControllers.forEach((t=>t.hostWillUpdate?.()))}componentDidUpdate(){this.activeControllers.forEach((t=>t.hostDidUpdate?.()))}};export{s as A,u as R,d as a,l as d,a as e,h as i,c as q,r as u}