bromcom-ui 2.9.1-rc.2 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-066b9b83.entry.js → p-048f12f9.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-0643bc4a.entry.js → p-04be0172.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-5f6447fa.entry.js → p-067df594.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-f0ff6194.entry.js → p-102524c5.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-71ed7aaa.entry.js → p-148d0948.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-a656107a.entry.js → p-16d42f54.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-9dd64e63.entry.js → p-17a915ce.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c72d4b36.entry.js → p-184ed5c2.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-2a8e6faf.entry.js → p-1a7d32a9.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-72318066.js → p-2199a954.js} +1 -1
  12. package/dist/bromcom-ui/p-279b0089.js +5 -0
  13. package/dist/bromcom-ui/{p-c002245b.entry.js → p-2821f49b.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-e416e8fc.entry.js → p-2d915549.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-08fcaad7.entry.js → p-30583cb2.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-33a27257.entry.js +5 -0
  17. package/dist/bromcom-ui/p-33b8dcc8.js +5 -0
  18. package/dist/bromcom-ui/{p-47953dcc.entry.js → p-34545f2b.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-ea7ecfdf.entry.js → p-381cc688.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-25dd9da8.entry.js → p-3dafbb30.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-6c38380c.entry.js → p-4304365f.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-a8bde635.entry.js → p-43cab007.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-98b7b581.entry.js → p-448d48ab.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-504d102e.entry.js → p-485a9e4d.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-7f4fd4f1.entry.js → p-49c0954d.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-4dd34da3.entry.js → p-49dd882e.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-6cdf7a47.entry.js → p-519f82ea.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-8fba0df7.entry.js → p-520f4bc4.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-1a5848ff.entry.js → p-5b80631d.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-bb78166b.entry.js → p-6113822b.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-cc9aea5d.entry.js → p-64d8cf93.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-6fdf8589.entry.js → p-7123e244.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-8f5319d0.entry.js → p-713db66b.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-4b56e20d.entry.js → p-799c028a.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-0e2e7aaf.entry.js → p-7b6cf25d.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-be60b30f.entry.js → p-7ba5e7f0.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-cb9d10e7.entry.js → p-7cb7f18c.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-9e3538ad.entry.js → p-7e32aa8c.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-9872041f.entry.js → p-7e6f0460.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-c8afc135.entry.js → p-7fbd1446.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-7fd84bcb.entry.js → p-816c0767.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-ba18ac53.entry.js → p-83ac2114.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-6dad3a84.entry.js → p-87ba886d.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-9cee10ca.js → p-8a1e77c7.js} +1 -1
  45. package/dist/bromcom-ui/{p-70e11798.js → p-8be10f68.js} +1 -1
  46. package/dist/bromcom-ui/{p-d5adc98e.entry.js → p-8bf33d20.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-c64b7e36.entry.js → p-941b7c84.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-06a6a788.entry.js → p-9563a9cc.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-4fed249a.entry.js → p-967bf166.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-d2f0c787.entry.js → p-a57482d6.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-b8689c5f.js +5 -0
  52. package/dist/bromcom-ui/{p-8e0a5938.js → p-baba5236.js} +1 -1
  53. package/dist/bromcom-ui/{p-a7c13b5d.entry.js → p-be1aeeeb.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-f3228b57.entry.js → p-cb306b8b.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-93e2089c.entry.js → p-cc51949e.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-ef26a156.entry.js → p-cd7f7ff9.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-6dd8f5b3.entry.js → p-cd89ada6.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-085310d2.entry.js → p-ced63474.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-9d3493ac.entry.js → p-d67c0507.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-1df56a64.entry.js → p-d987c483.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-758eeb42.entry.js → p-da652d33.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-e845097e.entry.js → p-e20200cc.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-2511c6c5.js → p-e2d6bd93.js} +1 -1
  64. package/dist/bromcom-ui/{p-03860282.entry.js → p-ee3c98d1.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-afc84854.entry.js → p-f320c669.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-d1cc43a4.entry.js → p-f544bd88.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-d9ead52b.entry.js → p-f6a67da7.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-a2952973.js → p-f77e16e8.js} +1 -1
  69. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
  73. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  74. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-button.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-chip-group.cjs.entry.js +4 -4
  81. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  83. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  84. package/dist/cjs/bcm-colorful_2.cjs.entry.js +5 -5
  85. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-date.cjs.entry.js +4 -4
  87. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
  88. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  89. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  90. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  92. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  94. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
  95. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-items.cjs.entry.js +2 -2
  97. package/dist/cjs/bcm-label_2.cjs.entry.js +5 -5
  98. package/dist/cjs/bcm-linked.cjs.entry.js +4 -4
  99. package/dist/cjs/bcm-list_3.cjs.entry.js +6 -6
  100. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  101. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  102. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  103. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
  105. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
  108. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  110. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
  113. package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  115. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  116. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  117. package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
  118. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
  119. package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
  120. package/dist/cjs/bcm-table.cjs.entry.js +4 -4
  121. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  122. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  123. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
  124. package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
  125. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  126. package/dist/cjs/{generate-9fd41788.js → generate-0eddc1c1.js} +1 -1
  127. package/dist/cjs/{global-e30e43a2.js → global-b02647d7.js} +1 -1
  128. package/dist/cjs/{input-template-7587462d.js → input-template-c37dc199.js} +1 -1
  129. package/dist/cjs/{json-parse-decarator-c724f6c4.js → json-parse-decarator-d9837dc7.js} +1 -1
  130. package/dist/cjs/loader.cjs.js +2 -2
  131. package/dist/cjs/{number-helper-19148ce9.js → number-helper-34f232b3.js} +1 -1
  132. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  133. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  134. package/dist/cjs/{package-03de8a92.js → package-4e6f5967.js} +1 -1
  135. package/dist/cjs/{stepper-states-caa5dc36.js → stepper-states-72e45e8d.js} +1 -1
  136. package/dist/cjs/{tooltip-helper-a7e84230.js → tooltip-helper-ed0f2ce9.js} +3 -3
  137. package/dist/cjs/{validators-f3eace30.js → validators-72cc68b6.js} +1 -1
  138. package/dist/components/generate.js +1 -1
  139. package/dist/esm/bcm-accordion.entry.js +2 -2
  140. package/dist/esm/bcm-alert.entry.js +2 -2
  141. package/dist/esm/bcm-attendance.entry.js +2 -2
  142. package/dist/esm/bcm-avatar_2.entry.js +4 -4
  143. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  144. package/dist/esm/bcm-button-group.entry.js +2 -2
  145. package/dist/esm/bcm-button.entry.js +2 -2
  146. package/dist/esm/bcm-card.entry.js +2 -2
  147. package/dist/esm/bcm-checkbox-group.entry.js +2 -2
  148. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  149. package/dist/esm/bcm-checkbox_2.entry.js +2 -2
  150. package/dist/esm/bcm-chip-group.entry.js +4 -4
  151. package/dist/esm/bcm-chip.entry.js +2 -2
  152. package/dist/esm/bcm-collapse.entry.js +2 -2
  153. package/dist/esm/bcm-color-input.entry.js +4 -4
  154. package/dist/esm/bcm-colorful_2.entry.js +5 -5
  155. package/dist/esm/bcm-date-picker.entry.js +2 -2
  156. package/dist/esm/bcm-date.entry.js +4 -4
  157. package/dist/esm/bcm-datetime-picker.entry.js +2 -2
  158. package/dist/esm/bcm-default.entry.js +2 -2
  159. package/dist/esm/bcm-drawer.entry.js +4 -4
  160. package/dist/esm/bcm-dropdown.entry.js +3 -3
  161. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  162. package/dist/esm/bcm-form-2.entry.js +2 -2
  163. package/dist/esm/bcm-input-custom.entry.js +2 -2
  164. package/dist/esm/bcm-input-dropdown.entry.js +4 -4
  165. package/dist/esm/bcm-item.entry.js +2 -2
  166. package/dist/esm/bcm-items.entry.js +2 -2
  167. package/dist/esm/bcm-label_2.entry.js +5 -5
  168. package/dist/esm/bcm-linked.entry.js +4 -4
  169. package/dist/esm/bcm-list_3.entry.js +6 -6
  170. package/dist/esm/bcm-menu.entry.js +5 -5
  171. package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
  172. package/dist/esm/bcm-modal-2-header.entry.js +4 -4
  173. package/dist/esm/bcm-modal-2.entry.js +4 -4
  174. package/dist/esm/bcm-modal.entry.js +2 -2
  175. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  176. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  177. package/dist/esm/bcm-popover.entry.js +4 -4
  178. package/dist/esm/bcm-progress.entry.js +2 -2
  179. package/dist/esm/bcm-radio-group.entry.js +4 -4
  180. package/dist/esm/bcm-radio.entry.js +4 -4
  181. package/dist/esm/bcm-range.entry.js +2 -2
  182. package/dist/esm/bcm-shortcut.entry.js +4 -4
  183. package/dist/esm/bcm-skeleton.entry.js +4 -4
  184. package/dist/esm/bcm-step.entry.js +3 -3
  185. package/dist/esm/bcm-stepper.entry.js +5 -5
  186. package/dist/esm/bcm-switch.entry.js +2 -2
  187. package/dist/esm/bcm-tab-group.entry.js +4 -4
  188. package/dist/esm/bcm-tab-item-header.entry.js +4 -4
  189. package/dist/esm/bcm-tab-item.entry.js +4 -4
  190. package/dist/esm/bcm-table.entry.js +4 -4
  191. package/dist/esm/bcm-tag.entry.js +3 -3
  192. package/dist/esm/bcm-textarea.entry.js +3 -3
  193. package/dist/esm/bcm-time-picker.entry.js +2 -2
  194. package/dist/esm/bcm-toast.entry.js +2 -2
  195. package/dist/esm/bromcom-ui.js +2 -2
  196. package/dist/esm/{generate-3dda60a9.js → generate-cfbadf65.js} +1 -1
  197. package/dist/esm/{global-dea87e71.js → global-7737d0f5.js} +1 -1
  198. package/dist/esm/{input-template-9f57846a.js → input-template-7c414fb0.js} +1 -1
  199. package/dist/esm/{json-parse-decarator-98502664.js → json-parse-decarator-cd4aa319.js} +1 -1
  200. package/dist/esm/loader.js +2 -2
  201. package/dist/esm/{number-helper-76d8d225.js → number-helper-8333a13c.js} +1 -1
  202. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  203. package/dist/esm/old-bcm-popover.entry.js +2 -2
  204. package/dist/esm/{package-7587ad35.js → package-368cba0a.js} +1 -1
  205. package/dist/esm/{stepper-states-a06a76a0.js → stepper-states-bb1c6967.js} +1 -1
  206. package/dist/esm/{tooltip-helper-2d59251b.js → tooltip-helper-1b205308.js} +3 -3
  207. package/dist/esm/{validators-a0f4d029.js → validators-85555b4a.js} +1 -1
  208. package/package.json +1 -1
  209. package/dist/bromcom-ui/p-1b6718f1.js +0 -5
  210. package/dist/bromcom-ui/p-5f9c84e9.js +0 -5
  211. package/dist/bromcom-ui/p-69ef7f73.js +0 -5
  212. package/dist/bromcom-ui/p-e5236ff7.entry.js +0 -5
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,f as s,h as e,H as a,g as r}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import{d as h}from"./p-3c7a0345.js";import{a as c}from"./p-f711588b.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";const n=class{constructor(s){t(this,s),this.tabChange=i(this,"bcm-tab-change",7),this._id=o.UID(),this.active="1",this.color="blue",this.size=c.Size.medium}get tabItems(){return this.el.querySelectorAll("bcm-tab-item")}get tabItemHeaders(){return this.el.querySelectorAll("bcm-tab-item-header")}setTabAttributes(){this.tabItems.forEach(((t,i)=>{const s=!!t.hasAttribute("active"),e=!!t.hasAttribute("disabled"),a=i+1;t.setAttribute("index",`${a}`),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.removeAttribute("active"),t.removeAttribute("disabled"),s&&(t.setAttribute("active",""),this.active=a.toString()),e&&t.setAttribute("disabled","")})),Array.from(this.tabItems).some((t=>t.hasAttribute("active")))||this.tabItems[0].setAttribute("active","")}componentWillLoad(){this.setTabAttributes()}handleTabClick(t){var i,s;t&&(this.active=t.toString()),(null===(i=this.tabItems)||void 0===i?void 0:i.length)&&this.tabItems.forEach((t=>{t.removeAttribute("active"),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.getAttribute("index")==this.active&&t.setAttribute("active","")})),(null===(s=this.tabItemHeaders)||void 0===s?void 0:s.length)&&this.tabItemHeaders.forEach((t=>{t.removeAttribute("active"),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.getAttribute("index")==this.active&&t.setAttribute("active","")})),this.tabChange.emit(this.active)}componentDidRender(){this.inkBarControl(),this.handleTabClick()}componentDidLoad(){this.inkBarControl(),this.observeTabItem()}async setActive(t){t>0&&t<=this.tabItems.length&&t!=+this.active&&this.handleTabClick(t)}async refresh(){await h(100),s(this)}inkBarControl(){var t;const i=this.el.querySelector("#ink-bar");if(i&&(null===(t=this.tabItemHeaders)||void 0===t?void 0:t.length))for(let t=0;t<this.tabItemHeaders.length;t++){const s=this.tabItemHeaders[t];s.getAttribute("index")===this.active&&(i.style.width=`${s.offsetWidth}px`,i.style.transform=`translateX(${s.offsetLeft}px)`)}}activeChanged(t,i){var s;(null===(s=this.tabItems)||void 0===s?void 0:s.length)&&(Array.from(this.tabItems).some((i=>i.getAttribute("index")==t))||(this.active="1"))}observeTabItem(){this.observer=new MutationObserver((t=>{for(const i of t)if("childList"===i.type)for(const t of i.removedNodes)"BCM-TAB-ITEM"===t.nodeName&&((null==t?void 0:t.active)&&(this.active="1"),this.tabProcess())})),this.observer.observe(this.el,{childList:!0})}tabProcess(){this.updateTabHeaders(),this.regenerateIndex(),this.refresh(),this.inkBarControl()}updateTabHeaders(){const t=Array.from(this.tabItems).map((t=>t.getAttribute("id"))),i=Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));t.length!==i.length&&i.forEach((i=>{const s=i.getAttribute("tab-id");t.includes(s)||i.remove()}))}regenerateIndex(){this.tabItems.forEach(((t,i)=>{const s=i+1;t.setAttribute("index",`${s}`);const e=this.el.querySelector(`bcm-tab-item-header[tab-id="${t.getAttribute("id")}"]`);e&&(e.setAttribute("index",`${s}`),e.style.order=`${s}`)}))}render(){const{color:t}=this,i=o.getTwColor({color:t,tones:[500]});return e(a,{role:"tablist","aria-label":"Tab Group",class:"tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans"},e("div",{class:"tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between",id:"tab-header",style:i},e("div",{id:"ink-bar",class:"tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform"})),e("slot",null))}get el(){return r(this)}static get watchers(){return{active:["activeChanged"]}}};export{n as bcm_tab_group}
5
+ import{r as t,c as i,f as s,h as e,H as a,g as r}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as o}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{d as h}from"./p-3c7a0345.js";import{a as n}from"./p-f711588b.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const c=class{constructor(s){t(this,s),this.tabChange=i(this,"bcm-tab-change",7),this._id=o.UID(),this.active="1",this.color="blue",this.size=n.Size.medium}get tabItems(){return this.el.querySelectorAll("bcm-tab-item")}get tabItemHeaders(){return this.el.querySelectorAll("bcm-tab-item-header")}setTabAttributes(){this.tabItems.forEach(((t,i)=>{const s=!!t.hasAttribute("active"),e=!!t.hasAttribute("disabled"),a=i+1;t.setAttribute("index",`${a}`),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.removeAttribute("active"),t.removeAttribute("disabled"),s&&(t.setAttribute("active",""),this.active=a.toString()),e&&t.setAttribute("disabled","")})),Array.from(this.tabItems).some((t=>t.hasAttribute("active")))||this.tabItems[0].setAttribute("active","")}componentWillLoad(){this.setTabAttributes()}handleTabClick(t){var i,s;t&&(this.active=t.toString()),(null===(i=this.tabItems)||void 0===i?void 0:i.length)&&this.tabItems.forEach((t=>{t.removeAttribute("active"),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.getAttribute("index")==this.active&&t.setAttribute("active","")})),(null===(s=this.tabItemHeaders)||void 0===s?void 0:s.length)&&this.tabItemHeaders.forEach((t=>{t.removeAttribute("active"),t.setAttribute("size",this.size),t.setAttribute("color",this.color),t.getAttribute("index")==this.active&&t.setAttribute("active","")})),this.tabChange.emit(this.active)}componentDidRender(){this.inkBarControl(),this.handleTabClick()}componentDidLoad(){this.inkBarControl(),this.observeTabItem()}async setActive(t){t>0&&t<=this.tabItems.length&&t!=+this.active&&this.handleTabClick(t)}async refresh(){await h(100),s(this)}inkBarControl(){var t;const i=this.el.querySelector("#ink-bar");if(i&&(null===(t=this.tabItemHeaders)||void 0===t?void 0:t.length))for(let t=0;t<this.tabItemHeaders.length;t++){const s=this.tabItemHeaders[t];s.getAttribute("index")===this.active&&(i.style.width=`${s.offsetWidth}px`,i.style.transform=`translateX(${s.offsetLeft}px)`)}}activeChanged(t,i){var s;(null===(s=this.tabItems)||void 0===s?void 0:s.length)&&(Array.from(this.tabItems).some((i=>i.getAttribute("index")==t))||(this.active="1"))}observeTabItem(){this.observer=new MutationObserver((t=>{for(const i of t)if("childList"===i.type)for(const t of i.removedNodes)"BCM-TAB-ITEM"===t.nodeName&&((null==t?void 0:t.active)&&(this.active="1"),this.tabProcess())})),this.observer.observe(this.el,{childList:!0})}tabProcess(){this.updateTabHeaders(),this.regenerateIndex(),this.refresh(),this.inkBarControl()}updateTabHeaders(){const t=Array.from(this.tabItems).map((t=>t.getAttribute("id"))),i=Array.from(this.el.querySelector("#tab-header").querySelectorAll("bcm-tab-item-header"));t.length!==i.length&&i.forEach((i=>{const s=i.getAttribute("tab-id");t.includes(s)||i.remove()}))}regenerateIndex(){this.tabItems.forEach(((t,i)=>{const s=i+1;t.setAttribute("index",`${s}`);const e=this.el.querySelector(`bcm-tab-item-header[tab-id="${t.getAttribute("id")}"]`);e&&(e.setAttribute("index",`${s}`),e.style.order=`${s}`)}))}render(){const{color:t}=this,i=o.getTwColor({color:t,tones:[500]});return e(a,{role:"tablist","aria-label":"Tab Group",class:"tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans"},e("div",{class:"tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between",id:"tab-header",style:i},e("div",{id:"ink-bar",class:"tw-bg-default-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform"})),e("slot",null))}get el(){return r(this)}static get watchers(){return{active:["activeChanged"]}}};export{c as bcm_tab_group}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import"./p-5ae0a59b.js";import{S as t}from"./p-f95797df.js";import{d as s}from"./p-3c7a0345.js";import{F as i}from"./p-a1b1750c.js";import{C as h}from"./p-4798d827.js";import"./p-626a65e9.js";import{G as e}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-70e11798.js";import{a as o}from"./p-f711588b.js";class r{constructor({message:r,targetId:a,placement:c="top",color:w="slate-700",trigger:n="none",size:l="medium",openDelay:m=0,closeDelay:p=0,autoHide:d=!1,emitShow:u=(()=>{}),emitHide:b=(()=>{})}){this.destroy=()=>{this.el=document.getElementById(this.id),this.el&&(this.el.remove(),this.emitHide()),this.removeListener()},this.target=()=>document.getElementById(this.targetId),this.sizeClass=()=>{switch(this.size){case o.Size.small:return"tw-text-1";case o.Size.medium:return"tw-text-2";case o.Size.large:return"tw-text-3";default:return"tw-text-2"}},this.init=()=>{const{tone:s,colorName:i}=h.parseColor(this.color,700),o=e.getTwColor({color:i,tones:{[s]:["bg"]},variable:"--bcm-tooltip"}),r=Object.assign(Object.assign({},o),o["--bcm-tooltip-bg"]&&{"--bcm-tooltip-text":h.reverseColor(o["--bcm-tooltip-bg"])});this.el=e.createElement("div",{id:`${this.targetId}-tooltip-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,role:"tooltip","aria-hidden":"true",style:h.generateStyleString(r),innerHTML:t.trim(this.message)})},this.update=()=>{this.el=document.getElementById(this.id),this.el&&(this.hide(),this.show())},this.listener=()=>{if(window.addEventListener("resize",this.calculatePosition.bind(this)),window.addEventListener("scroll",this.calculatePosition.bind(this),!0),window.addEventListener("wheel",this.calculatePosition.bind(this)),this.trigger&&this.target())switch(this.trigger){case"click":this.target().addEventListener("click",this.toggle.bind(this)),this.autoHide&&this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"hover":this.target().addEventListener("mouseenter",this.show.bind(this)),this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"focus":this.target().addEventListener("focus",this.show.bind(this),!0),this.target().addEventListener("blur",this.hide.bind(this),!0)}this.calculatePosition()},this.removeListener=()=>{window.removeEventListener("resize",this.calculatePosition.bind(this)),window.removeEventListener("scroll",this.calculatePosition.bind(this),!0),window.removeEventListener("wheel",this.calculatePosition.bind(this)),this.target()&&(this.target().removeEventListener("click",this.toggle.bind(this)),this.target().removeEventListener("mouseenter",this.show.bind(this)),this.target().removeEventListener("mouseleave",this.hide.bind(this)),this.target().removeEventListener("focus",this.show.bind(this),!0),this.target().removeEventListener("blur",this.hide.bind(this),!0))},this.calculatePosition=()=>{this.el=document.getElementById(this.id),this.el&&i({ref:this.target(),floating:this.el,placement:this.placement,offset:8,arrow:!0,arrowColor:"tw-bg-[--bcm-tooltip-bg]"})},this.show=async()=>{this.message?(this.init(),await s(this.openDelay),this.calculatePosition(),this.emitShow()):this.hide()},this.hide=async()=>{this.el=document.getElementById(this.id),this.el&&(await s(this.closeDelay),this.el&&this.el.remove(),this.emitHide())},this.toggle=()=>{this.el=document.getElementById(this.id),this.el?this.hide():this.show()},this.message=r,this.targetId=a,this.placement=c,this.color=w,this.id=a+"-tooltip-box",this.trigger=n,this.size=l,this.openDelay=m,this.closeDelay=p,this.autoHide=d,this.emitShow=u,this.emitHide=b}}export{r as T}
5
+ import"./p-5ae0a59b.js";import{S as t}from"./p-f95797df.js";import{d as s}from"./p-3c7a0345.js";import{F as i}from"./p-a1b1750c.js";import{C as h}from"./p-4798d827.js";import"./p-626a65e9.js";import{G as e}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-8be10f68.js";import{a as o}from"./p-f711588b.js";class r{constructor({message:r,targetId:a,placement:c="top",color:w="slate-700",trigger:n="none",size:l="medium",openDelay:m=0,closeDelay:p=0,autoHide:d=!1,emitShow:u=(()=>{}),emitHide:b=(()=>{})}){this.destroy=()=>{this.el=document.getElementById(this.id),this.el&&(this.el.remove(),this.emitHide()),this.removeListener()},this.target=()=>document.getElementById(this.targetId),this.sizeClass=()=>{switch(this.size){case o.Size.small:return"tw-text-1";case o.Size.medium:return"tw-text-2";case o.Size.large:return"tw-text-3";default:return"tw-text-2"}},this.init=()=>{const{tone:s,colorName:i}=h.parseColor(this.color,700),o=e.getTwColor({color:i,tones:{[s]:["bg"]},variable:"--bcm-tooltip"}),r=Object.assign(Object.assign({},o),o["--bcm-tooltip-bg"]&&{"--bcm-tooltip-text":h.reverseColor(o["--bcm-tooltip-bg"])});this.el=e.createElement("div",{id:`${this.targetId}-tooltip-box`,class:`\n tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,role:"tooltip","aria-hidden":"true",style:h.generateStyleString(r),innerHTML:t.trim(this.message)})},this.update=()=>{this.el=document.getElementById(this.id),this.el&&(this.hide(),this.show())},this.listener=()=>{if(window.addEventListener("resize",this.calculatePosition.bind(this)),window.addEventListener("scroll",this.calculatePosition.bind(this),!0),window.addEventListener("wheel",this.calculatePosition.bind(this)),this.trigger&&this.target())switch(this.trigger){case"click":this.target().addEventListener("click",this.toggle.bind(this)),this.autoHide&&this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"hover":this.target().addEventListener("mouseenter",this.show.bind(this)),this.target().addEventListener("mouseleave",this.hide.bind(this));break;case"focus":this.target().addEventListener("focus",this.show.bind(this),!0),this.target().addEventListener("blur",this.hide.bind(this),!0)}this.calculatePosition()},this.removeListener=()=>{window.removeEventListener("resize",this.calculatePosition.bind(this)),window.removeEventListener("scroll",this.calculatePosition.bind(this),!0),window.removeEventListener("wheel",this.calculatePosition.bind(this)),this.target()&&(this.target().removeEventListener("click",this.toggle.bind(this)),this.target().removeEventListener("mouseenter",this.show.bind(this)),this.target().removeEventListener("mouseleave",this.hide.bind(this)),this.target().removeEventListener("focus",this.show.bind(this),!0),this.target().removeEventListener("blur",this.hide.bind(this),!0))},this.calculatePosition=()=>{this.el=document.getElementById(this.id),this.el&&i({ref:this.target(),floating:this.el,placement:this.placement,offset:8,arrow:!0,arrowColor:"tw-bg-[--bcm-tooltip-bg]"})},this.show=async()=>{this.message?(this.init(),await s(this.openDelay),this.calculatePosition(),this.emitShow()):this.hide()},this.hide=async()=>{this.el=document.getElementById(this.id),this.el&&(await s(this.closeDelay),this.el&&this.el.remove(),this.emitHide())},this.toggle=()=>{this.el=document.getElementById(this.id),this.el?this.hide():this.show()},this.message=r,this.targetId=a,this.placement=c,this.color=w,this.id=a+"-tooltip-box",this.trigger=n,this.size=l,this.openDelay=m,this.closeDelay=p,this.autoHide=d,this.emitShow=u,this.emitHide=b}}export{r as T}
@@ -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,g as s}from"./p-e037ee2b.js";import{G as c,s as d}from"./p-5f9c84e9.js";import{S as l}from"./p-f95797df.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-f711588b.js";const n=class{constructor(i){e(this,i),this.bcmItems=t(this,"bcm-items",7),this._id=c.UID()}connectedCallback(){if(this.el.children&&this.el.children.length>0){let e=this.nestedItems(this.el);this.bcmItems.emit(e),this.el.remove()}}mapItems(e){var t;const i=null===(t=null==e?void 0:e.innerHTML)||void 0===t?void 0:t.replace(/<bcm-item>.*<\/bcm-item>/g,"").replace(/<bcm-item .*>.*<\/bcm-item>/g,"").replace(/<!--(.|\s)*?-->/g,"").trim(),s=t=>l.elementBooleanCheck(e.getAttribute(t));return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e.getAttribute("id")||c.UID(),text:e.getAttribute("text")||i},e.innerHTML.trim()&&{isHtmlContent:e.textContent.length>0?e.innerHTML.trim():null}),s("disabled")&&{disabled:s("disabled")}),s("selected")&&{selected:s("selected")}),s("hidden")&&{hidden:s("hidden")}),s("checked")&&{checked:s("checked")}),s("readonly")&&{readonly:s("readonly")}),s("active")&&{active:s("active")}),s("icon")&&{icon:e.getAttribute("icon")}),s("link")&&{link:e.getAttribute("link")})}nestedItems(e){return d((()=>Array.from(null==e?void 0:e.children).map((e=>{var t;return Object.assign(Object.assign({},"bcm-item"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())&&this.mapItems(e)),{items:this.nestedItems(e)})}))),[])}render(){return i("slot",null)}get el(){return s(this)}};export{n as bcm_items}
5
+ import{r as e,c as t,h as i,g as s}from"./p-e037ee2b.js";import{G as c,s as d}from"./p-b8689c5f.js";import{S as l}from"./p-f95797df.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-f711588b.js";const n=class{constructor(i){e(this,i),this.bcmItems=t(this,"bcm-items",7),this._id=c.UID()}connectedCallback(){if(this.el.children&&this.el.children.length>0){let e=this.nestedItems(this.el);this.bcmItems.emit(e),this.el.remove()}}mapItems(e){var t;const i=null===(t=null==e?void 0:e.innerHTML)||void 0===t?void 0:t.replace(/<bcm-item>.*<\/bcm-item>/g,"").replace(/<bcm-item .*>.*<\/bcm-item>/g,"").replace(/<!--(.|\s)*?-->/g,"").trim(),s=t=>l.elementBooleanCheck(e.getAttribute(t));return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e.getAttribute("id")||c.UID(),text:e.getAttribute("text")||i},e.innerHTML.trim()&&{isHtmlContent:e.textContent.length>0?e.innerHTML.trim():null}),s("disabled")&&{disabled:s("disabled")}),s("selected")&&{selected:s("selected")}),s("hidden")&&{hidden:s("hidden")}),s("checked")&&{checked:s("checked")}),s("readonly")&&{readonly:s("readonly")}),s("active")&&{active:s("active")}),s("icon")&&{icon:e.getAttribute("icon")}),s("link")&&{link:e.getAttribute("link")})}nestedItems(e){return d((()=>Array.from(null==e?void 0:e.children).map((e=>{var t;return Object.assign(Object.assign({},"bcm-item"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())&&this.mapItems(e)),{items:this.nestedItems(e)})}))),[])}render(){return i("slot",null)}get el(){return s(this)}};export{n as bcm_items}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as i,h as t,H as e,g as s,c as p}from"./p-e037ee2b.js";import{c as h}from"./p-bed627ab.js";import{G as a}from"./p-5f9c84e9.js";import{B as o,a as l}from"./p-f711588b.js";import{L as n}from"./p-5ee8a018.js";import"./p-4798d827.js";import"./p-626a65e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import{T as r}from"./p-2511c6c5.js";import"./p-5ae0a59b.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";import"./p-034bbcdd.js";import"./p-7c623da0.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-a1b1750c.js";const m=class{constructor(t){i(this,t),this._id=a.UID(),this.required=!1,this.value=void 0,this.size="medium",this.form=void 0,this.htmlFor=void 0,this.hidden=!1,this.type=o.Status.default,this.tooltip=void 0}render(){const{required:i,value:s,size:p,form:a,htmlFor:o,hidden:l,type:r,tooltip:m}=this,c=h("bcm-label",{hidden:l}),x=t(n,{form:a,htmlFor:o,value:s,size:p,type:r,required:i});return t(e,{class:c},x,m&&t("bcm-tooltip",{message:m,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"far fa-question-circle"})))}get el(){return s(this)}};m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}';const c=class{constructor(t){i(this,t),this.bcmTooltipShow=p(this,"bcmTooltipShow",7),this.bcmTooltipHide=p(this,"bcmTooltipHide",7),this._id=a.UID(),this.message="",this.placement=l.Placement.top,this.trigger=l.TriggerType.click,this.open=!1,this.color="slate",this.size=l.Size.medium,this.openDelay=0,this.closeDelay=0,this.autoHide=!1,this.targetId=void 0,this.tooltip=void 0}emitShow(){this.bcmTooltipShow.emit()}emitHide(){this.bcmTooltipHide.emit()}connectedCallback(){this.tooltip=new r({targetId:this.targetId||this._id,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger,size:this.size,openDelay:this.openDelay,closeDelay:this.closeDelay,autoHide:this.autoHide,emitShow:()=>this.emitShow(),emitHide:()=>this.emitHide()})}componentDidLoad(){this.tooltip.listener()}componentDidRender(){this.tooltip.message=this.message,this.tooltip.placement=this.placement,this.tooltip.color=this.color,this.tooltip.trigger=this.trigger,this.tooltip.size=this.size,this.tooltip.openDelay=this.openDelay,this.tooltip.closeDelay=this.closeDelay,this.tooltip.autoHide=this.autoHide,this.tooltip.update()}disconnectedCallback(){this.tooltip.destroy()}async show(){this.tooltip.show()}async hide(){this.tooltip.hide()}async toggle(){this.tooltip.toggle()}render(){return t(e,{class:"tw-inline-flex tw-h-fit tw-w-fit",role:"tooltip","aria-hidden":"true"},t("slot",null))}get el(){return s(this)}};export{m as bcm_label,c as bcm_tooltip}
5
+ import{r as i,h as t,H as e,g as s,c as p}from"./p-e037ee2b.js";import{c as h}from"./p-bed627ab.js";import{G as a}from"./p-b8689c5f.js";import{B as o,a as l}from"./p-f711588b.js";import{L as n}from"./p-5ee8a018.js";import"./p-4798d827.js";import"./p-626a65e9.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import{T as r}from"./p-e2d6bd93.js";import"./p-5ae0a59b.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";import"./p-034bbcdd.js";import"./p-7c623da0.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-a1b1750c.js";const m=class{constructor(t){i(this,t),this._id=a.UID(),this.required=!1,this.value=void 0,this.size="medium",this.form=void 0,this.htmlFor=void 0,this.hidden=!1,this.type=o.Status.default,this.tooltip=void 0}render(){const{required:i,value:s,size:p,form:a,htmlFor:o,hidden:l,type:r,tooltip:m}=this,c=h("bcm-label",{hidden:l}),x=t(n,{form:a,htmlFor:o,value:s,size:p,type:r,required:i});return t(e,{class:c},x,m&&t("bcm-tooltip",{message:m,placement:"top",trigger:"hover"},t("bcm-icon",{icon:"far fa-question-circle"})))}get el(){return s(this)}};m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}';const c=class{constructor(t){i(this,t),this.bcmTooltipShow=p(this,"bcmTooltipShow",7),this.bcmTooltipHide=p(this,"bcmTooltipHide",7),this._id=a.UID(),this.message="",this.placement=l.Placement.top,this.trigger=l.TriggerType.click,this.open=!1,this.color="slate",this.size=l.Size.medium,this.openDelay=0,this.closeDelay=0,this.autoHide=!1,this.targetId=void 0,this.tooltip=void 0}emitShow(){this.bcmTooltipShow.emit()}emitHide(){this.bcmTooltipHide.emit()}connectedCallback(){this.tooltip=new r({targetId:this.targetId||this._id,message:this.message,placement:this.placement,color:this.color,trigger:this.trigger,size:this.size,openDelay:this.openDelay,closeDelay:this.closeDelay,autoHide:this.autoHide,emitShow:()=>this.emitShow(),emitHide:()=>this.emitHide()})}componentDidLoad(){this.tooltip.listener()}componentDidRender(){this.tooltip.message=this.message,this.tooltip.placement=this.placement,this.tooltip.color=this.color,this.tooltip.trigger=this.trigger,this.tooltip.size=this.size,this.tooltip.openDelay=this.openDelay,this.tooltip.closeDelay=this.closeDelay,this.tooltip.autoHide=this.autoHide,this.tooltip.update()}disconnectedCallback(){this.tooltip.destroy()}async show(){this.tooltip.show()}async hide(){this.tooltip.hide()}async toggle(){this.tooltip.toggle()}render(){return t(e,{class:"tw-inline-flex tw-h-fit tw-w-fit",role:"tooltip","aria-hidden":"true"},t("slot",null))}get el(){return s(this)}};export{m as bcm_label,c as bcm_tooltip}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as i,f as e,h as o,H as n,g as l,F as s}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import{a as r}from"./p-f711588b.js";import{C as d}from"./p-32df2233.js";import{c}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),u=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=a.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=r.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=r.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,l;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(l=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===l?void 0:l.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=a.findEventPath(t,this.el),n=a.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,l,s,a;const r=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==r?void 0:r.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===r.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(l=this.menuContent)||void 0===l?void 0:l.show()),this._input.style.color="#ff0000")}else null===(s=this.commentContent)||void 0===s||s.hide(),null===(a=this.menuContent)||void 0===a||a.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,l,a;const{size:r,label:p,placeholder:u,required:m,disabled:w,readonly:x,_id:v,invalid:g,hideComment:f,noCaption:b,customErrorMessage:z,caption:y,captionType:j,captionError:k,hideCaption:_}=this,{base:C,inputArea:I,input:E,button:L,menu:O,menuItem:$,commentArea:A,disabledItem:D,content:M,selectedItem:B}=h({size:r,invalid:g,hideComment:f,disabled:w});return o(n,{class:C()},p&&o("bcm-label",{htmlFor:v+"-dropdown-input",size:r,value:p,required:m}),o("div",{class:M()},o("div",{class:I()},o("input",{id:v+"-dropdown-input",class:E(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:u,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:x,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${v}`,class:L(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${v}`,"target-id":`i-dropdown-button-${v}`,placement:"bottom-start"},o((()=>{var t;return o(s,null,this.isOpenMenu?o("div",{class:O()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(s,null,o("li",(null==t?void 0:t.disabled)?{class:D()}:{class:(null==t?void 0:t.selected)?B():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${v}`,"target-id":v,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(s,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(s,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,"no-caption":!0,autocomplete:!1,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:c((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(l=this.value)||void 0===l?void 0:l.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(a=this.value)||void 0===a?void 0:a.key})},o("i",{class:"fas fa-comment"}))),!_&&o(d,{noCaption:b,captionType:j,captionError:k,caption:y,customErrorMessage:z}))}get el(){return l(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};u.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{u as bcm_input_dropdown}
5
+ import{r as t,c as i,f as e,h as o,H as n,g as l,F as s}from"./p-e037ee2b.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{a as r}from"./p-f711588b.js";import{C as d}from"./p-32df2233.js";import{c}from"./p-bed627ab.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as p}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const h=p({slots:{base:"tw-font-sans tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-2",content:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-3",inputArea:"tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-1 tw-box-content tw-border tw-border-solid tw-max-w-[100px] tw-uppercase tw-font-medium tw-text-center tw-border-gray-300 tw-rounded",input:"tw-flex-1 tw-text-inherit tw-uppercase tw-font-semibold tw-text-center tw-border-none tw-bg-transparent tw-outline-none tw-w-full",button:["input-dropdown-button tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-rounded tw-outline-none tw-bg-slate-100","tw-border tw-border-solid tw-border-slate-300 tw-font-medium tw-text-slate-600","hover:tw-border-slate-400 hover:tw-bg-slate-200","tw-min-w-[32px]","tw-cursor-pointer","disabled:tw-cursor-not-allowed disabled:tw-text-slate-400 disabled:tw-pointer-events-none","readonly:tw-text-slate-700 readonly:tw-cursor-text"],menu:"tw-mt-1 tw-flex tw-flex-col tw-items-start tw-justify-center tw-gap-2 tw-overflow-auto tw-bg-white tw-p-3 tw-font-sans tw-text-3 tw-text-slate-700",menuItem:"tw-flex tw-w-full tw-cursor-pointer tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 hover:tw-bg-blue-100",selectedItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-text-slate-700 tw-bg-primary-200",disabledItem:"tw-flex tw-w-full tw-flex-row tw-items-start tw-gap-1 tw-rounded tw-px-3 tw-py-1 tw-cursor-not-allowed tw-text-slate-400 tw-bg-slate-100 hover:tw-bg-slate-100 tw-list-none",commentArea:"tw-flex tw-h-fit tw-w-full tw-min-w-[288px] tw-flex-col tw-items-start tw-gap-3 tw-rounded tw-p-4 tw-shadow-2"},variants:{size:{small:{button:"tw-h-[18px] tw-text-1 tw-leading-none"},medium:{button:"tw-h-[24px] tw-text-2",inputArea:"tw-p-0.5",input:"tw-text-4"},large:{button:"tw-h-[30px] tw-text-2",inputArea:"tw-p-1",input:"tw-text-6"}},invalid:{true:{inputArea:"tw-border-red-600 tw-bg-red-50",input:"tw-text-red-500"}},disabled:{true:{base:"tw-opacity-50 tw-cursor-not-allowed",input:"tw-cursor-not-allowed"}},hideComment:{true:{base:"tw-min-w-[98px]"},false:{base:"tw-min-w-[128px] "}},label:{true:""}},defaultVariants:{size:"medium",invalid:!1,hideComment:!1,disabled:!1}}),u=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.onChangeDropdown=i(this,"bcm-input-dropdown-change",7),this.handleKeyPress=t=>{var i,e;(null===(e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value)||void 0===e?void 0:e.length)>=+this.maxCharacterLimit&&t.preventDefault()},this._id=a.UID(),this.value=void 0,this.defaultValue={},this.lateKeys="L",this.maxCharacterLimit=1,this.size=r.Size.medium,this.label=void 0,this.placeholder=void 0,this.name=void 0,this.fullWidth=!1,this.hideComment=!1,this.hideCaption=!0,this.disabled=!1,this.required=!1,this.readonly=!1,this.data=[{key:"/",value:"Present",color:"#00b050"},{key:"B",value:"Educated off site (NOT dual registration)",color:"#ffc000"},{key:"C",value:"Other authorised circumstance",color:"#ffc000"},{key:"D",value:"Dual registration",color:"#0070c0"},{key:"E",value:"Excluded",color:"#ff0000"},{key:"F",value:"Free Study",color:"#ffc000"},{key:"I",value:"Illness",color:"#ff0000"},{key:"J",value:"Interview",color:"#ffc000"},{key:"L",value:"Late before reg. closed",color:"#ffc000"}],this.caption=void 0,this.noCaption=!1,this.captionType=r.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.captionCache=void 0,this.captionTypeCache=void 0,this.isOpenMenu=!1,this.invalid=!1}get overlayContainer(){return document.getElementById("bcm-overlay-container")}get menuContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-menu-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-menu-${this._id}`)}get keys(){return this.lateKeys.toLocaleLowerCase().split(",")}get isLate(){var t,i,e,o,n,l;return this.keys.includes(null===(i=null===(t=this.value)||void 0===t?void 0:t.key)||void 0===i?void 0:i.toLocaleLowerCase())||(null===(o=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===o?void 0:o.isLate)||(null===(l=null===(n=this.data)||void 0===n?void 0:n.find((t=>{var i,e,o;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===(null===(o=null===(e=this.value)||void 0===e?void 0:e.key)||void 0===o?void 0:o.toLowerCase())})))||void 0===l?void 0:l.lateMin)>0}componentWillLoad(){var t,i;this.captionCache=this.caption,this.captionTypeCache=this.captionType,(null===(t=Object.keys(this.defaultValue))||void 0===t?void 0:t.length)>0?this.watchDefaultValueHandler(this.defaultValue):this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>t.selected))}get commentContent(){var t,i;return null!==(i=null===(t=this.overlayContainer)||void 0===t?void 0:t.querySelector(`#i-dropdown-comment-${this._id}`))&&void 0!==i?i:this.el.querySelector(`#i-dropdown-comment-${this._id}`)}clickListener(t){var i,e;const o=a.findEventPath(t,this.el),n=a.findEventPathWithNodeName(t,"BCM-LINKED");o||n||this.keys.includes(null===(i=this.value)||void 0===i?void 0:i.key)||null===(e=this.commentContent)||void 0===e||e.hide()}watchDefaultValueHandler(t){var i,o;t&&(this.value=null===(i=this.data)||void 0===i?void 0:i.find((i=>{var e,o;return(null===(e=null==i?void 0:i.key)||void 0===e?void 0:e.toLowerCase())===(null===(o=t.key)||void 0===o?void 0:o.toLowerCase())})),this.data=this.data.map((i=>(i.key===(null==t?void 0:t.key)?(i=t).selected=!0:i.selected=!1,i))),this.value=null===(o=this.data)||void 0===o?void 0:o.find((t=>null==t?void 0:t.selected)),e(this.el))}async set(t){this.data="string"==typeof t?JSON.parse(t):t}async get(){return this.value}async setClear(){return this.value=null,Promise.resolve()}async resetCaption(){return this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,this.invalid=!1,Promise.resolve()}onSelectItem(t){var i;this.invalid=!1,this.data=this.data.map((i=>Object.assign(Object.assign({},i),{selected:i.key===t.key}))),this.value=null===(i=this.data)||void 0===i?void 0:i.find((t=>null==t?void 0:t.selected)),this.onChangeDropdown.emit(this.value),this.change.emit()}async handleInput(t){var i,e,o,n,l,s,a;const r=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.value;if(this.isOpenMenu=!0,(null==r?void 0:r.length)>=+this.maxCharacterLimit){const i=null===(e=this.data)||void 0===e?void 0:e.find((t=>{var i;return(null===(i=null==t?void 0:t.key)||void 0===i?void 0:i.toLowerCase())===r.toLowerCase()}));i?(await(null===(o=this.menuContent)||void 0===o?void 0:o.hide()),(null==i?void 0:i.hideComment)||null===(n=this.commentContent)||void 0===n||n.show(),this.onSelectItem(i)):(this.invalid=!0,this.value=t.target.value,await(null===(l=this.menuContent)||void 0===l?void 0:l.show()),this._input.style.color="#ff0000")}else null===(s=this.commentContent)||void 0===s||s.hide(),null===(a=this.menuContent)||void 0===a||a.hide(),this.value=null,this._input.style.color="#000000",this.invalid=!1;this.change.emit()}onClickSave(){var t;null===(t=this.commentContent)||void 0===t||t.hide(),this.data=this.data.map((t=>Object.assign(Object.assign({},t),t.key===this.value.key&&{lateMin:this.value.lateMin,comment:this.value.comment}))),e(this.el),this.onChangeDropdown.emit(this.value),this.change.emit()}async onClick(t){var i,e;(null==t?void 0:t.hideComment)||null===(i=this.commentContent)||void 0===i||i.show(),await(null===(e=this.menuContent)||void 0===e?void 0:e.hide()),this.onSelectItem(t)}render(){var t,i,e,l,a;const{size:r,label:p,placeholder:u,required:m,disabled:w,readonly:x,_id:v,invalid:g,hideComment:f,noCaption:b,customErrorMessage:z,caption:y,captionType:j,captionError:k,hideCaption:_}=this,{base:C,inputArea:I,input:E,button:L,menu:O,menuItem:$,commentArea:A,disabledItem:D,content:M,selectedItem:B}=h({size:r,invalid:g,hideComment:f,disabled:w});return o(n,{class:C()},p&&o("bcm-label",{htmlFor:v+"-dropdown-input",size:r,value:p,required:m}),o("div",{class:M()},o("div",{class:I()},o("input",{id:v+"-dropdown-input",class:E(),style:{color:null===(t=this.value)||void 0===t?void 0:t.color},type:"text",tabIndex:-1,placeholder:u,value:null===(i=this.value)||void 0===i?void 0:i.key,disabled:w,required:m,autoComplete:"off",readOnly:x,onKeyPress:t=>this.handleKeyPress(t),onInput:t=>this.handleInput(t),ref:t=>this._input=t}),o("button",{disabled:w,id:`i-dropdown-button-${v}`,class:L(),onClick:()=>this.isOpenMenu=!0},o("i",{class:"fas fa-chevron-down"})),o("bcm-linked",{"onBcm-open":({detail:t})=>{var i;return t&&(null===(i=this.commentContent)||void 0===i?void 0:i.hide())},class:"tw-mt-1",id:`i-dropdown-menu-${v}`,"target-id":`i-dropdown-button-${v}`,placement:"bottom-start"},o((()=>{var t;return o(s,null,this.isOpenMenu?o("div",{class:O()},this.invalid&&o("li",{class:$()+" tw-bg-red-100 hover:tw-bg-red-100"},o("span",{class:"tw-text-red-900"},o("i",{class:"far fa-exclamation-circle"})),o("span",null,"There is not mark you entered, please use")),null===(t=this.data)||void 0===t?void 0:t.map((t=>o(s,null,o("li",(null==t?void 0:t.disabled)?{class:D()}:{class:(null==t?void 0:t.selected)?B():$(),onClick:()=>this.onClick(t)},o("span",null,t.key)," - ",o("span",null,t.value)))))):null)}),null)),o("bcm-linked",{id:`i-dropdown-comment-${v}`,"target-id":v,trigger:"custom",placement:"left"},o((()=>{var t,i,e;return o(s,null,this.isOpenMenu?o("div",{class:A()},this.isLate?o(s,null,o("bcm-input",{label:"Minus Late",required:!0,id:this._id+"-input-dropdown-late-content-input",type:"number","full-width":!0,"no-caption":!0,autocomplete:!1,value:null===(t=this.value)||void 0===t?void 0:t.lateMin,placeholder:"Enter Minus Late","onBcm-change":({detail:t})=>this.value.lateMin=+t},o("i",{slot:"prefix",class:"far fa-clock"}))):null,o("bcm-textarea",{"full-width":!0,value:null!==(e=null===(i=this.value)||void 0===i?void 0:i.comment)&&void 0!==e?e:"","onBcm-change":({detail:t})=>this.value.comment=t,label:"Description","no-caption":!0,rows:4}),o("footer",{class:"tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-end tw-gap-2"},o("bcm-button",{icon:"fas fa-times",kind:"ghost","icon-position":"prefix",onClick:()=>{var t;return null===(t=this.commentContent)||void 0===t?void 0:t.hide()}},"Close"),o("bcm-button",{icon:"fas fa-save","icon-position":"prefix",onClick:()=>this.onClickSave()},"Save"))):null)}),null))),this.hideComment?null:o("span",{onClick:()=>{var t,i;(null===(t=this.value)||void 0===t?void 0:t.key)&&(this.isOpenMenu=!0,null===(i=this.commentContent)||void 0===i||i.show())},class:c((null===(e=this.value)||void 0===e?void 0:e.comment)||(null===(l=this.value)||void 0===l?void 0:l.lateMin)>0?"tw-text-slate-600":"tw-text-slate-400",{"tw-cursor-pointer":null===(a=this.value)||void 0===a?void 0:a.key})},o("i",{class:"fas fa-comment"}))),!_&&o(d,{noCaption:b,captionType:j,captionError:k,caption:y,customErrorMessage:z}))}get el(){return l(this)}static get watchers(){return{defaultValue:["watchDefaultValueHandler"]}}};u.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}:host{display:flex;flex-direction:column;width:100%;position:relative}.input-dropdown-button i{transition:transform 0.2s ease-in-out}.input-dropdown-button[linked-is-open]>i{transform:rotate(-180deg);transition:transform 0.2s ease-in-out}';export{u as bcm_input_dropdown}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,h as e,H as s,g as a}from"./p-e037ee2b.js";import{C as i}from"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-5f9c84e9.js";import"./p-a2952973.js";import"./p-f95797df.js";import"./p-70e11798.js";import"./p-5ae0a59b.js";import{a as l}from"./p-f711588b.js";import{c as o}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-9cee10ca.js";const w=o({slots:{base:"bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",image:"tw-w-full tw-h-full",badge:""},variants:{size:{small:"bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",medium:"bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",large:"bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10"},shape:{ellipse:{base:"bcm-avatar__shape-ellipse tw-rounded-full",image:"tw-rounded-full",badge:"tw-top-0 tw-right-0"},square:{base:"bcm-avatar__shape-square tw-rounded",image:"tw-rounded",badge:"tw--top-0.5 tw--right-0.5"}},status:{true:{base:"bcm-avatar__status tw-relative",badge:"tw-absolute"}}},defaultVariants:{size:"medium",shape:"ellipse",status:!1}}),b=class{constructor(e){t(this,e),this._id=r.UID(),this.image=void 0,this.name=void 0,this.alt=void 0,this.shape=l.Shape.ellipse,this.size=l.Size.medium,this.color=void 0,this.icon="fas fa-user",this.status=void 0,this.blink=!1,this.isFallback=!1}getFirstLetters(t){return t.split(" ").map((t=>t.charAt(0).toUpperCase())).join("").substring(0,2)}renderDefaultIcon(){return e("bcm-icon",{icon:this.icon})}render(){const{shape:t,size:a,status:i,color:o,blink:b}=this,{base:m,badge:n,image:c}=w({size:a,shape:t,status:!!i}),d=r.getTwColor({color:o,tones:{200:["bg"],700:["text"]},variable:"--bcm-avatar"}),h=Object.keys(l.BaseSize).includes(a)?{}:{width:`${a}px`,height:`${a}px`,fontSize:+a/3+"px"};return e(s,{role:"img","aria-label":this.alt||this.name||"Avatar",class:m(),style:Object.assign(Object.assign({},d),h)},e((()=>this.isFallback?this.name?this.getFirstLetters(this.name):this.renderDefaultIcon():this.image?e("img",{class:c(),onError:()=>this.isFallback=!0,src:this.image,alt:this.alt}):this.name?this.getFirstLetters(this.name):this.renderDefaultIcon()),null),i&&e("bcm-badge",{class:n(),status:i,blink:b,"aria-hidden":"true"}),e("slot",null))}get el(){return a(this)}},m=o({slots:{host:"bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",base:["bcm-badge__dot","tw-flex tw-items-center tw-justify-center tw-flex-row","tw-rounded-full tw-text-center","tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]","tw-whitespace-nowrap"],dotText:"empty:tw-hidden"},variants:{size:{small:{host:"tw-text-2 tw-gap-1",base:"bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",dotText:"tw-px-1.5 tw-min-w-4"},medium:{host:"tw-text-3 tw-gap-1.5",base:"bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",dotText:"tw-px-1.5 tw-min-w-5"},large:{host:"tw-text-4 tw-gap-2",base:"bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",dotText:"tw-px-2 tw-min-w-6"}},blink:{true:{base:["bcm-badge__dot-blink tw-relative","after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]","after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full","after:tw-animate-blink after:tw-pointer-events-none"]}}},defaultVariants:{size:"medium",blink:!1}}),n=class{constructor(e){t(this,e),this.statusColors={info:"blue",error:"red",warning:"amber",success:"emerald"},this._id=r.UID(),this.blink=!1,this.value=void 0,this.color=void 0,this.size=l.Size.medium,this.status=void 0}render(){const{blink:t,value:a,size:l,color:o,status:w}=this,b=this.statusColors[w]||o,{tone:n,colorName:c}=i.parseColor(b),d=r.getTwColor({color:c,tones:{[n]:["bg"]},variable:"--bcm-badge"}),h=Object.assign(Object.assign({},d),d["--bcm-badge-bg"]&&{"--bcm-badge-text":i.reverseColor(d["--bcm-badge-bg"])}),{base:p,dotText:u,host:g}=m({size:l,blink:t});return e(s,{class:g(),role:"status","aria-live":"polite"},e("div",{class:p(),style:h},e("span",{class:u(),role:"presentation","aria-hidden":"true"},a),e("span",{class:"tw-sr-only"},a)),e("slot",null))}get el(){return a(this)}};export{b as bcm_avatar,n as bcm_badge}
5
+ import{r as t,h as e,H as s,g as a}from"./p-e037ee2b.js";import{C as i}from"./p-4798d827.js";import"./p-626a65e9.js";import{G as r}from"./p-b8689c5f.js";import"./p-f77e16e8.js";import"./p-f95797df.js";import"./p-8be10f68.js";import"./p-5ae0a59b.js";import{a as l}from"./p-f711588b.js";import{c as o}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-3c7a0345.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";import"./p-8a1e77c7.js";const b=o({slots:{base:"bcm-avatar bcm-ui-element bcm-ui-content-display tw-uppercase tw-inline-flex tw-items-center tw-justify-center tw-bg-[--bcm-avatar-bg] tw-text-[--bcm-avatar-text]",image:"tw-w-full tw-h-full",badge:""},variants:{size:{small:"bcm-avatar__size-small tw-text-1 tw-w-6 tw-h-6",medium:"bcm-avatar__size-medium tw-text-2 tw-w-8 tw-h-8",large:"bcm-avatar__size-large tw-text-3 tw-w-10 tw-h-10"},shape:{ellipse:{base:"bcm-avatar__shape-ellipse tw-rounded-full",image:"tw-rounded-full",badge:"tw-top-0 tw-right-0"},square:{base:"bcm-avatar__shape-square tw-rounded",image:"tw-rounded",badge:"tw--top-0.5 tw--right-0.5"}},status:{true:{base:"bcm-avatar__status tw-relative",badge:"tw-absolute"}}},defaultVariants:{size:"medium",shape:"ellipse",status:!1}}),w=class{constructor(e){t(this,e),this._id=r.UID(),this.image=void 0,this.name=void 0,this.alt=void 0,this.shape=l.Shape.ellipse,this.size=l.Size.medium,this.color=void 0,this.icon="fas fa-user",this.status=void 0,this.blink=!1,this.isFallback=!1}getFirstLetters(t){return t.split(" ").map((t=>t.charAt(0).toUpperCase())).join("").substring(0,2)}renderDefaultIcon(){return e("bcm-icon",{icon:this.icon})}render(){const{shape:t,size:a,status:i,color:o,blink:w}=this,{base:m,badge:n,image:c}=b({size:a,shape:t,status:!!i}),d=r.getTwColor({color:o,tones:{200:["bg"],700:["text"]},variable:"--bcm-avatar"}),h=Object.keys(l.BaseSize).includes(a)?{}:{width:`${a}px`,height:`${a}px`,fontSize:+a/3+"px"};return e(s,{role:"img","aria-label":this.alt||this.name||"Avatar",class:m(),style:Object.assign(Object.assign({},d),h)},e((()=>this.isFallback?this.name?this.getFirstLetters(this.name):this.renderDefaultIcon():this.image?e("img",{class:c(),onError:()=>this.isFallback=!0,src:this.image,alt:this.alt}):this.name?this.getFirstLetters(this.name):this.renderDefaultIcon()),null),i&&e("bcm-badge",{class:n(),status:i,blink:w,"aria-hidden":"true"}),e("slot",null))}get el(){return a(this)}},m=o({slots:{host:"bcm-badge bcm-ui-element bcm-ui-content-display tw-inline-flex tw-items-center tw-justify-center tw-font-normal ",base:["bcm-badge__dot","tw-flex tw-items-center tw-justify-center tw-flex-row","tw-rounded-full tw-text-center","tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]","tw-whitespace-nowrap"],dotText:"empty:tw-hidden"},variants:{size:{small:{host:"tw-text-2 tw-gap-1",base:"bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",dotText:"tw-px-1.5 tw-min-w-4"},medium:{host:"tw-text-3 tw-gap-1.5",base:"bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",dotText:"tw-px-1.5 tw-min-w-5"},large:{host:"tw-text-4 tw-gap-2",base:"bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",dotText:"tw-px-2 tw-min-w-6"}},blink:{true:{base:["bcm-badge__dot-blink tw-relative","after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]","after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full","after:tw-animate-blink after:tw-pointer-events-none"]}}},defaultVariants:{size:"medium",blink:!1}}),n=class{constructor(e){t(this,e),this.statusColors={info:"blue",error:"red",warning:"amber",success:"emerald"},this._id=r.UID(),this.blink=!1,this.value=void 0,this.color=void 0,this.size=l.Size.medium,this.status=void 0}render(){const{blink:t,value:a,size:l,color:o,status:b}=this,w=this.statusColors[b]||o,{tone:n,colorName:c}=i.parseColor(w),d=r.getTwColor({color:c,tones:{[n]:["bg"]},variable:"--bcm-badge"}),h=Object.assign(Object.assign({},d),d["--bcm-badge-bg"]&&{"--bcm-badge-text":i.reverseColor(d["--bcm-badge-bg"])}),{base:p,dotText:u,host:f}=m({size:l,blink:t});return e(s,{class:f(),role:"status","aria-live":"polite"},e("div",{class:p(),style:h},e("span",{class:u(),role:"presentation","aria-hidden":"true"},a),e("span",{class:"tw-sr-only"},a)),e("slot",null))}get el(){return a(this)}};export{w as bcm_avatar,n as bcm_badge}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{s}from"./p-5f9c84e9.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
5
+ import{s}from"./p-b8689c5f.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
@@ -7,8 +7,8 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-9fd41788.js');
11
- require('./package-03de8a92.js');
10
+ const generate = require('./generate-0eddc1c1.js');
11
+ require('./package-4e6f5967.js');
12
12
  require('./colors-078851ec.js');
