@maggioli-design-system/mds-input-select 3.5.1 → 3.6.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 (54) hide show
  1. package/dist/cjs/{index-18f29026.js → index-a7de269b.js} +18 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-input-select.cjs.entry.js +23 -7
  4. package/dist/cjs/mds-input-select.cjs.js +2 -2
  5. package/dist/collection/components/mds-input-select/mds-input-select.js +47 -6
  6. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +4 -0
  7. package/dist/components/mds-input-select.js +24 -7
  8. package/dist/documentation.json +37 -2
  9. package/dist/esm/{index-60887c04.js → index-fb47df34.js} +18 -1
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/esm/mds-input-select.entry.js +23 -7
  12. package/dist/esm/mds-input-select.js +3 -3
  13. package/dist/esm-es5/index-fb47df34.js +1 -0
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  16. package/dist/esm-es5/mds-input-select.js +1 -1
  17. package/dist/mds-input-select/mds-input-select.esm.js +1 -1
  18. package/dist/mds-input-select/mds-input-select.js +1 -1
  19. package/dist/mds-input-select/p-450de70e.system.entry.js +1 -0
  20. package/dist/mds-input-select/p-5c70e69d.js +2 -0
  21. package/dist/mds-input-select/p-7266e108.system.js +2 -0
  22. package/dist/mds-input-select/p-a0dc943c.entry.js +1 -0
  23. package/dist/mds-input-select/p-bddba7bd.system.js +1 -0
  24. package/dist/stats.json +84 -32
  25. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -0
  26. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +6 -0
  27. package/dist/types/components.d.ts +4 -0
  28. package/dist/types/dictionary/icon.d.ts +1 -1
  29. package/documentation.json +42 -2
  30. package/package.json +2 -2
  31. package/readme.md +19 -0
  32. package/src/components/mds-input-select/mds-input-select.tsx +21 -3
  33. package/src/components/mds-input-select/readme.md +19 -0
  34. package/src/components/mds-input-select/test/mds-input-select.stories.tsx +4 -0
  35. package/src/components.d.ts +4 -0
  36. package/src/fixtures/icons.json +473 -0
  37. package/www/build/mds-input-select.esm.js +1 -1
  38. package/www/build/mds-input-select.js +1 -1
  39. package/www/build/p-450de70e.system.entry.js +1 -0
  40. package/www/build/p-5c70e69d.js +2 -0
  41. package/www/build/p-7266e108.system.js +2 -0
  42. package/www/build/p-a0dc943c.entry.js +1 -0
  43. package/www/build/p-bddba7bd.system.js +1 -0
  44. package/dist/esm-es5/index-60887c04.js +0 -1
  45. package/dist/mds-input-select/p-0760aca1.system.entry.js +0 -1
  46. package/dist/mds-input-select/p-39d143a4.system.js +0 -1
  47. package/dist/mds-input-select/p-41875927.js +0 -2
  48. package/dist/mds-input-select/p-9758de3c.entry.js +0 -1
  49. package/dist/mds-input-select/p-db5fddbf.system.js +0 -2
  50. package/www/build/p-0760aca1.system.entry.js +0 -1
  51. package/www/build/p-39d143a4.system.js +0 -1
  52. package/www/build/p-41875927.js +0 -2
  53. package/www/build/p-9758de3c.entry.js +0 -1
  54. package/www/build/p-db5fddbf.system.js +0 -2
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-input-select';
24
- const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -50,6 +50,9 @@ var registerHost = (hostElement, cmpMeta) => {
50
50
  $cmpMeta$: cmpMeta,
51
51
  $instanceValues$: /* @__PURE__ */ new Map()
52
52
  };
53
+ {
54
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
55
+ }
53
56
  {
54
57
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
55
58
  hostElement["s-p"] = [];
@@ -908,6 +911,9 @@ var postUpdateComponent = (hostRef) => {
908
911
  safeCall(instance, "componentDidUpdate", void 0, elm);
909
912
  endPostUpdate();
910
913
  }
914
+ {
915
+ hostRef.$onInstanceResolve$(elm);
916
+ }
911
917
  {
912
918
  if (hostRef.$onRenderResolve$) {
913
919
  hostRef.$onRenderResolve$();
@@ -1073,6 +1079,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1073
1079
  }
1074
1080
  }
1075
1081
  });
1082
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1083
+ Object.defineProperty(prototype, memberName, {
1084
+ value(...args) {
1085
+ var _a2;
1086
+ const ref = getHostRef(this);
1087
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1088
+ var _a3;
1089
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1090
+ });
1091
+ }
1092
+ });
1076
1093
  }
1077
1094
  });
