@rededor/cura 1.5.0-alpha.1 → 1.5.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 (153) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/assets/icons/iconset-default-tmp.svg +26 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/app-globals-57c5b283.js +51 -0
  5. package/dist/cjs/app-globals-57c5b283.js.map +1 -0
  6. package/dist/cjs/{cura-accordion_13.cjs.entry.js → cura-accordion_12.cjs.entry.js} +26 -76
  7. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
  8. package/dist/cjs/cura-badge-pill.cjs.entry.js +9 -13
  9. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  10. package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
  11. package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
  12. package/dist/cjs/cura-button-transparent.cjs.entry.js +1 -1
  13. package/dist/cjs/cura-button-transparent.cjs.entry.js.map +1 -1
  14. package/dist/cjs/cura-dropdown-search.cjs.entry.js +32 -26
  15. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  16. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  17. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  18. package/dist/cjs/cura-modal.cjs.entry.js +73 -0
  19. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -0
  20. package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
  21. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
  22. package/dist/{esm/app-globals-e54ee4c3.js → cjs/cura-theme-module-14544f5f.js} +25 -54
  23. package/dist/cjs/cura-theme-module-14544f5f.js.map +1 -0
  24. package/dist/cjs/cura.cjs.js +3 -2
  25. package/dist/cjs/cura.cjs.js.map +1 -1
  26. package/dist/cjs/index.cjs.js +7 -0
  27. package/dist/cjs/index.cjs.js.map +1 -1
  28. package/dist/cjs/loader.cjs.js +3 -2
  29. package/dist/cjs/loader.cjs.js.map +1 -1
  30. package/dist/collection/api/modules/cura-theme-module.js +21 -8
  31. package/dist/collection/api/modules/cura-theme-module.js.map +1 -1
  32. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  33. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  34. package/dist/collection/assets/icons/iconset-default-tmp.svg +26 -0
  35. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  36. package/dist/collection/assets-raw/icons/default/accessibility2.svg +4 -0
  37. package/dist/collection/assets-raw/icons/default/accessibility3.svg +5 -0
  38. package/dist/collection/assets-raw/icons/default/accessibility4.svg +4 -0
  39. package/dist/collection/assets-raw/icons/default/elevator.svg +5 -0
  40. package/dist/collection/assets-raw/icons/default/parking.svg +3 -0
  41. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +10 -14
  42. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  43. package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
  44. package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
  45. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
  46. package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
  47. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
  48. package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
  49. package/dist/collection/components/cura-modal/cura-modal.css +0 -1
  50. package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
  51. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
  52. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +32 -26
  53. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  54. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -1
  55. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  56. package/dist/collection/components/forms/cura-select/cura-select.js +70 -8
  57. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  58. package/dist/collection/components/forms/cura-select/cura-select.stories.js +61 -15
  59. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
  60. package/dist/collection/index.js +5 -0
  61. package/dist/collection/index.js.map +1 -1
  62. package/dist/components/cura-badge-pill2.js +10 -14
  63. package/dist/components/cura-badge-pill2.js.map +1 -1
  64. package/dist/components/cura-button-outline.js +1 -1
  65. package/dist/components/cura-button-outline.js.map +1 -1
  66. package/dist/components/cura-button-transparent2.js +1 -1
  67. package/dist/components/cura-button-transparent2.js.map +1 -1
  68. package/dist/components/cura-button.js +1 -1
  69. package/dist/components/cura-button.js.map +1 -1
  70. package/dist/components/cura-dropdown-search.js +32 -26
  71. package/dist/components/cura-dropdown-search.js.map +1 -1
  72. package/dist/components/cura-icons-view.js +1 -1
  73. package/dist/components/cura-icons-view.js.map +1 -1
  74. package/dist/components/cura-input-text2.js +3 -1
  75. package/dist/components/cura-input-text2.js.map +1 -1
  76. package/dist/components/cura-modal.js +1 -1
  77. package/dist/components/cura-modal.js.map +1 -1
  78. package/dist/components/cura-select2.js +23 -8
  79. package/dist/components/cura-select2.js.map +1 -1
  80. package/dist/components/cura-stepper.js +1 -1
  81. package/dist/components/cura-stepper.js.map +1 -1
  82. package/dist/components/index.js +26 -9
  83. package/dist/components/index.js.map +1 -1
  84. package/dist/cura/cura.esm.js +1 -1
  85. package/dist/cura/cura.esm.js.map +1 -1
  86. package/dist/cura/index.esm.js +1 -1
  87. package/dist/cura/index.esm.js.map +1 -1
  88. package/dist/cura/{p-82b99090.js → p-1051a947.js} +2 -2
  89. package/dist/cura/p-1051a947.js.map +1 -0
  90. package/dist/cura/{p-04006a3e.entry.js → p-57ad7c56.entry.js} +2 -2
  91. package/dist/cura/{p-04006a3e.entry.js.map → p-57ad7c56.entry.js.map} +1 -1
  92. package/dist/cura/p-629c34fe.entry.js +2 -0
  93. package/dist/cura/p-629c34fe.entry.js.map +1 -0
  94. package/dist/cura/p-62a3056f.entry.js +2 -0
  95. package/dist/cura/p-62a3056f.entry.js.map +1 -0
  96. package/dist/cura/p-7f25f4dc.entry.js +2 -0
  97. package/dist/cura/p-7f25f4dc.entry.js.map +1 -0
  98. package/dist/cura/p-a4a1f6c6.entry.js +2 -0
  99. package/dist/cura/p-a4a1f6c6.entry.js.map +1 -0
  100. package/dist/cura/{p-cfbe2bce.entry.js → p-bd99ef4c.entry.js} +2 -2
  101. package/dist/cura/{p-cfbe2bce.entry.js.map → p-bd99ef4c.entry.js.map} +1 -1
  102. package/dist/cura/p-d21364b2.js +2 -0
  103. package/dist/cura/p-d21364b2.js.map +1 -0
  104. package/dist/cura/{p-0a133399.entry.js → p-dbab7864.entry.js} +2 -2
  105. package/dist/cura/{p-0a133399.entry.js.map → p-dbab7864.entry.js.map} +1 -1
  106. package/dist/cura/p-f30270f0.entry.js +2 -0
  107. package/dist/cura/p-f30270f0.entry.js.map +1 -0
  108. package/dist/esm/app-globals-036c3b80.js +49 -0
  109. package/dist/esm/app-globals-036c3b80.js.map +1 -0
  110. package/dist/esm/{cura-accordion_13.entry.js → cura-accordion_12.entry.js} +27 -76
  111. package/dist/esm/cura-accordion_12.entry.js.map +1 -0
  112. package/dist/esm/cura-badge-pill.entry.js +9 -13
  113. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  114. package/dist/esm/cura-button-outline.entry.js +1 -1
  115. package/dist/esm/cura-button-outline.entry.js.map +1 -1
  116. package/dist/esm/cura-button-transparent.entry.js +1 -1
  117. package/dist/esm/cura-button-transparent.entry.js.map +1 -1
  118. package/dist/esm/cura-dropdown-search.entry.js +32 -26
  119. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  120. package/dist/esm/cura-icons-view.entry.js +1 -1
  121. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  122. package/dist/esm/cura-modal.entry.js +69 -0
  123. package/dist/esm/cura-modal.entry.js.map +1 -0
  124. package/dist/esm/cura-stepper.entry.js +1 -1
  125. package/dist/esm/cura-stepper.entry.js.map +1 -1
  126. package/dist/{cjs/app-globals-f33ceef8.js → esm/cura-theme-module-b23f8ac8.js} +23 -56
  127. package/dist/esm/cura-theme-module-b23f8ac8.js.map +1 -0
  128. package/dist/esm/cura.js +3 -2
  129. package/dist/esm/cura.js.map +1 -1
  130. package/dist/esm/index.js +7 -1
  131. package/dist/esm/index.js.map +1 -1
  132. package/dist/esm/loader.js +3 -2
  133. package/dist/esm/loader.js.map +1 -1
  134. package/dist/types/api/modules/cura-theme-module.d.ts +8 -6
  135. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +1 -1
  136. package/dist/types/components/forms/cura-select/cura-select.d.ts +10 -0
  137. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +25 -0
  138. package/dist/types/components.d.ts +15 -0
  139. package/dist/types/index.d.ts +1 -0
  140. package/package.json +3 -3
  141. package/dist/cjs/app-globals-f33ceef8.js.map +0 -1
  142. package/dist/cjs/cura-accordion_13.cjs.entry.js.map +0 -1
  143. package/dist/cura/p-23fa2246.entry.js +0 -2
  144. package/dist/cura/p-23fa2246.entry.js.map +0 -1
  145. package/dist/cura/p-2af6216a.entry.js +0 -2
  146. package/dist/cura/p-2af6216a.entry.js.map +0 -1
  147. package/dist/cura/p-46eaee31.entry.js +0 -2
  148. package/dist/cura/p-46eaee31.entry.js.map +0 -1
  149. package/dist/cura/p-7ba80d78.entry.js +0 -2
  150. package/dist/cura/p-7ba80d78.entry.js.map +0 -1
  151. package/dist/cura/p-82b99090.js.map +0 -1
  152. package/dist/esm/app-globals-e54ee4c3.js.map +0 -1
  153. package/dist/esm/cura-accordion_13.entry.js.map +0 -1
