bromcom-ui 2.8.0-rc.10-t → 2.8.0-rc.10-b

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 (179) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-f0c860b7.entry.js → p-001d0a5e.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-661e832b.entry.js → p-01cb4c20.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-6a666eb5.entry.js → p-046c2062.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-9ecf7bb1.entry.js → p-1227bb23.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-3cb96416.entry.js → p-265d1408.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-db5a6f38.entry.js → p-2c341162.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-ebe584b5.entry.js → p-2edba12b.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-6f899fab.entry.js → p-312cdd12.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-ef779444.entry.js → p-356cfda7.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-d660e8ef.js → p-3786e463.js} +1 -1
  12. package/dist/bromcom-ui/{p-eff80213.entry.js → p-3c5e6763.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-5df6d04b.entry.js → p-481aa5a6.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-4ec63b67.entry.js → p-498bda91.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-9080f0e4.entry.js → p-49dd18b7.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-9c611ee5.entry.js → p-4bdd426b.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-b532779c.js → p-4c237833.js} +1 -1
  18. package/dist/bromcom-ui/{p-bd0bc814.entry.js → p-4dee4e97.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-49ae73e6.entry.js → p-521dfe59.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-e963ae46.entry.js → p-57b45f48.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-401a844f.entry.js → p-5fcfb958.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-1c4ecf16.entry.js → p-6203e140.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-4ee12aa6.entry.js → p-636bebef.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-63333219.entry.js → p-6a73d76c.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-e3290897.entry.js → p-6c911509.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-45331c04.entry.js → p-77de400a.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-5a16f526.entry.js → p-79cc9d2a.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-9ddab953.entry.js → p-7e158552.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-253379fe.entry.js → p-83058c02.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-bd47a899.entry.js → p-85c08dc1.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-85c7715d.entry.js → p-86c19ff5.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-a61053cc.entry.js → p-8d6af595.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-09f96e34.entry.js → p-8ebae71b.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-b890c8af.entry.js → p-8fb862b7.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-8e560b1f.js → p-953efdcf.js} +1 -1
  36. package/dist/bromcom-ui/{p-8d1326db.entry.js → p-96263931.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-e8412b2c.entry.js → p-9862f4d3.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-c72ff436.entry.js → p-9e4b3f65.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-a17eb3b8.entry.js +5 -0
  40. package/dist/bromcom-ui/p-a303d242.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-7b25e0f4.entry.js → p-b2146e4c.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-038d839f.entry.js → p-b7de0ac1.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-22d8f233.entry.js → p-bda65c10.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-8da1942f.js → p-c3bee606.js} +1 -1
  45. package/dist/bromcom-ui/{p-a7c1b32b.entry.js → p-c8c94c45.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-ac8b1785.entry.js → p-c8f3fa30.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-1c649e2f.entry.js → p-cccb7802.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-da04b90a.entry.js → p-cff2fa01.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-0c65fb37.js → p-d28b4746.js} +1 -1
  50. package/dist/bromcom-ui/{p-789ab63f.js → p-d4365eea.js} +1 -1
  51. package/dist/bromcom-ui/{p-7eb339fc.entry.js → p-d9e68752.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-088283c1.entry.js → p-de453122.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-298914dd.entry.js → p-e0ea2dc0.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-ec5f263d.entry.js → p-e7153a63.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-04ed9228.js → p-ec3fcf36.js} +1 -1
  56. package/dist/bromcom-ui/{p-65070ed4.entry.js → p-f25b9bc4.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-fd47bac8.entry.js → p-f4c1fc7c.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-a32bfefb.entry.js → p-f73ccf86.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-a9420886.entry.js → p-fb068efe.entry.js} +1 -1
  60. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  61. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  62. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  64. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-button_7.cjs.entry.js +4 -4
  67. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  72. package/dist/cjs/bcm-colorful_2.cjs.entry.js +3 -3
  73. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  74. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  77. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  79. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  80. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-input.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  84. package/dist/cjs/bcm-list.cjs.entry.js +5 -5
  85. package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  87. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  88. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  90. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  91. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
  96. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-search.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
  101. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
  103. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
  104. package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
  105. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  108. package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
  109. package/dist/cjs/{generate-c2f702e3.js → generate-2b63daea.js} +1 -1
  110. package/dist/cjs/{input-template-b969af2c.js → input-template-a3af7e0b.js} +1 -1
  111. package/dist/cjs/{json-parse-decarator-d68e062e.js → json-parse-decarator-8e88d53b.js} +1 -1
  112. package/dist/cjs/{number-helper-d2ece9d9.js → number-helper-8f3fe707.js} +1 -1
  113. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  114. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  115. package/dist/cjs/{stepper-states-f194e442.js → stepper-states-272583bb.js} +1 -1
  116. package/dist/cjs/{tooltip-helper-231fc602.js → tooltip-helper-adebe5d5.js} +3 -3
  117. package/dist/cjs/{validators-8f5d2703.js → validators-8e1a9fcb.js} +1 -1
  118. package/dist/components/generate.js +1 -1
  119. package/dist/esm/bcm-accordion.entry.js +1 -1
  120. package/dist/esm/bcm-alert.entry.js +1 -1
  121. package/dist/esm/bcm-attendance.entry.js +1 -1
  122. package/dist/esm/bcm-avatar_2.entry.js +3 -3
  123. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  124. package/dist/esm/bcm-button-group.entry.js +1 -1
  125. package/dist/esm/bcm-button_7.entry.js +4 -4
  126. package/dist/esm/bcm-card.entry.js +1 -1
  127. package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
  128. package/dist/esm/bcm-chip.entry.js +1 -1
  129. package/dist/esm/bcm-collapse.entry.js +1 -1
  130. package/dist/esm/bcm-color-input.entry.js +3 -3
  131. package/dist/esm/bcm-colorful_2.entry.js +3 -3
  132. package/dist/esm/bcm-date-picker.entry.js +1 -1
  133. package/dist/esm/bcm-datetime-picker.entry.js +1 -1
  134. package/dist/esm/bcm-default.entry.js +1 -1
  135. package/dist/esm/bcm-drawer.entry.js +3 -3
  136. package/dist/esm/bcm-dropdown.entry.js +2 -2
  137. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  138. package/dist/esm/bcm-form-2.entry.js +1 -1
  139. package/dist/esm/bcm-input-custom.entry.js +1 -1
  140. package/dist/esm/bcm-input.entry.js +4 -4
  141. package/dist/esm/bcm-item.entry.js +1 -1
  142. package/dist/esm/bcm-items.entry.js +1 -1
  143. package/dist/esm/bcm-list.entry.js +5 -5
  144. package/dist/esm/bcm-menu.entry.js +4 -4
  145. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  146. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  147. package/dist/esm/bcm-modal-2.entry.js +3 -3
  148. package/dist/esm/bcm-modal.entry.js +1 -1
  149. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  150. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  151. package/dist/esm/bcm-popover.entry.js +3 -3
  152. package/dist/esm/bcm-progress.entry.js +1 -1
  153. package/dist/esm/bcm-radio-group.entry.js +3 -3
  154. package/dist/esm/bcm-radio.entry.js +3 -3
  155. package/dist/esm/bcm-range.entry.js +1 -1
  156. package/dist/esm/bcm-search.entry.js +2 -2
  157. package/dist/esm/bcm-skeleton.entry.js +1 -1
  158. package/dist/esm/bcm-step.entry.js +2 -2
  159. package/dist/esm/bcm-stepper.entry.js +4 -4
  160. package/dist/esm/bcm-switch.entry.js +1 -1
  161. package/dist/esm/bcm-tab-group.entry.js +3 -3
  162. package/dist/esm/bcm-tab-item-header.entry.js +3 -3
  163. package/dist/esm/bcm-tab-item.entry.js +3 -3
  164. package/dist/esm/bcm-tag.entry.js +2 -2
  165. package/dist/esm/bcm-textarea.entry.js +2 -2
  166. package/dist/esm/bcm-time-picker.entry.js +1 -1
  167. package/dist/esm/bcm-toast.entry.js +1 -1
  168. package/dist/esm/{generate-21c7043c.js → generate-4acc87fc.js} +1 -1
  169. package/dist/esm/{input-template-141596b2.js → input-template-438c8a7c.js} +1 -1
  170. package/dist/esm/{json-parse-decarator-78f84e8b.js → json-parse-decarator-016aea15.js} +1 -1
  171. package/dist/esm/{number-helper-a47d3848.js → number-helper-4668597d.js} +1 -1
  172. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  173. package/dist/esm/old-bcm-popover.entry.js +1 -1
  174. package/dist/esm/{stepper-states-96b18623.js → stepper-states-18d8bc88.js} +1 -1
  175. package/dist/esm/{tooltip-helper-df2fb1c8.js → tooltip-helper-8941d860.js} +3 -3
  176. package/dist/esm/{validators-cff5686e.js → validators-4aa8b8d2.js} +1 -1
  177. package/package.json +1 -1
  178. package/dist/bromcom-ui/p-8d5b728c.entry.js +0 -5
  179. package/dist/bromcom-ui/p-effb6652.entry.js +0 -5
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,h as s,H as a,g as o}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as e}from"./p-b532779c.js";import"./p-0c65fb37.js";import"./p-8d0ca8c2.js";import"./p-8da1942f.js";import"./p-7e44e6b5.js";import{d as l}from"./p-8c018ae0.js";import{a as r}from"./p-a429e85b.js";import{C as h}from"./p-c8e13fd7.js";import{c}from"./p-d65a1e21.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{I as d}from"./p-c23b6240.js";import"./p-436364c8.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const n=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this._id=e.UID(),this.label=void 0,this.name=void 0,this.value=null,this.defaultValue=void 0,this.size=r.Size.medium,this.disabled=void 0,this.hidden=!1,this.required=!1,this.gap=void 0,this.direction=r.Direction.horizontal,this.fullWidth=!1,this.items=[],this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=r.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}get radios(){return Array.from(this.el.querySelectorAll("bcm-radio"))}get Items(){return this.items}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}updateValue(){var t,i,s;this.value=null!==(s=null===(i=null===(t=this.radios)||void 0===t?void 0:t.find((t=>t.checked)))||void 0===i?void 0:i.value)&&void 0!==s?s:null}setRadioUpdate(){var t;null===(t=this.radios)||void 0===t||t.forEach((t=>{t.disabled=this.disabled||t.disabled,t.size=this.size,this.defaultValue&&(t.checked=t.value==this.defaultValue)}))}watchDisabled(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.disabled=t))}watchDefaultValue(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.checked=i.value==t)),this.updateValue(),this.change.emit(this.value)}componentWillLoad(){this.setRadioUpdate(),this.updateValue()}handleChange(t){var i,s;t.stopPropagation(),t.preventDefault();const a=null!==(i=t.target.checked)&&void 0!==i&&i;null===(s=this.radios)||void 0===s||s.forEach((i=>{i.checked=i.id==t.target.id&&!a})),this.updateValue(),this.change.emit(this.value)}async setClear(){var t;this.value=null,null===(t=this.radios)||void 0===t||t.forEach((t=>{t.checked=!1}))}async resetCaption(){return await l(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await l(10),Promise.resolve()}async check(t,i=!0){var s;null===(s=this.radios)||void 0===s||s.forEach((s=>{s.checked=(s.id==t||s.value==t)&&i})),this.updateValue(),this.change.emit(this.value)}async get(){return this.value}async set(t){await this.check(t)}async getValue(){return this.value}render(){var t,i;const{direction:o,fullWidth:e,gap:l,label:d,size:n,required:p,disabled:u,caption:v,captionError:f,captionType:m,noCaption:b}=this;return s(a,{role:"radio-group",class:"tw-mb-2 tw-flex tw-flex-col"},d&&s("bcm-label",{type:m,value:d,required:p}),s("div",{class:c("tw-flex tw-flex-wrap",o==r.Direction.horizontal?"tw-flex-row":"tw-flex-col",e&&"tw-w-full"),style:{gap:l}},s("slot",null),(null===(t=this.Items)||void 0===t?void 0:t.length)>0&&(null===(i=this.Items)||void 0===i?void 0:i.map((t=>s("bcm-radio",{id:t.id,value:t.value,disabled:u||t.disabled,checked:t.checked,color:t.color,size:n},t.label))))),s(h,{noCaption:b,captionType:m,captionError:f,caption:v}))}get el(){return o(this)}static get watchers(){return{disabled:["watchDisabled"],defaultValue:["watchDefaultValue"]}}};!function(t,i,s,a){var o,e=arguments.length,l=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(l=(e<3?o(l):e>3?o(i,s,l):o(i,s))||l);e>3&&l&&Object.defineProperty(i,s,l)}([d()],n.prototype,"el",void 0);export{n as bcm_radio_group}
5
+ import{r as t,c as i,h as s,H as a,g as e}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as o}from"./p-4c237833.js";import"./p-d28b4746.js";import"./p-8d0ca8c2.js";import"./p-c3bee606.js";import"./p-7e44e6b5.js";import{d as l}from"./p-8c018ae0.js";import{a as r}from"./p-a429e85b.js";import{C as h}from"./p-c8e13fd7.js";import{c}from"./p-d65a1e21.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{I as d}from"./p-c23b6240.js";import"./p-436364c8.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const n=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this._id=o.UID(),this.label=void 0,this.name=void 0,this.value=null,this.defaultValue=void 0,this.size=r.Size.medium,this.disabled=void 0,this.hidden=!1,this.required=!1,this.gap=void 0,this.direction=r.Direction.horizontal,this.fullWidth=!1,this.items=[],this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=r.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}get radios(){return Array.from(this.el.querySelectorAll("bcm-radio"))}get Items(){return this.items}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}updateValue(){var t,i,s;this.value=null!==(s=null===(i=null===(t=this.radios)||void 0===t?void 0:t.find((t=>t.checked)))||void 0===i?void 0:i.value)&&void 0!==s?s:null}setRadioUpdate(){var t;null===(t=this.radios)||void 0===t||t.forEach((t=>{t.disabled=this.disabled||t.disabled,t.size=this.size,this.defaultValue&&(t.checked=t.value==this.defaultValue)}))}watchDisabled(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.disabled=t))}watchDefaultValue(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.checked=i.value==t)),this.updateValue(),this.change.emit(this.value)}componentWillLoad(){this.setRadioUpdate(),this.updateValue()}handleChange(t){var i,s;t.stopPropagation(),t.preventDefault();const a=null!==(i=t.target.checked)&&void 0!==i&&i;null===(s=this.radios)||void 0===s||s.forEach((i=>{i.checked=i.id==t.target.id&&!a})),this.updateValue(),this.change.emit(this.value)}async setClear(){var t;this.value=null,null===(t=this.radios)||void 0===t||t.forEach((t=>{t.checked=!1}))}async resetCaption(){return await l(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await l(10),Promise.resolve()}async check(t,i=!0){var s;null===(s=this.radios)||void 0===s||s.forEach((s=>{s.checked=(s.id==t||s.value==t)&&i})),this.updateValue(),this.change.emit(this.value)}async get(){return this.value}async set(t){await this.check(t)}async getValue(){return this.value}render(){var t,i;const{direction:e,fullWidth:o,gap:l,label:d,size:n,required:p,disabled:u,caption:v,captionError:m,captionType:f,noCaption:b}=this;return s(a,{role:"radio-group",class:"tw-mb-2 tw-flex tw-flex-col"},d&&s("bcm-label",{type:f,value:d,required:p}),s("div",{class:c("tw-flex tw-flex-wrap",e==r.Direction.horizontal?"tw-flex-row":"tw-flex-col",o&&"tw-w-full"),style:{gap:l}},s("slot",null),(null===(t=this.Items)||void 0===t?void 0:t.length)>0&&(null===(i=this.Items)||void 0===i?void 0:i.map((t=>s("bcm-radio",{id:t.id,value:t.value,disabled:u||t.disabled,checked:t.checked,color:t.color,size:n},t.label))))),s(h,{noCaption:b,captionType:f,captionError:m,caption:v}))}get el(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],defaultValue:["watchDefaultValue"]}}};!function(t,i,s,a){var e,o=arguments.length,l=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(l=(o<3?e(l):o>3?e(i,s,l):e(i,s))||l);o>3&&l&&Object.defineProperty(i,s,l)}([d()],n.prototype,"el",void 0);export{n as bcm_radio_group}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-da1055cb.js";import{I as n}from"./p-c23b6240.js";import{G as r,s as h}from"./p-b532779c.js";import{S as p}from"./p-8d0ca8c2.js";import{B as c}from"./p-a429e85b.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const l=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX"];const x=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=c.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>l.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{x as bcm_form_2}
5
+ import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-da1055cb.js";import{I as n}from"./p-c23b6240.js";import{G as r,s as h}from"./p-4c237833.js";import{S as p}from"./p-8d0ca8c2.js";import{B as c}from"./p-a429e85b.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const l=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX"];const x=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=c.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>l.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{x as bcm_form_2}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{s}from"./p-b532779c.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
5
+ import{s}from"./p-4c237833.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as n}from"./p-da1055cb.js";import{d as e}from"./p-3fac58f7.js";import{B as s}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import{s as t}from"./p-b532779c.js";const i=({elementType:i,rows:o,id:c,internalId:r,type:l,placeholder:p,value:u,size:f,pattern:d,unit:b,unitPrefix:m,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:B,handleClear:D,steps:O,ref:P,handleBlur:V,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=t((()=>u),""),u=y?u:u+(u&&(null==b?void 0:b.length)>0?" "+b:"");const A="color"===(l=(null==b?void 0:b.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=a("bcm-input__container",q===s.HtmlElementType.textarea&&a("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&a("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==b?void 0:b.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==b?void 0:b.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=a(K,"unit-prefix");return n("div",{class:G,id:c+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),m&&n("span",{class:N},m),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:c+"-input","bcm-internal-id":r,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>P(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),V(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>D(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>B()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>O("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>O("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}
5
+ import{h as n}from"./p-da1055cb.js";import{d as e}from"./p-3fac58f7.js";import{B as s}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import{s as t}from"./p-4c237833.js";const i=({elementType:i,rows:o,id:c,internalId:r,type:l,placeholder:p,value:u,size:f,pattern:d,unit:m,unitPrefix:b,maxLength:x,disabled:w,clearable:h,focused:y,readonly:v,isPasswordVisible:C,passwordToggle:g,noDefaultIcon:j,inValid:_,captionType:k,resize:z,autocomplete:I,_suffix:T,_prefix:L,changePasswordVisibility:B,handleClear:D,steps:O,ref:P,handleBlur:V,handleFocus:F,handleInput:H,handleChange:M,isEyeDropperSupported:E,eyeDropper:S})=>{const q=s.HtmlElementType[i]||s.HtmlElementType.input;l="password"===l&&C?"text":l,u=t((()=>u),""),u=y?u:u+(u&&(null==m?void 0:m.length)>0?" "+m:"");const A="color"===(l=(null==m?void 0:m.length)>0&&!y?"text":l);l="color"===l?"text":l;var G=a("bcm-input__container",q===s.HtmlElementType.textarea&&a("bcm-input__textarea","textarea-size-"+s.Size[f],"resize-"+z,"textarea-"+f),q===s.HtmlElementType.input&&a("input-size-"+s.Size[f]),{focused:y,clearable:h,disabled:w,readonly:v,invalid:_,unit:(null==m?void 0:m.length)>0,error:"error"===k});const J=a("caret-container",{unit:(null==m?void 0:m.length)>0,disabled:w||v||_}),K="bcm-input__container--"+f,N=a(K,"unit-prefix");return n("div",{class:G,id:c+"-container"},n("span",{hidden:!0},n("slot",null)),n("span",{class:"input-prefix"},n("slot",{name:"prefix"}),L&&L.length>0&&n("span",{innerHTML:L}),b&&n("span",{class:N},b),A&&n("i",{class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300",style:{backgroundColor:u}})),n(q,Object.assign({tabindex:"0",id:c+"-input","bcm-internal-id":r,class:"bcm-input-element "+K},q===s.HtmlElementType.input&&{type:l,autocomplete:I?"on":"off",pattern:d},q===s.HtmlElementType.textarea&&{rows:o,resize:z},{value:u,maxLength:x,placeholder:p,disabled:w,readOnly:v,ref:n=>P(n),onBlur:n=>(n=>{n.target.parentElement.classList.remove("focused"),V(n)})(n),onFocus:n=>(n=>{n.target.parentElement.classList.add("focused"),F(n)})(n),onInput:n=>H(n),onChange:n=>M(n)})),n("span",{class:"input-suffix-content"},h&&!w&&!v&&n("span",{class:"input-suffix input-suffix-button input-clear-button",onClick:n=>D(n)},n("bcm-icon",{icon:"far fa-times"}))),n("span",{class:"input-suffix-content"},("password"===l||"text"===l)&&g&&n("span",{class:"input-suffix input-suffix-button",onClick:()=>B()},n("bcm-icon",{icon:C?"far fa-eye-slash":"far fa-eye"}))),n("span",{class:"input-suffix-content"},Object.keys(e).includes(l)&&!j&&n("span",{class:"input-suffix"},n("bcm-icon",{icon:e[l]}))),n("span",{class:"input-suffix-content"},"number"===l&&n("div",{class:J},n("span",{class:"bcm-input-caret",onClick:()=>O("up")},n("bcm-icon",{icon:"fas fa-caret-up"})),n("span",{class:"bcm-input-caret",onClick:()=>O("down")},n("bcm-icon",{icon:"fas fa-caret-down"})))),n("span",{class:"input-suffix-content"},"number"!==l&&n("span",{class:"input-suffix"},n("slot",{name:"suffix"}),T&&T.length>0&&n("span",{innerHTML:T})),A&&E()&&n("span",{class:"input-suffix"},n("span",null,n("i",{class:"far fa-eye-dropper",onClick:()=>S()})))))};export{i as I}