@lmvz-ds/components 0.18.1 → 0.19.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 (135) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +45 -100
  3. package/cjs/ds.constants-DSnxZ3ia.js +16 -0
  4. package/cjs/{icons-swqMn6s2.js → icons-Tg7ySOh-.js} +54 -38
  5. package/cjs/index.cjs.js +9 -10
  6. package/cjs/lmvz-action.cjs.entry.js +1 -1
  7. package/cjs/lmvz-button.cjs.entry.js +2 -2
  8. package/cjs/lmvz-card.cjs.entry.js +1 -1
  9. package/cjs/lmvz-chip.cjs.entry.js +68 -4
  10. package/cjs/lmvz-components.cjs.js +1 -1
  11. package/cjs/lmvz-header_2.cjs.entry.js +2 -2
  12. package/cjs/lmvz-icon.cjs.entry.js +6 -6
  13. package/cjs/lmvz-input.cjs.entry.js +3 -3
  14. package/cjs/lmvz-menuitem.cjs.entry.js +2 -2
  15. package/cjs/lmvz-select.cjs.entry.js +2 -2
  16. package/cjs/loader.cjs.js +1 -1
  17. package/cjs/{reactive-controller-host-CtaVAiYJ.js → reactive-controller-host-Bi9eu2bV.js} +9 -9
  18. package/collection/api/ds.constants.js +2 -0
  19. package/collection/components/lmvz-action/lmvz-action.js +1 -1
  20. package/collection/components/lmvz-button/lmvz-button.js +6 -3
  21. package/collection/components/lmvz-card/lmvz-card.js +1 -1
  22. package/collection/components/lmvz-chip/lmvz-chip.css +84 -1
  23. package/collection/components/lmvz-chip/lmvz-chip.js +110 -13
  24. package/collection/components/lmvz-header/lmvz-header.js +2 -2
  25. package/collection/components/lmvz-icon/lmvz-icon.css +11 -10
  26. package/collection/components/lmvz-icon/lmvz-icon.js +7 -6
  27. package/collection/components/lmvz-input/lmvz-input.js +4 -4
  28. package/collection/components/lmvz-menuitem/lmvz-menuitem.js +11 -5
  29. package/collection/components/lmvz-select/lmvz-select.js +1 -1
  30. package/collection/index.js +1 -1
  31. package/collection/integration/header-integration/header-integration.js +1 -1
  32. package/collection/utils/aria/aria-validation-controller.js +1 -0
  33. package/collection/utils/reactive-controller-host.js +9 -9
  34. package/components/index.d.ts +9 -9
  35. package/components/index.d.ts.bak +10 -10
  36. package/components/index.js +1 -1
  37. package/components/lmvz-action.d.ts +1 -1
  38. package/components/lmvz-action.d.ts.bak +1 -1
  39. package/components/lmvz-action.js +1 -1
  40. package/components/lmvz-button.d.ts +1 -1
  41. package/components/lmvz-button.d.ts.bak +1 -1
  42. package/components/lmvz-button.js +1 -1
  43. package/components/lmvz-card.d.ts +1 -1
  44. package/components/lmvz-card.d.ts.bak +1 -1
  45. package/components/lmvz-card.js +1 -1
  46. package/components/lmvz-chip.d.ts +1 -1
  47. package/components/lmvz-chip.d.ts.bak +1 -1
  48. package/components/lmvz-chip.js +1 -1
  49. package/components/lmvz-header.d.ts +1 -1
  50. package/components/lmvz-header.d.ts.bak +1 -1
  51. package/components/lmvz-header.js +1 -1
  52. package/components/lmvz-icon.d.ts +1 -1
  53. package/components/lmvz-icon.d.ts.bak +1 -1
  54. package/components/lmvz-icon.js +1 -1
  55. package/components/lmvz-input.d.ts +1 -1
  56. package/components/lmvz-input.d.ts.bak +1 -1
  57. package/components/lmvz-input.js +1 -1
  58. package/components/lmvz-menuitem.d.ts +1 -1
  59. package/components/lmvz-menuitem.d.ts.bak +1 -1
  60. package/components/lmvz-menuitem.js +1 -1
  61. package/components/lmvz-select.d.ts +1 -1
  62. package/components/lmvz-select.d.ts.bak +1 -1
  63. package/components/lmvz-select.js +1 -1
  64. package/components/{p-DQEkWkMh.js → p-DIrAQ4IB.js} +1 -1
  65. package/esm/{aria-loader-BF_AYtbb.js → aria-loader-CES8Ae1e.js} +1 -1
  66. package/esm/ds.constants-Bmi89ll1.js +9 -0
  67. package/esm/{icons-Ca8oMiRa.js → icons-Bj4dF1-I.js} +55 -40
  68. package/esm/{index-7Ru1khgk.js → index-BvxaUA12.js} +1 -1
  69. package/esm/index.js +4 -11
  70. package/esm/lmvz-action.entry.js +1 -1
  71. package/esm/lmvz-button.entry.js +3 -3
  72. package/esm/lmvz-card.entry.js +1 -1
  73. package/esm/lmvz-chip.entry.js +69 -5
  74. package/esm/lmvz-components.js +1 -1
  75. package/esm/lmvz-header_2.entry.js +3 -3
  76. package/esm/lmvz-icon.entry.js +7 -7
  77. package/esm/lmvz-input.entry.js +4 -4
  78. package/esm/lmvz-menuitem.entry.js +3 -3
  79. package/esm/lmvz-select.entry.js +3 -3
  80. package/esm/loader.js +1 -1
  81. package/esm/{logger-fiRXhuXK.js → logger-0bL3pydp.js} +1 -1
  82. package/esm/{reactive-controller-host-sR2jJxNG.js → reactive-controller-host-J2thAxVH.js} +10 -10
  83. package/hydrate/index.js +94 -29
  84. package/hydrate/index.mjs +94 -29
  85. package/lmvz-components/index.esm.js +1 -1
  86. package/lmvz-components/lmvz-components.esm.js +1 -1
  87. package/lmvz-components/{p-fiRXhuXK.js → p-0bL3pydp.js} +1 -1
  88. package/lmvz-components/p-40569208.entry.js +1 -0
  89. package/lmvz-components/p-43e295ba.entry.js +1 -0
  90. package/lmvz-components/p-49ab22bd.entry.js +1 -0
  91. package/lmvz-components/{p-bbab5471.entry.js → p-6e8acbd9.entry.js} +1 -1
  92. package/lmvz-components/{p-872e2106.entry.js → p-7a6bec13.entry.js} +1 -1
  93. package/lmvz-components/{p-ff6a0267.entry.js → p-9212bd23.entry.js} +1 -1
  94. package/lmvz-components/p-9626e951.entry.js +1 -0
  95. package/lmvz-components/p-Bmi89ll1.js +1 -0
  96. package/lmvz-components/p-Bu4Z_PMf.js +1 -0
  97. package/lmvz-components/{p-Bkfdgg0T.js → p-BxHnZA0M.js} +1 -1
  98. package/lmvz-components/{p-DXOTa5VF.js → p-DHZwxmLb.js} +1 -1
  99. package/lmvz-components/{p-B3dnXEPG.js → p-DYaffOLo.js} +1 -1
  100. package/lmvz-components/{p-c7e368c4.entry.js → p-e1b847d2.entry.js} +1 -1
  101. package/lmvz-components/{p-80675ee5.entry.js → p-ec96c6b6.entry.js} +1 -1
  102. package/manifest.json +139 -32
  103. package/package.json +1 -1
  104. package/types/api/ds.constants.d.ts +6 -1
  105. package/types/components/lmvz-action/lmvz-action.d.ts +0 -1
  106. package/types/components/lmvz-button/lmvz-button.d.ts +0 -1
  107. package/types/components/lmvz-card/lmvz-card.d.ts +0 -1
  108. package/types/components/lmvz-chip/lmvz-chip.d.ts +18 -3
  109. package/types/components/lmvz-header/lmvz-header.d.ts +0 -1
  110. package/types/components/lmvz-icon/lmvz-icon.d.ts +0 -1
  111. package/types/components/lmvz-input/lmvz-input.d.ts +0 -1
  112. package/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +0 -1
  113. package/types/components/lmvz-select/lmvz-select.d.ts +0 -1
  114. package/types/components.d.ts +70 -12
  115. package/types/index.d.ts +1 -2
  116. package/types/utils/aria/aria-validation-controller.d.ts +1 -2
  117. package/types/utils/aria/element-activation-controller.d.ts +0 -1
  118. package/types/utils/aria/list-keyboard-controller.d.ts +0 -1
  119. package/types/utils/assets.d.ts +0 -1
  120. package/types/utils/component.d.ts +0 -1
  121. package/types/utils/environment.d.ts +0 -1
  122. package/types/utils/http.d.ts +0 -1
  123. package/types/utils/http.unit.d.ts +0 -1
  124. package/types/utils/icons/icons-registry.d.ts +0 -1
  125. package/types/utils/icons/icons.d.ts +0 -1
  126. package/types/utils/icons/icons.unit.d.ts +0 -1
  127. package/types/utils/icons/public.d.ts +0 -1
  128. package/types/utils/public.d.ts +0 -1
  129. package/types/utils/reactive-controller-host.d.ts +0 -1
  130. package/lmvz-components/p-0f645295.entry.js +0 -1
  131. package/lmvz-components/p-1506fa34.entry.js +0 -1
  132. package/lmvz-components/p-658c5c34.entry.js +0 -1
  133. package/lmvz-components/p-93038c98.entry.js +0 -1
  134. package/lmvz-components/p-Bh2Epkwf.js +0 -1
  135. /package/components/{p-CBLAeife.js → p-DbeHBSOe.js} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-C2yDXRqP.js');