@@ -230,7 +230,7 @@ const CuraButton = class {
230
230
  render() {
231
231
  const symbolColor = this.getSymbolColor();
232
232
  const labelSize = curaButton_definitions.labelSizes[this.size] || curaButton_definitions.labelSizes["default"];
233
- return (index.h(index.Host, { key: '07b87d98fb398bc2897e666dc8cd54734f20734d' }, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("cura-label", { class: "label", size: labelSize, lineHeight: '105%', color: symbolColor }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("cura-label", { class: "label", size: labelSize, lineHeight: '105%', color: symbolColor }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: symbolColor })))));
233
+ return (index.h(index.Host, { key: '07b87d98fb398bc2897e666dc8cd54734f20734d' }, this.href ? (index.h("a", { href: this.disabled ? '' : this.href, target: this.target, class: this.getClasses(), style: this.styles, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("cura-label", { class: "label", size: labelSize, lineHeight: 'normal', color: symbolColor }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: symbolColor }))) : (index.h("button", { class: this.getClasses(), style: this.styles, disabled: this.disabled || null, onClick: (e) => this.handleClick(e), onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), type: this.type }, index.h("span", { class: "button-container" }, this.getIcon(), index.h("cura-label", { class: "label", size: labelSize, lineHeight: 'normal', color: symbolColor }, index.h("slot", null))), index.h("cura-loader-circle", { size: this.size, color: symbolColor })))));
234
234
  }
