@lmvz-ds/components 0.32.0 → 0.33.0

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 (99) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cjs/{aria-loader-BRo2FTGh.js → aria-loader-DWUVcapD.js} +1 -1
  3. package/cjs/{aria-validation-controller-Z4TtOp2l.js → aria-validation-controller-BC0Eaiv4.js} +1 -1
  4. package/cjs/{icons-BQASWgk-.js → icons-snv0hyf1.js} +1 -1
  5. package/cjs/{index-3g9Z9sfF.js → index-Bn3k5SiE.js} +1044 -508
  6. package/cjs/index.cjs.js +4 -4
  7. package/cjs/lmvz-action-list.cjs.entry.js +2 -2
  8. package/cjs/lmvz-button-group.cjs.entry.js +1 -1
  9. package/cjs/lmvz-button_2.cjs.entry.js +5 -5
  10. package/cjs/lmvz-checkbox.cjs.entry.js +4 -4
  11. package/cjs/lmvz-chip.cjs.entry.js +2 -2
  12. package/cjs/lmvz-header_2.cjs.entry.js +2 -2
  13. package/cjs/lmvz-input.cjs.entry.js +2 -2
  14. package/cjs/lmvz-link.cjs.entry.js +3 -3
  15. package/cjs/lmvz-menuitem.cjs.entry.js +2 -2
  16. package/cjs/lmvz-message.cjs.entry.js +3 -3
  17. package/cjs/lmvz-modal.cjs.entry.js +4 -4
  18. package/cjs/lmvz-radio.cjs.entry.js +2 -2
  19. package/cjs/lmvz-select.cjs.entry.js +2 -2
  20. package/cjs/lmvz-toggle.cjs.entry.js +2 -2
  21. package/cjs/{logger-DsM6xg6V.js → logger-NBdKPSou.js} +1 -1
  22. package/cjs/{svg-BMBduILB.js → svg-CysxzZw7.js} +1 -1
  23. package/collection/components/lmvz-link/lmvz-link.css +1 -1
  24. package/components/index.js +1 -1
  25. package/components/lmvz-action-list.js +1 -1
  26. package/components/lmvz-button-group.js +1 -1
  27. package/components/lmvz-button.js +1 -1
  28. package/components/lmvz-checkbox.js +1 -1
  29. package/components/lmvz-chip.js +1 -1
  30. package/components/lmvz-header.js +1 -1
  31. package/components/lmvz-icon.js +1 -1
  32. package/components/lmvz-input.js +1 -1
  33. package/components/lmvz-link.js +1 -1
  34. package/components/lmvz-menuitem.js +1 -1
  35. package/components/lmvz-message.js +1 -1
  36. package/components/lmvz-modal.js +1 -1
  37. package/components/lmvz-radio.js +1 -1
  38. package/components/lmvz-select.js +1 -1
  39. package/components/lmvz-snackbar.js +1 -1
  40. package/components/lmvz-toggle.js +1 -1
  41. package/components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
  42. package/components/{p-B0H9qIwE.js → p-Bld_XR3X.js} +1 -1
  43. package/components/{p-C8znmF2h.js → p-CFTmV4XZ.js} +1 -1
  44. package/components/p-Cghfdblf.js +12 -0
  45. package/components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
  46. package/components/{p-DJ90327O.js → p-De-xQqdU.js} +1 -1
  47. package/components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
  48. package/components/{p-DeO5Vbxh.js → p-Rf10bzJY.js} +1 -1
  49. package/esm/{aria-loader-GfsGHZHY.js → aria-loader-BfH06m7H.js} +1 -1
  50. package/esm/{aria-validation-controller-BnyUKeJ6.js → aria-validation-controller-BvOU1BO8.js} +1 -1
  51. package/esm/{icons-CmuFKDRz.js → icons-DQOFaux5.js} +1 -1
  52. package/esm/{index-Dh_9sN0q.js → index-7ULiPTL_.js} +1044 -508
  53. package/esm/index.js +4 -4
  54. package/esm/lmvz-action-list.entry.js +2 -2
  55. package/esm/lmvz-button-group.entry.js +1 -1
  56. package/esm/lmvz-button_2.entry.js +5 -5
  57. package/esm/lmvz-checkbox.entry.js +4 -4
  58. package/esm/lmvz-chip.entry.js +2 -2
  59. package/esm/lmvz-header_2.entry.js +2 -2
  60. package/esm/lmvz-input.entry.js +2 -2
  61. package/esm/lmvz-link.entry.js +3 -3
  62. package/esm/lmvz-menuitem.entry.js +2 -2
  63. package/esm/lmvz-message.entry.js +3 -3
  64. package/esm/lmvz-modal.entry.js +4 -4
  65. package/esm/lmvz-radio.entry.js +2 -2
  66. package/esm/lmvz-select.entry.js +2 -2
  67. package/esm/lmvz-toggle.entry.js +2 -2
  68. package/esm/{logger-CGmJG63p.js → logger-D06Ds9Dh.js} +1 -1
  69. package/esm/{svg-B2YoIRuh.js → svg-Dz3GD0LB.js} +1 -1
  70. package/hydrate/index.js +2 -2
  71. package/hydrate/index.mjs +2 -2
  72. package/lmvz-components/index.esm.js +1 -1
  73. package/lmvz-components/lmvz-components.esm.js +1 -1
  74. package/lmvz-components/{p-ed3c2b13.entry.js → p-00ccaea4.entry.js} +1 -1
  75. package/lmvz-components/{p-582f44ff.entry.js → p-3a644b99.entry.js} +1 -1
  76. package/lmvz-components/{p-8e1f66dd.entry.js → p-3da087f4.entry.js} +1 -1
  77. package/lmvz-components/{p-48109e1d.entry.js → p-44781f01.entry.js} +1 -1
  78. package/lmvz-components/{p-1ce90ea7.entry.js → p-47824515.entry.js} +1 -1
  79. package/lmvz-components/{p-fa2cd315.entry.js → p-48a7b033.entry.js} +1 -1
  80. package/lmvz-components/{p-c3e8092e.entry.js → p-6140866f.entry.js} +1 -1
  81. package/lmvz-components/{p-80a26307.entry.js → p-8be4dbb7.entry.js} +1 -1
  82. package/lmvz-components/{p-6f61c24d.entry.js → p-8c7d9eaf.entry.js} +1 -1
  83. package/lmvz-components/{p-c00f0d96.entry.js → p-92d02c56.entry.js} +1 -1
  84. package/lmvz-components/{p-592d509b.entry.js → p-933e6033.entry.js} +1 -1
  85. package/lmvz-components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
  86. package/lmvz-components/p-Cghfdblf.js +12 -0
  87. package/lmvz-components/p-CyDgnpOB.js +1 -0
  88. package/lmvz-components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
  89. package/lmvz-components/{p-CPOia2kT.js → p-D9PQIBzA.js} +1 -1
  90. package/lmvz-components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
  91. package/lmvz-components/{p-c0d05a97.entry.js → p-b4aa0978.entry.js} +1 -1
  92. package/lmvz-components/{p-74c7521c.entry.js → p-d9619a4f.entry.js} +1 -1
  93. package/lmvz-components/p-e1758128.entry.js +1 -0
  94. package/manifest.json +1 -1
  95. package/package.json +3 -3
  96. package/components/p-0s99QfRy.js +0 -12
  97. package/lmvz-components/p-0s99QfRy.js +0 -12
  98. package/lmvz-components/p-947e1fe6.entry.js +0 -1
  99. package/lmvz-components/p-CFsC37ww.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,g as e,h as s,H as i}from"./p-BPeerEwm.js";import{a,i as n}from"./p-CdDO7mQa.js";import{v as o}from"./p-DuEtnKRj.js";import{a as r,b as d,c,d as h,e as l,f as u,h as m}from"./p-CxfT9IA1.js";const f=class{constructor(e){t(this,e)}get el(){return e(this)}actionsSlot;validationMessageCache=[];actionsStateObserver;stacked=!1;get primaryEnabledAction(){return this.enabledButtons.find(r)??this.enabledButtons[0]}get hasActions(){return this.assignedButtons.some((t=>d(t)&&c(t)&&!h(t)))}componentDidLoad(){this.handleActionsSlotChange()}disconnectedCallback(){this.actionsStateObserver?.disconnect()}get assignedElements(){return this.actionsSlot?.assignedElements({flatten:!0})??[]}get assignedButtons(){return this.assignedElements.filter(c)}get visibleButtons(){return this.assignedButtons.filter(d)}get enabledButtons(){return this.visibleButtons.filter((t=h,(...e)=>{const s=t(...e);return a(s)?s.then((t=>!t)):!s}));var t}getActionValidationResult(){if(!this.visibleButtons.length)return[];const t=this.visibleButtons.filter(r),e=this.visibleButtons.filter(l),s=[],i=this.visibleButtons;if(1!==t.length&&s.push("LmvzButtonGroup actions slot should contain exactly one primary action."),e.length>1&&s.push(`LmvzButtonGroup actions slot should contain at most one secondary action (received ${e.length})`),t.length){const a=e[0];0!==i.indexOf(t[0])&&s.push("Primary action should be the first focusable element in the actions slot (i.e. first child of the actions slot)."),a&&1!==i.indexOf(a)&&s.push("Secondary action should be the second focusable element in the actions slot (i.e. immediately after the primary button).")}else e.length&&0!==i.indexOf(e[0])&&s.push("Secondary action should be the first focusable element in the actions slot when no primary action is present (i.e. first child of the actions slot).");return s}handleActionsSlotChange=()=>{this.observeActionState(),this.syncActionsState()};observeActionState(){"undefined"!=typeof MutationObserver&&(this.actionsStateObserver?.disconnect(),this.assignedButtons.length&&(this.actionsStateObserver=new MutationObserver((()=>{this.syncActionsState()})),this.assignedButtons.forEach((t=>{this.actionsStateObserver?.observe(t,{attributes:!0,attributeFilter:["disabled","hidden","variant"]})}))))}syncActionsState(){this.assignedElements.forEach((t=>{["LMVZ-BUTTON","BUTTON"].includes(t.tagName.toUpperCase())||(t.hasAttribute("hidden")||t.setAttribute("hidden",""),"true"!==t.getAttribute("aria-hidden")&&t.setAttribute("aria-hidden","true"))})),this.checkActions();const t=this.visibleButtons,e=t.length>0&&t.some((t=>r(t)||l(t)));t.length>0&&!e?this.el.setAttribute("data-only-tertiary",""):this.el.removeAttribute("data-only-tertiary"),this.visibleButtons.forEach(((t,e)=>{const s=o[e]??"tertiary";t&&(u(t)?t.getAttribute("variant")||t.variant||t.setAttribute("variant",s):t.classList.add(s))}));const s=this.visibleButtons.find((t=>"tertiary"===t.getAttribute("variant")));this.visibleButtons.forEach((t=>{t===s?t.setAttribute("data-first-tertiary",""):t.removeAttribute("data-first-tertiary")})),this.focusPrimaryAction()}focusPrimaryAction(){const t=this.primaryEnabledAction;t&&"undefined"!=typeof window&&window.requestAnimationFrame((()=>{m(t)&&t.focus()}))}checkActions(){if(!n())return;const t=this.getActionValidationResult();t.length&&t.forEach((t=>{this.validationMessageCache.includes(t)||(console.warn(t),this.validationMessageCache.push(t))}))}render(){return s(i,{key:"3e8ce38f7e83e201e47d31579f22161ff36247b1"},s("slot",{key:"bc953d19b333f51c5f5c5ba86be3a85d155a29d1",ref:t=>this.actionsSlot=t,onSlotchange:this.handleActionsSlotChange}))}};f.style=":host{display:flex;flex-flow:row-reverse wrap;gap:var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));font:var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router);}:host([stacked]){flex-flow:column nowrap;align-items:stretch;padding:0}:host([stacked]) ::slotted(*){display:block;width:100%}::slotted([hidden]){display:none !important}:host(:not([data-only-tertiary],[stacked])) ::slotted([data-first-tertiary]){margin-inline-end:auto}:host([data-only-tertiary]:not([stacked])){justify-content:flex-end}";export{f as lmvz_button_group}