4
4
  var index$1 = require('./index-Bp6Dd2i1.js');
5
- var reactiveControllerHost = require('./reactive-controller-host-CtaVAiYJ.js');
5
+ var reactiveControllerHost = require('./reactive-controller-host-Bi9eu2bV.js');
6
6
  var component = require('./component-Csg9MtNK.js');
7
7
  require('./aria-loader-CfFuAbJn.js');
8
8
 
@@ -164,9 +164,9 @@ const LmvzInput = class extends reactiveControllerHost.ReactiveControllerHost {
164
164
  render() {
165
165
  const hasValue = Boolean(this.value);
166
166
  const shouldFloatLabel = hasValue || Boolean(this.placeholder);
167
- return (index.h("div", { key: '9de2e4dd202edc937e96ff6ebdc8d0270851c4ca', class: index$1.classNames('input-container', {
167
+ return (index.h("div", { key: '22be29e5fcd4976fc6c4d125781be00acef0b359', class: index$1.classNames('input-container', {
168
168
  'interaction-filled': hasValue,
169
- }) }, index.h("div", { key: '0c9f92778e1c52dca13ed9175a09d757fc6eedc9', class: "input-wrapper" }, index.h("slot", { key: '9cf29c45afdb127917a68ed6752faf3d50004c7d', name: "before-input" }), index.h("div", { key: 'e7e6c54b6ee6db108ac3f8ddb676bb9fcf10517e', class: "label-input-group" }, index.h("label", { key: '68eb29e585741971aae58c7693d011ba587f1c1b', htmlFor: this.inputId, class: index$1.classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (index.h("span", { key: '274d992a43c2de45af7172608fb1581c6ee771d2', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), index.h("input", { key: 'a26b95dee9781e0e13db16d6e09681e36cab0230', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), index.h("slot", { key: '5b77b87ba1da3b8e71c7f6825eecf2216a93e4f9', name: "after-input" })), index.h("div", { key: 'cac334a1e88d4136e923ef1355196997bfe97099', id: this.helperId, role: "status" }, this.helperText || null), index.h("div", { key: 'b3ea662fa0a57ed0d8c3f35e36aad6b2513af8ab', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
169
+ }) }, index.h("div", { key: 'ffeb620419316976e800b16b4a9fd9538f1efd26', class: "input-wrapper" }, index.h("slot", { key: '2a1a67f7fde0232b2bb5ce3cc228b869e5ac3516', name: "before-input" }), index.h("div", { key: '3bbe623cae67d376c60a28306164293a712b1bb5', class: "label-input-group" }, index.h("label", { key: 'c260b3eb249d5c785fe3b6e223c7428a8c147f50', htmlFor: this.inputId, class: index$1.classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (index.h("span", { key: 'f43dd77efe7e319428dd72ec8933b7587635e767', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), index.h("input", { key: 'eeb821a74a5ac7aab3fab65a48a37d21a22744e6', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), index.h("slot", { key: 'dd36a212c05c43ab2a8249750c14a7475b6d65d3', name: "after-input" })), index.h("div", { key: 'c2aedd67036faf4d3dc459c3c1fab8d07ee5a991', id: this.helperId, role: "status" }, this.helperText || null), index.h("div", { key: '01d2a6d6df9b3804a595711c7b57b6177d311c39', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
170
170
  }
171
171
  static get formAssociated() { return true; }
172
172
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C2yDXRqP.js');
4
- var reactiveControllerHost = require('./reactive-controller-host-CtaVAiYJ.js');
4
+ var reactiveControllerHost = require('./reactive-controller-host-Bi9eu2bV.js');
5
5
  var elementActivationController = require('./element-activation-controller-DC_6T0Rt.js');
6
6
  require('./aria-loader-CfFuAbJn.js');
7
7
 
@@ -28,7 +28,7 @@ const LmvzMenuItem = class extends reactiveControllerHost.ReactiveControllerHost
28
28
  this.addController(new elementActivationController.ElementActivationController(this));
29
29
  }
30
30
  render() {
31
- return (index.h(index.Host, { key: '510ac59b18468ce9c65b866ae2767185f1b3da92' }, index.h("slot", { key: '7e032e0dab83f9bfbaa96ad2b78d8a5a58f978ab', ref: (e) => (this.validationSlot = e) })));
31
+ return (index.h(index.Host, { key: '0878343aec1c98c16c073c6cdd3382ee5c980799' }, index.h("slot", { key: 'f7a87d4c9d786bb4686d406d4313e9b5d79701d6', ref: (e) => (this.validationSlot = e) })));
32
32
  }
33
33
  };
34
34
  LmvzMenuItem.style = lmvzMenuitemCss();
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C2yDXRqP.js');
4
- var reactiveControllerHost = require('./reactive-controller-host-CtaVAiYJ.js');
4
+ var reactiveControllerHost = require('./reactive-controller-host-Bi9eu2bV.js');
5
5
  require('./aria-loader-CfFuAbJn.js');
6
6
 
7
7
  const chevronDownSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwLjMzMzQgOC42NjY2M0wxMi4wMDAxIDE3TDMuNjY2NzUgOC42NjY2MyIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=';
@@ -58,7 +58,7 @@ const LmvzSelect = class extends reactiveControllerHost.ReactiveControllerHost {
58
58
  render() {
59
59
  const hasValue = this.hasValue;
60
60
  const shouldShowLabel = hasValue;
61
- return (index.h(index.Host, { key: '7f4650d5971bb93dba48385df734e6b7a0b4f7eb' }, index.h("div", { key: '79d6234cd15f64c8bff787d715107e7e86145333', class: "select-wrapper" }, index.h("label", { key: '14d93469c6d309b68427ff7bfc2bd531c8f0ecf6', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && index.h("span", { key: 'c8be809e09d768d6f73ccccdfbf0bf495869ac72', "aria-hidden": "true" }, " *")), index.h("div", { key: '1db5d44b44100342a4ca5feff648b61a0bdadb1a', "aria-hidden": "true" }, index.h("span", { key: '3fdc95aab9997a10f4ba42dabc3758aea0797a22' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && index.h("span", { key: '11aef8194551059130b6be5351587219a1e80f00', "aria-hidden": "true" }, " *")), index.h("span", { key: '8fc52ff3e46d7b52d8d5069a74ebf7bb0d981081' }, index.h("img", { key: '129dd4038772eba9313e1e322866c70408f4e2ad', src: chevronDownSvg, alt: "" }))), index.h("select", { key: '6eb6cf496e60b3c1bd9556e596cbef34d4da5a09', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && index.h("option", { key: '70d660e0bc7e4c127234ce77decf35d6fea7fe8d', value: "", disabled: true, selected: true, hidden: true }), index.h("slot", { key: 'e6cbc238c9c0cf8e8c31d0347a1f621272a94ca6' }))), this.helperText && index.h("div", { key: '432d405ee7338da46509ff207599b882a19ea44e', role: "status" }, this.helperText)));
61
+ return (index.h(index.Host, { key: 'b9f6211fec35e7c03cc9c462cb1f8eb60fc6c96c' }, index.h("div", { key: '43d22daa1492f87f89f9479687b82ee893f10faa', class: "select-wrapper" }, index.h("label", { key: 'cf399d80e31a345cea60286db4aea2d7dd7973d1', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && index.h("span", { key: '6bdd8e0d652f126eb1c64c2a647ac0816cc61b05', "aria-hidden": "true" }, " *")), index.h("div", { key: '5d8497c64e197a71003a0c8e11149993fcefd684', "aria-hidden": "true" }, index.h("span", { key: '95b73705ad81d000ce415a377002e4ae4d63aae6' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && index.h("span", { key: '2ff855f0fa89d3c66c59a176f855fdbf18ecb6c2', "aria-hidden": "true" }, " *")), index.h("span", { key: 'a66d4ec65c95b1463223c07aecb17d65a45c6b24' }, index.h("img", { key: '4cd21532ff13a3ecbd229cd79d0a3fa7b3eafc60', src: chevronDownSvg, alt: "" }))), index.h("select", { key: '2a9e46e29f8ef7d116989b58abfacee840dd2275', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && index.h("option", { key: '5c5fa4d5e3b120a0085f6fc408d20a56f6547441', value: "", disabled: true, selected: true, hidden: true }), index.h("slot", { key: 'e11909e901624af7d9d5275f2e9715007960eab9' }))), this.helperText && index.h("div", { key: 'fa0d06d3294f303081fd5ffb9aeaff6a8e297901', role: "status" }, this.helperText)));
62
62
  }
63
63
  static get watchers() { return {
64
64
  "value": [{
package/cjs/loader.cjs.js CHANGED
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-button.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1]}]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-chip.cjs",[[513,"lmvz-chip",{"text":[1]}]]],["lmvz-icon.cjs",[[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]]], options);
9
+ return index.bootstrapLazy([["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-button.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1]}]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-icon.cjs",[[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -158,34 +158,34 @@ class ReactiveControllerHost {
158
158
  this.controllers.delete(controller);
159
159
  }
160
160
  get activeControllers() {
161
- return Array.from(this.controllers).filter(controller => !controller.disabled);
161
+ return Array.from(this.controllers).filter((controller) => !controller.disabled);
162
162
  }
163
163
  connectedCallback() {
164
164
  if (!this.controllers.size) {
165
165
  console.warn('ReactiveControllerHost connected with no controllers registered.', this);
166
166
  }
167
- this.activeControllers.forEach(controller => controller.hostConnected?.());
167
+ this.activeControllers.forEach((controller) => controller.hostConnected?.());
168
168
  }
169
169
  disconnectedCallback() {
170
- this.activeControllers.forEach(controller => controller.hostDisconnected?.());
170
+ this.activeControllers.forEach((controller) => controller.hostDisconnected?.());
171
171
  }
172
172
  componentWillLoad() {
173
- this.activeControllers.forEach(controller => controller.hostWillLoad?.());
173
+ this.activeControllers.forEach((controller) => controller.hostWillLoad?.());
174
174
  }
175
175
  componentDidLoad() {
176
- this.activeControllers.forEach(controller => controller.hostDidLoad?.());
176
+ this.activeControllers.forEach((controller) => controller.hostDidLoad?.());
177
177
  }
178
178
  componentWillRender() {
179
- this.activeControllers.forEach(controller => controller.hostWillRender?.());
179
+ this.activeControllers.forEach((controller) => controller.hostWillRender?.());
180
180
  }
181
181
  componentDidRender() {
182
- this.activeControllers.forEach(controller => controller.hostDidRender?.());
182
+ this.activeControllers.forEach((controller) => controller.hostDidRender?.());
183
183
  }
184
184
  componentWillUpdate() {
185
- this.activeControllers.forEach(controller => controller.hostWillUpdate?.());
185
+ this.activeControllers.forEach((controller) => controller.hostWillUpdate?.());
186
186
  }
187
187
  componentDidUpdate() {
188
- this.activeControllers.forEach(controller => controller.hostDidUpdate?.());
188
+ this.activeControllers.forEach((controller) => controller.hostDidUpdate?.());
189
189
  }
190
190
  }
191
191
 
@@ -5,3 +5,5 @@ export const textSizes = [...sizes, 'xl'];
5
5
  export const inputTypes = ['text', 'email', 'password', 'tel', 'url', 'search', 'number'];
6
6
  export const iconSizes = [...sizes, 'inherit'];
7
7
  export const iconWeights = ['thin', 'medium', 'bold', 'filled'];
8
+ export const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
9
+ export const chipSizes = ['default', 'small'];
@@ -5,7 +5,7 @@ export class LmvzAction {
5
5
  this.actionClick.emit(event);
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '00da873d80f00dc57e5a0d60f2b58a6c505e41f1', onClick: this._onClick.bind(this) }, h("slot", { key: '7938b5e172ef2b027180aac801b0d9962cd68fa5' })));
8
+ return (h(Host, { key: '15c0f20e08cd5019abfd3bb71ec69d175dc5ba48', onClick: this._onClick.bind(this) }, h("slot", { key: 'f71a7853168d1b66b0a50b0f971d140385530ac3' })));
9
9
  }
10
10
  static get is() { return "lmvz-action"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -57,7 +57,7 @@ export class LmvzButton extends ReactiveControllerHost {
57
57
  };
58
58
  render() {
59
59
  this.renderHiddenButton();
60
- return (h(Host, { key: '1448b16151418790d0a78eda2248b7d61fd8e32b', "aria-disabled": this.disabled ? 'true' : null }, h("button", { key: '2cf7ccc0692179b68aaea534a7a4d11dbcbe27b5', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, h("slot", { key: '8fd9f99f8c79657fd3dbeafb2fd88ca667bc0d44' }))));
60
+ return (h(Host, { key: 'ce82e749ffb9172a9421d303e0d7cc02de58dff9', "aria-disabled": this.disabled ? 'true' : null }, h("button", { key: 'acd0773f72e76139ec5495eb15fc3a5949029e40', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, h("slot", { key: 'f519e0f82e68811a8831214e83e609bd9501fed0' }))));
61
61
  }
62
62
  static get is() { return "lmvz-button"; }
63
63
  static get encapsulation() { return "shadow"; }
@@ -188,8 +188,11 @@ export class LmvzButton extends ReactiveControllerHost {
188
188
  "required": false,
189
189
  "optional": false,
190
190
  "docs": {
191
- "tags": [],
192
- "text": ""
191
+ "tags": [{
192
+ "name": "default",
193
+ "text": "'button'"
194
+ }],
195
+ "text": "Native button type forwarded to the internal `<button>` element.\nUse `submit` to trigger form submission."
193
196
  },
194
197
  "getter": false,
195
198
  "setter": false,
@@ -19,7 +19,7 @@ export class LmvzCard {
19
19
  const imgStyle = {
20
20
  backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
21
21
  };
22
- return (h(Host, { key: 'fceb19eb0d7ad6c6aecfa6fbd5bb6425c7c3e312', role: "article" }, h("div", { key: '4cb516b5dee1f2f84f21984fa350f61fd83c771c', class: "top" }, h("div", { key: '713b2a3245d885a9b99f6c7d54a35053699c1be8', class: "image-wrapper", style: imgStyle }, h("div", { key: 'e8ea65e7f5d11a2335cab950d6bf02208d0b18a1', class: "chip-slot" }, h("slot", { key: 'e9a039742107fdf56216186ddcdf367c4432790b', name: "chip" })))), h("div", { key: '9549e46a1872e0edf298b79435d298aa1ae96a37', class: "bottom" }, h("header", { key: '3bbfb72ecec519d16380ae7e00da4b1ccb6f1cf3' }, h("h2", { key: 'f5a33e498893e61b407c10ab36c9a93b7eecf9f1', class: "title" }, this.cardTitle)), h("p", { key: '19709bb100d014369c836a5a7174772f2d095d2e', class: "description" }, this.description), h("div", { key: '06b5acab3c80cc91865f3aa39da32d42f470348e', class: "actions" }, h("button", { key: '4e954452ac9771359c881aa6b43f11e89e38aecf', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), h("button", { key: 'b6a682bf95eb26468c450bed494290565288a515', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, h("span", { key: '70a526d1fafd8b7051f6e7107b35d6f594e10d68', class: "icon-placeholder" }, "..."))))));
22
+ return (h(Host, { key: '46c2832b4f90b9eb222749632bc7ad59cd645e10', role: "article" }, h("div", { key: 'cc387fe96cff2dd04c24f75cf838a2bf6f438279', class: "top" }, h("div", { key: 'f9a54a5f81378ef4265e1d74c36c78af002e8874', class: "image-wrapper", style: imgStyle }, h("div", { key: '76daed00408f7ae9ee46977637ddcd3d4f846380', class: "chip-slot" }, h("slot", { key: '6ad522ef7428166b876d0218ef8d801c4ef337f1', name: "chip" })))), h("div", { key: '9c9799668ac199cfecbe10061e271d70d70e2d07', class: "bottom" }, h("header", { key: '1bec743235bea5c7ab163225ffbd7bc6cf11f754' }, h("h2", { key: '06f8e14153328bc5ca920e71e09d9343047c440c', class: "title" }, this.cardTitle)), h("p", { key: '86b95db4e6464ca3236b4a03798013c3580819bf', class: "description" }, this.description), h("div", { key: '553dc998d5318a4730196baa0b9baff3a0a3369f', class: "actions" }, h("button", { key: '7532d01b46769198c23a1b1015c187fdefce146a', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), h("button", { key: '633d679ae59b1896aa2a06e04b4564569cf27a7d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, h("span", { key: 'b72c45f93d259502b9d7c5ffb19e292a53c60ec6', class: "icon-placeholder" }, "..."))))));
23
23
  }
24
24
  static get is() { return "lmvz-card"; }
25
25
  static get encapsulation() { return "scoped"; }
@@ -1,3 +1,86 @@
1
1
  :host {
2
- display: block;
2
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-neutral-subtle, #d4d4d4);
3
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-neutral, #fcfcfc);
4
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-neutral, #545454);
5
+
6
+ padding-block: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem));
7
+ padding-inline: var(--lmvz-dimension-8-10, clamp(0.5rem, 0.47rem + 0.13vw, 0.63rem));
8
+ border: 1px solid var(--lmvz-chip-border-color);
9
+ border-radius: var(--lmvz-semantic-border-radius-round, 999px);
10
+ font: var(--lmvz-typography-body-xs-strong, 500 clamp(0.69rem, 0.67rem + 0.06vw, 0.75rem) / 1.4
11
+ Router);
12
+ background-color: var(--lmvz-chip-background-color);
13
+ color: var(--lmvz-chip-foreground-color);
14
+
15
+ display: inline-flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ gap: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem));
19
+
20
+ /* enable truncated content */
21
+ box-sizing: border-box;
22
+ max-width: 100%;
23
+ overflow: hidden;
24
+ white-space: nowrap;
25
+
26
+ > .content-overflow-wrapper {
27
+ min-width: 0;
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ }
32
+ }
33
+
34
+ :host([size='small']) {
35
+ padding-block: var(--lmvz-dimension-2-4, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem));
36
+ padding-inline: var(--lmvz-dimension-6-8, clamp(0.38rem, 0.34rem + 0.13vw, 0.5rem));
37
+ font: var(--lmvz-typography-body-2xs-strong, 500 clamp(0.63rem, 0.61rem + 0.06vw, 0.69rem) / 1.4
38
+ Router);
39
+ gap: var(--lmvz-dimension-2-4, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem));
40
+ }
41
+
42
+ ::slotted(*) {
43
+ /* non-inline contents are forbidden for chips */
44
+ /* TODO: validate using ARIA validation tooling, instead of overriding styles */
45
+ display: inline;
46
+ white-space: inherit;
47
+ }
48
+
49
+ ::slotted(lmvz-icon) {
50
+ --lmvz-component-color: var(--lmvz-chip-foreground-color);
51
+ --lmvz-component-size: var(--lmvz-dimension-12-14, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
52
+ }
53
+
54
+ :host([size='small']) ::slotted(lmvz-icon) {
55
+ --lmvz-component-size: var(--lmvz-dimension-10-12, clamp(0.63rem, 0.59rem + 0.13vw, 0.75rem));
56
+ }
57
+
58
+ :host([type='active']) {
59
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-active-subtle, #c1e6fa);
60
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-active, #f1f9fe);
61
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
62
+ }
63
+
64
+ :host([type='warning']) {
65
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-warning-subtle, #ffdf75);
66
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-warning, #fffbf0);
67
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-warning, #7a5e00);
68
+ }
69
+
70
+ :host([type='success']) {
71
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-success-subtle, #a5dad3);
72
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-success, #f1f9f8);
73
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-success, #37867c);
74
+ }
75
+
76
+ :host([type='error']) {
77
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-danger-subtle, #f7bfc2);
78
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-danger, #fdf1f2);
79
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-danger, #e52a31);
80
+ }
81
+
82
+ :host([type='neutral']) {
83
+ --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-neutral-subtle, #d4d4d4);
84
+ --lmvz-chip-background-color: var(--lmvz-semantic-color-status-neutral, #fcfcfc);
85
+ --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-neutral, #545454);
3
86
  }
@@ -1,8 +1,54 @@
1
+ import { debounce } from "@lmvz-ds/lib-ts/stream/debounce.js";
1
2
  import { Host, h } from "@stencil/core";
2
- export class LmvzChip {
3
- text;
3
+ import { chipSizes, chipTypes } from "../../api/ds.constants.js";
4
+ import { AriaValidationController, isAriaValidationEnabled } from "../../utils/aria/aria-validation-controller";
5
+ import { ReactiveControllerHost } from "../../utils/reactive-controller-host";
6
+ export class LmvzChip extends ReactiveControllerHost {
7
+ ariaValidationController = new AriaValidationController(this);
8
+ beforeSlot;
9
+ defaultSlot;
10
+ afterSlot;
11
+ el;
12
+ get validationEl() {
13
+ return this.el;
14
+ }
15
+ type = 'active';
16
+ size = 'default';
17
+ constructor() {
18
+ super();
19
+ this.addController(this.ariaValidationController);
20
+ }
21
+ normalizeType(value) {
22
+ const normalizedType = chipTypes.includes(value) ? value : 'active';
23
+ if (normalizedType !== this.type) {
24
+ this.type = normalizedType;
25
+ }
26
+ }
27
+ normalizeSize(value) {
28
+ const normalizedSize = chipSizes.includes(value) ? value : 'default';
29
+ if (normalizedSize !== this.size) {
30
+ this.size = normalizedSize;
31
+ }
32
+ }
33
+ componentWillLoad() {
34
+ this.normalizeType(this.type);
35
+ this.normalizeSize(this.size);
36
+ super.componentWillLoad();
37
+ }
38
+ connectedCallback() {
39
+ super.connectedCallback();
40
+ this.checkContent();
41
+ }
42
+ checkContent = debounce(() => {
43
+ if (!isAriaValidationEnabled)
44
+ return;
45
+ const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.assignedElements() ?? []), ...(this.afterSlot?.assignedElements() ?? [])];
46
+ if (!elements.length) {
47
+ console.warn('LmvzChip has no assigned content. Please add content to the default slot or the before-text/after-text slots.');
48
+ }
49
+ }, 500);
4
50
  render() {
5
- return h(Host, { key: '134d510fe3a04b989b0005bf31358149a9661cb2' }, this.text);
51
+ return (h(Host, { key: 'd34b677a3f6ac2cdb53453c774badb837a3b9e25', type: this.type, size: this.size }, h("slot", { key: 'c6f8beea28cd847f8d8b7c7a075c774f58e39262', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), h("span", { key: 'be784ef977bc1d0eae2fd2d9377642636bd325bc', class: "content-overflow-wrapper" }, h("slot", { key: '3730f2902bcae7917979dedd91264670fbff00de', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), h("slot", { key: 'f827a03e407385c7bdfd483073453d97f6f73afb', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
6
52
  }
7
53
  static get is() { return "lmvz-chip"; }
8
54
  static get encapsulation() { return "shadow"; }
@@ -18,25 +64,76 @@ export class LmvzChip {
18
64
  }
19
65
  static get properties() {
20
66
  return {
21
- "text": {
67
+ "type": {
22
68
  "type": "string",
23
- "mutable": false,
69
+ "mutable": true,
24
70
  "complexType": {
25
- "original": "string",
26
- "resolved": "string",
27
- "references": {}
71
+ "original": "Chip.Type",
72
+ "resolved": "\"active\" | \"error\" | \"neutral\" | \"success\" | \"warning\"",
73
+ "references": {
74
+ "Chip": {
75
+ "location": "import",
76
+ "path": "../../api/ds.constants.js",
77
+ "id": "src/api/ds.constants.ts::Chip",
78
+ "referenceLocation": "Chip"
79
+ }
80
+ }
28
81
  },
29
- "required": true,
82
+ "required": false,
30
83
  "optional": false,
31
84
  "docs": {
32
- "tags": [],
33
- "text": ""
85
+ "tags": [{
86
+ "name": "default",
87
+ "text": "'active'"
88
+ }],
89
+ "text": "Semantic variant of the chip.\nInvalid values are normalized to `active` at runtime."
34
90
  },
35
91
  "getter": false,
36
92
  "setter": false,
37
- "reflect": false,
38
- "attribute": "text"
93
+ "reflect": true,
94
+ "attribute": "type",
95
+ "defaultValue": "'active'"
96
+ },
97
+ "size": {
98
+ "type": "string",
99
+ "mutable": true,
100
+ "complexType": {
101
+ "original": "Chip.Size",
102
+ "resolved": "\"default\" | \"small\"",
103
+ "references": {
104
+ "Chip": {
105
+ "location": "import",
106
+ "path": "../../api/ds.constants.js",
107
+ "id": "src/api/ds.constants.ts::Chip",
108
+ "referenceLocation": "Chip"
109
+ }
110
+ }
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [{
116
+ "name": "default",
117
+ "text": "'default'"
118
+ }],
119
+ "text": "Size variant of the chip.\nInvalid values are normalized to `default` at runtime."
120
+ },
121
+ "getter": false,
122
+ "setter": false,
123
+ "reflect": true,
124
+ "attribute": "size",
125
+ "defaultValue": "'default'"
39
126
  }
40
127
  };
41
128
  }
129
+ static get elementRef() { return "el"; }
130
+ static get watchers() {
131
+ return [{
132
+ "propName": "type",
133
+ "methodName": "normalizeType"
134
+ }, {
135
+ "propName": "size",
136
+ "methodName": "normalizeSize"
137
+ }];
138
+ }
42
139
  }
@@ -84,7 +84,7 @@ export class LmvzHeader extends ReactiveControllerHost {
84
84
  }
85
85
  }
86
86
  render() {
87
- return (h(Host, { key: '58cf99b555112f6209b6d16047bda2cc0bbf5cde', onFocus: this.delegateFocus.bind(this) }, h("div", { key: 'd9bda5c2a6b9abd6e5ea849fb31a0543c8c36bb7', class: "brand" }, h("slot", { key: 'e1c2c2a0bd69875ecd46ef9f7406ccb52409b570', name: "brand" }, h("img", { key: '8dfca875ffc837f2c413527ea106d640a9b9bb97', id: "fallback-logo-lmvz", src: logo, alt: "Lehrmittelverlag Z\u00FCrich" }))), h("nav", { key: '24ceb7f3ef54399ecb9b7b78418d3be9bb547f60', "aria-label": "Hauptnavigation" }, h("div", { key: 'c9fb6b1850330493e0a26bf20ea04013725025f6', role: "menubar", class: "primary-menubar" }, h("slot", { key: '19640032a28d0a9bd7f5396f7c1acd477135f864', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), h("div", { key: 'c11f19e15c0fea300a771060e2e4c77cce76c20f', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, h("slot", { key: '2df2cf852595a78391bcd7c3dd8b8d6db3847aaa', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), h("div", { key: 'c256862d4f5ea38c120218372d9ad73ae19efd74', class: "actions" }, h("slot", { key: '91b5eb2d9ab06005384a28cddee3d6c92afd418c', name: "actions" }))));
87
+ return (h(Host, { key: '74061d97a6d4cdec1f445a91b9e819bb12565681', onFocus: this.delegateFocus.bind(this) }, h("div", { key: 'af7f08ff48a20b7d36df5ee233da7027cd30a047', class: "brand" }, h("slot", { key: '46be4fcf2798ac374ac967bc2742260c4d7e082b', name: "brand" }, h("img", { key: '3ee79f9732758a6ca5dd6e8264c67707917b358b', id: "fallback-logo-lmvz", src: logo, alt: "Lehrmittelverlag Z\u00FCrich" }))), h("nav", { key: '8f37883454544a384bb35a151c4e24bb12c35f40', "aria-label": "Hauptnavigation" }, h("div", { key: 'a3166ad7e924dd72148d05c01160c889c8f07529', role: "menubar", class: "primary-menubar" }, h("slot", { key: 'aa600791e4d8f3463fefbc3b366831e3b3a3eaac', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), h("div", { key: '6471256967f4d14c454205a330b2a97ecfcad7a8', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, h("slot", { key: '1b9b461b958e76184938a1c65d032b296894e2dd', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), h("div", { key: '019d87472272df09ce99eeed405771229f326f1a', class: "actions" }, h("slot", { key: '18035fb0a51a26c96dc687547d17d57118a88e87', name: "actions" }))));
88
88
  }
89
89
  static get is() { return "lmvz-header"; }
90
90
  static get encapsulation() { return "shadow"; }
@@ -132,7 +132,7 @@ export class LmvzHeader extends ReactiveControllerHost {
132
132
  "optional": true,
133
133
  "docs": {
134
134
  "tags": [],
135
- "text": ""
135
+ "text": "Id of the currently active primary navigation item.\nAlso determines which `connect-nav-*` secondary slot is shown."
136
136
  },
137
137
  "getter": false,
138
138
  "setter": false,
@@ -3,6 +3,10 @@
3
3
  * @prop --lmvz-icon-color: The icon's color. This is inferred from the context (e.g. button) but can be overridden if needed, or when the icon is used standalone.
4
4
  */
5
5
  --lmvz-icon-color: var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));
6
+ /**
7
+ * @prop --lmvz-icon-size: The icon's size. This is inferred from the context (e.g. button) but can be overridden if needed, or when the icon is used standalone.
8
+ */
9
+ --lmvz-icon-size: var(--lmvz-component-size, var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));
6
10
 
7
11
  display: inline-block;
8
12
 
@@ -11,6 +15,8 @@
11
15
 
12
16
  svg {
13
17
  display: block;
18
+ height: var(--lmvz-icon-size);
19
+ width: auto;
14
20
  }
15
21
 
16
22
  svg path {
@@ -21,36 +27,31 @@
21
27
 
22
28
  :host([size='xs']) {
23
29
  svg {
24
- width: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
25
- height: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
30
+ --lmvz-icon-size: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));
26
31
  }
27
32
  }
28
33
 
29
34
  :host([size='sm']) {
30
35
  svg {
31
- width: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));
32
- height: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));
36
+ --lmvz-icon-size: var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));
33
37
  }
34
38
  }
35
39
 
36
40
  :host([size='md']) {
37
41
  svg {
38
- width: var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));
39
- height: var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));
42
+ --lmvz-icon-size: var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));
40
43
  }
41
44
  }
42
45
 
43
46
  :host([size='lg']) {
44
47
  svg {
45
- width: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));
46
- height: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));
48
+ --lmvz-icon-size: var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));
47
49
  }
48
50
  }
49
51
 
50
52
  :host([size='inherit']) {
51
53
  svg {
52
- width: inherit;
53
- height: inherit;
54
+ height: var(--lmvz-component-size, inherit);
54
55
  }
55
56
  }
56
57
 
@@ -1,5 +1,6 @@
1
- import { isValidSVG } from "@lmvz-ds/lib-ts/validation/svg.js";
1
+ import { createValidSVGString, isValidSVG } from "@lmvz-ds/lib-ts/validation/svg.js";
2
2
  import { Build, h, Host } from "@stencil/core";
3
+ import { Micro } from "effect";
3
4
  import { AriaValidationController } from "../../utils/aria/aria-validation-controller";
4
5
  import { resolveIconSvg } from "../../utils/icons/icons";
5
6
  import { ReactiveControllerHost } from "../../utils/reactive-controller-host";
@@ -42,7 +43,7 @@ export class LmvzIcon extends ReactiveControllerHost {
42
43
  return;
43
44
  }
44
45
  if (isValidSVG(icon)) {
45
- this.iconData = icon;
46
+ this.iconData = await Micro.runPromise(createValidSVGString(icon));
46
47
  return;
47
48
  }
48
49
  this.iconData = await resolveIconSvg({
@@ -56,7 +57,7 @@ export class LmvzIcon extends ReactiveControllerHost {
56
57
  super.componentDidRender();
57
58
  }
58
59
  render() {
59
- return h(Host, { key: 'b36586af32709b492336fe4ec1fe1fe1fe7a9e4b', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
60
+ return h(Host, { key: 'c1e952e00df287c66c49eb043408514c07c3dc39', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
60
61
  }
61
62
  waitUntilVisible(callback, rootMargin = 50) {
62
63
  if (!Build.isBrowser || typeof window === 'undefined' || !window.IntersectionObserver) {
@@ -111,7 +112,7 @@ export class LmvzIcon extends ReactiveControllerHost {
111
112
  "optional": false,
112
113
  "docs": {
113
114
  "tags": [],
114
- "text": "Required\n\nEither a valid name from a registered iconset, or the icon's SVG content (inline).\n\nWill be checked against the (default) iconset."
115
+ "text": "Required\n\nEither a valid name from a registered iconset, or the icon's SVG content (inline).\n\nWill be checked against the chosen {@link iconset}."
115
116
  },
116
117
  "getter": false,
117
118
  "setter": false,
@@ -184,7 +185,7 @@ export class LmvzIcon extends ReactiveControllerHost {
184
185
  "optional": true,
185
186
  "docs": {
186
187
  "tags": [],
187
- "text": "Optional custom icon iconset id. Must reference a registered custom iconset by its exported name."
188
+ "text": "Optional custom icon iconset id. Must reference a registered custom iconset by its exported name.\n\nWill try to resolve from the default iconset if not provided."
188
189
  },
189
190
  "getter": false,
190
191
  "setter": false,
@@ -203,7 +204,7 @@ export class LmvzIcon extends ReactiveControllerHost {
203
204
  "optional": true,
204
205
  "docs": {
205
206
  "tags": [],
206
- "text": ""
207
+ "text": "Accessible name for assistive technology.\nLeave unset for decorative icons so the icon stays hidden from the accessibility tree."
207
208
  },
208
209
  "getter": false,
209
210
  "setter": false,
@@ -150,9 +150,9 @@ export class LmvzInput extends ReactiveControllerHost {
150
150
  render() {
151
151
  const hasValue = Boolean(this.value);
152
152
  const shouldFloatLabel = hasValue || Boolean(this.placeholder);
153
- return (h("div", { key: '9de2e4dd202edc937e96ff6ebdc8d0270851c4ca', class: classNames('input-container', {
153
+ return (h("div", { key: '22be29e5fcd4976fc6c4d125781be00acef0b359', class: classNames('input-container', {
154
154
  'interaction-filled': hasValue,
155
- }) }, h("div", { key: '0c9f92778e1c52dca13ed9175a09d757fc6eedc9', class: "input-wrapper" }, h("slot", { key: '9cf29c45afdb127917a68ed6752faf3d50004c7d', name: "before-input" }), h("div", { key: 'e7e6c54b6ee6db108ac3f8ddb676bb9fcf10517e', class: "label-input-group" }, h("label", { key: '68eb29e585741971aae58c7693d011ba587f1c1b', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: '274d992a43c2de45af7172608fb1581c6ee771d2', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: 'a26b95dee9781e0e13db16d6e09681e36cab0230', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), h("slot", { key: '5b77b87ba1da3b8e71c7f6825eecf2216a93e4f9', name: "after-input" })), h("div", { key: 'cac334a1e88d4136e923ef1355196997bfe97099', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: 'b3ea662fa0a57ed0d8c3f35e36aad6b2513af8ab', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
155
+ }) }, h("div", { key: 'ffeb620419316976e800b16b4a9fd9538f1efd26', class: "input-wrapper" }, h("slot", { key: '2a1a67f7fde0232b2bb5ce3cc228b869e5ac3516', name: "before-input" }), h("div", { key: '3bbe623cae67d376c60a28306164293a712b1bb5', class: "label-input-group" }, h("label", { key: 'c260b3eb249d5c785fe3b6e223c7428a8c147f50', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: 'f43dd77efe7e319428dd72ec8933b7587635e767', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: 'eeb821a74a5ac7aab3fab65a48a37d21a22744e6', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), h("slot", { key: 'dd36a212c05c43ab2a8249750c14a7475b6d65d3', name: "after-input" })), h("div", { key: 'c2aedd67036faf4d3dc459c3c1fab8d07ee5a991', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: '01d2a6d6df9b3804a595711c7b57b6177d311c39', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
156
156
  }
157
157
  static get is() { return "lmvz-input"; }
158
158
  static get encapsulation() { return "scoped"; }
@@ -701,7 +701,7 @@ export class LmvzInput extends ReactiveControllerHost {
701
701
  "composed": true,
702
702
  "docs": {
703
703
  "tags": [],
704
- "text": ""
704
+ "text": "Emitted whenever the input value changes.\nEvent detail contains the current value."
705
705
  },
706
706
  "complexType": {
707
707
  "original": "string",
@@ -729,7 +729,7 @@ export class LmvzInput extends ReactiveControllerHost {
729
729
  "return": "Promise<void>"
730
730
  },
731
731
  "docs": {
732
- "text": "",
732
+ "text": "Updates the value programmatically and emits `lmvzInput` with the new value.",
733
733
  "tags": []
734
734
  }
735
735
  },