1078
1095
  if ((flags & 1 /* isElementConstructor */)) {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
11
+ return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
 
7
7
  const miBaselineKeyboardArrowDown = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/></svg>`;
8
8
 
@@ -71,7 +71,7 @@ const MdsInputSelect = class {
71
71
  });
72
72
  };
73
73
  this.onSlotChangeHandler = () => {
74
- var _a, _b, _c, _d;
74
+ var _a, _b, _c;
75
75
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
76
76
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
77
77
  if (!options) {
@@ -87,22 +87,36 @@ const MdsInputSelect = class {
87
87
  var _a;
88
88
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
89
89
  });
90
- if (this.value && this.selectEl) {
90
+ this.setCurrentValue();
91
+ };
92
+ this.setCurrentValue = () => {
93
+ var _a;
94
+ if (!this.selectEl)
95
+ return;
96
+ if (this.value) {
91
97
  this.selectEl.querySelectorAll('option').forEach((element) => {
92
98
  element.selected = element.value === this.value;
93
99
  });
94
100
  }
95
101
  else if (!this.placeholder) {
96
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
102
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
97
103
  }
98
104
  };
99
105
  }
106
+ /**
107
+ * Sets the value of the component
108
+ */
109
+ async setValue(value) {
110
+ this.value = value;
111
+ return Promise.resolve();
112
+ }
100
113
  /**
101
114
  * Emits the change event when the component value changes
102
115
  */
103
116
  valueChanged() {
104
117
  var _a, _b, _c;
105
118
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
119
+ this.setCurrentValue();
106
120
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
107
121
  }
108
122
  disabledChanged(newValue) {
@@ -131,8 +145,10 @@ const MdsInputSelect = class {
131
145
  this.selectEl.insertBefore(defaultOption, this.selectEl.firstChild);
132
146
  defaultOption.value = '';
133
147
  defaultOption.text = newValue;
134
- if (!this.defaultValue)
148
+ if (!this.defaultValue) {
135
149
  defaultOption.selected = true;
150
+ this.value = undefined;
151
+ }
136
152
  if (this.required)
137
153
  defaultOption.disabled = true;
138
154
  }
@@ -152,8 +168,8 @@ const MdsInputSelect = class {
152
168
  }
153
169
  }
154
170
  render() {
155
- return (index.h(index.Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, index.h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, index.h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), index.h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, index.h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), index.h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, index.h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), index.h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && index.h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
156
- index.h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
171
+ return (index.h(index.Host, { key: 'b217fb12291d7a274a658db14c93de159d6ef8f8' }, index.h("select", { key: 'ecfd2d64dafbc5fe6546122631927388976891f1', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, index.h("option", { key: '7b6de14db97a31802fb96080bda90cc5396ec604', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), index.h("div", { key: 'c29136a8a74c71e1565cc31f92abdf016f9eac0d', class: "icon-container" }, index.h("i", { key: '64ba4ea00b6d497fb9075a8385844cf60e16051a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), index.h("div", { key: '49118d50d1de9222ca611c65f22bb2e9a37abba8', class: "option-container" }, index.h("slot", { key: '5b437f219f6d3470c3b33d97b0d215669d9ec1b6', onSlotchange: this.onSlotChangeHandler })), index.h("mds-input-tip", { key: 'e2e5f0b16cf5e5b8a6d2c4c61b3745533247030b', position: "top", active: this.hasFocus }, this.disabled && index.h("mds-input-tip-item", { key: '5d5fe9dee35f5fe0c048b66abf7bebd51846ebd5', expanded: true, variant: "disabled" }), this.required &&
172
+ index.h("mds-input-tip-item", { key: '158a591219c8c0bf2a94b4f4c7d5a4f2a32b00ce', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
157
173
  }
158
174
  static get formAssociated() { return true; }
159
175
  get host() { return index.getElement(this); }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
22
+ return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -56,7 +56,7 @@ export class MdsInputSelect {
56
56
  });
57
57
  };
58
58
  this.onSlotChangeHandler = () => {
59
- var _a, _b, _c, _d;
59
+ var _a, _b, _c;
60
60
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
61
61
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
62
62
  if (!options) {
@@ -72,22 +72,36 @@ export class MdsInputSelect {
72
72
  var _a;
73
73
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
74
74
  });
75
- if (this.value && this.selectEl) {
75
+ this.setCurrentValue();
76
+ };
77
+ this.setCurrentValue = () => {
78
+ var _a;
79
+ if (!this.selectEl)
80
+ return;
81
+ if (this.value) {
76
82
  this.selectEl.querySelectorAll('option').forEach((element) => {
77
83
  element.selected = element.value === this.value;
78
84
  });
79
85
  }
80
86
  else if (!this.placeholder) {
81
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
87
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
82
88
  }
83
89
  };
84
90
  }
91
+ /**
92
+ * Sets the value of the component
93
+ */
94
+ async setValue(value) {
95
+ this.value = value;
96
+ return Promise.resolve();
97
+ }
85
98
  /**
86
99
  * Emits the change event when the component value changes
87
100
  */
88
101
  valueChanged() {
89
102
  var _a, _b, _c;
90
103
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
104
+ this.setCurrentValue();
91
105
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
92
106
  }
93
107
  disabledChanged(newValue) {
@@ -116,8 +130,10 @@ export class MdsInputSelect {
116
130
  this.selectEl.insertBefore(defaultOption, this.selectEl.firstChild);
117
131
  defaultOption.value = '';
118
132
  defaultOption.text = newValue;
119
- if (!this.defaultValue)
133
+ if (!this.defaultValue) {
120
134
  defaultOption.selected = true;
135
+ this.value = undefined;
136
+ }
121
137
  if (this.required)
122
138
  defaultOption.disabled = true;
123
139
  }
@@ -137,8 +153,8 @@ export class MdsInputSelect {
137
153
  }
138
154
  }
139
155
  render() {
140
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
141
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
156
+ return (h(Host, { key: 'b217fb12291d7a274a658db14c93de159d6ef8f8' }, h("select", { key: 'ecfd2d64dafbc5fe6546122631927388976891f1', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '7b6de14db97a31802fb96080bda90cc5396ec604', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: 'c29136a8a74c71e1565cc31f92abdf016f9eac0d', class: "icon-container" }, h("i", { key: '64ba4ea00b6d497fb9075a8385844cf60e16051a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '49118d50d1de9222ca611c65f22bb2e9a37abba8', class: "option-container" }, h("slot", { key: '5b437f219f6d3470c3b33d97b0d215669d9ec1b6', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: 'e2e5f0b16cf5e5b8a6d2c4c61b3745533247030b', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '5d5fe9dee35f5fe0c048b66abf7bebd51846ebd5', expanded: true, variant: "disabled" }), this.required &&
157
+ h("mds-input-tip-item", { key: '158a591219c8c0bf2a94b4f4c7d5a4f2a32b00ce', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
142
158
  }
143
159
  static get is() { return "mds-input-select"; }
144
160
  static get encapsulation() { return "shadow"; }
@@ -406,6 +422,31 @@ export class MdsInputSelect {
406
422
  }
407
423
  }];
408
424
  }
425
+ static get methods() {
426
+ return {
427
+ "setValue": {
428
+ "complexType": {
429
+ "signature": "(value: string | number | null) => Promise<void>",
430
+ "parameters": [{
431
+ "name": "value",
432
+ "type": "string | number | null",
433
+ "docs": ""
434
+ }],
435
+ "references": {
436
+ "Promise": {
437
+ "location": "global",
438
+ "id": "global::Promise"
439
+ }
440
+ },
441
+ "return": "Promise<void>"
442
+ },
443
+ "docs": {
444
+ "text": "Sets the value of the component",
445
+ "tags": []
446
+ }
447
+ }
448
+ };
449
+ }
409
450
  static get elementRef() { return "host"; }
410
451
  static get watchers() {
411
452
  return [{
@@ -48,6 +48,10 @@ export default {
48
48
  control: { type: 'select' },
49
49
  description: 'Sets the variant of the component',
50
50
  },
51
+ setValue: {
52
+ type: { name: 'function' },
53
+ description: 'Sets the value of the component',
54
+ },
51
55
  },
52
56
  };
53
57
  const Template = args => (h("mds-input-select", Object.assign({}, args), h("option", { value: "1" }, "First contact"), h("option", { value: "2" }, "Second impact"), h("option", { value: "3" }, "The Third Man"), h("option", { value: "4" }, "The Fourth Emendament")));
@@ -63,7 +63,7 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
63
63
  });
64
64
  };
65
65
  this.onSlotChangeHandler = () => {
66
- var _a, _b, _c, _d;
66
+ var _a, _b, _c;
67
67
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
68
68
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
69
69
  if (!options) {
@@ -79,22 +79,36 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
79
79
  var _a;
80
80
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
81
81
  });
82
- if (this.value && this.selectEl) {
82
+ this.setCurrentValue();
83
+ };
84
+ this.setCurrentValue = () => {
85
+ var _a;
86
+ if (!this.selectEl)
87
+ return;
88
+ if (this.value) {
83
89
  this.selectEl.querySelectorAll('option').forEach((element) => {
84
90
  element.selected = element.value === this.value;
85
91
  });
86
92
  }
87
93
  else if (!this.placeholder) {
88
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
94
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
89
95
  }
90
96
  };
91
97
  }
98
+ /**
99
+ * Sets the value of the component
100
+ */
101
+ async setValue(value) {
102
+ this.value = value;
103
+ return Promise.resolve();
104
+ }
92
105
  /**
93
106
  * Emits the change event when the component value changes
94
107
  */
95
108
  valueChanged() {
96
109
  var _a, _b, _c;
97
110
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
111
+ this.setCurrentValue();
98
112
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
99
113
  }
100
114
  disabledChanged(newValue) {
@@ -123,8 +137,10 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
123
137
  this.selectEl.insertBefore(defaultOption, this.selectEl.firstChild);
124
138
  defaultOption.value = '';
125
139
  defaultOption.text = newValue;
126
- if (!this.defaultValue)
140
+ if (!this.defaultValue) {
127
141
  defaultOption.selected = true;
142
+ this.value = undefined;
143
+ }
128
144
  if (this.required)
129
145
  defaultOption.disabled = true;
130
146
  }
@@ -144,8 +160,8 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
144
160
  }
145
161
  }
146
162
  render() {
147
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
148
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
163
+ return (h(Host, { key: 'b217fb12291d7a274a658db14c93de159d6ef8f8' }, h("select", { key: 'ecfd2d64dafbc5fe6546122631927388976891f1', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '7b6de14db97a31802fb96080bda90cc5396ec604', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: 'c29136a8a74c71e1565cc31f92abdf016f9eac0d', class: "icon-container" }, h("i", { key: '64ba4ea00b6d497fb9075a8385844cf60e16051a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '49118d50d1de9222ca611c65f22bb2e9a37abba8', class: "option-container" }, h("slot", { key: '5b437f219f6d3470c3b33d97b0d215669d9ec1b6', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: 'e2e5f0b16cf5e5b8a6d2c4c61b3745533247030b', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '5d5fe9dee35f5fe0c048b66abf7bebd51846ebd5', expanded: true, variant: "disabled" }), this.required &&
164
+ h("mds-input-tip-item", { key: '158a591219c8c0bf2a94b4f4c7d5a4f2a32b00ce', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
149
165
  }
150
166
  static get formAssociated() { return true; }
151
167
  get host() { return this; }
@@ -167,7 +183,8 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
167
183
  "value": [520],
168
184
  "defaultValue": [520, "default-value"],
169
185
  "variant": [513],
170
- "hasFocus": [32]
186
+ "hasFocus": [32],
187
+ "setValue": [64]
171
188
  }, undefined, {
172
189
  "value": ["valueChanged"],
173
190
  "disabled": ["disabledChanged"],
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-01-16T15:21:25",
2
+ "timestamp": "2026-02-23T15:00:14",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -343,7 +343,42 @@
343
343
  "setter": false
344
344
  }
345
345
  ],
346
- "methods": [],
346
+ "methods": [
347
+ {
348
+ "name": "setValue",
349
+ "returns": {
350
+ "type": "Promise<void>",
351
+ "docs": ""
352
+ },
353
+ "complexType": {
354
+ "signature": "(value: string | number | null) => Promise<void>",
355
+ "parameters": [
356
+ {
357
+ "name": "value",
358
+ "type": "string | number | null",
359
+ "docs": ""
360
+ }
361
+ ],
362
+ "references": {
363
+ "Promise": {
364
+ "location": "global",
365
+ "id": "global::Promise"
366
+ }
367
+ },
368
+ "return": "Promise<void>"
369
+ },
370
+ "signature": "setValue(value: string | number | null) => Promise<void>",
371
+ "parameters": [
372
+ {
373
+ "name": "value",
374
+ "type": "string | number | null",
375
+ "docs": ""
376
+ }
377
+ ],
378
+ "docs": "Sets the value of the component",
379
+ "docsTags": []
380
+ }
381
+ ],
347
382
  "events": [
348
383
  {
349
384
  "event": "mdsInputSelectChange",
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'mds-input-select';
2
- const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -28,6 +28,9 @@ var registerHost = (hostElement, cmpMeta) => {
28
28
  $cmpMeta$: cmpMeta,
29
29
  $instanceValues$: /* @__PURE__ */ new Map()
30
30
  };
31
+ {
32
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
33
+ }
31
34
  {
32
35
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
33
36
  hostElement["s-p"] = [];
@@ -886,6 +889,9 @@ var postUpdateComponent = (hostRef) => {
886
889
  safeCall(instance, "componentDidUpdate", void 0, elm);
887
890
  endPostUpdate();
888
891
  }
892
+ {
893
+ hostRef.$onInstanceResolve$(elm);
894
+ }
889
895
  {
890
896
  if (hostRef.$onRenderResolve$) {
891
897
  hostRef.$onRenderResolve$();
@@ -1051,6 +1057,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1051
1057
  }
1052
1058
  }
1053
1059
  });
1060
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1061
+ Object.defineProperty(prototype, memberName, {
1062
+ value(...args) {
1063
+ var _a2;
1064
+ const ref = getHostRef(this);
1065
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1066
+ var _a3;
1067
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1068
+ });
1069
+ }
1070
+ });
1054
1071
  }
1055
1072
  });
1056
1073
  if ((flags & 1 /* isElementConstructor */)) {
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-60887c04.js';
2
- export { s as setNonce } from './index-60887c04.js';
1
+ import { b as bootstrapLazy } from './index-fb47df34.js';
2
+ export { s as setNonce } from './index-fb47df34.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
8
+ return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-60887c04.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fb47df34.js';
2
2
 
3
3
  const miBaselineKeyboardArrowDown = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/></svg>`;
4
4
 
@@ -67,7 +67,7 @@ const MdsInputSelect = class {
67
67
  });
