bromcom-ui 2.9.1-rc.2 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-066b9b83.entry.js → p-048f12f9.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-0643bc4a.entry.js → p-04be0172.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-5f6447fa.entry.js → p-067df594.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-f0ff6194.entry.js → p-102524c5.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-71ed7aaa.entry.js → p-148d0948.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-a656107a.entry.js → p-16d42f54.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-9dd64e63.entry.js → p-17a915ce.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c72d4b36.entry.js → p-184ed5c2.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-2a8e6faf.entry.js → p-1a7d32a9.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-72318066.js → p-2199a954.js} +1 -1
  12. package/dist/bromcom-ui/p-279b0089.js +5 -0
  13. package/dist/bromcom-ui/{p-c002245b.entry.js → p-2821f49b.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-e416e8fc.entry.js → p-2d915549.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-08fcaad7.entry.js → p-30583cb2.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-33a27257.entry.js +5 -0
  17. package/dist/bromcom-ui/p-33b8dcc8.js +5 -0
  18. package/dist/bromcom-ui/{p-47953dcc.entry.js → p-34545f2b.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-ea7ecfdf.entry.js → p-381cc688.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-25dd9da8.entry.js → p-3dafbb30.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-6c38380c.entry.js → p-4304365f.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-a8bde635.entry.js → p-43cab007.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-98b7b581.entry.js → p-448d48ab.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-504d102e.entry.js → p-485a9e4d.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-7f4fd4f1.entry.js → p-49c0954d.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-4dd34da3.entry.js → p-49dd882e.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-6cdf7a47.entry.js → p-519f82ea.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-8fba0df7.entry.js → p-520f4bc4.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-1a5848ff.entry.js → p-5b80631d.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-bb78166b.entry.js → p-6113822b.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-cc9aea5d.entry.js → p-64d8cf93.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-6fdf8589.entry.js → p-7123e244.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-8f5319d0.entry.js → p-713db66b.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-4b56e20d.entry.js → p-799c028a.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-0e2e7aaf.entry.js → p-7b6cf25d.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-be60b30f.entry.js → p-7ba5e7f0.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-cb9d10e7.entry.js → p-7cb7f18c.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-9e3538ad.entry.js → p-7e32aa8c.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-9872041f.entry.js → p-7e6f0460.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-c8afc135.entry.js → p-7fbd1446.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-7fd84bcb.entry.js → p-816c0767.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-ba18ac53.entry.js → p-83ac2114.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-6dad3a84.entry.js → p-87ba886d.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-9cee10ca.js → p-8a1e77c7.js} +1 -1
  45. package/dist/bromcom-ui/{p-70e11798.js → p-8be10f68.js} +1 -1
  46. package/dist/bromcom-ui/{p-d5adc98e.entry.js → p-8bf33d20.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-c64b7e36.entry.js → p-941b7c84.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-06a6a788.entry.js → p-9563a9cc.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-4fed249a.entry.js → p-967bf166.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-d2f0c787.entry.js → p-a57482d6.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-b8689c5f.js +5 -0
  52. package/dist/bromcom-ui/{p-8e0a5938.js → p-baba5236.js} +1 -1
  53. package/dist/bromcom-ui/{p-a7c13b5d.entry.js → p-be1aeeeb.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-f3228b57.entry.js → p-cb306b8b.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-93e2089c.entry.js → p-cc51949e.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-ef26a156.entry.js → p-cd7f7ff9.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-6dd8f5b3.entry.js → p-cd89ada6.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-085310d2.entry.js → p-ced63474.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-9d3493ac.entry.js → p-d67c0507.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-1df56a64.entry.js → p-d987c483.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-758eeb42.entry.js → p-da652d33.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-e845097e.entry.js → p-e20200cc.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-2511c6c5.js → p-e2d6bd93.js} +1 -1
  64. package/dist/bromcom-ui/{p-03860282.entry.js → p-ee3c98d1.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-afc84854.entry.js → p-f320c669.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-d1cc43a4.entry.js → p-f544bd88.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-d9ead52b.entry.js → p-f6a67da7.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-a2952973.js → p-f77e16e8.js} +1 -1
  69. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
  73. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  74. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-button.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
  81. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  83. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  84. package/dist/cjs/bcm-colorful_2.cjs.entry.js +5 -5
  85. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-date.cjs.entry.js +4 -4
  87. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
  88. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  89. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  90. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  92. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  94. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
  95. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-items.cjs.entry.js +2 -2
  97. package/dist/cjs/bcm-label_2.cjs.entry.js +5 -5
  98. package/dist/cjs/bcm-linked.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-list_3.cjs.entry.js +6 -6
  100. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  101. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  102. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  103. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
  105. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
  108. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  110. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
  113. package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  115. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  116. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  117. package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
  118. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
  119. package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
  120. package/dist/cjs/bcm-table.cjs.entry.js +4 -4
  121. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  122. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  123. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
  124. package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
  125. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  126. package/dist/cjs/{generate-9fd41788.js → generate-0eddc1c1.js} +1 -1
  127. package/dist/cjs/{global-e30e43a2.js → global-b02647d7.js} +1 -1
  128. package/dist/cjs/{input-template-7587462d.js → input-template-c37dc199.js} +1 -1
  129. package/dist/cjs/{json-parse-decarator-c724f6c4.js → json-parse-decarator-d9837dc7.js} +1 -1
  130. package/dist/cjs/loader.cjs.js +2 -2
  131. package/dist/cjs/{number-helper-19148ce9.js → number-helper-34f232b3.js} +1 -1
  132. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  133. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  134. package/dist/cjs/{package-03de8a92.js → package-4e6f5967.js} +1 -1
  135. package/dist/cjs/{stepper-states-caa5dc36.js → stepper-states-72e45e8d.js} +1 -1
  136. package/dist/cjs/{tooltip-helper-a7e84230.js → tooltip-helper-ed0f2ce9.js} +3 -3
  137. package/dist/cjs/{validators-f3eace30.js → validators-72cc68b6.js} +1 -1
  138. package/dist/components/generate.js +1 -1
  139. package/dist/esm/bcm-accordion.entry.js +2 -2
  140. package/dist/esm/bcm-alert.entry.js +2 -2
  141. package/dist/esm/bcm-attendance.entry.js +2 -2
  142. package/dist/esm/bcm-avatar_2.entry.js +4 -4
  143. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  144. package/dist/esm/bcm-button-group.entry.js +2 -2
  145. package/dist/esm/bcm-button.entry.js +2 -2
  146. package/dist/esm/bcm-card.entry.js +2 -2
  147. package/dist/esm/bcm-checkbox-group.entry.js +2 -2
  148. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  149. package/dist/esm/bcm-checkbox_2.entry.js +2 -2
  150. package/dist/esm/bcm-chip-group.entry.js +4 -4
  151. package/dist/esm/bcm-chip.entry.js +2 -2
  152. package/dist/esm/bcm-collapse.entry.js +2 -2
  153. package/dist/esm/bcm-color-input.entry.js +4 -4
  154. package/dist/esm/bcm-colorful_2.entry.js +5 -5
  155. package/dist/esm/bcm-date-picker.entry.js +2 -2
  156. package/dist/esm/bcm-date.entry.js +4 -4
  157. package/dist/esm/bcm-datetime-picker.entry.js +2 -2
  158. package/dist/esm/bcm-default.entry.js +2 -2
  159. package/dist/esm/bcm-drawer.entry.js +4 -4
  160. package/dist/esm/bcm-dropdown.entry.js +3 -3
  161. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  162. package/dist/esm/bcm-form-2.entry.js +2 -2
  163. package/dist/esm/bcm-input-custom.entry.js +2 -2
  164. package/dist/esm/bcm-input-dropdown.entry.js +4 -4
  165. package/dist/esm/bcm-item.entry.js +2 -2
  166. package/dist/esm/bcm-items.entry.js +2 -2
  167. package/dist/esm/bcm-label_2.entry.js +5 -5
  168. package/dist/esm/bcm-linked.entry.js +4 -4
  169. package/dist/esm/bcm-list_3.entry.js +6 -6
  170. package/dist/esm/bcm-menu.entry.js +5 -5
  171. package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
  172. package/dist/esm/bcm-modal-2-header.entry.js +4 -4
  173. package/dist/esm/bcm-modal-2.entry.js +4 -4
  174. package/dist/esm/bcm-modal.entry.js +2 -2
  175. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  176. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  177. package/dist/esm/bcm-popover.entry.js +4 -4
  178. package/dist/esm/bcm-progress.entry.js +2 -2
  179. package/dist/esm/bcm-radio-group.entry.js +4 -4
  180. package/dist/esm/bcm-radio.entry.js +4 -4
  181. package/dist/esm/bcm-range.entry.js +2 -2
  182. package/dist/esm/bcm-shortcut.entry.js +4 -4
  183. package/dist/esm/bcm-skeleton.entry.js +4 -4
  184. package/dist/esm/bcm-step.entry.js +3 -3
  185. package/dist/esm/bcm-stepper.entry.js +5 -5
  186. package/dist/esm/bcm-switch.entry.js +2 -2
  187. package/dist/esm/bcm-tab-group.entry.js +4 -4
  188. package/dist/esm/bcm-tab-item-header.entry.js +4 -4
  189. package/dist/esm/bcm-tab-item.entry.js +4 -4
  190. package/dist/esm/bcm-table.entry.js +4 -4
  191. package/dist/esm/bcm-tag.entry.js +3 -3
  192. package/dist/esm/bcm-textarea.entry.js +3 -3
  193. package/dist/esm/bcm-time-picker.entry.js +2 -2
  194. package/dist/esm/bcm-toast.entry.js +2 -2
  195. package/dist/esm/bromcom-ui.js +2 -2
  196. package/dist/esm/{generate-3dda60a9.js → generate-cfbadf65.js} +1 -1
  197. package/dist/esm/{global-dea87e71.js → global-7737d0f5.js} +1 -1
  198. package/dist/esm/{input-template-9f57846a.js → input-template-7c414fb0.js} +1 -1
  199. package/dist/esm/{json-parse-decarator-98502664.js → json-parse-decarator-cd4aa319.js} +1 -1
  200. package/dist/esm/loader.js +2 -2
  201. package/dist/esm/{number-helper-76d8d225.js → number-helper-8333a13c.js} +1 -1
  202. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  203. package/dist/esm/old-bcm-popover.entry.js +2 -2
  204. package/dist/esm/{package-7587ad35.js → package-368cba0a.js} +1 -1
  205. package/dist/esm/{stepper-states-a06a76a0.js → stepper-states-bb1c6967.js} +1 -1
  206. package/dist/esm/{tooltip-helper-2d59251b.js → tooltip-helper-1b205308.js} +3 -3
  207. package/dist/esm/{validators-a0f4d029.js → validators-85555b4a.js} +1 -1
  208. package/package.json +1 -1
  209. package/dist/bromcom-ui/p-1b6718f1.js +0 -5
  210. package/dist/bromcom-ui/p-5f9c84e9.js +0 -5
  211. package/dist/bromcom-ui/p-69ef7f73.js +0 -5
  212. package/dist/bromcom-ui/p-e5236ff7.entry.js +0 -5
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import{d as n}from"./p-3c7a0345.js";import{F as a}from"./p-a1b1750c.js";import{a as r}from"./p-f711588b.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";const d=class{constructor(s){t(this,s),this.bcmOpen=i(this,"bcm-open",7),this._id=o.UID(),this.placement=r.Placement["bottom-start"],this.trigger=r.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const t=document.querySelectorAll(`[id="${this.targetId}"]`);return t.length>0?(t.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),t[0]):(this.el.remove(),null)}detectClone(){const t=document.querySelectorAll(`[target-id="${this.targetId}"]`);t.length>0&&t.forEach((t=>{t.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),t.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(t){o.findEventPathHasAttribute(t,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((t=>{var i;null===(i=document.querySelector(`#${t.getAttribute("is-linked")}[is-open]`))||void 0===i||i.hide(!1)}))}calculatePosition(){const t=this.el;t&&this.target()&&(this.isOpen?a({ref:this.target(),floating:t,placement:this.placement,offset:4,autoHidden:"true"!==t.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(t.style.visibility="hidden",t.style.opacity="0"))}init(){const t=this.target();this.trigger===r.TriggerType.hover&&this.listenMouseOver(),t&&(t.setAttribute("is-linked",this.el.id),o.getAncestor(t,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"))}componentDidLoad(){this.init()}triggerWatch(t){t===r.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(t){t.detail.id===this._id&&this.hide(!1)}async show(t=!0){t&&await n(50),this.detectClone();const i=this.target();return i?(document.querySelector("#bcm-overlay-container").appendChild(this.el),i.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(t=!0){t&&await n(50);const i=this.target();return this.isMouseOverLink=!1,i&&(i.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(t=!0){return this.isOpen?await this.hide(t):await this.show(t)}clickListener(t){if(!this.target())return;if(this.trigger===r.TriggerType.hover||this.trigger===r.TriggerType.custom)return;const i=o.findEventPath(t,this.target()),s=o.findEventPath(t,this.el),e=o.findEventPathWithNodeName(t,"BCM-LINKED");if(!i&&!s&&!e)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(i&&this.hide(!1),s&&this.checkDataDismiss(t),"true"!==this.el.getAttribute("main-linked")||i||s||e||this.dismissEvent()):i&&this.show(!1)}listenMouseOver(){var t,i;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(t=this.target())||void 0===t||t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(i=this.target())||void 0===i||i.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return s(e,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},s("slot",null))}get el(){return h(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}};export{d as bcm_linked}
5
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{d as n}from"./p-3c7a0345.js";import{F as a}from"./p-a1b1750c.js";import{a as r}from"./p-f711588b.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const d=class{constructor(s){t(this,s),this.bcmOpen=i(this,"bcm-open",7),this._id=o.UID(),this.placement=r.Placement["bottom-start"],this.trigger=r.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const t=document.querySelectorAll(`[id="${this.targetId}"]`);return t.length>0?(t.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),t[0]):(this.el.remove(),null)}detectClone(){const t=document.querySelectorAll(`[target-id="${this.targetId}"]`);t.length>0&&t.forEach((t=>{t.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),t.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(t){o.findEventPathHasAttribute(t,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((t=>{var i;null===(i=document.querySelector(`#${t.getAttribute("is-linked")}[is-open]`))||void 0===i||i.hide(!1)}))}calculatePosition(){const t=this.el;t&&this.target()&&(this.isOpen?a({ref:this.target(),floating:t,placement:this.placement,offset:4,autoHidden:"true"!==t.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(t.style.visibility="hidden",t.style.opacity="0"))}init(){const t=this.target();this.trigger===r.TriggerType.hover&&this.listenMouseOver(),t&&(t.setAttribute("is-linked",this.el.id),o.getAncestor(t,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"))}componentDidLoad(){this.init()}triggerWatch(t){t===r.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(t){t.detail.id===this._id&&this.hide(!1)}async show(t=!0){t&&await n(50),this.detectClone();const i=this.target();return i?(document.querySelector("#bcm-overlay-container").appendChild(this.el),i.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(t=!0){t&&await n(50);const i=this.target();return this.isMouseOverLink=!1,i&&(i.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(t=!0){return this.isOpen?await this.hide(t):await this.show(t)}clickListener(t){if(!this.target())return;if(this.trigger===r.TriggerType.hover||this.trigger===r.TriggerType.custom)return;const i=o.findEventPath(t,this.target()),s=o.findEventPath(t,this.el),e=o.findEventPathWithNodeName(t,"BCM-LINKED");if(!i&&!s&&!e)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(i&&this.hide(!1),s&&this.checkDataDismiss(t),"true"!==this.el.getAttribute("main-linked")||i||s||e||this.dismissEvent()):i&&this.show(!1)}listenMouseOver(){var t,i;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(t=this.target())||void 0===t||t.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(i=this.target())||void 0===i||i.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return s(e,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},s("slot",null))}get el(){return h(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}};export{d as bcm_linked}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as e,H as s,g as r}from"./p-e037ee2b.js";import{G as o}from"./p-5f9c84e9.js";import{c as i}from"./p-bed627ab.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const l=class{constructor(e){t(this,e),this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleChange=t=>{this.value=t.target.value,console.log(t)},this.handleInput=t=>{console.log(t)},this._id=o.UID(),this.name=void 0,this.value=void 0,this.type="text",this.label=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.placeholder=void 0,this.fullwidth=!1,this.hasFocus=!1}render(){const{_id:t,type:r,name:o,value:l,label:a,required:w,fullwidth:n,placeholder:d,disabled:h,readonly:c}=this;return e(s,{class:i("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col",{"tw-max-w-full":n})},a&&e("bcm-label",{value:a,required:w,htmlFor:t}),e("div",{class:i("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600",{"tw-cursor-not-allowed tw-bg-secondary-50":this.disabled,"tw-cursor-text":!this.disabled,"tw-cursor-default tw-bg-secondary-50":this.readonly,"tw-border-primary-500 tw-bg-secondary-50":this.hasFocus,"tw-border-secondary-300 tw-bg-white":!this.hasFocus})},e("input",{id:t,name:o,type:r,value:l,"data-value":l,placeholder:d,required:w,disabled:h,readonly:c,class:i("tw-text-overflow-ellipsis","tw-rounded-none","tw-flex-1","tw-cursor-inherit","tw-w-full","tw-appearance-none","tw-overflow-hidden","tw-whitespace-nowrap","tw-border-none","tw-bg-transparent","tw-p-2","tw-text-secondary-600","tw-placeholder-secondary-300","tw-outline-none"),onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:t=>this.handleChange(t),onInput:this.handleInput})))}get el(){return r(this)}};export{l as bcm_input_custom}
5
+ import{r as t,h as e,H as s,g as r}from"./p-e037ee2b.js";import{G as o}from"./p-b8689c5f.js";import{c as i}from"./p-bed627ab.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const l=class{constructor(e){t(this,e),this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleChange=t=>{this.value=t.target.value,console.log(t)},this.handleInput=t=>{console.log(t)},this._id=o.UID(),this.name=void 0,this.value=void 0,this.type="text",this.label=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.placeholder=void 0,this.fullwidth=!1,this.hasFocus=!1}render(){const{_id:t,type:r,name:o,value:l,label:a,required:w,fullwidth:n,placeholder:d,disabled:h,readonly:c}=this;return e(s,{class:i("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col",{"tw-max-w-full":n})},a&&e("bcm-label",{value:a,required:w,htmlFor:t}),e("div",{class:i("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600",{"tw-cursor-not-allowed tw-bg-secondary-50":this.disabled,"tw-cursor-text":!this.disabled,"tw-cursor-default tw-bg-secondary-50":this.readonly,"tw-border-primary-500 tw-bg-secondary-50":this.hasFocus,"tw-border-secondary-300 tw-bg-white":!this.hasFocus})},e("input",{id:t,name:o,type:r,value:l,"data-value":l,placeholder:d,required:w,disabled:h,readonly:c,class:i("tw-text-overflow-ellipsis","tw-rounded-none","tw-flex-1","tw-cursor-inherit","tw-w-full","tw-appearance-none","tw-overflow-hidden","tw-whitespace-nowrap","tw-border-none","tw-bg-transparent","tw-p-2","tw-text-secondary-600","tw-placeholder-secondary-300","tw-outline-none"),onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:t=>this.handleChange(t),onInput:this.handleInput})))}get el(){return r(this)}};export{l as bcm_input_custom}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as c,c as e,h as o,H as i,g as r}from"./p-e037ee2b.js";import{c as b}from"./p-bed627ab.js";import{C as a}from"./p-32df2233.js";import{G as n}from"./p-5f9c84e9.js";import{S as t}from"./p-7c623da0.js";import{B as l}from"./p-f711588b.js";import{d as m}from"./p-3c7a0345.js";import{C as h}from"./p-4798d827.js";import{I as s}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-f95797df.js";import"./p-436364c8.js";const x=class{constructor(o){c(this,o),this.blur=e(this,"bcm-blur",7),this.focus=e(this,"bcm-focus",7),this.change=e(this,"bcm-change",7),this.changeCheckbox=e(this,"bcm-change-checkbox",7),this._id=n.UID(),this.inGroup=!1,this.value=!1,this.checked=!1,this.name=void 0,this.disabled=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.readonly=!1,this.size=l.Size.medium,this.indeterminate=null,this.color="blue",this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=l.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}componentDidRender(){this.inputElement.checked=this.checked}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async setClear(){return this.check(!1),this.handleChange(),await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await m(10),Promise.resolve()}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.indeterminate||(this.changeCheckbox.emit(),this.change.emit({name:this.name,value:this.checked}))}watchIndeterminate(c,e){c!=e&&(this.inputElement.checked=this.indeterminate==l.IndeterminateType.determinate,this.handleChange())}async set(c){"boolean"==typeof c&&await this.check(c)}async get(){return this.checked||!1}async check(c=!0){this.inputElement.checked=c,this.handleChange()}handleKeyUp(c){if(c.keyCode==l.KeyCode.space||c.keyCode==l.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),c.stopPropagation(),c.preventDefault(),!1}watchChecked(){this.checked&&this.resetCaption(),this.value=this.checked}setColor(c=this.color){if(!c)return;const e="--bcm-checkbox";return{[`${e}-primary-color-default`]:h.dsColor(c+"-500"),[`${e}-primary-color-hover`]:h.dsColor(c+"-600"),[`${e}-primary-color-focus-visible`]:h.dsColor(c+"-800"),[`${e}-primary-color-active`]:h.dsColor(c+"-700"),[`${e}-secondary-color-default`]:h.dsColor("white"),[`${e}-secondary-color-hover`]:h.dsColor("slate-50"),[`${e}-secondary-color-focus-visible`]:h.dsColor("slate-50"),[`${e}-secondary-color-active`]:h.dsColor("slate-50")}}render(){const{label:c,_id:e,indeterminate:r,hidden:n,disabled:m,checked:h,readonly:s,required:x,caption:d,captionError:p,captionType:k,noCaption:_,size:g}=this,u=b("bcm-checkbox",`bcm-checkbox-size-${g}`,{error:k==l.Status.error,hidden:n,checked:h,disabled:m,required:x,readonly:s}),v=b("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+r,{"bcm-checkbox__label-icon-checked":h}),f=b("bcm-checkbox__label"),y=b("bcm-checkbox__input");return o(i,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),style:this.setColor(this.color),class:u,disabled:m},o("span",{hidden:!0},o("slot",null)),c&&o("bcm-label",{htmlFor:`input-${e}`,type:k,value:c,required:x}),o("div",{class:y},o("input",{id:`input-${e}`,type:"checkbox",checked:h,disabled:m,required:x,readonly:s,onChange:()=>{!m&&!s&&this.handleChange()},ref:c=>this.inputElement=c}),o("label",{class:f,htmlFor:`input-${e}`},o("span",{class:v},o("bcm-icon",{icon:"far fa-check"})),o(t,{className:"slot"}))),o(a,{noCaption:_,captionType:k,captionError:p,caption:d}))}get el(){return r(this)}static get watchers(){return{indeterminate:["watchIndeterminate"],checked:["watchChecked"]}}};(function(c,e,o,i){var r,b=arguments.length,a=b<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(c,e,o,i);else for(var n=c.length-1;n>=0;n--)(r=c[n])&&(a=(b<3?r(a):b>3?r(e,o,a):r(e,o))||a);b>3&&a&&Object.defineProperty(e,o,a)})([s()],x.prototype,"el",void 0),x.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"); @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}*{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)}*{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}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}';const d=class{constructor(e){c(this,e)}render(){return o(i,{class:"bcm-ui-element bcm-ui-content-display"},o("slot",null))}get el(){return r(this)}};export{x as bcm_checkbox,d as bcm_typography}
5
+ import{r as c,c as e,h as o,H as i,g as r}from"./p-e037ee2b.js";import{c as b}from"./p-bed627ab.js";import{C as a}from"./p-32df2233.js";import{G as n}from"./p-b8689c5f.js";import{S as t}from"./p-7c623da0.js";import{B as l}from"./p-f711588b.js";import{d as m}from"./p-3c7a0345.js";import{C as h}from"./p-4798d827.js";import{I as s}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-f95797df.js";import"./p-436364c8.js";const x=class{constructor(o){c(this,o),this.blur=e(this,"bcm-blur",7),this.focus=e(this,"bcm-focus",7),this.change=e(this,"bcm-change",7),this.changeCheckbox=e(this,"bcm-change-checkbox",7),this._id=n.UID(),this.inGroup=!1,this.value=!1,this.checked=!1,this.name=void 0,this.disabled=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.readonly=!1,this.size=l.Size.medium,this.indeterminate=null,this.color="blue",this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=l.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}componentDidRender(){this.inputElement.checked=this.checked}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async setClear(){return this.check(!1),this.handleChange(),await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await m(10),Promise.resolve()}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.indeterminate||(this.changeCheckbox.emit(),this.change.emit({name:this.name,value:this.checked}))}watchIndeterminate(c,e){c!=e&&(this.inputElement.checked=this.indeterminate==l.IndeterminateType.determinate,this.handleChange())}async set(c){"boolean"==typeof c&&await this.check(c)}async get(){return this.checked||!1}async check(c=!0){this.inputElement.checked=c,this.handleChange()}handleKeyUp(c){if(c.keyCode==l.KeyCode.space||c.keyCode==l.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),c.stopPropagation(),c.preventDefault(),!1}watchChecked(){this.checked&&this.resetCaption(),this.value=this.checked}setColor(c=this.color){if(!c)return;const e="--bcm-checkbox";return{[`${e}-primary-color-default`]:h.dsColor(c+"-500"),[`${e}-primary-color-hover`]:h.dsColor(c+"-600"),[`${e}-primary-color-focus-visible`]:h.dsColor(c+"-800"),[`${e}-primary-color-active`]:h.dsColor(c+"-700"),[`${e}-secondary-color-default`]:h.dsColor("white"),[`${e}-secondary-color-hover`]:h.dsColor("slate-50"),[`${e}-secondary-color-focus-visible`]:h.dsColor("slate-50"),[`${e}-secondary-color-active`]:h.dsColor("slate-50")}}render(){const{label:c,_id:e,indeterminate:r,hidden:n,disabled:m,checked:h,readonly:s,required:x,caption:d,captionError:p,captionType:k,noCaption:_,size:g}=this,u=b("bcm-checkbox",`bcm-checkbox-size-${g}`,{error:k==l.Status.error,hidden:n,checked:h,disabled:m,required:x,readonly:s}),v=b("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+r,{"bcm-checkbox__label-icon-checked":h}),f=b("bcm-checkbox__label"),y=b("bcm-checkbox__input");return o(i,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),style:this.setColor(this.color),class:u,disabled:m},o("span",{hidden:!0},o("slot",null)),c&&o("bcm-label",{htmlFor:`input-${e}`,type:k,value:c,required:x}),o("div",{class:y},o("input",{id:`input-${e}`,type:"checkbox",checked:h,disabled:m,required:x,readonly:s,onChange:()=>{!m&&!s&&this.handleChange()},ref:c=>this.inputElement=c}),o("label",{class:f,htmlFor:`input-${e}`},o("span",{class:v},o("bcm-icon",{icon:"far fa-check"})),o(t,{className:"slot"}))),o(a,{noCaption:_,captionType:k,captionError:p,caption:d}))}get el(){return r(this)}static get watchers(){return{indeterminate:["watchIndeterminate"],checked:["watchChecked"]}}};(function(c,e,o,i){var r,b=arguments.length,a=b<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(c,e,o,i);else for(var n=c.length-1;n>=0;n--)(r=c[n])&&(a=(b<3?r(a):b>3?r(e,o,a):r(e,o))||a);b>3&&a&&Object.defineProperty(e,o,a)})([s()],x.prototype,"el",void 0),x.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"); @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}*{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)}*{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}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}';const d=class{constructor(e){c(this,e)}render(){return o(i,{class:"bcm-ui-element bcm-ui-content-display"},o("slot",null))}get el(){return r(this)}};export{x as bcm_checkbox,d as bcm_typography}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{d as r}from"./p-3c7a0345.js";import{a as l}from"./p-f711588b.js";import{C as h}from"./p-32df2233.js";import{c as d}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{I as c}from"./p-8e5e362a.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const p=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this._id=a.UID(),this.label=void 0,this.name=void 0,this.value=null,this.defaultValue=void 0,this.size=l.Size.medium,this.disabled=void 0,this.hidden=!1,this.required=!1,this.gap=void 0,this.direction=l.Direction.horizontal,this.fullWidth=!1,this.items=[],this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=l.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}get radios(){return Array.from(this.el.querySelectorAll("bcm-radio"))}get Items(){return this.items}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}updateValue(){var t,i,s;this.value=null!==(s=null===(i=null===(t=this.radios)||void 0===t?void 0:t.find((t=>t.checked)))||void 0===i?void 0:i.value)&&void 0!==s?s:null}setRadioUpdate(){var t;null===(t=this.radios)||void 0===t||t.forEach((t=>{t.disabled=this.disabled||t.disabled,t.size=this.size,this.defaultValue&&(t.checked=t.value==this.defaultValue)}))}watchDisabled(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.disabled=t))}watchDefaultValue(t,i){var s;null===(s=this.radios)||void 0===s||s.forEach((i=>i.checked=i.value==t)),this.updateValue(),this.change.emit(this.value)}componentWillLoad(){this.setRadioUpdate(),this.updateValue()}handleChange(t){var i,s;t.stopPropagation(),t.preventDefault();const e=null!==(i=t.target.checked)&&void 0!==i&&i;null===(s=this.radios)||void 0===s||s.forEach((i=>{i.checked=i.id==t.target.id&&!e})),this.updateValue(),this.change.emit(this.value)}async setClear(){var t;this.value=null,null===(t=this.radios)||void 0===t||t.forEach((t=>{t.checked=!1}))}async resetCaption(){return await r(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await r(10),Promise.resolve()}async check(t,i=!0){var s;null===(s=this.radios)||void 0===s||s.forEach((s=>{s.checked=(s.id==t||s.value==t)&&i})),this.updateValue(),this.change.emit(this.value)}async get(){return this.value}async set(t){await this.check(t)}async getValue(){return this.value}render(){var t,i;const{direction:o,fullWidth:a,gap:r,label:c,size:p,required:n,disabled:u,caption:v,captionError:f,captionType:m,noCaption:b}=this;return s(e,{role:"radio-group",class:"tw-mb-2 tw-flex tw-flex-col"},c&&s("bcm-label",{type:m,value:c,required:n}),s("div",{class:d("tw-flex tw-flex-wrap",o==l.Direction.horizontal?"tw-flex-row":"tw-flex-col",a&&"tw-w-full"),style:{gap:r}},s("slot",null),(null===(t=this.Items)||void 0===t?void 0:t.length)>0&&(null===(i=this.Items)||void 0===i?void 0:i.map((t=>s("bcm-radio",{id:t.id,value:t.value,disabled:u||t.disabled,checked:t.checked,color:t.color,size:p},t.label))))),s(h,{noCaption:b,captionType:m,captionError:f,caption:v}))}get el(){return o(this)}static get watchers(){return{disabled:["watchDisabled"],defaultValue:["watchDefaultValue"]}}};!function(t,i,s,e){var o,a=arguments.length,r=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(a<3?o(r):a>3?o(i,s,r):o(i,s))||r);a>3&&r&&Object.defineProperty(i,s,r)}([c()],p.prototype,"el",void 0);export{p as bcm_radio_group}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import{g as t}from"./p-e037ee2b.js";import{s as n}from"./p-b8689c5f.js";function s(s,o=!1){return(i,c)=>{const{connectedCallback:e,componentWillRender:r}=i;i.connectedCallback=function(){const o=t(this);if(o[c]){const t=n((()=>o.hasAttribute(s)?o.getAttribute(s).valueOf():o[s].valueOf()),null);t&&(this[c]=n((()=>"string"==typeof t?JSON.parse(t):t),[]),o.removeAttribute(s))}return e&&e.call(this)},i.componentWillRender=async function(){if(o){const i=t(this);if(o){const t=n((()=>i.hasAttribute(s)?i.getAttribute(s).valueOf():i[s].valueOf()),null);t&&t.length>0&&"string"==typeof t&&(this[s]=n((()=>JSON.parse(t)),[])),i.removeAttribute(s)}return r&&r.call(this)}}}}export{s as J}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,f as e,h as s,H as r,g as i}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import"./p-f711588b.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";const p=class{constructor(e){t(this,e),this._id=o.UID(),this.label="",this.placeholder="",this.value="",this.required=!1,this.disabled=!1,this.readonly=!1,this.fullWidth=!1}handleChange(t){this.value=t,this.getInputElement().setValue(t),e(this.el)}getInputElement(){return this.el.querySelector("bcm-input")}getPickerElement(){return document.querySelector("#"+this._id+"-picker")}handleInputChanged(t){this.getPickerElement().color=t.detail}eyeDropper(){(new window.EyeDropper).open().then((t=>{this.handleChange(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}render(){return s(r,{class:"tw-block"},s("bcm-input",{id:this._id+"-color",fullWidth:this.fullWidth,label:this.label,placeholder:this.placeholder,type:"text","onBcm-change":t=>this.handleInputChanged(t)},s("i",{slot:"prefix",class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100",style:{backgroundColor:this.value}}),this.isEyeDropperSupported()&&s("i",{slot:"suffix",class:"far fa-eye-dropper",onClick:()=>this.eyeDropper()})),s("bcm-linked",{targetId:this._id+"-color-container"},s("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.handleChange(t.detail)})))}get el(){return i(this)}};export{p as bcm_color_input}
5
+ import{r as t,f as e,h as s,H as r,g as i}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import"./p-f711588b.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const p=class{constructor(e){t(this,e),this._id=o.UID(),this.label="",this.placeholder="",this.value="",this.required=!1,this.disabled=!1,this.readonly=!1,this.fullWidth=!1}handleChange(t){this.value=t,this.getInputElement().setValue(t),e(this.el)}getInputElement(){return this.el.querySelector("bcm-input")}getPickerElement(){return document.querySelector("#"+this._id+"-picker")}handleInputChanged(t){this.getPickerElement().color=t.detail}eyeDropper(){(new window.EyeDropper).open().then((t=>{this.handleChange(t.sRGBHex)})).catch((t=>{"NotAllowedError"===t.name?console.log("Permission to access sensor was denied."):"NotSupportedError"===t.name&&console.log("Sensor not supported.")}))}isEyeDropperSupported(){return"undefined"!=typeof window&&"EyeDropper"in window}render(){return s(r,{class:"tw-block"},s("bcm-input",{id:this._id+"-color",fullWidth:this.fullWidth,label:this.label,placeholder:this.placeholder,type:"text","onBcm-change":t=>this.handleInputChanged(t)},s("i",{slot:"prefix",class:"tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-gray-100",style:{backgroundColor:this.value}}),this.isEyeDropperSupported()&&s("i",{slot:"suffix",class:"far fa-eye-dropper",onClick:()=>this.eyeDropper()})),s("bcm-linked",{targetId:this._id+"-color-container"},s("bcm-colorful",{id:this._id+"-picker",color:this.value,onBcmChange:t=>this.handleChange(t.detail)})))}get el(){return i(this)}};export{p as bcm_color_input}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,c as t,h as i,H as n,g as a}from"./p-e037ee2b.js";import{c as r}from"./p-bed627ab.js";import{I as o}from"./p-8e5e362a.js";import{G as c}from"./p-5f9c84e9.js";import{B as s}from"./p-f711588b.js";import{C as p}from"./p-32df2233.js";import{I as l}from"./p-72318066.js";import{d as m}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-3fac58f7.js";var b;!function(e){e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical",e.initial="initial",e.inherit="inherit"}(b||(b={}));const h=class{constructor(i){e(this,i),this.focus=t(this,"bcm-focus",7),this.blur=t(this,"bcm-blur",7),this.clear=t(this,"bcm-clear",7),this.change=t(this,"bcm-change",7),this.input=t(this,"bcm-input",7),this._id=c.UID(),this._internal_id=c.UID(),this.hidden=!1,this.value=void 0,this.placeholder=void 0,this.label=void 0,this.name=void 0,this.required=!1,this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=s.Status.default,this.rows=3,this.size=s.Size.medium,this.disabled=void 0,this.readonly=!1,this.clearable=void 0,this.resize=b.vertical,this.fullWidth=!1,this.maxLength=void 0,this.focused=!1,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}async onBcmFocus(){this.textarea.focus()}async onBcmBlur(){this.textarea.blur()}async onBcmSelect(){this.textarea.select()}async set(e){await this.setValue(e)}async get(){return this.value||null}async setValue(e){return this.textarea.value=e,this.value=e,this.handleChange(),e}async setClear(){return this.textarea.value="",this.value="",await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await m(10),Promise.resolve()}async getValue(){return this.value}watchValue(e){this.textarea.value=e,this.handleChange()}handleFocus(){this.focused=!0,this.focus.emit()}handleBlur(){this.focused=!1,this.blur.emit()}handleChange(){this.value=this.textarea.value,this.change.emit(this.value)}handleInput(){this.value=this.textarea.value,this.input.emit(this.value)}handleClear(e){this.textarea.value="",this.value="",this.clear.emit(),this.textarea.focus(),e.stopPropagation()}render(){const{_id:e,hidden:t,readonly:a,fullWidth:o,size:c,rows:m,disabled:b,clearable:h,label:u,focused:d,noCaption:x,caption:g,captionError:f,captionType:_,value:w,resize:z,maxLength:y,placeholder:v,required:k}=this,j=r("bcm-input",{hidden:t,"full-width":o});return i(n,{class:j},u&&i("bcm-label",{type:_,value:u,required:k,htmlFor:e}),i(l,{elementType:s.HtmlElementType.textarea,id:e,value:w,rows:m,disabled:b,maxLength:y,placeholder:v,clearable:h,resize:z,readonly:a,size:c,focused:d,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),handleClear:e=>this.handleClear(e),ref:e=>this.textarea=e,captionType:_}),i(p,{noCaption:x,captionType:_,captionError:f,caption:g,value:w,maxLength:y}))}get el(){return a(this)}static get watchers(){return{value:["watchValue"]}}};(function(e,t,i,n){var a,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);r>3&&o&&Object.defineProperty(t,i,o)})([o()],h.prototype,"el",void 0),h.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"); @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}*{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)}*{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}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';export{h as bcm_textarea}
5
+ import{r as e,c as t,h as i,H as n,g as a}from"./p-e037ee2b.js";import{c as r}from"./p-bed627ab.js";import{I as o}from"./p-8e5e362a.js";import{G as c}from"./p-b8689c5f.js";import{B as s}from"./p-f711588b.js";import{C as p}from"./p-32df2233.js";import{I as l}from"./p-2199a954.js";import{d as m}from"./p-3c7a0345.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-3fac58f7.js";var b;!function(e){e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical",e.initial="initial",e.inherit="inherit"}(b||(b={}));const h=class{constructor(i){e(this,i),this.focus=t(this,"bcm-focus",7),this.blur=t(this,"bcm-blur",7),this.clear=t(this,"bcm-clear",7),this.change=t(this,"bcm-change",7),this.input=t(this,"bcm-input",7),this._id=c.UID(),this._internal_id=c.UID(),this.hidden=!1,this.value=void 0,this.placeholder=void 0,this.label=void 0,this.name=void 0,this.required=!1,this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=s.Status.default,this.rows=3,this.size=s.Size.medium,this.disabled=void 0,this.readonly=!1,this.clearable=void 0,this.resize=b.vertical,this.fullWidth=!1,this.maxLength=void 0,this.focused=!1,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType}async onBcmFocus(){this.textarea.focus()}async onBcmBlur(){this.textarea.blur()}async onBcmSelect(){this.textarea.select()}async set(e){await this.setValue(e)}async get(){return this.value||null}async setValue(e){return this.textarea.value=e,this.value=e,this.handleChange(),e}async setClear(){return this.textarea.value="",this.value="",await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await m(10),Promise.resolve()}async getValue(){return this.value}watchValue(e){this.textarea.value=e,this.handleChange()}handleFocus(){this.focused=!0,this.focus.emit()}handleBlur(){this.focused=!1,this.blur.emit()}handleChange(){this.value=this.textarea.value,this.change.emit(this.value)}handleInput(){this.value=this.textarea.value,this.input.emit(this.value)}handleClear(e){this.textarea.value="",this.value="",this.clear.emit(),this.textarea.focus(),e.stopPropagation()}render(){const{_id:e,hidden:t,readonly:a,fullWidth:o,size:c,rows:m,disabled:b,clearable:h,label:u,focused:d,noCaption:x,caption:g,captionError:f,captionType:_,value:w,resize:z,maxLength:y,placeholder:v,required:k}=this,j=r("bcm-input",{hidden:t,"full-width":o});return i(n,{class:j},u&&i("bcm-label",{type:_,value:u,required:k,htmlFor:e}),i(l,{elementType:s.HtmlElementType.textarea,id:e,value:w,rows:m,disabled:b,maxLength:y,placeholder:v,clearable:h,resize:z,readonly:a,size:c,focused:d,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleInput:()=>this.handleInput(),handleClear:e=>this.handleClear(e),ref:e=>this.textarea=e,captionType:_}),i(p,{noCaption:x,captionType:_,captionError:f,caption:g,value:w,maxLength:y}))}get el(){return a(this)}static get watchers(){return{value:["watchValue"]}}};(function(e,t,i,n){var a,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);r>3&&o&&Object.defineProperty(t,i,o)})([o()],h.prototype,"el",void 0),h.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"); @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}*{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)}*{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}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';export{h as bcm_textarea}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as s,h as i,H as e,g as h}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{G as d}from"./p-5f9c84e9.js";import{s as p}from"./p-1b6718f1.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-197aba37.js";const c=class{constructor(i){t(this,i),this.dataIsLoaded=s(this,"data-is-loaded",7),this.bcmChangeHidden=s(this,"bcm-change-hidden",7),this.hidden=!1,this._id=d.UID(),this._title=void 0,this.description=void 0,this.status="default",this.icon=void 0,this.loading=!1,this.valid=!0,this.index=void 0,this.active=!1,this.htmlTemplate=void 0,this.isLast=!1,this.disabled=!1}componentDidLoad(){this.isLast&&this.dataIsLoaded.emit(!0)}getStepper(){return this.el.closest("bcm-stepper")||null}activeChanged(){if(this.active){const t=this.getStepper();t&&p.changeStepDisabled(t.stepperId,this._id,!1)}}statusChange(){const t=this.getStepper();t&&p.changeStepStatus(t.stepperId,this._id,this.status)}hiddenChange(t,s){const i=this.getStepper();t!==s&&i&&!this.active&&this.bcmChangeHidden.emit(t)}disabledChange(t,s){const i=this.getStepper();i&&p.changeStepDisabled(i.stepperId,this._id,t)}render(){const{hidden:t,valid:s,active:h}=this,d=a("bcm-stepper__step",s?"bcm-stepper__step-valid":"bcm-stepper__step-invalid",{"bcm-stepper__step-active":h,hidden:t});return i(e,{class:d},i("slot",null))}get el(){return h(this)}static get watchers(){return{active:["activeChanged"],status:["statusChange"],hidden:["hiddenChange"],disabled:["disabledChange"]}}};export{c as bcm_step}
5
+ import{r as t,c as s,h as i,H as e,g as h}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{G as d}from"./p-b8689c5f.js";import{s as p}from"./p-279b0089.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-197aba37.js";const r=class{constructor(i){t(this,i),this.dataIsLoaded=s(this,"data-is-loaded",7),this.bcmChangeHidden=s(this,"bcm-change-hidden",7),this.hidden=!1,this._id=d.UID(),this._title=void 0,this.description=void 0,this.status="default",this.icon=void 0,this.loading=!1,this.valid=!0,this.index=void 0,this.active=!1,this.htmlTemplate=void 0,this.isLast=!1,this.disabled=!1}componentDidLoad(){this.isLast&&this.dataIsLoaded.emit(!0)}getStepper(){return this.el.closest("bcm-stepper")||null}activeChanged(){if(this.active){const t=this.getStepper();t&&p.changeStepDisabled(t.stepperId,this._id,!1)}}statusChange(){const t=this.getStepper();t&&p.changeStepStatus(t.stepperId,this._id,this.status)}hiddenChange(t,s){const i=this.getStepper();t!==s&&i&&!this.active&&this.bcmChangeHidden.emit(t)}disabledChange(t,s){const i=this.getStepper();i&&p.changeStepDisabled(i.stepperId,this._id,t)}render(){const{hidden:t,valid:s,active:h}=this,d=a("bcm-stepper__step",s?"bcm-stepper__step-valid":"bcm-stepper__step-invalid",{"bcm-stepper__step-active":h,hidden:t});return i(e,{class:d},i("slot",null))}get el(){return h(this)}static get watchers(){return{active:["activeChanged"],status:["statusChange"],hidden:["hiddenChange"],disabled:["disabledChange"]}}};export{r as bcm_step}
@@ -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 n,H as t,g as a}from"./p-e037ee2b.js";import{G as s}from"./p-5f9c84e9.js";import{c as p}from"./p-bed627ab.js";import{S as o}from"./p-f95797df.js";import{C as r}from"./p-4798d827.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-f711588b.js";import"./p-436364c8.js";import"./p-3c7a0345.js";const l=class{constructor(n){e(this,n),this.bcmOpen=i(this,"bcm-open",7),this.bcmClose=i(this,"bcm-close",7),this.bcmExtra=i(this,"bcm-extra",7),this._id=s.UID(),this.expanded=!1,this.disabled=!1,this.hidden=!1,this.valid=!0,this.hideToggle=!1,this.expandIconPosition="right",this.headerColor="white",this.tooltip=void 0,this.tooltipDefaultValue={message:"",placement:"top",trigger:"hover",icon:"fas fa-question-circle",color:"grey-8"}}componentWillRender(){this.restoreSlots()}componentDidLoad(){this.checkExpanded()}createTooltip(){let e;if(this.tooltip){const{tooltip:i}=this;try{e=JSON.parse(i),e=Object.assign(Object.assign({},this.tooltipDefaultValue),e)}catch(n){e=Object.assign(Object.assign({},this.tooltipDefaultValue),{message:i})}}return e}checkExpanded(){this.expanded=!!this.el.expanded}restoreSlots(){const e=this.el.querySelectorAll("bcm-expansion-panel-header, bcm-expansion-panel-description, bcm-expansion-panel-extra");e&&e.forEach((e=>{let i=o.lowercase(o.split(e.nodeName,"-").pop());e.slot=i,e.classList.add(`bcm-expansion-panel__${i}-content`);let n=e.getAttribute("color");n&&(n="white"==n?n:n+"-50",this.headerColor=n)}))}toggle(){this.disabled||(this.expanded=!this.expanded,this.expanded?this.bcmOpen.emit(this._id):this.bcmClose.emit(this._id))}clickExtra(e){e.stopPropagation(),this.bcmExtra.emit(e)}render(){const{_id:e,expanded:i,disabled:a,hidden:s,hideToggle:o,tooltip:l,valid:c}=this,{message:x,placement:h,icon:d,trigger:m,color:g}=l?this.createTooltip():{},b=p("bcm-expansion-panel",c?"bcm-expansion-panel--valid":"bcm-expansion-panel--invalid",{"bcm-expansion-panel--expanded":i,"bcm-expansion-panel--disabled":a,"bcm-expansion-panel--hide-toggle":o,"bcm-expansion-panel--icon-right":"right"===this.expandIconPosition,hidden:s});return n(t,{class:b},n("div",{class:"bcm-expansion-panel__header",onClick:()=>this.toggle(),style:{"background-color":r.dsColor(this.headerColor)}},n("div",{class:"bcm-expansion-panel__header-title"},n("span",{id:e+"-header"},n("slot",{name:"header"})),l&&n("span",{class:"bcm-expansion-panel__header-tooltip",style:Object.assign({},g&&{color:r.convertColorToHex(g)})},n("bcm-tooltip",{message:x,placement:h,trigger:m},n("bcm-icon",{color:g,icon:d}))),n("span",{id:e+"-description",class:"bcm-expansion-panel__header-title-description"},n("slot",{name:"description"}))),n("span",{id:e+"-extra",class:"bcm-expansion-panel__header-extra",onClick:e=>this.clickExtra(e)},n("slot",{name:"extra"})),!o&&n("div",{class:"bcm-expansion-panel__header-toggle"},n("bcm-icon",{icon:"far fa-chevron-down"}))),n("div",{class:"bcm-expansion-panel__body",id:e+"-body"},n("slot",null)))}get el(){return a(this)}};l.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}*{box-sizing:border-box}.bcm-expansion-panel{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box}.bcm-expansion-panel+.bcm-expansion-panel{margin-top:4px}.bcm-expansion-panel__header{display:flex;align-items:center;justify-content:flex-start;user-select:none;min-height:50px;border-radius:8px;padding:4px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-expansion-panel__header-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px}.bcm-expansion-panel__header:hover{cursor:pointer}.bcm-expansion-panel__header-title{order:1;user-select:none;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:4px}.bcm-expansion-panel__header-title-description{margin-left:calc(4px / 2);color:var(--bcm-new-ds-color-slate-500);font-size:12px;line-height:calc(12px + 8px)}.bcm-expansion-panel__header-tooltip{line-height:1;color:var(--bcm-new-ds-color-slate-800)}.bcm-expansion-panel__header-toggle{height:100%;order:0;width:20px;display:flex;align-items:center;justify-content:center;transform:rotate(0deg);transition:transform 0.2s ease-in-out;font-size:12px}.bcm-expansion-panel__header-extra{display:none}.bcm-expansion-panel__header-extra:not(:empty){cursor:default;display:flex;align-items:center;order:5;line-height:1;padding:0 8px}.bcm-expansion-panel__header-extra .bcm-expansion-panel__extra-content{display:flex;align-items:center}.bcm-expansion-panel__body{display:none;padding:12px 24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header{justify-content:space-between;padding-left:24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header-toggle{order:6}.bcm-expansion-panel--invalid .bcm-expansion-panel__header-toggle,.bcm-expansion-panel--invalid .bcm-expansion-panel__header-content{color:var(--bcm-new-ds-color-red-500)}.bcm-expansion-panel--expanded{border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-expansion-panel--expanded .bcm-expansion-panel__header{border-radius:8px 8px 0 0}.bcm-expansion-panel--expanded .bcm-expansion-panel__header-toggle{transform:rotate(180deg)}.bcm-expansion-panel--expanded .bcm-expansion-panel__body{display:block}';export{l as bcm_expansion_panel}
5
+ import{r as e,c as i,h as n,H as t,g as a}from"./p-e037ee2b.js";import{G as s}from"./p-b8689c5f.js";import{c as p}from"./p-bed627ab.js";import{S as o}from"./p-f95797df.js";import{C as r}from"./p-4798d827.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-f711588b.js";import"./p-436364c8.js";import"./p-3c7a0345.js";const l=class{constructor(n){e(this,n),this.bcmOpen=i(this,"bcm-open",7),this.bcmClose=i(this,"bcm-close",7),this.bcmExtra=i(this,"bcm-extra",7),this._id=s.UID(),this.expanded=!1,this.disabled=!1,this.hidden=!1,this.valid=!0,this.hideToggle=!1,this.expandIconPosition="right",this.headerColor="white",this.tooltip=void 0,this.tooltipDefaultValue={message:"",placement:"top",trigger:"hover",icon:"fas fa-question-circle",color:"grey-8"}}componentWillRender(){this.restoreSlots()}componentDidLoad(){this.checkExpanded()}createTooltip(){let e;if(this.tooltip){const{tooltip:i}=this;try{e=JSON.parse(i),e=Object.assign(Object.assign({},this.tooltipDefaultValue),e)}catch(n){e=Object.assign(Object.assign({},this.tooltipDefaultValue),{message:i})}}return e}checkExpanded(){this.expanded=!!this.el.expanded}restoreSlots(){const e=this.el.querySelectorAll("bcm-expansion-panel-header, bcm-expansion-panel-description, bcm-expansion-panel-extra");e&&e.forEach((e=>{let i=o.lowercase(o.split(e.nodeName,"-").pop());e.slot=i,e.classList.add(`bcm-expansion-panel__${i}-content`);let n=e.getAttribute("color");n&&(n="white"==n?n:n+"-50",this.headerColor=n)}))}toggle(){this.disabled||(this.expanded=!this.expanded,this.expanded?this.bcmOpen.emit(this._id):this.bcmClose.emit(this._id))}clickExtra(e){e.stopPropagation(),this.bcmExtra.emit(e)}render(){const{_id:e,expanded:i,disabled:a,hidden:s,hideToggle:o,tooltip:l,valid:c}=this,{message:x,placement:h,icon:d,trigger:m,color:g}=l?this.createTooltip():{},b=p("bcm-expansion-panel",c?"bcm-expansion-panel--valid":"bcm-expansion-panel--invalid",{"bcm-expansion-panel--expanded":i,"bcm-expansion-panel--disabled":a,"bcm-expansion-panel--hide-toggle":o,"bcm-expansion-panel--icon-right":"right"===this.expandIconPosition,hidden:s});return n(t,{class:b},n("div",{class:"bcm-expansion-panel__header",onClick:()=>this.toggle(),style:{"background-color":r.dsColor(this.headerColor)}},n("div",{class:"bcm-expansion-panel__header-title"},n("span",{id:e+"-header"},n("slot",{name:"header"})),l&&n("span",{class:"bcm-expansion-panel__header-tooltip",style:Object.assign({},g&&{color:r.convertColorToHex(g)})},n("bcm-tooltip",{message:x,placement:h,trigger:m},n("bcm-icon",{color:g,icon:d}))),n("span",{id:e+"-description",class:"bcm-expansion-panel__header-title-description"},n("slot",{name:"description"}))),n("span",{id:e+"-extra",class:"bcm-expansion-panel__header-extra",onClick:e=>this.clickExtra(e)},n("slot",{name:"extra"})),!o&&n("div",{class:"bcm-expansion-panel__header-toggle"},n("bcm-icon",{icon:"far fa-chevron-down"}))),n("div",{class:"bcm-expansion-panel__body",id:e+"-body"},n("slot",null)))}get el(){return a(this)}};l.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}*{box-sizing:border-box}.bcm-expansion-panel{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box}.bcm-expansion-panel+.bcm-expansion-panel{margin-top:4px}.bcm-expansion-panel__header{display:flex;align-items:center;justify-content:flex-start;user-select:none;min-height:50px;border-radius:8px;padding:4px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-expansion-panel__header-content{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px}.bcm-expansion-panel__header:hover{cursor:pointer}.bcm-expansion-panel__header-title{order:1;user-select:none;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:4px}.bcm-expansion-panel__header-title-description{margin-left:calc(4px / 2);color:var(--bcm-new-ds-color-slate-500);font-size:12px;line-height:calc(12px + 8px)}.bcm-expansion-panel__header-tooltip{line-height:1;color:var(--bcm-new-ds-color-slate-800)}.bcm-expansion-panel__header-toggle{height:100%;order:0;width:20px;display:flex;align-items:center;justify-content:center;transform:rotate(0deg);transition:transform 0.2s ease-in-out;font-size:12px}.bcm-expansion-panel__header-extra{display:none}.bcm-expansion-panel__header-extra:not(:empty){cursor:default;display:flex;align-items:center;order:5;line-height:1;padding:0 8px}.bcm-expansion-panel__header-extra .bcm-expansion-panel__extra-content{display:flex;align-items:center}.bcm-expansion-panel__body{display:none;padding:12px 24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header{justify-content:space-between;padding-left:24px}.bcm-expansion-panel--icon-right .bcm-expansion-panel__header-toggle{order:6}.bcm-expansion-panel--invalid .bcm-expansion-panel__header-toggle,.bcm-expansion-panel--invalid .bcm-expansion-panel__header-content{color:var(--bcm-new-ds-color-red-500)}.bcm-expansion-panel--expanded{border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-expansion-panel--expanded .bcm-expansion-panel__header{border-radius:8px 8px 0 0}.bcm-expansion-panel--expanded .bcm-expansion-panel__header-toggle{transform:rotate(180deg)}.bcm-expansion-panel--expanded .bcm-expansion-panel__body{display:block}';export{l as bcm_expansion_panel}
@@ -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 o,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{B as n}from"./p-f711588b.js";import{S as l}from"./p-f95797df.js";import{S as c}from"./p-7c623da0.js";import{G as r}from"./p-5f9c84e9.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";const d=class{constructor(t){e(this,t),this.close=i(this,"bcm-close",3),this.modalClose=i(this,"bcm-modal-close",3),this.modalBeforeClose=i(this,"bcm-modal-before-close",3),this.modalBeforeOpen=i(this,"bcm-modal-before-open",3),this.modalSlots={},this._id=r.UID(),this.isShow=!1,this.hidden=!1,this.size=n.Size.medium,this.backdrop=!0,this.width=void 0,this.height=void 0,this.fullWidth=!1}connectedCallback(){const e=this.el.querySelectorAll("bcm-modal-header, bcm-modal-footer");e&&e.forEach((e=>{let i=l.lowercase(l.split(e.nodeName,"-").pop());e.slot=i,e.classList.add(`bcm-modal__container-${i}-content`),this.modalSlots[i]=e}));const i=`bcm-modal--disable-scroll-${this._id}`,t=`bcm-modal-style-${this._id}`;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,o.innerHTML=`.${i} { overflow: hidden; }`,document.head.appendChild(o))}componentWillLoad(){}handleSubmit(e){const i=r.findEventPathWithNodeName(e,l.uppercase("bcm-button"));i&&i.dataDismiss&&this.hide()}handleBackdrop(){1==this.backdrop&&this.hide()}async hide(e={force:!1}){if(null==e?void 0:e.force)return this.isShow=!1,this.close.emit(),void this.modalClose.emit();this.modalBeforeClose.emit(this.el)}async show(e={force:!1}){(null==e?void 0:e.force)?this.isShow=!0:this.modalBeforeOpen.emit(this.el)}keyboardNavigation(e){1==this.backdrop&&(e.keyCode||0)==n.KeyCode.escape&&(e.preventDefault(),this.hide())}async showModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!0)}async hideModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!1,this.close.emit(),this.modalClose.emit())}_openHandler(){const e=`bcm-modal--disable-scroll-${this._id}`;this.isShow?document.body.classList.add(e):document.body.classList.remove(e)}disconnectedCallback(){document.body.classList.remove(`bcm-modal--disable-scroll-${this._id}`)}render(){const{isShow:e,size:i,fullWidth:a,hidden:n,width:l,height:r}=this,d=s("bcm-modal__container",i,{"custom-size":l||r,"full-width":a,"bcm-modal__show":e}),m=s("bcm-modal",{hidden:n,"bcm-modal__show":e}),h=s("bcm-modal__container-main","size-2"),p=Object.assign(Object.assign({},l&&{width:l}),r&&{height:r});return t(o,{class:`tw-overscroll-contain ${m}`},t("div",{class:"overlay",onClick:()=>this.handleBackdrop()}),t("div",{class:d,style:p},t((()=>this.modalSlots.header&&t("header",{class:"bcm-modal__container-header"},t(c,{name:"header",className:"full-width"}),t("div",{class:"bcm-modal__container-header-close",onClick:()=>this.hide()},t("bcm-icon",{icon:"far fa-times"})))),null),t("main",{class:h},t("article",null,t(c,null))),t((()=>this.modalSlots.footer&&t("footer",{class:"bcm-modal__container-footer"},t("slot",{name:"footer"}))),null)))}get el(){return a(this)}static get watchers(){return{isShow:["_openHandler"]}}};d.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}*{box-sizing:border-box}.bcm-modal{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100);position:relative}.bcm-modal__container-header span.full-width{width:100%}.bcm-modal__container-header-close{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:8px;cursor:pointer;color:var(--bcm-new-ds-color-slate-500);transition:color 0.1s ease-in-out}.bcm-modal__container-header-close:hover{color:var(--bcm-new-ds-color-slate-600)}.bcm-modal__container-header-close:active{color:var(--bcm-new-ds-color-slate-700)}.bcm-modal__container-header-close:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.bcm-modal__container-header:after{border-radius:8px 8px 0 0;content:"";display:block;width:100%;height:4px;background-color:var(--bcm-color-primary-400);position:absolute;top:-4px;left:0}.bcm-modal__container-footer-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex-wrap:nowrap;padding:12px 24px 24px;grid-gap:8px}';export{d as bcm_modal}
5
+ import{r as e,c as i,h as t,H as o,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{B as n}from"./p-f711588b.js";import{S as l}from"./p-f95797df.js";import{S as c}from"./p-7c623da0.js";import{G as r}from"./p-b8689c5f.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";const d=class{constructor(t){e(this,t),this.close=i(this,"bcm-close",3),this.modalClose=i(this,"bcm-modal-close",3),this.modalBeforeClose=i(this,"bcm-modal-before-close",3),this.modalBeforeOpen=i(this,"bcm-modal-before-open",3),this.modalSlots={},this._id=r.UID(),this.isShow=!1,this.hidden=!1,this.size=n.Size.medium,this.backdrop=!0,this.width=void 0,this.height=void 0,this.fullWidth=!1}connectedCallback(){const e=this.el.querySelectorAll("bcm-modal-header, bcm-modal-footer");e&&e.forEach((e=>{let i=l.lowercase(l.split(e.nodeName,"-").pop());e.slot=i,e.classList.add(`bcm-modal__container-${i}-content`),this.modalSlots[i]=e}));const i=`bcm-modal--disable-scroll-${this._id}`,t=`bcm-modal-style-${this._id}`;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,o.innerHTML=`.${i} { overflow: hidden; }`,document.head.appendChild(o))}componentWillLoad(){}handleSubmit(e){const i=r.findEventPathWithNodeName(e,l.uppercase("bcm-button"));i&&i.dataDismiss&&this.hide()}handleBackdrop(){1==this.backdrop&&this.hide()}async hide(e={force:!1}){if(null==e?void 0:e.force)return this.isShow=!1,this.close.emit(),void this.modalClose.emit();this.modalBeforeClose.emit(this.el)}async show(e={force:!1}){(null==e?void 0:e.force)?this.isShow=!0:this.modalBeforeOpen.emit(this.el)}keyboardNavigation(e){1==this.backdrop&&(e.keyCode||0)==n.KeyCode.escape&&(e.preventDefault(),this.hide())}async showModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!0)}async hideModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!1,this.close.emit(),this.modalClose.emit())}_openHandler(){const e=`bcm-modal--disable-scroll-${this._id}`;this.isShow?document.body.classList.add(e):document.body.classList.remove(e)}disconnectedCallback(){document.body.classList.remove(`bcm-modal--disable-scroll-${this._id}`)}render(){const{isShow:e,size:i,fullWidth:a,hidden:n,width:l,height:r}=this,d=s("bcm-modal__container",i,{"custom-size":l||r,"full-width":a,"bcm-modal__show":e}),m=s("bcm-modal",{hidden:n,"bcm-modal__show":e}),h=s("bcm-modal__container-main","size-2"),p=Object.assign(Object.assign({},l&&{width:l}),r&&{height:r});return t(o,{class:`tw-overscroll-contain ${m}`},t("div",{class:"overlay",onClick:()=>this.handleBackdrop()}),t("div",{class:d,style:p},t((()=>this.modalSlots.header&&t("header",{class:"bcm-modal__container-header"},t(c,{name:"header",className:"full-width"}),t("div",{class:"bcm-modal__container-header-close",onClick:()=>this.hide()},t("bcm-icon",{icon:"far fa-times"})))),null),t("main",{class:h},t("article",null,t(c,null))),t((()=>this.modalSlots.footer&&t("footer",{class:"bcm-modal__container-footer"},t("slot",{name:"footer"}))),null)))}get el(){return a(this)}static get watchers(){return{isShow:["_openHandler"]}}};d.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}*{box-sizing:border-box}.bcm-modal{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100);position:relative}.bcm-modal__container-header span.full-width{width:100%}.bcm-modal__container-header-close{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:8px;cursor:pointer;color:var(--bcm-new-ds-color-slate-500);transition:color 0.1s ease-in-out}.bcm-modal__container-header-close:hover{color:var(--bcm-new-ds-color-slate-600)}.bcm-modal__container-header-close:active{color:var(--bcm-new-ds-color-slate-700)}.bcm-modal__container-header-close:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.bcm-modal__container-header:after{border-radius:8px 8px 0 0;content:"";display:block;width:100%;height:4px;background-color:var(--bcm-color-primary-400);position:absolute;top:-4px;left:0}.bcm-modal__container-footer-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex-wrap:nowrap;padding:12px 24px 24px;grid-gap:8px}';export{d as bcm_modal}
@@ -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 p}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{C as r}from"./p-4798d827.js";import{G as s}from"./p-5f9c84e9.js";import{S as o}from"./p-f95797df.js";import{S as n}from"./p-7c623da0.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-9cee10ca.js";import"./p-f711588b.js";const x=class{constructor(i){e(this,i),this.modalSlots={},this._id=s.UID(),this.hidden=!1,this.color="slate",this.header=void 0,this.footer=void 0}connectedCallback(){const e=this.el.querySelectorAll("bcm-card-header, bcm-card-footer");e&&e.forEach((e=>{let i=o.lowercase(o.split(e.nodeName,"-").pop());if(e.slot=i,"header"===i){let i=e.getAttribute("color");i&&(i="white"==i?i:i+"-50",e.setAttribute("style",`background-color: ${r.dsColor(i)}`))}e.classList.add(`bcm-card__${i}`),this.modalSlots[i]=e}))}render(){const e=a("bcm-card",this.hidden?"hidden":null);return i(t,{class:e},i((()=>this.modalSlots.header&&i("slot",{name:"header"})),null),i("div",{class:"bcm-card__body"},i(n,null)),i((()=>this.modalSlots.footer&&i("slot",{name:"footer"})),null))}get el(){return p(this)}};x.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}*{box-sizing:border-box}.bcm-card{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1);box-sizing:border-box}.bcm-card__header,.bcm-card__body,.bcm-card__footer{display:block;width:100%}.bcm-card__header{border-radius:8px 8px 0 0;padding:12px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-card__body{padding:12px 24px}.bcm-card__footer{padding:12px 24px;border-radius:0 0 8px 8px}';export{x as bcm_card}
5
+ import{r as e,h as i,H as t,g as p}from"./p-e037ee2b.js";import{c as a}from"./p-bed627ab.js";import{C as r}from"./p-4798d827.js";import{G as s}from"./p-b8689c5f.js";import{S as o}from"./p-f95797df.js";import{S as n}from"./p-7c623da0.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-8a1e77c7.js";import"./p-f711588b.js";const x=class{constructor(i){e(this,i),this.modalSlots={},this._id=s.UID(),this.hidden=!1,this.color="slate",this.header=void 0,this.footer=void 0}connectedCallback(){const e=this.el.querySelectorAll("bcm-card-header, bcm-card-footer");e&&e.forEach((e=>{let i=o.lowercase(o.split(e.nodeName,"-").pop());if(e.slot=i,"header"===i){let i=e.getAttribute("color");i&&(i="white"==i?i:i+"-50",e.setAttribute("style",`background-color: ${r.dsColor(i)}`))}e.classList.add(`bcm-card__${i}`),this.modalSlots[i]=e}))}render(){const e=a("bcm-card",this.hidden?"hidden":null);return i(t,{class:e},i((()=>this.modalSlots.header&&i("slot",{name:"header"})),null),i("div",{class:"bcm-card__body"},i(n,null)),i((()=>this.modalSlots.footer&&i("slot",{name:"footer"})),null))}get el(){return p(this)}};x.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}*{box-sizing:border-box}.bcm-card{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1);box-sizing:border-box}.bcm-card__header,.bcm-card__body,.bcm-card__footer{display:block;width:100%}.bcm-card__header{border-radius:8px 8px 0 0;padding:12px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-card__body{padding:12px 24px}.bcm-card__footer{padding:12px 24px;border-radius:0 0 8px 8px}';export{x as bcm_card}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import{I as r}from"./p-8e5e362a.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import{a}from"./p-f711588b.js";import{C as m}from"./p-32df2233.js";import{c as p}from"./p-bed627ab.js";import"./p-3fac58f7.js";import{L as c}from"./p-5ee8a018.js";import"./p-2e73d572.js";import{h as n}from"./p-76edf59f.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-7c623da0.js";const d=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format)switch(this.type){case"time":return this.showSecond?"HH:mm:ss":this.showMinute?"HH:mm":"HH";case"date":default:return"DD/MM/YYYY";case"datetime":return this.showSecond?"DD/MM/YYYY HH:mm:ss":this.showMinute?"DD/MM/YYYY HH:mm":"DD/MM/YYYY HH";case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[i,s]=t._i||[],e=this.createValueObject(i),h=this.createValueObject(s);return Object.assign({isValid:e.isValid&&h.isValid,start:e,end:h,date:[e.date,h.date],timestamp:[e.timestamp,h.timestamp],value:`${e.value} - ${h.value}`},"time"===this.type&&{time:`${e.time} - ${h.time}`})},this.createValueObject=t=>t&&n(t).isValid()?Object.assign({isValid:n(t).isValid(),date:n(t).toDate(),timestamp:n(t).valueOf(),dateObject:{year:n(t).year(),day:n(t).date(),month:n(t).month(),dayOfWeek:n(t).day(),monthFirstDay:n(t).startOf("month").day()},value:n(t).format(this.getFormat())},"time"===this.type&&{time:n(t).format(this.getFormat()),timeObject:{hour:n(t).hour(),minute:n(t).minute(),second:n(t).second()}}):null,this._id=o.UID(),this.label=void 0,this.placeholder=void 0,this.size=a.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=a.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:t,size:i,captionType:h,required:r,_id:o}=this;return s(e,{class:p("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},t&&s(c,{size:i,type:h,value:t,required:r,htmlFor:o}),s("bcm-rc-picker",{id:o+"-picker",class:p("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:i,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),s(m,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return h(this)}};!function(t,i,s,e){var h,r=arguments.length,o=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(h=t[a])&&(o=(r<3?h(o):r>3?h(i,s,o):h(i,s))||o);r>3&&o&&Object.defineProperty(i,s,o)}([r()],d.prototype,"el",void 0);export{d as bcm_date}
5
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-e037ee2b.js";import{I as r}from"./p-8e5e362a.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{a}from"./p-f711588b.js";import{C as m}from"./p-32df2233.js";import{c as p}from"./p-bed627ab.js";import"./p-3fac58f7.js";import{L as c}from"./p-5ee8a018.js";import"./p-2e73d572.js";import{h as n}from"./p-76edf59f.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-7c623da0.js";const d=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.onChange=t=>{this.value=this.getValueObject(t.detail),this.change.emit(this.value)},this.getFormat=()=>{if(!this.format)switch(this.type){case"time":return this.showSecond?"HH:mm:ss":this.showMinute?"HH:mm":"HH";case"date":default:return"DD/MM/YYYY";case"datetime":return this.showSecond?"DD/MM/YYYY HH:mm:ss":this.showMinute?"DD/MM/YYYY HH:mm":"DD/MM/YYYY HH";case"week":return"YYYY-wo";case"month":return"MM/YYYY";case"year":return"YYYY"}return this.format},this.getValueObject=t=>this.range?this.getRangeValueObject(t):this.createValueObject(t),this.getRangeValueObject=t=>{const[i,s]=t._i||[],e=this.createValueObject(i),h=this.createValueObject(s);return Object.assign({isValid:e.isValid&&h.isValid,start:e,end:h,date:[e.date,h.date],timestamp:[e.timestamp,h.timestamp],value:`${e.value} - ${h.value}`},"time"===this.type&&{time:`${e.time} - ${h.time}`})},this.createValueObject=t=>t&&n(t).isValid()?Object.assign({isValid:n(t).isValid(),date:n(t).toDate(),timestamp:n(t).valueOf(),dateObject:{year:n(t).year(),day:n(t).date(),month:n(t).month(),dayOfWeek:n(t).day(),monthFirstDay:n(t).startOf("month").day()},value:n(t).format(this.getFormat())},"time"===this.type&&{time:n(t).format(this.getFormat()),timeObject:{hour:n(t).hour(),minute:n(t).minute(),second:n(t).second()}}):null,this._id=o.UID(),this.label=void 0,this.placeholder=void 0,this.size=a.Size.medium,this.fullWidth=!1,this.required=!1,this.clearable=!1,this.disabled=!1,this.noMargin=!1,this.caption=void 0,this.noCaption=!1,this.captionType=a.Status.default,this.captionError=void 0,this.name=void 0,this.value=void 0,this.type="date",this.format=void 0,this.range=!1,this.showTime=!1,this.showNow=!0,this.showHour=!0,this.showMinute=!0,this.showSecond=!1,this.use12Hours=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.hideDisabledOptions=!1,this.disabledTime=void 0,this.showToday=!0,this.disabledDates=void 0}async getValue(){return this.value}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async set(t){this.getPickerElement().set(t)}async setClear(){this.getPickerElement().set(null)}async resetCaption(){this.captionType="default",this.captionError=null}async getInput(){return this.el.querySelector("input")}async isValid(){var t;return(null===(t=this.getValueObject(this.value))||void 0===t?void 0:t.isValid)||!1}getPickerElement(){return this.el.querySelector("bcm-rc-picker")}render(){const{label:t,size:i,captionType:h,required:r,_id:o}=this;return s(e,{class:p("bcm-ui-element bcm-ui-input","tw-relative tw-m-0 tw-inline-flex tw-w-full tw-flex-col",{"tw-max-w-[256px]":!this.fullWidth,"tw-mb-2":!this.noMargin})},t&&s(c,{size:i,type:h,value:t,required:r,htmlFor:o}),s("bcm-rc-picker",{id:o+"-picker",class:p("w-full tw-flex"),onBcmRCPickerChange:t=>this.onChange(t),disabled:this.disabled,clearable:this.clearable,size:i,placeholder:this.placeholder,error:"error"===this.captionType,type:this.type,format:this.getFormat(),range:this.range,showToday:this.showToday,disabledDates:this.disabledDates,showTime:this.showTime,showNow:this.showNow,showHour:this.showHour,showMinute:this.showMinute,showSecond:this.showSecond,use12Hours:this.use12Hours,hourStep:this.hourStep,minuteStep:this.minuteStep,secondStep:this.secondStep,hideDisabledOptions:this.hideDisabledOptions,disabledTime:this.disabledTime}),s(m,{noCaption:this.noCaption,captionType:this.captionType,captionError:this.captionError,caption:this.caption}))}get el(){return h(this)}};!function(t,i,s,e){var h,r=arguments.length,o=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(h=t[a])&&(o=(r<3?h(o):r>3?h(i,s,o):h(i,s))||o);r>3&&o&&Object.defineProperty(i,s,o)}([r()],d.prototype,"el",void 0);export{d as bcm_date}
@@ -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 o,H as t,g as s}from"./p-e037ee2b.js";import{c as l}from"./p-bed627ab.js";import{G as p}from"./p-5f9c84e9.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";const r=class{constructor(o){e(this,o),this.bcmCollapseOpen=i(this,"bcm-collapse-open",7),this._id=p.UID(),this.borderless=!1,this.open=!1,this.noBorder=!1,this.hidden=!1}componentDidRender(){this.open&&this.bcmCollapseOpen.emit(this._id)}render(){const{hidden:e,borderless:i,open:s,noBorder:p,_id:r}=this,a=l("bcm-collapse",{"bcm-collapse--borderless":i,"bcm-collapse--open":s,"bcm-collapse--no-border":p});return o(t,{class:{hidden:e},id:r},o("details",{class:a,open:s},o("summary",{class:"bcm-collapse__header size-2",onClick:()=>this.open=!s},o("span",{class:"collapse-icon",innerHTML:s?'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>':'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>'}),o("slot",{name:"title"})),o("div",{class:"bcm-collapse__body"},o("slot",{name:"body"}))))}get el(){return s(this)}};r.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-collapse{display:block;border:1px solid var(--bcm-color-grey-5)}.bcm-collapse ::-webkit-details-marker{display:none}.bcm-collapse__header{display:flex;align-items:center;color:var(--bcm-color-grey-9);padding:16px;background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5);cursor:default;user-select:none}.bcm-collapse__header:focus{outline:none}.bcm-collapse__header .collapse-icon{margin-right:8px;display:flex;align-items:center;justify-content:center}.bcm-collapse__body{padding:16px;background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8)}.bcm-collapse--borderless{border:none}.bcm-collapse--borderless:not(.bcm-collapse--no-border){border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-collapse--borderless .bcm-collapse__header{border-bottom:none}.bcm-collapse--borderless .bcm-collapse__body{background-color:var(--bcm-color-grey-2);padding:0 40px 16px}.bcm-collapse:not(.bcm-collapse--open) .bcm-collapse__header{border-bottom:none}.bcm-collapse:not(:first-child) .collapse{border-top:none}.bcm-collapse.hidden{display:none}';export{r as bcm_collapse}
5
+ import{r as e,c as i,h as o,H as t,g as s}from"./p-e037ee2b.js";import{c as l}from"./p-bed627ab.js";import{G as p}from"./p-b8689c5f.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";const r=class{constructor(o){e(this,o),this.bcmCollapseOpen=i(this,"bcm-collapse-open",7),this._id=p.UID(),this.borderless=!1,this.open=!1,this.noBorder=!1,this.hidden=!1}componentDidRender(){this.open&&this.bcmCollapseOpen.emit(this._id)}render(){const{hidden:e,borderless:i,open:s,noBorder:p,_id:r}=this,a=l("bcm-collapse",{"bcm-collapse--borderless":i,"bcm-collapse--open":s,"bcm-collapse--no-border":p});return o(t,{class:{hidden:e},id:r},o("details",{class:a,open:s},o("summary",{class:"bcm-collapse__header size-2",onClick:()=>this.open=!s},o("span",{class:"collapse-icon",innerHTML:s?'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>':'<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>'}),o("slot",{name:"title"})),o("div",{class:"bcm-collapse__body"},o("slot",{name:"body"}))))}get el(){return s(this)}};r.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-collapse{display:block;border:1px solid var(--bcm-color-grey-5)}.bcm-collapse ::-webkit-details-marker{display:none}.bcm-collapse__header{display:flex;align-items:center;color:var(--bcm-color-grey-9);padding:16px;background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5);cursor:default;user-select:none}.bcm-collapse__header:focus{outline:none}.bcm-collapse__header .collapse-icon{margin-right:8px;display:flex;align-items:center;justify-content:center}.bcm-collapse__body{padding:16px;background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8)}.bcm-collapse--borderless{border:none}.bcm-collapse--borderless:not(.bcm-collapse--no-border){border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-collapse--borderless .bcm-collapse__header{border-bottom:none}.bcm-collapse--borderless .bcm-collapse__body{background-color:var(--bcm-color-grey-2);padding:0 40px 16px}.bcm-collapse:not(.bcm-collapse--open) .bcm-collapse__header{border-bottom:none}.bcm-collapse:not(:first-child) .collapse{border-top:none}.bcm-collapse.hidden{display:none}';export{r as bcm_collapse}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as i,c,h as e,H as t,g as o}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{C as a}from"./p-4798d827.js";import{G as h}from"./p-5f9c84e9.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-9cee10ca.js";const p=class{constructor(e){i(this,e),this.bcmChipDismiss=c(this,"bcm-chip-dismiss",7),this.bcmChipSelect=c(this,"bcm-chip-select",7),this.bcmChipAddable=c(this,"bcm-chip-addable",7),this.bcmChipSelectItem=c(this,"bcm-chip-select-item",7),this._id=h.UID(),this.type="default",this.size="medium",this.avatar=void 0,this.icon=void 0,this.disabled=void 0,this.color=void 0,this.selected=!1,this.value=void 0,this.data=[]}setColor(){if(!this.color&&!this.selected)return;const i=this.selected?"indigo":this.color;return{"--bcm-chip-color":a.dsColor(i+"-500"),"--bcm-chip-color-hover":a.dsColor(i+"-500"),"--bcm-chip-color-focus":a.dsColor(i+"-600"),"--bcm-chip-color-active":a.dsColor(i+"-700"),"--bcm-chip-color-disabled":a.dsColor("slate-300"),"--bcm-chip-background-color":a.dsColor(i+"-100"),"--bcm-chip-background-color-hover":a.dsColor(i+"-200"),"--bcm-chip-background-color-focus":a.dsColor(i+"-300"),"--bcm-chip-background-color-active":a.dsColor(i+"-200"),"--bcm-chip-background-color-disabled":a.dsColor("slate-100")}}handleDismiss(i){i.stopPropagation(),i.preventDefault(),this.bcmChipDismiss.emit(this.el)}handleAddable(i){i.stopPropagation(),i.preventDefault(),this.bcmChipAddable.emit(this.el)}listSelectedItems(i){i.stopPropagation(),i.preventDefault(),i.detail&&(this.bcmChipSelectItem.emit(i.detail),i.target.setClear(),this.data=this.data.filter((c=>c.id!==i.detail.id)))}render(){const{type:i,size:c,avatar:o,disabled:a,color:h}=this,p=s("bcm-chip",`bcm-chip__type-${i}`,`bcm-chip__size-${c}`,{"bcm-chip--disabled":a,"bcm-chip--avatar":o});return e(t,{class:p,tabindex:"0",disabled:a,style:this.setColor(),onClick:i=>this.bcmChipSelect.emit(i)},e("div",{class:s(this.selected?"bcm-chip--selected-icon":"tw-hidden tw-w-0")},e("bcm-icon",{icon:"fal fa-check"})),o&&e("bcm-avatar",Object.assign({size:c},h&&{color:h},o&&{image:o})),"addable"===i&&e("span",{class:"bcm-chip__left"},e("bcm-icon",{onClick:i=>this.handleAddable(i),icon:"far fa-plus"})),e("slot",null),"dismissable"===i&&e("span",{class:"bcm-chip__type-dismissable-icon"},e("bcm-icon",{onClick:i=>this.handleDismiss(i),icon:"fal fa-times"})),this.data&&this.data.length>0&&e("bcm-list",{"onBcm-change":i=>this.listSelectedItems(i),id:this._id+"-list",data:this.data,linkedComponent:this._id,searchable:!0,highlight:!0}))}get el(){return o(this)}};p.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}*{box-sizing:border-box}.bcm-chip{--bcm-chip-color:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-hover:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-focus:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-active:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color:var(--bcm-new-ds-color-slate-200);--bcm-chip-background-color-hover:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-focus:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-active:var(--bcm-new-ds-color-slate-400);--bcm-chip-background-color-disabled:var(--bcm-new-ds-color-slate-100);display:inline-flex;justify-content:center;align-items:center;width:fit-content;height:fit-content;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;padding:0 8px;gap:4px;color:var(--bcm-chip-color);background-color:var(--bcm-chip-background-color);border-radius:100px;transition:background-color 0.1s ease-in-out;outline:none}.bcm-chip:not(.bcm-chip--disabled):hover{background-color:var(--bcm-chip-background-color-hover)}.bcm-chip:not(.bcm-chip--disabled):focus{background-color:var(--bcm-chip-background-color-focus);color:var(--bcm-chip-color-focus)}.bcm-chip:not(.bcm-chip--disabled):active{background-color:var(--bcm-chip-background-color-active);color:var(--bcm-chip-color-active)}.bcm-chip--disabled{color:var(--bcm-chip-color-disabled);background-color:var(--bcm-chip-background-color-disabled)}.bcm-chip--avatar{padding-left:2px}.bcm-chip__type-dismissable-icon:hover{cursor:pointer;color:var(--bcm-chip-color-active)}.bcm-chip__size-small{font-size:10px;line-height:calc(10px + 8px)}.bcm-chip__size-small .bcm-avatar{width:14px;height:14px}.bcm-chip__size-small .bcm-chip--selected-icon{width:8px}.bcm-chip__size-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-chip__size-medium .bcm-avatar{width:16px;height:16px}.bcm-chip__size-medium .bcm-chip--selected-icon{width:10px}.bcm-chip__size-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-chip__size-large .bcm-avatar{width:18px;height:18px}.bcm-chip__size-large .bcm-chip--selected-icon{width:12px}';export{p as bcm_chip}
5
+ import{r as i,c,h as e,H as t,g as o}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{C as a}from"./p-4798d827.js";import{G as h}from"./p-b8689c5f.js";import"./p-e45c1546.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-8a1e77c7.js";const p=class{constructor(e){i(this,e),this.bcmChipDismiss=c(this,"bcm-chip-dismiss",7),this.bcmChipSelect=c(this,"bcm-chip-select",7),this.bcmChipAddable=c(this,"bcm-chip-addable",7),this.bcmChipSelectItem=c(this,"bcm-chip-select-item",7),this._id=h.UID(),this.type="default",this.size="medium",this.avatar=void 0,this.icon=void 0,this.disabled=void 0,this.color=void 0,this.selected=!1,this.value=void 0,this.data=[]}setColor(){if(!this.color&&!this.selected)return;const i=this.selected?"indigo":this.color;return{"--bcm-chip-color":a.dsColor(i+"-500"),"--bcm-chip-color-hover":a.dsColor(i+"-500"),"--bcm-chip-color-focus":a.dsColor(i+"-600"),"--bcm-chip-color-active":a.dsColor(i+"-700"),"--bcm-chip-color-disabled":a.dsColor("slate-300"),"--bcm-chip-background-color":a.dsColor(i+"-100"),"--bcm-chip-background-color-hover":a.dsColor(i+"-200"),"--bcm-chip-background-color-focus":a.dsColor(i+"-300"),"--bcm-chip-background-color-active":a.dsColor(i+"-200"),"--bcm-chip-background-color-disabled":a.dsColor("slate-100")}}handleDismiss(i){i.stopPropagation(),i.preventDefault(),this.bcmChipDismiss.emit(this.el)}handleAddable(i){i.stopPropagation(),i.preventDefault(),this.bcmChipAddable.emit(this.el)}listSelectedItems(i){i.stopPropagation(),i.preventDefault(),i.detail&&(this.bcmChipSelectItem.emit(i.detail),i.target.setClear(),this.data=this.data.filter((c=>c.id!==i.detail.id)))}render(){const{type:i,size:c,avatar:o,disabled:a,color:h}=this,p=s("bcm-chip",`bcm-chip__type-${i}`,`bcm-chip__size-${c}`,{"bcm-chip--disabled":a,"bcm-chip--avatar":o});return e(t,{class:p,tabindex:"0",disabled:a,style:this.setColor(),onClick:i=>this.bcmChipSelect.emit(i)},e("div",{class:s(this.selected?"bcm-chip--selected-icon":"tw-hidden tw-w-0")},e("bcm-icon",{icon:"fal fa-check"})),o&&e("bcm-avatar",Object.assign({size:c},h&&{color:h},o&&{image:o})),"addable"===i&&e("span",{class:"bcm-chip__left"},e("bcm-icon",{onClick:i=>this.handleAddable(i),icon:"far fa-plus"})),e("slot",null),"dismissable"===i&&e("span",{class:"bcm-chip__type-dismissable-icon"},e("bcm-icon",{onClick:i=>this.handleDismiss(i),icon:"fal fa-times"})),this.data&&this.data.length>0&&e("bcm-list",{"onBcm-change":i=>this.listSelectedItems(i),id:this._id+"-list",data:this.data,linkedComponent:this._id,searchable:!0,highlight:!0}))}get el(){return o(this)}};p.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}*{box-sizing:border-box}.bcm-chip{--bcm-chip-color:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-hover:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-focus:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-active:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color:var(--bcm-new-ds-color-slate-200);--bcm-chip-background-color-hover:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-focus:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-active:var(--bcm-new-ds-color-slate-400);--bcm-chip-background-color-disabled:var(--bcm-new-ds-color-slate-100);display:inline-flex;justify-content:center;align-items:center;width:fit-content;height:fit-content;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;padding:0 8px;gap:4px;color:var(--bcm-chip-color);background-color:var(--bcm-chip-background-color);border-radius:100px;transition:background-color 0.1s ease-in-out;outline:none}.bcm-chip:not(.bcm-chip--disabled):hover{background-color:var(--bcm-chip-background-color-hover)}.bcm-chip:not(.bcm-chip--disabled):focus{background-color:var(--bcm-chip-background-color-focus);color:var(--bcm-chip-color-focus)}.bcm-chip:not(.bcm-chip--disabled):active{background-color:var(--bcm-chip-background-color-active);color:var(--bcm-chip-color-active)}.bcm-chip--disabled{color:var(--bcm-chip-color-disabled);background-color:var(--bcm-chip-background-color-disabled)}.bcm-chip--avatar{padding-left:2px}.bcm-chip__type-dismissable-icon:hover{cursor:pointer;color:var(--bcm-chip-color-active)}.bcm-chip__size-small{font-size:10px;line-height:calc(10px + 8px)}.bcm-chip__size-small .bcm-avatar{width:14px;height:14px}.bcm-chip__size-small .bcm-chip--selected-icon{width:8px}.bcm-chip__size-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-chip__size-medium .bcm-avatar{width:16px;height:16px}.bcm-chip__size-medium .bcm-chip--selected-icon{width:10px}.bcm-chip__size-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-chip__size-large .bcm-avatar{width:18px;height:18px}.bcm-chip__size-large .bcm-chip--selected-icon{width:12px}';export{p as bcm_chip}