13
13
  require('./_commonjsHelpers-ed84c3ca.js');
14
14
 
@@ -7,11 +7,11 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-c591ecec.js');
10
- const generate = require('./generate-9fd41788.js');
10
+ const generate = require('./generate-0eddc1c1.js');
11
11
  const index$2 = require('./index-95ae50d0.js');
12
12
  const index = require('./index-d321de96.js');
13
13
  const stringHelper = require('./string-helper-fda7cbba.js');
14
- require('./package-03de8a92.js');
14
+ require('./package-4e6f5967.js');
15
15
  require('./colors-078851ec.js');
16
16
  require('./_commonjsHelpers-ed84c3ca.js');
17
17
  require('./bcm-7f703055.js');
@@ -7,8 +7,8 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-9fd41788.js');
11
- require('./package-03de8a92.js');
10
+ const generate = require('./generate-0eddc1c1.js');
11
+ require('./package-4e6f5967.js');
12
12
  require('./colors-078851ec.js');
13
13
  require('./_commonjsHelpers-ed84c3ca.js');
14
14
 
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index$1 = require('./index-c591ecec.js');
10
10
  const colorHelper = require('./color-helper-c3a819ea.js');
11
11
  require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-9fd41788.js');
13
- require('./number-helper-19148ce9.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
+ require('./number-helper-34f232b3.js');
14
14
  require('./string-helper-fda7cbba.js');
15
- require('./validators-f3eace30.js');
15
+ require('./validators-72cc68b6.js');
16
16
  require('./element-dragger-a8562f82.js');
17
17
  const bcm = require('./bcm-7f703055.js');
18
18
  const index = require('./index-5279dea2.js');
@@ -20,7 +20,7 @@ require('./colors-56282b00.js');
20
20
  require('./utils-fc077139.js');
21
21
  require('./colors-078851ec.js');
22
22
  require('./_commonjsHelpers-ed84c3ca.js');
23
- require('./package-03de8a92.js');
23
+ require('./package-4e6f5967.js');
24
24
 
25
25
  const avatarStyle = index.ce({
26
26
  slots: {
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
- const generate = require('./generate-9fd41788.js');
11
+ const generate = require('./generate-0eddc1c1.js');
12
12
  require('./_commonjsHelpers-ed84c3ca.js');
13
- require('./package-03de8a92.js');
13
+ require('./package-4e6f5967.js');
14
14
  require('./colors-078851ec.js');
15
15
 
16
16
  const breadcrumbCss = "@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-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;color:var(--bcm-color-grey-7)}.bcm-breadcrumb__item{display:flex;align-items:center}.bcm-breadcrumb .seperator{cursor:default;display:inline-flex;align-items:center;justify-content:center;margin-left:8px;margin-right:8px;color:var(--bcm-color-grey-7)}.bcm-breadcrumb bcm-link:hover{color:var(--bcm-color-grey-7)}.bcm-breadcrumb .active{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .active:hover{color:var(--bcm-color-grey-8)}.bcm-breadcrumb .is-link:hover{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb .is-link:hover bcm-link,.bcm-breadcrumb .is-link:hover bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item{position:relative;display:inline-flex}.bcm-breadcrumb__dropdown-item summary{display:inline-flex;align-items:center;cursor:pointer}.bcm-breadcrumb__dropdown-item summary>span{display:inline-flex;align-items:center}.bcm-breadcrumb__dropdown-item summary::-webkit-details-marker{display:none}.bcm-breadcrumb__dropdown-item summary:focus{outline:none}.bcm-breadcrumb__dropdown-item summary.open bcm-link,.bcm-breadcrumb__dropdown-item summary.open bcm-icon{color:var(--bcm-color-prime-blue-6)}.bcm-breadcrumb__dropdown-item summary .down-icon{margin-left:4px}.bcm-breadcrumb__dropdown-submenu{position:absolute;min-width:140px;background-color:var(--bcm-color-grey-1);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);margin-top:4px}.bcm-breadcrumb__dropdown-submenu .dropdown-item{display:flex;padding:4px 8px}.bcm-breadcrumb__dropdown-submenu .dropdown-item bcm-link{width:100%}";
@@ -7,11 +7,11 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-9fd41788.js');
10
+ const generate = require('./generate-0eddc1c1.js');
11
11
  const bcm = require('./bcm-7f703055.js');
12
12
  const index$1 = require('./index-95ae50d0.js');
13
13
  const stringHelper = require('./string-helper-fda7cbba.js');
14
- require('./package-03de8a92.js');
14
+ require('./package-4e6f5967.js');
15
15
  require('./colors-078851ec.js');
16
16
  require('./_commonjsHelpers-ed84c3ca.js');
17
17
 
@@ -7,13 +7,13 @@
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
- const generate = require('./generate-9fd41788.js');
10
+ const generate = require('./generate-0eddc1c1.js');
11
11
  const bcm = require('./bcm-7f703055.js');
12
12
  const index$2 = require('./index-95ae50d0.js');
13
13
  const index$1 = require('./index-d321de96.js');
14
14
  const slotTemplate = require('./slot-template-873b0cd5.js');
15
15
  const colorHelper = require('./color-helper-c3a819ea.js');
16
- require('./package-03de8a92.js');
16
+ require('./package-4e6f5967.js');
17
17
  require('./colors-078851ec.js');
18
18
  require('./_commonjsHelpers-ed84c3ca.js');
19
19
  require('./string-helper-fda7cbba.js');
@@ -9,14 +9,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
11
  const colorHelper = require('./color-helper-c3a819ea.js');
12
- const generate = require('./generate-9fd41788.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
13
  const stringHelper = require('./string-helper-fda7cbba.js');
14
14
  const slotTemplate = require('./slot-template-873b0cd5.js');
15
15
  require('./_commonjsHelpers-ed84c3ca.js');
16
16
  require('./colors-56282b00.js');
17
17
  require('./utils-fc077139.js');
18
18
  require('./colors-078851ec.js');
19
- require('./package-03de8a92.js');
19
+ require('./package-4e6f5967.js');
20
20
  require('./bcm-7f703055.js');
21
21
 
22
22
  const cardCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-card{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1);box-sizing:border-box}.bcm-card__header,.bcm-card__body,.bcm-card__footer{display:block;width:100%}.bcm-card__header{border-radius:8px 8px 0 0;padding:12px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-card__body{padding:12px 24px}.bcm-card__footer{padding:12px 24px;border-radius:0 0 8px 8px}";
@@ -8,14 +8,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index$1 = require('./index-c591ecec.js');
10
10
  const index$2 = require('./index-95ae50d0.js');
11
- const generate = require('./generate-9fd41788.js');
11
+ const generate = require('./generate-0eddc1c1.js');
12
12
  const bcm = require('./bcm-7f703055.js');
13
13
  const utils = require('./utils-fc077139.js');
14
14
  const index = require('./index-d321de96.js');
15
15
  const labelTemplate = require('./label-template-80235581.js');
16
16
  const isLoadDecorator = require('./is-load-decorator-15036f37.js');
17
17
  require('./_commonjsHelpers-ed84c3ca.js');
18
- require('./package-03de8a92.js');
18
+ require('./package-4e6f5967.js');
19
19
  require('./colors-078851ec.js');
20
20
  require('./slot-template-873b0cd5.js');
21
21
  require('./string-helper-fda7cbba.js');
@@ -8,11 +8,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
- const generate = require('./generate-9fd41788.js');
11
+ const generate = require('./generate-0eddc1c1.js');
12
12
  const bcm = require('./bcm-7f703055.js');
13
13
  const utils = require('./utils-fc077139.js');
14
14
  require('./_commonjsHelpers-ed84c3ca.js');
15
- require('./package-03de8a92.js');
15
+ require('./package-4e6f5967.js');
16
16
  require('./colors-078851ec.js');
17
17
 
18
18
  const checkboxCss = "@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-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
@@ -9,14 +9,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
11
  const captionTemplate = require('./caption-template-81dbc490.js');
12
- const generate = require('./generate-9fd41788.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
13
  const slotTemplate = require('./slot-template-873b0cd5.js');
14
14
  const bcm = require('./bcm-7f703055.js');
15
15
  const utils = require('./utils-fc077139.js');
16
16
  const colorHelper = require('./color-helper-c3a819ea.js');
17
17
  const isLoadDecorator = require('./is-load-decorator-15036f37.js');
18
18
  require('./_commonjsHelpers-ed84c3ca.js');
19
- require('./package-03de8a92.js');
19
+ require('./package-4e6f5967.js');
20
20
  require('./colors-078851ec.js');
21
21
  require('./string-helper-fda7cbba.js');
22
22
  require('./colors-56282b00.js');
@@ -9,10 +9,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-c591ecec.js');
10
10
  require('./color-helper-c3a819ea.js');
11
11
  require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-9fd41788.js');
13
- require('./number-helper-19148ce9.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
+ require('./number-helper-34f232b3.js');
14
14
  require('./string-helper-fda7cbba.js');
15
- require('./validators-f3eace30.js');
15
+ require('./validators-72cc68b6.js');
16
16
  require('./element-dragger-a8562f82.js');
17
17
  const bcm = require('./bcm-7f703055.js');
18
18
  const captionTemplate = require('./caption-template-81dbc490.js');
@@ -24,7 +24,7 @@ require('./colors-56282b00.js');
24
24
  require('./utils-fc077139.js');
25
25
  require('./colors-078851ec.js');
26
26
  require('./_commonjsHelpers-ed84c3ca.js');
27
- require('./package-03de8a92.js');
27
+ require('./package-4e6f5967.js');
28
28
  require('./slot-template-873b0cd5.js');
29
29
 
30
30
  const chipGroupCss = "@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-chip-group .bcm-chip{cursor:pointer}";
@@ -9,12 +9,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
11
  const colorHelper = require('./color-helper-c3a819ea.js');
12
- const generate = require('./generate-9fd41788.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
13
  require('./_commonjsHelpers-ed84c3ca.js');
14
14
  require('./colors-56282b00.js');
15
15
  require('./utils-fc077139.js');
16
16
  require('./colors-078851ec.js');
17
- require('./package-03de8a92.js');
17
+ require('./package-4e6f5967.js');
18
18
 
19
19
  const chipCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-chip{--bcm-chip-color:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-hover:var(--bcm-new-ds-color-slate-500);--bcm-chip-color-focus:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-active:var(--bcm-new-ds-color-slate-700);--bcm-chip-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color:var(--bcm-new-ds-color-slate-200);--bcm-chip-background-color-hover:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-focus:var(--bcm-new-ds-color-slate-300);--bcm-chip-background-color-active:var(--bcm-new-ds-color-slate-400);--bcm-chip-background-color-disabled:var(--bcm-new-ds-color-slate-100);display:inline-flex;justify-content:center;align-items:center;width:fit-content;height:fit-content;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;padding:0 8px;gap:4px;color:var(--bcm-chip-color);background-color:var(--bcm-chip-background-color);border-radius:100px;transition:background-color 0.1s ease-in-out;outline:none}.bcm-chip:not(.bcm-chip--disabled):hover{background-color:var(--bcm-chip-background-color-hover)}.bcm-chip:not(.bcm-chip--disabled):focus{background-color:var(--bcm-chip-background-color-focus);color:var(--bcm-chip-color-focus)}.bcm-chip:not(.bcm-chip--disabled):active{background-color:var(--bcm-chip-background-color-active);color:var(--bcm-chip-color-active)}.bcm-chip--disabled{color:var(--bcm-chip-color-disabled);background-color:var(--bcm-chip-background-color-disabled)}.bcm-chip--avatar{padding-left:2px}.bcm-chip__type-dismissable-icon:hover{cursor:pointer;color:var(--bcm-chip-color-active)}.bcm-chip__size-small{font-size:10px;line-height:calc(10px + 8px)}.bcm-chip__size-small .bcm-avatar{width:14px;height:14px}.bcm-chip__size-small .bcm-chip--selected-icon{width:8px}.bcm-chip__size-medium{font-size:12px;line-height:calc(12px + 8px)}.bcm-chip__size-medium .bcm-avatar{width:16px;height:16px}.bcm-chip__size-medium .bcm-chip--selected-icon{width:10px}.bcm-chip__size-large{font-size:14px;line-height:calc(14px + 8px)}.bcm-chip__size-large .bcm-avatar{width:18px;height:18px}.bcm-chip__size-large .bcm-chip--selected-icon{width:12px}";
20
20
 
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
9
  const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
- const generate = require('./generate-9fd41788.js');
11
+ const generate = require('./generate-0eddc1c1.js');
12
12
  require('./_commonjsHelpers-ed84c3ca.js');
13
- require('./package-03de8a92.js');
13
+ require('./package-4e6f5967.js');
14
14
  require('./colors-078851ec.js');
15
15
 
16
16
  const collapseCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-collapse{display:block;border:1px solid var(--bcm-color-grey-5)}.bcm-collapse ::-webkit-details-marker{display:none}.bcm-collapse__header{display:flex;align-items:center;color:var(--bcm-color-grey-9);padding:16px;background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5);cursor:default;user-select:none}.bcm-collapse__header:focus{outline:none}.bcm-collapse__header .collapse-icon{margin-right:8px;display:flex;align-items:center;justify-content:center}.bcm-collapse__body{padding:16px;background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8)}.bcm-collapse--borderless{border:none}.bcm-collapse--borderless:not(.bcm-collapse--no-border){border-bottom:1px solid var(--bcm-color-grey-5)}.bcm-collapse--borderless .bcm-collapse__header{border-bottom:none}.bcm-collapse--borderless .bcm-collapse__body{background-color:var(--bcm-color-grey-2);padding:0 40px 16px}.bcm-collapse:not(.bcm-collapse--open) .bcm-collapse__header{border-bottom:none}.bcm-collapse:not(:first-child) .collapse{border-top:none}.bcm-collapse.hidden{display:none}";
@@ -9,17 +9,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index = require('./index-c591ecec.js');
10
10
  require('./color-helper-c3a819ea.js');
11
11
  require('./datetime-helper-eaf4fadb.js');
12
- const generate = require('./generate-9fd41788.js');
13
- require('./number-helper-19148ce9.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
+ require('./number-helper-34f232b3.js');
14
14
  require('./string-helper-fda7cbba.js');
15
- require('./validators-f3eace30.js');
15
+ require('./validators-72cc68b6.js');
16
16
  require('./element-dragger-a8562f82.js');
17
17
  require('./bcm-7f703055.js');
18
18
  require('./colors-56282b00.js');
19
19
  require('./utils-fc077139.js');
20
20
  require('./colors-078851ec.js');
21
21
  require('./_commonjsHelpers-ed84c3ca.js');
22
- require('./package-03de8a92.js');
22
+ require('./package-4e6f5967.js');
23
23
 
24
24
  const BcmColorInput = class {
25
25
  constructor(hostRef) {
@@ -9,17 +9,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
9
9
  const index$1 = require('./index-c591ecec.js');
10
10
  const index = require('./index-e05a7c6f.js');
11
11
  const _commonjsHelpers = require('./_commonjsHelpers-ed84c3ca.js');
12
- const generate = require('./generate-9fd41788.js');
13
- const numberHelper = require('./number-helper-19148ce9.js');
12
+ const generate = require('./generate-0eddc1c1.js');
13
+ const numberHelper = require('./number-helper-34f232b3.js');
14
14
  const stringHelper = require('./string-helper-fda7cbba.js');
15
- const validators = require('./validators-f3eace30.js');
15
+ const validators = require('./validators-72cc68b6.js');
16
16
  const bcm = require('./bcm-7f703055.js');
17
17
  const captionTemplate = require('./caption-template-81dbc490.js');
18
- const inputTemplate = require('./input-template-7587462d.js');
18
+ const inputTemplate = require('./input-template-c37dc199.js');
19
19
  const index$2 = require('./index-95ae50d0.js');
20
20
  const utils = require('./utils-fc077139.js');
21
21
  const isLoadDecorator = require('./is-load-decorator-15036f37.js');
22
- require('./package-03de8a92.js');
22
+ require('./package-4e6f5967.js');
23
23
  require('./colors-078851ec.js');
24
24
  require('./types-cc4adee7.js');
25
25
 
@@ -10,11 +10,11 @@ const index = require('./index-c591ecec.js');
10
10
  const index$1 = require('./index-95ae50d0.js');
11
11
  const isLoadDecorator = require('./is-load-decorator-15036f37.js');
12
12
  const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
13
- const generate = require('./generate-9fd41788.js');
13
+ const generate = require('./generate-0eddc1c1.js');
14
14
  const bcm = require('./bcm-7f703055.js');
15
15
  const utils = require('./utils-fc077139.js');
16
16
  require('./_commonjsHelpers-ed84c3ca.js');
17
- require('./package-03de8a92.js');
17
+ require('./package-4e6f5967.js');
18
18
  require('./colors-078851ec.js');
19
19
 
20
20
  const datePickerCss = "@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}";
@@ -10,10 +10,10 @@ const index = require('./index-c591ecec.js');
10
10
  const isLoadDecorator = require('./is-load-decorator-15036f37.js');
11
11
  require('./color-helper-c3a819ea.js');
12
12
  require('./datetime-helper-eaf4fadb.js');
13
- const generate = require('./generate-9fd41788.js');
14
- require('./number-helper-19148ce9.js');
13
+ const generate = require('./generate-0eddc1c1.js');
14
+ require('./number-helper-34f232b3.js');
15
15
  require('./string-helper-fda7cbba.js');
16
- require('./validators-f3eace30.js');
16
+ require('./validators-72cc68b6.js');
17
17
  require('./element-dragger-a8562f82.js');
18
18
  const bcm = require('./bcm-7f703055.js');
19
19
  const captionTemplate = require('./caption-template-81dbc490.js');
@@ -26,7 +26,7 @@ require('./colors-56282b00.js');
26
26
  require('./utils-fc077139.js');
27
27
  require('./colors-078851ec.js');
28
28
  require('./_commonjsHelpers-ed84c3ca.js');
29
- require('./package-03de8a92.js');
29
+ require('./package-4e6f5967.js');
30
30
  require('./slot-template-873b0cd5.js');
31
31
 
32
32
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {