bromcom-ui 2.7.37-rc.4-1 → 2.7.37-rc.5

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 (216) hide show
  1. package/dist/bromcom-ui/assets +0 -0
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-02c9c16a.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-7b7caea1.entry.js → p-11d620de.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-7c8d47f6.entry.js → p-189b5173.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-0653fefc.entry.js → p-1a875728.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-a661a9d5.entry.js → p-1b88e052.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-e75fa6be.entry.js → p-254cab03.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-49c83e11.entry.js → p-27b4ba87.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-109d49c2.entry.js → p-29f356e7.entry.js} +1 -1
  11. package/dist/bromcom-ui/p-2b051de8.js +5 -0
  12. package/dist/bromcom-ui/{p-6768e612.entry.js → p-2cd201f7.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-fef3003b.entry.js → p-2e014156.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-3190aa90.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-a677275e.entry.js → p-3481a5e3.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-a59a0361.entry.js → p-3510a7e0.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-11d54517.entry.js → p-37c9deed.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  19. package/dist/bromcom-ui/{p-8513e734.entry.js → p-4eec6709.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  21. package/dist/bromcom-ui/{p-2b3b55ef.entry.js → p-5b70c36e.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-47fa3046.entry.js → p-5cd69ba0.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-82ad3d24.entry.js → p-62fac97f.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-ad11bb72.entry.js → p-631d1c84.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-666a76bf.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-31bc32d4.entry.js → p-6b349344.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-8255f60a.entry.js → p-6e873e3c.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-34f30b8b.entry.js → p-7ca81ac4.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-ce9f87de.entry.js → p-86978afe.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-99dc108e.entry.js → p-8900e0dd.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-2c3c7265.entry.js → p-9098c246.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-ab3f2735.entry.js → p-910675c4.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-3716c24c.entry.js → p-97c465cb.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-9c6d453d.js +5 -0
  35. package/dist/bromcom-ui/{p-a98aecdf.entry.js → p-a08d69f0.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-7d119b6d.js → p-a1e67dd0.js} +1 -1
  37. package/dist/bromcom-ui/{p-a3ffcb0d.js → p-a8d1397d.js} +1 -1
  38. package/dist/bromcom-ui/{p-b1d1cdb0.entry.js → p-acfa0500.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-1507f99a.entry.js → p-ad9303de.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-78d48636.entry.js → p-adc35e17.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-ae18981d.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-d9fb53c9.entry.js → p-b4e2c796.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-ea15e1f4.entry.js → p-bc1a3c72.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-1672aa8b.js → p-bd06379a.js} +1 -1
  45. package/dist/bromcom-ui/p-c2376511.js +5 -0
  46. package/dist/bromcom-ui/{p-609bc368.entry.js → p-c4988d92.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-577cf8e3.js → p-c61552b3.js} +1 -1
  48. package/dist/bromcom-ui/{p-f9b0e4d2.entry.js → p-d01dba43.entry.js} +1 -1
  49. package/dist/bromcom-ui/p-d10f3a58.entry.js +5 -0
  50. package/dist/bromcom-ui/{p-9efe118a.entry.js → p-d11d1f5a.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-6a3c1fb9.entry.js → p-d4ad2dc7.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-b9421650.entry.js → p-d50137fe.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-9e8eb647.entry.js → p-d82d5d13.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-2b91dab0.entry.js → p-de4e1e66.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-db7c75ac.entry.js → p-de5a1c78.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-27f0db71.js → p-e3cd7a81.js} +1 -1
  57. package/dist/bromcom-ui/{p-dbb106a4.entry.js → p-e9f81882.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-087d371a.entry.js → p-ef8220de.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-7df25164.entry.js → p-f0f04873.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-a04909f2.entry.js → p-f1aae0d3.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-76153673.entry.js → p-f75f16d3.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-cd638c37.entry.js → p-f8bfcf16.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-fda9a21b.entry.js → p-faebba4a.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-65dcaa9e.entry.js → p-fe9e8096.entry.js} +1 -1
  65. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  68. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  69. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-button_7.cjs.entry.js +2424 -0
  72. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
  74. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +1 -1
  76. package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  79. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  80. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  81. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  84. package/dist/cjs/bcm-form.cjs.entry.js +486 -0
  85. package/dist/cjs/bcm-input.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-linked.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-list.cjs.entry.js +5 -5
  90. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  91. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-popover.cjs.entry.js +5 -4
  94. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  95. package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-radio.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  98. package/dist/cjs/bcm-search.cjs.entry.js +3 -3
  99. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  100. package/dist/cjs/bcm-step.cjs.entry.js +10 -3
  101. package/dist/cjs/bcm-stepper.cjs.entry.js +13 -5
  102. package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
  103. package/dist/cjs/bcm-tab-group.cjs.entry.js +1 -1
  104. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  105. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  107. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  108. package/dist/cjs/{generate-9444aa87.js → generate-a4ae25cc.js} +1 -1
  109. package/dist/cjs/{input-template-623d767d.js → input-template-b98dc440.js} +1 -1
  110. package/dist/cjs/{json-parse-decarator-e39af071.js → json-parse-decarator-2576b45e.js} +1 -1
  111. package/dist/cjs/loader.cjs.js +1 -1
  112. package/dist/cjs/{number-helper-ba5aa459.js → number-helper-67ecf943.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-46c5f64b.js → stepper-states-3a22d53a.js} +1 -1
  116. package/dist/cjs/{tooltip-helper-5442af2e.js → tooltip-helper-13ceba6c.js} +5 -4
  117. package/dist/cjs/{validators-e45ced35.js → validators-e2724166.js} +1 -1
  118. package/dist/collection/assets +0 -0
  119. package/dist/collection/components/molecules/modal/modal.js +7 -4
  120. package/dist/collection/components/molecules/stepper/step.js +9 -0
  121. package/dist/collection/components/molecules/stepper/stepper.js +10 -2
  122. package/dist/collection/components/organism/list/list.js +6 -0
  123. package/dist/collection/helper/popover-helper.js +2 -1
  124. package/dist/collection/helper/tooltip-helper.js +2 -1
  125. package/dist/components/bcm-list.js +1 -1
  126. package/dist/components/bcm-modal.js +6 -3
  127. package/dist/components/bcm-popover.js +2 -1
  128. package/dist/components/bcm-stepper.js +10 -2
  129. package/dist/components/generate.js +1 -1
  130. package/dist/components/step.js +8 -1
  131. package/dist/components/tooltip-helper.js +2 -1
  132. package/dist/esm/bcm-accordion.entry.js +1 -1
  133. package/dist/esm/bcm-alert.entry.js +1 -1
  134. package/dist/esm/bcm-attendance.entry.js +2 -2
  135. package/dist/esm/bcm-avatar_2.entry.js +6 -6
  136. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  137. package/dist/esm/bcm-button-group.entry.js +1 -1
  138. package/dist/esm/bcm-button_7.entry.js +2414 -0
  139. package/dist/esm/bcm-card.entry.js +3 -3
  140. package/dist/esm/bcm-checkbox-group.entry.js +2 -2
  141. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  142. package/dist/esm/bcm-checkbox_2.entry.js +3 -3
  143. package/dist/esm/bcm-chip.entry.js +3 -3
  144. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  145. package/dist/esm/bcm-collapse.entry.js +1 -1
  146. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  147. package/dist/esm/bcm-date-picker.entry.js +2 -2
  148. package/dist/esm/bcm-default.entry.js +1 -1
  149. package/dist/esm/bcm-drawer.entry.js +6 -6
  150. package/dist/esm/bcm-dropdown.entry.js +2 -2
  151. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  152. package/dist/esm/bcm-form-2.entry.js +1 -1
  153. package/dist/esm/bcm-form.entry.js +482 -0
  154. package/dist/esm/bcm-input.entry.js +5 -5
  155. package/dist/esm/bcm-item.entry.js +3 -3
  156. package/dist/esm/bcm-items.entry.js +1 -1
  157. package/dist/esm/bcm-linked.entry.js +6 -6
  158. package/dist/esm/bcm-list.entry.js +8 -8
  159. package/dist/esm/bcm-menu.entry.js +8 -8
  160. package/dist/esm/bcm-old-tag_2.entry.js +1 -1
  161. package/dist/esm/bcm-popconfirm-box.entry.js +3 -3
  162. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  163. package/dist/esm/bcm-popover.entry.js +8 -7
  164. package/dist/esm/bcm-progress.entry.js +3 -3
  165. package/dist/esm/bcm-radio-group.entry.js +2 -2
  166. package/dist/esm/bcm-radio.entry.js +3 -3
  167. package/dist/esm/bcm-range.entry.js +2 -2
  168. package/dist/esm/bcm-search.entry.js +4 -4
  169. package/dist/esm/bcm-select.entry.js +1 -1
  170. package/dist/esm/bcm-skeleton.entry.js +1 -1
  171. package/dist/esm/bcm-step.entry.js +10 -3
  172. package/dist/esm/bcm-stepper.entry.js +14 -6
  173. package/dist/esm/bcm-switch.entry.js +2 -2
  174. package/dist/esm/bcm-tab-group.entry.js +1 -1
  175. package/dist/esm/bcm-table.entry.js +1 -1
  176. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  177. package/dist/esm/bcm-tabs.entry.js +1 -1
  178. package/dist/esm/bcm-tag.entry.js +3 -3
  179. package/dist/esm/bcm-text.entry.js +2 -2
  180. package/dist/esm/bcm-textarea.entry.js +3 -3
  181. package/dist/esm/bcm-time-picker.entry.js +2 -2
  182. package/dist/esm/bromcom-ui.js +1 -1
  183. package/dist/esm/{color-helper-7e202fd8.js → color-helper-b5e9aa56.js} +1 -1
  184. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  185. package/dist/esm/{generate-d57a5f95.js → generate-536da0b1.js} +1 -1
  186. package/dist/esm/{input-template-2044f4f6.js → input-template-eb5a3532.js} +1 -1
  187. package/dist/esm/{json-parse-decarator-50541a21.js → json-parse-decarator-07ac101b.js} +1 -1
  188. package/dist/esm/loader.js +1 -1
  189. package/dist/esm/{number-helper-75d21178.js → number-helper-1e4205c0.js} +1 -1
  190. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  191. package/dist/esm/old-bcm-popover.entry.js +1 -1
  192. package/dist/esm/{stepper-states-9f66e2b4.js → stepper-states-69f3eb9f.js} +1 -1
  193. package/dist/esm/{tooltip-helper-bed79484.js → tooltip-helper-ee09e2cf.js} +7 -6
  194. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  195. package/dist/esm/{validators-6af629b4.js → validators-05f59402.js} +1 -1
  196. package/dist/types/components/molecules/modal/modal.d.ts +1 -0
  197. package/dist/types/components/molecules/stepper/step.d.ts +1 -0
  198. package/package.json +1 -1
  199. package/dist/bromcom-ui/p-00f2b559.entry.js +0 -5
  200. package/dist/bromcom-ui/p-034cd518.js +0 -5
  201. package/dist/bromcom-ui/p-2b27570e.entry.js +0 -5
  202. package/dist/bromcom-ui/p-30806ec7.js +0 -5
  203. package/dist/bromcom-ui/p-55cce901.entry.js +0 -5
  204. package/dist/bromcom-ui/p-6c12e5dd.entry.js +0 -5
  205. package/dist/bromcom-ui/p-85d1183b.entry.js +0 -5
  206. package/dist/bromcom-ui/p-b9983e4b.entry.js +0 -5
  207. package/dist/bromcom-ui/p-d18c5524.entry.js +0 -5
  208. package/dist/bromcom-ui/p-ea9c10c3.js +0 -5
  209. package/dist/cjs/bcm-button_4.cjs.entry.js +0 -997
  210. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1432
  211. package/dist/cjs/bcm-label_2.cjs.entry.js +0 -119
  212. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -398
  213. package/dist/esm/bcm-button_4.entry.js +0 -990
  214. package/dist/esm/bcm-datetime-picker.entry.js +0 -1428
  215. package/dist/esm/bcm-label_2.entry.js +0 -114
  216. package/dist/esm/bcm-old-input.entry.js +0 -394
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as o,h as c,H as n,g as s}from"./p-10caf4ce.js";import{c as d}from"./p-d5b08a77.js";import{I as r}from"./p-cd0490e2.js";import{J as l}from"./p-577cf8e3.js";import{G as t}from"./p-1672aa8b.js";import{B as i}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";var b=function(e,o,c,n){var s,d=arguments.length,r=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,c):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,o,c,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(d<3?s(r):d>3?s(o,c,r):s(o,c))||r);return d>3&&r&&Object.defineProperty(o,c,r),r};const m=class{constructor(c){e(this,c),this.bcmClick=o(this,"bcm-click",7),this.dropdownLinkedComponent=o(this,"dropdown-linked-component",7),this._id=t.UID(),this.menuId=t.UID(),this.hidden=!1,this.type="dropdown",this.size=i.Size.medium,this.disabled=!1,this.kind=i.Kind.solid,this.noStyle=!1,this.dropdownIcon="fas fa-angle-down",this.multiLevel=!1,this.loading=!1,this.dataDismiss=!1,this.fullWidth=!1,this.iconPosition=i.IconPosition.prefix,this.height="auto",this.maxHeight="500px",this.minHeight="50px",this.stopDeepClean=!1,this.selectable=!0,this.data=[]}async dataChanged(e){e&&(this.data=e)}async isOpenChanged(e){if(document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`)){const o=this.getPopoverBox();e?o.show():o.hide()}}handleIsClickDismiss({detail:e}){this.multiLevel&&(this.isOpen=e)}handleOnClick(e){if(this.linkedComponent)return this.linkedComponentClick(e);if(this.isOpen){const o=this.linkedComponent?document.getElementById(this.linkedComponent):this.el,c=this.getPopoverBox();if(c){const n=t.findEventPath(e,c),s=t.findEventPath(e,o);if(!n&&!s)return void(this.isOpen=!1);if(t.findEventPathHasAttribute(e,"data-dismiss"))return void(this.isOpen=!1)}}}handleWheel(e){if(this.isOpen){const o=this.getPopoverBox();if(o){const c=t.findEventPath(e,o),n=t.findEventPath(e,this.el);if(!c&&!n)return void(this.isOpen=!1)}}}async setActive(e){if(e){const o=document.getElementById(`${this.menuId}`);o&&o.setActive(e)}}handleSlotItems({detail:e}){this.data=e}componentDidLoad(){let e=document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`);e&&e.remove();const o=this.el.querySelector("bcm-content");o&&(o.style.display="none",this.createBox(),this.isOpen=this.isOpen)}disconnectedCallback(){if(this.isOpen=!1,this.stopDeepClean)return;const e=this.getPopoverBox();e&&e.remove()}createBox(){const e=this.el.querySelector("bcm-content");if(e){const o=this.linkedComponent?this.linkedComponent:this._id;let c=document.getElementById(`dropdown-box-${this._id}`);c||(c=document.createElement("old-bcm-popover-box"),c.setAttribute("id","dropdown-box-"+this._id),c.setAttribute("target-id",o),c.setAttribute("placement",this.placement||"bottom-start"),c.setAttribute("linked-component",o),c.setAttribute("min-height",this.minHeight),c.setAttribute("max-height",this.maxHeight),c.setAttribute("height",this.height),e.style.display="block",e.removeAttribute("hidden"),c.appendChild(e),document.body.appendChild(c))}}linkedComponentClick(e){const o=document.getElementById(this.linkedComponent),c=document.querySelector(`bcm-popover-box[id="dropdown-box-${this._id}"]`),n=t.findEventPath(e,c),s=t.findEventPath(e,o);if(n||s)return(n||s)&&(this.createBox(),this.isOpen=!0,this.dropdownLinkedComponent.emit(!0)),t.findEventPathHasAttribute(e,"data-dismiss")?(this.isOpen=!1,void this.dropdownLinkedComponent.emit(!1)):void 0;this.isOpen=!1}checkClick(){this.getPopoverBox()&&(this.isOpen=!this.isOpen,this.isOpen?this.getPopoverBox().show():this.getPopoverBox().hide())}getPopoverBox(){return this.createBox(),document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`)}render(){const{size:e,kind:o,disabled:s,icon:r,color:l,href:t,target:i,loading:b,type:m,variant:a,fullWidth:w}=this,f=d("bcm-dropdown","bcm-dropdown__type-"+m,{"full-width":w,"no-style":this.noStyle,hidden:this.hidden||this.linkedComponent}),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s&&{disabled:s}),b&&{loading:b}),o&&{kind:o}),e&&{size:e}),a&&{variant:a}),l&&{color:l}),this.menuId&&{"menu-id":this.menuId}),p=d("bcm-dropdown__icon",{"bcm-dropdown__icon--open":this.isOpen}),u=c("span",{class:p},c("bcm-icon",{icon:this.dropdownIcon}));return c(n,{class:f,onClick:()=>this.checkClick()},c("span",{hidden:!0},c("slot",null)),this.noStyle&&c("slot",null),!this.noStyle&&c("bcm-button",Object.assign({class:"main-button",id:`${this._id}-button`},h,r&&{icon:r},t&&"split"===m&&{href:t},i&&"split"===m&&{target:i},w&&{fullWidth:w}),c("slot",null),"dropdown"===m&&u),!this.noStyle&&"split"===m&&c("bcm-button",Object.assign({id:`${this._id}-button-split`,class:"split-button"},h),u),this.data&&this.data.length>0&&c("bcm-menu",{id:`${this.menuId}`,"linked-component":`${this._id}-button${"split"===m?"-split":""}`,data:this.data,"on-bcm-open":e=>this.isOpen=e.detail,"on-bcm-click":e=>this.bcmClick.emit(e.detail),placement:this.placement||("dropdown"===m?"bottom-start":"bottom-end"),"max-height":this.maxHeight,"min-height":this.minHeight,height:this.height,selectable:this.selectable}))}get el(){return s(this)}static get watchers(){return{data:["dataChanged"],isOpen:["isOpenChanged"]}}};b([r()],m.prototype,"el",void 0),b([l("data")],m.prototype,"data",void 0),b([l("data",!0)],m.prototype,"dataChanged",null),m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-dropdown{width:fit-content;display:inline-flex;flex-direction:row}.bcm-dropdown.hidden{display:none}.bcm-dropdown.no-style{cursor:pointer}.bcm-dropdown.full-width{width:100%}.bcm-dropdown.full-width .bcm-button__container-text{flex:1;justify-content:space-between}.bcm-dropdown__type-split .main-button .bcm-button__container{border-top-right-radius:0;border-bottom-right-radius:0}.bcm-dropdown__type-split .split-button .bcm-button__container{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;min-width:auto}.bcm-dropdown__icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;transform:rotate(0deg);transition:transform 0.2s ease}.bcm-dropdown__icon--open{transform:rotate(180deg)}';export{m as bcm_dropdown}
5
+ import{r as e,c as o,h as c,H as n,g as s}from"./p-10caf4ce.js";import{c as d}from"./p-d5b08a77.js";import{I as r}from"./p-cd0490e2.js";import{J as l}from"./p-c61552b3.js";import{G as t}from"./p-bd06379a.js";import{B as i}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";var b=function(e,o,c,n){var s,d=arguments.length,r=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,c):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,o,c,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(d<3?s(r):d>3?s(o,c,r):s(o,c))||r);return d>3&&r&&Object.defineProperty(o,c,r),r};const m=class{constructor(c){e(this,c),this.bcmClick=o(this,"bcm-click",7),this.dropdownLinkedComponent=o(this,"dropdown-linked-component",7),this._id=t.UID(),this.menuId=t.UID(),this.hidden=!1,this.type="dropdown",this.size=i.Size.medium,this.disabled=!1,this.kind=i.Kind.solid,this.noStyle=!1,this.dropdownIcon="fas fa-angle-down",this.multiLevel=!1,this.loading=!1,this.dataDismiss=!1,this.fullWidth=!1,this.iconPosition=i.IconPosition.prefix,this.height="auto",this.maxHeight="500px",this.minHeight="50px",this.stopDeepClean=!1,this.selectable=!0,this.data=[]}async dataChanged(e){e&&(this.data=e)}async isOpenChanged(e){if(document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`)){const o=this.getPopoverBox();e?o.show():o.hide()}}handleIsClickDismiss({detail:e}){this.multiLevel&&(this.isOpen=e)}handleOnClick(e){if(this.linkedComponent)return this.linkedComponentClick(e);if(this.isOpen){const o=this.linkedComponent?document.getElementById(this.linkedComponent):this.el,c=this.getPopoverBox();if(c){const n=t.findEventPath(e,c),s=t.findEventPath(e,o);if(!n&&!s)return void(this.isOpen=!1);if(t.findEventPathHasAttribute(e,"data-dismiss"))return void(this.isOpen=!1)}}}handleWheel(e){if(this.isOpen){const o=this.getPopoverBox();if(o){const c=t.findEventPath(e,o),n=t.findEventPath(e,this.el);if(!c&&!n)return void(this.isOpen=!1)}}}async setActive(e){if(e){const o=document.getElementById(`${this.menuId}`);o&&o.setActive(e)}}handleSlotItems({detail:e}){this.data=e}componentDidLoad(){let e=document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`);e&&e.remove();const o=this.el.querySelector("bcm-content");o&&(o.style.display="none",this.createBox(),this.isOpen=this.isOpen)}disconnectedCallback(){if(this.isOpen=!1,this.stopDeepClean)return;const e=this.getPopoverBox();e&&e.remove()}createBox(){const e=this.el.querySelector("bcm-content");if(e){const o=this.linkedComponent?this.linkedComponent:this._id;let c=document.getElementById(`dropdown-box-${this._id}`);c||(c=document.createElement("old-bcm-popover-box"),c.setAttribute("id","dropdown-box-"+this._id),c.setAttribute("target-id",o),c.setAttribute("placement",this.placement||"bottom-start"),c.setAttribute("linked-component",o),c.setAttribute("min-height",this.minHeight),c.setAttribute("max-height",this.maxHeight),c.setAttribute("height",this.height),e.style.display="block",e.removeAttribute("hidden"),c.appendChild(e),document.body.appendChild(c))}}linkedComponentClick(e){const o=document.getElementById(this.linkedComponent),c=document.querySelector(`bcm-popover-box[id="dropdown-box-${this._id}"]`),n=t.findEventPath(e,c),s=t.findEventPath(e,o);if(n||s)return(n||s)&&(this.createBox(),this.isOpen=!0,this.dropdownLinkedComponent.emit(!0)),t.findEventPathHasAttribute(e,"data-dismiss")?(this.isOpen=!1,void this.dropdownLinkedComponent.emit(!1)):void 0;this.isOpen=!1}checkClick(){this.getPopoverBox()&&(this.isOpen=!this.isOpen,this.isOpen?this.getPopoverBox().show():this.getPopoverBox().hide())}getPopoverBox(){return this.createBox(),document.querySelector(`old-bcm-popover-box[id="dropdown-box-${this._id}"]`)}render(){const{size:e,kind:o,disabled:s,icon:r,color:l,href:t,target:i,loading:b,type:m,variant:a,fullWidth:w}=this,f=d("bcm-dropdown","bcm-dropdown__type-"+m,{"full-width":w,"no-style":this.noStyle,hidden:this.hidden||this.linkedComponent}),h=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s&&{disabled:s}),b&&{loading:b}),o&&{kind:o}),e&&{size:e}),a&&{variant:a}),l&&{color:l}),this.menuId&&{"menu-id":this.menuId}),p=d("bcm-dropdown__icon",{"bcm-dropdown__icon--open":this.isOpen}),u=c("span",{class:p},c("bcm-icon",{icon:this.dropdownIcon}));return c(n,{class:f,onClick:()=>this.checkClick()},c("span",{hidden:!0},c("slot",null)),this.noStyle&&c("slot",null),!this.noStyle&&c("bcm-button",Object.assign({class:"main-button",id:`${this._id}-button`},h,r&&{icon:r},t&&"split"===m&&{href:t},i&&"split"===m&&{target:i},w&&{fullWidth:w}),c("slot",null),"dropdown"===m&&u),!this.noStyle&&"split"===m&&c("bcm-button",Object.assign({id:`${this._id}-button-split`,class:"split-button"},h),u),this.data&&this.data.length>0&&c("bcm-menu",{id:`${this.menuId}`,"linked-component":`${this._id}-button${"split"===m?"-split":""}`,data:this.data,"on-bcm-open":e=>this.isOpen=e.detail,"on-bcm-click":e=>this.bcmClick.emit(e.detail),placement:this.placement||("dropdown"===m?"bottom-start":"bottom-end"),"max-height":this.maxHeight,"min-height":this.minHeight,height:this.height,selectable:this.selectable}))}get el(){return s(this)}static get watchers(){return{data:["dataChanged"],isOpen:["isOpenChanged"]}}};b([r()],m.prototype,"el",void 0),b([l("data")],m.prototype,"data",void 0),b([l("data",!0)],m.prototype,"dataChanged",null),m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-dropdown{width:fit-content;display:inline-flex;flex-direction:row}.bcm-dropdown.hidden{display:none}.bcm-dropdown.no-style{cursor:pointer}.bcm-dropdown.full-width{width:100%}.bcm-dropdown.full-width .bcm-button__container-text{flex:1;justify-content:space-between}.bcm-dropdown__type-split .main-button .bcm-button__container{border-top-right-radius:0;border-bottom-right-radius:0}.bcm-dropdown__type-split .split-button .bcm-button__container{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:1px;min-width:auto}.bcm-dropdown__icon{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;transform:rotate(0deg);transition:transform 0.2s ease}.bcm-dropdown__icon--open{transform:rotate(180deg)}';export{m as bcm_dropdown}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as i,c as t,h as e,H as s,g as h}from"./p-10caf4ce.js";import{c as n}from"./p-d5b08a77.js";import{I as p}from"./p-cd0490e2.js";import{G as o}from"./p-1672aa8b.js";import{B as a}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const c=class{constructor(e){i(this,e),this.onShow=t(this,"bcm-show",7),this.onHide=t(this,"bcm-hide",7),this.onConfirm=t(this,"bcm-confirm",7),this.onCancel=t(this,"bcm-cancel",7),this._id=o.UID(),this.status="warning",this.cancelText="No",this.okeyText="Yes",this.placement=a.Placement.top,this.trigger=a.TriggerType.click,this.open=!1,this.hidden=!1}async show(){this.open=!0,this.onShow.emit(),await this.createBox().then((()=>this.showBox()))}async hide(){this.open=!1,this.onHide.emit()}async createBox(){if(!this.getPopconfirmBox()){const i=document.createElement("bcm-popconfirm-box");i.setAttribute("id","box-"+this._id),i.setAttribute("target-id",this._id),i.setAttribute("placement",this.placement),i.setAttribute("message",this.message),i.setAttribute("status",this.status),i.setAttribute("cancel-text",this.cancelText),i.setAttribute("okey-text",this.okeyText),this.el.parentElement.appendChild(i)}return Promise.resolve()}getPopconfirmBox(){return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`)}showBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().show()}hideBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().hide()}listenTrigger(i){switch(this.trigger){case"click":"click"===i&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===i&&this.show(),"onMouseOut"===i&&this.hide();break;case"focus":"onFocus"===i&&this.show(),"onBlur"===i&&this.hide()}}onBcmConfirm(i){i.detail==this._id&&this.onConfirm.emit(this._id)}onBcmCancel(i){i.detail==this._id&&this.onCancel.emit(this._id)}render(){const i=n("bcm-popconfirm");return e(s,{class:i,onclick:()=>this.listenTrigger("click"),tabindex:0},e("slot",null))}get el(){return h(this)}};(function(i,t,e,s){var h,n=arguments.length,p=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(i,t,e,s);else for(var o=i.length-1;o>=0;o--)(h=i[o])&&(p=(n<3?h(p):n>3?h(t,e,p):h(t,e))||p);n>3&&p&&Object.defineProperty(t,e,p)})([p()],c.prototype,"el",void 0),c.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}.bcm-popconfirm{display:inline-flex}';export{c as bcm_popconfirm}
5
+ import{r as i,c as t,h as e,H as s,g as h}from"./p-10caf4ce.js";import{c as n}from"./p-d5b08a77.js";import{I as p}from"./p-cd0490e2.js";import{G as o}from"./p-bd06379a.js";import{B as a}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const c=class{constructor(e){i(this,e),this.onShow=t(this,"bcm-show",7),this.onHide=t(this,"bcm-hide",7),this.onConfirm=t(this,"bcm-confirm",7),this.onCancel=t(this,"bcm-cancel",7),this._id=o.UID(),this.status="warning",this.cancelText="No",this.okeyText="Yes",this.placement=a.Placement.top,this.trigger=a.TriggerType.click,this.open=!1,this.hidden=!1}async show(){this.open=!0,this.onShow.emit(),await this.createBox().then((()=>this.showBox()))}async hide(){this.open=!1,this.onHide.emit()}async createBox(){if(!this.getPopconfirmBox()){const i=document.createElement("bcm-popconfirm-box");i.setAttribute("id","box-"+this._id),i.setAttribute("target-id",this._id),i.setAttribute("placement",this.placement),i.setAttribute("message",this.message),i.setAttribute("status",this.status),i.setAttribute("cancel-text",this.cancelText),i.setAttribute("okey-text",this.okeyText),this.el.parentElement.appendChild(i)}return Promise.resolve()}getPopconfirmBox(){return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`)}showBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().show()}hideBox(){this.getPopconfirmBox()&&this.getPopconfirmBox().hide()}listenTrigger(i){switch(this.trigger){case"click":"click"===i&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===i&&this.show(),"onMouseOut"===i&&this.hide();break;case"focus":"onFocus"===i&&this.show(),"onBlur"===i&&this.hide()}}onBcmConfirm(i){i.detail==this._id&&this.onConfirm.emit(this._id)}onBcmCancel(i){i.detail==this._id&&this.onCancel.emit(this._id)}render(){const i=n("bcm-popconfirm");return e(s,{class:i,onclick:()=>this.listenTrigger("click"),tabindex:0},e("slot",null))}get el(){return h(this)}};(function(i,t,e,s){var h,n=arguments.length,p=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(i,t,e,s);else for(var o=i.length-1;o>=0;o--)(h=i[o])&&(p=(n<3?h(p):n>3?h(t,e,p):h(t,e))||p);n>3&&p&&Object.defineProperty(t,e,p)})([p()],c.prototype,"el",void 0),c.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}.bcm-popconfirm{display:inline-flex}';export{c as bcm_popconfirm}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c,h as o,H as n,g as r}from"./p-10caf4ce.js";import{c as l}from"./p-d5b08a77.js";import{s,G as d}from"./p-1672aa8b.js";import{I as b}from"./p-cd0490e2.js";import{B as m}from"./p-c9bd85e9.js";import{C as a}from"./p-2cfa8d1a.js";import{d as i,g as t}from"./p-8c018ae0.js";import{c as w}from"./p-f9cb7ae4.js";import{S as f}from"./p-04c8b756.js";import"./p-6f56f8ca.js";const{state:p,onChange:g}=w({group:new Map,onChange:{}}),h=e=>s((()=>p.group.get(e)),{});g("onChange",(e=>{h(e.id).childs.map((c=>{c.checked=c.id===e.childId}))}));const u={setValue:async({fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:l,el:s,id:b,label:m,required:a,captionType:i,hidden:t,direction:w,childs:f,gap:g,name:h,noCaption:u})=>{s&&p.group.set(b,{fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:l,label:m,required:a,captionType:i,hidden:t,direction:w,gap:g,noCaption:u,name:h,childs:await f.map((r=>(e&&(r.style.flex="flex"==e?"auto":"100%"),c&&(r.optionType=c),o&&(r.buttonStyle=o),n&&(r.size=n),l&&l.find((e=>e===r.name))&&(r.checked=!0),r.noCaption=u,{id:r.id||d.UID(),checked:r.checked,name:h,value:r.value,size:r.size,buttonStyle:r.buttonStyle,optionType:r.optionType,style:r.style,noCaption:r.noCaption,color:r.color,disabled:r.disabled,label:r.label||r.name,slot:r.slot||r.textContent,required:a,captionType:i,hidden:r.hidden})))})},getValue:e=>{const c=h(e);let o=null;return c.childs.map((e=>{1==e.checked&&(o=e.value||e.slot)})),o&&f.trim(o)},setCheckedItem:(e,c,o)=>{const n=h(e).childs;n&&n.length>0&&n.forEach((e=>{e.checked=(e.id==c||e.value==c)&&o}))},getProperty:h,setClear:e=>{h(e).childs.forEach((e=>{e.checked=!1}))},removeState:e=>Promise.resolve(p.group.delete(e)),resetCaption:e=>{const c=h(e).noCaption;h(e).childs.forEach((e=>{e.resetCaption(),e.noCaption=c}))},state:p};const y=class{constructor(o){e(this,o),this.change=c(this,"bcm-change",7),this._id=d.UID(),this.direction=m.Direction.horizontal,this.items=[],this.size=m.Size.medium,this.disabled=!1,this.hidden=!1,this.required=!1,this.optionType="default",this.buttonStyle="solid",this.fullWidth=!1,this.noCaption=!1,this.captionType=m.Status.default,this.radioOptions=[],this.usingSlots=!0,this.tick={}}disconnectedCallback(){u.removeState(this._id)}componentDidLoad(){this.initState()}componentShouldUpdate(e,c,o){"defaultValue"!=o&&"tick"!=o||e===c||s((()=>u.getProperty(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e))}async initState(){const{fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,noCaption:l,defaultValue:d,label:b,required:m,captionType:a,hidden:i,direction:t,gap:w,items:f,name:p}=this,g=d&&d,h=f.length>0?s((()=>"string"==typeof this.items?JSON.parse(this.items):this.items)):await this.getRadioItems();await u.setValue({id:this._id,el:this.el,name:p,fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:g,label:b,noCaption:l,required:m,captionType:a,hidden:i,gap:w,direction:t,childs:h}),this.getValue().then((e=>this.value=e))}async markForCheck(){await i(10),this.tick=d.UID()}async setClear(){return u.setClear(this._id),this.markForCheck(),await i(10),Promise.resolve()}async resetCaption(){return await i(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await i(10),Promise.resolve()}async set(e){await this.check(e)}async get(){return await this.getValue()}async check(e,c=!0){u.setCheckedItem(this._id,e,c),this.defaultValue=e,this.markForCheck()}async getValue(){return u.getValue(this._id)}handleItemsChange(){this.initState()}getRadioItems(){return t(this.el,"bcm-radio")}async changeRadio(e){u.state.onChange={id:this._id,childId:e},await this.markForCheck(),this.change.emit(this.value)}getItems(){return u.getProperty(this._id)}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}render(){const{label:e,required:c,hidden:r,childs:s,gap:d,direction:b,fullWidth:m,optionType:i}=this.getItems(),t=l("bcm-radio-group",{hidden:r,error:"error"==this.captionType,"full-width":m}),w=l("bcm-radio-group__container",i,{[b]:"default"===i,"full-width":m});return o(n,{class:t},e&&o("bcm-label",{type:this.captionType,value:e,required:c}),o("div",{class:w,style:d&&{gap:d}},s&&s.map((e=>o("bcm-radio",{id:e.id,onClick:c=>{!e.disabled&&this.changeRadio(e.id),c.preventDefault()},value:e.value,disabled:e.disabled,checked:e.checked,size:e.size,color:e.color,required:e.required,hidden:e.hidden,"no-margin":!0},e.slot||e.label)))),o(a,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}),o("span",{hidden:!0},o("slot",null)))}get el(){return r(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,c,o,n){var r,l=arguments.length,s=l<3?c:null===n?n=Object.getOwnPropertyDescriptor(c,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,n);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(l<3?r(s):l>3?r(c,o,s):r(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([b()],y.prototype,"el",void 0),y.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}.bcm-radio-group{margin-bottom:8px;display:block}.bcm-radio-group.hidden{display:none}.bcm-radio-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-radio-group__container.vertical{gap:8px;flex-direction:column}.bcm-radio-group__container.full-width{max-width:100%}';export{y as bcm_radio_group}
5
+ import{r as e,c,h as o,H as n,g as r}from"./p-10caf4ce.js";import{c as l}from"./p-d5b08a77.js";import{s,G as d}from"./p-bd06379a.js";import{I as b}from"./p-cd0490e2.js";import{B as m}from"./p-c9bd85e9.js";import{C as a}from"./p-2cfa8d1a.js";import{d as i,a as t}from"./p-3c7a0345.js";import{c as w}from"./p-f9cb7ae4.js";import{S as f}from"./p-04c8b756.js";import"./p-6f56f8ca.js";const{state:p,onChange:g}=w({group:new Map,onChange:{}}),h=e=>s((()=>p.group.get(e)),{});g("onChange",(e=>{h(e.id).childs.map((c=>{c.checked=c.id===e.childId}))}));const u={setValue:async({fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:l,el:s,id:b,label:m,required:a,captionType:i,hidden:t,direction:w,childs:f,gap:g,name:h,noCaption:u})=>{s&&p.group.set(b,{fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:l,label:m,required:a,captionType:i,hidden:t,direction:w,gap:g,noCaption:u,name:h,childs:await f.map((r=>(e&&(r.style.flex="flex"==e?"auto":"100%"),c&&(r.optionType=c),o&&(r.buttonStyle=o),n&&(r.size=n),l&&l.find((e=>e===r.name))&&(r.checked=!0),r.noCaption=u,{id:r.id||d.UID(),checked:r.checked,name:h,value:r.value,size:r.size,buttonStyle:r.buttonStyle,optionType:r.optionType,style:r.style,noCaption:r.noCaption,color:r.color,disabled:r.disabled,label:r.label||r.name,slot:r.slot||r.textContent,required:a,captionType:i,hidden:r.hidden})))})},getValue:e=>{const c=h(e);let o=null;return c.childs.map((e=>{1==e.checked&&(o=e.value||e.slot)})),o&&f.trim(o)},setCheckedItem:(e,c,o)=>{const n=h(e).childs;n&&n.length>0&&n.forEach((e=>{e.checked=(e.id==c||e.value==c)&&o}))},getProperty:h,setClear:e=>{h(e).childs.forEach((e=>{e.checked=!1}))},removeState:e=>Promise.resolve(p.group.delete(e)),resetCaption:e=>{const c=h(e).noCaption;h(e).childs.forEach((e=>{e.resetCaption(),e.noCaption=c}))},state:p};const y=class{constructor(o){e(this,o),this.change=c(this,"bcm-change",7),this._id=d.UID(),this.direction=m.Direction.horizontal,this.items=[],this.size=m.Size.medium,this.disabled=!1,this.hidden=!1,this.required=!1,this.optionType="default",this.buttonStyle="solid",this.fullWidth=!1,this.noCaption=!1,this.captionType=m.Status.default,this.radioOptions=[],this.usingSlots=!0,this.tick={}}disconnectedCallback(){u.removeState(this._id)}componentDidLoad(){this.initState()}componentShouldUpdate(e,c,o){"defaultValue"!=o&&"tick"!=o||e===c||s((()=>u.getProperty(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e))}async initState(){const{fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,noCaption:l,defaultValue:d,label:b,required:m,captionType:a,hidden:i,direction:t,gap:w,items:f,name:p}=this,g=d&&d,h=f.length>0?s((()=>"string"==typeof this.items?JSON.parse(this.items):this.items)):await this.getRadioItems();await u.setValue({id:this._id,el:this.el,name:p,fullWidth:e,optionType:c,buttonStyle:o,size:n,disabled:r,defaultCheckedItems:g,label:b,noCaption:l,required:m,captionType:a,hidden:i,gap:w,direction:t,childs:h}),this.getValue().then((e=>this.value=e))}async markForCheck(){await i(10),this.tick=d.UID()}async setClear(){return u.setClear(this._id),this.markForCheck(),await i(10),Promise.resolve()}async resetCaption(){return await i(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await i(10),Promise.resolve()}async set(e){await this.check(e)}async get(){return await this.getValue()}async check(e,c=!0){u.setCheckedItem(this._id,e,c),this.defaultValue=e,this.markForCheck()}async getValue(){return u.getValue(this._id)}handleItemsChange(){this.initState()}getRadioItems(){return t(this.el,"bcm-radio")}async changeRadio(e){u.state.onChange={id:this._id,childId:e},await this.markForCheck(),this.change.emit(this.value)}getItems(){return u.getProperty(this._id)}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}render(){const{label:e,required:c,hidden:r,childs:s,gap:d,direction:b,fullWidth:m,optionType:i}=this.getItems(),t=l("bcm-radio-group",{hidden:r,error:"error"==this.captionType,"full-width":m}),w=l("bcm-radio-group__container",i,{[b]:"default"===i,"full-width":m});return o(n,{class:t},e&&o("bcm-label",{type:this.captionType,value:e,required:c}),o("div",{class:w,style:d&&{gap:d}},s&&s.map((e=>o("bcm-radio",{id:e.id,onClick:c=>{!e.disabled&&this.changeRadio(e.id),c.preventDefault()},value:e.value,disabled:e.disabled,checked:e.checked,size:e.size,color:e.color,required:e.required,hidden:e.hidden,"no-margin":!0},e.slot||e.label)))),o(a,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}),o("span",{hidden:!0},o("slot",null)))}get el(){return r(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,c,o,n){var r,l=arguments.length,s=l<3?c:null===n?n=Object.getOwnPropertyDescriptor(c,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,c,o,n);else for(var d=e.length-1;d>=0;d--)(r=e[d])&&(s=(l<3?r(s):l>3?r(c,o,s):r(c,o))||s);l>3&&s&&Object.defineProperty(c,o,s)})([b()],y.prototype,"el",void 0),y.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .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}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}:root{--bcm-new-ds-color-inherit:inherit;--bcm-new-ds-color-current:currentColor;--bcm-new-ds-color-transparent:transparent;--bcm-new-ds-color-black:#000;--bcm-new-ds-color-white:#fff;--bcm-new-ds-color-slate:#64748b;--bcm-new-ds-color-slate-50:#f8fafc;--bcm-new-ds-color-slate-100:#f1f5f9;--bcm-new-ds-color-slate-200:#e2e8f0;--bcm-new-ds-color-slate-300:#cbd5e1;--bcm-new-ds-color-slate-400:#94a3b8;--bcm-new-ds-color-slate-500:#64748b;--bcm-new-ds-color-slate-600:#475569;--bcm-new-ds-color-slate-700:#334155;--bcm-new-ds-color-slate-800:#1e293b;--bcm-new-ds-color-slate-900:#0f172a;--bcm-new-ds-color-gray:#6b7280;--bcm-new-ds-color-gray-50:#f9fafb;--bcm-new-ds-color-gray-100:#f3f4f6;--bcm-new-ds-color-gray-200:#e5e7eb;--bcm-new-ds-color-gray-300:#d1d5db;--bcm-new-ds-color-gray-400:#9ca3af;--bcm-new-ds-color-gray-500:#6b7280;--bcm-new-ds-color-gray-600:#4b5563;--bcm-new-ds-color-gray-700:#374151;--bcm-new-ds-color-gray-800:#1f2937;--bcm-new-ds-color-gray-900:#111827;--bcm-new-ds-color-zinc:#71717a;--bcm-new-ds-color-zinc-50:#fafafa;--bcm-new-ds-color-zinc-100:#f4f4f5;--bcm-new-ds-color-zinc-200:#e4e4e7;--bcm-new-ds-color-zinc-300:#d4d4d8;--bcm-new-ds-color-zinc-400:#a1a1aa;--bcm-new-ds-color-zinc-500:#71717a;--bcm-new-ds-color-zinc-600:#52525b;--bcm-new-ds-color-zinc-700:#3f3f46;--bcm-new-ds-color-zinc-800:#27272a;--bcm-new-ds-color-zinc-900:#18181b;--bcm-new-ds-color-neutral:#737373;--bcm-new-ds-color-neutral-50:#fafafa;--bcm-new-ds-color-neutral-100:#f5f5f5;--bcm-new-ds-color-neutral-200:#e5e5e5;--bcm-new-ds-color-neutral-300:#d4d4d4;--bcm-new-ds-color-neutral-400:#a3a3a3;--bcm-new-ds-color-neutral-500:#737373;--bcm-new-ds-color-neutral-600:#525252;--bcm-new-ds-color-neutral-700:#404040;--bcm-new-ds-color-neutral-800:#262626;--bcm-new-ds-color-neutral-900:#171717;--bcm-new-ds-color-stone:#78716c;--bcm-new-ds-color-stone-50:#fafaf9;--bcm-new-ds-color-stone-100:#f5f5f4;--bcm-new-ds-color-stone-200:#e7e5e4;--bcm-new-ds-color-stone-300:#d6d3d1;--bcm-new-ds-color-stone-400:#a8a29e;--bcm-new-ds-color-stone-500:#78716c;--bcm-new-ds-color-stone-600:#57534e;--bcm-new-ds-color-stone-700:#44403c;--bcm-new-ds-color-stone-800:#292524;--bcm-new-ds-color-stone-900:#1c1917;--bcm-new-ds-color-red:#ef4444;--bcm-new-ds-color-red-50:#fef2f2;--bcm-new-ds-color-red-100:#fee2e2;--bcm-new-ds-color-red-200:#fecaca;--bcm-new-ds-color-red-300:#fca5a5;--bcm-new-ds-color-red-400:#f87171;--bcm-new-ds-color-red-500:#ef4444;--bcm-new-ds-color-red-600:#dc2626;--bcm-new-ds-color-red-700:#b91c1c;--bcm-new-ds-color-red-800:#991b1b;--bcm-new-ds-color-red-900:#7f1d1d;--bcm-new-ds-color-orange:#f97316;--bcm-new-ds-color-orange-50:#fff7ed;--bcm-new-ds-color-orange-100:#ffedd5;--bcm-new-ds-color-orange-200:#fed7aa;--bcm-new-ds-color-orange-300:#fdba74;--bcm-new-ds-color-orange-400:#fb923c;--bcm-new-ds-color-orange-500:#f97316;--bcm-new-ds-color-orange-600:#ea580c;--bcm-new-ds-color-orange-700:#c2410c;--bcm-new-ds-color-orange-800:#9a3412;--bcm-new-ds-color-orange-900:#7c2d12;--bcm-new-ds-color-amber:#f59e0b;--bcm-new-ds-color-amber-50:#fffbeb;--bcm-new-ds-color-amber-100:#fef3c7;--bcm-new-ds-color-amber-200:#fde68a;--bcm-new-ds-color-amber-300:#fcd34d;--bcm-new-ds-color-amber-400:#fbbf24;--bcm-new-ds-color-amber-500:#f59e0b;--bcm-new-ds-color-amber-600:#d97706;--bcm-new-ds-color-amber-700:#b45309;--bcm-new-ds-color-amber-800:#92400e;--bcm-new-ds-color-amber-900:#78350f;--bcm-new-ds-color-yellow:#eab308;--bcm-new-ds-color-yellow-50:#fefce8;--bcm-new-ds-color-yellow-100:#fef9c3;--bcm-new-ds-color-yellow-200:#fef08a;--bcm-new-ds-color-yellow-300:#fde047;--bcm-new-ds-color-yellow-400:#facc15;--bcm-new-ds-color-yellow-500:#eab308;--bcm-new-ds-color-yellow-600:#ca8a04;--bcm-new-ds-color-yellow-700:#a16207;--bcm-new-ds-color-yellow-800:#854d0e;--bcm-new-ds-color-yellow-900:#713f12;--bcm-new-ds-color-lime:#84cc16;--bcm-new-ds-color-lime-50:#f7fee7;--bcm-new-ds-color-lime-100:#ecfccb;--bcm-new-ds-color-lime-200:#d9f99d;--bcm-new-ds-color-lime-300:#bef264;--bcm-new-ds-color-lime-400:#a3e635;--bcm-new-ds-color-lime-500:#84cc16;--bcm-new-ds-color-lime-600:#65a30d;--bcm-new-ds-color-lime-700:#4d7c0f;--bcm-new-ds-color-lime-800:#3f6212;--bcm-new-ds-color-lime-900:#365314;--bcm-new-ds-color-green:#22c55e;--bcm-new-ds-color-green-50:#f0fdf4;--bcm-new-ds-color-green-100:#dcfce7;--bcm-new-ds-color-green-200:#bbf7d0;--bcm-new-ds-color-green-300:#86efac;--bcm-new-ds-color-green-400:#4ade80;--bcm-new-ds-color-green-500:#22c55e;--bcm-new-ds-color-green-600:#16a34a;--bcm-new-ds-color-green-700:#15803d;--bcm-new-ds-color-green-800:#166534;--bcm-new-ds-color-green-900:#14532d;--bcm-new-ds-color-emerald:#10b981;--bcm-new-ds-color-emerald-50:#ecfdf5;--bcm-new-ds-color-emerald-100:#d1fae5;--bcm-new-ds-color-emerald-200:#a7f3d0;--bcm-new-ds-color-emerald-300:#6ee7b7;--bcm-new-ds-color-emerald-400:#34d399;--bcm-new-ds-color-emerald-500:#10b981;--bcm-new-ds-color-emerald-600:#059669;--bcm-new-ds-color-emerald-700:#047857;--bcm-new-ds-color-emerald-800:#065f46;--bcm-new-ds-color-emerald-900:#064e3b;--bcm-new-ds-color-teal:#14b8a6;--bcm-new-ds-color-teal-50:#f0fdfa;--bcm-new-ds-color-teal-100:#ccfbf1;--bcm-new-ds-color-teal-200:#99f6e4;--bcm-new-ds-color-teal-300:#5eead4;--bcm-new-ds-color-teal-400:#2dd4bf;--bcm-new-ds-color-teal-500:#14b8a6;--bcm-new-ds-color-teal-600:#0d9488;--bcm-new-ds-color-teal-700:#0f766e;--bcm-new-ds-color-teal-800:#115e59;--bcm-new-ds-color-teal-900:#134e4a;--bcm-new-ds-color-cyan:#06b6d4;--bcm-new-ds-color-cyan-50:#ecfeff;--bcm-new-ds-color-cyan-100:#cffafe;--bcm-new-ds-color-cyan-200:#a5f3fc;--bcm-new-ds-color-cyan-300:#67e8f9;--bcm-new-ds-color-cyan-400:#22d3ee;--bcm-new-ds-color-cyan-500:#06b6d4;--bcm-new-ds-color-cyan-600:#0891b2;--bcm-new-ds-color-cyan-700:#0e7490;--bcm-new-ds-color-cyan-800:#155e75;--bcm-new-ds-color-cyan-900:#164e63;--bcm-new-ds-color-sky:#0ea5e9;--bcm-new-ds-color-sky-50:#f0f9ff;--bcm-new-ds-color-sky-100:#e0f2fe;--bcm-new-ds-color-sky-200:#bae6fd;--bcm-new-ds-color-sky-300:#7dd3fc;--bcm-new-ds-color-sky-400:#38bdf8;--bcm-new-ds-color-sky-500:#0ea5e9;--bcm-new-ds-color-sky-600:#0284c7;--bcm-new-ds-color-sky-700:#0369a1;--bcm-new-ds-color-sky-800:#075985;--bcm-new-ds-color-sky-900:#0c4a6e;--bcm-new-ds-color-blue:#3b82f6;--bcm-new-ds-color-blue-50:#eff6ff;--bcm-new-ds-color-blue-100:#dbeafe;--bcm-new-ds-color-blue-200:#bfdbfe;--bcm-new-ds-color-blue-300:#93c5fd;--bcm-new-ds-color-blue-400:#60a5fa;--bcm-new-ds-color-blue-500:#3b82f6;--bcm-new-ds-color-blue-600:#2563eb;--bcm-new-ds-color-blue-700:#1d4ed8;--bcm-new-ds-color-blue-800:#1e40af;--bcm-new-ds-color-blue-900:#1e3a8a;--bcm-new-ds-color-indigo:#6366f1;--bcm-new-ds-color-indigo-50:#eef2ff;--bcm-new-ds-color-indigo-100:#e0e7ff;--bcm-new-ds-color-indigo-200:#c7d2fe;--bcm-new-ds-color-indigo-300:#a5b4fc;--bcm-new-ds-color-indigo-400:#818cf8;--bcm-new-ds-color-indigo-500:#6366f1;--bcm-new-ds-color-indigo-600:#4f46e5;--bcm-new-ds-color-indigo-700:#4338ca;--bcm-new-ds-color-indigo-800:#3730a3;--bcm-new-ds-color-indigo-900:#312e81;--bcm-new-ds-color-violet:#8b5cf6;--bcm-new-ds-color-violet-50:#f5f3ff;--bcm-new-ds-color-violet-100:#ede9fe;--bcm-new-ds-color-violet-200:#ddd6fe;--bcm-new-ds-color-violet-300:#c4b5fd;--bcm-new-ds-color-violet-400:#a78bfa;--bcm-new-ds-color-violet-500:#8b5cf6;--bcm-new-ds-color-violet-600:#7c3aed;--bcm-new-ds-color-violet-700:#6d28d9;--bcm-new-ds-color-violet-800:#5b21b6;--bcm-new-ds-color-violet-900:#4c1d95;--bcm-new-ds-color-purple:#a855f7;--bcm-new-ds-color-purple-50:#faf5ff;--bcm-new-ds-color-purple-100:#f3e8ff;--bcm-new-ds-color-purple-200:#e9d5ff;--bcm-new-ds-color-purple-300:#d8b4fe;--bcm-new-ds-color-purple-400:#c084fc;--bcm-new-ds-color-purple-500:#a855f7;--bcm-new-ds-color-purple-600:#9333ea;--bcm-new-ds-color-purple-700:#7e22ce;--bcm-new-ds-color-purple-800:#6b21a8;--bcm-new-ds-color-purple-900:#581c87;--bcm-new-ds-color-fuchsia:#d946ef;--bcm-new-ds-color-fuchsia-50:#fdf4ff;--bcm-new-ds-color-fuchsia-100:#fae8ff;--bcm-new-ds-color-fuchsia-200:#f5d0fe;--bcm-new-ds-color-fuchsia-300:#f0abfc;--bcm-new-ds-color-fuchsia-400:#e879f9;--bcm-new-ds-color-fuchsia-500:#d946ef;--bcm-new-ds-color-fuchsia-600:#c026d3;--bcm-new-ds-color-fuchsia-700:#a21caf;--bcm-new-ds-color-fuchsia-800:#86198f;--bcm-new-ds-color-fuchsia-900:#701a75;--bcm-new-ds-color-pink:#ec4899;--bcm-new-ds-color-pink-50:#fdf2f8;--bcm-new-ds-color-pink-100:#fce7f3;--bcm-new-ds-color-pink-200:#fbcfe8;--bcm-new-ds-color-pink-300:#f9a8d4;--bcm-new-ds-color-pink-400:#f472b6;--bcm-new-ds-color-pink-500:#ec4899;--bcm-new-ds-color-pink-600:#db2777;--bcm-new-ds-color-pink-700:#be185d;--bcm-new-ds-color-pink-800:#9d174d;--bcm-new-ds-color-pink-900:#831843;--bcm-new-ds-color-rose:#f43f5e;--bcm-new-ds-color-rose-50:#fff1f2;--bcm-new-ds-color-rose-100:#ffe4e6;--bcm-new-ds-color-rose-200:#fecdd3;--bcm-new-ds-color-rose-300:#fda4af;--bcm-new-ds-color-rose-400:#fb7185;--bcm-new-ds-color-rose-500:#f43f5e;--bcm-new-ds-color-rose-600:#e11d48;--bcm-new-ds-color-rose-700:#be123c;--bcm-new-ds-color-rose-800:#9f1239;--bcm-new-ds-color-rose-900:#881337}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}.bcm-radio-group{margin-bottom:8px;display:block}.bcm-radio-group.hidden{display:none}.bcm-radio-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-radio-group__container.vertical{gap:8px;flex-direction:column}.bcm-radio-group__container.full-width{max-width:100%}';export{y 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 s,h as i,H as a,g as l}from"./p-10caf4ce.js";import{I as c}from"./p-cd0490e2.js";import{G as o,s as n}from"./p-1672aa8b.js";import{c as r}from"./p-d5b08a77.js";import{B as w}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const b=class{constructor(s){t(this,s),this.tabChange=e(this,"tabChange",7),this._id=o.UID(),this.active="1",this.color="blue",this.size=w.Size.medium,this.headerItems=[]}connectedCallback(){var t;(null===(t=this.tabItems())||void 0===t?void 0:t.length)&&(this.headerItems=[],this.tabItems().forEach(((t,e)=>{let s=!!t.hasAttribute("active"),i=!!t.hasAttribute("disabled"),a=e+1;t.setAttribute("index",`${a}`),t.classList.add("tw-w-full");let l={slot:"header",content:"",active:s,disabled:i,index:a};const c=t.querySelector("bcm-tab-item-header");c?(l.content=c.innerHTML,c.classList.add("tw-hidden")):l.content=t.getAttribute("label")||`Tab ${a}`,s?(t.setAttribute("active",""),t.classList.add("tw-block"),t.classList.remove("tw-hidden"),this.active=a.toString()):(t.removeAttribute("active"),t.classList.remove("tw-block"),t.classList.add("tw-hidden")),this.headerItems.push(l)})),this.headerItems.some((t=>t.active))||(this.headerItems[0].active=!0,this.tabItems()[0].setAttribute("active",""),this.tabItems()[0].classList.add("tw-block"),this.tabItems()[0].classList.remove("tw-hidden")))}tabItems(){return n((()=>this.el.querySelectorAll("bcm-tab-item")),[])}handleTabClick(t){this.headerItems.forEach((t=>{t.active&&(t.active=!1)})),this.headerItems[t-1].active=!0,this.active=t.toString();const e=this.el.querySelectorAll("bcm-tab-item");e&&e.forEach((t=>{t.getAttribute("index")==this.active?(t.setAttribute("active",""),t.classList.add("tw-block"),t.classList.remove("tw-hidden")):(t.removeAttribute("active"),t.classList.remove("tw-block"),t.classList.add("tw-hidden"))})),this.inkBarControl(),s(this),this.tabChange.emit(this.active)}componentDidLoad(){this.inkBarControl()}async setActive(t){t>0&&t<=this.headerItems.length&&t!=+this.active&&!this.headerItems[t-1].disabled&&this.handleTabClick(t)}inkBarControl(){const t=this.el.querySelector("#ink-bar");if(t){const e=this.el.querySelectorAll("bcm-tab-item-header");e&&e.forEach((e=>{e.getAttribute("index")==this.active&&(t.style.width=e.offsetWidth+"px",t.style.transform=`translateX(${e.offsetLeft}px)`)}))}}render(){const{color:t,size:e}=this;let s,l,c;switch(e){case w.Size.small:s="2",l="1",c="2";break;case w.Size.medium:s="3",l="2",c="3";break;case w.Size.large:s="4",l="3",c="4";break;default:s="3",l="2",c="3"}return i(a,{class:"tw-font-sans tw-w-full tw-flex tw-flex-col tw-items-center"},i("div",{class:`tw-w-full tw-flex tw-flex-row tw-items-end tw-justify-between tw-mb-${l} tw-relative`},this.headerItems.map((e=>i("bcm-tab-item-header",{tabIndex:"1",class:r(`tw-text-${s} tw-py-${l} tw-transition-all tw-flex-1 tw-flex tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-gap-${c} tw-focus:outline-none`,e.disabled?"tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50":"tw-cursor-pointer",e.active?`tw-text-${t}-500 enabled:hover:tw-text-${t}-600 enabled:active:tw-text-${t}-700 enabled:focus-visible:tw-text-${t}-800`:"tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:active:tw-text-slate-600 enabled:focus-visible:tw-text-slate-700"),active:e.active,disabled:e.disabled,index:e.index,innerHTML:e.content,onClick:()=>!e.disabled&&this.handleTabClick(e.index)}))),i("div",{id:"ink-bar",class:`tw-bg-${t}-500 tw-h-[2px] tw-rounded-sm tw-mt-[-2px] tw-absolute tw-bottom-0 tw-left-0 tw-transition-transform`})),i("slot",null))}get el(){return l(this)}};!function(t,e,s,i){var a,l=arguments.length,c=l<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(l<3?a(c):l>3?a(e,s,c):a(e,s))||c);l>3&&c&&Object.defineProperty(e,s,c)}([c()],b.prototype,"el",void 0);export{b as bcm_tab_group}
5
+ import{r as t,c as e,f as s,h as i,H as a,g as l}from"./p-10caf4ce.js";import{I as c}from"./p-cd0490e2.js";import{G as o,s as n}from"./p-bd06379a.js";import{c as r}from"./p-d5b08a77.js";import{B as w}from"./p-c9bd85e9.js";import"./p-6f56f8ca.js";const b=class{constructor(s){t(this,s),this.tabChange=e(this,"tabChange",7),this._id=o.UID(),this.active="1",this.color="blue",this.size=w.Size.medium,this.headerItems=[]}connectedCallback(){var t;(null===(t=this.tabItems())||void 0===t?void 0:t.length)&&(this.headerItems=[],this.tabItems().forEach(((t,e)=>{let s=!!t.hasAttribute("active"),i=!!t.hasAttribute("disabled"),a=e+1;t.setAttribute("index",`${a}`),t.classList.add("tw-w-full");let l={slot:"header",content:"",active:s,disabled:i,index:a};const c=t.querySelector("bcm-tab-item-header");c?(l.content=c.innerHTML,c.classList.add("tw-hidden")):l.content=t.getAttribute("label")||`Tab ${a}`,s?(t.setAttribute("active",""),t.classList.add("tw-block"),t.classList.remove("tw-hidden"),this.active=a.toString()):(t.removeAttribute("active"),t.classList.remove("tw-block"),t.classList.add("tw-hidden")),this.headerItems.push(l)})),this.headerItems.some((t=>t.active))||(this.headerItems[0].active=!0,this.tabItems()[0].setAttribute("active",""),this.tabItems()[0].classList.add("tw-block"),this.tabItems()[0].classList.remove("tw-hidden")))}tabItems(){return n((()=>this.el.querySelectorAll("bcm-tab-item")),[])}handleTabClick(t){this.headerItems.forEach((t=>{t.active&&(t.active=!1)})),this.headerItems[t-1].active=!0,this.active=t.toString();const e=this.el.querySelectorAll("bcm-tab-item");e&&e.forEach((t=>{t.getAttribute("index")==this.active?(t.setAttribute("active",""),t.classList.add("tw-block"),t.classList.remove("tw-hidden")):(t.removeAttribute("active"),t.classList.remove("tw-block"),t.classList.add("tw-hidden"))})),this.inkBarControl(),s(this),this.tabChange.emit(this.active)}componentDidLoad(){this.inkBarControl()}async setActive(t){t>0&&t<=this.headerItems.length&&t!=+this.active&&!this.headerItems[t-1].disabled&&this.handleTabClick(t)}inkBarControl(){const t=this.el.querySelector("#ink-bar");if(t){const e=this.el.querySelectorAll("bcm-tab-item-header");e&&e.forEach((e=>{e.getAttribute("index")==this.active&&(t.style.width=e.offsetWidth+"px",t.style.transform=`translateX(${e.offsetLeft}px)`)}))}}render(){const{color:t,size:e}=this;let s,l,c;switch(e){case w.Size.small:s="2",l="1",c="2";break;case w.Size.medium:s="3",l="2",c="3";break;case w.Size.large:s="4",l="3",c="4";break;default:s="3",l="2",c="3"}return i(a,{class:"tw-font-sans tw-w-full tw-flex tw-flex-col tw-items-center"},i("div",{class:`tw-w-full tw-flex tw-flex-row tw-items-end tw-justify-between tw-mb-${l} tw-relative`},this.headerItems.map((e=>i("bcm-tab-item-header",{tabIndex:"1",class:r(`tw-text-${s} tw-py-${l} tw-transition-all tw-flex-1 tw-flex tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-gap-${c} tw-focus:outline-none`,e.disabled?"tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50":"tw-cursor-pointer",e.active?`tw-text-${t}-500 enabled:hover:tw-text-${t}-600 enabled:active:tw-text-${t}-700 enabled:focus-visible:tw-text-${t}-800`:"tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:active:tw-text-slate-600 enabled:focus-visible:tw-text-slate-700"),active:e.active,disabled:e.disabled,index:e.index,innerHTML:e.content,onClick:()=>!e.disabled&&this.handleTabClick(e.index)}))),i("div",{id:"ink-bar",class:`tw-bg-${t}-500 tw-h-[2px] tw-rounded-sm tw-mt-[-2px] tw-absolute tw-bottom-0 tw-left-0 tw-transition-transform`})),i("slot",null))}get el(){return l(this)}};!function(t,e,s,i){var a,l=arguments.length,c=l<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(l<3?a(c):l>3?a(e,s,c):a(e,s))||c);l>3&&c&&Object.defineProperty(e,s,c)}([c()],b.prototype,"el",void 0);export{b as bcm_tab_group}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{s as f}from"./p-bd06379a.js";class a{}a.compareTwoArrayIsSame=(a,d)=>f((()=>a.length===d.length&&a.every(((f,a)=>f===d[a])))),a.isEmailValid=f=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(f),a.isUrlValid=f=>/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/i.test(f),a.isNumberValid=f=>/^[+-]?\d+$/.test(f),a.isNumberFloatValid=f=>/^\d+(\.\d+)?$/.test(f),a.isPhoneValid=f=>/^(?=.*[0-9])[- +()0-9]+$/.test(f),a.pattern=(f,a)=>new RegExp(a).test(f),a.isValidate=(f,d)=>{switch(d){case"email":return a.isEmailValid(f);case"url":return a.isUrlValid(f);case"number":return a.isNumberValid(f)||a.isNumberFloatValid(f);case"phone":return a.isPhoneValid(f);default:return!0}};export{a as V}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as i,h as t,H as a,g as o}from"./p-10caf4ce.js";import{c as s}from"./p-d5b08a77.js";import{I as l}from"./p-cd0490e2.js";import{C as p}from"./p-436364c8.js";import{e as n}from"./p-8c018ae0.js";import"./p-6f56f8ca.js";var r;!function(e){e.black="black",e.white="white",e["prime-blue"]="prime-blue",e.grey="grey",e.blue="blue",e.warmyellow="warmyellow",e.yellow="yellow",e.limegreen="limegreen",e.red="red",e.darkorange="darkorange",e.orange="orange",e.green="green",e.turquosie="turquosie",e.cobaltblue="cobaltblue",e.magenta="magenta",e.purple="purple",e["bc-red"]="bc-red",e["bc-blue"]="bc-blue",e["bc-green"]="bc-green",e["bc-orange"]="bc-orange"}(r||(r={}));const c=class{constructor(t){e(this,t),this.checkedChange=i(this,"bcm-old-tag-checked-change",7),this.tagDissmisable=i(this,"bcm-old-tag-dissmisable",7),this.type="basic",this.size="size-1",this.checked=!1,this.value="",this.hidden=!1,this._id=(4*Math.random()).toString(16).replace(".",""),this.maxWidth=!1,this._internal_id=(4*Math.random()).toString(16).replace(".","")}handleClick(){"checkable"===this.type&&(this.checked=!this.checked)}onCheckedChange(e,i){this.checkedChange.emit({newValue:e,oldValue:i})}getColor(e){if(("basic"==this.type||"dissmisable"==this.type)&&r[e])return{color:n(p,r[e]+"-6"),borderColor:n(p,r[e]+"-3"),backgroundColor:n(p,r[e]+"-1")}}getSize(e,i=!1){return Number(e)==e&&(e="size-"+e),i&&(e={1:"12",2:"14",3:"16",4:"20",5:"24",6:"30",7:"38",8:"46",9:"56"}[e=(e=e.split("-"))[e.length-1]]),e}handleClose(){this.tagDissmisable.emit(this.el)}render(){const{type:e,color:i,value:o,customStyle:l,size:p}=this,n=s("tag",this.getSize(p),e),r=s(this.hidden?"hidden":null,this.maxWidth?"maxwidth":null);return"add"===e?t(a,{class:r},t("button",{class:n},t("span",{class:"left"},t("bcm-icon",{icon:"far fa-plus"})),o)):"dissmisable"===e?t(a,{class:r},t("span",{class:n,style:this.getColor(i)},t("span",{class:"value",style:l},o),t("span",{class:"right close-button",onClick:()=>this.handleClose(),style:{width:Number(this.getSize(p,!0))+2+"px"}},t("svg",{id:"close",style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},t("path",{d:"M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"}))))):"checkable"===e?t(a,{class:r},t("input",{type:"checkbox",checked:this.checked}),t("label",{class:n},o)):t(a,{class:r},t("span",{class:n,style:this.getColor(i)},o))}get el(){return o(this)}static get watchers(){return{checked:["onCheckedChange"]}}};(function(e,i,t,a){var o,s=arguments.length,l=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,i,t,a);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(l=(s<3?o(l):s>3?o(i,t,l):o(i,t))||l);s>3&&l&&Object.defineProperty(i,t,l)})([l()],c.prototype,"el",void 0),c.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}.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}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.maxwidth){max-width:100px}.tag{display:flex;align-items:center;justify-content:center;padding:0 8px;cursor:default;border-radius:48px;border:1px solid var(--bcm-color-grey-5);user-select:none;min-width:10px;min-height:20px}.tag.size-1{padding:calc(8px - 8px) 8px}.tag.size-2{padding:calc(9px - 8px) 9px}.tag.size-3{padding:calc(10px - 8px) 10px}.tag.size-4{padding:calc(11px - 8px) 11px}.tag.size-5{padding:calc(12px - 8px) 12px}.tag.size-6{padding:calc(13px - 8px) 13px}.tag.size-7{padding:calc(14px - 8px) 14px}.tag.size-8{padding:calc(15px - 8px) 15px}.tag.size-9{padding:calc(16px - 8px) 16px}.tag.basic,.tag.closeable,.tag.add,.tag.dissmisable{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8)}.tag.basic:hover,.tag.closeable:hover,.tag.add:hover,.tag.dissmisable:hover{opacity:0.85}.tag.dissmisable{color:var(--bcm-color-grey-10)}.tag.dissmisable .close-button{width:14px;cursor:pointer}.tag.dissmisable .close-button bcm-icon{color:var(--bcm-color-grey-7)}.tag.dissmisable .close-button:hover bcm-icon{color:var(--bcm-color-grey-10)}.tag.add{border-style:dashed;background-color:var(--bcm-color-grey-1)}.tag.checkable{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border-color:var(--bcm-color-grey-1)}.tag.checkable:hover{color:var(--bcm-color-prime-blue-5);cursor:pointer}.tag span{display:inline-flex}.tag span.left{margin-right:4px}.tag span.right{margin-left:4px}.tag:before,.tag:after{content:""}button{border:none;outline:0;cursor:pointer !important;margin:0}input[type=checkbox]{margin:0;width:0;height:0;visibility:hidden;position:absolute}input[type=checkbox]:checked+label{background-color:var(--bcm-color-prime-blue-6);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-prime-blue-6)}input[type=checkbox]:checked+label:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}input[type=checkbox]:checked+label.checkable:hover{color:var(--bcm-color-grey-1)}input[type=checkbox]:checked+label:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}';const h=class{constructor(i){e(this,i),this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.isShow=!1}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleChangeEvent(e){e.stopPropagation()}render(){const e=s("select-box"),i=s(this.hidden?"hidden":null,{show:this.isShow});return t(a,{class:i},t("div",{class:e},t("bcm-listbox",{id:"listbox-box"+this._internal_id,class:"listbox-box",_internal_id:this._internal_id,"inner-component":!0,"no-caption":!0,fullWidth:!0,_flex:"true"})))}get el(){return o(this)}};h.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}.select-box{flex:1}:host{z-index:-999;position:absolute;opacity:0;top:-10000;left:-10000;visibility:hidden !important;box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15)}:host(.show){opacity:1;z-index:100000;visibility:visible !important}';export{c as bcm_old_tag,h as bcm_select_box}
5
+ import{r as e,c as i,h as t,H as a,g as o}from"./p-10caf4ce.js";import{c as s}from"./p-d5b08a77.js";import{I as l}from"./p-cd0490e2.js";import{C as p}from"./p-436364c8.js";import{e as n}from"./p-3c7a0345.js";import"./p-6f56f8ca.js";var r;!function(e){e.black="black",e.white="white",e["prime-blue"]="prime-blue",e.grey="grey",e.blue="blue",e.warmyellow="warmyellow",e.yellow="yellow",e.limegreen="limegreen",e.red="red",e.darkorange="darkorange",e.orange="orange",e.green="green",e.turquosie="turquosie",e.cobaltblue="cobaltblue",e.magenta="magenta",e.purple="purple",e["bc-red"]="bc-red",e["bc-blue"]="bc-blue",e["bc-green"]="bc-green",e["bc-orange"]="bc-orange"}(r||(r={}));const c=class{constructor(t){e(this,t),this.checkedChange=i(this,"bcm-old-tag-checked-change",7),this.tagDissmisable=i(this,"bcm-old-tag-dissmisable",7),this.type="basic",this.size="size-1",this.checked=!1,this.value="",this.hidden=!1,this._id=(4*Math.random()).toString(16).replace(".",""),this.maxWidth=!1,this._internal_id=(4*Math.random()).toString(16).replace(".","")}handleClick(){"checkable"===this.type&&(this.checked=!this.checked)}onCheckedChange(e,i){this.checkedChange.emit({newValue:e,oldValue:i})}getColor(e){if(("basic"==this.type||"dissmisable"==this.type)&&r[e])return{color:n(p,r[e]+"-6"),borderColor:n(p,r[e]+"-3"),backgroundColor:n(p,r[e]+"-1")}}getSize(e,i=!1){return Number(e)==e&&(e="size-"+e),i&&(e={1:"12",2:"14",3:"16",4:"20",5:"24",6:"30",7:"38",8:"46",9:"56"}[e=(e=e.split("-"))[e.length-1]]),e}handleClose(){this.tagDissmisable.emit(this.el)}render(){const{type:e,color:i,value:o,customStyle:l,size:p}=this,n=s("tag",this.getSize(p),e),r=s(this.hidden?"hidden":null,this.maxWidth?"maxwidth":null);return"add"===e?t(a,{class:r},t("button",{class:n},t("span",{class:"left"},t("bcm-icon",{icon:"far fa-plus"})),o)):"dissmisable"===e?t(a,{class:r},t("span",{class:n,style:this.getColor(i)},t("span",{class:"value",style:l},o),t("span",{class:"right close-button",onClick:()=>this.handleClose(),style:{width:Number(this.getSize(p,!0))+2+"px"}},t("svg",{id:"close",style:{fill:"#595959",width:"14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},t("path",{d:"M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"}))))):"checkable"===e?t(a,{class:r},t("input",{type:"checkbox",checked:this.checked}),t("label",{class:n},o)):t(a,{class:r},t("span",{class:n,style:this.getColor(i)},o))}get el(){return o(this)}static get watchers(){return{checked:["onCheckedChange"]}}};(function(e,i,t,a){var o,s=arguments.length,l=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,i,t,a);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(l=(s<3?o(l):s>3?o(i,t,l):o(i,t))||l);s>3&&l&&Object.defineProperty(i,t,l)})([l()],c.prototype,"el",void 0),c.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}.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}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.maxwidth){max-width:100px}.tag{display:flex;align-items:center;justify-content:center;padding:0 8px;cursor:default;border-radius:48px;border:1px solid var(--bcm-color-grey-5);user-select:none;min-width:10px;min-height:20px}.tag.size-1{padding:calc(8px - 8px) 8px}.tag.size-2{padding:calc(9px - 8px) 9px}.tag.size-3{padding:calc(10px - 8px) 10px}.tag.size-4{padding:calc(11px - 8px) 11px}.tag.size-5{padding:calc(12px - 8px) 12px}.tag.size-6{padding:calc(13px - 8px) 13px}.tag.size-7{padding:calc(14px - 8px) 14px}.tag.size-8{padding:calc(15px - 8px) 15px}.tag.size-9{padding:calc(16px - 8px) 16px}.tag.basic,.tag.closeable,.tag.add,.tag.dissmisable{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8)}.tag.basic:hover,.tag.closeable:hover,.tag.add:hover,.tag.dissmisable:hover{opacity:0.85}.tag.dissmisable{color:var(--bcm-color-grey-10)}.tag.dissmisable .close-button{width:14px;cursor:pointer}.tag.dissmisable .close-button bcm-icon{color:var(--bcm-color-grey-7)}.tag.dissmisable .close-button:hover bcm-icon{color:var(--bcm-color-grey-10)}.tag.add{border-style:dashed;background-color:var(--bcm-color-grey-1)}.tag.checkable{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border-color:var(--bcm-color-grey-1)}.tag.checkable:hover{color:var(--bcm-color-prime-blue-5);cursor:pointer}.tag span{display:inline-flex}.tag span.left{margin-right:4px}.tag span.right{margin-left:4px}.tag:before,.tag:after{content:""}button{border:none;outline:0;cursor:pointer !important;margin:0}input[type=checkbox]{margin:0;width:0;height:0;visibility:hidden;position:absolute}input[type=checkbox]:checked+label{background-color:var(--bcm-color-prime-blue-6);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-prime-blue-6)}input[type=checkbox]:checked+label:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}input[type=checkbox]:checked+label.checkable:hover{color:var(--bcm-color-grey-1)}input[type=checkbox]:checked+label:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}';const h=class{constructor(i){e(this,i),this._internal_id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.isShow=!1}disconnectedCallback(){}componentWillLoad(){}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}handleChangeEvent(e){e.stopPropagation()}render(){const e=s("select-box"),i=s(this.hidden?"hidden":null,{show:this.isShow});return t(a,{class:i},t("div",{class:e},t("bcm-listbox",{id:"listbox-box"+this._internal_id,class:"listbox-box",_internal_id:this._internal_id,"inner-component":!0,"no-caption":!0,fullWidth:!0,_flex:"true"})))}get el(){return o(this)}};h.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}.select-box{flex:1}:host{z-index:-999;position:absolute;opacity:0;top:-10000;left:-10000;visibility:hidden !important;box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15)}:host(.show){opacity:1;z-index:100000;visibility:visible !important}';export{c as bcm_old_tag,h as bcm_select_box}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{c as t}from"./p-f9cb7ae4.js";import{G as e,s}from"./p-1672aa8b.js";const{state:a}=t({value:new Map,setData:{}}),c={removeState:t=>{a.value.delete(t)},getValue:t=>s((()=>a.value.get(t)),{}),setValue:t=>{const s=Object.assign(Object.assign({},t),{steps:t.steps&&t.steps.length>0&&t.steps.filter((t=>!t.hidden)).map(((s,a)=>({id:s.id||e.UID(),title:s.title||s._title||"Step "+(a+1),description:s.description||"",status:s.status||"default",disabled:t.linear?0!=a:s.disabled||!1,icon:s.icon||void 0,valid:s.valid||!0,loading:s.loading||!1,index:a+1,active:t.linear?0==a:t.active===a+1,isLast:a===t.steps.length-1,statusIcon:t.icon,headerHidden:s.hidden})))});a.value.set(t.id,s)},changeActiveStep:(t,e)=>{const s=a.value.get(t);s&&(s.active=e,s.steps=s.steps.map(((t,s)=>Object.assign(Object.assign({},t),{active:s===e-1}))))},getActiveIndex:t=>s((()=>a.value.get(t).active),0),changeStepStatus:(t,s,c)=>{const i=a.value.get(t);i&&i.steps&&(i.steps=i.steps.map((t=>Object.assign(Object.assign({},t),{status:t.id===s?c:t.status}))),i.el.tick=e.UID())},changeStepDisabled:(t,s,c)=>{const i=a.value.get(t);i&&i.steps&&(i.steps=i.steps.map((t=>Object.assign(Object.assign({},t),{disabled:t.id===s?c:t.disabled}))),i.el.tick=e.UID())},stepperReset:t=>{const s=a.value.get(t);s&&(s.active=1,s.steps=s.steps.map(((t,e)=>Object.assign(Object.assign({},t),{active:0===e,status:"default",disabled:0!==e,loading:!1}))),s.el.tick=e.UID())},setActiveIndex:(t,e)=>a.value.get(t).active=e};export{c as s}
5
+ import{c as t}from"./p-f9cb7ae4.js";import{G as e,s}from"./p-bd06379a.js";const{state:a}=t({value:new Map,setData:{}}),c={removeState:t=>{a.value.delete(t)},getValue:t=>s((()=>a.value.get(t)),{}),setValue:t=>{const s=Object.assign(Object.assign({},t),{steps:t.steps&&t.steps.length>0&&t.steps.filter((t=>!t.hidden)).map(((s,a)=>({id:s.id||e.UID(),title:s.title||s._title||"Step "+(a+1),description:s.description||"",status:s.status||"default",disabled:t.linear?0!=a:s.disabled||!1,icon:s.icon||void 0,valid:s.valid||!0,loading:s.loading||!1,index:a+1,active:t.linear?0==a:t.active===a+1,isLast:a===t.steps.length-1,statusIcon:t.icon,headerHidden:s.hidden})))});a.value.set(t.id,s)},changeActiveStep:(t,e)=>{const s=a.value.get(t);s&&(s.active=e,s.steps=s.steps.map(((t,s)=>Object.assign(Object.assign({},t),{active:s===e-1}))))},getActiveIndex:t=>s((()=>a.value.get(t).active),0),changeStepStatus:(t,s,c)=>{const i=a.value.get(t);i&&i.steps&&(i.steps=i.steps.map((t=>Object.assign(Object.assign({},t),{status:t.id===s?c:t.status}))),i.el.tick=e.UID())},changeStepDisabled:(t,s,c)=>{const i=a.value.get(t);i&&i.steps&&(i.steps=i.steps.map((t=>Object.assign(Object.assign({},t),{disabled:t.id===s?c:t.disabled}))),i.el.tick=e.UID())},stepperReset:t=>{const s=a.value.get(t);s&&(s.active=1,s.steps=s.steps.map(((t,e)=>Object.assign(Object.assign({},t),{active:0===e,status:"default",disabled:0!==e,loading:!1}))),s.el.tick=e.UID())},setActiveIndex:(t,e)=>a.value.get(t).active=e};export{c as s}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{C as e}from"./p-436364c8.js";import{e as f}from"./p-8c018ae0.js";import{c as a,g as r}from"./p-6f56f8ca.js";var d=String,t=function(){return{isColorSupported:!1,reset:d,bold:d,dim:d,italic:d,underline:d,inverse:d,hidden:d,strikethrough:d,black:d,red:d,green:d,yellow:d,blue:d,magenta:d,cyan:d,white:d,gray:d,bgBlack:d,bgRed:d,bgGreen:d,bgYellow:d,bgBlue:d,bgMagenta:d,bgCyan:d,bgWhite:d}},c=t();c.createColors=t;var n=a((function(e,f){Object.defineProperty(f,"__esModule",{value:!0}),function(e,f){for(var a in f)Object.defineProperty(e,a,{enumerable:!0,get:f[a]})}(f,{dim:()=>n,default:()=>o});const a=r(c);function r(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function t(e,f,a){"undefined"!=typeof process&&process.env.JEST_WORKER_ID||a&&d.has(a)||(a&&d.add(a),console.warn(""),f.forEach((f=>console.warn(e,"-",f))))}function n(e){return a.default.dim(e)}const o={info(e,f){t(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[f,e])},warn(e,f){t(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[f,e])},risk(e,f){t(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[f,e])}}})),o=a((function(e,f){Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"default",{enumerable:!0,get:()=>t});const a=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function d({version:e,from:f,to:r}){a.default.warn(`${f}-color-renamed`,[`As of Tailwind CSS ${e}, \`${f}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}const t={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return d({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return d({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return d({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return d({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return d({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}));const b=r(a((function(e){e.exports=(o.__esModule?o:{default:o}).default})));class s{}s.isHex=e=>/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e),s.isRgb=e=>/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),s.isRgba=e=>/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),s.isHsl=e=>/^hsl\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%)\)$/.test(e),s.isHsla=e=>/^hsla\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%),\s*(\d{1,3})\)$/.test(e),s.isVariable=e=>/^var\((.*)\)$/.test(e),s.extractVariable=e=>e.match(/^var\((.*)\)$/)[1],s.convertColorToHex=a=>{if(a){if(s.isVariable(a)){const e=s.extractVariable(a);return getComputedStyle(document.documentElement).getPropertyValue(e)}if(s.isHex(a))return a;if(s.isRgb(a)){const e=a.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/);return`#${(16777216+65536*parseInt(e[1])+256*parseInt(e[2])+parseInt(e[3])).toString(16).substring(1)}`}if(f(e,a))return f(e,a)}},s.reverseColor=e=>{let f=s.convertColorToHex(e).trim();if(f)return 4===f.length&&(f=`#${f[1]}${f[1]}${f[2]}${f[2]}${f[3]}${f[3]}`),(299*parseInt(f.substring(1,3),16)+587*parseInt(f.substring(3,5),16)+114*parseInt(f.substring(5,7),16))/1e3>=200?"#475569":"#f8fafc"},s.dsColor=e=>"var(--bcm-new-ds-color-"+e+")",s.getTwColorToHex=e=>s.getTwColor(e)||b.blue[500],s.getTwColor=(e,f=!1)=>{if(b[e])return b[e];const a=e.split("-"),r=a[a.length-1],d=a.slice(0,a.length-1).join("-");return b[d]&&b[d][r]?f?1:b[d][r]:b[d]?f?2:b[d]:(console.warn("Color not found in tailwind colors: "+e),0)},s.twColor=(e,f="500")=>{const a=e&&-1===e.indexOf("-")?`${e}-${f}`:e,r=s.getTwColor(a,!0);return 1===r?a:2===r?e:"blue-500"},s.twColorReverse=e=>s.reverseColor(s.getTwColorToHex(e));export{s as C}
5
+ import{C as e}from"./p-436364c8.js";import{e as f}from"./p-3c7a0345.js";import{c as a,g as r}from"./p-6f56f8ca.js";var d=String,t=function(){return{isColorSupported:!1,reset:d,bold:d,dim:d,italic:d,underline:d,inverse:d,hidden:d,strikethrough:d,black:d,red:d,green:d,yellow:d,blue:d,magenta:d,cyan:d,white:d,gray:d,bgBlack:d,bgRed:d,bgGreen:d,bgYellow:d,bgBlue:d,bgMagenta:d,bgCyan:d,bgWhite:d}},c=t();c.createColors=t;var n=a((function(e,f){Object.defineProperty(f,"__esModule",{value:!0}),function(e,f){for(var a in f)Object.defineProperty(e,a,{enumerable:!0,get:f[a]})}(f,{dim:()=>n,default:()=>o});const a=r(c);function r(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function t(e,f,a){"undefined"!=typeof process&&process.env.JEST_WORKER_ID||a&&d.has(a)||(a&&d.add(a),console.warn(""),f.forEach((f=>console.warn(e,"-",f))))}function n(e){return a.default.dim(e)}const o={info(e,f){t(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[f,e])},warn(e,f){t(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[f,e])},risk(e,f){t(a.default.bold(a.default.magenta("risk")),...Array.isArray(e)?[e]:[f,e])}}})),o=a((function(e,f){Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"default",{enumerable:!0,get:()=>t});const a=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function d({version:e,from:f,to:r}){a.default.warn(`${f}-color-renamed`,[`As of Tailwind CSS ${e}, \`${f}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}const t={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return d({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return d({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return d({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return d({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return d({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}));const b=r(a((function(e){e.exports=(o.__esModule?o:{default:o}).default})));class s{}s.isHex=e=>/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e),s.isRgb=e=>/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),s.isRgba=e=>/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e),s.isHsl=e=>/^hsl\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%)\)$/.test(e),s.isHsla=e=>/^hsla\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%),\s*(\d{1,3})\)$/.test(e),s.isVariable=e=>/^var\((.*)\)$/.test(e),s.extractVariable=e=>e.match(/^var\((.*)\)$/)[1],s.convertColorToHex=a=>{if(a){if(s.isVariable(a)){const e=s.extractVariable(a);return getComputedStyle(document.documentElement).getPropertyValue(e)}if(s.isHex(a))return a;if(s.isRgb(a)){const e=a.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/);return`#${(16777216+65536*parseInt(e[1])+256*parseInt(e[2])+parseInt(e[3])).toString(16).substring(1)}`}if(f(e,a))return f(e,a)}},s.reverseColor=e=>{let f=s.convertColorToHex(e).trim();if(f)return 4===f.length&&(f=`#${f[1]}${f[1]}${f[2]}${f[2]}${f[3]}${f[3]}`),(299*parseInt(f.substring(1,3),16)+587*parseInt(f.substring(3,5),16)+114*parseInt(f.substring(5,7),16))/1e3>=200?"#475569":"#f8fafc"},s.dsColor=e=>"var(--bcm-new-ds-color-"+e+")",s.getTwColorToHex=e=>s.getTwColor(e)||b.blue[500],s.getTwColor=(e,f=!1)=>{if(b[e])return b[e];const a=e.split("-"),r=a[a.length-1],d=a.slice(0,a.length-1).join("-");return b[d]&&b[d][r]?f?1:b[d][r]:b[d]?f?2:b[d]:(console.warn("Color not found in tailwind colors: "+e),0)},s.twColor=(e,f="500")=>{const a=e&&-1===e.indexOf("-")?`${e}-${f}`:e,r=s.getTwColor(a,!0);return 1===r?a:2===r?e:"blue-500"},s.twColorReverse=e=>s.reverseColor(s.getTwColorToHex(e));export{s as C}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as i,H as t,g as n}from"./p-10caf4ce.js";import{I as p}from"./p-cd0490e2.js";import{G as a}from"./p-1672aa8b.js";const s=class{constructor(i){e(this,i),this._id=a.UID(),this.multi=!1}componentDidRender(){this.multi||this.checkExpandedCount()}checkExpandedCount(){var e,i;const t=this.el.querySelectorAll(".bcm-expansion-panel");if(t&&Array.from(t).map((e=>e.expanded)).filter(Boolean).length>1){const n=null===(i=null===(e=Array.from(t).filter((e=>e.expanded)))||void 0===e?void 0:e.pop())||void 0===i?void 0:i.id;Array.from(t).forEach((e=>{e.id!==n&&(e.expanded=!1)}))}}open(e){if(this.multi)return;const i=e.detail,t=this.el.querySelectorAll(".bcm-expansion-panel");t&&t.forEach((e=>{e.id!==i&&(e.expanded=!1)}))}isLoad(e){var i,t,n;if(!this.multi){var p=(null===(t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.parentElement)||void 0===t?void 0:t.id)||null;"BCM-EXPANSION-PANEL"==((null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.nodeName)||null)&&this._id==p&&this.checkExpandedCount()}}render(){return i(t,{id:this._id},i("slot",null))}get el(){return n(this)}};(function(e,i,t,n){var p,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,i,t,n);else for(var o=e.length-1;o>=0;o--)(p=e[o])&&(s=(a<3?p(s):a>3?p(i,t,s):p(i,t))||s);a>3&&s&&Object.defineProperty(i,t,s)})([p()],s.prototype,"el",void 0),s.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{s as bcm_accordion}
5
+ import{r as e,h as i,H as t,g as n}from"./p-10caf4ce.js";import{I as p}from"./p-cd0490e2.js";import{G as a}from"./p-bd06379a.js";const s=class{constructor(i){e(this,i),this._id=a.UID(),this.multi=!1}componentDidRender(){this.multi||this.checkExpandedCount()}checkExpandedCount(){var e,i;const t=this.el.querySelectorAll(".bcm-expansion-panel");if(t&&Array.from(t).map((e=>e.expanded)).filter(Boolean).length>1){const n=null===(i=null===(e=Array.from(t).filter((e=>e.expanded)))||void 0===e?void 0:e.pop())||void 0===i?void 0:i.id;Array.from(t).forEach((e=>{e.id!==n&&(e.expanded=!1)}))}}open(e){if(this.multi)return;const i=e.detail,t=this.el.querySelectorAll(".bcm-expansion-panel");t&&t.forEach((e=>{e.id!==i&&(e.expanded=!1)}))}isLoad(e){var i,t,n;if(!this.multi){var p=(null===(t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.parentElement)||void 0===t?void 0:t.id)||null;"BCM-EXPANSION-PANEL"==((null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.nodeName)||null)&&this._id==p&&this.checkExpandedCount()}}render(){return i(t,{id:this._id},i("slot",null))}get el(){return n(this)}};(function(e,i,t,n){var p,a=arguments.length,s=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,i,t,n);else for(var o=e.length-1;o>=0;o--)(p=e[o])&&(s=(a<3?p(s):a>3?p(i,t,s):p(i,t))||s);a>3&&s&&Object.defineProperty(i,t,s)})([p()],s.prototype,"el",void 0),s.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{s as bcm_accordion}
@@ -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 e,d as s,H as o,g as r}from"./p-10caf4ce.js";import{E as n,D as a}from"./p-7e44e6b5.js";import{c as h}from"./p-d5b08a77.js";import{I as p}from"./p-cd0490e2.js";import"./p-8c018ae0.js";import"./p-6f56f8ca.js";const l=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.initialized=!1,this.setColorBeforeInitialized=!1,this._color="#4293CF",this.open=!1,this.value=null,this.size="medium",this.noCaption=!1,this.captionType="default",this.fullWidth=!1,this.disabled=!1,this.hidden=!1,this.required=!1,this.h=-1,this.s=1,this.v=1,this.a=1,this.selectedH=-1,this.selectedS=1,this.selectedV=1,this.selectedA=1,this.color={rgba:"",hex:""},this.inputValue="",this.mouseState="up"}componentWillLoad(){const t=this.hextohsv(this._color);this.s=t.s,this.v=t.v,this.h=t.h}componentDidRender(){this.initialized||Promise.all([this.initColorDragger(),this.initColorsDragger(),this.initTransparencyDragger()]).then((()=>{!this.setColorBeforeInitialized&&this._setColor(this._color),this.updateValue(),this.initialized=!0}))}initColorDragger(){if(!this.colorDragger)return this.colorDragger=new n({target:this.colorIndicatorElement,trigger:this.colorElement,direction:a.both,limit:{x:{min:0,max:this.colorElement.offsetWidth},y:{min:0,max:this.colorElement.offsetHeight}},snapOnMouseDown:!0,center:{x:this.colorIndicatorElement.offsetWidth/2,y:this.colorIndicatorElement.offsetHeight/2}}),this.colorDragger.on("drag",(t=>this.colorDrag(t))),Promise.resolve()}initColorsDragger(){if(!this.colorsDragger)return this.colorsDragger=new n({target:this.colorsIndicatorElement,trigger:this.colorsElement,direction:a.x,limit:{x:{min:0,max:this.colorsElement.offsetWidth}},snapOnMouseDown:!0,center:{x:this.colorsIndicatorElement.offsetWidth/2}}),this.colorsDragger.on("drag",(t=>this.colorsDrag(t))),Promise.resolve()}initTransparencyDragger(){}hsvtorgb(t){let i,e,s,o,r,n=t.h%360/60;r=t.v*t.s,o=r*(1-Math.abs(n%2-1)),i=e=s=t.v-r,n=~~n,i+=[r,o,0,0,o,r][n],e+=[o,r,r,o,0,0][n],s+=[0,0,o,r,r,o][n];const a={r:Math.round(255*i),g:Math.round(255*e),b:Math.round(255*s)};return Object.assign(Object.assign({},a),{hex:"#"+(16777216|a.b|a.g<<8|a.r<<16).toString(16).slice(1)})}rgbtohsv(t){let i,e,s,o,r=t.r,n=t.g,a=t.b;return(t.r>1||t.g>1||t.b>1)&&(r/=255,n/=255,a/=255),s=Math.max(r,n,a),o=s-Math.min(r,n,a),i=0==o?null:s==r?(n-a)/o+(n<a?6:0):s==n?(a-r)/o+2:(r-n)/o+4,i=i%6*60,e=0==o?0:o/s,{h:i,s:e,v:s}}hextohsv(t){return this.rgbtohsv(this.hextorgb(t))}hextorgb(t){return{r:parseInt(t.substr(1,2),16),g:parseInt(t.substr(3,2),16),b:parseInt(t.substr(5,2),16)}}colorDrag(t){const i=this.colorElement.offsetHeight;this.selectedS=t.x/this.colorElement.offsetWidth,this.selectedV=(i-t.y)/i,this.updateValue()}colorsDrag(t){this.h=t.x/this.colorsElement.offsetWidth*360,this.s=1,this.v=1,this.selectedH=this.h,this.updateValue()}setHsvColor(){const t=this.hsvtorgb({h:this.selectedH,s:this.selectedS,v:this.selectedV});return this.color={rgba:`rgba(${t.r}, ${t.g}, ${t.b}, ${this.a})`,hex:t.hex},this.color}_setColor(t,i=!1){if(/^#+([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t)){4===t.length&&(t=t.split("").map((t=>"#"!==t?t+t:t)).join(""));const e=this.hextohsv(t);this.h=e.h,this.s=1,this.v=1,this.selectedH=e.h,this.selectedS=e.s,this.selectedV=e.v,this.updateIndicators(),this.updateValue(i)}}updateIndicators(){const{colorsElement:t,colorElement:i,colorsIndicatorElement:e}=this;this.colorDragger.setPosition({x:this.selectedS*i.offsetWidth,y:i.offsetHeight-this.selectedV*i.offsetHeight}),this.colorsDragger.setPosition({x:this.selectedH*(t.offsetWidth-2*e.offsetWidth)/360})}updateValue(t=!1){const{selectedH:i,selectedS:e,selectedV:s}=this,o=this.hsvtorgb({h:i,s:e,v:s}).hex;this.value=o,t||this.updateInputValue(o)}updateInputValue(t){this.inputElement&&(this.inputElement.value=t)}handleClick(){this.open=!0}handleColorInputKeyUp(t){var i=t.path||t.composedPath&&t.composedPath();this._setColor(i[0].value,!0)}handleWindowClick(t){const i=t.target,e=i.classList,s=i.tagName.toLowerCase();!e.contains("sc-bcm-colorpicker")&&"bcm-colorpicker"!==s&&"up"===this.mouseState&&(this.open=!1,this.updateInputValue(this.value)),this.mouseState="up"}valueChange(){this.initialized&&this.change.emit(this.value)}async getValue(){return this.value}async setColor(t){this.setColorBeforeInitialized=!0,this._setColor(t)}render(){const{label:t,required:i,noCaption:r,caption:n,captionError:a,captionType:p}=this,l=h("color-picker",{open:this.open}),c=h("size-1","input-caption","caption-"+p);return e(o,null,e("div",{class:l,onClick:()=>this.handleClick()},t&&e("div",null,e("bcm-label",{tooltip:this.tooltip,type:p,value:t,required:i})),e("div",{class:"input"},e("div",{class:"active-color"},e("div",{class:"color-thumb",style:{backgroundColor:this.value}})),e("span",{class:"icon",slot:"suffix"},e("svg",{style:{fill:"#595959",width:" 14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M483.89 28.14l-.02-.02-.03-.03c-37.47-37.47-98.26-37.46-135.72.03l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-63.6 63.6c-9.37 9.37-9.37 24.57 0 33.94l16.98 16.98L50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62 16.96 16.96c9.44 9.44 24.65 9.31 33.94 0l63.6-63.6c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.5-37.47 37.5-98.25.02-135.73zM144.8 427.32a15.892 15.892 0 0 1-11.31 4.68H80v-53.49c0-4.27 1.66-8.29 4.69-11.31l126.63-126.62 60.12 60.12L144.8 427.32zm305.14-297.38l-77.09 77.09-33.94 33.94 30.07 30.06-29.66 29.66-128-128 29.66-29.65 30.06 30.07L382.08 62.05c9.05-9.06 21.1-14.05 33.91-14.05 12.82 0 24.86 4.98 33.91 14.04l.04.04C459.01 71.14 464 83.19 464 96.01c0 12.81-5 24.86-14.06 33.93z"})))),!r&&e("div",{class:"caption-area"},"error"==p?e("span",{class:c}," ",a," "):n&&e("span",{class:c}," ",n," ")),e("div",{class:"picker"},e("div",{class:"input"},e("input",{type:"text",class:"color-input",maxlength:"7",ref:t=>this.inputElement=t,onKeyUp:t=>this.handleColorInputKeyUp(t)})),e("div",{class:"color",onMouseDown:()=>this.mouseState="down",style:{backgroundColor:this.hsvtorgb({h:this.h,s:this.s,v:this.v}).hex},ref:t=>this.colorElement=t},e("img",{src:s("./static/color.svg")}),e("div",{class:"color-indicator",ref:t=>this.colorIndicatorElement=t})),e("div",{class:"colors-transparency"},e("div",{class:"colors",onMouseDown:()=>this.mouseState="down",ref:t=>this.colorsElement=t},e("div",{class:"colors-holder"},e("img",{src:s("./static/colors.svg")})),e("div",{class:"colors-indicator",ref:t=>this.colorsIndicatorElement=t}))))))}static get assetsDirs(){return["static"]}get el(){return r(this)}static get watchers(){return{value:["valueChange"]}}};(function(t,i,e,s){var o,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(i,e,n):o(i,e))||n);r>3&&n&&Object.defineProperty(i,e,n)})([p()],l.prototype,"el",void 0),l.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{position:relative;margin:0 0 8px 0}.color-picker{position:relative;width:200px}.color-picker.open .picker{opacity:1;visibility:visible;transform:scale(1) translateY(56px)}.picker{width:300px;position:absolute;top:0;z-index:1;background-color:#ffffff;border:1px solid #F6F6F6;box-shadow:0px 3px 3.6px 0.4px rgba(0, 0, 0, 0.15);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px)}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.input{display:flex;cursor:pointer;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.color{position:relative;width:100%;height:166px;user-select:none}.color img{width:100%;height:100%;user-select:none;pointer-events:none}.color-indicator{position:absolute;top:0;left:0;width:17px;height:17px;border:1px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.25);transform:translate(0, 0);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.colors{position:relative;width:100%;height:16px;margin-top:8px}.colors img{width:100%;user-select:none;pointer-events:none}.colors-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;user-select:none}.colors-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.transparency{position:relative;width:100%;height:16px;margin-top:8px}.transparency-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;background:transparent none repeat center center/20px}.transparency-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box}.colors-transparency{padding:16px}.active-color{display:flex;align-items:center;width:100%;height:30px}.active-color .color-thumb{width:100%;height:100%;background-color:transparent;border-radius:1px 0 0 1px}.active-color .color-text{font-size:14px;color:#656565;margin-left:8px}.icon{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;color:var(--bcm-color-grey-6)}.color-input{border:none;width:100%;padding:10px;outline:none;-webkit-tap-highlight-color:transparent}';export{l as bcm_colorpicker}
5
+ import{r as t,c as i,h as e,d as s,H as o,g as r}from"./p-10caf4ce.js";import{E as n,D as a}from"./p-5ae0a59b.js";import{c as h}from"./p-d5b08a77.js";import{I as p}from"./p-cd0490e2.js";import"./p-3c7a0345.js";import"./p-6f56f8ca.js";const l=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.initialized=!1,this.setColorBeforeInitialized=!1,this._color="#4293CF",this.open=!1,this.value=null,this.size="medium",this.noCaption=!1,this.captionType="default",this.fullWidth=!1,this.disabled=!1,this.hidden=!1,this.required=!1,this.h=-1,this.s=1,this.v=1,this.a=1,this.selectedH=-1,this.selectedS=1,this.selectedV=1,this.selectedA=1,this.color={rgba:"",hex:""},this.inputValue="",this.mouseState="up"}componentWillLoad(){const t=this.hextohsv(this._color);this.s=t.s,this.v=t.v,this.h=t.h}componentDidRender(){this.initialized||Promise.all([this.initColorDragger(),this.initColorsDragger(),this.initTransparencyDragger()]).then((()=>{!this.setColorBeforeInitialized&&this._setColor(this._color),this.updateValue(),this.initialized=!0}))}initColorDragger(){if(!this.colorDragger)return this.colorDragger=new n({target:this.colorIndicatorElement,trigger:this.colorElement,direction:a.both,limit:{x:{min:0,max:this.colorElement.offsetWidth},y:{min:0,max:this.colorElement.offsetHeight}},snapOnMouseDown:!0,center:{x:this.colorIndicatorElement.offsetWidth/2,y:this.colorIndicatorElement.offsetHeight/2}}),this.colorDragger.on("drag",(t=>this.colorDrag(t))),Promise.resolve()}initColorsDragger(){if(!this.colorsDragger)return this.colorsDragger=new n({target:this.colorsIndicatorElement,trigger:this.colorsElement,direction:a.x,limit:{x:{min:0,max:this.colorsElement.offsetWidth}},snapOnMouseDown:!0,center:{x:this.colorsIndicatorElement.offsetWidth/2}}),this.colorsDragger.on("drag",(t=>this.colorsDrag(t))),Promise.resolve()}initTransparencyDragger(){}hsvtorgb(t){let i,e,s,o,r,n=t.h%360/60;r=t.v*t.s,o=r*(1-Math.abs(n%2-1)),i=e=s=t.v-r,n=~~n,i+=[r,o,0,0,o,r][n],e+=[o,r,r,o,0,0][n],s+=[0,0,o,r,r,o][n];const a={r:Math.round(255*i),g:Math.round(255*e),b:Math.round(255*s)};return Object.assign(Object.assign({},a),{hex:"#"+(16777216|a.b|a.g<<8|a.r<<16).toString(16).slice(1)})}rgbtohsv(t){let i,e,s,o,r=t.r,n=t.g,a=t.b;return(t.r>1||t.g>1||t.b>1)&&(r/=255,n/=255,a/=255),s=Math.max(r,n,a),o=s-Math.min(r,n,a),i=0==o?null:s==r?(n-a)/o+(n<a?6:0):s==n?(a-r)/o+2:(r-n)/o+4,i=i%6*60,e=0==o?0:o/s,{h:i,s:e,v:s}}hextohsv(t){return this.rgbtohsv(this.hextorgb(t))}hextorgb(t){return{r:parseInt(t.substr(1,2),16),g:parseInt(t.substr(3,2),16),b:parseInt(t.substr(5,2),16)}}colorDrag(t){const i=this.colorElement.offsetHeight;this.selectedS=t.x/this.colorElement.offsetWidth,this.selectedV=(i-t.y)/i,this.updateValue()}colorsDrag(t){this.h=t.x/this.colorsElement.offsetWidth*360,this.s=1,this.v=1,this.selectedH=this.h,this.updateValue()}setHsvColor(){const t=this.hsvtorgb({h:this.selectedH,s:this.selectedS,v:this.selectedV});return this.color={rgba:`rgba(${t.r}, ${t.g}, ${t.b}, ${this.a})`,hex:t.hex},this.color}_setColor(t,i=!1){if(/^#+([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t)){4===t.length&&(t=t.split("").map((t=>"#"!==t?t+t:t)).join(""));const e=this.hextohsv(t);this.h=e.h,this.s=1,this.v=1,this.selectedH=e.h,this.selectedS=e.s,this.selectedV=e.v,this.updateIndicators(),this.updateValue(i)}}updateIndicators(){const{colorsElement:t,colorElement:i,colorsIndicatorElement:e}=this;this.colorDragger.setPosition({x:this.selectedS*i.offsetWidth,y:i.offsetHeight-this.selectedV*i.offsetHeight}),this.colorsDragger.setPosition({x:this.selectedH*(t.offsetWidth-2*e.offsetWidth)/360})}updateValue(t=!1){const{selectedH:i,selectedS:e,selectedV:s}=this,o=this.hsvtorgb({h:i,s:e,v:s}).hex;this.value=o,t||this.updateInputValue(o)}updateInputValue(t){this.inputElement&&(this.inputElement.value=t)}handleClick(){this.open=!0}handleColorInputKeyUp(t){var i=t.path||t.composedPath&&t.composedPath();this._setColor(i[0].value,!0)}handleWindowClick(t){const i=t.target,e=i.classList,s=i.tagName.toLowerCase();!e.contains("sc-bcm-colorpicker")&&"bcm-colorpicker"!==s&&"up"===this.mouseState&&(this.open=!1,this.updateInputValue(this.value)),this.mouseState="up"}valueChange(){this.initialized&&this.change.emit(this.value)}async getValue(){return this.value}async setColor(t){this.setColorBeforeInitialized=!0,this._setColor(t)}render(){const{label:t,required:i,noCaption:r,caption:n,captionError:a,captionType:p}=this,l=h("color-picker",{open:this.open}),c=h("size-1","input-caption","caption-"+p);return e(o,null,e("div",{class:l,onClick:()=>this.handleClick()},t&&e("div",null,e("bcm-label",{tooltip:this.tooltip,type:p,value:t,required:i})),e("div",{class:"input"},e("div",{class:"active-color"},e("div",{class:"color-thumb",style:{backgroundColor:this.value}})),e("span",{class:"icon",slot:"suffix"},e("svg",{style:{fill:"#595959",width:" 14px",height:"14px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M483.89 28.14l-.02-.02-.03-.03c-37.47-37.47-98.26-37.46-135.72.03l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-63.6 63.6c-9.37 9.37-9.37 24.57 0 33.94l16.98 16.98L50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62 16.96 16.96c9.44 9.44 24.65 9.31 33.94 0l63.6-63.6c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.5-37.47 37.5-98.25.02-135.73zM144.8 427.32a15.892 15.892 0 0 1-11.31 4.68H80v-53.49c0-4.27 1.66-8.29 4.69-11.31l126.63-126.62 60.12 60.12L144.8 427.32zm305.14-297.38l-77.09 77.09-33.94 33.94 30.07 30.06-29.66 29.66-128-128 29.66-29.65 30.06 30.07L382.08 62.05c9.05-9.06 21.1-14.05 33.91-14.05 12.82 0 24.86 4.98 33.91 14.04l.04.04C459.01 71.14 464 83.19 464 96.01c0 12.81-5 24.86-14.06 33.93z"})))),!r&&e("div",{class:"caption-area"},"error"==p?e("span",{class:c}," ",a," "):n&&e("span",{class:c}," ",n," ")),e("div",{class:"picker"},e("div",{class:"input"},e("input",{type:"text",class:"color-input",maxlength:"7",ref:t=>this.inputElement=t,onKeyUp:t=>this.handleColorInputKeyUp(t)})),e("div",{class:"color",onMouseDown:()=>this.mouseState="down",style:{backgroundColor:this.hsvtorgb({h:this.h,s:this.s,v:this.v}).hex},ref:t=>this.colorElement=t},e("img",{src:s("./static/color.svg")}),e("div",{class:"color-indicator",ref:t=>this.colorIndicatorElement=t})),e("div",{class:"colors-transparency"},e("div",{class:"colors",onMouseDown:()=>this.mouseState="down",ref:t=>this.colorsElement=t},e("div",{class:"colors-holder"},e("img",{src:s("./static/colors.svg")})),e("div",{class:"colors-indicator",ref:t=>this.colorsIndicatorElement=t}))))))}static get assetsDirs(){return["static"]}get el(){return r(this)}static get watchers(){return{value:["valueChange"]}}};(function(t,i,e,s){var o,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(i,e,n):o(i,e))||n);r>3&&n&&Object.defineProperty(i,e,n)})([p()],l.prototype,"el",void 0),l.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{position:relative;margin:0 0 8px 0}.color-picker{position:relative;width:200px}.color-picker.open .picker{opacity:1;visibility:visible;transform:scale(1) translateY(56px)}.picker{width:300px;position:absolute;top:0;z-index:1;background-color:#ffffff;border:1px solid #F6F6F6;box-shadow:0px 3px 3.6px 0.4px rgba(0, 0, 0, 0.15);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px)}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.input{display:flex;cursor:pointer;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.color{position:relative;width:100%;height:166px;user-select:none}.color img{width:100%;height:100%;user-select:none;pointer-events:none}.color-indicator{position:absolute;top:0;left:0;width:17px;height:17px;border:1px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.25);transform:translate(0, 0);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.colors{position:relative;width:100%;height:16px;margin-top:8px}.colors img{width:100%;user-select:none;pointer-events:none}.colors-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;user-select:none}.colors-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box;pointer-events:none}.transparency{position:relative;width:100%;height:16px;margin-top:8px}.transparency-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;background:transparent none repeat center center/20px}.transparency-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100px;user-select:none;box-sizing:border-box}.colors-transparency{padding:16px}.active-color{display:flex;align-items:center;width:100%;height:30px}.active-color .color-thumb{width:100%;height:100%;background-color:transparent;border-radius:1px 0 0 1px}.active-color .color-text{font-size:14px;color:#656565;margin-left:8px}.icon{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;color:var(--bcm-color-grey-6)}.color-input{border:none;width:100%;padding:10px;outline:none;-webkit-tap-highlight-color:transparent}';export{l as bcm_colorpicker}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,f as s,h as e,H as h,g as a}from"./p-10caf4ce.js";import{S as n,T as c,D as l}from"./p-e53f8a82.js";import{d as r,c as o}from"./p-8c018ae0.js";import{c as p}from"./p-d5b08a77.js";import{I as b}from"./p-cd0490e2.js";import"./p-6f56f8ca.js";const m=class{constructor(s){t(this,s),this.click=i(this,"bcm-click",7),this.change=i(this,"bcm-change",7),this.bcmTabsActiveItem=i(this,"bcm-tabs-active-item",7),this.tabs=[],this.firstInit=!0,this.count=0,this.size=n.large,this.type=c.normal,this.direction=l.horizontal,this.hidden=!1,this.fullWidth=!1,this.underline=!0,this.activeChild=1,this.lineOpts={top:"0px",left:"0px",right:"0px",width:"0px",height:"0px"},this.prevButton=null,this.nextButton=null,this.completeButton=null,this.prevButtonState="disabled",this.nextButtonState="disabled",this.completeButtonState="disabled"}async config(t){return t.prevButton&&(t.prevButton.id&&(this.prevButton=document.querySelector("#"+t.prevButton.id)),t.prevButton.state&&(this.prevButtonState=t.prevButton.state)),t.nextButton&&(t.nextButton.id&&(this.nextButton=document.querySelector("#"+t.nextButton.id)),t.nextButton.state&&(this.nextButtonState=t.nextButton.state)),t.completeButton&&(t.completeButton.id&&(this.completeButton=document.querySelector("#"+t.completeButton.id)),t.completeButton.state&&(this.completeButtonState=t.completeButton.state)),this.buttonControl(),!0}async next(){var t="#"+this.tabs[this.getActive()-1].formControl,i=document.querySelector(t),s=null;return i&&(s=await i.submit()),(i&&s.isValid||!i)&&(this.activeChild=this.getActive()+1,this.active(this.tabs[this.getActive()-1].tabId)),s}async prev(){return this.activeChild=this.getActive()-1,this.active(this.tabs[this.getActive()-1].tabId),this.activeChild}async complete(){const t=[];var i=!0;this.tabs.forEach((i=>{if(i.formControl){const s=document.querySelector("#"+i.formControl);s&&t.push(s.submit())}}));const s=await Promise.all(t);return s.forEach((t=>{if(!1===t.isValid&&(i=!1,t.formName)){const i=this.tabs.filter((i=>i.formControl==t.formName))[0].tabId;this.active(i)}})),{isValid:i,Forms:s}}async active(t){var i=0;this.activeChild=-1,await r(100),o(this.el,"bcm-tab").forEach((s=>{i++,s.tabId==t&&(s.disabled=!1,s.active=!0,this.bcmTabsActiveItem.emit(s.tabId),this.activeChild=i),s.tabId!=t&&(s.active=!1)}))}async getActiveTab(){return this.tabs[this.getActive()-1].tabId}async getActiveIndex(){return this.getActive()}async error(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="error")}))}async info(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="processing")}))}async warning(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="warning")}))}async success(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="success")}))}async statusReset(t){o(this.el,"bcm-tab").forEach((i=>{i.tabId==t&&(i.badge=!1,i.blink=!1,i.status="default")}))}buttonControl(){this.prevButton&&(1==this.activeChild?this.prevButton.setAttribute(this.prevButtonState,"true"):this.prevButton.removeAttribute(this.prevButtonState)),this.nextButton&&(this.getActive()==this.count?this.nextButton.setAttribute(this.nextButtonState,"true"):this.nextButton.removeAttribute(this.nextButtonState)),this.completeButton&&(this.getActive()==this.count?this.completeButton.removeAttribute(this.completeButtonState):this.completeButton.setAttribute(this.completeButtonState,"true"))}componentDidRender(){if(!this.firstInit)return;let t;t=this.el.shadowRoot.querySelector("slot").assignedElements(),this.tabs=[],this.activeChild=this.getActive();var i=!1,s=null,e=0;t.map((t=>{e++,"stepper"==this.type&&(t.disabled=!0),s||(s=t.tabId),"bcm-tab"==String(t.tagName).toLowerCase()&&(t.type=this.type,this.tabs.push(t)-1==this.activeChild&&(this.activateChild(this.activeChild),i=!0)),this.count=e})),i||this.active(s),setTimeout((()=>{this.el.shadowRoot.querySelector(".tabs").classList.add("animatable")}),500)}componentDidLoad(){o(this.el,"bcm-tab").forEach((t=>{t.active&&(this.bcmTabsActiveItem.emit(t.tabId),t.disabled=!1)}))}getActive(){const t=o(this.el,"bcm-tab").findIndex((t=>t.active));return t>=0?t+1:1}getChildIdx(t){let i=1;for(;t.previousElementSibling;)t=t.previousElementSibling,i++;return i}activateChild(t){const i=this.tabs[t-=1];i&&(this.tabs.forEach((t=>t.active=!1)),i.active=!0,i.disabled=!1,this.transformLine(t),this.firstInit&&s(this.el),this.firstInit=!1)}transformLine(t){const i=this.tabs[t].getBoundingClientRect(),s=i.top+window.pageYOffset,e=i.left+window.pageXOffset,h=i.width,a=i.height;"horizontal"==this.direction?(this.lineOpts.top=s+a+"px",this.lineOpts.left=e+"px",this.lineOpts.width=h+"px",this.lineOpts.right="unset",this.lineOpts.height="2px"):(this.lineOpts.top=s+"px",this.lineOpts.left="unset",this.lineOpts.right="0",this.lineOpts.width="2px",this.lineOpts.height=a+"px")}getLineTransform(){return{"--bcm-tabs-line-top":this.lineOpts.top,"--bcm-tabs-line-left":this.lineOpts.left,"--bcm-tabs-line-width":this.lineOpts.width,"--bcm-tabs-line-right":this.lineOpts.right,"--bcm-tabs-line-height":this.lineOpts.height}}handleTabClick(t){const i=this.getChildIdx(t.target);this.activeChild=null,this.activeChild=i}handleTabClose(t){const i=t.target,s=this.getChildIdx(i);i.remove(),this.tabs.splice(s-1,1),s===this.activeChild&&(this.activeChild=1,this.activateChild(1))}activeChildChange(t){this.activateChild(t),this.change.emit(t),this.buttonControl()}windowResize(){this.transformLine(this.activeChild-1),s(this.el)}render(){const t=p("tabs",[this.direction],[this.size],[this.type],this.fullWidth?"full-width":null,this.underline?"underline":null),i=p(this.hidden?"hidden":null);return e(h,{class:i},e("div",{class:t,style:this.getLineTransform(),"on-bcm-click":t=>this.handleTabClick(t),"on-bcm-close":t=>this.handleTabClose(t)},e("slot",null)))}get el(){return a(this)}static get watchers(){return{activeChild:["activeChildChange"]}}};(function(t,i,s,e){var h,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(h=t[c])&&(n=(a<3?h(n):a>3?h(i,s,n):h(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([b()],m.prototype,"el",void 0),m.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}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:"";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:"";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}';export{m as bcm_tabs}
5
+ import{r as t,c as i,f as s,h as e,H as h,g as a}from"./p-10caf4ce.js";import{S as n,T as c,D as l}from"./p-e53f8a82.js";import{d as r,c as o}from"./p-3c7a0345.js";import{c as p}from"./p-d5b08a77.js";import{I as b}from"./p-cd0490e2.js";import"./p-6f56f8ca.js";const m=class{constructor(s){t(this,s),this.click=i(this,"bcm-click",7),this.change=i(this,"bcm-change",7),this.bcmTabsActiveItem=i(this,"bcm-tabs-active-item",7),this.tabs=[],this.firstInit=!0,this.count=0,this.size=n.large,this.type=c.normal,this.direction=l.horizontal,this.hidden=!1,this.fullWidth=!1,this.underline=!0,this.activeChild=1,this.lineOpts={top:"0px",left:"0px",right:"0px",width:"0px",height:"0px"},this.prevButton=null,this.nextButton=null,this.completeButton=null,this.prevButtonState="disabled",this.nextButtonState="disabled",this.completeButtonState="disabled"}async config(t){return t.prevButton&&(t.prevButton.id&&(this.prevButton=document.querySelector("#"+t.prevButton.id)),t.prevButton.state&&(this.prevButtonState=t.prevButton.state)),t.nextButton&&(t.nextButton.id&&(this.nextButton=document.querySelector("#"+t.nextButton.id)),t.nextButton.state&&(this.nextButtonState=t.nextButton.state)),t.completeButton&&(t.completeButton.id&&(this.completeButton=document.querySelector("#"+t.completeButton.id)),t.completeButton.state&&(this.completeButtonState=t.completeButton.state)),this.buttonControl(),!0}async next(){var t="#"+this.tabs[this.getActive()-1].formControl,i=document.querySelector(t),s=null;return i&&(s=await i.submit()),(i&&s.isValid||!i)&&(this.activeChild=this.getActive()+1,this.active(this.tabs[this.getActive()-1].tabId)),s}async prev(){return this.activeChild=this.getActive()-1,this.active(this.tabs[this.getActive()-1].tabId),this.activeChild}async complete(){const t=[];var i=!0;this.tabs.forEach((i=>{if(i.formControl){const s=document.querySelector("#"+i.formControl);s&&t.push(s.submit())}}));const s=await Promise.all(t);return s.forEach((t=>{if(!1===t.isValid&&(i=!1,t.formName)){const i=this.tabs.filter((i=>i.formControl==t.formName))[0].tabId;this.active(i)}})),{isValid:i,Forms:s}}async active(t){var i=0;this.activeChild=-1,await r(100),o(this.el,"bcm-tab").forEach((s=>{i++,s.tabId==t&&(s.disabled=!1,s.active=!0,this.bcmTabsActiveItem.emit(s.tabId),this.activeChild=i),s.tabId!=t&&(s.active=!1)}))}async getActiveTab(){return this.tabs[this.getActive()-1].tabId}async getActiveIndex(){return this.getActive()}async error(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="error")}))}async info(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="processing")}))}async warning(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="warning")}))}async success(t,i=!1){o(this.el,"bcm-tab").forEach((s=>{s.tabId==t&&(s.badge=!0,s.blink=i,s.status="success")}))}async statusReset(t){o(this.el,"bcm-tab").forEach((i=>{i.tabId==t&&(i.badge=!1,i.blink=!1,i.status="default")}))}buttonControl(){this.prevButton&&(1==this.activeChild?this.prevButton.setAttribute(this.prevButtonState,"true"):this.prevButton.removeAttribute(this.prevButtonState)),this.nextButton&&(this.getActive()==this.count?this.nextButton.setAttribute(this.nextButtonState,"true"):this.nextButton.removeAttribute(this.nextButtonState)),this.completeButton&&(this.getActive()==this.count?this.completeButton.removeAttribute(this.completeButtonState):this.completeButton.setAttribute(this.completeButtonState,"true"))}componentDidRender(){if(!this.firstInit)return;let t;t=this.el.shadowRoot.querySelector("slot").assignedElements(),this.tabs=[],this.activeChild=this.getActive();var i=!1,s=null,e=0;t.map((t=>{e++,"stepper"==this.type&&(t.disabled=!0),s||(s=t.tabId),"bcm-tab"==String(t.tagName).toLowerCase()&&(t.type=this.type,this.tabs.push(t)-1==this.activeChild&&(this.activateChild(this.activeChild),i=!0)),this.count=e})),i||this.active(s),setTimeout((()=>{this.el.shadowRoot.querySelector(".tabs").classList.add("animatable")}),500)}componentDidLoad(){o(this.el,"bcm-tab").forEach((t=>{t.active&&(this.bcmTabsActiveItem.emit(t.tabId),t.disabled=!1)}))}getActive(){const t=o(this.el,"bcm-tab").findIndex((t=>t.active));return t>=0?t+1:1}getChildIdx(t){let i=1;for(;t.previousElementSibling;)t=t.previousElementSibling,i++;return i}activateChild(t){const i=this.tabs[t-=1];i&&(this.tabs.forEach((t=>t.active=!1)),i.active=!0,i.disabled=!1,this.transformLine(t),this.firstInit&&s(this.el),this.firstInit=!1)}transformLine(t){const i=this.tabs[t].getBoundingClientRect(),s=i.top+window.pageYOffset,e=i.left+window.pageXOffset,h=i.width,a=i.height;"horizontal"==this.direction?(this.lineOpts.top=s+a+"px",this.lineOpts.left=e+"px",this.lineOpts.width=h+"px",this.lineOpts.right="unset",this.lineOpts.height="2px"):(this.lineOpts.top=s+"px",this.lineOpts.left="unset",this.lineOpts.right="0",this.lineOpts.width="2px",this.lineOpts.height=a+"px")}getLineTransform(){return{"--bcm-tabs-line-top":this.lineOpts.top,"--bcm-tabs-line-left":this.lineOpts.left,"--bcm-tabs-line-width":this.lineOpts.width,"--bcm-tabs-line-right":this.lineOpts.right,"--bcm-tabs-line-height":this.lineOpts.height}}handleTabClick(t){const i=this.getChildIdx(t.target);this.activeChild=null,this.activeChild=i}handleTabClose(t){const i=t.target,s=this.getChildIdx(i);i.remove(),this.tabs.splice(s-1,1),s===this.activeChild&&(this.activeChild=1,this.activateChild(1))}activeChildChange(t){this.activateChild(t),this.change.emit(t),this.buttonControl()}windowResize(){this.transformLine(this.activeChild-1),s(this.el)}render(){const t=p("tabs",[this.direction],[this.size],[this.type],this.fullWidth?"full-width":null,this.underline?"underline":null),i=p(this.hidden?"hidden":null);return e(h,{class:i},e("div",{class:t,style:this.getLineTransform(),"on-bcm-click":t=>this.handleTabClick(t),"on-bcm-close":t=>this.handleTabClose(t)},e("slot",null)))}get el(){return a(this)}static get watchers(){return{activeChild:["activeChildChange"]}}};(function(t,i,s,e){var h,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(h=t[c])&&(n=(a<3?h(n):a>3?h(i,s,n):h(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([b()],m.prototype,"el",void 0),m.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}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:"";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:"";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}';export{m as bcm_tabs}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as i,h as e,H as s,g as a}from"./p-10caf4ce.js";import{c as r}from"./p-d5b08a77.js";import{I as n}from"./p-cd0490e2.js";import{S as o}from"./p-04c8b756.js";import{d as h,a as c}from"./p-3c7a0345.js";import"./p-6f56f8ca.js";import"./p-c9bd85e9.js";const l=new class{constructor(){}response(t,i){return Object.assign(Object.assign({valid:t},i&&{message:i}),!t&&{type:"error"})}required(t,i){let e=this.response(!0);return""!=t&&""!=t&&null!=t&&null!=t&&!1!==t||(e=this.response(!1,"This field is required.")),i&&(i.valid||(e=this.response(!1,i.errorText)),t instanceof Object&&t.isValid&&0==t.isValid&&(e=this.response(!1,"This field is required."))),e}selfValidation(t){let i=this.response(!0);return null==t.captionError&&"error"!=t.captionType||(i=this.response(!1,t.captionError)),i}};const p=class{constructor(e){t(this,e),this.bcmForm=i(this,"bcm-form",7),this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[],this.Bromcom={errors:{targetFormNotExist:"target form is not exist --\x3e "},inputComponents:{INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch",CHECKBOX:"checkbox",RADIO_GROUP:"radio-group",CHECKBOX_GROUP:"checkbox-group",RANGE:"range",FORM:"form",FORM_GROUP:"form-group",LIST:"list",COLORPICKER:"colorpicker",DATE_PICKER:"date-picker",TIME_PICKER:"time-picker",DATETIME_PICKER:"datetime-picker",SELECT:"select",LISTBOX:"listbox"},helpers:{randomId:function(){return Math.random().toString(16).slice(2,-1)}}},this._id=(4*Math.random()).toString(16).replace(".",""),this.hidden=!1,this.validation=!1,this.name="",this.autocomplete=!1}handleSubmit(){}async submitFunction(){this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs(),await h(10);const t=await this.userFormData();var i={isValid:!0,formData:t};return this.name&&(i=Object.assign(Object.assign({},i),{formName:this.name})),this.isValid?(this.bcmForm.emit(i),i):(this.returnCaption={isValid:!1,message:"Please fill in all inputs",errorDetails:this.returnCaption,formData:t},this.name&&(this.returnCaption=Object.assign(Object.assign({},this.returnCaption),{formName:this.name})),this.bcmForm.emit(this.returnCaption),this.returnCaption)}async submit(){return Promise.resolve(this.submitFunction())}async set(t){var i;const e=this.validation;if(this.validation=!1,this.selector=this.el,await this.getInputs(),t&&(null===(i=this.inputs)||void 0===i?void 0:i.length)>0)for(const i of Object.keys(t)){const e=this.inputs.find((t=>t.name===i));if(e)try{await e.set(t[i])}catch(t){console.log(e.nodeName,"set",t)}}this.validation=e}async get(){var t;let i={};this.selector=this.el;const e=this.inputs;return await this.getInputs(),(null===(t=this.inputs)||void 0===t?void 0:t.length)>0&&this.inputs.forEach((async t=>{try{const e=await t.get();i=Object.assign(Object.assign({},i),{[t.name]:e})}catch(i){console.log(`${t.nodeName} get error`)}})),this.inputs=e,await h(10),Promise.resolve(i)}async setClear(){this.formData={},this.inputs=[],this.selector=this.el;let t=[];return await this.getInputs(),this.inputs.forEach((async i=>{try{t.push(await i.setClear())}catch(t){console.log(t)}})),await Promise.all(t).then((()=>{this.formData={},this.inputs=[],this.duplicateInput=[],this.isValid=!0,this.returnCaption=[]})),await h(10),Promise.resolve(!0)}async resetCaption(){await h(10),this.formData={},this.inputs=[],this.selector=this.el,await this.getInputs();for(const t of this.inputs)try{await t.resetCaption()}catch(i){console.log(t.nodeName,"rc p")}return await h(10),Promise.resolve()}async config(t){return t.validation&&(this.validation="boolean"==typeof t.validation&&t.validation),!0}async getInputs(){var t=this.selector;if(!t)return void console.warn(this.Bromcom.errors.targetFormNotExist+this.selector);const i=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));this.duplicateInput=[];const e=i.filter((t=>{var i;return!t["s-hn"]||"BcmForm"!==(null===(i=t["s-hn"])||void 0===i?void 0:i.nodeName)}));for(const t of e){if("bcm-checkbox-group"==o.lowercase(t.nodeName)){let i=t.querySelectorAll("bcm-checkbox");if(i)for(const t of i)this.duplicateInput.push(t.name)}if("bcm-form"==o.lowercase(t.nodeName)){const i=Array.from(t.querySelectorAll("bcm-"+Object.values(this.Bromcom.inputComponents).join(",bcm-")));let e={};for(const t of i){var s=t.name,a=t.value;e=Object.assign(Object.assign({},e),{[s]:a}),this.duplicateInput.push(t.name)}t.value=e;let r=t.querySelectorAll("bcm-checkbox");if(r)for(const t of r)this.duplicateInput.push(t.name)}}await h(10),this.inputs=e}getItemValue(t){return t.tagName.toLowerCase().replace("bcm-",""),t.value}isWrapperComponent(t){return["bcm-datetime-picker","bcm-date-picker","bcm-time-picker"].includes(t.toLowerCase())}isGroupComponent(t){return["bcm-checkbox-group"].includes(t.toLowerCase())}isListComponent(t){return["bcm-list"].includes(t.toLowerCase())}async userFormData(){this.formData={},this.isValid=!0,this.returnCaption=[];for(const i of this.inputs){const e=this.isGroupComponent(i.tagName),s=this.isWrapperComponent(i.tagName),a=s&&i,r=s?await i.getInput()&&i:i;if(this.validation){let t=null;if(s){const i=await a.isValid();t=l.required(r.value,i),t&&(r.value instanceof Object?0==r.value.isValid&&(t=l.required("",i)):t=l.required(r.value,i))}else if(e){const i=c(r,"bcm-checkbox:not(#bcm-indeterminate-element)");if(i&&i.length>0)for(const e of i)e&&!0===e.required&&(t=l.required(e.checked),t.valid?(e.noCaption=r.noCaption,e.captionError=null,e.captionType="default"):(e.noCaption=!1,e.captionError=t.message,e.captionType=t.type))}else t=l.required(r.value);if(r.required){t.valid?(r.captionError=null,r.captionType="default"):(r.captionError=t.message,r.captionType=t.type),await h(10);const i=l.selfValidation(r);t.valid&&(i.valid||(r.captionError=i.message,r.captionType=i.type))}let i=r.name,n=r.captionError;!r.hidden&&"error"==r.captionType&&(this.returnCaption=[...Array.from(this.returnCaption),{[i]:n}],this.isValid=!1)}if(r.name&&!this.duplicateInput.includes(r.name)){var t=this.getItemValue(r);t&&null!=t&&null!=t||(t=null),this.formData[r.name]=t}}return this.formData}async handleChange(t){const i=this.isWrapperComponent(t.target.tagName),e=this.isGroupComponent(t.target.tagName);let s;if(i)s=t.target.getInput&&await t.target.getInput()||t.target;else if(e){let i=!1;const e=c(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");e.length>0&&e.forEach((t=>{t&&!0===t.required&&(i=!0)})),s=Object.assign(Object.assign({},t.target),{required:i})}else s=t.target;const a=t.target.value,r=i&&t.target;var n;i&&(n=await r.isValid());const o=setTimeout((()=>{if(s.required){let r=null;if(i)r=l.required(a,n),r&&(a instanceof Object?0==a.isValid&&(r=l.required("",n)):r=l.required(a,n));else if(e){const i=c(t.target,"bcm-checkbox:not(#bcm-indeterminate-element)");i.length>0&&i.forEach((i=>{i&&!0===i.required&&(r=l.required(i.checked),r.valid?(i.noCaption=t.target.noCaption,i.captionError=null,i.captionType="default"):(i.noCaption=!1,i.captionError=r.message,i.captionType=r.type))}))}else r=l.required(a);r.valid?(s.captionError=null,s.captionType=null):(s.captionError=r.message,s.captionType=r.type)}clearTimeout(o)}));this.value=await this.userFormData()}render(){const t=r(this.hidden?"hidden":null);return e(s,{class:t,tabindex:"-1"},e("form",{class:"bcm-form",autocomplete:this.autocomplete?"on":"off",tabindex:"-1"},e("slot",null)))}get el(){return a(this)}};(function(t,i,e,s){var a,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(r<3?a(n):r>3?a(i,e,n):a(i,e))||n);r>3&&n&&Object.defineProperty(i,e,n)})([n()],p.prototype,"el",void 0),p.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;margin-bottom:8px}:host(.hidden){display:none}';export{p as bcm_form}