@db-ux/wc-core-components 4.5.4 → 4.6.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 (113) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +32 -0
  3. package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/db-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/db-brand.cjs.entry.js +1 -1
  7. package/dist/cjs/db-button.cjs.entry.js +1 -1
  8. package/dist/cjs/db-card.cjs.entry.js +1 -1
  9. package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
  10. package/dist/cjs/db-custom-button.cjs.entry.js +1 -1
  11. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +8 -10
  12. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
  13. package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
  14. package/dist/cjs/db-divider.cjs.entry.js +1 -1
  15. package/dist/cjs/db-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/db-header.cjs.entry.js +1 -1
  17. package/dist/cjs/db-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/db-infotext.cjs.entry.js +1 -1
  19. package/dist/cjs/db-link.cjs.entry.js +1 -1
  20. package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
  21. package/dist/cjs/db-navigation.cjs.entry.js +1 -1
  22. package/dist/cjs/db-notification.cjs.entry.js +1 -1
  23. package/dist/cjs/db-page.cjs.entry.js +1 -1
  24. package/dist/cjs/db-popover.cjs.entry.js +1 -1
  25. package/dist/cjs/db-radio.cjs.entry.js +1 -1
  26. package/dist/cjs/db-section.cjs.entry.js +1 -1
  27. package/dist/cjs/db-select.cjs.entry.js +5 -5
  28. package/dist/cjs/db-stack.cjs.entry.js +1 -1
  29. package/dist/cjs/db-switch.cjs.entry.js +1 -1
  30. package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
  31. package/dist/cjs/db-tabs.cjs.entry.js +1 -1
  32. package/dist/cjs/db-textarea.cjs.entry.js +5 -7
  33. package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
  34. package/dist/cjs/db-ux.cjs.js +2 -2
  35. package/dist/cjs/{index-D_vrmAD6.js → index-EqJP9Qyt.js} +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/collection-manifest.json +1 -1
  38. package/dist/collection/components/input/input.js +7 -9
  39. package/dist/collection/components/select/select.js +4 -4
  40. package/dist/collection/components/textarea/textarea.js +4 -6
  41. package/dist/collection/utils/form-components.js +25 -3
  42. package/dist/db-ux/db-ux.esm.js +1 -1
  43. package/dist/db-ux/{p-4cda36f1.entry.js → p-05e9aa2e.entry.js} +1 -1
  44. package/dist/db-ux/{p-587263ad.entry.js → p-19ae6336.entry.js} +1 -1
  45. package/dist/db-ux/{p-d186aef4.entry.js → p-2ed98454.entry.js} +1 -1
  46. package/dist/db-ux/{p-4cf64cbb.entry.js → p-33443732.entry.js} +1 -1
  47. package/dist/db-ux/{p-a34d2691.entry.js → p-3ca07f53.entry.js} +1 -1
  48. package/dist/db-ux/{p-11251b99.entry.js → p-4a0870fa.entry.js} +1 -1
  49. package/dist/db-ux/{p-dceb35a8.entry.js → p-516c3f64.entry.js} +1 -1
  50. package/dist/db-ux/{p-f0bc176a.entry.js → p-56da8875.entry.js} +1 -1
  51. package/dist/db-ux/{p-56af9177.entry.js → p-58c6c29d.entry.js} +1 -1
  52. package/dist/db-ux/{p-213bfff6.entry.js → p-669fe992.entry.js} +1 -1
  53. package/dist/db-ux/{p-6b073570.entry.js → p-72d1ea3b.entry.js} +1 -1
  54. package/dist/db-ux/{p-ff3866f3.entry.js → p-7f6fae6f.entry.js} +1 -1
  55. package/dist/db-ux/{p-2bce91e1.entry.js → p-83e69c0e.entry.js} +1 -1
  56. package/dist/db-ux/{p-9a19e197.entry.js → p-85897212.entry.js} +1 -1
  57. package/dist/db-ux/{p-836f0fef.entry.js → p-8a521b05.entry.js} +1 -1
  58. package/dist/db-ux/{p-043c407c.entry.js → p-974fbc69.entry.js} +1 -1
  59. package/dist/db-ux/{p-3e5be44c.entry.js → p-a0f6fc10.entry.js} +1 -1
  60. package/dist/db-ux/{p-29442fd9.entry.js → p-a3aef74b.entry.js} +1 -1
  61. package/dist/db-ux/{p-745ccfb8.entry.js → p-a726cd18.entry.js} +1 -1
  62. package/dist/db-ux/{p-32c4a1b5.entry.js → p-aad2d524.entry.js} +1 -1
  63. package/dist/db-ux/{p-9fb146d1.entry.js → p-af15c7c1.entry.js} +1 -1
  64. package/dist/db-ux/p-b5902b40.entry.js +1 -0
  65. package/dist/db-ux/{p-074e4a43.entry.js → p-b99e76fd.entry.js} +1 -1
  66. package/dist/db-ux/{p-5028b12e.entry.js → p-bd1b0142.entry.js} +1 -1
  67. package/dist/db-ux/{p-e199b6f9.entry.js → p-c7d1bee4.entry.js} +1 -1
  68. package/dist/db-ux/{p-0541c3c2.entry.js → p-cb093137.entry.js} +1 -1
  69. package/dist/db-ux/{p-c6f43506.entry.js → p-cdef6789.entry.js} +1 -1
  70. package/dist/db-ux/{p-1c89f0fc.entry.js → p-df2b1979.entry.js} +1 -1
  71. package/dist/db-ux/{p-fb5f7825.entry.js → p-f49ed233.entry.js} +1 -1
  72. package/dist/db-ux/{p-ef034bba.entry.js → p-fa61a750.entry.js} +1 -1
  73. package/dist/db-ux/{p-e3664354.entry.js → p-fdbf8d91.entry.js} +1 -1
  74. package/dist/esm/db-accordion-item.entry.js +1 -1
  75. package/dist/esm/db-accordion.entry.js +1 -1
  76. package/dist/esm/db-badge.entry.js +1 -1
  77. package/dist/esm/db-brand.entry.js +1 -1
  78. package/dist/esm/db-button.entry.js +1 -1
  79. package/dist/esm/db-card.entry.js +1 -1
  80. package/dist/esm/db-checkbox.entry.js +1 -1
  81. package/dist/esm/db-custom-button.entry.js +1 -1
  82. package/dist/esm/db-custom-select-dropdown_5.entry.js +8 -10
  83. package/dist/esm/db-custom-select-form-field.entry.js +1 -1
  84. package/dist/esm/db-custom-select.entry.js +1 -1
  85. package/dist/esm/db-divider.entry.js +1 -1
  86. package/dist/esm/db-drawer.entry.js +1 -1
  87. package/dist/esm/db-header.entry.js +1 -1
  88. package/dist/esm/db-icon.entry.js +1 -1
  89. package/dist/esm/db-infotext.entry.js +1 -1
  90. package/dist/esm/db-link.entry.js +1 -1
  91. package/dist/esm/db-navigation-item.entry.js +1 -1
  92. package/dist/esm/db-navigation.entry.js +1 -1
  93. package/dist/esm/db-notification.entry.js +1 -1
  94. package/dist/esm/db-page.entry.js +1 -1
  95. package/dist/esm/db-popover.entry.js +1 -1
  96. package/dist/esm/db-radio.entry.js +1 -1
  97. package/dist/esm/db-section.entry.js +1 -1
  98. package/dist/esm/db-select.entry.js +5 -5
  99. package/dist/esm/db-stack.entry.js +1 -1
  100. package/dist/esm/db-switch.entry.js +1 -1
  101. package/dist/esm/db-tab-item_3.entry.js +1 -1
  102. package/dist/esm/db-tabs.entry.js +1 -1
  103. package/dist/esm/db-textarea.entry.js +5 -7
  104. package/dist/esm/db-tooltip.entry.js +1 -1
  105. package/dist/esm/db-ux.js +3 -3
  106. package/dist/esm/{index-BjIPMjCM.js → index-kHKR5QG5.js} +1 -1
  107. package/dist/esm/loader.js +2 -2
  108. package/dist/types/shared/model.d.ts +1 -1
  109. package/dist/types/utils/form-components.d.ts +1 -1
  110. package/dist/web-types.json +1 -1
  111. package/package.json +4 -4
  112. package/dist/db-ux/p-cdfaf027.entry.js +0 -1
  113. /package/dist/db-ux/{p-BjIPMjCM.js → p-kHKR5QG5.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-kHKR5QG5.js';
2
2
  import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-xkoBSP8R.js';
3
3
  import { b as addResetEventListener } from './form-components-D6LQfJvq.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, h } from './index-kHKR5QG5.js';
2
2
  import { c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBSection = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-kHKR5QG5.js';
2
2
  import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
3
3
  import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
4
4
  import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
@@ -235,15 +235,15 @@ const DBSelect = class {
235
235
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
236
236
  }
237
237
  render() {
238
- var _a, _b, _c, _d, _e;
239
- return (h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '197c8e2861449bed151348411043d5acb9c7b57c', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
238
+ var _a, _b, _c, _d, _e, _f;
239
+ return (h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '610327eb481b3806f99a8d123452bcf8e7e2ca58', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
240
240
  this._ref = el;
241
241
  }, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
242
242
  /* @ts-ignore */
243
- value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_c = this.ariaDescribedBy) !== null && _c !== void 0 ? _c : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_d = this.options) === null || _d === void 0 ? void 0 : _d.length) ? ((_e = this.options) === null || _e === void 0 ? void 0 : _e.map((option) => {
243
+ value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
244
244
  var _a;
245
245
  return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
246
- })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '613305a3087d33f6ce2e9a90f6709897067f4355', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '6f3d17afd859cd7f58c64f7d030509478a7fb438', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
246
+ })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '946099b7eaab7da894f46400e1f428de137492ba', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '723768ffcad5add62979635d354280686145ca31', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
247
247
  }
