bromcom-ui 2.9.0-rc.2 → 2.9.0-rc.20

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 (520) 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/global/global.js +19 -5
  4. package/dist/bromcom-ui/global/helper/toast.ts +2 -0
  5. package/dist/bromcom-ui/{p-4eb98beb.entry.js → p-027fcca4.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-03a43724.entry.js +5 -0
  7. package/dist/bromcom-ui/p-05b33e0a.entry.js +5 -0
  8. package/dist/bromcom-ui/p-08c75801.js +5 -0
  9. package/dist/bromcom-ui/p-1289ca7c.entry.js +5 -0
  10. package/dist/bromcom-ui/{p-4cd8a7c8.entry.js → p-14cafd64.entry.js} +1 -1
  11. package/dist/bromcom-ui/p-15ac2f9b.entry.js +5 -0
  12. package/dist/bromcom-ui/p-15f4b17b.js +5 -0
  13. package/dist/bromcom-ui/p-170cf07d.js +6 -0
  14. package/dist/bromcom-ui/p-1bc0cea5.entry.js +5 -0
  15. package/dist/bromcom-ui/p-1c344eb6.js +5 -0
  16. package/dist/bromcom-ui/{p-e4477593.entry.js → p-1c801d0c.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-48f85544.entry.js → p-1c9314bd.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-1f431229.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-ee8aa496.js → p-23b91029.js} +1 -1
  21. package/dist/bromcom-ui/p-24ae2291.entry.js +5 -0
  22. package/dist/bromcom-ui/p-2621356f.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-68abefd2.entry.js → p-26290ed5.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-240151d4.entry.js → p-2aaeb247.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
  26. package/dist/bromcom-ui/{p-9e58b42a.js → p-2e003abd.js} +1 -1
  27. package/dist/bromcom-ui/p-3432a82d.js +19 -0
  28. package/dist/bromcom-ui/p-42c4f7ba.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-30788121.entry.js → p-430c0a24.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-4605fc71.entry.js +5 -0
  31. package/dist/bromcom-ui/p-4b963ea9.entry.js +5 -0
  32. package/dist/bromcom-ui/p-4e7dc8c5.entry.js +5 -0
  33. package/dist/bromcom-ui/p-4fc4adf7.entry.js +5 -0
  34. package/dist/bromcom-ui/p-50623c4a.entry.js +5 -0
  35. package/dist/bromcom-ui/p-562262b5.entry.js +5 -0
  36. package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-5699f67d.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-5871767a.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-03eaa3e0.entry.js → p-5afb94fb.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-5b0c89b9.js +5 -0
  40. package/dist/bromcom-ui/p-5b5aa96d.js +5 -0
  41. package/dist/bromcom-ui/{p-795bdb81.entry.js → p-5c1ee978.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-5ea466da.entry.js +5 -0
  43. package/dist/bromcom-ui/p-6037f210.entry.js +5 -0
  44. package/dist/bromcom-ui/p-61b74ccf.entry.js +5 -0
  45. package/dist/bromcom-ui/p-61db1f1f.js +5 -0
  46. package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-62a4589f.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-f81dfa79.entry.js → p-62c15599.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-476474f5.js → p-641cd771.js} +1 -1
  50. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  51. package/dist/bromcom-ui/p-65a4b1e3.js +5 -0
  52. package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-bd51d347.entry.js → p-69260d36.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
  55. package/dist/bromcom-ui/p-72372580.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
  57. package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-7cb30513.js +5 -0
  59. package/dist/bromcom-ui/p-7ceea271.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-7d700834.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-d832cf50.entry.js → p-80ee3d97.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-c3f145fe.entry.js → p-83d1fd59.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-8520b17f.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-1bd9bd4d.entry.js → p-856d05cb.entry.js} +1 -1
  66. package/dist/bromcom-ui/p-85a95c62.entry.js +5 -0
  67. package/dist/bromcom-ui/p-85eedabc.js +5 -0
  68. package/dist/bromcom-ui/p-89779d2b.entry.js +5 -0
  69. package/dist/bromcom-ui/{p-932f2502.entry.js → p-9473c602.entry.js} +1 -1
  70. package/dist/bromcom-ui/p-9850cbce.js +5 -0
  71. package/dist/bromcom-ui/{p-1647559e.entry.js → p-99824717.entry.js} +1 -1
  72. package/dist/bromcom-ui/p-9c43f91b.entry.js +5 -0
  73. package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
  74. package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-a664cc20.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-a9eb0321.js +315 -0
  76. package/dist/bromcom-ui/p-ac77ad0b.entry.js +5 -0
  77. package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
  78. package/dist/bromcom-ui/p-b1f32d16.entry.js +5 -0
  79. package/dist/bromcom-ui/p-b2cabcb8.entry.js +7 -0
  80. package/dist/bromcom-ui/p-b81e8f91.js +5 -0
  81. package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
  82. package/dist/bromcom-ui/p-be19827b.entry.js +5 -0
  83. package/dist/bromcom-ui/{p-c9d687bb.entry.js → p-be1a3642.entry.js} +1 -1
  84. package/dist/bromcom-ui/p-bfb1129e.entry.js +5 -0
  85. package/dist/bromcom-ui/p-c09188a5.entry.js +5 -0
  86. package/dist/bromcom-ui/{p-dc9466d6.entry.js → p-c1a992e7.entry.js} +1 -1
  87. package/dist/bromcom-ui/p-c5647ba3.entry.js +5 -0
  88. package/dist/bromcom-ui/p-ca8f539d.entry.js +5 -0
  89. package/dist/bromcom-ui/p-ccf0872d.js +5 -0
  90. package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
  91. package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
  92. package/dist/bromcom-ui/p-d8cca259.entry.js +5 -0
  93. package/dist/bromcom-ui/p-dadc4391.entry.js +5 -0
  94. package/dist/bromcom-ui/p-daf17207.entry.js +5 -0
  95. package/dist/bromcom-ui/{p-5648b456.entry.js → p-e688b044.entry.js} +1 -1
  96. package/dist/bromcom-ui/p-eacf5375.entry.js +5 -0
  97. package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
  98. package/dist/bromcom-ui/p-edeb7592.js +5 -0
  99. package/dist/bromcom-ui/p-ee5cd93c.entry.js +5 -0
  100. package/dist/bromcom-ui/p-f47f9452.entry.js +5 -0
  101. package/dist/bromcom-ui/{p-84e8e5ee.entry.js → p-f53de6bd.entry.js} +1 -1
  102. package/dist/bromcom-ui/p-f711588b.js +5 -0
  103. package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
  104. package/dist/bromcom-ui/{assets/icon → static}/message-bot.svg +2 -2
  105. package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
  106. package/dist/cjs/{bcm-ab921827.js → bcm-7f703055.js} +33 -31
  107. package/dist/cjs/bcm-accordion.cjs.entry.js +5 -4
  108. package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
  109. package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
  110. package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
  111. package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
  112. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -5
  114. package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
  115. package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_15.cjs.entry.js} +17123 -5494
  116. package/dist/cjs/bcm-card.cjs.entry.js +10 -9
  117. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
  118. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
  119. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
  120. package/dist/cjs/bcm-chip-group.cjs.entry.js +128 -0
  121. package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
  122. package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
  123. package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
  124. package/dist/cjs/bcm-color-input.cjs.entry.js +10 -10
  125. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  126. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  127. package/dist/cjs/bcm-default.cjs.entry.js +5 -4
  128. package/dist/cjs/bcm-drawer.cjs.entry.js +13 -13
  129. package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
  130. package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
  131. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
  132. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  133. package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
  134. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
  135. package/dist/cjs/bcm-item.cjs.entry.js +9 -8
  136. package/dist/cjs/bcm-items.cjs.entry.js +8 -7
  137. package/dist/cjs/bcm-link.cjs.entry.js +6 -6
  138. package/dist/cjs/bcm-list_3.cjs.entry.js +2504 -0
  139. package/dist/cjs/bcm-menu.cjs.entry.js +15 -14
  140. package/dist/cjs/bcm-message.cjs.entry.js +3 -3
  141. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -11
  142. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -10
  143. package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -12
  144. package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
  145. package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
  146. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
  147. package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
  148. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -9
  149. package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
  150. package/dist/cjs/bcm-popover.cjs.entry.js +27 -23
  151. package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
  152. package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -17
  153. package/dist/cjs/bcm-radio.cjs.entry.js +18 -18
  154. package/dist/cjs/bcm-range.cjs.entry.js +10 -9
  155. package/dist/cjs/bcm-result.cjs.entry.js +3 -3
  156. package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
  157. package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
  158. package/dist/cjs/bcm-select.cjs.entry.js +5 -5
  159. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -4
  160. package/dist/cjs/bcm-step.cjs.entry.js +8 -7
  161. package/dist/cjs/bcm-stepper.cjs.entry.js +15 -15
  162. package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
  163. package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -12
  164. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -38
  165. package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -10
  166. package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
  167. package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
  168. package/dist/cjs/bcm-table.cjs.entry.js +7648 -38
  169. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
  170. package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
  171. package/dist/cjs/bcm-tag.cjs.entry.js +19 -18
  172. package/dist/cjs/bcm-text.cjs.entry.js +8 -8
  173. package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
  174. package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
  175. package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
  176. package/dist/cjs/bcm-toast.cjs.entry.js +38 -18
  177. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  178. package/dist/cjs/bromcom-ui.cjs.js +5 -3
  179. package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
  180. package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
  181. package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
  182. package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-b441ea7c.js} +2 -2
  183. package/dist/cjs/{generate-7a3874e6.js → generate-e4ab2b4f.js} +57 -8
  184. package/dist/cjs/global-daef09f5.js +27 -0
  185. package/dist/cjs/index-5279dea2.js +2571 -0
  186. package/dist/cjs/index-7eed931f.js +2146 -0
  187. package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
  188. package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
  189. package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
  190. package/dist/cjs/{input-template-e084bbd6.js → input-template-df664530.js} +8 -8
  191. package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
  192. package/dist/cjs/{json-parse-decarator-4109072c.js → json-parse-decarator-6fc25e8b.js} +2 -2
  193. package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
  194. package/dist/cjs/loader.cjs.js +5 -3
  195. package/dist/cjs/{number-helper-74aaf353.js → number-helper-503ec94b.js} +1 -1
  196. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
  197. package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
  198. package/dist/cjs/package-f2f16e36.js +9 -0
  199. package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-f20020a6.js} +1 -1
  200. package/dist/cjs/{slot-template-d70ea082.js → slot-template-873b0cd5.js} +2 -2
  201. package/dist/cjs/{stepper-states-200cd290.js → stepper-states-7cd499d8.js} +3 -3
  202. package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
  203. package/dist/cjs/{tooltip-helper-78dc5455.js → tooltip-helper-84c3e624.js} +22 -15
  204. package/dist/cjs/{validators-bb44ca0c.js → validators-9f203109.js} +6 -1
  205. package/dist/cjs/watermark-2c23c8f1.js +47499 -0
  206. package/dist/collection/assets/csv.svg +9 -0
  207. package/dist/collection/assets/excel.svg +9 -0
  208. package/dist/collection/assets/pdf.svg +9 -0
  209. package/dist/collection/collection-manifest.json +5 -2
  210. package/dist/collection/components/atoms/avatar/avatar.js +94 -81
  211. package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
  212. package/dist/collection/components/atoms/badge/badge.js +30 -90
  213. package/dist/collection/components/atoms/badge/badge.style.js +51 -0
  214. package/dist/collection/components/atoms/button/button.css +55 -0
  215. package/dist/collection/components/atoms/button/button.js +1 -1
  216. package/dist/collection/components/atoms/icon/icon.js +4 -3
  217. package/dist/collection/{assets/icon → components/atoms/icon/static}/message-bot.svg +2 -2
  218. package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
  219. package/dist/collection/components/molecules/input/input.js +4 -6
  220. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +291 -0
  221. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +751 -0
  222. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
  223. package/dist/collection/components/molecules/items/items.js +1 -1
  224. package/dist/collection/components/molecules/linked/linked.js +17 -29
  225. package/dist/collection/components/molecules/menu/menu.js +1 -0
  226. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  227. package/dist/collection/components/molecules/popover/popover.js +2 -2
  228. package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
  229. package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
  230. package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
  231. package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
  232. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  233. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
  234. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +36 -2
  235. package/dist/collection/components/organism/form/form.js +1 -0
  236. package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
  237. package/dist/collection/components/organism/list/list.css +1 -1
  238. package/dist/collection/components/organism/list/list.js +63 -22
  239. package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
  240. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  241. package/dist/collection/components/other/toast/toast.js +48 -11
  242. package/dist/collection/components/other/typography/typography.js +1 -1
  243. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
  244. package/dist/collection/components/third-parts/rc-picker/date.js +862 -0
  245. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1009 -0
  246. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +550 -0
  247. package/dist/collection/components/third-parts/table/table-definations.js +42 -0
  248. package/dist/collection/components/third-parts/table/table.css +136 -0
  249. package/dist/collection/components/third-parts/table/table.js +288 -0
  250. package/dist/collection/decorators/bcm-decorator.js +28 -0
  251. package/dist/collection/decorators/event-decorator.js +31 -0
  252. package/dist/collection/decorators/index.js +1 -0
  253. package/dist/collection/decorators/is-load-decorator.js +2 -1
  254. package/dist/collection/global/global.js +19 -5
  255. package/dist/collection/global/helper/toast.js +1 -0
  256. package/dist/collection/global/helper/toast.ts +2 -0
  257. package/dist/collection/helper/color-helper.js +27 -1
  258. package/dist/collection/helper/generate.js +54 -4
  259. package/dist/collection/helper/popover-helper.js +13 -9
  260. package/dist/collection/helper/string-helper.js +2 -2
  261. package/dist/collection/helper/tooltip-helper.js +12 -4
  262. package/dist/collection/models/bcm.js +29 -27
  263. package/dist/collection/templates/index.js +2 -0
  264. package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
  265. package/dist/collection/templates/toolbar-template.js +15 -0
  266. package/dist/components/_commonjsHelpers.js +16 -1
  267. package/dist/components/avatar.js +93 -52
  268. package/dist/components/badge.js +77 -45
  269. package/dist/components/bcm-chip-group.js +14 -8
  270. package/dist/components/bcm-date-picker.js +4 -2
  271. package/dist/components/bcm-date.d.ts +11 -0
  272. package/dist/components/bcm-date.js +232 -0
  273. package/dist/components/bcm-form-2.js +4 -1
  274. package/dist/components/bcm-form.js +1 -0
  275. package/dist/components/bcm-input-dropdown.d.ts +11 -0
  276. package/dist/components/bcm-input-dropdown.js +395 -0
  277. package/dist/components/bcm-items.js +1 -1
  278. package/dist/components/bcm-popover.js +14 -10
  279. package/dist/components/bcm-rc-picker.d.ts +11 -0
  280. package/dist/components/bcm-rc-picker.js +10 -0
  281. package/dist/components/bcm-tab-group.js +5 -1
  282. package/dist/components/bcm-tab-item-header.js +11 -26
  283. package/dist/components/bcm-table.js +55128 -41
  284. package/dist/components/bcm-textarea.js +1 -214
  285. package/dist/components/bcm-time-picker.js +4 -2
  286. package/dist/components/bcm-toast.js +30 -10
  287. package/dist/components/bcm.js +29 -27
  288. package/dist/components/button.js +1 -1
  289. package/dist/components/chip.js +12 -6
  290. package/dist/components/color-helper.js +27 -1
  291. package/dist/components/colors2.js +1 -1
  292. package/dist/components/datetime-picker.js +20 -3
  293. package/dist/components/generate.js +57 -7
  294. package/dist/components/icon.js +4 -3
  295. package/dist/components/index.d.ts +4 -1
  296. package/dist/components/index.js +17 -3
  297. package/dist/components/index3.js +5 -1
  298. package/dist/components/index5.js +2569 -0
  299. package/dist/components/input.js +4 -6
  300. package/dist/components/is-load-decorator.js +2 -1
  301. package/dist/components/linked.js +17 -11
  302. package/dist/components/list.js +22 -8
  303. package/dist/components/menu.js +1 -0
  304. package/dist/components/raf.js +1594 -0
  305. package/dist/components/rc-overflow.js +32 -1557
  306. package/dist/components/rc-picker.js +14030 -0
  307. package/dist/components/string-helper.js +2 -2
  308. package/dist/components/textarea.js +220 -0
  309. package/dist/components/tooltip-helper.js +12 -4
  310. package/dist/components/tooltip.js +1 -1
  311. package/dist/components/typography.js +1 -1
  312. package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
  313. package/dist/esm/bcm-accordion.entry.js +5 -4
  314. package/dist/esm/bcm-alert.entry.js +9 -8
  315. package/dist/esm/bcm-attendance.entry.js +5 -4
  316. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  317. package/dist/esm/bcm-avatar_2.entry.js +204 -0
  318. package/dist/esm/bcm-box.entry.js +1 -1
  319. package/dist/esm/bcm-breadcrumb.entry.js +6 -5
  320. package/dist/esm/bcm-button-group.entry.js +8 -7
  321. package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_15.entry.js} +17114 -5485
  322. package/dist/esm/bcm-card.entry.js +10 -9
  323. package/dist/esm/bcm-checkbox-group.entry.js +12 -11
  324. package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -6
  325. package/dist/esm/bcm-checkbox_2.entry.js +13 -12
  326. package/dist/esm/bcm-chip-group.entry.js +124 -0
  327. package/dist/esm/bcm-chip.entry.js +87 -0
  328. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  329. package/dist/esm/bcm-collapse.entry.js +6 -5
  330. package/dist/esm/bcm-color-input.entry.js +10 -10
  331. package/dist/esm/bcm-colorpicker.entry.js +3 -3
  332. package/dist/esm/bcm-content.entry.js +1 -1
  333. package/dist/esm/{bcm-9f50af9c.js → bcm-d45dc47d.js} +30 -28
  334. package/dist/esm/bcm-default.entry.js +5 -4
  335. package/dist/esm/bcm-drawer.entry.js +11 -11
  336. package/dist/esm/bcm-dropdown.entry.js +9 -8
  337. package/dist/esm/bcm-error-layout.entry.js +3 -3
  338. package/dist/esm/bcm-expansion-panel.entry.js +9 -8
  339. package/dist/esm/bcm-form-group.entry.js +1 -1
  340. package/dist/esm/bcm-input-custom.entry.js +6 -5
  341. package/dist/esm/bcm-input-dropdown.entry.js +305 -0
  342. package/dist/esm/bcm-item.entry.js +8 -7
  343. package/dist/esm/bcm-items.entry.js +8 -7
  344. package/dist/esm/bcm-link.entry.js +4 -4
  345. package/dist/esm/bcm-list_3.entry.js +2498 -0
  346. package/dist/esm/bcm-menu.entry.js +15 -14
  347. package/dist/esm/bcm-message.entry.js +3 -3
  348. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  349. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  350. package/dist/esm/bcm-modal-2.entry.js +11 -11
  351. package/dist/esm/bcm-modal.entry.js +9 -8
  352. package/dist/esm/bcm-notification.entry.js +3 -3
  353. package/dist/esm/bcm-old-tag_2.entry.js +3 -3
  354. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  355. package/dist/esm/bcm-popconfirm-box.entry.js +10 -9
  356. package/dist/esm/bcm-popconfirm.entry.js +7 -6
  357. package/dist/esm/bcm-popover.entry.js +25 -21
  358. package/dist/esm/bcm-progress.entry.js +8 -7
  359. package/dist/esm/bcm-radio-group.entry.js +13 -13
  360. package/dist/esm/bcm-radio.entry.js +11 -11
  361. package/dist/esm/bcm-range.entry.js +7 -6
  362. package/dist/esm/bcm-result.entry.js +3 -3
  363. package/dist/esm/bcm-select-group.entry.js +3 -3
  364. package/dist/esm/bcm-select-option.entry.js +3 -3
  365. package/dist/esm/bcm-select.entry.js +5 -5
  366. package/dist/esm/bcm-skeleton.entry.js +5 -4
  367. package/dist/esm/bcm-step.entry.js +8 -7
  368. package/dist/esm/bcm-stepper.entry.js +13 -13
  369. package/dist/esm/bcm-switch.entry.js +9 -8
  370. package/dist/esm/bcm-tab-group.entry.js +15 -11
  371. package/dist/esm/bcm-tab-item-header.entry.js +22 -37
  372. package/dist/esm/bcm-tab-item.entry.js +10 -10
  373. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  374. package/dist/esm/bcm-tab.entry.js +3 -3
  375. package/dist/esm/bcm-table.entry.js +7649 -39
  376. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  377. package/dist/esm/bcm-tabs.entry.js +3 -3
  378. package/dist/esm/bcm-tag.entry.js +8 -7
  379. package/dist/esm/bcm-text.entry.js +8 -8
  380. package/dist/esm/bcm-textarea.entry.js +10 -9
  381. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  382. package/dist/esm/bcm-timeline.entry.js +3 -3
  383. package/dist/esm/bcm-toast.entry.js +37 -17
  384. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  385. package/dist/esm/bromcom-ui.js +6 -4
  386. package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
  387. package/dist/esm/{color-helper-e8ce23d7.js → color-helper-845ba523.js} +28 -2
  388. package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
  389. package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
  390. package/dist/esm/{generate-1d92d93f.js → generate-57891049.js} +56 -7
  391. package/dist/esm/global-8776af02.js +25 -0
  392. package/dist/esm/{index-ed9652af.js → index-00c8a8f7.js} +1 -1
  393. package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
  394. package/dist/esm/index-3bc8c6e3.js +2569 -0
  395. package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
  396. package/dist/esm/index-e4b6a4ce.js +2127 -0
  397. package/dist/esm/{input-template-56856d9f.js → input-template-4fa1fd77.js} +4 -4
  398. package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
  399. package/dist/esm/{json-parse-decarator-e7df9b9c.js → json-parse-decarator-7b5467e6.js} +2 -2
  400. package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
  401. package/dist/esm/loader.js +6 -4
  402. package/dist/esm/{number-helper-81eade81.js → number-helper-be8c3021.js} +1 -1
  403. package/dist/esm/old-bcm-popover-box.entry.js +11 -10
  404. package/dist/esm/old-bcm-popover.entry.js +7 -6
  405. package/dist/esm/package-9a6c49c8.js +7 -0
  406. package/dist/esm/{popover-placement-78f86f15.js → popover-placement-be68c848.js} +1 -1
  407. package/dist/esm/{slot-template-672e941d.js → slot-template-fcc7846e.js} +2 -2
  408. package/dist/esm/{stepper-states-0f148601.js → stepper-states-a8cd98ea.js} +3 -3
  409. package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
  410. package/dist/esm/{tooltip-helper-4ca9442e.js → tooltip-helper-4a1a3abe.js} +19 -12
  411. package/dist/esm/{validators-7e3c0c33.js → validators-37ce5ff0.js} +6 -2
  412. package/dist/esm/watermark-f2c6a1f9.js +47477 -0
  413. package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
  414. package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
  415. package/dist/types/components/atoms/badge/badge.d.ts +3 -7
  416. package/dist/types/components/atoms/badge/badge.style.d.ts +174 -0
  417. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +51 -0
  418. package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
  419. package/dist/types/components/molecules/linked/linked.d.ts +2 -3
  420. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  421. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +2 -0
  422. package/dist/types/components/organism/list/list.d.ts +4 -0
  423. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  424. package/dist/types/components/other/toast/toast.d.ts +2 -0
  425. package/dist/types/components/third-parts/rc-picker/date.d.ts +175 -0
  426. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +47 -0
  427. package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
  428. package/dist/types/components/third-parts/table/table.d.ts +37 -0
  429. package/dist/types/components.d.ts +255 -16
  430. package/dist/types/decorators/bcm-decorator.d.ts +2 -0
  431. package/dist/types/decorators/event-decorator.d.ts +2 -0
  432. package/dist/types/decorators/index.d.ts +1 -0
  433. package/dist/types/global/helper/toast.d.ts +2 -0
  434. package/dist/types/helper/color-helper.d.ts +22 -2
  435. package/dist/types/helper/generate.d.ts +21 -1
  436. package/dist/types/helper/popover-helper.d.ts +0 -5
  437. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  438. package/dist/types/models/bcm.d.ts +256 -236
  439. package/dist/types/templates/index.d.ts +2 -0
  440. package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
  441. package/dist/types/templates/toolbar-template.d.ts +13 -0
  442. package/helper/toast.d.ts +2 -0
  443. package/helper/toast.d.ts.map +1 -1
  444. package/helper/toast.js +1 -0
  445. package/package.json +15 -6
  446. package/dist/bromcom-ui/p-013cab7e.entry.js +0 -5
  447. package/dist/bromcom-ui/p-086b7209.entry.js +0 -5
  448. package/dist/bromcom-ui/p-09fb72c8.entry.js +0 -19
  449. package/dist/bromcom-ui/p-10c75cb9.entry.js +0 -5
  450. package/dist/bromcom-ui/p-1246d793.entry.js +0 -5
  451. package/dist/bromcom-ui/p-1992f372.entry.js +0 -5
  452. package/dist/bromcom-ui/p-21fbc7e9.entry.js +0 -5
  453. package/dist/bromcom-ui/p-254c9a65.entry.js +0 -5
  454. package/dist/bromcom-ui/p-2640e867.entry.js +0 -5
  455. package/dist/bromcom-ui/p-2c95ea4e.entry.js +0 -5
  456. package/dist/bromcom-ui/p-2d90806c.entry.js +0 -5
  457. package/dist/bromcom-ui/p-2fc1a879.js +0 -5
  458. package/dist/bromcom-ui/p-30a3320f.entry.js +0 -5
  459. package/dist/bromcom-ui/p-3be85482.entry.js +0 -5
  460. package/dist/bromcom-ui/p-4d80d43d.entry.js +0 -5
  461. package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
  462. package/dist/bromcom-ui/p-4fb382d4.entry.js +0 -5
  463. package/dist/bromcom-ui/p-4ffd862d.entry.js +0 -5
  464. package/dist/bromcom-ui/p-54c0916c.js +0 -5
  465. package/dist/bromcom-ui/p-5a666fa2.entry.js +0 -5
  466. package/dist/bromcom-ui/p-60d506ec.entry.js +0 -5
  467. package/dist/bromcom-ui/p-626a65e9.js +0 -5
  468. package/dist/bromcom-ui/p-6ae7abc5.entry.js +0 -5
  469. package/dist/bromcom-ui/p-6d7fe687.js +0 -6
  470. package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
  471. package/dist/bromcom-ui/p-74b2d896.js +0 -5
  472. package/dist/bromcom-ui/p-75985eee.entry.js +0 -5
  473. package/dist/bromcom-ui/p-772a214f.js +0 -5
  474. package/dist/bromcom-ui/p-7d9ac287.entry.js +0 -5
  475. package/dist/bromcom-ui/p-843905c8.js +0 -5
  476. package/dist/bromcom-ui/p-8b85e07e.entry.js +0 -5
  477. package/dist/bromcom-ui/p-8c9d109c.entry.js +0 -5
  478. package/dist/bromcom-ui/p-8df71f89.js +0 -5
  479. package/dist/bromcom-ui/p-92030c09.entry.js +0 -5
  480. package/dist/bromcom-ui/p-a24f0a35.js +0 -5
  481. package/dist/bromcom-ui/p-a429e85b.js +0 -5
  482. package/dist/bromcom-ui/p-a56e8c98.js +0 -5
  483. package/dist/bromcom-ui/p-a9ae49af.entry.js +0 -5
  484. package/dist/bromcom-ui/p-af79c33b.entry.js +0 -5
  485. package/dist/bromcom-ui/p-b838f085.entry.js +0 -5
  486. package/dist/bromcom-ui/p-bca6437e.entry.js +0 -5
  487. package/dist/bromcom-ui/p-c43622d4.entry.js +0 -5
  488. package/dist/bromcom-ui/p-c49d038e.js +0 -5
  489. package/dist/bromcom-ui/p-c773080c.entry.js +0 -5
  490. package/dist/bromcom-ui/p-cacd60e0.entry.js +0 -5
  491. package/dist/bromcom-ui/p-d50efcac.entry.js +0 -5
  492. package/dist/bromcom-ui/p-d65a1e21.js +0 -11
  493. package/dist/bromcom-ui/p-d6953024.js +0 -5
  494. package/dist/bromcom-ui/p-d9211598.entry.js +0 -5
  495. package/dist/bromcom-ui/p-dc0cd6dc.entry.js +0 -5
  496. package/dist/bromcom-ui/p-e4045493.entry.js +0 -5
  497. package/dist/bromcom-ui/p-e8578e1b.entry.js +0 -5
  498. package/dist/bromcom-ui/p-f316a3df.entry.js +0 -5
  499. package/dist/bromcom-ui/p-f4defa95.entry.js +0 -5
  500. package/dist/bromcom-ui/p-fc0e0762.entry.js +0 -5
  501. package/dist/bromcom-ui/p-ff4fb57e.entry.js +0 -5
  502. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -180
  503. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1434
  504. package/dist/cjs/bcm-form-2.cjs.entry.js +0 -208
  505. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  506. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -148
  507. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  508. package/dist/cjs/global-b0d21446.js +0 -15
  509. package/dist/collection/components/atoms/avatar/avatar.css +0 -198
  510. package/dist/collection/components/atoms/badge/badge.css +0 -231
  511. package/dist/collection/components/other/data-table/table.css +0 -130
  512. package/dist/collection/components/other/data-table/table.js +0 -88
  513. package/dist/esm/bcm-date-picker.entry.js +0 -176
  514. package/dist/esm/bcm-datetime-picker.entry.js +0 -1430
  515. package/dist/esm/bcm-form-2.entry.js +0 -204
  516. package/dist/esm/bcm-old-input.entry.js +0 -393
  517. package/dist/esm/bcm-time-picker.entry.js +0 -144
  518. package/dist/esm/datetime-helper-df25808a.js +0 -9
  519. package/dist/esm/global-4fad925b.js +0 -13
  520. package/dist/types/components/other/data-table/table.d.ts +0 -8
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as c,c as e,h as o,H as i,g as r}from"./p-6d7fe687.js";import{c as b}from"./p-d65a1e21.js";import{C as a}from"./p-a56e8c98.js";import{G as n}from"./p-d6953024.js";import{S as l}from"./p-74b2d896.js";import{a as t}from"./p-a429e85b.js";import{d as m}from"./p-8c018ae0.js";import{C as h}from"./p-843905c8.js";import{I as s}from"./p-54c0916c.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";import"./p-8d0ca8c2.js";import"./p-436364c8.js";const x=class{constructor(o){c(this,o),this.blur=e(this,"bcm-blur",7),this.focus=e(this,"bcm-focus",7),this.change=e(this,"bcm-change",7),this.changeCheckbox=e(this,"bcm-change-checkbox",7),this._id=n.UID(),this.inGroup=!1,this.value=!1,this.checked=!1,this.name=void 0,this.disabled=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.readonly=!1,this.size=t.Size.medium,this.indeterminate=null,this.color="blue",this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=t.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}componentDidRender(){this.inputElement.checked=this.checked}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async setClear(){return this.check(!1),this.handleChange(),await m(10),Promise.resolve()}async resetCaption(){return await m(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await m(10),Promise.resolve()}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.indeterminate||(this.changeCheckbox.emit(),this.change.emit({name:this.name,value:this.checked}))}watchIndeterminate(c,e){c!=e&&(this.inputElement.checked=this.indeterminate==t.IndeterminateType.determinate,this.handleChange())}async set(c){"boolean"==typeof c&&await this.check(c)}async get(){return this.checked||!1}async check(c=!0){this.inputElement.checked=c,this.handleChange()}handleKeyUp(c){if(c.keyCode==t.KeyCode.space||c.keyCode==t.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),c.stopPropagation(),c.preventDefault(),!1}watchChecked(){this.checked&&this.resetCaption(),this.value=this.checked}setColor(c=this.color){if(!c)return;const e="--bcm-checkbox";return{[`${e}-primary-color-default`]:h.dsColor(c+"-500"),[`${e}-primary-color-hover`]:h.dsColor(c+"-600"),[`${e}-primary-color-focus-visible`]:h.dsColor(c+"-800"),[`${e}-primary-color-active`]:h.dsColor(c+"-700"),[`${e}-secondary-color-default`]:h.dsColor("white"),[`${e}-secondary-color-hover`]:h.dsColor("slate-50"),[`${e}-secondary-color-focus-visible`]:h.dsColor("slate-50"),[`${e}-secondary-color-active`]:h.dsColor("slate-50")}}render(){const{label:c,_id:e,indeterminate:r,hidden:n,disabled:m,checked:h,readonly:s,required:x,caption:d,captionError:p,captionType:k,noCaption:_,size:g}=this,u=b("bcm-checkbox",`bcm-checkbox-size-${g}`,{error:k==t.Status.error,hidden:n,checked:h,disabled:m,required:x,readonly:s}),v=b("bcm-checkbox__label-icon","bcm-checkbox__label-icon-lite","bcm-checkbox__label-icon-"+r,{"bcm-checkbox__label-icon-checked":h}),f=b("bcm-checkbox__label"),y=b("bcm-checkbox__input");return o(i,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),style:this.setColor(this.color),class:u,disabled:m},o("span",{hidden:!0},o("slot",null)),c&&o("bcm-label",{htmlFor:`input-${e}`,type:k,value:c,required:x}),o("div",{class:y},o("input",{id:`input-${e}`,type:"checkbox",checked:h,disabled:m,required:x,readonly:s,onChange:()=>{!m&&!s&&this.handleChange()},ref:c=>this.inputElement=c}),o("label",{class:f,htmlFor:`input-${e}`},o("span",{class:v},o("bcm-icon",{icon:"far fa-check"})),o(l,{className:"slot"}))),o(a,{noCaption:_,captionType:k,captionError:p,caption:d}))}get el(){return r(this)}static get watchers(){return{indeterminate:["watchIndeterminate"],checked:["watchChecked"]}}};(function(c,e,o,i){var r,b=arguments.length,a=b<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(c,e,o,i);else for(var n=c.length-1;n>=0;n--)(r=c[n])&&(a=(b<3?r(a):b>3?r(e,o,a):r(e,o))||a);b>3&&a&&Object.defineProperty(e,o,a)})([s()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:"";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}';const d=class{constructor(e){c(this,e)}render(){return o(i,null,o("slot",null))}get el(){return r(this)}};export{x as bcm_checkbox,d as bcm_typography}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as s,h as i,H as e,g as a}from"./p-6d7fe687.js";import{c as w}from"./p-d65a1e21.js";import{G as o}from"./p-d6953024.js";import{S as h}from"./p-8d0ca8c2.js";import{a as r}from"./p-a429e85b.js";import{d as n}from"./p-8c018ae0.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const c=class{constructor(i){t(this,i),this.bcmToastClose=s(this,"bcm-toast-close",7),this.bcmToastOpen=s(this,"bcm-toast-open",7),this.bcmToastView=s(this,"bcm-toast-view",7),this._id=o.UID(),this.status=void 0,this.message="",this.description="",this.duration=3e3,this.position=r.Placement.bottom,this.messageIcon=void 0,this.viewButton=!1,this.closeButton=!0,this.visible=!1,this.visibleContainer=!1}async show(){const t=document.getElementById(this._id+"-container");return t&&document.body.appendChild(t),this.visible=!0,await n(50),this.visibleContainer=!0,this.bcmToastOpen.emit(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((()=>this.hide()),this.duration),this.el}async hide(){this.visibleContainer=!1,clearTimeout(this.timer),this.bcmToastClose.emit(),await n(100),this.visible=!1}handleMouseEnter(){clearTimeout(this.timer)}handleMouseLeave(){this.visible&&(this.timer=setTimeout((()=>this.hide()),1e3))}render(){return i(e,{class:"tw-hidden"},i("div",{class:w({"tw-hidden":!this.visible}),id:this._id+"-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{class:w("tw-pointer-events-auto tw-transform tw-transition tw-duration-300 tw-ease-in-out","tw-flex tw-min-w-[256px] tw-max-w-[420px] tw-flex-col tw-gap-2 tw-rounded-lg tw-border tw-font-sans tw-font-normal tw-shadow-2","tw-border-gray-300 tw-bg-white tw-text-slate-600",{"tw-p-4":!this.description,"tw-p-6":this.description},"tw-fixed tw-z-50","tw-transform tw-transition tw-duration-300 tw-ease-in-out ",{"tw-inset-x-0 tw-top-4 tw-mx-auto":this.position===r.Placement.top,"tw-inset-x-0 tw-bottom-4 tw-mx-auto":this.position===r.Placement.bottom,"tw-top-4 tw-left-4":this.position===r.Placement["top-start"],"tw-top-4 tw-right-4":this.position===r.Placement["top-end"],"tw-bottom-4 tw-left-4":this.position===r.Placement["bottom-start"],"tw-bottom-4 tw-right-4":this.position===r.Placement["bottom-end"],"tw-translate-y-0 tw-opacity-100 ":this.visibleContainer,"tw-opacity-0":!this.visibleContainer,"tw-translate-y-[-100%]":!this.visibleContainer&&"top"===this.position.split("-")[0],"tw-translate-y-[100%]":!this.visibleContainer&&"bottom"===this.position.split("-")[0]})},i("div",{class:"tw-flex tw-items-center tw-justify-between tw-gap-5"},i("div",{class:"tw-flex tw-items-center tw-gap-3 "},this.status&&i("i",{class:w("tw-text-6",this.messageIcon?this.messageIcon:"far",{"tw-text-emerald-500":"success"===this.status,"tw-text-red-500":"error"===this.status,"tw-text-amber-500":"warning"===this.status,"tw-text-blue-500":"info"===this.status},{"fa-check-circle":!this.messageIcon&&"success"===this.status,"fa-exclamation-circle":!this.messageIcon&&"error"===this.status,"fa-exclamation-triangle":!this.messageIcon&&"warning"===this.status,"fa-info-circle":!this.messageIcon&&"info"===this.status})}),i("span",{class:w({"tw-text-4":!this.description,"tw-text-6 tw-font-medium":this.description})},!this.description&&this.status&&i("span",null,h.capitalize(this.status),": "),this.message)),i("div",{class:"tw-flex tw-items-baseline tw-gap-2"},this.viewButton&&i("button",{onClick:()=>this.bcmToastView.emit(),title:"View details",class:w("tw-cursor-pointer tw-rounded tw-bg-transparent tw-p-0 tw-px-1 tw-text-4 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200","tw-transition tw-duration-300 tw-ease-in-out",{"tw-font-medium":this.description})},"View"),this.closeButton&&i("button",{title:"Close",onClick:()=>this.hide(),class:w("tw-rounded tw-bg-transparent tw-p-0","tw-flex tw-h-6 tw-w-6 tw-cursor-pointer tw-items-center tw-justify-center tw-text-3 tw-text-inherit","hover:tw-bg-gray-100 hover:tw-text-slate-800","active:tw-bg-gray-200")},i("i",{class:"fal fa-times"})))),this.description&&i("div",{class:"tw-text-3 "},this.description),i("slot",null))))}get el(){return a(this)}};export{c as bcm_toast}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as e,h as i,H as t,g as n}from"./p-6d7fe687.js";import{G as p}from"./p-d6953024.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const a=class{constructor(i){e(this,i),this._id=p.UID(),this.multi=!1}componentDidRender(){this.multi||this.checkExpandedCount()}checkExpandedCount(){var e,i;const t=this.el.querySelectorAll(".bcm-expansion-panel");if(t&&Array.from(t).map((e=>e.expanded)).filter(Boolean).length>1){const n=null===(i=null===(e=Array.from(t).filter((e=>e.expanded)))||void 0===e?void 0:e.pop())||void 0===i?void 0:i.id;Array.from(t).forEach((e=>{e.id!==n&&(e.expanded=!1)}))}}open(e){if(this.multi)return;const i=e.detail,t=this.el.querySelectorAll(".bcm-expansion-panel");t&&t.forEach((e=>{e.id!==i&&(e.expanded=!1)}))}isLoad(e){var i,t,n;if(!this.multi){var p=(null===(t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.parentElement)||void 0===t?void 0:t.id)||null;"BCM-EXPANSION-PANEL"==((null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.nodeName)||null)&&this._id==p&&this.checkExpandedCount()}}render(){return i(t,{id:this._id},i("slot",null))}get el(){return n(this)}};a.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{a as bcm_accordion}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-6d7fe687.js";import{I as n}from"./p-54c0916c.js";import{G as r,s as h}from"./p-d6953024.js";import{S as p}from"./p-8d0ca8c2.js";import{a as l}from"./p-a429e85b.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX","BCM-CHIP-GROUP"];const x=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=l.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>c.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],x.prototype,"el",void 0),x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{x as bcm_form_2}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as e,c as i,h as r,H as t,g as a}from"./p-6d7fe687.js";import{c as n}from"./p-d65a1e21.js";import{G as s}from"./p-d6953024.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const c=class{constructor(r){e(this,r),this.bcmBreadcrumb=i(this,"bcm-breadcrumb-click",7),this.items=void 0,this.seperator="/",this.hidden=!1,this.isOpen=!1}handleClickOutside(e){this.el.contains(e.target)||this.isOpen&&(this.isOpen=!1)}handleOpen(e){this.isOpen=this.isOpen!=e&&e}parseItem(e,i){return e.index=i,e.id=e.id||s.UID(),e}render(){const{items:e,seperator:i,hidden:a}=this,c=n("bcm-breadcrumb","size-2",{hidden:a}),o=i=>r("bcm-link",Object.assign({id:i.id||s.UID(),onClick:()=>this.bcmBreadcrumb.emit(i),target:i.target&&i.index<e.length-1?i.target:"_self"},(1==i.child||i.index<e.length-1)&&i.href&&{href:i.href},{icon:i.icon?i.icon:null,class:n({active:i.index===e.length-1,"is-link":(1==i.child||i.index<e.length-1)&&i.href})}),i.label?i.label:null),m=i=>r("details",{class:n("bcm-breadcrumb__dropdown-item",{active:i.index===e.length-1,open:this.isOpen===i.id}),id:i.id,open:this.isOpen===i.id},r("summary",{onClick:()=>this.handleOpen(i.id),class:this.isOpen===i.id&&"open"},r("span",{class:"is-link"},r(o,Object.assign({},{icon:i.icon,label:i.label,href:"javascript:void(0)",index:i.index})),r("bcm-icon",{icon:"fas fa-caret-down"}))),r("div",{class:"bcm-breadcrumb__dropdown-submenu"},i.dropdown.map((e=>r("span",{class:"size-2 dropdown-item"},r(o,Object.assign({},e,{child:!0})))))));return r(t,{class:c},r("span",{hidden:!0},r("slot",null)),e.map(((t,a)=>r("span",{class:"bcm-breadcrumb__item"},t.dropdown&&t.dropdown.length>0?m(this.parseItem(t,a)):o(this.parseItem(t,a)),a<e.length-1?r("span",{class:"seperator"},i):null))))}get el(){return a(this)}};c.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-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%}';export{c as bcm_breadcrumb}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,c as e,h as i,H as o,g as r}from"./p-6d7fe687.js";import{G as n,s}from"./p-d6953024.js";import{a}from"./p-a429e85b.js";import{c as p}from"./p-d65a1e21.js";import{S as c}from"./p-8d0ca8c2.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const l=class{constructor(i){t(this,i),this.bcmChange=e(this,"bcm-change",7),this._id=n.UID(),this.size=a.Size.medium,this.type="button",this.color=void 0,this.disabled=void 0,this.direction=a.Direction.horizontal}componentWillLoad(){const{size:t,color:e}=this,i=this.getButtons();(null==i?void 0:i.length)&&i.forEach((i=>{let o=c.elementBooleanCheck(this.el.getAttribute("disabled"))||i.getAttribute("disabled");e&&i.setAttribute("color",e),t&&i.setAttribute("size",t),o&&(i.disabled=!0)}))}getButtons(){return s((()=>Array.from(this.el.querySelectorAll("bcm-button"))),[])}radioControl(t){const e=this.getButtons();(null==e?void 0:e.length)&&e.forEach((e=>{e.checked=e.id==t}))}checkboxControl(t){const e=this.getButtons();(null==e?void 0:e.length)&&e.forEach((e=>{e.checked=e.id==t?e.checked=!e.checked:e.checked}))}listenButton({target:t}){if(t.id){switch(this.type){case"radio":this.radioControl(t.id);break;case"checkbox":this.checkboxControl(t.id)}this.handleChange()}}handleChange(){const t=this.getButtons().filter(Boolean).map((t=>({id:t.id,checked:t.checked})));this.bcmChange.emit(t)}render(){const t=p("bcm-button-group",{"bcm-button-group__vertical":this.direction===a.Direction.vertical});return i(o,{class:t},i("slot",null))}get el(){return r(this)}};l.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-button-group{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:fit-content;background-color:var(--bcm-new-ds-color-slate-300);border:1px solid var(--bcm-new-ds-color-slate-300);gap:1px;border-radius:4px}.bcm-button-group .bcm-button__container{border-radius:0;border:none}.bcm-button-group .bcm-button:first-child .bcm-button__container{border-top-left-radius:4px;border-bottom-left-radius:4px}.bcm-button-group .bcm-button:last-child .bcm-button__container{border-top-right-radius:4px;border-bottom-right-radius:4px}.bcm-button-group__vertical{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap}.bcm-button-group__vertical .bcm-button{width:100%}.bcm-button-group__vertical .bcm-button__container{width:100%;border-radius:0}.bcm-button-group__vertical .bcm-button:first-child .bcm-button__container{border-radius:4px 4px 0 0}.bcm-button-group__vertical .bcm-button:last-child .bcm-button__container{border-radius:0 0 4px 4px}';export{l as bcm_button_group}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as e,h as i,H as t,g as a}from"./p-6d7fe687.js";import{c as p}from"./p-d65a1e21.js";import{C as r}from"./p-843905c8.js";import{G as s}from"./p-d6953024.js";import{S as o}from"./p-8d0ca8c2.js";import{S as n}from"./p-74b2d896.js";import"./p-6f56f8ca.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-4aa0e6b1.js";import"./p-a429e85b.js";const x=class{constructor(i){e(this,i),this.modalSlots={},this._id=s.UID(),this.hidden=!1,this.color="slate",this.header=void 0,this.footer=void 0}connectedCallback(){const e=this.el.querySelectorAll("bcm-card-header, bcm-card-footer");e&&e.forEach((e=>{let i=o.lowercase(o.split(e.nodeName,"-").pop());if(e.slot=i,"header"===i){let i=e.getAttribute("color");i&&(i="white"==i?i:i+"-50",e.setAttribute("style",`background-color: ${r.dsColor(i)}`))}e.classList.add(`bcm-card__${i}`),this.modalSlots[i]=e}))}render(){const e=p("bcm-card",this.hidden?"hidden":null);return i(t,{class:e},i((()=>this.modalSlots.header&&i("slot",{name:"header"})),null),i("div",{class:"bcm-card__body"},i(n,null)),i((()=>this.modalSlots.footer&&i("slot",{name:"footer"})),null))}get el(){return a(this)}};x.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-card{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:block;width:100%;background-color:var(--bcm-new-ds-color-white);border-radius:8px;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1);box-sizing:border-box}.bcm-card__header,.bcm-card__body,.bcm-card__footer{display:block;width:100%}.bcm-card__header{border-radius:8px 8px 0 0;padding:12px 24px;color:var(--bcm-new-ds-color-slate-700);font-weight:600}.bcm-card__body{padding:12px 24px}.bcm-card__footer{padding:12px 24px;border-radius:0 0 8px 8px}';export{x as bcm_card}
@@ -1,180 +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-ddfd6d8f.js');
10
- const index$1 = require('./index-fdbf5226.js');
11
- const isLoadDecorator = require('./is-load-decorator-137dded1.js');
12
- const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
13
- const generate = require('./generate-7a3874e6.js');
14
- const bcm = require('./bcm-ab921827.js');
15
- const utils = require('./utils-fc077139.js');
16
- require('./_commonjsHelpers-bd20f4c0.js');
17
- require('./colors-e1d142ad.js');
18
-
19
- 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-block;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
20
-
21
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
24
- r = Reflect.decorate(decorators, target, key, desc);
25
- else
26
- for (var i = decorators.length - 1; i >= 0; i--)
27
- if (d = decorators[i])
28
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
29
- return c > 3 && r && Object.defineProperty(target, key, r), r;
30
- };
31
- const BcmDatePicker = class {
32
- constructor(hostRef) {
33
- index.registerInstance(this, hostRef);
34
- this._id = generate.Generate.UID();
35
- this.date = new Date();
36
- this.value = undefined;
37
- this.endDate = null;
38
- this.range = false;
39
- this.hidden = false;
40
- this.name = undefined;
41
- this.fullWidth = false;
42
- this.required = false;
43
- this.label = undefined;
44
- this.placeholder = undefined;
45
- this.disabledDates = '';
46
- this.disabled = false;
47
- this.noCaption = false;
48
- this.caption = '';
49
- this.captionError = undefined;
50
- this.captionType = 'default';
51
- this.alignment = undefined;
52
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
53
- this.placement = bcm.Bcm$1.Placement['bottom-start'];
54
- this.linkedComponent = undefined;
55
- this.clearable = false;
56
- this.stateStartDate = null;
57
- this.stateEndDate = null;
58
- }
59
- handleStartDateChange() {
60
- this.handleDate();
61
- }
62
- handleEndDateChange() {
63
- this.handleDate();
64
- }
65
- /**
66
- * @desc
67
- */
68
- handlePickerLoad() {
69
- this.value = this.picker.value;
70
- }
71
- /**
72
- * @desc
73
- * @param event
74
- */
75
- handlePickerChange(event) {
76
- this.value = event.detail;
77
- }
78
- /**
79
- * @desc
80
- * @param value
81
- */
82
- async set(value) {
83
- return this.picker.set(value);
84
- }
85
- async get() {
86
- var _a;
87
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
88
- }
89
- /**
90
- * @desc
91
- * @param disabled
92
- */
93
- async setDisabled(disabled) {
94
- this.disabled = disabled;
95
- }
96
- async setClear() {
97
- await this.picker.setClear();
98
- await utils.delay(10);
99
- return Promise.resolve();
100
- }
101
- async setStartDate(dateOrTime) {
102
- if (dateOrTime) {
103
- dateOrTime = datetimeHelper.DateTimeHelper.convertTimeStampToDate(new Date(dateOrTime).getTime());
104
- this.stateStartDate = dateOrTime;
105
- }
106
- else {
107
- this.setClear();
108
- }
109
- }
110
- async setEndDate(dateOrTime) {
111
- if (dateOrTime) {
112
- dateOrTime = datetimeHelper.DateTimeHelper.convertTimeStampToDate(new Date(dateOrTime).getTime());
113
- this.stateEndDate = dateOrTime;
114
- }
115
- else {
116
- this.setClear();
117
- }
118
- }
119
- /* mp --- */
120
- handleDate() {
121
- if (this.range) {
122
- if (this.stateStartDate && this.stateEndDate) {
123
- this.set(this.stateStartDate + '-' + this.stateEndDate);
124
- }
125
- }
126
- else {
127
- this.set(this.stateStartDate);
128
- }
129
- }
130
- /**
131
- * @desc
132
- */
133
- async getInput() {
134
- return await this.picker.getInput();
135
- }
136
- /**
137
- * @desc
138
- */
139
- async open() {
140
- return await this.picker.open();
141
- }
142
- /**
143
- * @desc
144
- */
145
- async getValue() {
146
- return this.value;
147
- }
148
- /**
149
- * @desc
150
- */
151
- async isValid() {
152
- return await this.picker.isValid();
153
- }
154
- async resetCaption() {
155
- await utils.delay(10);
156
- await this.picker.resetCaption();
157
- this.captionType = 'default';
158
- this.captionError = null;
159
- await utils.delay(10);
160
- return Promise.resolve();
161
- }
162
- render() {
163
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
164
- 'full-width': this.fullWidth,
165
- 'linked-component': this.linkedComponent,
166
- });
167
- return (index.h(index.Host, { class: hostClasses }, index.h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
168
- }
169
- get el() { return index.getElement(this); }
170
- static get watchers() { return {
171
- "stateStartDate": ["handleStartDateChange"],
172
- "stateEndDate": ["handleEndDateChange"]
173
- }; }
174
- };
175
- __decorate([
176
- isLoadDecorator.IsLoad()
177
- ], BcmDatePicker.prototype, "el", void 0);
178
- BcmDatePicker.style = datePickerCss;
179
-
180
- exports.bcm_date_picker = BcmDatePicker;