bromcom-ui 2.9.0-rc.8 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) 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 +6 -0
  4. package/dist/bromcom-ui/global/helper/toast.ts +2 -0
  5. package/dist/bromcom-ui/p-08c75801.js +5 -0
  6. package/dist/bromcom-ui/p-0dacfdbc.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-24f0e23a.entry.js → p-13f6e1a7.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-14cafd64.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-170cf07d.js +6 -0
  10. package/dist/bromcom-ui/p-19634d99.js +5 -0
  11. package/dist/bromcom-ui/{p-e4477593.entry.js → p-1c801d0c.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-48f85544.entry.js → p-1c9314bd.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-6bcaf906.entry.js → p-1cfe5a5d.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-20ba9769.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-65f01d32.entry.js → p-22eb4e12.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-f331e009.entry.js → p-26290ed5.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-240151d4.entry.js → p-2aaeb247.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-73ca7c0a.entry.js → p-2b822458.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-dbc4c30c.js → p-2c5a0863.js} +1 -1
  21. package/dist/bromcom-ui/p-304bfa08.entry.js +5 -0
  22. package/dist/bromcom-ui/p-3432a82d.js +19 -0
  23. package/dist/bromcom-ui/p-399bce44.entry.js +5 -0
  24. package/dist/bromcom-ui/p-41cea609.entry.js +7 -0
  25. package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-430c0a24.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-434c170e.js +5 -0
  27. package/dist/bromcom-ui/{p-d0bb9a84.entry.js → p-440bbaaa.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-47400be4.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-f5bed571.entry.js → p-4a2de9ce.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-4f42085a.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-ff48f5b2.entry.js → p-5232e011.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-53e91ae6.js +5 -0
  33. package/dist/bromcom-ui/{p-c75519d5.js → p-54211561.js} +1 -1
  34. package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-5699f67d.entry.js} +1 -1
  35. package/dist/bromcom-ui/p-5871767a.entry.js +5 -0
  36. package/dist/bromcom-ui/{p-45767d1d.entry.js → p-588165ef.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-5916e844.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-499bb928.entry.js → p-5fb0f815.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-2fc584c4.js → p-61db1f1f.js} +1 -1
  40. package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-626b805d.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-d389b202.entry.js → p-647de93f.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  43. package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-bd51d347.entry.js → p-69260d36.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-6cf1e8a2.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-4aa0e6b1.js → p-6edf985f.js} +1 -1
  47. package/dist/bromcom-ui/p-73ec379d.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
  49. package/dist/bromcom-ui/p-75ec5cc6.entry.js +5 -0
  50. package/dist/bromcom-ui/p-784a7bb0.entry.js +5 -0
  51. package/dist/bromcom-ui/p-78f0fe00.js +5 -0
  52. package/dist/bromcom-ui/p-7b05abe8.entry.js +5 -0
  53. package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-7cb30513.js +5 -0
  55. package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-7d18ce0e.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  57. package/dist/bromcom-ui/p-80ee3d97.entry.js +5 -0
  58. package/dist/bromcom-ui/p-822d590f.entry.js +5 -0
  59. package/dist/bromcom-ui/p-85eedabc.js +5 -0
  60. package/dist/bromcom-ui/p-89a28750.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  62. package/dist/bromcom-ui/p-8f45ba5f.entry.js +5 -0
  63. package/dist/bromcom-ui/p-9075a184.entry.js +5 -0
  64. package/dist/bromcom-ui/{p-f58c1fbe.entry.js → p-913c55ee.entry.js} +1 -1
  65. package/dist/bromcom-ui/p-9164639f.entry.js +5 -0
  66. package/dist/bromcom-ui/p-9850cbce.js +5 -0
  67. package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-99824717.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-9bd5f3b4.entry.js +5 -0
  69. package/dist/bromcom-ui/{p-6aeaef2a.entry.js → p-a006e404.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-e9842c26.js → p-a0ba474b.js} +1 -1
  71. package/dist/bromcom-ui/{p-b60bcecf.js → p-a1b1750c.js} +1 -1
  72. package/dist/bromcom-ui/{p-8fcb5846.js → p-a2c364af.js} +1 -1
  73. package/dist/bromcom-ui/p-a40a5474.entry.js +5 -0
  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-2acd6bee.entry.js → p-ab0b4d1e.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-2caa75a4.entry.js → p-b4f033b4.entry.js} +1 -1
  79. package/dist/bromcom-ui/p-b81e8f91.js +5 -0
  80. package/dist/bromcom-ui/{p-503feae9.entry.js → p-b8a8bd1d.entry.js} +1 -1
  81. package/dist/bromcom-ui/{p-b4ac5904.js → p-b901e1ce.js} +1 -1
  82. package/dist/bromcom-ui/p-ba74a838.entry.js +5 -0
  83. package/dist/bromcom-ui/{p-c42dffea.entry.js → p-ba949d4a.entry.js} +1 -1
  84. package/dist/bromcom-ui/{p-f4538abb.entry.js → p-ba9eff2a.entry.js} +1 -1
  85. package/dist/bromcom-ui/{p-fb4b5224.entry.js → p-bd2b6de5.entry.js} +1 -1
  86. package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-c1a992e7.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-908b1b5d.js → p-c8751181.js} +1 -1
  88. package/dist/bromcom-ui/p-ccf0872d.js +5 -0
  89. package/dist/bromcom-ui/p-cf659967.entry.js +5 -0
  90. package/dist/bromcom-ui/{p-8d0ca8c2.js → p-d153c7fc.js} +1 -1
  91. package/dist/bromcom-ui/p-d3db9e02.entry.js +5 -0
  92. package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-d551a51d.entry.js} +1 -1
  93. package/dist/bromcom-ui/{p-ec36d0c0.entry.js → p-d68c2c0a.entry.js} +1 -1
  94. package/dist/bromcom-ui/{p-e5a0d8f6.entry.js → p-d724cfa9.entry.js} +1 -1
  95. package/dist/bromcom-ui/{p-af0a447d.entry.js → p-d7ca94e1.entry.js} +1 -1
  96. package/dist/bromcom-ui/p-dd49ae28.entry.js +5 -0
  97. package/dist/bromcom-ui/p-e2294927.entry.js +5 -0
  98. package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-e688b044.entry.js} +1 -1
  99. package/dist/bromcom-ui/p-ec0224fb.entry.js +5 -0
  100. package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-ece578ef.entry.js} +1 -1
  101. package/dist/bromcom-ui/{p-1be22601.entry.js → p-ef8c5b55.entry.js} +1 -1
  102. package/dist/bromcom-ui/p-f711588b.js +5 -0
  103. package/dist/bromcom-ui/p-fe1f2413.entry.js +5 -0
  104. package/dist/bromcom-ui/{p-a82f2b2a.entry.js → p-fe83cdd3.entry.js} +1 -1
  105. package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-fff1a0f9.entry.js} +1 -1
  106. package/dist/bromcom-ui/static/message-bot.svg +2 -2
  107. package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
  108. package/dist/cjs/{bcm-ab921827.js → bcm-7f703055.js} +33 -31
  109. package/dist/cjs/bcm-accordion.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-alert.cjs.entry.js +9 -9
  111. package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
  112. package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
  113. package/dist/cjs/bcm-avatar_2.cjs.entry.js +209 -0
  114. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  115. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -6
  116. package/dist/cjs/bcm-button-group.cjs.entry.js +11 -11
  117. package/dist/cjs/bcm-button_15.cjs.entry.js +35172 -0
  118. package/dist/cjs/bcm-card.cjs.entry.js +10 -10
  119. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +29 -29
  120. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -10
  121. package/dist/cjs/{bcm-checkbox.cjs.entry.js → bcm-checkbox_2.cjs.entry.js} +28 -17
  122. package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -16
  123. package/dist/cjs/bcm-chip.cjs.entry.js +7 -7
  124. package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
  125. package/dist/cjs/bcm-collapse.cjs.entry.js +6 -6
  126. package/dist/cjs/bcm-color-input.cjs.entry.js +10 -11
  127. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  128. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  129. package/dist/cjs/bcm-default.cjs.entry.js +5 -5
  130. package/dist/cjs/bcm-drawer.cjs.entry.js +13 -14
  131. package/dist/cjs/bcm-dropdown.cjs.entry.js +119 -0
  132. package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
  133. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -9
  134. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  135. package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
  136. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
  137. package/dist/cjs/bcm-item.cjs.entry.js +72 -0
  138. package/dist/cjs/bcm-items.cjs.entry.js +49 -0
  139. package/dist/cjs/bcm-link.cjs.entry.js +6 -6
  140. package/dist/cjs/bcm-list_3.cjs.entry.js +169 -1691
  141. package/dist/cjs/bcm-menu.cjs.entry.js +150 -0
  142. package/dist/cjs/bcm-message.cjs.entry.js +3 -3
  143. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -12
  144. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -11
  145. package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -13
  146. package/dist/cjs/bcm-modal.cjs.entry.js +11 -11
  147. package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
  148. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
  149. package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
  150. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -10
  151. package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -9
  152. package/dist/cjs/bcm-popover.cjs.entry.js +229 -0
  153. package/dist/cjs/bcm-progress.cjs.entry.js +9 -9
  154. package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -18
  155. package/dist/cjs/bcm-radio.cjs.entry.js +18 -19
  156. package/dist/cjs/bcm-range.cjs.entry.js +10 -10
  157. package/dist/cjs/bcm-result.cjs.entry.js +3 -3
  158. package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
  159. package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
  160. package/dist/cjs/bcm-select.cjs.entry.js +5 -5
  161. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
  162. package/dist/cjs/bcm-step.cjs.entry.js +8 -8
  163. package/dist/cjs/bcm-stepper.cjs.entry.js +15 -16
  164. package/dist/cjs/bcm-switch.cjs.entry.js +15 -15
  165. package/dist/cjs/bcm-tab-group.cjs.entry.js +209 -0
  166. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +58 -0
  167. package/dist/cjs/bcm-tab-item.cjs.entry.js +90 -0
  168. package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
  169. package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
  170. package/dist/cjs/bcm-table.cjs.entry.js +7648 -38
  171. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
  172. package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
  173. package/dist/cjs/bcm-tag.cjs.entry.js +19 -19
  174. package/dist/cjs/bcm-text.cjs.entry.js +49 -0
  175. package/dist/cjs/bcm-textarea.cjs.entry.js +13 -13
  176. package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
  177. package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
  178. package/dist/cjs/bcm-toast.cjs.entry.js +38 -19
  179. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  180. package/dist/cjs/bromcom-ui.cjs.js +5 -4
  181. package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
  182. package/dist/cjs/{color-helper-7ab15732.js → color-helper-c3a819ea.js} +1 -1
  183. package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
  184. package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-b441ea7c.js} +2 -2
  185. package/dist/cjs/{generate-cae9c0fb.js → generate-1dfe001a.js} +2 -2
  186. package/dist/cjs/{global-3ce50f9f.js → global-4a6abd46.js} +6 -1
  187. package/dist/cjs/index-5279dea2.js +2571 -0
  188. package/dist/cjs/{index-906fb4e5.js → index-7eed931f.js} +1631 -25
  189. package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
  190. package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
  191. package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
  192. package/dist/cjs/{input-template-a7f8f2e9.js → input-template-41868c68.js} +8 -8
  193. package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-15036f37.js} +3 -2
  194. package/dist/cjs/{json-parse-decarator-34a3d26e.js → json-parse-decarator-f29c368a.js} +2 -2
  195. package/dist/cjs/{label-template-4d5f99a5.js → label-template-80235581.js} +5 -5
  196. package/dist/cjs/loader.cjs.js +5 -4
  197. package/dist/cjs/{number-helper-101d8aa8.js → number-helper-2b9c1f9d.js} +1 -1
  198. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
  199. package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -9
  200. package/dist/cjs/{package-ed8b3296.js → package-66b81414.js} +1 -1
  201. package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-f20020a6.js} +1 -1
  202. package/dist/cjs/{slot-template-d70ea082.js → slot-template-873b0cd5.js} +2 -2
  203. package/dist/cjs/{stepper-states-308c8d3e.js → stepper-states-6ccb8ab3.js} +3 -3
  204. package/dist/cjs/{string-helper-d681e5c7.js → string-helper-fda7cbba.js} +5 -5
  205. package/dist/cjs/tooltip-helper-0eb3ef13.js +157 -0
  206. package/dist/cjs/{validators-26badb68.js → validators-97a46a9e.js} +6 -1
  207. package/dist/cjs/watermark-2c23c8f1.js +47499 -0
  208. package/dist/collection/assets/csv.svg +9 -0
  209. package/dist/collection/assets/excel.svg +9 -0
  210. package/dist/collection/assets/pdf.svg +9 -0
  211. package/dist/collection/collection-manifest.json +5 -2
  212. package/dist/collection/components/atoms/avatar/avatar.js +21 -23
  213. package/dist/collection/components/atoms/avatar/avatar.style.js +24 -21
  214. package/dist/collection/components/atoms/badge/badge.js +2 -1
  215. package/dist/collection/components/atoms/badge/badge.style.js +36 -24
  216. package/dist/collection/components/atoms/button/button.css +55 -0
  217. package/dist/collection/components/atoms/button/button.js +1 -1
  218. package/dist/collection/components/atoms/icon/static/message-bot.svg +2 -2
  219. package/dist/collection/components/molecules/dropdown/dropdown.js +1 -1
  220. package/dist/collection/components/molecules/input/input.js +0 -2
  221. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +291 -0
  222. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +751 -0
  223. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
  224. package/dist/collection/components/molecules/linked/linked.js +5 -29
  225. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  226. package/dist/collection/components/molecules/popover/popover.js +1 -1
  227. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  228. package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
  229. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  230. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
  231. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
  232. package/dist/collection/components/organism/form/form.js +1 -0
  233. package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
  234. package/dist/collection/components/organism/list/list.css +1 -1
  235. package/dist/collection/components/organism/list/list.js +63 -22
  236. package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
  237. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  238. package/dist/collection/components/other/toast/toast.js +48 -11
  239. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
  240. package/dist/collection/components/third-parts/rc-picker/date.js +862 -0
  241. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +1009 -0
  242. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +550 -0
  243. package/dist/collection/components/third-parts/table/table-definations.js +42 -0
  244. package/dist/collection/components/third-parts/table/table.css +136 -0
  245. package/dist/collection/components/third-parts/table/table.js +288 -0
  246. package/dist/collection/decorators/bcm-decorator.js +28 -0
  247. package/dist/collection/decorators/event-decorator.js +31 -0
  248. package/dist/collection/decorators/index.js +1 -0
  249. package/dist/collection/decorators/is-load-decorator.js +2 -1
  250. package/dist/collection/global/global.js +6 -0
  251. package/dist/collection/global/helper/toast.js +1 -0
  252. package/dist/collection/global/helper/toast.ts +2 -0
  253. package/dist/collection/helper/string-helper.js +2 -2
  254. package/dist/collection/models/bcm.js +29 -27
  255. package/dist/collection/templates/index.js +2 -0
  256. package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
  257. package/dist/collection/templates/toolbar-template.js +15 -0
  258. package/dist/components/_commonjsHelpers.js +16 -1
  259. package/dist/components/avatar.js +46 -44
  260. package/dist/components/badge.js +39 -70
  261. package/dist/components/bcm-chip-group.js +14 -8
  262. package/dist/components/bcm-date-picker.js +4 -2
  263. package/dist/components/bcm-date.d.ts +11 -0
  264. package/dist/components/bcm-date.js +232 -0
  265. package/dist/components/bcm-form-2.js +4 -1
  266. package/dist/components/bcm-form.js +1 -0
  267. package/dist/components/bcm-input-dropdown.d.ts +11 -0
  268. package/dist/components/bcm-input-dropdown.js +395 -0
  269. package/dist/components/bcm-rc-picker.d.ts +11 -0
  270. package/dist/components/bcm-rc-picker.js +10 -0
  271. package/dist/components/bcm-table.js +55128 -41
  272. package/dist/components/bcm-textarea.js +1 -214
  273. package/dist/components/bcm-time-picker.js +4 -2
  274. package/dist/components/bcm-toast.js +30 -10
  275. package/dist/components/bcm.js +29 -27
  276. package/dist/components/button.js +1 -1
  277. package/dist/components/chip.js +12 -6
  278. package/dist/components/colors2.js +1 -1
  279. package/dist/components/datetime-picker.js +5 -2
  280. package/dist/components/generate.js +1 -1
  281. package/dist/components/index.d.ts +4 -1
  282. package/dist/components/index.js +9 -1
  283. package/dist/components/index3.js +5 -1
  284. package/dist/components/index5.js +2569 -0
  285. package/dist/components/input.js +0 -2
  286. package/dist/components/is-load-decorator.js +2 -1
  287. package/dist/components/linked.js +5 -11
  288. package/dist/components/list.js +22 -8
  289. package/dist/components/raf.js +1594 -0
  290. package/dist/components/rc-overflow.js +32 -1557
  291. package/dist/components/rc-picker.js +14030 -0
  292. package/dist/components/string-helper.js +2 -2
  293. package/dist/components/textarea.js +220 -0
  294. package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-7002e5de.js} +16 -1
  295. package/dist/esm/bcm-accordion.entry.js +5 -5
  296. package/dist/esm/bcm-alert.entry.js +9 -9
  297. package/dist/esm/bcm-attendance.entry.js +5 -5
  298. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  299. package/dist/esm/bcm-avatar_2.entry.js +204 -0
  300. package/dist/esm/bcm-box.entry.js +1 -1
  301. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  302. package/dist/esm/bcm-button-group.entry.js +8 -8
  303. package/dist/esm/bcm-button_15.entry.js +35154 -0
  304. package/dist/esm/bcm-card.entry.js +11 -11
  305. package/dist/esm/bcm-checkbox-group.entry.js +19 -19
  306. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
  307. package/dist/esm/{bcm-checkbox.entry.js → bcm-checkbox_2.entry.js} +24 -14
  308. package/dist/esm/bcm-chip-group.entry.js +16 -17
  309. package/dist/esm/bcm-chip.entry.js +8 -8
  310. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  311. package/dist/esm/bcm-collapse.entry.js +6 -6
  312. package/dist/esm/bcm-color-input.entry.js +12 -13
  313. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  314. package/dist/esm/bcm-content.entry.js +1 -1
  315. package/dist/esm/{bcm-9f50af9c.js → bcm-d45dc47d.js} +30 -28
  316. package/dist/esm/bcm-default.entry.js +5 -5
  317. package/dist/esm/bcm-drawer.entry.js +13 -14
  318. package/dist/esm/bcm-dropdown.entry.js +115 -0
  319. package/dist/esm/bcm-error-layout.entry.js +3 -3
  320. package/dist/esm/bcm-expansion-panel.entry.js +10 -10
  321. package/dist/esm/bcm-form-group.entry.js +1 -1
  322. package/dist/esm/bcm-input-custom.entry.js +6 -6
  323. package/dist/esm/bcm-input-dropdown.entry.js +305 -0
  324. package/dist/esm/bcm-item.entry.js +68 -0
  325. package/dist/esm/bcm-items.entry.js +45 -0
  326. package/dist/esm/bcm-link.entry.js +4 -4
  327. package/dist/esm/bcm-list_3.entry.js +93 -1615
  328. package/dist/esm/bcm-menu.entry.js +146 -0
  329. package/dist/esm/bcm-message.entry.js +3 -3
  330. package/dist/esm/bcm-modal-2-footer.entry.js +13 -14
  331. package/dist/esm/bcm-modal-2-header.entry.js +12 -13
  332. package/dist/esm/bcm-modal-2.entry.js +13 -14
  333. package/dist/esm/bcm-modal.entry.js +9 -9
  334. package/dist/esm/bcm-notification.entry.js +3 -3
  335. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  336. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  337. package/dist/esm/bcm-popconfirm-box.entry.js +11 -11
  338. package/dist/esm/bcm-popconfirm.entry.js +7 -7
  339. package/dist/esm/bcm-popover.entry.js +225 -0
  340. package/dist/esm/bcm-progress.entry.js +9 -9
  341. package/dist/esm/bcm-radio-group.entry.js +15 -16
  342. package/dist/esm/bcm-radio.entry.js +13 -14
  343. package/dist/esm/bcm-range.entry.js +8 -8
  344. package/dist/esm/bcm-result.entry.js +3 -3
  345. package/dist/esm/bcm-select-group.entry.js +3 -3
  346. package/dist/esm/bcm-select-option.entry.js +3 -3
  347. package/dist/esm/bcm-select.entry.js +6 -6
  348. package/dist/esm/bcm-skeleton.entry.js +5 -5
  349. package/dist/esm/bcm-step.entry.js +8 -8
  350. package/dist/esm/bcm-stepper.entry.js +15 -16
  351. package/dist/esm/bcm-switch.entry.js +10 -10
  352. package/dist/esm/bcm-tab-group.entry.js +205 -0
  353. package/dist/esm/bcm-tab-item-header.entry.js +54 -0
  354. package/dist/esm/bcm-tab-item.entry.js +86 -0
  355. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  356. package/dist/esm/bcm-tab.entry.js +3 -3
  357. package/dist/esm/bcm-table.entry.js +7649 -39
  358. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  359. package/dist/esm/bcm-tabs.entry.js +4 -4
  360. package/dist/esm/bcm-tag.entry.js +9 -9
  361. package/dist/esm/bcm-text.entry.js +45 -0
  362. package/dist/esm/bcm-textarea.entry.js +11 -11
  363. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  364. package/dist/esm/bcm-timeline.entry.js +3 -3
  365. package/dist/esm/bcm-toast.entry.js +38 -19
  366. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  367. package/dist/esm/bromcom-ui.js +6 -5
  368. package/dist/esm/{caption-template-34a1cb44.js → caption-template-d47f338f.js} +2 -2
  369. package/dist/esm/{color-helper-116755ed.js → color-helper-845ba523.js} +2 -2
  370. package/dist/esm/{colors-44c95e7e.js → colors-ebea297f.js} +1 -1
  371. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  372. package/dist/esm/{floating-ui-e7341329.js → floating-ui-8a0c54d6.js} +1 -1
  373. package/dist/esm/{generate-e008f24f.js → generate-7a1258c4.js} +2 -2
  374. package/dist/esm/{global-9c04f017.js → global-032592ad.js} +6 -1
  375. package/dist/esm/{index-ed9652af.js → index-00c8a8f7.js} +1 -1
  376. package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
  377. package/dist/esm/index-3bc8c6e3.js +2569 -0
  378. package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
  379. package/dist/esm/{index-6310a048.js → index-e4b6a4ce.js} +1616 -26
  380. package/dist/esm/{input-template-0bdd4dda.js → input-template-68c29fde.js} +4 -4
  381. package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-8277e3b8.js} +3 -2
  382. package/dist/esm/{json-parse-decarator-40fc5701.js → json-parse-decarator-2945634b.js} +2 -2
  383. package/dist/esm/{label-template-98dafeb3.js → label-template-946d4062.js} +4 -4
  384. package/dist/esm/loader.js +6 -5
  385. package/dist/esm/{number-helper-ddce4326.js → number-helper-fe7d1aca.js} +1 -1
  386. package/dist/esm/old-bcm-popover-box.entry.js +13 -13
  387. package/dist/esm/old-bcm-popover.entry.js +7 -7
  388. package/dist/esm/{package-00ece356.js → package-acbf2052.js} +1 -1
  389. package/dist/esm/{popover-placement-78f86f15.js → popover-placement-be68c848.js} +1 -1
  390. package/dist/esm/{slot-template-672e941d.js → slot-template-fcc7846e.js} +2 -2
  391. package/dist/esm/{stepper-states-56644bc7.js → stepper-states-9ab8511e.js} +3 -3
  392. package/dist/esm/{string-helper-6bd24967.js → string-helper-b0e05041.js} +4 -4
  393. package/dist/esm/tooltip-helper-e5246812.js +155 -0
  394. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  395. package/dist/esm/{validators-77fbe47e.js → validators-22975416.js} +6 -2
  396. package/dist/esm/watermark-f2c6a1f9.js +47477 -0
  397. package/dist/types/components/atoms/avatar/avatar.d.ts +0 -2
  398. package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -5
  399. package/dist/types/components/atoms/badge/badge.style.d.ts +174 -4
  400. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +51 -0
  401. package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
  402. package/dist/types/components/molecules/linked/linked.d.ts +1 -3
  403. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  404. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  405. package/dist/types/components/organism/list/list.d.ts +4 -0
  406. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  407. package/dist/types/components/other/toast/toast.d.ts +2 -0
  408. package/dist/types/components/third-parts/rc-picker/date.d.ts +175 -0
  409. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +47 -0
  410. package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
  411. package/dist/types/components/third-parts/table/table.d.ts +37 -0
  412. package/dist/types/components.d.ts +244 -3
  413. package/dist/types/decorators/bcm-decorator.d.ts +2 -0
  414. package/dist/types/decorators/event-decorator.d.ts +2 -0
  415. package/dist/types/decorators/index.d.ts +1 -0
  416. package/dist/types/global/helper/toast.d.ts +2 -0
  417. package/dist/types/models/bcm.d.ts +256 -236
  418. package/dist/types/templates/index.d.ts +2 -0
  419. package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
  420. package/dist/types/templates/toolbar-template.d.ts +13 -0
  421. package/helper/toast.d.ts +2 -0
  422. package/helper/toast.d.ts.map +1 -1
  423. package/helper/toast.js +1 -0
  424. package/package.json +9 -3
  425. package/dist/bromcom-ui/p-019b44bb.entry.js +0 -5
  426. package/dist/bromcom-ui/p-01a50abe.entry.js +0 -5
  427. package/dist/bromcom-ui/p-065e0f32.entry.js +0 -5
  428. package/dist/bromcom-ui/p-0cb5a92d.entry.js +0 -5
  429. package/dist/bromcom-ui/p-0f52bab9.entry.js +0 -5
  430. package/dist/bromcom-ui/p-15758356.entry.js +0 -5
  431. package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
  432. package/dist/bromcom-ui/p-235023cc.entry.js +0 -5
  433. package/dist/bromcom-ui/p-2a7bdc8b.entry.js +0 -5
  434. package/dist/bromcom-ui/p-32028f4f.entry.js +0 -5
  435. package/dist/bromcom-ui/p-3a68eca1.js +0 -5
  436. package/dist/bromcom-ui/p-4484ed7d.entry.js +0 -5
  437. package/dist/bromcom-ui/p-4f8b00bc.entry.js +0 -5
  438. package/dist/bromcom-ui/p-4fd78dbb.entry.js +0 -5
  439. package/dist/bromcom-ui/p-54c0916c.js +0 -5
  440. package/dist/bromcom-ui/p-5d89f348.entry.js +0 -5
  441. package/dist/bromcom-ui/p-61c4745d.entry.js +0 -5
  442. package/dist/bromcom-ui/p-626a65e9.js +0 -5
  443. package/dist/bromcom-ui/p-663766cf.entry.js +0 -5
  444. package/dist/bromcom-ui/p-6d7fe687.js +0 -6
  445. package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
  446. package/dist/bromcom-ui/p-74b2d896.js +0 -5
  447. package/dist/bromcom-ui/p-7f529bbe.entry.js +0 -5
  448. package/dist/bromcom-ui/p-9fe802bc.entry.js +0 -5
  449. package/dist/bromcom-ui/p-a19320bb.entry.js +0 -13
  450. package/dist/bromcom-ui/p-a429e85b.js +0 -5
  451. package/dist/bromcom-ui/p-a56e8c98.js +0 -5
  452. package/dist/bromcom-ui/p-a8033cda.entry.js +0 -5
  453. package/dist/bromcom-ui/p-a9692ed3.entry.js +0 -5
  454. package/dist/bromcom-ui/p-b1c83bb8.entry.js +0 -5
  455. package/dist/bromcom-ui/p-bddbd954.entry.js +0 -5
  456. package/dist/bromcom-ui/p-c49d038e.js +0 -5
  457. package/dist/bromcom-ui/p-c799b397.entry.js +0 -5
  458. package/dist/bromcom-ui/p-cf0ab7f0.entry.js +0 -5
  459. package/dist/bromcom-ui/p-d65a1e21.js +0 -11
  460. package/dist/bromcom-ui/p-d7f10f7f.js +0 -5
  461. package/dist/bromcom-ui/p-dd422dd1.js +0 -5
  462. package/dist/bromcom-ui/p-e09fa0dc.entry.js +0 -5
  463. package/dist/bromcom-ui/p-e32d9cfc.js +0 -5
  464. package/dist/bromcom-ui/p-ec6b45ba.entry.js +0 -5
  465. package/dist/bromcom-ui/p-f645d9ae.entry.js +0 -5
  466. package/dist/bromcom-ui/p-fdc3e5b8.entry.js +0 -5
  467. package/dist/cjs/bcm-avatar.cjs.entry.js +0 -127
  468. package/dist/cjs/bcm-badge_15.cjs.entry.js +0 -1739
  469. package/dist/cjs/bcm-colorful.cjs.entry.js +0 -17227
  470. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -181
  471. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1449
  472. package/dist/cjs/bcm-form-2.cjs.entry.js +0 -209
  473. package/dist/cjs/bcm-form.cjs.entry.js +0 -488
  474. package/dist/cjs/bcm-input.cjs.entry.js +0 -371
  475. package/dist/cjs/bcm-label.cjs.entry.js +0 -45
  476. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  477. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -149
  478. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  479. package/dist/cjs/index-b08b037a.js +0 -52
  480. package/dist/collection/components/other/data-table/table.css +0 -130
  481. package/dist/collection/components/other/data-table/table.js +0 -88
  482. package/dist/esm/bcm-avatar.entry.js +0 -123
  483. package/dist/esm/bcm-badge_15.entry.js +0 -1721
  484. package/dist/esm/bcm-colorful.entry.js +0 -17223
  485. package/dist/esm/bcm-date-picker.entry.js +0 -177
  486. package/dist/esm/bcm-datetime-picker.entry.js +0 -1445
  487. package/dist/esm/bcm-form-2.entry.js +0 -205
  488. package/dist/esm/bcm-form.entry.js +0 -484
  489. package/dist/esm/bcm-input.entry.js +0 -367
  490. package/dist/esm/bcm-label.entry.js +0 -41
  491. package/dist/esm/bcm-old-input.entry.js +0 -393
  492. package/dist/esm/bcm-time-picker.entry.js +0 -145
  493. package/dist/esm/datetime-helper-df25808a.js +0 -9
  494. package/dist/esm/index-962dec74.js +0 -50
  495. package/dist/types/components/other/data-table/table.d.ts +0 -8