68
68
  };
69
69
  this.onSlotChangeHandler = () => {
70
- var _a, _b, _c, _d;
70
+ var _a, _b, _c;
71
71
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
72
72
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
73
73
  if (!options) {
@@ -83,22 +83,36 @@ const MdsInputSelect = class {
83
83
  var _a;
84
84
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
85
85
  });
86
- if (this.value && this.selectEl) {
86
+ this.setCurrentValue();
87
+ };
88
+ this.setCurrentValue = () => {
89
+ var _a;
90
+ if (!this.selectEl)
91
+ return;
92
+ if (this.value) {
87
93
  this.selectEl.querySelectorAll('option').forEach((element) => {
88
94
  element.selected = element.value === this.value;
89
95
  });
90
96
  }
91
97
  else if (!this.placeholder) {
92
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
98
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
93
99
  }
94
100
  };
95
101
  }
102
+ /**
103
+ * Sets the value of the component
104
+ */
105
+ async setValue(value) {
106
+ this.value = value;
107
+ return Promise.resolve();
108
+ }
96
109
  /**
97
110
  * Emits the change event when the component value changes
98
111
  */
99
112
  valueChanged() {
100
113
  var _a, _b, _c;
101
114
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
115
+ this.setCurrentValue();
102
116
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
103
117
  }
