bromcom-ui 2.12.2-test.1 → 2.12.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-69260d36.entry.js → p-0e7c65a4.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-b2731373.entry.js → p-163e9e9f.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-ee591beb.entry.js → p-16eba042.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-a639d6c1.js → p-1774cf8d.js} +1 -1
  6. package/dist/bromcom-ui/{p-8e98eedc.js → p-190f60ff.js} +1 -1
  7. package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-23de0f81.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-74e6d2b6.js → p-28beec31.js} +1 -1
  9. package/dist/bromcom-ui/{p-7a4ee5b3.entry.js → p-2f241754.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3a20c2da.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-228c74e9.entry.js → p-3a5afdde.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-3a98282f.entry.js +5 -0
  13. package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-3ce81521.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-8927a715.js → p-413e4bb5.js} +1 -1
  15. package/dist/bromcom-ui/{p-053dc717.entry.js → p-4786edf8.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-3238bf36.js → p-491fa9dc.js} +1 -1
  17. package/dist/bromcom-ui/p-4b94e74a.entry.js +5 -0
  18. package/dist/bromcom-ui/{p-594a57c3.entry.js → p-4e60da7b.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-d551a51d.entry.js → p-4eff4c1f.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-80b5ebdd.entry.js → p-513f0687.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-5dea2654.entry.js → p-5244fb1e.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-43c578cf.js → p-53c8aabd.js} +1 -1
  23. package/dist/bromcom-ui/{p-9850cbce.js → p-55aeb18f.js} +1 -1
  24. package/dist/bromcom-ui/{p-4efbc5c8.js → p-5b96cd07.js} +1 -1
  25. package/dist/bromcom-ui/{p-4b440055.entry.js → p-6b5d687e.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-0f29d0dd.entry.js → p-74dbd9f5.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-77b01aeb.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-53d997e6.entry.js → p-78a62251.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-112e0727.entry.js → p-7d2009fb.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-467ad7a1.entry.js → p-84ac7b5c.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-170cf07d.js → p-8828bbde.js} +2 -2
  32. package/dist/bromcom-ui/{p-5dc6d136.entry.js → p-8d658561.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-e089ce19.entry.js → p-9195ef01.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-92ada041.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-6c1af0c0.entry.js → p-9b77878c.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-e1cedfa7.entry.js → p-a2aaaa6d.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-35ff3206.entry.js → p-a5c650c3.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-4308aba0.entry.js → p-acc118dd.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-f0e30624.entry.js → p-adb1df77.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-6f22f3c9.entry.js → p-b0842aa0.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-b17acffb.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-304db6c3.js → p-c168b4ec.js} +1 -1
  43. package/dist/bromcom-ui/{p-5dfb9f46.entry.js → p-c62bb5c8.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-96635cea.entry.js → p-ca72ffc3.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-eb425ca4.entry.js → p-ca806d4e.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-8e683b32.js → p-ce3a95cf.js} +1 -1
  47. package/dist/bromcom-ui/{p-38c63284.entry.js → p-d49e9044.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-d4f95f24.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-3cc4266d.entry.js → p-d7bf2666.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-dfa23b8e.entry.js → p-ddc0734e.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-ece578ef.entry.js → p-dddd0430.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-e323f35d.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-626b805d.entry.js → p-e5a7cb21.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-ae57f046.entry.js → p-e8d69fae.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-3212201e.entry.js → p-e989d53d.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-ea9ddaed.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-b18e4392.entry.js → p-f0ffa605.entry.js} +2 -2
  58. package/dist/bromcom-ui/{p-0bc1d908.entry.js → p-fc15e3a1.entry.js} +1 -1
  59. package/dist/cjs/bcm-accordion_63.cjs.entry.js +11 -11
  60. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  61. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +5 -5
  62. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +5 -5
  63. package/dist/cjs/bcm-autocomplete.cjs.entry.js +1 -1
  64. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  65. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
  66. package/dist/cjs/bcm-caption.cjs.entry.js +6 -6
  67. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  68. package/dist/cjs/bcm-chip-group.cjs.entry.js +10 -10
  69. package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  72. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +5 -5
  73. package/dist/cjs/bcm-default.cjs.entry.js +3 -3
  74. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
  76. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-input-2.cjs.entry.js +5 -5
  78. package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
  79. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -6
  80. package/dist/cjs/bcm-message.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  82. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  83. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  84. package/dist/cjs/bcm-notification.cjs.entry.js +1 -1
  85. package/dist/cjs/bcm-number-input.cjs.entry.js +6 -6
  86. package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  88. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  89. package/dist/cjs/bcm-react-number.cjs.entry.js +1 -1
  90. package/dist/cjs/bcm-result.cjs.entry.js +1 -1
  91. package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
  94. package/dist/cjs/bcm-tab-pane.cjs.entry.js +1 -1
  95. package/dist/cjs/bcm-table.cjs.entry.js +5 -5
  96. package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
  98. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-timeline-item.cjs.entry.js +1 -1
  100. package/dist/cjs/bcm-timeline.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  102. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  103. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  104. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-9f135978.js} +1 -1
  105. package/dist/cjs/{generate-2000269d.js → generate-07ef0a10.js} +1 -1
  106. package/dist/cjs/{global-d601eaab.js → global-7bcdc5b1.js} +2 -2
  107. package/dist/cjs/{index-d321de96.js → index-7db051e3.js} +1 -1
  108. package/dist/cjs/{index-c591ecec.js → index-bb6ac306.js} +3 -0
  109. package/dist/cjs/{is-load-decorator-15036f37.js → is-load-decorator-60805e8b.js} +1 -1
  110. package/dist/cjs/{label-template-e83447b5.js → label-template-8ba82507.js} +1 -1
  111. package/dist/cjs/loader.cjs.js +3 -3
  112. package/dist/cjs/{number-helper-109c65dd.js → number-helper-8b8695ec.js} +1 -1
  113. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +4 -4
  114. package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
  115. package/dist/cjs/{package-c7ade2f2.js → package-5542841a.js} +1 -1
  116. package/dist/cjs/{slot-template-29229e8f.js → slot-template-0e8feeb4.js} +1 -1
  117. package/dist/cjs/{validators-23935b44.js → validators-b4487059.js} +1 -1
  118. package/dist/collection/components/molecules/stepper/stepper.css +47 -47
  119. package/dist/components/bcm-stepper.js +1 -1
  120. package/dist/components/generate.js +1 -1
  121. package/dist/esm/bcm-accordion_63.entry.js +11 -11
  122. package/dist/esm/bcm-alert.entry.js +4 -4
  123. package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -5
  124. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -5
  125. package/dist/esm/bcm-autocomplete.entry.js +1 -1
  126. package/dist/esm/bcm-box.entry.js +1 -1
  127. package/dist/esm/bcm-breadcrumb.entry.js +3 -3
  128. package/dist/esm/bcm-caption.entry.js +6 -6
  129. package/dist/esm/bcm-card.entry.js +4 -4
  130. package/dist/esm/bcm-chip-group.entry.js +10 -10
  131. package/dist/esm/bcm-colorpicker.entry.js +1 -1
  132. package/dist/esm/bcm-content.entry.js +1 -1
  133. package/dist/esm/bcm-date-picker.entry.js +4 -4
  134. package/dist/esm/bcm-datetime-picker.entry.js +5 -5
  135. package/dist/esm/bcm-default.entry.js +3 -3
  136. package/dist/esm/bcm-error-layout.entry.js +1 -1
  137. package/dist/esm/bcm-form-2.entry.js +4 -4
  138. package/dist/esm/bcm-form-group.entry.js +1 -1
  139. package/dist/esm/bcm-input-2.entry.js +5 -5
  140. package/dist/esm/bcm-input-custom.entry.js +3 -3
  141. package/dist/esm/bcm-input-dropdown.entry.js +6 -6
  142. package/dist/esm/bcm-message.entry.js +1 -1
  143. package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
  144. package/dist/esm/bcm-modal-2-header.entry.js +5 -5
  145. package/dist/esm/bcm-modal-2.entry.js +5 -5
  146. package/dist/esm/bcm-notification.entry.js +1 -1
  147. package/dist/esm/bcm-number-input.entry.js +6 -6
  148. package/dist/esm/bcm-overlay_2.entry.js +1 -1
  149. package/dist/esm/bcm-popover.entry.js +5 -5
  150. package/dist/esm/bcm-range.entry.js +3 -3
  151. package/dist/esm/bcm-react-number.entry.js +1 -1
  152. package/dist/esm/bcm-result.entry.js +1 -1
  153. package/dist/esm/bcm-select-group.entry.js +1 -1
  154. package/dist/esm/bcm-select-option.entry.js +1 -1
  155. package/dist/esm/bcm-skeleton.entry.js +5 -5
  156. package/dist/esm/bcm-tab-pane.entry.js +1 -1
  157. package/dist/esm/bcm-table.entry.js +5 -5
  158. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  159. package/dist/esm/bcm-tag.entry.js +4 -4
  160. package/dist/esm/bcm-time-picker.entry.js +4 -4
  161. package/dist/esm/bcm-timeline-item.entry.js +1 -1
  162. package/dist/esm/bcm-timeline.entry.js +1 -1
  163. package/dist/esm/bcm-toast.entry.js +3 -3
  164. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  165. package/dist/esm/bromcom-ui.js +4 -4
  166. package/dist/esm/{caption-template-3cd42c3b.js → caption-template-8fb16bc5.js} +1 -1
  167. package/dist/esm/{generate-e5e2493b.js → generate-456c9a95.js} +1 -1
  168. package/dist/esm/{global-615575d3.js → global-d8c395e1.js} +2 -2
  169. package/dist/esm/{index-0615c2b8.js → index-2b2668ab.js} +3 -1
  170. package/dist/esm/{index-7e71bbc8.js → index-6ef67209.js} +1 -1
  171. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-0f334092.js} +1 -1
  172. package/dist/esm/{label-template-ef97aadb.js → label-template-cc2646d1.js} +1 -1
  173. package/dist/esm/loader.js +4 -4
  174. package/dist/esm/{number-helper-c965b1ed.js → number-helper-de819805.js} +1 -1
  175. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  176. package/dist/esm/old-bcm-popover.entry.js +3 -3
  177. package/dist/esm/{package-48eb1343.js → package-dec1fb78.js} +1 -1
  178. package/dist/esm/{slot-template-0d958dcc.js → slot-template-42240428.js} +1 -1
  179. package/dist/esm/{validators-f1925841.js → validators-e95cb184.js} +1 -1
  180. package/package.json +1 -1
  181. package/dist/bromcom-ui/p-5ed2f9cb.entry.js +0 -5
  182. package/dist/bromcom-ui/p-9156f5bb.entry.js +0 -5
  183. package/dist/bromcom-ui/p-aebf1a6d.entry.js +0 -5
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as t,H as i,g as n}from"./p-170cf07d.js";import{c as l}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(t){e(this,t),this.even=!1,this.first=!1,this.last=!1,this.icon=void 0,this.timelineType="left",this.hidden=!1}render(){const e=l("timeline-item",[this.timelineType],{even:this.even,first:this.first,last:this.last,icon:this.icon}),n=l(this.hidden?"hidden":null);return t(i,{class:n},t("div",{class:e},this.icon&&t("bcm-icon",{icon:this.icon}),t("slot",null)))}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}.timeline-item{position:relative;font-size:14px;line-height:22px;padding:8px 8px 8px 30px}.timeline-item:after{content:"";position:absolute;left:0;top:14px;width:9px;height:9px;border-radius:100px;background-color:#ffffff;border:2px solid #4293CF;box-sizing:border-box}.timeline-item:before{content:"";position:absolute;top:30px;left:3px;width:2px;height:calc(100% - 23px);background-color:#e8e8e8}.timeline-item.last:before{display:none}.timeline-item.icon:after{display:none}bcm-icon{position:absolute;top:10px;left:-4px}.timeline-item.right{text-align:right;padding-left:8px;padding-right:30px}.timeline-item.right:after{left:inherit;right:0}.timeline-item.right:before{left:inherit;right:3px}.timeline-item.right bcm-icon{left:inherit;right:-4px}:host-context(.timeline.alternate){flex:0 0 50% !important;max-width:50% !important}:host-context(.timeline.alternate) .timeline-item.even{text-align:right;padding-left:8px;padding-right:30px}:host-context(.timeline.alternate) .timeline-item.even:after{left:inherit;right:-5px}:host-context(.timeline.alternate) .timeline-item.even:before{left:inherit;right:-1px}:host-context(.timeline.alternate) .timeline-item.even bcm-icon{left:inherit;right:-8px}:host-context(.timeline.alternate) .timeline-item:not(.even):after{left:-3px}:host-context(.timeline.alternate) .timeline-item:not(.even):before{left:0px}:host-context(.timeline.alternate) .timeline-item:not(.even) bcm-icon{left:-7px}@media screen and (min-width: 576px){:host-context(.timeline.alternate){flex:1 1 100% !important;max-width:100% !important;margin-left:inherit !important}:host-context(.timeline.alternate) .timeline-item.even{text-align:left;padding-left:30px;padding-right:8px}:host-context(.timeline.alternate) .timeline-item.even:after{left:-5px;right:inherit}:host-context(.timeline.alternate) .timeline-item.even:before{left:-1px;right:inherit}:host-context(.timeline.alternate) .timeline-item.even bcm-icon{left:-8px;right:inherit}}';export{p as bcm_timeline_item}
5
+ import{r as e,h as t,H as i,g as n}from"./p-8828bbde.js";import{c as l}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(t){e(this,t),this.even=!1,this.first=!1,this.last=!1,this.icon=void 0,this.timelineType="left",this.hidden=!1}render(){const e=l("timeline-item",[this.timelineType],{even:this.even,first:this.first,last:this.last,icon:this.icon}),n=l(this.hidden?"hidden":null);return t(i,{class:n},t("div",{class:e},this.icon&&t("bcm-icon",{icon:this.icon}),t("slot",null)))}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}.timeline-item{position:relative;font-size:14px;line-height:22px;padding:8px 8px 8px 30px}.timeline-item:after{content:"";position:absolute;left:0;top:14px;width:9px;height:9px;border-radius:100px;background-color:#ffffff;border:2px solid #4293CF;box-sizing:border-box}.timeline-item:before{content:"";position:absolute;top:30px;left:3px;width:2px;height:calc(100% - 23px);background-color:#e8e8e8}.timeline-item.last:before{display:none}.timeline-item.icon:after{display:none}bcm-icon{position:absolute;top:10px;left:-4px}.timeline-item.right{text-align:right;padding-left:8px;padding-right:30px}.timeline-item.right:after{left:inherit;right:0}.timeline-item.right:before{left:inherit;right:3px}.timeline-item.right bcm-icon{left:inherit;right:-4px}:host-context(.timeline.alternate){flex:0 0 50% !important;max-width:50% !important}:host-context(.timeline.alternate) .timeline-item.even{text-align:right;padding-left:8px;padding-right:30px}:host-context(.timeline.alternate) .timeline-item.even:after{left:inherit;right:-5px}:host-context(.timeline.alternate) .timeline-item.even:before{left:inherit;right:-1px}:host-context(.timeline.alternate) .timeline-item.even bcm-icon{left:inherit;right:-8px}:host-context(.timeline.alternate) .timeline-item:not(.even):after{left:-3px}:host-context(.timeline.alternate) .timeline-item:not(.even):before{left:0px}:host-context(.timeline.alternate) .timeline-item:not(.even) bcm-icon{left:-7px}@media screen and (min-width: 576px){:host-context(.timeline.alternate){flex:1 1 100% !important;max-width:100% !important;margin-left:inherit !important}:host-context(.timeline.alternate) .timeline-item.even{text-align:left;padding-left:30px;padding-right:8px}:host-context(.timeline.alternate) .timeline-item.even:after{left:-5px;right:inherit}:host-context(.timeline.alternate) .timeline-item.even:before{left:-1px;right:inherit}:host-context(.timeline.alternate) .timeline-item.even bcm-icon{left:-8px;right:inherit}}';export{p as bcm_timeline_item}
@@ -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 e,H as i,g as o}from"./p-170cf07d.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as a}from"./p-4efbc5c8.js";import"./p-a639d6c1.js";import"./p-35f2e15a.js";import"./p-8e98eedc.js";import"./p-6f861fed.js";import{F as r}from"./p-6e5f5f36.js";import{B as p}from"./p-a313fba6.js";import{c as w}from"./p-64fad38b.js";import{c as m}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-6f2e4c9b.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-304db6c3.js";const c=m({slots:{host:["tw-w-fit","tw-absolute tw-left-0 tw-right-0 tw-z-tooltip tw-opacity-100 tw-transition-opacity tw-duration-300","tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-shadow tw-max-h-64 tw-overflow-y-auto","bcm-ui-element bcm-attendance-actions tw-flex tw-flex-col tw-items-start tw-justify-start tw-p-2 tw-font-medium tw-text-slate-700"],dataItem:["tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-justify-start tw-gap-2 tw-rounded hover:tw-bg-blue-100"],key:["tw-font-mono tw-text-slate-600"],selectedItem:["tw-bg-blue-100"]},variants:{size:{small:{dataItem:["tw-text-2.5 tw-px-2.5 tw-py-2"]},medium:{dataItem:["tw-text-3 tw-px-3 tw-py-2"]},large:{dataItem:["tw-text-4 tw-px-4 tw-py-2"]}}},defaultVariants:{size:"medium"}}),n=class{constructor(e){t(this,e),this.change=s(this,"bcm-attendance-actions-dropdown-change",3),this._id=a.UID(),this.size=p.Size.medium,this.disabled=!1,this.selectedKey=null,this.targetId=null,this.isShow=!1,this.data=[]}handleSelectItem(t){this.selectedKey=t.key,this.change.emit(t)}async show(){const t=document.getElementById(this.targetId);r({ref:t,floating:this.el,placement:"bottom-end",offset:4}),this.isShow=!0}async hide(){this.isShow&&this.el.remove()}handleClickOutside(){this.hide()}render(){const{size:t}=this,{host:s,dataItem:o,selectedItem:a,key:r}=c({size:t});return e(i,{class:s()},this.data.map((t=>e("div",{class:w(o(),this.selectedKey===t.key&&a()),onClick:()=>this.handleSelectItem(t)},e("span",{class:r()},t.key," - "),e("span",null,t.value)))))}get el(){return o(this)}};export{n as bcm_attendance_actions_dropdown}
5
+ import{r as t,c as s,h as e,H as i,g as o}from"./p-8828bbde.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as a}from"./p-5b96cd07.js";import"./p-1774cf8d.js";import"./p-35f2e15a.js";import"./p-190f60ff.js";import"./p-6f861fed.js";import{F as r}from"./p-6e5f5f36.js";import{B as p}from"./p-a313fba6.js";import{c as w}from"./p-64fad38b.js";import{c as m}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-6f2e4c9b.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";const c=m({slots:{host:["tw-w-fit","tw-absolute tw-left-0 tw-right-0 tw-z-tooltip tw-opacity-100 tw-transition-opacity tw-duration-300","tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-shadow tw-max-h-64 tw-overflow-y-auto","bcm-ui-element bcm-attendance-actions tw-flex tw-flex-col tw-items-start tw-justify-start tw-p-2 tw-font-medium tw-text-slate-700"],dataItem:["tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-justify-start tw-gap-2 tw-rounded hover:tw-bg-blue-100"],key:["tw-font-mono tw-text-slate-600"],selectedItem:["tw-bg-blue-100"]},variants:{size:{small:{dataItem:["tw-text-2.5 tw-px-2.5 tw-py-2"]},medium:{dataItem:["tw-text-3 tw-px-3 tw-py-2"]},large:{dataItem:["tw-text-4 tw-px-4 tw-py-2"]}}},defaultVariants:{size:"medium"}}),n=class{constructor(e){t(this,e),this.change=s(this,"bcm-attendance-actions-dropdown-change",3),this._id=a.UID(),this.size=p.Size.medium,this.disabled=!1,this.selectedKey=null,this.targetId=null,this.isShow=!1,this.data=[]}handleSelectItem(t){this.selectedKey=t.key,this.change.emit(t)}async show(){const t=document.getElementById(this.targetId);r({ref:t,floating:this.el,placement:"bottom-end",offset:4}),this.isShow=!0}async hide(){this.isShow&&this.el.remove()}handleClickOutside(){this.hide()}render(){const{size:t}=this,{host:s,dataItem:o,selectedItem:a,key:r}=c({size:t});return e(i,{class:s()},this.data.map((t=>e("div",{class:w(o(),this.selectedKey===t.key&&a()),onClick:()=>this.handleSelectItem(t)},e("span",{class:r()},t.key," - "),e("span",null,t.value)))))}get el(){return o(this)}};export{n as bcm_attendance_actions_dropdown}
@@ -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 s}from"./p-170cf07d.js";import{c as n}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(i){e(this,i),this.size="medium",this.hidden=!1,this.items=[],this.itemsProp=[]}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.parseItems(this.items)}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}parseItems(e){e&&(this.itemsProp="string"==typeof e?JSON.parse(e):e)}async set(e){this.items=e}async clear(){this.items=[]}render(){const{itemsProp:e}=this,s=n("error-layout",this.size),p=n(this.hidden?"hidden":null);return i(t,{class:p},e.length>0&&i("div",{class:s},i("ul",null,this.itemsProp.map((e=>i("li",null,i("span",null,e)))))))}get el(){return s(this)}static get watchers(){return{items:["parseItems"]}}};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}.error-layout{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);padding:12px;background:var(--bcm-new-ds-color-red-100);border:2px solid var(--bcm-new-ds-color-red-200);box-sizing:border-box;border-radius:4px;color:var(--bcm-new-ds-color-red-400)}.error-layout li>span{margin-left:-4px}';export{p as bcm_error_layout}
5
+ import{r as e,h as i,H as t,g as s}from"./p-8828bbde.js";import{c as n}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(i){e(this,i),this.size="medium",this.hidden=!1,this.items=[],this.itemsProp=[]}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.parseItems(this.items)}componentDidLoad(){}componentWillRender(){}componentDidRender(){}componentWillUpdate(){}componentDidUpdate(){}parseItems(e){e&&(this.itemsProp="string"==typeof e?JSON.parse(e):e)}async set(e){this.items=e}async clear(){this.items=[]}render(){const{itemsProp:e}=this,s=n("error-layout",this.size),p=n(this.hidden?"hidden":null);return i(t,{class:p},e.length>0&&i("div",{class:s},i("ul",null,this.itemsProp.map((e=>i("li",null,i("span",null,e)))))))}get el(){return s(this)}static get watchers(){return{items:["parseItems"]}}};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}.error-layout{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);padding:12px;background:var(--bcm-new-ds-color-red-100);border:2px solid var(--bcm-new-ds-color-red-200);box-sizing:border-box;border-radius:4px;color:var(--bcm-new-ds-color-red-400)}.error-layout li>span{margin-left:-4px}';export{p as bcm_error_layout}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as t}from"./p-170cf07d.js";import{c as e}from"./p-64fad38b.js";import{a as m}from"./p-a313fba6.js";const a=({required:a,value:o,size:l,form:r,htmlFor:i,type:s,tooltip:c})=>(s=s||m.Status.default,t("label",{form:r,htmlFor:i,"aria-hidden":"true",class:e("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ",{"tw-text-1":"small"==(l=l||"medium"),"tw-text-2":"medium"==l,"tw-text-3":"large"==l})},o," ",a&&"*",c&&t("span",{class:"tw-ml-1"},t("bcm-tooltip",{message:c,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"fas fa-info-circle"})))));export{a as L}
5
+ import{h as t}from"./p-8828bbde.js";import{c as e}from"./p-64fad38b.js";import{a as m}from"./p-a313fba6.js";const a=({required:a,value:o,size:l,form:r,htmlFor:i,type:s,tooltip:c})=>(s=s||m.Status.default,t("label",{form:r,htmlFor:i,"aria-hidden":"true",class:e("bcm-ui-element bcm-ui-feedback bcm-label bcm-label__text tw-mb-1 tw-font-medium tw-text-slate-600 ",{"tw-text-1":"small"==(l=l||"medium"),"tw-text-2":"medium"==l,"tw-text-3":"large"==l})},o," ",a&&"*",c&&t("span",{class:"tw-ml-1"},t("bcm-tooltip",{message:c,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"fas fa-info-circle"})))));export{a as L}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{g as e}from"./p-170cf07d.js";function n(){return n=>{const{componentDidLoad:s}=n;n.componentDidLoad=function(){const n=e(this),{openIntersecting:o}=n;return n.dispatchEvent(new CustomEvent("bcm-is-load",{bubbles:!0,composed:!0,detail:{isLoad:!0}})),o&&(i=n,"IntersectionObserver"in window?new IntersectionObserver((e=>{e[0].isIntersecting&&t(i)})).observe(i):setTimeout((()=>{t(i)}),300)),s&&s.call(this);var i}}}function t(e){e.dispatchEvent(new CustomEvent("bcm-is-intersecting",{bubbles:!0,composed:!0,detail:{isIntersecting:!0}}))}export{n as I}
5
+ import{g as e}from"./p-8828bbde.js";function n(){return n=>{const{componentDidLoad:s}=n;n.componentDidLoad=function(){const n=e(this),{openIntersecting:o}=n;return n.dispatchEvent(new CustomEvent("bcm-is-load",{bubbles:!0,composed:!0,detail:{isLoad:!0}})),o&&(i=n,"IntersectionObserver"in window?new IntersectionObserver((e=>{e[0].isIntersecting&&t(i)})).observe(i):setTimeout((()=>{t(i)}),300)),s&&s.call(this);var i}}}function t(e){e.dispatchEvent(new CustomEvent("bcm-is-intersecting",{bubbles:!0,composed:!0,detail:{isIntersecting:!0}}))}export{n as I}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{v as r}from"./p-304db6c3.js";import{c as t}from"./p-a2df6c19.js";var n,e;function o(r,t){try{var n=r();return void 0===n?t:n}catch(r){if(r instanceof TypeError)return t;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(n||(n={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const c=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return c.includes(r)})()&&console.log(`%cbromcom ui%c version: ${r}-p `,"color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;"),function(){const r=document.querySelector("body");let t=localStorage.getItem("bcm-theme");!r.classList.contains("bcm-theme-*")&&t&&r.classList.add(`bcm-theme-${t}`)}(),function(){const r=document.querySelector("body");let t=document.querySelector("#bcm-overlay-container");t||(t=document.createElement("div"),t.id="bcm-overlay-container",t.classList.add("bcm-overlay-container"),r.appendChild(t))}();class i{static prettify(r){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t}static getTwColor(r){const{color:n,variable:e,tones:o}=r=Object.assign({variable:"--bcm-color-default",defaultTone:"600",tones:{50:{},100:{},200:{},300:{},400:{},500:{},600:{},700:{},800:{},900:{},950:{}}},r);if(!n||!t[n])return!1;const c={};return"string"==typeof t[n]?(c[e]=t[n],c):((Array.isArray(o)?o:Object.keys(o)).forEach((r=>{t[n][r]&&(Array.isArray(o[r])?o[r].forEach((o=>{c[`${e}-${o}`]=t[n][r]})):c[`${e}-${r}`]=t[n][r])})),c)}}i.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,i.getIconAttrWithStatusType=(r,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(r){case n.info:return{icon:"far fa-info-circle"};case n.error:return{icon:"far fa-times-circle"};case n.warning:return{icon:"far fa-exclamation-circle"};case n.success:return{icon:"far fa-check-circle"}}},i.domParser=r=>(new DOMParser).parseFromString(r,"text/html").body.innerText,i.createComponent=(r,t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{n[r]=t[r]})),document.getElementById("bcm-overlay-container").appendChild(n),n},i.createElement=(r="div",t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{"innerHTML"==r?n[r]=t[r]:n.setAttribute(r,t[r])})),document.body.appendChild(n),n},i.debounceInput=(r,t,n,e)=>{let o;return function(){let c=this,i=arguments;e&&e.apply(c,i);let u=function(){o=null,n||r.apply(c,i)},a=n&&!o;clearTimeout(o),o=setTimeout(u,t),a&&r.apply(c,i)}},i.flatArray=r=>r.reduce(((r,t)=>r.concat(Array.isArray(t)?i.flatArray(t):t)),[]),i.reverseNodeList=r=>{let t=[];for(let n=r.length-1;n>=0;n--)t.push(r[n]);return t},i.findEventPathWithKey=(r,t,n)=>{n=Array.isArray(n)?n:[n];let e=r.composedPath()||r.path;if(e)return void 0!==e.filter((r=>n.includes(r[t])))[0]},i.findEventPathHasAttribute=(r,t)=>{let n=r.composedPath()||r.path;if(n)return o((()=>!!n.find((r=>r.hasAttribute(t)))),!1)},i.findEventTarget=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.target||r.srcElement;if(n)return t.includes(n)},i.findEventPathWithNodeName=(r,t)=>{let n=r.composedPath()||r.path;if(n)return n.filter((r=>r.nodeName===t))[0]},i.findEventPath=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r)))[0]},i.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,i.convertIdsToNestedData=(r,t)=>{let n=[],e=[];return t.forEach((t=>{r&&r.indexOf(t.id.toString())>-1?n.push(t):t.items&&(e=i.convertIdsToNestedData(r,t.items),e.length>0&&(t.items=e,n.push(t)))})),n},i.nodeListToArray=r=>Array.prototype.slice.call(r),i.setAttributes=(r,t)=>{Object.keys(t).forEach((n=>{r.setAttribute(n,t[n])}))},i.computedStyle=(r,t)=>window.getComputedStyle(r,null).getPropertyValue(t),i.getAncestor=(r,t)=>{for(;(r=r.parentElement)&&!r.matches(t););return r},i.findParentElement=(r,t)=>{const n=t.charAt(0);if("*"===t)return r.parentElement;if("."===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.classList.contains(t))return r;r=r.parentElement}return null}(r.parentElement,n)}if("#"===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.id===t)return r;r=r.parentElement}return null}(r.parentElement,n)}if("["===n){const n=t.indexOf("]"),e=t.slice(1,n),o=t.slice(n+2,-1);return function(r,t,n){for(;null!==r;){if(r.hasAttribute(t)&&(void 0===n||r.getAttribute(t)===n))return r;r=r.parentElement}return null}(r.parentElement,e,o)}{const n=t.toLowerCase();return function(r,t){for(;null!==r;){if(r.tagName.toLowerCase()===t.toLowerCase())return r;r=r.parentElement}return null}(r.parentElement,n)}};export{i as G,n as S,e as T,o as s}
5
+ import{v as r}from"./p-c168b4ec.js";import{c as t}from"./p-a2df6c19.js";var n,e;function o(r,t){try{var n=r();return void 0===n?t:n}catch(r){if(r instanceof TypeError)return t;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(n||(n={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const c=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return c.includes(r)})()&&console.log(`%cbromcom ui%c version: ${r}-p `,"color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;"),function(){const r=document.querySelector("body");let t=localStorage.getItem("bcm-theme");!r.classList.contains("bcm-theme-*")&&t&&r.classList.add(`bcm-theme-${t}`)}(),function(){const r=document.querySelector("body");let t=document.querySelector("#bcm-overlay-container");t||(t=document.createElement("div"),t.id="bcm-overlay-container",t.classList.add("bcm-overlay-container"),r.appendChild(t))}();class i{static prettify(r){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t}static getTwColor(r){const{color:n,variable:e,tones:o}=r=Object.assign({variable:"--bcm-color-default",defaultTone:"600",tones:{50:{},100:{},200:{},300:{},400:{},500:{},600:{},700:{},800:{},900:{},950:{}}},r);if(!n||!t[n])return!1;const c={};return"string"==typeof t[n]?(c[e]=t[n],c):((Array.isArray(o)?o:Object.keys(o)).forEach((r=>{t[n][r]&&(Array.isArray(o[r])?o[r].forEach((o=>{c[`${e}-${o}`]=t[n][r]})):c[`${e}-${r}`]=t[n][r])})),c)}}i.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,i.getIconAttrWithStatusType=(r,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(r){case n.info:return{icon:"far fa-info-circle"};case n.error:return{icon:"far fa-times-circle"};case n.warning:return{icon:"far fa-exclamation-circle"};case n.success:return{icon:"far fa-check-circle"}}},i.domParser=r=>(new DOMParser).parseFromString(r,"text/html").body.innerText,i.createComponent=(r,t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{n[r]=t[r]})),document.getElementById("bcm-overlay-container").appendChild(n),n},i.createElement=(r="div",t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{"innerHTML"==r?n[r]=t[r]:n.setAttribute(r,t[r])})),document.body.appendChild(n),n},i.debounceInput=(r,t,n,e)=>{let o;return function(){let c=this,i=arguments;e&&e.apply(c,i);let u=function(){o=null,n||r.apply(c,i)},a=n&&!o;clearTimeout(o),o=setTimeout(u,t),a&&r.apply(c,i)}},i.flatArray=r=>r.reduce(((r,t)=>r.concat(Array.isArray(t)?i.flatArray(t):t)),[]),i.reverseNodeList=r=>{let t=[];for(let n=r.length-1;n>=0;n--)t.push(r[n]);return t},i.findEventPathWithKey=(r,t,n)=>{n=Array.isArray(n)?n:[n];let e=r.composedPath()||r.path;if(e)return void 0!==e.filter((r=>n.includes(r[t])))[0]},i.findEventPathHasAttribute=(r,t)=>{let n=r.composedPath()||r.path;if(n)return o((()=>!!n.find((r=>r.hasAttribute(t)))),!1)},i.findEventTarget=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.target||r.srcElement;if(n)return t.includes(n)},i.findEventPathWithNodeName=(r,t)=>{let n=r.composedPath()||r.path;if(n)return n.filter((r=>r.nodeName===t))[0]},i.findEventPath=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r)))[0]},i.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,i.convertIdsToNestedData=(r,t)=>{let n=[],e=[];return t.forEach((t=>{r&&r.indexOf(t.id.toString())>-1?n.push(t):t.items&&(e=i.convertIdsToNestedData(r,t.items),e.length>0&&(t.items=e,n.push(t)))})),n},i.nodeListToArray=r=>Array.prototype.slice.call(r),i.setAttributes=(r,t)=>{Object.keys(t).forEach((n=>{r.setAttribute(n,t[n])}))},i.computedStyle=(r,t)=>window.getComputedStyle(r,null).getPropertyValue(t),i.getAncestor=(r,t)=>{for(;(r=r.parentElement)&&!r.matches(t););return r},i.findParentElement=(r,t)=>{const n=t.charAt(0);if("*"===t)return r.parentElement;if("."===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.classList.contains(t))return r;r=r.parentElement}return null}(r.parentElement,n)}if("#"===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.id===t)return r;r=r.parentElement}return null}(r.parentElement,n)}if("["===n){const n=t.indexOf("]"),e=t.slice(1,n),o=t.slice(n+2,-1);return function(r,t,n){for(;null!==r;){if(r.hasAttribute(t)&&(void 0===n||r.getAttribute(t)===n))return r;r=r.parentElement}return null}(r.parentElement,e,o)}{const n=t.toLowerCase();return function(r,t){for(;null!==r;){if(r.tagName.toLowerCase()===t.toLowerCase())return r;r=r.parentElement}return null}(r.parentElement,n)}};export{i as G,n as S,e as T,o as s}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as i,H as e,g as s}from"./p-170cf07d.js";import{c as a}from"./p-64fad38b.js";import{I as n}from"./p-9850cbce.js";import{G as h}from"./p-4efbc5c8.js";import{a as p}from"./p-a313fba6.js";import{d as r}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-304db6c3.js";import"./p-a2df6c19.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
5
+ import{r as t,h as i,H as e,g as s}from"./p-8828bbde.js";import{c as a}from"./p-64fad38b.js";import{I as n}from"./p-55aeb18f.js";import{G as h}from"./p-5b96cd07.js";import{a as p}from"./p-a313fba6.js";import{d as r}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";import"./p-a2df6c19.js";const o=class{constructor(i){t(this,i),this._id=h.UID(),this.time=new Date,this.value=void 0,this.hidden=!1,this.name=void 0,this.fullWidth=!1,this.required=!1,this.label=void 0,this.placeholder=void 0,this.disabled=!1,this.noMargin=!1,this.noCaption=!1,this.caption="",this.captionError=void 0,this.captionType="default",this.alignment=void 0,this.placement=p.Placement["bottom-start"],this.linkedComponent=void 0,this.clearable=!1}componentWillLoad(){if("string"==typeof this.time){const t=!!/\b([01][0-9]|2[0-3]):([0-5][0-9])\b/.test(this.time)&&this.time.split(":");this.time=t?new Date((new Date).setHours(Number(t[0]),Number(t[1]))):new Date}}handlePickerLoad(){this.value=this.picker.value}handlePickerChange(t){this.value=t.detail}async set(t){return this.picker.set(t)}async get(){var t;return(null===(t=this.value)||void 0===t?void 0:t.timestamp)||null}async setDisabled(t){this.disabled=t}async getInput(){return await this.picker.getInput()}async getValue(){return this.value}async isValid(){return await this.picker.isValid()}async setClear(){return await this.picker.setClear(),await r(10),Promise.resolve()}async resetCaption(){return await r(10),await this.picker.resetCaption(),this.captionType="default",this.captionError=null,await r(10),Promise.resolve()}async open(){return await this.picker.open()}render(){const t=a(this.hidden?"hidden":null,{"full-width":this.fullWidth});return i(e,{class:t},i("bcm-datetime-picker",{"linked-component":this.linkedComponent,id:this._id,fullWidth:this.fullWidth,required:this.required,label:this.label,name:this.name,placeholder:this.placeholder,type:"time",clearable:this.clearable,date:this.time,ref:t=>this.picker=t,disabled:this.disabled,"on-bcm-load":()=>this.handlePickerLoad(),"on-bcm-change":t=>this.handlePickerChange(t),noCaption:this.noCaption,captionError:this.captionError,caption:this.caption,captionType:this.captionType,alignment:this.alignment,placement:this.placement,noMargin:this.noMargin}))}get el(){return s(this)}};(function(t,i,e,s){var a,n=arguments.length,h=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,s);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(h=(n<3?a(h):n>3?a(i,e,h):a(i,e))||h);n>3&&h&&Object.defineProperty(i,e,h)})([n()],o.prototype,"el",void 0),o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}';export{o as bcm_time_picker}
@@ -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-170cf07d.js";import{G as a}from"./p-4efbc5c8.js";import"./p-304db6c3.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";const s=class{constructor(i){e(this,i),this._id=a.UID()}render(){return i(t,null,i("bcm-skeleton",null,i("slot",null)))}get el(){return p(this)}};s.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{s as bcm_default}
5
+ import{r as e,h as i,H as t,g as p}from"./p-8828bbde.js";import{G as a}from"./p-5b96cd07.js";import"./p-c168b4ec.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";const s=class{constructor(i){e(this,i),this._id=a.UID()}render(){return i(t,null,i("bcm-skeleton",null,i("slot",null)))}get el(){return p(this)}};s.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{s as bcm_default}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as e,h as i,H as t,g as n}from"./p-170cf07d.js";import{c as s}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(i){e(this,i),this.icon=void 0,this.type="left",this.hidden=!1,this.items=[]}componentDidRender(){let e;e=this.el.shadowRoot.querySelector("slot").assignedElements(),e.map(((i,t)=>{"bcm-timeline-item"==String(i.tagName).toLowerCase()&&(i.timelineType=this.type,i.even=t%2==0,i.first=0===t,i.last=t===e.length-1,i.icon=i.icon?i.icon:this.icon,this.items.push(i))}))}componentWillRender(){console.log(this.el.shadowRoot)}render(){const e=s("timeline",[this.type]),n=s(this.hidden?"hidden":null);return i(t,{class:n},i("div",{class:e},i("slot",null)))}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}.timeline{position:relative;display:flex;flex-direction:column}.timeline ::slotted(bcm-timeline-item){flex:0 0 100%;max-width:100%}.timeline.alternate ::slotted(bcm-timeline-item:nth-child(even)){margin-left:auto;min-width:50%}';export{p as bcm_timeline}
5
+ import{r as e,h as i,H as t,g as n}from"./p-8828bbde.js";import{c as s}from"./p-64fad38b.js";import"./p-85eedabc.js";const p=class{constructor(i){e(this,i),this.icon=void 0,this.type="left",this.hidden=!1,this.items=[]}componentDidRender(){let e;e=this.el.shadowRoot.querySelector("slot").assignedElements(),e.map(((i,t)=>{"bcm-timeline-item"==String(i.tagName).toLowerCase()&&(i.timelineType=this.type,i.even=t%2==0,i.first=0===t,i.last=t===e.length-1,i.icon=i.icon?i.icon:this.icon,this.items.push(i))}))}componentWillRender(){console.log(this.el.shadowRoot)}render(){const e=s("timeline",[this.type]),n=s(this.hidden?"hidden":null);return i(t,{class:n},i("div",{class:e},i("slot",null)))}get el(){return n(this)}};p.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}.timeline{position:relative;display:flex;flex-direction:column}.timeline ::slotted(bcm-timeline-item){flex:0 0 100%;max-width:100%}.timeline.alternate ::slotted(bcm-timeline-item:nth-child(even)){margin-left:auto;min-width:50%}';export{p as bcm_timeline}
@@ -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}from"./p-170cf07d.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as i}from"./p-4efbc5c8.js";import"./p-a639d6c1.js";import"./p-35f2e15a.js";import"./p-8e98eedc.js";import"./p-6f861fed.js";import"./p-a313fba6.js";import{c as r}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-6f2e4c9b.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-304db6c3.js";const o=r({slots:{host:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-flex-shrink-0 tw-relative tw-overflow-hidden tw-bg-gray-200"},variants:{variant:{rect:{host:"tw-rounded"},circle:{host:"tw-rounded-full"}},effect:{pulse:{host:"tw-animate-pulse"},ping:{host:"tw-animate-ping"},none:{host:"tw-animate-none"}},hidden:{true:{host:"tw-hidden"},false:{host:"tw-flex"}}},defaultVariants:{variant:"rect",effect:"pulse",hidden:!1}}),p=class{constructor(e){t(this,e),this._id=i.UID(),this.effect="pulse",this.variant="rect",this.hidden=!1,this.width="100%",this.height="16px",this.marginBottom=null,this.customStyles={}}render(){const{variant:t,effect:i,width:r,height:p,marginBottom:a,customStyles:n,hidden:c}=this,h=Object.assign(Object.assign(Object.assign(Object.assign({},r?{width:r}:{}),p?{height:p}:{}),a?{marginBottom:a}:{}),"string"==typeof n?JSON.parse(n):n),{host:f}=o({variant:t,effect:i,hidden:c});return e(s,{class:f(),style:h})}};export{p as bcm_skeleton}
5
+ import{r as t,h as e,H as s}from"./p-8828bbde.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as i}from"./p-5b96cd07.js";import"./p-1774cf8d.js";import"./p-35f2e15a.js";import"./p-190f60ff.js";import"./p-6f861fed.js";import"./p-a313fba6.js";import{c as r}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-6f2e4c9b.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";const o=r({slots:{host:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-flex-shrink-0 tw-relative tw-overflow-hidden tw-bg-gray-200"},variants:{variant:{rect:{host:"tw-rounded"},circle:{host:"tw-rounded-full"}},effect:{pulse:{host:"tw-animate-pulse"},ping:{host:"tw-animate-ping"},none:{host:"tw-animate-none"}},hidden:{true:{host:"tw-hidden"},false:{host:"tw-flex"}}},defaultVariants:{variant:"rect",effect:"pulse",hidden:!1}}),p=class{constructor(e){t(this,e),this._id=i.UID(),this.effect="pulse",this.variant="rect",this.hidden=!1,this.width="100%",this.height="16px",this.marginBottom=null,this.customStyles={}}render(){const{variant:t,effect:i,width:r,height:p,marginBottom:a,customStyles:n,hidden:c}=this,h=Object.assign(Object.assign(Object.assign(Object.assign({},r?{width:r}:{}),p?{height:p}:{}),a?{marginBottom:a}:{}),"string"==typeof n?JSON.parse(n):n),{host:f}=o({variant:t,effect:i,hidden:c});return e(s,{class:f(),style:h})}};export{p as bcm_skeleton}
@@ -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 s,g as a}from"./p-170cf07d.js";import{G as r,s as o,S as l,T as p}from"./p-4efbc5c8.js";import{c as n}from"./p-64fad38b.js";import{c}from"./p-74e6d2b6.js";import{S as h}from"./p-35f2e15a.js";import"./p-304db6c3.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-a313fba6.js";const{state:m}=c({value:new Map,setData:{},removeData:{}}),d=class{constructor(i){e(this,i),this.alertdismissible=t(this,"bcm-alert-dismissible",7),this.hidden=!1,this._id=r.UID(),this._title=void 0,this.description=void 0,this.status=l.info,this.type=p.basic,this.dismissible=void 0,this.icon=!1,this.bigIcon=!1,this.fullWidth=!1}componentWillRender(){if(null!=this.dismissible)if(""==this.dismissible)this.dismissible=!0;else{if(("string"!=typeof this.dismissible||"false"!=this.dismissible)&&"true"!=this.dismissible)return;this.dismissible=h.elementBooleanCheck(this.dismissible)}this.setData()}dismiss(e){this.alertdismissible.emit(e),this.el.remove()}getStateData(){return e=this._id,o((()=>m.value.get(e)),{});var e}setData(){const{status:e,type:t,bigIcon:i}=this;(e=>{const t=Object.assign(Object.assign(Object.assign({},e),{size:e.bigIcon?"medium":14,iconType:e.bigIcon?"outlined":"fill"}),r.getIconAttrWithStatusType(e.status));m.value.set(t.id,t)})({id:this._id,status:e,type:t,bigIcon:i})}render(){const{fullWidth:e,status:t,type:a,icon:r,bigIcon:o,_title:l,hidden:p,dismissible:c,description:h}=this,m=n("bcm-alert","bcm-alert__type-"+a,"bcm-alert__status-"+t,{"full-width":e,hidden:p}),d=n("bcm-alert__header-message",h?"size-3":"size-2"),x=this.getStateData();return i(s,{class:m},i("span",{hidden:!0},i("slot",null)),i("header",{class:"bcm-alert__header"},i("span",{class:d},(o||r)&&i("bcm-icon",{icon:x.icon}),l),c&&i("span",{class:"bcm-alert__header-dismiss",onClick:e=>this.dismiss(e)},"string"==typeof c?c:i("bcm-icon",{icon:"fal fa-times"}))),i("main",{class:"bcm-alert__content size-2"},h&&i("p",null,h),i("slot",null)))}get el(){return a(this)}};d.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-alert{display:block;width:100%;max-width:400px;box-sizing:border-box;padding:8px 16px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);border-radius:2px;position:relative;grid-gap:8px}.bcm-alert.hidden{display:none}.bcm-alert.full-width{max-width:100%}.bcm-alert__status-info{border:1px solid var(--bcm-color-blue-3);background-color:var(--bcm-color-blue-1)}.bcm-alert__status-error{border:1px solid var(--bcm-color-red-3);background-color:var(--bcm-color-red-1)}.bcm-alert__status-warning{border:1px solid var(--bcm-color-warmyellow-3);background-color:var(--bcm-color-warmyellow-1)}.bcm-alert__status-success{border:1px solid var(--bcm-color-green-3);background-color:var(--bcm-color-green-1)}.bcm-alert__type-banner{border:none}.bcm-alert__header{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.bcm-alert__header-message{display:flex;align-items:center;grid-gap:8px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss{display:flex;position:absolute;top:-1px;right:0;padding:16px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss:hover{cursor:pointer;color:var(--bcm-color-grey-9)}.bcm-alert__content{color:var(--bcm-color-grey-8)}.bcm-alert__content p{margin:0;padding:0}';export{d as bcm_alert}
5
+ import{r as e,c as t,h as i,H as s,g as a}from"./p-8828bbde.js";import{G as r,s as o,S as l,T as p}from"./p-5b96cd07.js";import{c as n}from"./p-64fad38b.js";import{c}from"./p-28beec31.js";import{S as h}from"./p-35f2e15a.js";import"./p-c168b4ec.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-a313fba6.js";const{state:m}=c({value:new Map,setData:{},removeData:{}}),d=class{constructor(i){e(this,i),this.alertdismissible=t(this,"bcm-alert-dismissible",7),this.hidden=!1,this._id=r.UID(),this._title=void 0,this.description=void 0,this.status=l.info,this.type=p.basic,this.dismissible=void 0,this.icon=!1,this.bigIcon=!1,this.fullWidth=!1}componentWillRender(){if(null!=this.dismissible)if(""==this.dismissible)this.dismissible=!0;else{if(("string"!=typeof this.dismissible||"false"!=this.dismissible)&&"true"!=this.dismissible)return;this.dismissible=h.elementBooleanCheck(this.dismissible)}this.setData()}dismiss(e){this.alertdismissible.emit(e),this.el.remove()}getStateData(){return e=this._id,o((()=>m.value.get(e)),{});var e}setData(){const{status:e,type:t,bigIcon:i}=this;(e=>{const t=Object.assign(Object.assign(Object.assign({},e),{size:e.bigIcon?"medium":14,iconType:e.bigIcon?"outlined":"fill"}),r.getIconAttrWithStatusType(e.status));m.value.set(t.id,t)})({id:this._id,status:e,type:t,bigIcon:i})}render(){const{fullWidth:e,status:t,type:a,icon:r,bigIcon:o,_title:l,hidden:p,dismissible:c,description:h}=this,m=n("bcm-alert","bcm-alert__type-"+a,"bcm-alert__status-"+t,{"full-width":e,hidden:p}),d=n("bcm-alert__header-message",h?"size-3":"size-2"),x=this.getStateData();return i(s,{class:m},i("span",{hidden:!0},i("slot",null)),i("header",{class:"bcm-alert__header"},i("span",{class:d},(o||r)&&i("bcm-icon",{icon:x.icon}),l),c&&i("span",{class:"bcm-alert__header-dismiss",onClick:e=>this.dismiss(e)},"string"==typeof c?c:i("bcm-icon",{icon:"fal fa-times"}))),i("main",{class:"bcm-alert__content size-2"},h&&i("p",null,h),i("slot",null)))}get el(){return a(this)}};d.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-alert{display:block;width:100%;max-width:400px;box-sizing:border-box;padding:8px 16px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);border-radius:2px;position:relative;grid-gap:8px}.bcm-alert.hidden{display:none}.bcm-alert.full-width{max-width:100%}.bcm-alert__status-info{border:1px solid var(--bcm-color-blue-3);background-color:var(--bcm-color-blue-1)}.bcm-alert__status-error{border:1px solid var(--bcm-color-red-3);background-color:var(--bcm-color-red-1)}.bcm-alert__status-warning{border:1px solid var(--bcm-color-warmyellow-3);background-color:var(--bcm-color-warmyellow-1)}.bcm-alert__status-success{border:1px solid var(--bcm-color-green-3);background-color:var(--bcm-color-green-1)}.bcm-alert__type-banner{border:none}.bcm-alert__header{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.bcm-alert__header-message{display:flex;align-items:center;grid-gap:8px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss{display:flex;position:absolute;top:-1px;right:0;padding:16px;color:var(--bcm-color-grey-8)}.bcm-alert__header-dismiss:hover{cursor:pointer;color:var(--bcm-color-grey-9)}.bcm-alert__content{color:var(--bcm-color-grey-8)}.bcm-alert__content p{margin:0;padding:0}';export{d as bcm_alert}
@@ -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 o}from"./p-170cf07d.js";import{c as w}from"./p-64fad38b.js";import{G as a}from"./p-4efbc5c8.js";import{S as r}from"./p-35f2e15a.js";import{a as h}from"./p-a313fba6.js";import{d as n}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-304db6c3.js";import"./p-a2df6c19.js";const c=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=a.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=h.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.removeAfterClose=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&this.createContainer(this.position).appendChild(t),this.visible=!0,await n(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await n(100),this.visible=!1,this.removeAfterClose&&(await n(100),this.el.remove())}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}createContainer(t){const s="bcm-toast-container-"+t;let i=document.getElementById(s);if(!i){i=document.createElement("div"),i.id=s;const t=w("tw-pointer-events-none tw-overflow-hidden tw-z-50","tw-fixed tw-flex","tw-p-4 tw-gap-4",{"tw-flex-col-reverse tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===h.Placement.top,"tw-flex-col tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===h.Placement.bottom,"tw-flex-col-reverse tw-top-4 tw-left-4":this.position===h.Placement["top-start"],"tw-flex-col-reverse tw-top-4 tw-right-4":this.position===h.Placement["top-end"],"tw-flex-col tw-bottom-4 tw-left-4":this.position===h.Placement["bottom-start"],"tw-flex-col tw-bottom-4 tw-right-4":this.position===h.Placement["bottom-end"]});i.classList.add(...t.split(" ")),document.body.appendChild(i)}return i}render(){return i(e,{class:"tw-hidden"},i("div",{class:w({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:w("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:w("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:w({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,r.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:w("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:w("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return o(this)}};export{c as bcm_toast}
5
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-8828bbde.js";import{c as w}from"./p-64fad38b.js";import{G as a}from"./p-5b96cd07.js";import{S as r}from"./p-35f2e15a.js";import{a as h}from"./p-a313fba6.js";import{d as n}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";import"./p-a2df6c19.js";const c=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=a.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=h.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.removeAfterClose=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&this.createContainer(this.position).appendChild(t),this.visible=!0,await n(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await n(100),this.visible=!1,this.removeAfterClose&&(await n(100),this.el.remove())}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}createContainer(t){const s="bcm-toast-container-"+t;let i=document.getElementById(s);if(!i){i=document.createElement("div"),i.id=s;const t=w("tw-pointer-events-none tw-overflow-hidden tw-z-50","tw-fixed tw-flex","tw-p-4 tw-gap-4",{"tw-flex-col-reverse tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===h.Placement.top,"tw-flex-col tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===h.Placement.bottom,"tw-flex-col-reverse tw-top-4 tw-left-4":this.position===h.Placement["top-start"],"tw-flex-col-reverse tw-top-4 tw-right-4":this.position===h.Placement["top-end"],"tw-flex-col tw-bottom-4 tw-left-4":this.position===h.Placement["bottom-start"],"tw-flex-col tw-bottom-4 tw-right-4":this.position===h.Placement["bottom-end"]});i.classList.add(...t.split(" ")),document.body.appendChild(i)}return i}render(){return i(e,{class:"tw-hidden"},i("div",{class:w({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:w("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:w("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:w({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,r.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:w("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:w("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return o(this)}};export{c as bcm_toast}
@@ -2,5 +2,5 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- const e={AG_GRID_LICENSE_KEY:"CompanyName=Bromcom MIS,LicensedApplication=Bromcom MIS,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=1,LicensedProductionInstancesCount=0,AssetReference=AG-025320,ExpiryDate=9_February_2023_[v2]_MTY3NTkwMDgwMDAwMA==91115b62a3d527a812292deae7284d78"};let t,n,l,o=!1,s=!1,i=!1,c=!1,r=null,a=!1;const f=e=>{const t=new URL(e,ge.t);return t.origin!==we.location.origin?t.href:t.pathname},u="http://www.w3.org/1999/xlink",d={},p=e=>"object"==(e=typeof e)||"function"===e;function m(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const y=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,c=!1;const r=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!p(l))&&(l+=""),i&&c?r[r.length-1].l+=l:r.push(i?$(null,l):l),c=i)};if(a(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,b);const f=$(e,null);return f.o=t,r.length>0&&(f.i=r),f.u=o,f.p=s,f},$=(e,t)=>({m:0,$:e,l:t,h:null,i:null,o:null,u:null,p:null}),h={},b={forEach:(e,t)=>e.map(w).forEach(t),map:(e,t)=>e.map(w).map(t).map(v)},w=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.p,vtag:e.$,vtext:e.l}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),y(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.p=e.vname,t},g=e=>ue(e).v,k=(e,t,n)=>{const l=g(e);return{emit:e=>S(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},S=(e,t,n)=>{const l=ge.ce(t,n);return e.dispatchEvent(l),l},j=new WeakMap,M=e=>"sc-"+e.g,C=(e,t,n,l,o,s)=>{if(n!==l){let i=me(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=L(n),s=L(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=p(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&s||o)&&!r&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):me(we,c)?c.slice(2):c[2]+t.slice(3),n&&ge.rel(e,t,n,!1),l&&ge.ael(e,t,l,!1)}},O=/\s/,L=e=>e?e.split(O):[],R=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||d,i=t.o||d;for(l in s)l in i||C(o,l,s[l],void 0,n,t.m);for(l in i)C(o,l,s[l],i[l],n,t.m)},A=(e,s,r,a)=>{const f=s.i[r];let u,d,p,m=0;if(o||(i=!0,"slot"===f.$&&(t&&a.classList.add(t+"-s"),f.m|=f.i?2:1)),null!==f.l)u=f.h=ve.createTextNode(f.l);else if(1&f.m)u=f.h=ve.createTextNode("");else{if(c||(c="svg"===f.$),u=f.h=ve.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&f.m?"slot-fb":f.$),c&&"foreignObject"===f.$&&(c=!1),R(null,f,c),null!=t&&u["s-si"]!==t&&u.classList.add(u["s-si"]=t),f.i)for(m=0;m<f.i.length;++m)d=A(e,f,m,u),d&&u.appendChild(d);"svg"===f.$?c=!1:"foreignObject"===u.tagName&&(c=!0)}return u["s-hn"]=l,3&f.m&&(u["s-sr"]=!0,u["s-cr"]=n,u["s-sn"]=f.p||"",p=e&&e.i&&e.i[r],p&&p.$===f.$&&e.h&&E(e.h,!1)),u},E=(e,t)=>{ge.m|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==l&&o["s-ol"]&&(N(o).insertBefore(o,_(o)),o["s-ol"].remove(),o["s-ol"]=void 0,i=!0),t&&E(o,t)}ge.m&=-2},x=(e,t,n,o,s,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===l&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=A(null,n,s,e),c&&(o[s].h=c,r.insertBefore(c,_(t))))},D=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.h,G(l),s=!0,o["s-ol"]?o["s-ol"].remove():E(o,!0),o.remove())},T=(e,t)=>e.$===t.$&&("slot"===e.$?e.p===t.p:e.u===t.u),_=e=>e&&e["s-ol"]||e,N=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.$,i=t.l;let r;null===i?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||R(e,t,c),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,a=0,f=t.length-1,u=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==u)u=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(T(u,m))P(u,m),u=t[++i],m=l[++c];else if(T(d,y))P(d,y),d=t[--f],y=l[--p];else if(T(u,y))"slot"!==u.$&&"slot"!==y.$||E(u.h.parentNode,!1),P(u,y),e.insertBefore(u.h,d.h.nextSibling),u=t[++i],y=l[--p];else if(T(d,m))"slot"!==u.$&&"slot"!==y.$||E(d.h.parentNode,!1),P(d,m),e.insertBefore(d.h,u.h),d=t[--f],m=l[++c];else{for(r=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].u&&t[a].u===m.u){r=a;break}r>=0?(s=t[r],s.$!==m.$?o=A(t&&t[c],n,r,e):(P(s,m),t[r]=void 0,o=s.h),m=l[++c]):(o=A(t&&t[c],n,c,e),m=l[++c]),o&&N(u.h).insertBefore(o,_(u.h))}i>f?x(e,null==l[p+1]?null:l[p+1].h,n,l,c,p):c>p&&D(t,i,f)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),x(n,null,t,o,0,o.length-1)):null!==l&&D(l,0,l.length-1),c&&"svg"===s&&(c=!1)):(r=n["s-cr"])?r.parentNode.textContent=i:e.l!==i&&(n.data=i)},I=e=>{const t=e.childNodes;let n,l,o,s,i,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===c&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}I(n)}},U=[],W=e=>{let t,n,l,o,i,c,r=0;const a=e.childNodes,f=a.length;for(;r<f;r++){if(t=a[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(F(n,o)?(i=U.find((e=>e.k===n)),s=!0,n["s-sn"]=n["s-sn"]||o,i?i.S=t:U.push({S:t,k:n}),n["s-sr"]&&U.map((e=>{F(e.k,n["s-sn"])&&(i=U.find((e=>e.k===n)),i&&!e.S&&(e.S=i.S))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&W(t)}},F=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,G=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(G)},B=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},H=(e,t)=>{if(e.m|=16,!(4&e.m))return B(e,e.M),Ae((()=>Y(e,t)));e.m|=512},Y=(e,t)=>{const n=e.C;let l;return t?(e.m|=256,e.O&&(e.O.map((([e,t])=>X(n,e,t))),e.O=null),l=X(n,"componentWillLoad")):l=X(n,"componentWillUpdate"),l=Z(l,(()=>X(n,"componentWillRender"))),Z(l,(()=>q(e,n,t)))},q=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.L,n=e.v,l=t.m,o=((e,t)=>{var n;let l=M(t);const o=be.get(l);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){let t,s=j.get(e=e.head||e);if(s||j.set(e,s=new Set),!s.has(l)){{t=ve.createElement("style"),t.innerHTML=o;const l=null!==(n=ge.R)&&void 0!==n?n:m(ve);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);K(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>z(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},K=(e,c)=>{try{r=c,c=c.render&&c.render(),e.m&=-17,e.m|=2,((e,c)=>{const r=e.v,a=e.L,f=e.A||$(null,null),u=(e=>e&&e.$===h)(c)?c:y(null,null,c);if(l=r.tagName,a.D&&(u.o=u.o||{},a.D.map((([e,t])=>u.o[t]=r[e]))),u.$=null,u.m|=4,e.A=u,u.h=f.h=r.shadowRoot||r,t=r["s-sc"],n=r["s-cr"],o=0!=(1&a.m),s=!1,P(f,u),ge.m|=1,i){let e,t,n,l,o,s;W(u.h);let i=0;for(;i<U.length;i++)e=U[i],t=e.k,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<U.length;i++)if(e=U[i],t=e.k,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}s&&I(u.h),ge.m&=-2,U.length=0})(e,c)}catch(t){ye(t,e.v)}return r=null,null},V=()=>r,z=e=>{const t=e.v,n=e.C,l=e.M;X(n,"componentDidRender"),64&e.m?X(n,"componentDidUpdate"):(e.m|=64,ee(t),X(n,"componentDidLoad"),e.T(t),l||Q()),e._(t),e.j&&(e.j(),e.j=void 0),512&e.m&&Re((()=>H(e,!1))),e.m&=-517},J=e=>{{const t=ue(e),n=t.v.isConnected;return n&&2==(18&t.m)&&H(t,!1),n}},Q=()=>{ee(ve.documentElement),Re((()=>S(we,"appload",{detail:{namespace:"bromcom-ui"}})))},X=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ye(e)}},Z=(e,t)=>e&&e.then?e.then(t):t(),ee=e=>e.setAttribute("hydrated",""),te=(e,t,n)=>{if(t.N){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.N),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ue(this).I.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ue(e),s=o.v,i=o.I.get(t),c=o.m,r=o.C;if(n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.I.set(t,n),r)){if(l.P&&128&c){const e=l.P[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){ye(e,s)}}))}if(2==(18&c)){if(r.componentShouldUpdate&&!1===r.componentShouldUpdate(n,i,t))return;H(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=ue(this);return n.U.then((()=>n.C[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){ge.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.D.push([e,o]),o}))}}return e},ne=e=>{X(e,"connectedCallback")},le=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=we.customElements,i=ve.head,c=i.querySelector("meta[charset]"),r=ve.createElement("style"),a=[];let f,u=!0;Object.assign(ge,t),ge.t=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map((e=>{e[1].map((t=>{const n={m:t[0],g:t[1],N:t[2],W:t[3]};n.N=t[2],n.W=t[3],n.D=[],n.P={};const i=n.g,c=class extends HTMLElement{constructor(e){super(e),pe(e=this,n),1&n.m&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),u?a.push(this):ge.jmp((()=>(e=>{if(0==(1&ge.m)){const t=ue(e),n=t.L,l=()=>{};if(1&t.m)se(e,t,n.W),ne(t.C);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){B(t,t.M=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=he(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.P=o.watchers,te(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){ye(e)}t.m&=-9,t.m|=128,e(),ne(t.C)}if(o.style){let e=o.style;const t=M(n);if(!be.has(t)){const l=()=>{};((e,t,n)=>{let l=be.get(e);Se&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,be.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.M,i=()=>H(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ge.jmp((()=>(()=>{if(0==(1&ge.m)){const e=ue(this),t=e.C;e.F&&(e.F.map((e=>e())),e.F=void 0),X(t,"disconnectedCallback")}})()))}componentOnReady(){return ue(this).G}};n.B=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,te(c,n,1)))}))}));{r.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(n=ge.R)&&void 0!==n?n:m(ve);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}u=!1,a.length?a.map((e=>e.connectedCallback())):ge.jmp((()=>f=setTimeout(Q,30)))},oe=(e,t)=>t,se=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ce(e,n),i=ie(t,o),c=re(n);ge.ael(s,l,i,c),(t.F=t.F||[]).push((()=>ge.rel(s,l,i,c)))}))},ie=(e,t)=>n=>{try{256&e.m?e.C[t](n):(e.O=e.O||[]).push([t,n])}catch(e){ye(e)}},ce=(e,t)=>4&t?ve:8&t?we:e,re=e=>0!=(2&e),ae=e=>ge.R=e,fe=new WeakMap,ue=e=>fe.get(e),de=(e,t)=>fe.set(t.C=e,t),pe=(e,t)=>{const n={m:0,v:e,L:t,I:new Map};return n.U=new Promise((e=>n._=e)),n.G=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],se(e,n,t.W),fe.set(e,n)},me=(e,t)=>t in e,ye=(e,t)=>(0,console.error)(e,t),$e=new Map,he=e=>{const t=e.g.replace(/-/g,"_"),n=e.B,l=$e.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>($e.set(n,e),e[t])),ye)
6
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},be=new Map,we="undefined"!=typeof window?window:{},ve=we.document||{head:{}},ge={m:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),Se=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),je=[],Me=[],Ce=(e,t)=>n=>{e.push(n),a||(a=!0,t&&4&ge.m?Re(Le):ge.raf(Le))},Oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ye(e)}e.length=0},Le=()=>{Oe(je),Oe(Me),(a=je.length>0)&&ge.raf(Le)},Re=e=>ke().then(e),Ae=Ce(Me,!0);export{e as E,oe as F,h as H,f as a,le as b,k as c,V as d,J as f,g,y as h,ke as p,de as r,ae as s}
5
+ const e={AG_GRID_LICENSE_KEY:"CompanyName=Bromcom MIS,LicensedApplication=Bromcom MIS,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=1,LicensedProductionInstancesCount=0,AssetReference=AG-025320,ExpiryDate=9_February_2023_[v2]_MTY3NTkwMDgwMDAwMA==91115b62a3d527a812292deae7284d78"};let t,n,l,o=!1,s=!1,i=!1,c=!1,r=null,a=!1;const f=e=>{const t=new URL(e,ke.t);return t.origin!==we.location.origin?t.href:t.pathname},u="http://www.w3.org/1999/xlink",d={},p=e=>"object"==(e=typeof e)||"function"===e;function m(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const y=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,c=!1;const r=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!p(l))&&(l+=""),i&&c?r[r.length-1].l+=l:r.push(i?$(null,l):l),c=i)};if(a(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,b);const f=$(e,null);return f.o=t,r.length>0&&(f.i=r),f.u=o,f.p=s,f},$=(e,t)=>({m:0,$:e,l:t,h:null,i:null,o:null,u:null,p:null}),h={},b={forEach:(e,t)=>e.map(w).forEach(t),map:(e,t)=>e.map(w).map(t).map(v)},w=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.p,vtag:e.$,vtext:e.l}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),y(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.p=e.vname,t},g=e=>ue(e).v,k=(e,t,n)=>{const l=g(e);return{emit:e=>S(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},S=(e,t,n)=>{const l=ke.ce(t,n);return e.dispatchEvent(l),l},j=new WeakMap,M=e=>"sc-"+e.g,C=(e,t,n,l,o,s)=>{if(n!==l){let i=me(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=L(n),s=L(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=p(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&s||o)&&!r&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):me(we,c)?c.slice(2):c[2]+t.slice(3),n&&ke.rel(e,t,n,!1),l&&ke.ael(e,t,l,!1)}},O=/\s/,L=e=>e?e.split(O):[],R=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||d,i=t.o||d;for(l in s)l in i||C(o,l,s[l],void 0,n,t.m);for(l in i)C(o,l,s[l],i[l],n,t.m)},A=(e,s,r,a)=>{const f=s.i[r];let u,d,p,m=0;if(o||(i=!0,"slot"===f.$&&(t&&a.classList.add(t+"-s"),f.m|=f.i?2:1)),null!==f.l)u=f.h=ve.createTextNode(f.l);else if(1&f.m)u=f.h=ve.createTextNode("");else{if(c||(c="svg"===f.$),u=f.h=ve.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&f.m?"slot-fb":f.$),c&&"foreignObject"===f.$&&(c=!1),R(null,f,c),null!=t&&u["s-si"]!==t&&u.classList.add(u["s-si"]=t),f.i)for(m=0;m<f.i.length;++m)d=A(e,f,m,u),d&&u.appendChild(d);"svg"===f.$?c=!1:"foreignObject"===u.tagName&&(c=!0)}return u["s-hn"]=l,3&f.m&&(u["s-sr"]=!0,u["s-cr"]=n,u["s-sn"]=f.p||"",p=e&&e.i&&e.i[r],p&&p.$===f.$&&e.h&&E(e.h,!1)),u},E=(e,t)=>{ke.m|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==l&&o["s-ol"]&&(N(o).insertBefore(o,_(o)),o["s-ol"].remove(),o["s-ol"]=void 0,i=!0),t&&E(o,t)}ke.m&=-2},x=(e,t,n,o,s,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===l&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=A(null,n,s,e),c&&(o[s].h=c,r.insertBefore(c,_(t))))},D=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.h,G(l),s=!0,o["s-ol"]?o["s-ol"].remove():E(o,!0),o.remove())},T=(e,t)=>e.$===t.$&&("slot"===e.$?e.p===t.p:e.u===t.u),_=e=>e&&e["s-ol"]||e,N=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.$,i=t.l;let r;null===i?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||R(e,t,c),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,a=0,f=t.length-1,u=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==u)u=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(T(u,m))P(u,m),u=t[++i],m=l[++c];else if(T(d,y))P(d,y),d=t[--f],y=l[--p];else if(T(u,y))"slot"!==u.$&&"slot"!==y.$||E(u.h.parentNode,!1),P(u,y),e.insertBefore(u.h,d.h.nextSibling),u=t[++i],y=l[--p];else if(T(d,m))"slot"!==u.$&&"slot"!==y.$||E(d.h.parentNode,!1),P(d,m),e.insertBefore(d.h,u.h),d=t[--f],m=l[++c];else{for(r=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].u&&t[a].u===m.u){r=a;break}r>=0?(s=t[r],s.$!==m.$?o=A(t&&t[c],n,r,e):(P(s,m),t[r]=void 0,o=s.h),m=l[++c]):(o=A(t&&t[c],n,c,e),m=l[++c]),o&&N(u.h).insertBefore(o,_(u.h))}i>f?x(e,null==l[p+1]?null:l[p+1].h,n,l,c,p):c>p&&D(t,i,f)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),x(n,null,t,o,0,o.length-1)):null!==l&&D(l,0,l.length-1),c&&"svg"===s&&(c=!1)):(r=n["s-cr"])?r.parentNode.textContent=i:e.l!==i&&(n.data=i)},I=e=>{const t=e.childNodes;let n,l,o,s,i,c;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(c=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===c&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===c||3===c&&""!==t[s].textContent.trim()){n.hidden=!0;break}I(n)}},U=[],W=e=>{let t,n,l,o,i,c,r=0;const a=e.childNodes,f=a.length;for(;r<f;r++){if(t=a[r],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(F(n,o)?(i=U.find((e=>e.k===n)),s=!0,n["s-sn"]=n["s-sn"]||o,i?i.S=t:U.push({S:t,k:n}),n["s-sr"]&&U.map((e=>{F(e.k,n["s-sn"])&&(i=U.find((e=>e.k===n)),i&&!e.S&&(e.S=i.S))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&W(t)}},F=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,G=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(G)},B=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},H=(e,t)=>{if(e.m|=16,!(4&e.m))return B(e,e.M),Ee((()=>Y(e,t)));e.m|=512},Y=(e,t)=>{const n=e.C;let l;return t?(e.m|=256,e.O&&(e.O.map((([e,t])=>X(n,e,t))),e.O=null),l=X(n,"componentWillLoad")):l=X(n,"componentWillUpdate"),l=Z(l,(()=>X(n,"componentWillRender"))),Z(l,(()=>q(e,n,t)))},q=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.L,n=e.v,l=t.m,o=((e,t)=>{var n;let l=M(t);const o=be.get(l);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){let t,s=j.get(e=e.head||e);if(s||j.set(e,s=new Set),!s.has(l)){{t=ve.createElement("style"),t.innerHTML=o;const l=null!==(n=ke.R)&&void 0!==n?n:m(ve);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);K(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>z(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},K=(e,c)=>{try{r=c,c=c.render&&c.render(),e.m&=-17,e.m|=2,((e,c)=>{const r=e.v,a=e.L,f=e.A||$(null,null),u=(e=>e&&e.$===h)(c)?c:y(null,null,c);if(l=r.tagName,a.D&&(u.o=u.o||{},a.D.map((([e,t])=>u.o[t]=r[e]))),u.$=null,u.m|=4,e.A=u,u.h=f.h=r.shadowRoot||r,t=r["s-sc"],n=r["s-cr"],o=0!=(1&a.m),s=!1,P(f,u),ke.m|=1,i){let e,t,n,l,o,s;W(u.h);let i=0;for(;i<U.length;i++)e=U[i],t=e.k,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<U.length;i++)if(e=U[i],t=e.k,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}s&&I(u.h),ke.m&=-2,U.length=0})(e,c)}catch(t){ye(t,e.v)}return r=null,null},V=()=>r,z=e=>{const t=e.v,n=e.C,l=e.M;X(n,"componentDidRender"),64&e.m?X(n,"componentDidUpdate"):(e.m|=64,ee(t),X(n,"componentDidLoad"),e.T(t),l||Q()),e._(t),e.j&&(e.j(),e.j=void 0),512&e.m&&Ae((()=>H(e,!1))),e.m&=-517},J=e=>{{const t=ue(e),n=t.v.isConnected;return n&&2==(18&t.m)&&H(t,!1),n}},Q=()=>{ee(ve.documentElement),Ae((()=>S(we,"appload",{detail:{namespace:"bromcom-ui"}})))},X=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ye(e)}},Z=(e,t)=>e&&e.then?e.then(t):t(),ee=e=>e.setAttribute("hydrated",""),te=(e,t,n)=>{if(t.N){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.N),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ue(this).I.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ue(e),s=o.v,i=o.I.get(t),c=o.m,r=o.C;if(n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.I.set(t,n),r)){if(l.P&&128&c){const e=l.P[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){ye(e,s)}}))}if(2==(18&c)){if(r.componentShouldUpdate&&!1===r.componentShouldUpdate(n,i,t))return;H(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=ue(this);return n.U.then((()=>n.C[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){ke.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.D.push([e,o]),o}))}}return e},ne=e=>{X(e,"connectedCallback")},le=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=we.customElements,i=ve.head,c=i.querySelector("meta[charset]"),r=ve.createElement("style"),a=[];let f,u=!0;Object.assign(ke,t),ke.t=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map((e=>{e[1].map((t=>{const n={m:t[0],g:t[1],N:t[2],W:t[3]};n.N=t[2],n.W=t[3],n.D=[],n.P={};const i=n.g,c=class extends HTMLElement{constructor(e){super(e),pe(e=this,n),1&n.m&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),u?a.push(this):ke.jmp((()=>(e=>{if(0==(1&ke.m)){const t=ue(e),n=t.L,l=()=>{};if(1&t.m)se(e,t,n.W),ne(t.C);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){B(t,t.M=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=he(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.P=o.watchers,te(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){ye(e)}t.m&=-9,t.m|=128,e(),ne(t.C)}if(o.style){let e=o.style;const t=M(n);if(!be.has(t)){const l=()=>{};((e,t,n)=>{let l=be.get(e);je&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,be.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.M,i=()=>H(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ke.jmp((()=>(()=>{if(0==(1&ke.m)){const e=ue(this),t=e.C;e.F&&(e.F.map((e=>e())),e.F=void 0),X(t,"disconnectedCallback")}})()))}componentOnReady(){return ue(this).G}};n.B=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,te(c,n,1)))}))}));{r.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(n=ke.R)&&void 0!==n?n:m(ve);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}u=!1,a.length?a.map((e=>e.connectedCallback())):ke.jmp((()=>f=setTimeout(Q,30)))},oe=(e,t)=>t,se=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ce(e,n),i=ie(t,o),c=re(n);ke.ael(s,l,i,c),(t.F=t.F||[]).push((()=>ke.rel(s,l,i,c)))}))},ie=(e,t)=>n=>{try{256&e.m?e.C[t](n):(e.O=e.O||[]).push([t,n])}catch(e){ye(e)}},ce=(e,t)=>4&t?ve:8&t?we:e,re=e=>0!=(2&e),ae=e=>ke.R=e,fe=new WeakMap,ue=e=>fe.get(e),de=(e,t)=>fe.set(t.C=e,t),pe=(e,t)=>{const n={m:0,v:e,L:t,I:new Map};return n.U=new Promise((e=>n._=e)),n.G=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],se(e,n,t.W),fe.set(e,n)},me=(e,t)=>t in e,ye=(e,t)=>(0,console.error)(e,t),$e=new Map,he=e=>{const t=e.g.replace(/-/g,"_"),n=e.B,l=$e.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>($e.set(n,e),e[t])),ye)
6
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},be=new Map,we="undefined"!=typeof window?window:{},ve=we.document||{head:{}},ge=we.HTMLElement||class{},ke={m:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},Se=e=>Promise.resolve(e),je=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Me=[],Ce=[],Oe=(e,t)=>n=>{e.push(n),a||(a=!0,t&&4&ke.m?Ae(Re):ke.raf(Re))},Le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ye(e)}e.length=0},Re=()=>{Le(Me),Le(Ce),(a=Me.length>0)&&ke.raf(Re)},Ae=e=>Se().then(e),Ee=Oe(Ce,!0);export{e as E,oe as F,h as H,f as a,le as b,k as c,V as d,ge as e,J as f,g,y as h,Se as p,de as r,ae as s}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,h as i,H as s,g as n}from"./p-170cf07d.js";import{c as r}from"./p-64fad38b.js";import{G as a}from"./p-4efbc5c8.js";import{a as o}from"./p-a313fba6.js";import{d as h}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-304db6c3.js";import"./p-a2df6c19.js";const c=class{constructor(i){t(this,i),this.change=e(this,"bcm-change",7),this._id=a.UID(),this.min=0,this.max=10,this.step=1,this.value=0,this.height="326px",this.name=void 0,this.direction=o.Direction.horizontal,this._prefix=void 0,this._suffix=void 0,this.multiple=!1,this.leftValue=void 0,this.rightValue=void 0,this.leftMin=void 0}connectedCallback(){const t=JSON.parse(this.value);this.value="number"==typeof t?[t]:t,this.value.length>1?(this.leftValue=this.value[0],this.rightValue=this.value[1],this.leftMin=this.min,this.multiple=!0):(this.rightValue=this.value,this.leftMin=this.min-this.step,this.leftValue=this.leftMin,this.multiple=!1),a.createComponent("bcm-tooltip-box",{id:"box-"+this._id,placement:this.direction===o.Direction.horizontal?o.Placement.top:o.Placement.left,color:"blue"})}componentDidLoad(){this.setThumbPosition("right"),this.setThumbPosition("left"),this.multiple||this.hiddenLeftThumb()}async setValue(t){return this.value=t,this.handleChange(),t}async setClear(){return this.value=this.multiple?[this.min,this.max]:this.min,await h(10),Promise.resolve()}async resetCaption(){return await h(10),await h(10),Promise.resolve()}async getValue(){return this.value}syncValues(t,e){const i=e.target.valueAsNumber,s="left"===t?this.rightValue:this.leftValue;"left"===t?(this.leftValue=i>=s?s-1:i,this.getInput(t).valueAsNumber=this.leftValue,this.setThumbPosition("left")):(this.rightValue=i<=s?s+1:i,this.getInput(t).valueAsNumber=this.rightValue,this.setThumbPosition("right"))}handleChange(){this.multiple?(this.getInput("left").valueAsNumber=this.leftValue,this.getInput("right").valueAsNumber=this.rightValue,this.value=[this.leftValue,this.rightValue]):(this.getInput("right").valueAsNumber=this.rightValue,this.value=this.rightValue),this.change.emit(this.value)}setThumbPosition(t){const{min:e,max:i}=this,s=this.el.querySelector("#bcm-range__thumb-range");let n;n=(this.getInput(t).valueAsNumber-e)/(i-e)*100,n=("left"===t?n:100-n)+"%",this.getThumb(t).style[t]=n,s.style[t]=n}hiddenLeftThumb(){const t=this.getThumb("left"),e=this.el.querySelector("#bcm-range__thumb-range");t.classList.add("hidden"),e.style.left=0}getTooltip(t){const e=document.querySelector(`bcm-tooltip-box[id="box-${this._id}"]`);return e.setAttribute("target-id","bcm-range__thumb-"+t+"-"+this._id),e.setAttribute("message",this.getInput(t).valueAsNumber),e}getThumb(t){return this.el.querySelector("#bcm-range__thumb-"+t+"-"+this._id)}getInput(t){return this.el.querySelector("#input-"+t+"-"+this._id)}touchToMove(t){const e=this.multiple&&Math.abs(t-this.leftValue)<Math.abs(t-this.rightValue)?"left":"right";this.getInput(e).valueAsNumber=t,this.syncValues(e,{target:{valueAsNumber:t}}),this.handleChange()}hoverTick(t,e){this.el.querySelector(`#tick-${t}`).classList.toggle("hover",e)}render(){const{min:t,max:e,step:n,leftMin:a,direction:h,height:c}=this,p=r("bcm-range",h);return i(s,{class:p,style:h==o.Direction.vertical&&{height:c}},i("div",{class:"bcm-range__container",style:h==o.Direction.vertical&&{height:"100%",width:c}},i("input",{type:"range",role:"slider","aria-label":"range",id:`input-left-${this._id}`,min:a,max:e,step:n,onChange:t=>{this.syncValues("left",t),this.handleChange()},onInput:t=>{this.syncValues("left",t),this.getTooltip("left").hide(),this.getTooltip("left").show()},onMouseOver:()=>{this.getThumb("left").classList.add("hover"),this.getTooltip("left").show()},onMouseOut:()=>{this.getThumb("left").classList.remove("hover"),this.getTooltip("left").hide()},value:this.leftValue,class:{single:!this.multiple}}),i("input",{type:"range",id:`input-right-${this._id}`,role:"slider","aria-label":"range",min:t,max:e,onChange:t=>{this.syncValues("right",t),this.handleChange()},onInput:t=>{this.syncValues("right",t),this.getTooltip("right").hide(),this.getTooltip("right").show()},onMouseOver:()=>{this.getThumb("right").classList.add("hover"),this.getTooltip("right").show()},onMouseOut:()=>{this.getThumb("right").classList.remove("hover"),this.getTooltip("right").hide()},step:n,value:this.rightValue}),i("div",{class:"bcm-range__container-bar"},i("div",{class:"ticks"},i((()=>{const{min:t,max:e,step:s,_prefix:n,_suffix:r}=this,a=[];for(let o=t;o<=e;o+=s)a.push(i("span",{id:"tick-"+o,class:"tick size-1"},i("span",{class:"tick-text",onMouseOver:()=>this.hoverTick(o,!0),onMouseOut:()=>this.hoverTick(o,!1),onClick:()=>this.touchToMove(o)},n,o,r)));return a}),null)),i("div",{class:"bcm-range__container-bar-track"}),i("div",{class:"bcm-range__container-bar-range",id:"bcm-range__thumb-range"}),i("div",{class:"bcm-range__container-bar-thumb left",id:`bcm-range__thumb-left-${this._id}`},i("span",null)),i("div",{class:"bcm-range__container-bar-thumb right",id:`bcm-range__thumb-right-${this._id}`},i("span",null))),i("div",{class:"touch"},i((()=>{const{min:t,max:e,step:s}=this,n=[];for(let r=t;r<=e;r+=s)n.push(i("span",{onMouseOver:()=>this.hoverTick(r,!0),onMouseOut:()=>this.hoverTick(r,!1),onClick:()=>this.touchToMove(r),class:"touch-point"}));return n}),null))))}get el(){return n(this)}};c.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-range{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;width:100%;position:relative;display:block;margin:16px 0}.bcm-range input[type=range]{position:absolute;pointer-events:none;-webkit-appearance:none;z-index:4;height:30px;width:100%;top:-17px;opacity:0}.bcm-range input[type=range].single{display:none}.bcm-range input[type=range]::-webkit-slider-thumb{pointer-events:all;width:30px;height:30px;border-radius:0;border:0 none;background-color:red;-webkit-appearance:none;cursor:pointer}.bcm-range__container-bar{width:calc(100% - 24px);left:12px;position:relative}.bcm-range__container-bar-track{position:absolute;top:-2px;width:100%;height:4px;background-color:var(--bcm-new-ds-color-slate-300);z-index:1}.bcm-range__container-bar-range{position:absolute;top:-2px;left:22.22%;right:22.22%;height:4px;background-color:var(--bcm-new-ds-color-blue-500);z-index:2}.bcm-range__container-bar-thumb{position:absolute;top:0;width:16px;height:16px;background-color:var(--bcm-new-ds-color-blue-500);border-radius:50%;z-index:3;transition:box-shadow 0.2s ease-in-out;display:flex;align-items:center;justify-content:center}.bcm-range__container-bar-thumb>span{display:flex;width:100%;height:100%}.bcm-range__container-bar-thumb.hover{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1);cursor:pointer}.bcm-range__container-bar-thumb.hidden{display:none}.bcm-range__container-bar-thumb.left{left:22.22222%;transform:translate(-8px, -8px)}.bcm-range__container-bar-thumb.right{right:0%;transform:translate(8px, -8px)}.bcm-range .ticks{position:absolute;z-index:0;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:4px 0;user-select:none}.bcm-range .tick{position:relative;display:flex;justify-content:center;width:1px;color:var(--bcm-new-ds-color-slate-300);cursor:pointer;height:8px;line-height:32px;margin-bottom:8px;z-index:-1;transition:color 0.1s ease-in-out}.bcm-range .tick::before,.bcm-range .tick::after{content:" ";position:absolute;width:1px;height:8px;background-color:var(--bcm-new-ds-color-slate-300);z-index:-1;transition:background-color 0.1s ease-in-out}.bcm-range .tick::before{top:-16px}.bcm-range .tick::after{top:0}.bcm-range .tick.hover{color:var(--bcm-new-ds-color-slate-400)}.bcm-range .tick.hover::before,.bcm-range .tick.hover::after{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-range .touch{position:absolute;width:calc(100% + 48px);left:-24px;top:-17px;opacity:0;height:45px;z-index:2;background-color:transparent;display:flex;flex-direction:row;justify-content:space-between}.bcm-range .touch-point{cursor:pointer;flex:1;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box;background-color:var(--bcm-new-ds-color-slate-300)}.bcm-range .touch-point:hover{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-range .touch::after,.bcm-range .touch::before{content:"";position:absolute;width:24px;height:100%;top:0}.bcm-range .touch::before{left:0}.bcm-range .touch::after{right:0}.bcm-range.vertical{margin:0 16px;padding:12px 0}.bcm-range.vertical .touch{width:calc(100% + 12px);left:-6px;top:-17px}.bcm-range.vertical .touch::after,.bcm-range.vertical .touch::before{width:12px}.bcm-range.vertical .bcm-range__container{transform:rotate(270deg)}.bcm-range.vertical .bcm-range__container .ticks .tick-text{position:absolute;top:0px;width:100%;transform:rotate(90deg)}';export{c as bcm_range}
5
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-8828bbde.js";import{c as r}from"./p-64fad38b.js";import{G as a}from"./p-5b96cd07.js";import{a as o}from"./p-a313fba6.js";import{d as h}from"./p-6f2e4c9b.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";import"./p-a2df6c19.js";const c=class{constructor(i){t(this,i),this.change=e(this,"bcm-change",7),this._id=a.UID(),this.min=0,this.max=10,this.step=1,this.value=0,this.height="326px",this.name=void 0,this.direction=o.Direction.horizontal,this._prefix=void 0,this._suffix=void 0,this.multiple=!1,this.leftValue=void 0,this.rightValue=void 0,this.leftMin=void 0}connectedCallback(){const t=JSON.parse(this.value);this.value="number"==typeof t?[t]:t,this.value.length>1?(this.leftValue=this.value[0],this.rightValue=this.value[1],this.leftMin=this.min,this.multiple=!0):(this.rightValue=this.value,this.leftMin=this.min-this.step,this.leftValue=this.leftMin,this.multiple=!1),a.createComponent("bcm-tooltip-box",{id:"box-"+this._id,placement:this.direction===o.Direction.horizontal?o.Placement.top:o.Placement.left,color:"blue"})}componentDidLoad(){this.setThumbPosition("right"),this.setThumbPosition("left"),this.multiple||this.hiddenLeftThumb()}async setValue(t){return this.value=t,this.handleChange(),t}async setClear(){return this.value=this.multiple?[this.min,this.max]:this.min,await h(10),Promise.resolve()}async resetCaption(){return await h(10),await h(10),Promise.resolve()}async getValue(){return this.value}syncValues(t,e){const i=e.target.valueAsNumber,s="left"===t?this.rightValue:this.leftValue;"left"===t?(this.leftValue=i>=s?s-1:i,this.getInput(t).valueAsNumber=this.leftValue,this.setThumbPosition("left")):(this.rightValue=i<=s?s+1:i,this.getInput(t).valueAsNumber=this.rightValue,this.setThumbPosition("right"))}handleChange(){this.multiple?(this.getInput("left").valueAsNumber=this.leftValue,this.getInput("right").valueAsNumber=this.rightValue,this.value=[this.leftValue,this.rightValue]):(this.getInput("right").valueAsNumber=this.rightValue,this.value=this.rightValue),this.change.emit(this.value)}setThumbPosition(t){const{min:e,max:i}=this,s=this.el.querySelector("#bcm-range__thumb-range");let n;n=(this.getInput(t).valueAsNumber-e)/(i-e)*100,n=("left"===t?n:100-n)+"%",this.getThumb(t).style[t]=n,s.style[t]=n}hiddenLeftThumb(){const t=this.getThumb("left"),e=this.el.querySelector("#bcm-range__thumb-range");t.classList.add("hidden"),e.style.left=0}getTooltip(t){const e=document.querySelector(`bcm-tooltip-box[id="box-${this._id}"]`);return e.setAttribute("target-id","bcm-range__thumb-"+t+"-"+this._id),e.setAttribute("message",this.getInput(t).valueAsNumber),e}getThumb(t){return this.el.querySelector("#bcm-range__thumb-"+t+"-"+this._id)}getInput(t){return this.el.querySelector("#input-"+t+"-"+this._id)}touchToMove(t){const e=this.multiple&&Math.abs(t-this.leftValue)<Math.abs(t-this.rightValue)?"left":"right";this.getInput(e).valueAsNumber=t,this.syncValues(e,{target:{valueAsNumber:t}}),this.handleChange()}hoverTick(t,e){this.el.querySelector(`#tick-${t}`).classList.toggle("hover",e)}render(){const{min:t,max:e,step:n,leftMin:a,direction:h,height:c}=this,p=r("bcm-range",h);return i(s,{class:p,style:h==o.Direction.vertical&&{height:c}},i("div",{class:"bcm-range__container",style:h==o.Direction.vertical&&{height:"100%",width:c}},i("input",{type:"range",role:"slider","aria-label":"range",id:`input-left-${this._id}`,min:a,max:e,step:n,onChange:t=>{this.syncValues("left",t),this.handleChange()},onInput:t=>{this.syncValues("left",t),this.getTooltip("left").hide(),this.getTooltip("left").show()},onMouseOver:()=>{this.getThumb("left").classList.add("hover"),this.getTooltip("left").show()},onMouseOut:()=>{this.getThumb("left").classList.remove("hover"),this.getTooltip("left").hide()},value:this.leftValue,class:{single:!this.multiple}}),i("input",{type:"range",id:`input-right-${this._id}`,role:"slider","aria-label":"range",min:t,max:e,onChange:t=>{this.syncValues("right",t),this.handleChange()},onInput:t=>{this.syncValues("right",t),this.getTooltip("right").hide(),this.getTooltip("right").show()},onMouseOver:()=>{this.getThumb("right").classList.add("hover"),this.getTooltip("right").show()},onMouseOut:()=>{this.getThumb("right").classList.remove("hover"),this.getTooltip("right").hide()},step:n,value:this.rightValue}),i("div",{class:"bcm-range__container-bar"},i("div",{class:"ticks"},i((()=>{const{min:t,max:e,step:s,_prefix:n,_suffix:r}=this,a=[];for(let o=t;o<=e;o+=s)a.push(i("span",{id:"tick-"+o,class:"tick size-1"},i("span",{class:"tick-text",onMouseOver:()=>this.hoverTick(o,!0),onMouseOut:()=>this.hoverTick(o,!1),onClick:()=>this.touchToMove(o)},n,o,r)));return a}),null)),i("div",{class:"bcm-range__container-bar-track"}),i("div",{class:"bcm-range__container-bar-range",id:"bcm-range__thumb-range"}),i("div",{class:"bcm-range__container-bar-thumb left",id:`bcm-range__thumb-left-${this._id}`},i("span",null)),i("div",{class:"bcm-range__container-bar-thumb right",id:`bcm-range__thumb-right-${this._id}`},i("span",null))),i("div",{class:"touch"},i((()=>{const{min:t,max:e,step:s}=this,n=[];for(let r=t;r<=e;r+=s)n.push(i("span",{onMouseOver:()=>this.hoverTick(r,!0),onMouseOut:()=>this.hoverTick(r,!1),onClick:()=>this.touchToMove(r),class:"touch-point"}));return n}),null))))}get el(){return n(this)}};c.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-range{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;width:100%;position:relative;display:block;margin:16px 0}.bcm-range input[type=range]{position:absolute;pointer-events:none;-webkit-appearance:none;z-index:4;height:30px;width:100%;top:-17px;opacity:0}.bcm-range input[type=range].single{display:none}.bcm-range input[type=range]::-webkit-slider-thumb{pointer-events:all;width:30px;height:30px;border-radius:0;border:0 none;background-color:red;-webkit-appearance:none;cursor:pointer}.bcm-range__container-bar{width:calc(100% - 24px);left:12px;position:relative}.bcm-range__container-bar-track{position:absolute;top:-2px;width:100%;height:4px;background-color:var(--bcm-new-ds-color-slate-300);z-index:1}.bcm-range__container-bar-range{position:absolute;top:-2px;left:22.22%;right:22.22%;height:4px;background-color:var(--bcm-new-ds-color-blue-500);z-index:2}.bcm-range__container-bar-thumb{position:absolute;top:0;width:16px;height:16px;background-color:var(--bcm-new-ds-color-blue-500);border-radius:50%;z-index:3;transition:box-shadow 0.2s ease-in-out;display:flex;align-items:center;justify-content:center}.bcm-range__container-bar-thumb>span{display:flex;width:100%;height:100%}.bcm-range__container-bar-thumb.hover{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.1), 0px 3px 1px rgba(0, 0, 0, 0.05), 0px 1px 5px rgba(0, 0, 0, 0.1);cursor:pointer}.bcm-range__container-bar-thumb.hidden{display:none}.bcm-range__container-bar-thumb.left{left:22.22222%;transform:translate(-8px, -8px)}.bcm-range__container-bar-thumb.right{right:0%;transform:translate(8px, -8px)}.bcm-range .ticks{position:absolute;z-index:0;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:4px 0;user-select:none}.bcm-range .tick{position:relative;display:flex;justify-content:center;width:1px;color:var(--bcm-new-ds-color-slate-300);cursor:pointer;height:8px;line-height:32px;margin-bottom:8px;z-index:-1;transition:color 0.1s ease-in-out}.bcm-range .tick::before,.bcm-range .tick::after{content:" ";position:absolute;width:1px;height:8px;background-color:var(--bcm-new-ds-color-slate-300);z-index:-1;transition:background-color 0.1s ease-in-out}.bcm-range .tick::before{top:-16px}.bcm-range .tick::after{top:0}.bcm-range .tick.hover{color:var(--bcm-new-ds-color-slate-400)}.bcm-range .tick.hover::before,.bcm-range .tick.hover::after{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-range .touch{position:absolute;width:calc(100% + 48px);left:-24px;top:-17px;opacity:0;height:45px;z-index:2;background-color:transparent;display:flex;flex-direction:row;justify-content:space-between}.bcm-range .touch-point{cursor:pointer;flex:1;border:1px solid var(--bcm-new-ds-color-slate-300);box-sizing:border-box;background-color:var(--bcm-new-ds-color-slate-300)}.bcm-range .touch-point:hover{border-color:var(--bcm-new-ds-color-blue-500);background-color:var(--bcm-new-ds-color-blue-500)}.bcm-range .touch::after,.bcm-range .touch::before{content:"";position:absolute;width:24px;height:100%;top:0}.bcm-range .touch::before{left:0}.bcm-range .touch::after{right:0}.bcm-range.vertical{margin:0 16px;padding:12px 0}.bcm-range.vertical .touch{width:calc(100% + 12px);left:-6px;top:-17px}.bcm-range.vertical .touch::after,.bcm-range.vertical .touch::before{width:12px}.bcm-range.vertical .bcm-range__container{transform:rotate(270deg)}.bcm-range.vertical .bcm-range__container .ticks .tick-text{position:absolute;top:0px;width:100%;transform:rotate(90deg)}';export{c as bcm_range}
@@ -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 a}from"./p-170cf07d.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as o}from"./p-4efbc5c8.js";import"./p-a639d6c1.js";import"./p-35f2e15a.js";import"./p-8e98eedc.js";import"./p-6f861fed.js";import{d as h}from"./p-6f2e4c9b.js";import{B as r}from"./p-a313fba6.js";import{c as l}from"./p-64fad38b.js";import"./p-436364c8.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-304db6c3.js";const c=class{constructor(i){t(this,i),this.modalClose=s(this,"bcm-modal-close",7),this.modalOpen=s(this,"bcm-modal-open",7),this.modalBeforeClose=s(this,"bcm-modal-before-close",7),this.modalBeforeOpen=s(this,"bcm-modal-before-open",7),this._id=o.UID(),this.isShow=!1,this.center=!1,this.zIndex="10400",this.size=r.Size.medium,this.backdrop=!0,this.fullWidth=!1,this.fullScreen=!1,this.overflow=!0,this.isShowModal=!1,this.shake=!1}handleClick(t){const s=o.findEventPathHasAttribute(t,"data-dismiss"),i=t.target.attributes.getNamedItem("is-click-overlay");i&&"static"===this.backdrop?this.shakeModal():(s||i)&&(this.hide(),t.preventDefault(),t.stopPropagation())}handleKeyDown(t){Array.from(document.querySelectorAll("bcm-modal-2[is-show]")).pop()===this.el&&"Escape"===t.key&&("static"===this.backdrop?this.shakeModal():this.hide(),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shakeModal(){this.shake=!0,setTimeout((()=>this.shake=!1),300)}async hide(){this.modalBeforeClose.emit()}async hideModal(t){t.defaultPrevented||t.target===this.el&&(this.isShowModal=!1,await h(150),this.isShow=!1,this.modalClose.emit())}async show(){this.modalBeforeOpen.emit()}async showModal(t){t.defaultPrevented||t.target===this.el&&(this.isShow=!0,await h(50),this.isShowModal=!0,document.body.appendChild(this.el),this.modalOpen.emit())}getWidth(t){return{small:"576px",medium:"768px",large:"992px",xlarge:"1024px",xxlarge:"1200px",xxxlarge:"1700px"}[t]||t}setSize(){const{fullScreen:t,fullWidth:s,size:i,overflow:e}=this;let a="auto",o="auto",h=s?"100%":this.getWidth(i);return t&&(o=e?"100vh":"auto",h="100vw",a="100vh"),{width:h,minHeight:a,height:o}}render(){return i(e,{class:{"tw-hidden":!this.isShow}},i("bcm-overlay",{"z-index":+this.zIndex-1,opacity:this.isShowModal?"0.5":"0"}),i("div",{class:l("tw-fixed tw-inset-0","tw-flex tw-h-full tw-w-full tw-items-start tw-justify-center","tw-overflow-y-scroll tw-overscroll-contain tw-font-sans",this.center?"tw-items-center":""),style:{zIndex:this.zIndex},"is-click-overlay":!0},i("div",{class:l("tw-flex tw-w-full tw-flex-col","tw-relative tw-z-modal tw-bg-white","tw--translate-y-[20px] tw-transform tw-opacity-0 tw-transition tw-duration-300 tw-ease-in-out",this.fullScreen?"":`tw-m-4 tw-rounded-lg ${this.overflow?"tw-max-h-[90vh]":""} `,this.shake?"tw-animate-shake":""),style:Object.assign(Object.assign({},this.setSize()),this.isShowModal?{transform:"translateY(0)",opacity:"1"}:{})},i("slot",{name:"header"}),i("bcm-scroll-area",{"is-disabled":!this.overflow},i("slot",null)),i("slot",{name:"footer"}))))}get el(){return a(this)}};export{c as bcm_modal_2}
5
+ import{r as t,c as s,h as i,H as e,g as a}from"./p-8828bbde.js";import"./p-499d8454.js";import"./p-626a65e9.js";import{G as o}from"./p-5b96cd07.js";import"./p-1774cf8d.js";import"./p-35f2e15a.js";import"./p-190f60ff.js";import"./p-6f861fed.js";import{d as h}from"./p-6f2e4c9b.js";import{B as r}from"./p-a313fba6.js";import{c as l}from"./p-64fad38b.js";import"./p-436364c8.js";import"./p-a2df6c19.js";import"./p-85eedabc.js";import"./p-c168b4ec.js";const c=class{constructor(i){t(this,i),this.modalClose=s(this,"bcm-modal-close",7),this.modalOpen=s(this,"bcm-modal-open",7),this.modalBeforeClose=s(this,"bcm-modal-before-close",7),this.modalBeforeOpen=s(this,"bcm-modal-before-open",7),this._id=o.UID(),this.isShow=!1,this.center=!1,this.zIndex="10400",this.size=r.Size.medium,this.backdrop=!0,this.fullWidth=!1,this.fullScreen=!1,this.overflow=!0,this.isShowModal=!1,this.shake=!1}handleClick(t){const s=o.findEventPathHasAttribute(t,"data-dismiss"),i=t.target.attributes.getNamedItem("is-click-overlay");i&&"static"===this.backdrop?this.shakeModal():(s||i)&&(this.hide(),t.preventDefault(),t.stopPropagation())}handleKeyDown(t){Array.from(document.querySelectorAll("bcm-modal-2[is-show]")).pop()===this.el&&"Escape"===t.key&&("static"===this.backdrop?this.shakeModal():this.hide(),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}shakeModal(){this.shake=!0,setTimeout((()=>this.shake=!1),300)}async hide(){this.modalBeforeClose.emit()}async hideModal(t){t.defaultPrevented||t.target===this.el&&(this.isShowModal=!1,await h(150),this.isShow=!1,this.modalClose.emit())}async show(){this.modalBeforeOpen.emit()}async showModal(t){t.defaultPrevented||t.target===this.el&&(this.isShow=!0,await h(50),this.isShowModal=!0,document.body.appendChild(this.el),this.modalOpen.emit())}getWidth(t){return{small:"576px",medium:"768px",large:"992px",xlarge:"1024px",xxlarge:"1200px",xxxlarge:"1700px"}[t]||t}setSize(){const{fullScreen:t,fullWidth:s,size:i,overflow:e}=this;let a="auto",o="auto",h=s?"100%":this.getWidth(i);return t&&(o=e?"100vh":"auto",h="100vw",a="100vh"),{width:h,minHeight:a,height:o}}render(){return i(e,{class:{"tw-hidden":!this.isShow}},i("bcm-overlay",{"z-index":+this.zIndex-1,opacity:this.isShowModal?"0.5":"0"}),i("div",{class:l("tw-fixed tw-inset-0","tw-flex tw-h-full tw-w-full tw-items-start tw-justify-center","tw-overflow-y-scroll tw-overscroll-contain tw-font-sans",this.center?"tw-items-center":""),style:{zIndex:this.zIndex},"is-click-overlay":!0},i("div",{class:l("tw-flex tw-w-full tw-flex-col","tw-relative tw-z-modal tw-bg-white","tw--translate-y-[20px] tw-transform tw-opacity-0 tw-transition tw-duration-300 tw-ease-in-out",this.fullScreen?"":`tw-m-4 tw-rounded-lg ${this.overflow?"tw-max-h-[90vh]":""} `,this.shake?"tw-animate-shake":""),style:Object.assign(Object.assign({},this.setSize()),this.isShowModal?{transform:"translateY(0)",opacity:"1"}:{})},i("slot",{name:"header"}),i("bcm-scroll-area",{"is-disabled":!this.overflow},i("slot",null)),i("slot",{name:"footer"}))))}get el(){return a(this)}};export{c as bcm_modal_2}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,h as i,H as s,g as h}from"./p-170cf07d.js";import{c as a}from"./p-64fad38b.js";import"./p-85eedabc.js";const l=class{constructor(i){t(this,i),this.autocompleteItemSelected=e(this,"bcm-autocomplete-item-selected",7),this.objectMapping={id:"id",text:"text",value:"value"},this.searchFields=["text","secondary_text","tooltip_text"],this._items=[],this.fullWidth=!1,this.hidden=!1,this.searchText=null,this.returnField="id",this.searchSub="items",this.searchPlaceholder="Search",this.inputLength=0,this.isOpen=!1,this.resultFound=!1,this.searchData=void 0,this.searchResults=[],this.items=[]}async config(t){await customElements.whenDefined("bcm-listbox"),this.bcmListbox=this.el.shadowRoot.querySelector("bcm-listbox"),await this.bcmListbox.config(t),t.searchFields&&Array.isArray(t.searchFields)&&(this.searchFields=t.searchFields),t.searchSub&&(this.searchSub="string"==typeof t.searchSub?t.searchSub:null),t.fullWidth&&(this.fullWidth="boolean"==typeof t.fullWidth&&t.fullWidth),t.searchPlaceholder&&(this.searchPlaceholder="string"==typeof t.searchPlaceholder?t.searchPlaceholder:null),t.mapping&&(t.mapping.id&&(this.objectMapping.id=t.mapping.id,this.returnField=this.objectMapping.id),t.mapping.text&&(this.objectMapping.text=t.mapping.text),t.mapping.value&&(this.objectMapping.value=t.mapping.value),t.mapping.items&&(this.objectMapping.items=t.mapping.items,this.searchSub=this.objectMapping.items))}async setData(t=[]){await customElements.whenDefined("bcm-listbox"),this.bcmListbox=this.el.shadowRoot.querySelector("bcm-listbox"),await this.bcmListbox.setData(t),this.searchData=JSON.parse(t)}async handleListboxClearSelected(t){const e=t.detail[this.objectMapping.text],i=this.el.shadowRoot.querySelector("bcm-old-search");this.autocompleteItemSelected.emit(t.detail),await i.setValue(e),this.isOpen=!1}listenSearchValue(t){this.inputLength=t.detail.length,this.isOpen=this.inputLength>0}async listenSearchResult(t){this.searchResults=t.detail;const e=this.el.shadowRoot.querySelector("bcm-listbox");await e.searchResultMethod(this.searchResults)}handleClickOutside(t){this.el.contains(t.target)?this.isOpen=this.inputLength>0:this.isOpen&&(this.isOpen=!1)}render(){const{searchText:t,searchData:e,searchFields:h,searchSub:l,returnField:o,isOpen:n,fullWidth:p}=this,c=a("bcm-autocomplete",{open:n}),r=a("bcm-autocomplete-search"),x=a("bcm-autocomplete-result",{open:n}),m=a(this.hidden?"hidden":null,{"full-width":p});return i(s,{class:m},i("div",{class:c},i("div",{class:r},i("bcm-old-search",{searchPlaceholder:this.searchPlaceholder,id:"autocomplete",searchValue:t,data:e,returnField:o,searchFields:h,searchSub:l,clearable:!0})),i("div",{class:x},i("div",{class:"viewport"},i("bcm-listbox",{searchText:t,_flex:"true"})))))}get el(){return h(this)}};l.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:fit-content;height:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%;height:100%}:host(.full-width) .bcm-autocomplete{max-height:100%;max-width:100%}.bcm-autocomplete{background-color:var(--bcm-color-grey-1);display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;position:relative}.bcm-autocomplete-result{position:relative}.bcm-autocomplete-result .viewport{position:absolute;overflow:hidden;height:0;transition:height 0.3s ease;background-color:#ffffff;width:100%;z-index:10000}.bcm-autocomplete-result.open .viewport{height:256px}';export{l as bcm_autocomplete}
5
+ import{r as t,c as e,h as i,H as s,g as h}from"./p-8828bbde.js";import{c as a}from"./p-64fad38b.js";import"./p-85eedabc.js";const l=class{constructor(i){t(this,i),this.autocompleteItemSelected=e(this,"bcm-autocomplete-item-selected",7),this.objectMapping={id:"id",text:"text",value:"value"},this.searchFields=["text","secondary_text","tooltip_text"],this._items=[],this.fullWidth=!1,this.hidden=!1,this.searchText=null,this.returnField="id",this.searchSub="items",this.searchPlaceholder="Search",this.inputLength=0,this.isOpen=!1,this.resultFound=!1,this.searchData=void 0,this.searchResults=[],this.items=[]}async config(t){await customElements.whenDefined("bcm-listbox"),this.bcmListbox=this.el.shadowRoot.querySelector("bcm-listbox"),await this.bcmListbox.config(t),t.searchFields&&Array.isArray(t.searchFields)&&(this.searchFields=t.searchFields),t.searchSub&&(this.searchSub="string"==typeof t.searchSub?t.searchSub:null),t.fullWidth&&(this.fullWidth="boolean"==typeof t.fullWidth&&t.fullWidth),t.searchPlaceholder&&(this.searchPlaceholder="string"==typeof t.searchPlaceholder?t.searchPlaceholder:null),t.mapping&&(t.mapping.id&&(this.objectMapping.id=t.mapping.id,this.returnField=this.objectMapping.id),t.mapping.text&&(this.objectMapping.text=t.mapping.text),t.mapping.value&&(this.objectMapping.value=t.mapping.value),t.mapping.items&&(this.objectMapping.items=t.mapping.items,this.searchSub=this.objectMapping.items))}async setData(t=[]){await customElements.whenDefined("bcm-listbox"),this.bcmListbox=this.el.shadowRoot.querySelector("bcm-listbox"),await this.bcmListbox.setData(t),this.searchData=JSON.parse(t)}async handleListboxClearSelected(t){const e=t.detail[this.objectMapping.text],i=this.el.shadowRoot.querySelector("bcm-old-search");this.autocompleteItemSelected.emit(t.detail),await i.setValue(e),this.isOpen=!1}listenSearchValue(t){this.inputLength=t.detail.length,this.isOpen=this.inputLength>0}async listenSearchResult(t){this.searchResults=t.detail;const e=this.el.shadowRoot.querySelector("bcm-listbox");await e.searchResultMethod(this.searchResults)}handleClickOutside(t){this.el.contains(t.target)?this.isOpen=this.inputLength>0:this.isOpen&&(this.isOpen=!1)}render(){const{searchText:t,searchData:e,searchFields:h,searchSub:l,returnField:o,isOpen:n,fullWidth:p}=this,c=a("bcm-autocomplete",{open:n}),r=a("bcm-autocomplete-search"),x=a("bcm-autocomplete-result",{open:n}),m=a(this.hidden?"hidden":null,{"full-width":p});return i(s,{class:m},i("div",{class:c},i("div",{class:r},i("bcm-old-search",{searchPlaceholder:this.searchPlaceholder,id:"autocomplete",searchValue:t,data:e,returnField:o,searchFields:h,searchSub:l,clearable:!0})),i("div",{class:x},i("div",{class:"viewport"},i("bcm-listbox",{searchText:t,_flex:"true"})))))}get el(){return h(this)}};l.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:inline-block;width:fit-content;height:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%;height:100%}:host(.full-width) .bcm-autocomplete{max-height:100%;max-width:100%}.bcm-autocomplete{background-color:var(--bcm-color-grey-1);display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;position:relative}.bcm-autocomplete-result{position:relative}.bcm-autocomplete-result .viewport{position:absolute;overflow:hidden;height:0;transition:height 0.3s ease;background-color:#ffffff;width:100%;z-index:10000}.bcm-autocomplete-result.open .viewport{height:256px}';export{l as bcm_autocomplete}