bromcom-ui 2.12.4-rc.0 → 3.0.0-alpha.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 (465) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-2a15a39d.entry.js → p-03337609.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-652c1d30.entry.js → p-14b04371.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-32a5791b.entry.js → p-19ed830b.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-55a44163.entry.js → p-1a7e1a74.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-63646141.entry.js → p-1fbec9e4.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-217934a4.entry.js +5 -0
  9. package/dist/bromcom-ui/p-22e3161d.entry.js +5 -0
  10. package/dist/bromcom-ui/{p-b1754fc5.entry.js → p-2a0b6273.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-fcc6f71e.js → p-2d0ff35e.js} +1 -1
  12. package/dist/bromcom-ui/p-367bc8e0.js +5 -0
  13. package/dist/bromcom-ui/{p-b689c630.entry.js → p-369948e7.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-fcbd8a75.entry.js → p-3b079331.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-4211b6bb.entry.js → p-46628fcd.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-49c6a7eb.entry.js → p-485ed6c1.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-8129ed3a.js → p-499d8454.js} +1 -1
  18. package/dist/bromcom-ui/{p-b1382dbd.entry.js → p-4a71c61a.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
  20. package/dist/bromcom-ui/{p-1fb713c8.entry.js → p-51ba3626.entry.js} +1 -1
  21. package/dist/bromcom-ui/p-556010cb.js +5 -0
  22. package/dist/bromcom-ui/{p-a4f0590d.entry.js → p-583982a6.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-d4c75e60.entry.js → p-5bf051b9.entry.js} +1 -1
  24. package/dist/bromcom-ui/p-5c4939a7.js +5 -0
  25. package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
  26. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  27. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  28. package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
  29. package/dist/bromcom-ui/p-6f224017.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-3c7a0345.js → p-6f2e4c9b.js} +1 -1
  31. package/dist/bromcom-ui/{p-5ae0a59b.js → p-6f861fed.js} +1 -1
  32. package/dist/bromcom-ui/{p-9eb250d4.entry.js → p-7416d1f6.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-d1298c40.js → p-7b21fcb9.js} +1 -1
  34. package/dist/bromcom-ui/p-815f884d.entry.js +5 -0
  35. package/dist/bromcom-ui/p-8363990a.entry.js +5 -0
  36. package/dist/bromcom-ui/p-8457670e.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-f82db5dd.js → p-858cee66.js} +1 -1
  38. package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
  39. package/dist/bromcom-ui/{p-65783175.js → p-8e5e362a.js} +1 -1
  40. package/dist/bromcom-ui/{p-34b9cf32.entry.js → p-9015080d.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-40a29024.entry.js → p-9d41ff2a.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-a080c8ea.entry.js +5 -0
  43. package/dist/bromcom-ui/p-a141b2bc.entry.js +5 -0
  44. package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
  45. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  46. package/dist/bromcom-ui/{p-c097f624.entry.js → p-a6b4a46d.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-a6b696de.js +5 -0
  48. package/dist/bromcom-ui/p-acfceb2b.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-c0aa5289.entry.js → p-b46e368e.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-b85227c8.entry.js +5 -0
  51. package/dist/bromcom-ui/p-c47463b1.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-defdd05b.entry.js → p-c4bf7f7e.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-826a85ed.entry.js → p-c5bb29d0.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-c3b74f76.entry.js → p-cc70861b.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-ce452032.entry.js +16 -0
  56. package/dist/bromcom-ui/{p-b4b9ca15.entry.js → p-d0e56f5f.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-aa6887d7.js → p-d4e4aeee.js} +1 -1
  58. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-d65bc842.js} +1 -1
  59. package/dist/bromcom-ui/p-dc73abe2.js +5 -0
  60. package/dist/bromcom-ui/p-dcd69786.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-50a1591e.js → p-e037ee2b.js} +1 -1
  62. package/dist/bromcom-ui/{p-874053cc.entry.js → p-e7c31126.entry.js} +1 -1
  63. package/dist/bromcom-ui/p-e9a43560.js +5 -0
  64. package/dist/bromcom-ui/p-ea24a822.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-f815dc7a.entry.js → p-fdd4cabe.entry.js} +1 -1
  66. package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
  67. package/dist/cjs/bcm-accordion_68.cjs.entry.js +47182 -0
  68. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  69. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  70. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  72. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  73. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  74. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  75. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  77. package/dist/cjs/bcm-input-2.cjs.entry.js +9 -9
  78. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -9
  80. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  81. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  82. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  83. package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
  84. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  85. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  86. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  87. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  88. package/dist/cjs/bcm-toast.cjs.entry.js +18 -18
  89. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  90. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
  91. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  92. package/dist/cjs/{generate-b55bc9ac.js → generate-a25d8fc8.js} +1 -1
  93. package/dist/cjs/{global-ae5a410a.js → global-08c079a8.js} +1 -1
  94. package/dist/cjs/{input.style-b5676e6a.js → input.style-bee84fb0.js} +1 -1
  95. package/dist/cjs/{label-template-6da4808b.js → label-template-fc301e0c.js} +6 -6
  96. package/dist/cjs/loader.cjs.js +3 -3
  97. package/dist/cjs/{number-helper-4a5c0bb5.js → number-helper-3a56812f.js} +1 -1
  98. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  99. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  100. package/dist/cjs/{package-1757d4e0.js → package-6afe17f3.js} +1 -1
  101. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-02e6101b.js} +1 -1
  102. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-df7b5b59.js} +1 -1
  103. package/dist/cjs/{string-helper-f9184277.js → string-helper-9cdfb273.js} +2 -2
  104. package/dist/cjs/{validators-51a16def.js → validators-78797513.js} +1 -1
  105. package/dist/collection/collection-manifest.json +1 -1
  106. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  107. package/dist/collection/components/atoms/avatar/avatar.style.js +4 -4
  108. package/dist/collection/components/atoms/badge/badge.style.js +8 -8
  109. package/dist/collection/components/atoms/button/button.css +90 -92
  110. package/dist/collection/components/atoms/button/button.js +45 -46
  111. package/dist/collection/components/atoms/chip/chip.css +27 -29
  112. package/dist/collection/components/atoms/chip/chip.js +10 -11
  113. package/dist/collection/components/atoms/divider/divider.css +4 -4
  114. package/dist/collection/components/atoms/link/link.css +10 -11
  115. package/dist/collection/components/molecules/accordion/accordion.css +23 -0
  116. package/dist/collection/components/molecules/accordion/accordion.js +1 -1
  117. package/dist/collection/components/molecules/alert/alert.css +28 -24
  118. package/dist/collection/components/molecules/alert/alert.js +26 -36
  119. package/dist/collection/components/molecules/button-group/button-group.css +15 -23
  120. package/dist/collection/components/molecules/checkbox/checkbox.css +15 -15
  121. package/dist/collection/components/molecules/checkbox/checkbox.js +8 -9
  122. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  123. package/dist/collection/components/molecules/empty/empty.js +1 -1
  124. package/dist/collection/components/molecules/error-layout/error-layout.css +13 -15
  125. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  126. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +25 -22
  127. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  128. package/dist/collection/components/molecules/input/input.css +21 -13
  129. package/dist/collection/components/molecules/input/input.style.js +1 -1
  130. package/dist/collection/components/molecules/menu/menu.css +29 -23
  131. package/dist/collection/components/molecules/modal/modal.css +42 -35
  132. package/dist/collection/components/molecules/modal/modal.js +1 -1
  133. package/dist/collection/components/molecules/radio/radio.js +10 -10
  134. package/dist/collection/components/molecules/range/range.css +5 -8
  135. package/dist/collection/components/molecules/search/search.css +21 -13
  136. package/dist/collection/components/molecules/stepper/stepper.css +6 -5
  137. package/dist/collection/components/molecules/switch/switch.css +22 -21
  138. package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -6
  139. package/dist/collection/components/molecules/textarea/textarea.css +21 -13
  140. package/dist/collection/components/organism/list/list.css +44 -44
  141. package/dist/collection/components/organism/list/list.js +19 -73
  142. package/dist/collection/components/other/shortcut/shortcut.js +4 -4
  143. package/dist/collection/components/other/toast/toast.js +7 -7
  144. package/dist/collection/components/third-parts/colorful/colorful.css +21 -13
  145. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +13 -9
  146. package/dist/collection/global/components/_checkbox.css +15 -15
  147. package/dist/collection/helper/popover-helper.js +5 -5
  148. package/dist/collection/helper/tooltip-helper.js +6 -6
  149. package/dist/collection/templates/caption-template.js +9 -9
  150. package/dist/collection/templates/input-template.js +1 -1
  151. package/dist/collection/templates/label-template.js +4 -4
  152. package/dist/collection/templates/step-template.js +4 -4
  153. package/dist/components/avatar.js +6 -6
  154. package/dist/components/badge.js +9 -9
  155. package/dist/components/bcm-accordion.js +2 -2
  156. package/dist/components/bcm-alert.js +28 -41
  157. package/dist/components/bcm-attendance-actions-comment.js +1 -1
  158. package/dist/components/bcm-attendance-actions-dropdown.js +1 -1
  159. package/dist/components/bcm-attendance-actions.js +1 -1
  160. package/dist/components/bcm-button-group.js +1 -1
  161. package/dist/components/bcm-checkbox-group.js +1 -1
  162. package/dist/components/bcm-color-input.js +1 -1
  163. package/dist/components/bcm-error-layout.js +2 -2
  164. package/dist/components/bcm-expansion-panel.js +2 -2
  165. package/dist/components/bcm-input-2.js +1 -1
  166. package/dist/components/bcm-input-dropdown.js +1 -1
  167. package/dist/components/bcm-modal.js +2 -2
  168. package/dist/components/bcm-popover.js +5 -5
  169. package/dist/components/bcm-range.js +1 -1
  170. package/dist/components/bcm-shortcut.js +4 -4
  171. package/dist/components/bcm-stepper.js +6 -6
  172. package/dist/components/bcm-switch.js +1 -1
  173. package/dist/components/bcm-tab-item-header.js +6 -6
  174. package/dist/components/bcm-toast.js +7 -7
  175. package/dist/components/button.js +47 -48
  176. package/dist/components/caption-template.js +9 -9
  177. package/dist/components/checkbox-lite.js +1 -1
  178. package/dist/components/checkbox.js +9 -10
  179. package/dist/components/chip.js +11 -12
  180. package/dist/components/colorful.js +1 -1
  181. package/dist/components/divider.js +1 -1
  182. package/dist/components/empty.js +1 -1
  183. package/dist/components/generate.js +1 -1
  184. package/dist/components/index4.js +2549 -171
  185. package/dist/components/index5.js +171 -2549
  186. package/dist/components/input-template.js +1 -1
  187. package/dist/components/input.js +1 -1
  188. package/dist/components/input.style.js +2 -2
  189. package/dist/components/label.js +4 -4
  190. package/dist/components/link.js +1 -1
  191. package/dist/components/list.js +21 -58
  192. package/dist/components/menu.js +1 -1
  193. package/dist/components/radio.js +10 -10
  194. package/dist/components/rc-picker.js +1 -1
  195. package/dist/components/search.js +2 -2
  196. package/dist/components/skeleton.js +1 -1
  197. package/dist/components/step.js +1 -1
  198. package/dist/components/textarea.js +1 -1
  199. package/dist/components/tooltip-helper.js +6 -6
  200. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
  201. package/dist/esm/bcm-a50d55ba.js +1 -1
  202. package/dist/esm/bcm-accordion_68.entry.js +47111 -0
  203. package/dist/esm/bcm-attendance-actions-comment.entry.js +12 -12
  204. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +13 -13
  205. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  206. package/dist/esm/bcm-box.entry.js +1 -1
  207. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  208. package/dist/esm/bcm-caption.entry.js +14 -14
  209. package/dist/esm/bcm-card.entry.js +10 -10
  210. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  211. package/dist/esm/bcm-content.entry.js +1 -1
  212. package/dist/esm/bcm-date-picker.entry.js +9 -9
  213. package/dist/esm/bcm-datetime-picker.entry.js +13 -13
  214. package/dist/esm/bcm-default.entry.js +5 -5
  215. package/dist/esm/bcm-form-2.entry.js +8 -8
  216. package/dist/esm/bcm-form-group.entry.js +1 -1
  217. package/dist/esm/bcm-input-2.entry.js +11 -11
  218. package/dist/esm/bcm-input-custom.entry.js +6 -6
  219. package/dist/esm/bcm-input-dropdown.entry.js +14 -14
  220. package/dist/esm/bcm-message.entry.js +3 -3
  221. package/dist/esm/bcm-modal-2-footer.entry.js +12 -12
  222. package/dist/esm/bcm-modal-2-header.entry.js +11 -11
  223. package/dist/esm/bcm-modal-2.entry.js +13 -13
  224. package/dist/esm/bcm-notification.entry.js +3 -3
  225. package/dist/esm/bcm-number-input.entry.js +15 -15
  226. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  227. package/dist/esm/bcm-react-number.entry.js +3 -3
  228. package/dist/esm/bcm-result.entry.js +3 -3
  229. package/dist/esm/bcm-select-group.entry.js +3 -3
  230. package/dist/esm/bcm-select-option.entry.js +3 -3
  231. package/dist/esm/bcm-skeleton.entry.js +11 -11
  232. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  233. package/dist/esm/bcm-table.entry.js +12 -12
  234. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  235. package/dist/esm/bcm-tag.entry.js +9 -9
  236. package/dist/esm/bcm-time-picker.entry.js +9 -9
  237. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  238. package/dist/esm/bcm-timeline.entry.js +3 -3
  239. package/dist/esm/bcm-toast.entry.js +16 -16
  240. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  241. package/dist/esm/bromcom-ui.js +5 -5
  242. package/dist/esm/{caption-template-9d0ea503.js → caption-template-16dd9444.js} +11 -11
  243. package/dist/esm/{color-helper-e74656af.js → color-helper-ba15b0d8.js} +2 -2
  244. package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
  245. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-b75266e6.js} +1 -1
  246. package/dist/esm/floating-ui-3f4394da.js +1 -1
  247. package/dist/esm/{generate-27c06421.js → generate-a4b85775.js} +2 -2
  248. package/dist/esm/{global-0dac0bf2.js → global-1baa11cd.js} +2 -2
  249. package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
  250. package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
  251. package/dist/esm/{index-b3026131.js → index-4614b7f0.js} +1 -1
  252. package/dist/esm/{input.style-e855c0f3.js → input.style-0ddc0073.js} +1 -1
  253. package/dist/esm/{is-load-decorator-613d613a.js → is-load-decorator-b8ca22f2.js} +1 -1
  254. package/dist/esm/{label-template-8c5948ab.js → label-template-4c3797f4.js} +7 -7
  255. package/dist/esm/loader.js +5 -5
  256. package/dist/esm/{number-helper-94a51ec2.js → number-helper-872d5482.js} +1 -1
  257. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  258. package/dist/esm/old-bcm-popover.entry.js +7 -7
  259. package/dist/esm/{package-34090aad.js → package-1d6f13ed.js} +1 -1
  260. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-2bf3a181.js} +1 -1
  261. package/dist/esm/{slot-template-f85d540c.js → slot-template-e0202c5a.js} +2 -2
  262. package/dist/esm/{string-helper-85990695.js → string-helper-69203215.js} +2 -2
  263. package/dist/esm/{utils-b3338faf.js → utils-7727d09e.js} +1 -1
  264. package/dist/esm/{validators-7e605ca5.js → validators-e9800e9a.js} +1 -1
  265. package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
  266. package/dist/types/components/molecules/alert/alert.d.ts +1 -3
  267. package/dist/types/components/organism/list/list.d.ts +0 -4
  268. package/dist/types/components.d.ts +0 -4
  269. package/package.json +1 -1
  270. package/dist/bromcom-ui/p-0089f9c5.entry.js +0 -5
  271. package/dist/bromcom-ui/p-03cc10f8.entry.js +0 -5
  272. package/dist/bromcom-ui/p-075dd6ba.entry.js +0 -5
  273. package/dist/bromcom-ui/p-07971537.entry.js +0 -5
  274. package/dist/bromcom-ui/p-0d952c81.js +0 -5
  275. package/dist/bromcom-ui/p-0e97b110.js +0 -5
  276. package/dist/bromcom-ui/p-12687eaa.entry.js +0 -5
  277. package/dist/bromcom-ui/p-1441edac.entry.js +0 -5
  278. package/dist/bromcom-ui/p-17bc7e7e.entry.js +0 -5
  279. package/dist/bromcom-ui/p-1ac9eb84.entry.js +0 -5
  280. package/dist/bromcom-ui/p-1bf1e8ad.entry.js +0 -5
  281. package/dist/bromcom-ui/p-1c8ed0b3.entry.js +0 -5
  282. package/dist/bromcom-ui/p-1d663e83.entry.js +0 -5
  283. package/dist/bromcom-ui/p-21b4ca2e.entry.js +0 -5
  284. package/dist/bromcom-ui/p-2ebe3b67.entry.js +0 -5
  285. package/dist/bromcom-ui/p-30a11f2e.entry.js +0 -5
  286. package/dist/bromcom-ui/p-30cc83af.js +0 -5
  287. package/dist/bromcom-ui/p-33d204f1.entry.js +0 -5
  288. package/dist/bromcom-ui/p-348e74e9.entry.js +0 -5
  289. package/dist/bromcom-ui/p-379b00d6.js +0 -5
  290. package/dist/bromcom-ui/p-38a52254.js +0 -5
  291. package/dist/bromcom-ui/p-3e12382d.js +0 -5
  292. package/dist/bromcom-ui/p-4b5c5f62.entry.js +0 -5
  293. package/dist/bromcom-ui/p-4c2e776d.entry.js +0 -5
  294. package/dist/bromcom-ui/p-4c9c2159.entry.js +0 -5
  295. package/dist/bromcom-ui/p-56b45430.entry.js +0 -5
  296. package/dist/bromcom-ui/p-646c8ea2.entry.js +0 -5
  297. package/dist/bromcom-ui/p-69e3b4f9.entry.js +0 -5
  298. package/dist/bromcom-ui/p-6b3bf457.entry.js +0 -5
  299. package/dist/bromcom-ui/p-6fa98b12.entry.js +0 -5
  300. package/dist/bromcom-ui/p-7247ac65.entry.js +0 -5
  301. package/dist/bromcom-ui/p-7505325c.entry.js +0 -5
  302. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  303. package/dist/bromcom-ui/p-7ae23e76.entry.js +0 -5
  304. package/dist/bromcom-ui/p-7b6d3a77.entry.js +0 -5
  305. package/dist/bromcom-ui/p-7dd0467a.entry.js +0 -5
  306. package/dist/bromcom-ui/p-815f1132.entry.js +0 -5
  307. package/dist/bromcom-ui/p-852fd092.entry.js +0 -5
  308. package/dist/bromcom-ui/p-85aa9dfd.entry.js +0 -5
  309. package/dist/bromcom-ui/p-8baa08ea.entry.js +0 -5
  310. package/dist/bromcom-ui/p-8c7e1bea.entry.js +0 -5
  311. package/dist/bromcom-ui/p-8dda8873.js +0 -14
  312. package/dist/bromcom-ui/p-8ee40a96.js +0 -5
  313. package/dist/bromcom-ui/p-90b5befd.entry.js +0 -5
  314. package/dist/bromcom-ui/p-935f57ad.entry.js +0 -5
  315. package/dist/bromcom-ui/p-9402a607.entry.js +0 -5
  316. package/dist/bromcom-ui/p-9695f7c9.js +0 -5
  317. package/dist/bromcom-ui/p-97bc1843.entry.js +0 -5
  318. package/dist/bromcom-ui/p-9b080d5d.entry.js +0 -5
  319. package/dist/bromcom-ui/p-9b8e6484.entry.js +0 -5
  320. package/dist/bromcom-ui/p-9d1e255a.js +0 -5
  321. package/dist/bromcom-ui/p-9db3dcfa.entry.js +0 -5
  322. package/dist/bromcom-ui/p-ac949369.entry.js +0 -5
  323. package/dist/bromcom-ui/p-ad295560.entry.js +0 -5
  324. package/dist/bromcom-ui/p-b3faa68b.js +0 -5
  325. package/dist/bromcom-ui/p-b5bdc541.entry.js +0 -5
  326. package/dist/bromcom-ui/p-b716412b.entry.js +0 -5
  327. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  328. package/dist/bromcom-ui/p-bfdf9447.entry.js +0 -5
  329. package/dist/bromcom-ui/p-c621138a.entry.js +0 -5
  330. package/dist/bromcom-ui/p-c9d35a7a.entry.js +0 -5
  331. package/dist/bromcom-ui/p-d0833fd3.entry.js +0 -5
  332. package/dist/bromcom-ui/p-d1dbebf6.entry.js +0 -5
  333. package/dist/bromcom-ui/p-d2f863d9.js +0 -5
  334. package/dist/bromcom-ui/p-d6c99f1f.entry.js +0 -5
  335. package/dist/bromcom-ui/p-daa32fc1.js +0 -5
  336. package/dist/bromcom-ui/p-dc3275aa.entry.js +0 -5
  337. package/dist/bromcom-ui/p-dccb9b5f.entry.js +0 -5
  338. package/dist/bromcom-ui/p-de1f21b5.entry.js +0 -5
  339. package/dist/bromcom-ui/p-de23b7bf.entry.js +0 -5
  340. package/dist/bromcom-ui/p-e3f8efa5.entry.js +0 -5
  341. package/dist/bromcom-ui/p-ee1b4a47.entry.js +0 -5
  342. package/dist/bromcom-ui/p-f0469946.entry.js +0 -5
  343. package/dist/bromcom-ui/p-f2fc3d54.entry.js +0 -5
  344. package/dist/bromcom-ui/p-f3c9ad5e.entry.js +0 -5
  345. package/dist/bromcom-ui/p-f6f37125.entry.js +0 -5
  346. package/dist/bromcom-ui/p-f86515f0.entry.js +0 -5
  347. package/dist/bromcom-ui/p-f908af03.entry.js +0 -5
  348. package/dist/bromcom-ui/p-f9c32e82.entry.js +0 -5
  349. package/dist/bromcom-ui/p-fd0c42ae.entry.js +0 -5
  350. package/dist/cjs/Overflow-ebad34dd.js +0 -2292
  351. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  352. package/dist/cjs/bcm-alert.cjs.entry.js +0 -99
  353. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  354. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  355. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  356. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  357. package/dist/cjs/bcm-button.cjs.entry.js +0 -372
  358. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  359. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
  360. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  361. package/dist/cjs/bcm-chip-group.cjs.entry.js +0 -128
  362. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  363. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
  364. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
  365. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  366. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  367. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  368. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  369. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  370. package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
  371. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  372. package/dist/cjs/bcm-form.cjs.entry.js +0 -492
  373. package/dist/cjs/bcm-icon_6.cjs.entry.js +0 -2152
  374. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  375. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  376. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  377. package/dist/cjs/bcm-link.cjs.entry.js +0 -51
  378. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  379. package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
  380. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  381. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
  382. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  383. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  384. package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
  385. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  386. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  387. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  388. package/dist/cjs/bcm-range.cjs.entry.js +0 -183
  389. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -10235
  390. package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
  391. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  392. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  393. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  394. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  395. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  396. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -60
  397. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  398. package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
  399. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
  400. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  401. package/dist/cjs/index-d321de96.js +0 -193
  402. package/dist/cjs/input-template-4f41f5f2.js +0 -92
  403. package/dist/cjs/json-parse-decarator-ca73e0ee.js +0 -40
  404. package/dist/cjs/lodash-917168d7.js +0 -17199
  405. package/dist/cjs/moment-d06b012f.js +0 -4601
  406. package/dist/cjs/stepper-states-969da6c3.js +0 -85
  407. package/dist/cjs/tooltip-helper-a45a6cd4.js +0 -158
  408. package/dist/esm/Overflow-65c2db90.js +0 -2275
  409. package/dist/esm/bcm-accordion.entry.js +0 -70
  410. package/dist/esm/bcm-alert.entry.js +0 -95
  411. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  412. package/dist/esm/bcm-attendance.entry.js +0 -31
  413. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  414. package/dist/esm/bcm-button-group.entry.js +0 -88
  415. package/dist/esm/bcm-button.entry.js +0 -368
  416. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  417. package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
  418. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  419. package/dist/esm/bcm-chip-group.entry.js +0 -124
  420. package/dist/esm/bcm-chip.entry.js +0 -87
  421. package/dist/esm/bcm-collapse-group.entry.js +0 -39
  422. package/dist/esm/bcm-collapse.entry.js +0 -58
  423. package/dist/esm/bcm-color-input.entry.js +0 -73
  424. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  425. package/dist/esm/bcm-date.entry.js +0 -178
  426. package/dist/esm/bcm-drawer.entry.js +0 -92
  427. package/dist/esm/bcm-dropdown.entry.js +0 -115
  428. package/dist/esm/bcm-error-layout.entry.js +0 -60
  429. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  430. package/dist/esm/bcm-form.entry.js +0 -488
  431. package/dist/esm/bcm-icon_6.entry.js +0 -2143
  432. package/dist/esm/bcm-input_2.entry.js +0 -545
  433. package/dist/esm/bcm-item.entry.js +0 -68
  434. package/dist/esm/bcm-items.entry.js +0 -45
  435. package/dist/esm/bcm-link.entry.js +0 -47
  436. package/dist/esm/bcm-menu.entry.js +0 -147
  437. package/dist/esm/bcm-modal.entry.js +0 -153
  438. package/dist/esm/bcm-old-input.entry.js +0 -393
  439. package/dist/esm/bcm-old-tag_2.entry.js +0 -140
  440. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  441. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  442. package/dist/esm/bcm-popover.entry.js +0 -226
  443. package/dist/esm/bcm-progress.entry.js +0 -158
  444. package/dist/esm/bcm-radio-group.entry.js +0 -157
  445. package/dist/esm/bcm-radio.entry.js +0 -61
  446. package/dist/esm/bcm-range.entry.js +0 -179
  447. package/dist/esm/bcm-rc-picker.entry.js +0 -10231
  448. package/dist/esm/bcm-select.entry.js +0 -1191
  449. package/dist/esm/bcm-shortcut.entry.js +0 -61
  450. package/dist/esm/bcm-step.entry.js +0 -85
  451. package/dist/esm/bcm-stepper.entry.js +0 -236
  452. package/dist/esm/bcm-switch.entry.js +0 -147
  453. package/dist/esm/bcm-tab-group.entry.js +0 -206
  454. package/dist/esm/bcm-tab-item-header.entry.js +0 -56
  455. package/dist/esm/bcm-tab-item.entry.js +0 -87
  456. package/dist/esm/bcm-tab.entry.js +0 -68
  457. package/dist/esm/bcm-tabs.entry.js +0 -366
  458. package/dist/esm/bcm-text.entry.js +0 -45
  459. package/dist/esm/index-91dbe540.js +0 -191
  460. package/dist/esm/input-template-4d3a4e34.js +0 -90
  461. package/dist/esm/json-parse-decarator-1f7310a8.js +0 -38
  462. package/dist/esm/lodash-0a4396a7.js +0 -17197
  463. package/dist/esm/moment-15cd9198.js +0 -4598
  464. package/dist/esm/stepper-states-b1aa55b0.js +0 -83
  465. package/dist/esm/tooltip-helper-112e52a6.js +0 -156