104
118
  disabledChanged(newValue) {
@@ -127,8 +141,10 @@ const MdsInputSelect = class {
127
141
  this.selectEl.insertBefore(defaultOption, this.selectEl.firstChild);
128
142
  defaultOption.value = '';
129
143
  defaultOption.text = newValue;
130
- if (!this.defaultValue)
144
+ if (!this.defaultValue) {
131
145
  defaultOption.selected = true;
146
+ this.value = undefined;
147
+ }
132
148
  if (this.required)
133
149
  defaultOption.disabled = true;
134
150
  }
@@ -148,8 +164,8 @@ const MdsInputSelect = class {
148
164
  }
149
165
  }
150
166
  render() {
151
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
152
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
167
+ return (h(Host, { key: 'b217fb12291d7a274a658db14c93de159d6ef8f8' }, h("select", { key: 'ecfd2d64dafbc5fe6546122631927388976891f1', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '7b6de14db97a31802fb96080bda90cc5396ec604', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: 'c29136a8a74c71e1565cc31f92abdf016f9eac0d', class: "icon-container" }, h("i", { key: '64ba4ea00b6d497fb9075a8385844cf60e16051a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '49118d50d1de9222ca611c65f22bb2e9a37abba8', class: "option-container" }, h("slot", { key: '5b437f219f6d3470c3b33d97b0d215669d9ec1b6', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: 'e2e5f0b16cf5e5b8a6d2c4c61b3745533247030b', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '5d5fe9dee35f5fe0c048b66abf7bebd51846ebd5', expanded: true, variant: "disabled" }), this.required &&
168
+ h("mds-input-tip-item", { key: '158a591219c8c0bf2a94b4f4c7d5a4f2a32b00ce', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
153
169
  }
154
170
  static get formAssociated() { return true; }
155
171
  get host() { return getElement(this); }
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-60887c04.js';
2
- export { s as setNonce } from './index-60887c04.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-fb47df34.js';
2
+ export { s as setNonce } from './index-fb47df34.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
19
+ return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
20
20
  });