235
235
  static get formAssociated() { return true; }
236
236
  static get watchers() { return {
@@ -4229,6 +4229,8 @@ const CuraInputText = class {
4229
4229
  }
4230
4230
  }
4231
4231
  initializeAdvancedMask() {
4232
+ if (!this.inputRef)
4233
+ return;
4232
4234
  try {
4233
4235
  const config = typeof this.maskAdvanced === 'string' ? JSON.parse(this.maskAdvanced) : this.maskAdvanced;
4234
4236
  this.maskedInput = IMask(this.inputRef, config);
@@ -4299,7 +4301,7 @@ const CuraInputText = class {
4299
4301
  e.preventDefault();
4300
4302
  }
4301
4303
  render() {
4302
- return (index.h(index.Host, { key: '7e2ba6e0ecae174b2ecc2592264d2d836b4ec63f' }, index.h("div", { key: '0ed1e0e943b1b9b14c09f4b5a3f7bbe7211205c4', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, index.h("div", { key: '5eb22b6c40ada7afb122d49fc997c661848edd7d', class: "input-wrapper" }, this.label && (index.h("cura-label", { key: '3d1b76bae46fe021dcd4b8ccd6dba663b0d97f91', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && index.h("span", { key: 'debbb27cc068069717077a2437ca239e700d688d', class: "required" }, "* "))), index.h("div", { key: '5a4884cfefd1218a625f77e640a5b372c5b453ad', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), index.h("input", { key: '8ee9aa8d28c522a22b1b10701569bfe1029ad64a', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (index.h("cura-icon", { key: 'f4839d9819657d2599c9d68b947624fd543fef36', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onClick: () => this.handleClearInput() })), this.isLoading && index.h("cura-loader-circle", { key: '017c815c741c8113d9992ba3eefdda740f2a885d', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4304
+ return (index.h(index.Host, { key: '0aebf7d545af0e2eec1f542e5545ef34d0356e33' }, index.h("div", { key: '22e428a2706273d1613e39f860a721a73cab6d03', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, index.h("div", { key: '8ef0bc3f5bf3427abdbd247a8c78b722eaaca541', class: "input-wrapper" }, this.label && (index.h("cura-label", { key: '4aef20d0c2880ed38c1821e2690829a31fe7fea8', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && index.h("span", { key: 'a3bb15165ae1ffedae59a32a1e299c9a36ad9b2c', class: "required" }, "* "))), index.h("div", { key: '0b12a41f21a4c26273390dd15f362a5baccb0f2d', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), index.h("input", { key: 'da03ef422267592fa3c732cb553e16fd1209bdf0', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (index.h("cura-icon", { key: '7d46e420487a37b6fa90d93b25ba8d84d9197e43', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onClick: () => this.handleClearInput() })), this.isLoading && index.h("cura-loader-circle", { key: '2ecef2f802b1807f214a9ca72099b690189898fd', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4303
4305
  }
4304
4306
  static get formAssociated() { return true; }
4305
4307
  static get watchers() { return {
@@ -4404,70 +4406,6 @@ const CuraLoaderCircle = class {
4404
4406
  };
4405
4407
  CuraLoaderCircle.style = CuraLoaderCircleStyle0;
4406
4408
 
4407
- const curaModalCss = ":host{display:block}.modal{position:fixed;height:100%;width:100%;top:var(--top-offset);bottom:var(--bottom-offset);left:var(--left-offset);right:var(--right-offset);z-index:-1;margin-top:var(--offset-top)}.modal.open{z-index:var(--zIndex)}.modal.open .backdrop,.modal.open .wrapper{opacity:1;visibility:visible;animation:fadeIn 0.3s ease-out}.container{display:flex;align-items:center;justify-content:center}.backdrop,.wrapper{opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.backdrop{background-color:var(--background-color);z-index:calc(var(--zIndex) - 10);animation:fadeIn 0.3s ease-out}.wrapper{position:fixed;background-color:var(--neutral-white);border:2px solid var(--neutral-light);border-radius:calc(var(--base-spacing) * 3px);width:700px;max-width:600px;min-width:200px;padding:0px calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px);z-index:var(--zIndex);box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12));transform:scale(0.95);transition:transform 0.3s ease-out, opacity 0.3s ease, visibility 0.3s ease}.wrapper ::slotted(*){max-height:80vh;overflow:auto;padding-right:calc(var(--base-spacing) * 5px)}.modal.open .wrapper{transform:scale(1);opacity:1;visibility:visible}.close{justify-self:flex-end;padding-top:calc(var(--base-spacing) * 4px);background:none;border:none;cursor:pointer}.close.mobile{display:none}.close.desktop{display:flex}@media (max-width: 768px){.wrapper{position:fixed;bottom:0px;width:80%;padding-top:calc(var(--base-spacing) * 4px);padding-bottom:0px;border-radius:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px) 0px 0px;border-bottom:none}.close{align-items:center;border-top:1px dashed var(--neutral-light);margin-top:calc(var(--base-spacing) * 4px);padding:calc(var(--base-spacing) * 4px) 0px;justify-content:center;width:100%}.close.mobile{display:flex;gap:calc(var(--base-spacing) * 2px)}.close.desktop{display:none}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}";
4408
- const CuraModalStyle0 = curaModalCss;
4409
-
4410
- const CuraModal = class {
4411
- constructor(hostRef) {
4412
- index.registerInstance(this, hostRef);
4413
- this.modalClose = index.createEvent(this, "modalClose", 7);
4414
- this.handleClose = () => {
4415
- this.modalClose.emit();
4416
- this.open = false;
4417
- };
4418
- this.open = false;
4419
- this.background = 'light';
4420
- this.top = 0;
4421
- this.bottom = 0;
4422
- this.left = 0;
4423
- this.right = 0;
4424
- this.mobileCloseLabel = 'Fechar';
4425
- this.zindex = '100';
4426
- this.styles = {};
4427
- }
4428
- setColors() {
4429
- const backgroundTheme = {
4430
- dark: window.CuraAPI.theme.colors.getColor('neutral-black', 0.4),
4431
- light: window.CuraAPI.theme.colors.getColor('primary-darker', 0.8),
4432
- };
4433
- this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': backgroundTheme[this.background] });
4434
- }
4435
- setOffset(name, value) {
4436
- this.styles = Object.assign(Object.assign({}, this.styles), { [`--${name}-offset`]: `${value}px` });
4437
- }
4438
- setTop() {
4439
- this.setOffset('top', this.top);
4440
- }
4441
- setBottom() {
4442
- this.setOffset('bottom', this.bottom);
4443
- }
4444
- setLeft() {
4445
- this.setOffset('left', this.left);
4446
- }
4447
- setRight() {
4448
- this.setOffset('right', this.right);
4449
- }
4450
- connectedCallback() {
4451
- this.styles = Object.assign(Object.assign({}, this.styles), { '--neutral-white': window.CuraAPI.theme.colors.getColor('neutral-white'), '--neutral-light': window.CuraAPI.theme.colors.getColor('neutral-light'), '--base-spacing': window.CuraAPI.theme.spacing.getSpacing() });
4452
- this.setColors();
4453
- this.setTop();
4454
- this.setBottom();
4455
- this.setLeft();
4456
- this.setRight();
4457
- }
4458
- render() {
4459
- return (index.h(index.Host, { key: '50f4146aed5392ae16803fb060d4921a5e8a3271', role: "dialog", "aria-modal": "true", style: { '--zIndex': this.zindex } }, index.h("div", { key: '149e99a4b8b479515ed3d67c5c8aea08d4d96d1c', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, index.h("div", { key: 'f32f7f7e16475c51babf95e1ca5f4fea449c1bb0', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.handleClose }), index.h("div", { key: '183f7ab8f2cee8106795f6104c38a2c93272387f', class: "wrapper" }, index.h("button", { key: '28778c8120c92dfcae0443dccd21f55a204bd82e', class: "close desktop", onClick: this.handleClose }, index.h("cura-icon", { key: 'a847de5c1314ea1460673870334f3f98e98f1cf9', name: "close", color: "error-dark", size: "small" })), index.h("slot", { key: 'e08b556b7232425c2b83a21dac75d30fb4361a83' }), index.h("button", { key: 'e736a95f878ff5a2ad6897d9140fd74b26939445', class: "close mobile", onClick: this.handleClose }, index.h("cura-icon", { key: '9eaeaca6f4ea9d3cde5fd44e108de389c727f991', name: "close", color: "error-dark", size: "16" }), index.h("cura-paragraph", { key: '2476b85e5dd7d6092d3d1d1714ee4a79b73b12d0', color: "error-dark", size: "small", marginBlock: "0" }, this.mobileCloseLabel))))));
4460
- }
4461
- static get watchers() { return {
4462
- "background": ["setColors"],
4463
- "top": ["setTop"],
4464
- "bottom": ["setBottom"],
4465
- "left": ["setLeft"],
4466
- "right": ["setRight"]
4467
- }; }
4468
- };
4469
- CuraModal.style = CuraModalStyle0;
4470
-
4471
4409
  const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
4472
4410
  const CuraPageTemplateStyle0 = curaPageTemplateCss;
4473
4411
 
@@ -4560,6 +4498,7 @@ const CuraSelect = class {
4560
4498
  constructor(hostRef) {
4561
4499
  index.registerInstance(this, hostRef);
4562
4500
  this.selected = index.createEvent(this, "selected", 7);
4501
+ this.searchTermInput = index.createEvent(this, "searchTermInput", 7);
4563
4502
  if (hostRef.$hostElement$["s-ei"]) {
4564
4503
  this.internals = hostRef.$hostElement$["s-ei"];
4565
4504
  }
@@ -4636,10 +4575,12 @@ const CuraSelect = class {
4636
4575
  this.value = '';
4637
4576
  this.mode = 'default';
4638
4577
  this.size = 'medium';
4578
+ this.iconName = undefined;
4639
4579
  this.status = 'default';
4640
4580
  this.disabled = false;
4641
4581
  this.required = false;
4642
4582
  this.searchBehavior = false;
4583
+ this.caseSensitive = true;
4643
4584
  this.isHovered = false;
4644
4585
  this.isFocused = false;
4645
4586
  this.isOpen = false;
@@ -4654,13 +4595,23 @@ const CuraSelect = class {
4654
4595
  * Filters the options based on the current input value.
4655
4596
  */
4656
4597
  filterOptions(newText) {
4598
+ this.searchTermInput.emit(newText);
4657
4599
  if (!this.isOpen || !this.searchBehavior) {
4658
4600
  return;
4659
4601
  }
4602
+ const removeAccents = (str) => {
4603
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
4604
+ };
4605
+ let searchTerm = newText;
4606
+ if (!this.caseSensitive) {
4607
+ searchTerm = removeAccents(searchTerm).toLocaleLowerCase();
4608
+ }
4660
4609
  this.options.forEach(option => {
4661
- var _a;
4662
- const optionValue = ((_a = option.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
4663
- const isVisible = optionValue.includes(newText.toLocaleLowerCase());
4610
+ let optionValue = option.textContent || '';
4611
+ if (!this.caseSensitive) {
4612
+ optionValue = removeAccents(optionValue === null || optionValue === void 0 ? void 0 : optionValue.toLowerCase());
4613
+ }
4614
+ const isVisible = optionValue.includes(searchTerm);
4664
4615
  option.style.display = isVisible ? 'block' : 'none';
4665
4616
  });
4666
4617
  }
@@ -4838,19 +4789,19 @@ const CuraSelect = class {
4838
4789
  * Renders the icon based on the component's status.
4839
4790
  */
4840
4791
  renderIcon() {
4841
- if (this.status === 'default')
4792
+ if (this.status === 'default' && !this.iconName)
4842
4793
  return null;
4843
- const icon = { success: 'checkCircle', error: 'alertCircle' }[this.status];
4794
+ const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];
4844
4795
  return index.h("cura-icon", { class: "feedback-icon", name: icon, iconset: "default", size: this.size === 'large' ? 20 : 16, color: this.getColor('icon'), style: this.styles });
4845
4796
  }
4846
4797
  render() {
4847
- return (index.h(index.Host, { key: 'd0433e214411ca390ff69ffbfdc2d8d3f6364b9c', style: this.styles }, index.h("div", { key: 'e644f2ff6f37867ab5d6737f99d772c72fdf17b9', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: '7f382f95d58b6e90b9e7f82ade4d55a4ae74a952', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: 'e782b69050063221f9f8c011c753f03bff1b2fed', class: "required" }, "* "))), index.h("div", { key: 'b9b1c4a4ad3b19bbec7640bbbe7921fc2e2dc2a9', class: {
4798
+ return (index.h(index.Host, { key: 'c4d3b518ddf6b9498e3a038b42d96cc36ea5b9af', style: this.styles }, index.h("div", { key: 'b469ec6460df4faa9dbf33ae46efd25b16e8dede', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: 'b1e96f454e136f74a34d3fe2ad915a76b8892383', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: 'f6df4c9fd66179b157545354c9d7bce3a1965383', class: "required" }, "* "))), index.h("div", { key: '3c99013ba59cbc7520fcd9e54e4911be88e257e8', class: {
4848
4799
  'cura-input-field': true,
4849
4800
  'open': this.isOpen,
4850
- } }, this.renderIcon(), index.h("input", { key: 'f107ce1837c7eb5e2be8e21073bc514861e36de5', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), index.h("button", { key: '2d535a37f67c28eee7a868de1d5fe5297aa91a1d', class: "up-down-button" }, index.h("cura-icon", { key: '9292fb9f72d3c4f67b0cffaafdc3c0cceefb5b07', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), index.h("cura-label", { key: '344572553d1920a66cab43912cae5f24200789c5', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: 'a2dd9204ad33c6fb2518dca1bfaa18cc51c19d2a' })), this.isOpen && (index.h("div", { key: '73fd79fd3073b0a9a4537e104e9e1721129da480', class: {
4801
+ } }, this.renderIcon(), index.h("input", { key: '5c4cca3aa11ca5a43679551ef0db5d3b4a2672c1', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), index.h("button", { key: '0e4ae1fc33090cb1c2a5f6616302262093c709f3', class: "up-down-button" }, index.h("cura-icon", { key: '7aa46c48d670725d6010e00ff74772dd76f04358', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), index.h("cura-label", { key: 'b37bbce2d092b368509778cb39e830fbfba40107', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: 'b8090f03acc7d34e75088cdd8b7f375b2be21aaf' })), this.isOpen && (index.h("div", { key: '4d279e833a3c4311972b11c259d616b7480fc5b5', class: {
4851
4802
  menu: true,
4852
4803
  open: this.isOpen,
4853
- } }, index.h("slot", { key: 'dfd5a1f698dddeab8efec68beb5ff038024571dd', name: "option" }))))));
4804
+ } }, index.h("slot", { key: '0c20c0bbfb9ed727825bb6cc7e06ab671350d37b', name: "option" }))))));
4854
4805
  }
4855
4806
  static get formAssociated() { return true; }
4856
4807
  get host() { return index.getElement(this); }
@@ -4917,10 +4868,9 @@ exports.cura_icon = CuraIcon;
4917
4868
  exports.cura_input_text = CuraInputText;
4918
4869
  exports.cura_label = CuraLabel;
4919
4870
  exports.cura_loader_circle = CuraLoaderCircle;
4920
- exports.cura_modal = CuraModal;
4921
4871
  exports.cura_page_template = CuraPageTemplate;
4922
4872
  exports.cura_paragraph = CuraParagraph;
4923
4873
  exports.cura_select = CuraSelect;
4924
4874
  exports.cura_select_option = CuraSelectOption;
4925
4875
 
4926
- //# sourceMappingURL=cura-accordion_13.cjs.entry.js.map
4876
+ //# sourceMappingURL=cura-accordion_12.cjs.entry.js.map