@@ -1,397 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const captionTemplate = require('./caption-template-85a18b6d.js');
12
- const utils = require('./utils-fc077139.js');
13
- require('./_commonjsHelpers-ed84c3ca.js');
14
-
15
- const oldInputCss = "@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}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}.bcm-label{font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:4px;font-weight:500;color:#475569}.bcm-label.tw-text-1{font-size:10px;line-height:18px}.bcm-label.tw-text-2{font-size:12px;line-height:20px}.bcm-label.tw-text-3{font-size:14px;line-height:22px}.bcm-caption-area{color:#dc2626;font-weight:400;justify-content:space-between;align-items:flex-start;flex-direction:row;min-height:20px;display:flex;margin-top:4px;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bcm-caption-area.tw-text-1{font-size:10px;line-height:18px}.bcm-caption-area.tw-text-2{font-size:12px;line-height:20px}.bcm-caption-area.tw-text-3{font-size:14px;line-height:22px}";
16
-
17
- let id = 0;
18
- const defaultIcons = {
19
- email: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></svg>',
20
- tel: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M476.5 22.9L382.3 1.2c-21.6-5-43.6 6.2-52.3 26.6l-43.5 101.5c-8 18.6-2.6 40.6 13.1 53.4l40 32.7C311 267.8 267.8 311 215.4 339.5l-32.7-40c-12.8-15.7-34.8-21.1-53.4-13.1L27.7 329.9c-20.4 8.7-31.5 30.7-26.6 52.3l21.7 94.2c4.8 20.9 23.2 35.5 44.6 35.5C312.3 512 512 313.7 512 67.5c0-21.4-14.6-39.8-35.5-44.6zM69.3 464l-20.9-90.7 98.2-42.1 55.7 68.1c98.8-46.4 150.6-98 197-197l-68.1-55.7 42.1-98.2L464 69.3C463 286.9 286.9 463 69.3 464z"/></svg>',
21
- search: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"/></svg>',
22
- url: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M314.222 197.78c51.091 51.091 54.377 132.287 9.75 187.16-6.242 7.73-2.784 3.865-84.94 86.02-54.696 54.696-143.266 54.745-197.99 0-54.711-54.69-54.734-143.255 0-197.99 32.773-32.773 51.835-51.899 63.409-63.457 7.463-7.452 20.331-2.354 20.486 8.192a173.31 173.31 0 0 0 4.746 37.828c.966 4.029-.272 8.269-3.202 11.198L80.632 312.57c-32.755 32.775-32.887 85.892 0 118.8 32.775 32.755 85.892 32.887 118.8 0l75.19-75.2c32.718-32.725 32.777-86.013 0-118.79a83.722 83.722 0 0 0-22.814-16.229c-4.623-2.233-7.182-7.25-6.561-12.346 1.356-11.122 6.296-21.885 14.815-30.405l4.375-4.375c3.625-3.626 9.177-4.594 13.76-2.294 12.999 6.524 25.187 15.211 36.025 26.049zM470.958 41.04c-54.724-54.745-143.294-54.696-197.99 0-82.156 82.156-78.698 78.29-84.94 86.02-44.627 54.873-41.341 136.069 9.75 187.16 10.838 10.838 23.026 19.525 36.025 26.049 4.582 2.3 10.134 1.331 13.76-2.294l4.375-4.375c8.52-8.519 13.459-19.283 14.815-30.405.621-5.096-1.938-10.113-6.561-12.346a83.706 83.706 0 0 1-22.814-16.229c-32.777-32.777-32.718-86.065 0-118.79l75.19-75.2c32.908-32.887 86.025-32.755 118.8 0 32.887 32.908 32.755 86.025 0 118.8l-45.848 45.84c-2.93 2.929-4.168 7.169-3.202 11.198a173.31 173.31 0 0 1 4.746 37.828c.155 10.546 13.023 15.644 20.486 8.192 11.574-11.558 30.636-30.684 63.409-63.457 54.733-54.735 54.71-143.3-.001-197.991z"/></svg>'
23
- };
24
- const BcmOldInput = class {
25
- constructor(hostRef) {
26
- index.registerInstance(this, hostRef);
27
- this.focus = index.createEvent(this, "bcm-focus", 7);
28
- this.blur = index.createEvent(this, "bcm-blur", 7);
29
- this.clear = index.createEvent(this, "bcm-clear", 7);
30
- this.change = index.createEvent(this, "bcm-change", 7);
31
- this.input = index.createEvent(this, "bcm-input", 7);
32
- this.inputId = `input-${++id}`;
33
- this.isBlur = false;
34
- this.type = 'text';
35
- this.value = '';
36
- this.size = "medium";
37
- this.label = undefined;
38
- this.noCaption = false;
39
- this.noMargin = false;
40
- this.captionError = undefined;
41
- this.caption = undefined;
42
- this.captionType = 'default';
43
- this.placeholder = undefined;
44
- this.fullWidth = false;
45
- this.disabled = false;
46
- this.readonly = false;
47
- this.clearable = false;
48
- this.passwordToggle = undefined;
49
- this.noDefaultIcon = undefined;
50
- this._id = undefined;
51
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
52
- this.name = undefined;
53
- this.unit = null;
54
- this.unitPrefix = null;
55
- this.decimal = undefined;
56
- this.min = null;
57
- this.max = null;
58
- this.step = null;
59
- this.hidden = false;
60
- this.required = false;
61
- this.disableWatchValue = false;
62
- this.maxLength = null;
63
- this.tooltip = undefined;
64
- this.inValid = false;
65
- this.valueCache = undefined;
66
- this.captionCache = undefined;
67
- this.captionTypeCache = undefined;
68
- this.hasFocus = false;
69
- this.isPasswordVisible = false;
70
- }
71
- async setFocus() {
72
- this.inputElement.focus();
73
- }
74
- async removeFocus() {
75
- this.inputElement.blur();
76
- }
77
- async select() {
78
- return this.inputElement.select();
79
- }
80
- async setValue(value) {
81
- this.inputElement.value = value;
82
- this.value = value;
83
- this.handleChange();
84
- return value;
85
- }
86
- async setClear() {
87
- this.inputElement.value = '';
88
- this.value = '';
89
- await utils.delay(10);
90
- return Promise.resolve();
91
- }
92
- async resetCaption() {
93
- await utils.delay(10);
94
- this.caption = this.captionCache;
95
- this.captionType = this.captionTypeCache;
96
- this.captionError = null;
97
- await utils.delay(10);
98
- return Promise.resolve();
99
- }
100
- async getValue() {
101
- return this.value;
102
- }
103
- handleFocus() {
104
- this.hasFocus = true;
105
- this.focus.emit();
106
- }
107
- handleBlur() {
108
- this.hasFocus = false;
109
- this.isBlur = true;
110
- if (this.type == "email") {
111
- this.isEmailValid();
112
- }
113
- if (this.type == "tel") {
114
- this.isTelValid();
115
- }
116
- this.blur.emit();
117
- }
118
- handleChange() {
119
- this.value = this.inputElement.value;
120
- this.change.emit(this.value);
121
- }
122
- handleInput() {
123
- if (this.type == "number") {
124
- if (this.decimal == "false") {
125
- this.inputElement.value = this.inputElement.value.replace(/[^0-9-]/g, '');
126
- }
127
- else {
128
- this.inputElement.value = this.inputElement.value.replace(/[^0-9.,-]/g, '');
129
- }
130
- this.inputElement.value = this.inputElement.value.replace(/(\..*)\./g, '$1').replace(/(\-.*)\-/g, '$1');
131
- }
132
- this.value = this.inputElement.value;
133
- this.input.emit(this.value);
134
- }
135
- handleClear(e) {
136
- this.inputElement.value = '';
137
- this.value = '';
138
- this.inputElement.focus();
139
- this.change.emit(this.value);
140
- this.clear.emit(e);
141
- e.stopPropagation();
142
- }
143
- changePasswordVisibility() {
144
- this.isPasswordVisible = !this.isPasswordVisible;
145
- }
146
- incrementNumber() {
147
- if (!this.inValid && !this.disabled && !this.readonly) {
148
- let step = this.getNumberStep();
149
- let val = Number(this.value) + Number(step);
150
- this.value = this.numberDecimal(val);
151
- }
152
- }
153
- decrementNumber() {
154
- if (!this.inValid && !this.disabled && !this.readonly) {
155
- let step = this.getNumberStep();
156
- let val = Number(this.value) - Number(step);
157
- this.value = this.numberDecimal(val);
158
- }
159
- }
160
- getNumberStep(step = Number(this.step)) {
161
- let returnStep = 1;
162
- if (step && Number(step) == step)
163
- returnStep = step;
164
- return Number(returnStep);
165
- }
166
- connectedCallback() {
167
- this.changePasswordVisibility = this.changePasswordVisibility.bind(this);
168
- this.handleChange = this.handleChange.bind(this);
169
- this.handleBlur = this.handleBlur.bind(this);
170
- this.handleFocus = this.handleFocus.bind(this);
171
- this.handleInput = this.handleInput.bind(this);
172
- this.handleClear = this.handleClear.bind(this);
173
- this.incrementNumber = this.incrementNumber.bind(this);
174
- this.decrementNumber = this.decrementNumber.bind(this);
175
- this.valueCache = this.value;
176
- this.captionCache = this.caption;
177
- this.captionTypeCache = this.captionType;
178
- }
179
- validationRange(val = JSON.stringify({
180
- "value": this.value,
181
- "min": this.min,
182
- "max": this.max
183
- })) {
184
- let cap = null;
185
- let capType = null;
186
- let returnValidation = true;
187
- let item = JSON.parse(val);
188
- let { length, value, min, max } = item;
189
- length = parseFloat(length);
190
- value = parseFloat(value);
191
- min = parseFloat(min);
192
- max = parseFloat(max);
193
- length !== 0 && (value && (min && max && ((value < min || value > max) && (cap = "Please enter a value between " + min + " and " + max + ".",
194
- capType = "error",
195
- returnValidation = false)) || min && !max && (value < min && (cap = "Please enter a value greater than or equal to " + min + ".",
196
- capType = "error",
197
- returnValidation = false)) || !min && max && (value > max && (cap = "Please enter a value less than or equal to " + max + ".",
198
- capType = "error",
199
- returnValidation = false))));
200
- this.setCaption(cap, capType);
201
- return returnValidation;
202
- }
203
- setCaption(caption = null, captionType = null) {
204
- this.caption = caption ? caption : this.captionCache;
205
- this.captionType = captionType ? captionType : this.captionTypeCache;
206
- this.captionError = captionType == "error" ? caption : null;
207
- }
208
- isEmailValid() {
209
- const { value } = this;
210
- const regexp = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
211
- let cap = null;
212
- let capType = null;
213
- if (value && !regexp.test(value)) {
214
- cap = "Please enter a valid email address.",
215
- capType = "error",
216
- this.inValid = true;
217
- }
218
- else {
219
- this.inValid = false;
220
- }
221
- this.setCaption(cap, capType);
222
- return this.inValid;
223
- }
224
- isTelValid() {
225
- const { value } = this;
226
- const regexp = new RegExp(/^(?=.*[0-9])[- +()0-9]+$/);
227
- let cap = null;
228
- let capType = null;
229
- if (value && !regexp.test(value)) {
230
- cap = "Please enter a valid phone number.",
231
- capType = "error",
232
- this.inValid = true;
233
- }
234
- else {
235
- this.inValid = false;
236
- }
237
- this.setCaption(cap, capType);
238
- return this.inValid;
239
- }
240
- isNumberValid(caption = "Invalid number", captionType = "error") {
241
- const { value } = this;
242
- if (value && Number(value) != value) {
243
- this.inValid = true;
244
- this.setCaption(caption, captionType);
245
- return true;
246
- }
247
- this.inValid = false;
248
- return false;
249
- }
250
- setNumberUnit() {
251
- const { value, unit } = this;
252
- if (Number(value) == value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !value)
253
- this.value = 0;
254
- }
255
- numberDecimal(val = '') {
256
- let decLen = this.getDecimalLength();
257
- if (val && decLen)
258
- return parseFloat(val).toFixed(decLen);
259
- return val;
260
- }
261
- numberNotDecimal(val = 0) {
262
- return Math.trunc(val);
263
- }
264
- getDecimalLength() {
265
- const { step } = this;
266
- let returnDecimalLength = 0, splitted, splitDec;
267
- if (step && Number(step) == step) {
268
- if (String(step).includes(".")) {
269
- splitted = String(step).split('.');
270
- splitDec = splitted[splitted.length - 1].length;
271
- }
272
- else {
273
- splitDec = 0;
274
- }
275
- returnDecimalLength = splitDec;
276
- }
277
- return Number(returnDecimalLength);
278
- }
279
- componentWillRender() {
280
- const { type } = this;
281
- if (type == "number" && this.value) {
282
- if (!this.isNumberValid()) {
283
- this.validationRange();
284
- }
285
- }
286
- if (this.isBlur) {
287
- if (type == "email" && this.value) {
288
- this.isEmailValid();
289
- }
290
- if (type == "tel" && this.value) {
291
- this.isTelValid();
292
- }
293
- }
294
- }
295
- componentWillLoad() {
296
- const { type, value } = this;
297
- if (type == "number" && Number(value) == value) {
298
- this.value = this.numberDecimal(value);
299
- }
300
- }
301
- numberControl(e) {
302
- if (!this.disabled && !this.readonly) {
303
- if (this.type == "number") {
304
- var which = e.which || 0;
305
- var key = e.key;
306
- which == 38 && ( // up arrow
307
- e.preventDefault(),
308
- this.incrementNumber());
309
- which == 40 && ( // down arrow
310
- e.preventDefault(),
311
- this.decrementNumber());
312
- key == "." && String(this.value).includes(".") && ( // dot: shouldn't be more than one
313
- e.preventDefault());
314
- if (which == 8 || //backspace / delete
315
- which == 9 || //tab
316
- which == 13 || //enter
317
- which == 16 || //shift
318
- which == 17 || //ctrl
319
- which == 18 || //alt
320
- which == 46 || //delete
321
- (which == 110 && (this.type == 'number' && this.decimal != false)) || //decimal point
322
- // (which == 188 && key == ",") || //comma
323
- (which == 190 && key == "." && (this.type == 'number' && this.decimal != false)) || //period
324
- (which == 189 && this.inputElement.value.length == 0) || //-
325
- (which == 109 && this.inputElement.value.length == 0) || //-
326
- (which >= 35 && which <= 40) || //end, home, left arrow, up arrow, right arrow, down arrow
327
- (which >= 48 && which <= 57) || //0-9
328
- (which >= 96 && which <= 105) //0-9(numpad)
329
- )
330
- return true;
331
- e.preventDefault();
332
- if (this.decimal == true) {
333
- this.value = this.numberDecimal(this.value);
334
- }
335
- else if (this.decimal == false) {
336
- this.value = this.numberNotDecimal(this.value);
337
- }
338
- }
339
- }
340
- }
341
- whatchHasFocus() {
342
- const { type, hasFocus, value, valueCache, inValid } = this;
343
- if (type == "number") {
344
- this.isNumberValid();
345
- let inValidState = false;
346
- if (hasFocus == true) {
347
- if (inValid == true) {
348
- this.value = '';
349
- inValidState = true;
350
- }
351
- }
352
- else {
353
- if (this.value == '' && inValid == false) {
354
- this.value = valueCache;
355
- inValidState = true;
356
- }
357
- if (value != valueCache && inValid == false && inValidState == false) {
358
- this.value = value ? this.numberDecimal(value) : '';
359
- }
360
- }
361
- }
362
- }
363
- watchValue() {
364
- if (!this.disableWatchValue && this.type != 'number') {
365
- this.handleChange();
366
- }
367
- }
368
- render() {
369
- const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, hasFocus, unitPrefix, noCaption, required } = this;
370
- const containerClasses = index$1.classnames('input-container', {
371
- 'full-width': fullWidth,
372
- 'error': captionType == 'error' ? true : false
373
- });
374
- const baseClasses = index$1.classnames('input-base', 'input-' + size, {
375
- 'invalid': inValid,
376
- 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
377
- 'focused': hasFocus,
378
- 'disabled': disabled,
379
- 'readonly': readonly,
380
- 'empty': (value === null || value === void 0 ? void 0 : value.length) < 1
381
- });
382
- const inputClass = size === 'large' ? 'size-3' : 'size-2';
383
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
384
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: containerClasses }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), index.h("div", { class: baseClasses }, index.h("span", { class: "input-prefix" }, index.h("slot", { name: "prefix" }), unitPrefix && index.h("span", { class: index$1.classnames(inputClass, 'unit-prefix') }, unitPrefix)), index.h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
385
- type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
386
- ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
387
- : value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (index.h("button", { class: "input-clear-button", onClick: this.handleClear }, index.h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, index.h("path", { d: "M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" })))), type === 'password' && passwordToggle && (index.h("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, index.h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-invisible" : "far fa-eye" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (index.h("span", { class: "input-suffix default-icon", innerHTML: defaultIcons[type] })), type === 'number' && (index.h("div", { class: index$1.classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, index.h("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, index.h("bcm-icon", { icon: "far fa-caret-up" })), index.h("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, index.h("bcm-icon", { icon: "far fa-caret-down" })))), type !== 'number' && (index.h("span", { class: "input-suffix" }, index.h("slot", { name: "suffix" })))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption }))));
388
- }
389
- get el() { return index.getElement(this); }
390
- static get watchers() { return {
391
- "hasFocus": ["whatchHasFocus"],
392
- "value": ["watchValue"]
393
- }; }
394
- };
395
- BcmOldInput.style = oldInputCss;
396
-
397
- exports.bcm_old_input = BcmOldInput;
@@ -1,145 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const colors = require('./colors-56282b00.js');
12
- const utils = require('./utils-fc077139.js');
13
- require('./_commonjsHelpers-ed84c3ca.js');
14
-
15
- /**
16
- * 'color' prop predefined values
17
- */
18
- var ColorProps;
19
- (function (ColorProps) {
20
- ColorProps["black"] = "black";
21
- ColorProps["white"] = "white";
22
- ColorProps["prime-blue"] = "prime-blue";
23
- ColorProps["grey"] = "grey";
24
- ColorProps["blue"] = "blue";
25
- ColorProps["warmyellow"] = "warmyellow";
26
- ColorProps["yellow"] = "yellow";
27
- ColorProps["limegreen"] = "limegreen";
28
- ColorProps["red"] = "red";
29
- ColorProps["darkorange"] = "darkorange";
30
- ColorProps["orange"] = "orange";
31
- ColorProps["green"] = "green";
32
- ColorProps["turquosie"] = "turquosie";
33
- ColorProps["cobaltblue"] = "cobaltblue";
34
- ColorProps["magenta"] = "magenta";
35
- ColorProps["purple"] = "purple";
36
- ColorProps["bc-red"] = "bc-red";
37
- ColorProps["bc-blue"] = "bc-blue";
38
- ColorProps["bc-green"] = "bc-green";
39
- ColorProps["bc-orange"] = "bc-orange";
40
- })(ColorProps || (ColorProps = {}));
41
-
42
- const oldTagCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.maxwidth){max-width:100px}.tag{display:flex;align-items:center;justify-content:center;padding:0 8px;cursor:default;border-radius:48px;border:1px solid var(--bcm-color-grey-5);user-select:none;min-width:10px;min-height:20px}.tag.size-1{padding:calc(8px - 8px) 8px}.tag.size-2{padding:calc(9px - 8px) 9px}.tag.size-3{padding:calc(10px - 8px) 10px}.tag.size-4{padding:calc(11px - 8px) 11px}.tag.size-5{padding:calc(12px - 8px) 12px}.tag.size-6{padding:calc(13px - 8px) 13px}.tag.size-7{padding:calc(14px - 8px) 14px}.tag.size-8{padding:calc(15px - 8px) 15px}.tag.size-9{padding:calc(16px - 8px) 16px}.tag.basic,.tag.closeable,.tag.add,.tag.dissmisable{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8)}.tag.basic:hover,.tag.closeable:hover,.tag.add:hover,.tag.dissmisable:hover{opacity:0.85}.tag.dissmisable{color:var(--bcm-color-grey-10)}.tag.dissmisable .close-button{width:14px;cursor:pointer}.tag.dissmisable .close-button bcm-icon{color:var(--bcm-color-grey-7)}.tag.dissmisable .close-button:hover bcm-icon{color:var(--bcm-color-grey-10)}.tag.add{border-style:dashed;background-color:var(--bcm-color-grey-1)}.tag.checkable{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border-color:var(--bcm-color-grey-1)}.tag.checkable:hover{color:var(--bcm-color-prime-blue-5);cursor:pointer}.tag span{display:inline-flex}.tag span.left{margin-right:4px}.tag span.right{margin-left:4px}.tag:before,.tag:after{content:\"\"}button{border:none;outline:0;cursor:pointer !important;margin:0}input[type=checkbox]{margin:0;width:0;height:0;visibility:hidden;position:absolute}input[type=checkbox]:checked+label{background-color:var(--bcm-color-prime-blue-6);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-prime-blue-6)}input[type=checkbox]:checked+label:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}input[type=checkbox]:checked+label.checkable:hover{color:var(--bcm-color-grey-1)}input[type=checkbox]:checked+label:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}";
43
-
44
- const BcmOldTag = class {
45
- constructor(hostRef) {
46
- index.registerInstance(this, hostRef);
47
- this.checkedChange = index.createEvent(this, "bcm-old-tag-checked-change", 7);
48
- this.tagDissmisable = index.createEvent(this, "bcm-old-tag-dissmisable", 7);
49
- this.type = 'basic';
50
- this.size = 'size-1';
51
- this.checked = false;
52
- this.color = undefined;
53
- this.value = '';
54
- this.hidden = false;
55
- this._id = (Math.random() * 4).toString(16).replace('.', '');
56
- this.maxWidth = false;
57
- this.customStyle = undefined;
58
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
59
- }
60
- handleClick() {
61
- if (this.type === 'checkable') {
62
- this.checked = !this.checked;
63
- }
64
- }
65
- onCheckedChange(newValue, oldValue) {
66
- this.checkedChange.emit({ newValue, oldValue });
67
- }
68
- getColor(color) {
69
- if ((this.type == 'basic' || this.type == 'dissmisable') && ColorProps[color])
70
- return {
71
- color: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-6'),
72
- borderColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-3'),
73
- backgroundColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-1')
74
- };
75
- }
76
- getSize(size, returnNumber = false) {
77
- if (Number(size) == size) {
78
- size = "size-" + size;
79
- }
80
- if (returnNumber) {
81
- size = size.split("-");
82
- size = size[size.length - 1];
83
- var sizeList = { "1": "12", "2": "14", "3": "16", "4": "20", "5": "24", "6": "30", "7": "38", "8": "46", "9": "56" };
84
- size = sizeList[size];
85
- }
86
- return size;
87
- }
88
- handleClose() {
89
- this.tagDissmisable.emit(this.el);
90
- // this.el.remove()
91
- }
92
- render() {
93
- const { type, color, value, customStyle, size } = this;
94
- const classes = index$1.classnames('tag', this.getSize(size), type);
95
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, this.maxWidth ? 'maxwidth' : null);
96
- if (type === 'add') {
97
- return (index.h(index.Host, { class: hostClasses }, index.h("button", { class: classes }, index.h("span", { class: "left" }, index.h("bcm-icon", { icon: "far fa-plus" })), value)));
98
- }
99
- else if (type === 'dissmisable') {
100
- return (index.h(index.Host, { class: hostClasses }, index.h("span", { class: classes, style: this.getColor(color) }, index.h("span", { class: "value", style: customStyle }, value), index.h("span", { class: "right close-button", onClick: () => this.handleClose(), style: { 'width': (Number(this.getSize(size, true)) + 2) + "px" } }, index.h("svg", { id: "close", style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, index.h("path", { d: "M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" }))))));
101
- }
102
- else if (type === 'checkable') {
103
- return (index.h(index.Host, { class: hostClasses }, index.h("input", { type: "checkbox", checked: this.checked }), index.h("label", { class: classes }, value)));
104
- }
105
- return (index.h(index.Host, { class: hostClasses }, index.h("span", { class: classes, style: this.getColor(color) }, value)));
106
- }
107
- get el() { return index.getElement(this); }
108
- static get watchers() { return {
109
- "checked": ["onCheckedChange"]
110
- }; }
111
- };
112
- BcmOldTag.style = oldTagCss;
113
-
114
- const selectBoxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.select-box{flex:1}:host{z-index:-999;position:absolute;opacity:0;top:-10000;left:-10000;visibility:hidden !important;box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15)}:host(.show){opacity:1;z-index:100000;visibility:visible !important}";
115
-
116
- const BcmSelectBox = class {
117
- constructor(hostRef) {
118
- index.registerInstance(this, hostRef);
119
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
120
- this.hidden = false;
121
- this.isShow = false;
122
- }
123
- disconnectedCallback() { }
124
- componentWillLoad() { }
125
- componentDidLoad() { }
126
- componentWillRender() { }
127
- componentDidRender() { }
128
- componentWillUpdate() { }
129
- componentDidUpdate() { }
130
- handleChangeEvent(event) {
131
- event.stopPropagation();
132
- }
133
- render() {
134
- const classes = index$1.classnames('select-box');
135
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
136
- 'show': this.isShow,
137
- });
138
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("bcm-listbox", { id: "listbox-box" + this._internal_id, class: "listbox-box", _internal_id: this._internal_id, "inner-component": true, "no-caption": true, fullWidth: true, _flex: "true" }))));
139
- }
140
- get el() { return index.getElement(this); }
141
- };
142
- BcmSelectBox.style = selectBoxCss;
143
-
144
- exports.bcm_old_tag = BcmOldTag;
145
- exports.bcm_select_box = BcmSelectBox;