@@ -1 +0,0 @@
1
- import{t as n,e as o}from"./p-CcxjkCOx.js";const e=Symbol.for("LMVZ__iconProviderRegistry"),i={};function r(){return"undefined"==typeof window?i:window[e]??(window[e]={})}function t(n,o){const e=r(),i=n;Object.prototype.hasOwnProperty.call(e,i)&&console.warn(`Icon provider with name "${i}" is already registered. Overwriting existing provider.`),e[i]=o}function s(n){const o=r();if(n)return o[n];const e=Object.keys(o);if(0===e.length)return;e.length>1&&console.warn(`Multiple icon providers registered (${e.join(", ")}). Using the first one: "${e[0]}".`);const i=e[0];return i?o[i]:void 0}async function c(e){const{icon:i,iconset:r}=e;return await(async()=>{const o=s(r);if(o)try{const e=await Promise.resolve(o.resolve(i));if(!e?.svg)return void console.warn(`Icon "${i}"${r?` from set "${r}"`:""} not found in provider. Using default icon.`);const t=n(e.svg);if(t)return t}catch(n){return void console.error(`Error resolving icon "${i}" with provider:`,n)}else console.warn(`No icon provider registered. Unable to resolve icon "${i}"${r?` from set "${r}"`:""}. Using default icon.`)})()||(console.error(`Icon "${i}" not found${r?` in set "${r}"`:""}. Using default icon.`),o())}function d(n,o){return{iconset:n,icon:o}}export{c as a,s as g,t as r,d as t}