248
248
  static get watchers() { return {
249
249
  "id": [{
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, h } from './index-kHKR5QG5.js';
2
2
  import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBStack = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-kHKR5QG5.js';
2
2
  import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
3
3
  import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
4
4
  import { a as addCheckedResetEventListener } from './form-components-D6LQfJvq.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-kHKR5QG5.js';
2
2
  import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBTabItem = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-kHKR5QG5.js';
2
2
  import { u as uuid, c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBTabs = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-kHKR5QG5.js';
2
2
  import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, r as DEFAULT_ROWS, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
3
3
  import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, f as getNumber, e as getBoolean, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
4
4
  import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
@@ -155,9 +155,7 @@ const DBTextarea = class {
155
155
  this.watch2Fn();
156
156
  }
157
157
  watch3Fn() {
158
- if (this.value !== undefined) {
159
- this._value = this.value;
160
- }
158
+ this._value = this.value;
161
159
  }
162
160
  watch3() {
163
161
  this.watch3Fn();
@@ -200,11 +198,11 @@ const DBTextarea = class {
200
198
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
201
199
  }
202
200
  render() {
203
- var _a, _b, _c, _d, _e;
204
- return (h("div", { key: 'acb23abfb477beeceebdf88503a51a6aa90e268e', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '03df1963dce7436d616df5f26c8fbff37243421f', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: 'b09e8a714ee44c18a2af738d90c6939309eb143c', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
201
+ var _a, _b, _c, _d, _e, _f;
202
+ return (h("div", { key: 'e6c64857826bf80558d0b402594a66418e62ef57', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '38f6ce12d40275dd6fa5cfa64c6d2ca4c17fab8f', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '6d11324a4cfce9eeed9e1bcafe0a7edb1ee6c8ce', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
205
203
  this._ref = el;
206
204
  }, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
207
- getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this._value, "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds, placeholder: (_e = this.placeholder) !== null && _e !== void 0 ? _e : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'c62d3e639536d955cc454b43c289b0ad11e9d7b3', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '430d5b39be9fa9eb29c7720f46be601fa1f25161', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
205
+ getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '16d43aeea87f6e3597c95847c037faa194875b94', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '8b407f9a60c61ac4af26d6ec5a9571d5f37ae915', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
208
206
  }
209
207
  static get watchers() { return {
210
208
  "id": [{
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-BjIPMjCM.js';
1
+ import { r as registerInstance, h } from './index-kHKR5QG5.js';
2
2
  import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
3
3
  import { d as delay, u as uuid, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
4
4
  import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
package/dist/esm/db-ux.js CHANGED
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-BjIPMjCM.js';
2
- export { s as setNonce } from './index-BjIPMjCM.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-kHKR5QG5.js';
2
+ export { s as setNonce } from './index-kHKR5QG5.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -2,7 +2,7 @@ const NAMESPACE = 'db-ux';
2
2
  const BUILD = /* db-ux */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
 
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-BjIPMjCM.js';
2
- export { s as setNonce } from './index-BjIPMjCM.js';
1
+ import { b as bootstrapLazy } from './index-kHKR5QG5.js';
2
+ export { s as setNonce } from './index-kHKR5QG5.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -21,7 +21,7 @@ export interface GlobalProps {
21
21
  */
22
22
  autofocus?: boolean | string;
23
23
  /**
24
- * Allows overriding specific props on nested elements or internal component structure.
24
+ * Allows overriding specific props on nested elements or internal component structure. Currently only supports propOverrides.id
25
25
  */
26
26
  propOverrides?: PropOverridesType;
27
27
  }
@@ -1,4 +1,4 @@
1
- export declare const handleFrameworkEventAngular: (component: any, event: any, modelValue?: string) => void;
1
+ export declare const handleFrameworkEventAngular: (component: any, event: any, modelValue?: string, lastValue?: any) => void;
2
2
  export declare const handleFrameworkEventVue: (emit: (event: string, ...args: any[]) => void, event: any, modelValue?: string) => void;
3
3
  export declare const addResetEventListener: (element: any, resetFunction: (event: Event) => void, signal: AbortSignal) => void;
4
4
  export declare const addCheckedResetEventListener: (element: any, props: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@db-ux/wc-core-components",
4
- "version": "4.5.4",
4
+ "version": "4.6.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/wc-core-components",
3
- "version": "4.5.4",
3
+ "version": "4.6.0",
4
4
  "description": "Stencil components for @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@custom-elements-manifest/analyzer": "0.11.0",
38
- "@stencil/core": "4.43.2",
38
+ "@stencil/core": "4.43.3",
39
39
  "cem-plugin-expanded-types": "1.4.0",
40
40
  "custom-element-jet-brains-integration": "1.7.0",
41
41
  "custom-element-vs-code-integration": "1.5.0",
@@ -48,7 +48,7 @@
48
48
  "web-types": "./dist/web-types.json",
49
49
  "customElements": "dist/custom-elements.json",
50
50
  "dependencies": {
51
- "@db-ux/core-components": "4.5.4",
52
- "@db-ux/core-foundations": "4.5.4"
51
+ "@db-ux/core-components": "4.6.0",
52
+ "@db-ux/core-foundations": "4.6.0"
53
53
  }
54
54
  }
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s}from"./p-BjIPMjCM.js";import{l as h,f as a,g as e,h as d,k as l,b as n,r as o,a as r}from"./p-BdL-nI5y.js";import{h as c,d as v,s as u,u as f,f as b,e as m,l as w,c as p}from"./p-xkoBSP8R.js";import{c as y}from"./p-D5mInaY7.js";const x=class{constructor(s){i(this,s),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,a;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,c()&&(this._voiceOverFallback=null!==(a=this.validMessage)&&void 0!==a?a:l,v((()=>this._voiceOverFallback=""),1e3))):this._descByIds=u(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||h,c()&&(this._voiceOverFallback=this._invalidMessage,v((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,t,s;const h=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`textarea-${f()}`;this._id=h,this._messageId=h+a,this._validMessageId=h+e,this._invalidMessageId=h+d}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),h=a.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(a.name,`${e?`${e} `:""}${h}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||h}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+a;this._messageId=i,this._validMessageId=this._id+e,this._invalidMessageId=this._id+d,u(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){void 0!==this.value&&(this._value=this.value)}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),y(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-textarea"),this.resetIds(),this._invalidMessage=this.invalidMessage||h,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,h,a,e;return s("div",{key:"acb23abfb477beeceebdf88503a51a6aa90e268e",class:p("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":w(this.showRequiredAsterisk),"data-hide-label":w(this.showLabel)},s("label",{key:"03df1963dce7436d616df5f26c8fbff37243421f",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:r),s("textarea",{key:"b09e8a714ee44c18a2af738d90c6939309eb143c","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":w(null===(t=this.showResizer)||void 0===t||t),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:b(this.maxLength,this.maxlength),minLength:b(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(h=this.value)&&void 0!==h?h:this._value,"aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(e=this.placeholder)&&void 0!==e?e:n,rows:b(this.rows,o),cols:b(this.cols)}),u(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"c62d3e639536d955cc454b43c289b0ad11e9d7b3",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"430d5b39be9fa9eb29c7720f46be601fa1f25161","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}};export{x as db_textarea}
File without changes