@@ -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-ddfd6d8f.js');
10
- const index$1 = require('./index-fdbf5226.js');
11
- const captionTemplate = require('./caption-template-8d099fd6.js');
12
- const utils = require('./utils-fc077139.js');
13
- require('./_commonjsHelpers-bd20f4c0.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\"); @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}.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}";
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,149 +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 generate = require('./generate-cae9c0fb.js');
13
- const bcm = require('./bcm-ab921827.js');
14
- const utils = require('./utils-fc077139.js');
15
- require('./_commonjsHelpers-bd20f4c0.js');
16
- require('./package-ed8b3296.js');
17
- require('./colors-e1d142ad.js');
18
-
19
- const timePickerCss = "@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 BcmTimePicker = class {
32
- constructor(hostRef) {
33
- index.registerInstance(this, hostRef);
34
- this._id = generate.Generate.UID();
35
- this.time = new Date();
36
- this.value = undefined;
37
- this.hidden = false;
38
- this.name = undefined;
39
- this.fullWidth = false;
40
- this.required = false;
41
- this.label = undefined;
42
- this.placeholder = undefined;
43
- this.disabled = false;
44
- this.noCaption = false;
45
- this.caption = '';
46
- this.captionError = undefined;
47
- this.captionType = 'default';
48
- this.alignment = undefined;
49
- this.placement = bcm.Bcm$1.Placement['bottom-start'];
50
- this.linkedComponent = undefined;
51
- this.clearable = false;
52
- }
53
- /**
54
- * @ComponentMethod
55
- */
56
- componentWillLoad() {
57
- if (typeof this.time === 'string') {
58
- const regTime = /\b([01][0-9]|2[0-3]):([0-5][0-9])\b/;
59
- const regTimeCheck = regTime.test(this.time);
60
- const timeSections = regTimeCheck ? this.time.split(':') : false;
61
- if (timeSections) {
62
- this.time = new Date(new Date().setHours(Number(timeSections[0]), Number(timeSections[1])));
63
- }
64
- else
65
- this.time = new Date();
66
- }
67
- }
68
- /**
69
- * @desc
70
- */
71
- handlePickerLoad() {
72
- this.value = this.picker.value;
73
- }
74
- /**
75
- * @desc
76
- * @param event
77
- */
78
- handlePickerChange(event) {
79
- this.value = event.detail;
80
- }
81
- /**
82
- * @desc
83
- * @param value
84
- */
85
- async set(value) {
86
- return this.picker.set(value);
87
- }
88
- async get() {
89
- var _a;
90
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
91
- }
92
- /**
93
- * @desc
94
- * @param disabled
95
- */
96
- async setDisabled(disabled) {
97
- this.disabled = disabled;
98
- }
99
- /**
100
- * @desc
101
- */
102
- async getInput() {
103
- return await this.picker.getInput();
104
- }
105
- /**
106
- * @desc
107
- */
108
- async getValue() {
109
- return this.value;
110
- }
111
- /**
112
- * @desc
113
- */
114
- async isValid() {
115
- return await this.picker.isValid();
116
- }
117
- async setClear() {
118
- await this.picker.setClear();
119
- await utils.delay(10);
120
- return Promise.resolve();
121
- }
122
- async resetCaption() {
123
- await utils.delay(10);
124
- await this.picker.resetCaption();
125
- this.captionType = 'default';
126
- this.captionError = null;
127
- await utils.delay(10);
128
- return Promise.resolve();
129
- }
130
- /**
131
- * @desc
132
- */
133
- async open() {
134
- return await this.picker.open();
135
- }
136
- render() {
137
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
138
- 'full-width': this.fullWidth
139
- });
140
- return (index.h(index.Host, { class: hostClasses }, index.h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, fullWidth: this.fullWidth, required: this.required, label: this.label, name: this.name, placeholder: this.placeholder, type: "time", clearable: this.clearable, date: this.time, ref: el => (this.picker = el), disabled: this.disabled, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, captionError: this.captionError, caption: this.caption, captionType: this.captionType, alignment: this.alignment, placement: this.placement })));
141
- }
142
- get el() { return index.getElement(this); }
143
- };
144
- __decorate([
145
- isLoadDecorator.IsLoad()
146
- ], BcmTimePicker.prototype, "el", void 0);
147
- BcmTimePicker.style = timePickerCss;
148
-
149
- exports.bcm_time_picker = BcmTimePicker;
@@ -1,11 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- class DateTimeHelper {
8
- }
9
- DateTimeHelper.convertTimeStampToDate = (timestamp) => new Date(timestamp);
10
-
11
- exports.DateTimeHelper = DateTimeHelper;
@@ -1,52 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
8
-
9
- const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
10
- const cx = clsx;
11
- const cva = (base, config)=>{
12
- return (props)=>{
13
- var ref;
14
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
15
- const { variants , defaultVariants } = config;
16
- const getVariantClassNames = Object.keys(variants).map((variant)=>{
17
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
18
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
19
- if (variantProp === null) return null;
20
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
21
- return variants[variant][variantKey];
22
- });
23
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
24
- let [key, value] = param;
25
- if (value === undefined) {
26
- return acc;
27
- }
28
- acc[key] = value;
29
- return acc;
30
- }, {});
31
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
32
- let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
33
- return Object.entries(compoundVariantOptions).every((param)=>{
34
- let [key, value] = param;
35
- return Array.isArray(value) ? value.includes({
36
- ...defaultVariants,
37
- ...propsWithoutUndefined
38
- }[key]) : ({
39
- ...defaultVariants,
40
- ...propsWithoutUndefined
41
- })[key] === value;
42
- }) ? [
43
- ...acc,
44
- cvClass,
45
- cvClassName
46
- ] : acc;
47
- }, []);
48
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
49
- };
50
- };
51
-
52
- exports.cva = cva;