bromcom-ui 2.12.0-test.1 → 2.12.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 (409) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-053dc717.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-fcc6f71e.js → p-0bda558d.js} +1 -1
  5. package/dist/bromcom-ui/{p-482054dc.js → p-101b76f5.js} +1 -1
  6. package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-3238bf36.js +5 -0
  10. package/dist/bromcom-ui/{p-965ef00a.entry.js → p-3517ff07.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-6b5ed4d8.js → p-35f2e15a.js} +1 -1
  12. package/dist/bromcom-ui/p-3f0f1f9e.entry.js +5 -0
  13. package/dist/bromcom-ui/p-41055402.js +5 -0
  14. package/dist/bromcom-ui/p-43c578cf.js +5 -0
  15. package/dist/bromcom-ui/p-47325924.entry.js +5 -0
  16. package/dist/bromcom-ui/{p-816fbffd.js → p-499d8454.js} +1 -1
  17. package/dist/bromcom-ui/{p-3182df7e.js → p-4d2bf0e7.js} +1 -1
  18. package/dist/bromcom-ui/{p-350e752d.js → p-5027dcf6.js} +1 -1
  19. package/dist/bromcom-ui/{p-055b38fd.entry.js → p-508796a2.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-561de187.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-91873347.entry.js → p-594a57c3.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-4adb8c83.entry.js → p-5c4ff3cb.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-5dea2654.entry.js +5 -0
  24. package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  26. package/dist/bromcom-ui/p-65b8b97c.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-6db476de.entry.js +5 -0
  29. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  30. package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
  31. package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
  32. package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-efd00594.entry.js → p-7f48f82f.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-84f5330f.js +5 -0
  35. package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
  36. package/dist/bromcom-ui/p-8664c6c9.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-fdd5d6bb.entry.js → p-866a46c4.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-be7e5e83.js → p-8e683b32.js} +1 -1
  39. package/dist/bromcom-ui/{p-1d48da4b.entry.js → p-8f76d87d.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-1b2e1320.entry.js → p-9cc8712c.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-9cf19610.entry.js +16 -0
  42. package/dist/bromcom-ui/{p-4680865d.js → p-a2df6c19.js} +1 -1
  43. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  44. package/dist/bromcom-ui/{p-22a0e447.entry.js → p-acbe93cd.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-cd2293b7.js → p-ad94ca44.js} +1 -1
  46. package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-b3fe26a3.entry.js → p-bdc78a44.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-fe675eea.entry.js → p-c179c3de.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-5c1af163.entry.js → p-c714d51e.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-9f688a29.entry.js → p-cb91ad56.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-d1298c40.js +5 -0
  52. package/dist/bromcom-ui/{p-3f2cf69e.entry.js → p-d18c83d3.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-4d189e27.entry.js → p-d91ccc41.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-dbd2c7e9.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-9ea56166.entry.js → p-edefa88b.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-af4a83dc.entry.js → p-ef220df3.entry.js} +1 -1
  59. package/dist/bromcom-ui/p-f0e30624.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-3f1e16ee.entry.js → p-f9723b42.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-fa5ecfb2.entry.js → p-f9c5be5a.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-74252264.entry.js → p-faeb018a.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-c821b3bf.entry.js → p-fdbd5b5f.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-7bc49347.entry.js → p-fed90a82.entry.js} +1 -1
  65. package/dist/cjs/{bcm-489c9b1a.js → bcm-1d1fcf21.js} +4 -4
  66. package/dist/cjs/bcm-accordion_63.cjs.entry.js +46086 -0
  67. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  68. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  69. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  70. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  72. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  73. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
  74. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  75. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  76. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  79. package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
  80. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  81. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  82. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  83. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  84. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  85. package/dist/cjs/bcm-number-input.cjs.entry.js +297 -0
  86. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  87. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  88. package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
  89. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  90. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  91. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  92. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  93. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  94. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  95. package/dist/cjs/{caption-template-086e9cac.js → caption-template-85a18b6d.js} +2 -2
  96. package/dist/cjs/{floating-ui-21890d11.js → floating-ui-5b396838.js} +2 -2
  97. package/dist/cjs/{generate-acac74ce.js → generate-c1f827bd.js} +1 -1
  98. package/dist/cjs/{global-47ad6c93.js → global-c2f538b0.js} +1 -1
  99. package/dist/cjs/input.style-b5676e6a.js +122 -0
  100. package/dist/cjs/{label-template-94b3d775.js → label-template-e83447b5.js} +3 -3
  101. package/dist/cjs/loader.cjs.js +3 -3
  102. package/dist/cjs/{number-helper-fb148ed6.js → number-helper-804e5165.js} +1 -1
  103. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  104. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  105. package/dist/cjs/{package-c5399090.js → package-2ca614d5.js} +1 -1
  106. package/dist/cjs/{popover-placement-e7d6eabd.js → popover-placement-d1aa81f0.js} +1 -1
  107. package/dist/cjs/{slot-template-c8e2816c.js → slot-template-29229e8f.js} +1 -1
  108. package/dist/cjs/{string-helper-f9184277.js → string-helper-1ee6dc21.js} +6 -4
  109. package/dist/cjs/{validators-a7c046d5.js → validators-45979497.js} +1 -1
  110. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  111. package/dist/collection/components/atoms/badge/badge.js +1 -1
  112. package/dist/collection/components/atoms/badge/badge.style.js +1 -1
  113. package/dist/collection/components/atoms/button/button.css +13 -13
  114. package/dist/collection/components/atoms/button/button.js +14 -14
  115. package/dist/collection/components/atoms/chip/chip.css +4 -4
  116. package/dist/collection/components/atoms/chip/chip.js +3 -3
  117. package/dist/collection/components/atoms/link/link.css +9 -3
  118. package/dist/collection/components/molecules/checkbox/group.css +2 -2
  119. package/dist/collection/components/molecules/checkbox/group.js +1 -1
  120. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  121. package/dist/collection/components/molecules/empty/empty.js +1 -1
  122. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  123. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  124. package/dist/collection/components/molecules/input/input.js +1 -1
  125. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  126. package/dist/collection/components/molecules/menu/menu.css +4 -4
  127. package/dist/collection/components/molecules/modal/modal.css +1 -1
  128. package/dist/collection/components/molecules/number-input/react-input.js +1 -1
  129. package/dist/collection/components/molecules/radio/radio-group.js +1 -1
  130. package/dist/collection/components/molecules/radio/radio.js +1 -1
  131. package/dist/collection/components/molecules/range/range.js +1 -1
  132. package/dist/collection/components/molecules/switch/switch.css +2 -2
  133. package/dist/collection/components/molecules/tab-group/tab-group.js +2 -2
  134. package/dist/collection/components/molecules/tab-group/tab-item-header.js +5 -5
  135. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  136. package/dist/collection/components/organism/list/list.css +2 -2
  137. package/dist/collection/components/organism/list/list.js +3 -3
  138. package/dist/collection/components/other/attendance/attendance.js +1 -1
  139. package/dist/collection/components/other_deprecated/select/select.css +1 -1
  140. package/dist/collection/components/other_deprecated/select/select.js +1 -1
  141. package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
  142. package/dist/collection/helper/string-helper.js +4 -2
  143. package/dist/collection/stories/ui-library/components/date/argTypes_common.js +1 -0
  144. package/dist/collection/stories/ui-library/components/list/country.js +186 -0
  145. package/dist/collection/templates/button-template.js +1 -1
  146. package/dist/collection/templates/caption-template.js +2 -2
  147. package/dist/collection/templates/input-template.js +1 -1
  148. package/dist/collection/templates/label-template.js +1 -1
  149. package/dist/collection/templates/list-item-template.js +1 -1
  150. package/dist/collection/templates/list-template.js +3 -9
  151. package/dist/components/avatar.js +1 -1
  152. package/dist/components/badge.js +2 -2
  153. package/dist/components/bcm-attendance.js +1 -1
  154. package/dist/components/bcm-checkbox-group.js +2 -2
  155. package/dist/components/bcm-color-input.js +1 -1
  156. package/dist/components/bcm-error-layout.js +1 -1
  157. package/dist/components/bcm-expansion-panel.js +1 -1
  158. package/dist/components/bcm-input-dropdown.js +1 -1
  159. package/dist/components/bcm-modal.js +1 -1
  160. package/dist/components/bcm-radio-group.js +1 -1
  161. package/dist/components/bcm-range.js +1 -1
  162. package/dist/components/bcm-select.js +2 -2
  163. package/dist/components/bcm-switch.js +1 -1
  164. package/dist/components/bcm-tab-group.js +2 -2
  165. package/dist/components/bcm-tab-item-header.js +5 -5
  166. package/dist/components/bcm-tab.js +1 -1
  167. package/dist/components/button.js +16 -16
  168. package/dist/components/caption-template.js +2 -2
  169. package/dist/components/chip.js +4 -4
  170. package/dist/components/empty.js +1 -1
  171. package/dist/components/generate.js +1 -1
  172. package/dist/components/input-template.js +1 -1
  173. package/dist/components/input.js +1 -1
  174. package/dist/components/label.js +1 -1
  175. package/dist/components/link.js +1 -1
  176. package/dist/components/list.js +8 -14
  177. package/dist/components/menu.js +1 -1
  178. package/dist/components/radio.js +1 -1
  179. package/dist/components/string-helper.js +4 -2
  180. package/dist/components/tooltip.js +1 -1
  181. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
  182. package/dist/esm/bcm-a50d55ba.js +1 -1
  183. package/dist/esm/bcm-accordion_63.entry.js +46020 -0
  184. package/dist/esm/bcm-alert.entry.js +6 -6
  185. package/dist/esm/bcm-attendance-actions-comment.entry.js +11 -11
  186. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +12 -12
  187. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  188. package/dist/esm/bcm-breadcrumb.entry.js +5 -5
  189. package/dist/esm/bcm-caption.entry.js +13 -13
  190. package/dist/esm/bcm-card.entry.js +9 -9
  191. package/dist/esm/bcm-chip-group.entry.js +14 -14
  192. package/dist/esm/bcm-colorpicker.entry.js +4 -4
  193. package/dist/esm/bcm-date-picker.entry.js +7 -7
  194. package/dist/esm/bcm-datetime-picker.entry.js +11 -11
  195. package/dist/esm/bcm-default.entry.js +4 -4
  196. package/dist/esm/bcm-error-layout.entry.js +3 -3
  197. package/dist/esm/bcm-form-2.entry.js +6 -6
  198. package/dist/esm/bcm-input-2.entry.js +149 -0
  199. package/dist/esm/bcm-input-custom.entry.js +5 -5
  200. package/dist/esm/bcm-input-dropdown.entry.js +14 -14
  201. package/dist/esm/bcm-message.entry.js +2 -2
  202. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  203. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  204. package/dist/esm/bcm-modal-2.entry.js +12 -12
  205. package/dist/esm/bcm-notification.entry.js +2 -2
  206. package/dist/esm/bcm-number-input.entry.js +293 -0
  207. package/dist/esm/bcm-overlay_2.entry.js +3 -3
  208. package/dist/esm/bcm-popover.entry.js +11 -11
  209. package/dist/esm/bcm-range.entry.js +8 -8
  210. package/dist/esm/bcm-react-number.entry.js +1226 -0
  211. package/dist/esm/bcm-result.entry.js +2 -2
  212. package/dist/esm/bcm-select-group.entry.js +2 -2
  213. package/dist/esm/bcm-select-option.entry.js +2 -2
  214. package/dist/esm/bcm-skeleton.entry.js +10 -10
  215. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  216. package/dist/esm/bcm-table.entry.js +11 -11
  217. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  218. package/dist/esm/bcm-tag.entry.js +8 -8
  219. package/dist/esm/bcm-time-picker.entry.js +7 -7
  220. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  221. package/dist/esm/bcm-timeline.entry.js +2 -2
  222. package/dist/esm/bcm-toast.entry.js +8 -8
  223. package/dist/esm/bromcom-ui.js +3 -3
  224. package/dist/esm/{caption-template-5c43c733.js → caption-template-3cd42c3b.js} +3 -3
  225. package/dist/esm/{color-helper-c0bb1d8a.js → color-helper-ba15b0d8.js} +2 -2
  226. package/dist/esm/{colors-df32bb43.js → colors-ed4e7579.js} +1 -1
  227. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
  228. package/dist/esm/floating-ui-3f4394da.js +1 -1
  229. package/dist/esm/{generate-a1817b7f.js → generate-fb762c9f.js} +2 -2
  230. package/dist/esm/{global-26b8ded6.js → global-b4060f1f.js} +1 -1
  231. package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
  232. package/dist/esm/{index-a6d9d0af.js → index-0d3a56ec.js} +1 -1
  233. package/dist/esm/input.style-e855c0f3.js +120 -0
  234. package/dist/esm/{label-template-c15569c4.js → label-template-ef97aadb.js} +3 -3
  235. package/dist/esm/loader.js +3 -3
  236. package/dist/esm/{number-helper-ccf5aba4.js → number-helper-0cbe6443.js} +1 -1
  237. package/dist/esm/old-bcm-popover-box.entry.js +10 -10
  238. package/dist/esm/old-bcm-popover.entry.js +6 -6
  239. package/dist/esm/{package-5d20a20d.js → package-67609610.js} +1 -1
  240. package/dist/esm/{popover-placement-2f5939ea.js → popover-placement-1b15cc99.js} +1 -1
  241. package/dist/esm/{slot-template-7c36d3be.js → slot-template-0d958dcc.js} +1 -1
  242. package/dist/esm/{string-helper-85990695.js → string-helper-b4602002.js} +6 -4
  243. package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
  244. package/dist/esm/{validators-e63fdc75.js → validators-e7ccc273.js} +1 -1
  245. package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
  246. package/dist/types/templates/list-template.d.ts +1 -0
  247. package/package.json +1 -1
  248. package/dist/bromcom-ui/p-0389b380.js +0 -5
  249. package/dist/bromcom-ui/p-0a3d3b7d.entry.js +0 -5
  250. package/dist/bromcom-ui/p-13eeb974.entry.js +0 -5
  251. package/dist/bromcom-ui/p-158245f6.entry.js +0 -5
  252. package/dist/bromcom-ui/p-183bc78f.entry.js +0 -5
  253. package/dist/bromcom-ui/p-19e378e2.entry.js +0 -5
  254. package/dist/bromcom-ui/p-1a53401f.entry.js +0 -5
  255. package/dist/bromcom-ui/p-1c404cc8.entry.js +0 -5
  256. package/dist/bromcom-ui/p-1d96b6d6.entry.js +0 -5
  257. package/dist/bromcom-ui/p-28d0fb9d.entry.js +0 -5
  258. package/dist/bromcom-ui/p-310cab1a.js +0 -14
  259. package/dist/bromcom-ui/p-3917a612.entry.js +0 -5
  260. package/dist/bromcom-ui/p-39ae1e94.entry.js +0 -5
  261. package/dist/bromcom-ui/p-3ea2dda1.js +0 -5
  262. package/dist/bromcom-ui/p-40584ce5.entry.js +0 -5
  263. package/dist/bromcom-ui/p-4364285a.entry.js +0 -5
  264. package/dist/bromcom-ui/p-475d306a.entry.js +0 -5
  265. package/dist/bromcom-ui/p-4e33341b.entry.js +0 -5
  266. package/dist/bromcom-ui/p-4ebb85f9.js +0 -5
  267. package/dist/bromcom-ui/p-516eb821.entry.js +0 -5
  268. package/dist/bromcom-ui/p-59294a5a.entry.js +0 -5
  269. package/dist/bromcom-ui/p-5d45ff27.entry.js +0 -5
  270. package/dist/bromcom-ui/p-65511654.entry.js +0 -5
  271. package/dist/bromcom-ui/p-7237c3e9.entry.js +0 -5
  272. package/dist/bromcom-ui/p-72d4ced8.entry.js +0 -5
  273. package/dist/bromcom-ui/p-76edf59f.js +0 -7
  274. package/dist/bromcom-ui/p-7942e17a.entry.js +0 -5
  275. package/dist/bromcom-ui/p-7edab876.entry.js +0 -5
  276. package/dist/bromcom-ui/p-83882081.js +0 -5
  277. package/dist/bromcom-ui/p-85371fa1.entry.js +0 -5
  278. package/dist/bromcom-ui/p-862e5ce9.js +0 -5
  279. package/dist/bromcom-ui/p-903d62ff.entry.js +0 -5
  280. package/dist/bromcom-ui/p-91f15c4d.entry.js +0 -5
  281. package/dist/bromcom-ui/p-9d95be18.entry.js +0 -5
  282. package/dist/bromcom-ui/p-a366357e.entry.js +0 -5
  283. package/dist/bromcom-ui/p-a8fd6d69.js +0 -5
  284. package/dist/bromcom-ui/p-afb1e0ae.entry.js +0 -5
  285. package/dist/bromcom-ui/p-b1f75abe.entry.js +0 -5
  286. package/dist/bromcom-ui/p-b284e383.entry.js +0 -5
  287. package/dist/bromcom-ui/p-bc0eb2d3.entry.js +0 -5
  288. package/dist/bromcom-ui/p-bc668762.js +0 -5
  289. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  290. package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
  291. package/dist/bromcom-ui/p-c2ef6353.entry.js +0 -5
  292. package/dist/bromcom-ui/p-c5a06d3a.entry.js +0 -5
  293. package/dist/bromcom-ui/p-c7be0488.entry.js +0 -5
  294. package/dist/bromcom-ui/p-ca5073d9.entry.js +0 -5
  295. package/dist/bromcom-ui/p-cce4fa10.entry.js +0 -5
  296. package/dist/bromcom-ui/p-d2f863d9.js +0 -5
  297. package/dist/bromcom-ui/p-d36d96af.entry.js +0 -5
  298. package/dist/bromcom-ui/p-d40c26fb.entry.js +0 -5
  299. package/dist/bromcom-ui/p-d60c61e8.entry.js +0 -5
  300. package/dist/bromcom-ui/p-db8aceb9.entry.js +0 -5
  301. package/dist/bromcom-ui/p-e4a2f8f8.entry.js +0 -5
  302. package/dist/bromcom-ui/p-e60832d7.entry.js +0 -5
  303. package/dist/bromcom-ui/p-e8962d4b.entry.js +0 -5
  304. package/dist/bromcom-ui/p-ec9b0de4.entry.js +0 -5
  305. package/dist/bromcom-ui/p-ef440eba.entry.js +0 -5
  306. package/dist/bromcom-ui/p-f144de37.entry.js +0 -5
  307. package/dist/bromcom-ui/p-f1550bf5.entry.js +0 -5
  308. package/dist/bromcom-ui/p-fd8a6bb8.entry.js +0 -5
  309. package/dist/bromcom-ui/p-fe39eea8.js +0 -5
  310. package/dist/cjs/Overflow-7a86d378.js +0 -2233
  311. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  312. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  313. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  314. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  315. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  316. package/dist/cjs/bcm-button_11.cjs.entry.js +0 -3340
  317. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  318. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
  319. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  320. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  321. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
  322. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
  323. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  324. package/dist/cjs/bcm-date.cjs.entry.js +0 -182
  325. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  326. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  327. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  328. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  329. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  330. package/dist/cjs/bcm-link.cjs.entry.js +0 -51
  331. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1972
  332. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  333. package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
  334. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  335. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
  336. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  337. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  338. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  339. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  340. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  341. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -9986
  342. package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
  343. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  344. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  345. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  346. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  347. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  348. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -59
  349. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  350. package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
  351. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
  352. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  353. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
  354. package/dist/cjs/input-template-b836720c.js +0 -92
  355. package/dist/cjs/json-parse-decarator-b8367488.js +0 -40
  356. package/dist/cjs/lodash-917168d7.js +0 -17199
  357. package/dist/cjs/moment-d06b012f.js +0 -4601
  358. package/dist/cjs/stepper-states-17562587.js +0 -85
  359. package/dist/cjs/tooltip-helper-41b2fcd0.js +0 -158
  360. package/dist/esm/Overflow-32a0ec34.js +0 -2217
  361. package/dist/esm/bcm-accordion.entry.js +0 -70
  362. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  363. package/dist/esm/bcm-attendance.entry.js +0 -31
  364. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  365. package/dist/esm/bcm-button-group.entry.js +0 -88
  366. package/dist/esm/bcm-button_11.entry.js +0 -3326
  367. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  368. package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
  369. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  370. package/dist/esm/bcm-chip.entry.js +0 -87
  371. package/dist/esm/bcm-collapse-group.entry.js +0 -39
  372. package/dist/esm/bcm-collapse.entry.js +0 -58
  373. package/dist/esm/bcm-color-input.entry.js +0 -73
  374. package/dist/esm/bcm-date.entry.js +0 -178
  375. package/dist/esm/bcm-drawer.entry.js +0 -92
  376. package/dist/esm/bcm-dropdown.entry.js +0 -115
  377. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  378. package/dist/esm/bcm-item.entry.js +0 -68
  379. package/dist/esm/bcm-items.entry.js +0 -45
  380. package/dist/esm/bcm-link.entry.js +0 -47
  381. package/dist/esm/bcm-list_3.entry.js +0 -1966
  382. package/dist/esm/bcm-menu.entry.js +0 -147
  383. package/dist/esm/bcm-modal.entry.js +0 -153
  384. package/dist/esm/bcm-old-input.entry.js +0 -393
  385. package/dist/esm/bcm-old-tag_2.entry.js +0 -140
  386. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  387. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  388. package/dist/esm/bcm-progress.entry.js +0 -158
  389. package/dist/esm/bcm-radio-group.entry.js +0 -157
  390. package/dist/esm/bcm-radio.entry.js +0 -61
  391. package/dist/esm/bcm-rc-picker.entry.js +0 -9982
  392. package/dist/esm/bcm-select.entry.js +0 -1191
  393. package/dist/esm/bcm-shortcut.entry.js +0 -61
  394. package/dist/esm/bcm-step.entry.js +0 -85
  395. package/dist/esm/bcm-stepper.entry.js +0 -236
  396. package/dist/esm/bcm-switch.entry.js +0 -147
  397. package/dist/esm/bcm-tab-group.entry.js +0 -206
  398. package/dist/esm/bcm-tab-item-header.entry.js +0 -55
  399. package/dist/esm/bcm-tab-item.entry.js +0 -87
  400. package/dist/esm/bcm-tab.entry.js +0 -68
  401. package/dist/esm/bcm-tabs.entry.js +0 -366
  402. package/dist/esm/bcm-text.entry.js +0 -45
  403. package/dist/esm/bcm-textarea.entry.js +0 -159
  404. package/dist/esm/input-template-c8611096.js +0 -90
  405. package/dist/esm/json-parse-decarator-b230fb3b.js +0 -38
  406. package/dist/esm/lodash-0a4396a7.js +0 -17197
  407. package/dist/esm/moment-15cd9198.js +0 -4598
  408. package/dist/esm/stepper-states-38388dc9.js +0 -83
  409. package/dist/esm/tooltip-helper-e4eb77cc.js +0 -156
@@ -1,366 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { S as SizeProps, T as TypeProps, D as DirectionProps } from './types-b211a5eb.js';
7
- import { d as delay, c as getChilds } from './utils-57652744.js';
8
- import { c as classnames } from './index-b84bc8c9.js';
9
- import './_commonjsHelpers-be0d4ec8.js';
10
-
11
- const tabsCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:\"\";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:\"\";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}";
12
-
13
- const BcmTabs = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this.click = createEvent(this, "bcm-click", 7);
17
- this.change = createEvent(this, "bcm-change", 7);
18
- this.bcmTabsActiveItem = createEvent(this, "bcm-tabs-active-item", 7);
19
- /**
20
- * Component Private variables
21
- */
22
- this.tabs = [];
23
- this.firstInit = true;
24
- this.count = 0;
25
- this.size = SizeProps.large;
26
- this.type = TypeProps.normal;
27
- this.direction = DirectionProps.horizontal;
28
- this.hidden = false;
29
- this.fullWidth = false;
30
- this.underline = true;
31
- this.activeChild = 1;
32
- this.lineOpts = { top: '0px', left: '0px', right: '0px', width: '0px', height: '0px' };
33
- this.prevButton = null;
34
- this.nextButton = null;
35
- this.completeButton = null;
36
- this.prevButtonState = 'disabled';
37
- this.nextButtonState = 'disabled';
38
- this.completeButtonState = 'disabled';
39
- }
40
- async config(_config) {
41
- if (_config['prevButton']) {
42
- if (_config['prevButton']['id']) {
43
- var prevButtonId = "#" + _config['prevButton']['id'];
44
- this.prevButton = document.querySelector(prevButtonId);
45
- }
46
- if (_config['prevButton']['state']) {
47
- this.prevButtonState = _config['prevButton']['state'];
48
- }
49
- }
50
- if (_config['nextButton']) {
51
- if (_config['nextButton']['id']) {
52
- var nextButtonId = "#" + _config['nextButton']['id'];
53
- this.nextButton = document.querySelector(nextButtonId);
54
- }
55
- if (_config['nextButton']['state']) {
56
- this.nextButtonState = _config['nextButton']['state'];
57
- }
58
- }
59
- if (_config['completeButton']) {
60
- if (_config['completeButton']['id']) {
61
- var completeButtonId = "#" + _config['completeButton']['id'];
62
- this.completeButton = document.querySelector(completeButtonId);
63
- }
64
- if (_config['completeButton']['state']) {
65
- this.completeButtonState = _config['completeButton']['state'];
66
- }
67
- }
68
- this.buttonControl();
69
- return true;
70
- }
71
- async next() {
72
- var getFormId = "#" + this.tabs[this.getActive() - 1]["formControl"];
73
- var getForm = document.querySelector(getFormId);
74
- var formData = null;
75
- if (getForm) {
76
- formData = await getForm.submit();
77
- }
78
- if ((getForm && formData.isValid) || !getForm) {
79
- this.activeChild = this.getActive() + 1;
80
- this.active(this.tabs[this.getActive() - 1]["tabId"]);
81
- }
82
- return formData;
83
- }
84
- async prev() {
85
- this.activeChild = this.getActive() - 1;
86
- this.active(this.tabs[this.getActive() - 1]["tabId"]);
87
- return this.activeChild;
88
- }
89
- async complete() {
90
- const tabStatuses = [];
91
- var isValid = true;
92
- this.tabs.forEach(element => {
93
- if (element['formControl']) {
94
- const getFormId = "#" + element["formControl"];
95
- const getForm = document.querySelector(getFormId);
96
- if (getForm) {
97
- tabStatuses.push(getForm.submit());
98
- }
99
- }
100
- });
101
- const allStatuses = await Promise.all(tabStatuses);
102
- allStatuses.forEach(item => {
103
- if (item.isValid === false) {
104
- isValid = false;
105
- if (item.formName) {
106
- const formId = this.tabs.filter((input) => input['formControl'] == item.formName)[0]['tabId'];
107
- this.active(formId);
108
- }
109
- }
110
- });
111
- return { isValid: isValid, Forms: allStatuses };
112
- }
113
- async active(id) {
114
- var i = 0;
115
- this.activeChild = -1,
116
- await delay(100);
117
- getChilds(this.el, 'bcm-tab').forEach(items => {
118
- i++,
119
- items.tabId == id && (items.disabled = false,
120
- items.active = true,
121
- this.bcmTabsActiveItem.emit(items.tabId),
122
- this.activeChild = i);
123
- items.tabId != id && (items.active = false);
124
- });
125
- }
126
- async getActiveTab() {
127
- return this.tabs[this.getActive() - 1]["tabId"];
128
- }
129
- async getActiveIndex() {
130
- return this.getActive();
131
- }
132
- async error(id, blink = false) {
133
- getChilds(this.el, 'bcm-tab').forEach(items => {
134
- items.tabId == id && (items.badge = true,
135
- items.blink = blink,
136
- items.status = "error");
137
- });
138
- }
139
- async info(id, blink = false) {
140
- getChilds(this.el, 'bcm-tab').forEach(items => {
141
- items.tabId == id && (items.badge = true,
142
- items.blink = blink,
143
- items.status = "processing");
144
- });
145
- }
146
- async warning(id, blink = false) {
147
- getChilds(this.el, 'bcm-tab').forEach(items => {
148
- items.tabId == id && (items.badge = true,
149
- items.blink = blink,
150
- items.status = "warning");
151
- });
152
- }
153
- async success(id, blink = false) {
154
- getChilds(this.el, 'bcm-tab').forEach(items => {
155
- items.tabId == id && (items.badge = true,
156
- items.blink = blink,
157
- items.status = "success");
158
- });
159
- }
160
- async statusReset(id) {
161
- getChilds(this.el, 'bcm-tab').forEach(items => {
162
- items.tabId == id && (items.badge = false,
163
- items.blink = false,
164
- items.status = "default");
165
- });
166
- }
167
- buttonControl() {
168
- if (this.prevButton) {
169
- if (this.activeChild == 1) {
170
- this.prevButton.setAttribute(this.prevButtonState, "true");
171
- }
172
- else {
173
- this.prevButton.removeAttribute(this.prevButtonState);
174
- }
175
- }
176
- if (this.nextButton) {
177
- if (this.getActive() == this.count) {
178
- this.nextButton.setAttribute(this.nextButtonState, "true");
179
- }
180
- else {
181
- this.nextButton.removeAttribute(this.nextButtonState);
182
- }
183
- }
184
- if (this.completeButton) {
185
- if (this.getActive() == this.count) {
186
- this.completeButton.removeAttribute(this.completeButtonState);
187
- }
188
- else {
189
- this.completeButton.setAttribute(this.completeButtonState, "true");
190
- }
191
- }
192
- }
193
- /**
194
- * @ComponentMethod
195
- */
196
- componentDidRender() {
197
- if (!this.firstInit)
198
- return;
199
- let slotElements;
200
- slotElements = this.el.shadowRoot.querySelector('slot').assignedElements();
201
- this.tabs = [];
202
- this.activeChild = this.getActive();
203
- var isActive = false;
204
- var firstId = null;
205
- var i = 0;
206
- // Get only bcm-tab elements from
207
- // slot childs
208
- slotElements.map((element) => {
209
- i++;
210
- this.type == "stepper" && (element.disabled = true);
211
- if (!firstId) {
212
- firstId = element.tabId;
213
- }
214
- if (String(element.tagName).toLowerCase() == 'bcm-tab') {
215
- element.type = this.type;
216
- // Activate default tab
217
- // #
218
- if (this.tabs.push(element) - 1 == this.activeChild) {
219
- this.activateChild(this.activeChild);
220
- isActive = true;
221
- }
222
- }
223
- this.count = i;
224
- });
225
- if (!isActive) {
226
- this.active(firstId);
227
- }
228
- setTimeout(() => {
229
- this.el.shadowRoot.querySelector('.tabs').classList.add('animatable');
230
- }, 500);
231
- }
232
- componentDidLoad() {
233
- getChilds(this.el, 'bcm-tab').forEach(items => {
234
- items.active && (this.bcmTabsActiveItem.emit(items.tabId), items.disabled = false);
235
- });
236
- }
237
- getActive() {
238
- const childs = getChilds(this.el, 'bcm-tab');
239
- const childIndex = childs.findIndex(child => child.active);
240
- return childIndex >= 0 ? childIndex + 1 : 1;
241
- }
242
- /**
243
- * @desc
244
- */
245
- getChildIdx(child) {
246
- let i = 1;
247
- while (child.previousElementSibling) {
248
- child = child.previousElementSibling;
249
- i++;
250
- }
251
- return i;
252
- }
253
- /**
254
- * @desc
255
- * @param idx
256
- */
257
- activateChild(idx) {
258
- idx = idx - 1;
259
- const child = this.tabs[idx];
260
- if (child) {
261
- this.tabs.forEach((tab) => tab.active = false);
262
- child.active = true;
263
- child.disabled = false;
264
- this.transformLine(idx);
265
- this.firstInit && forceUpdate(this.el);
266
- this.firstInit = false;
267
- }
268
- }
269
- /**
270
- * @desc
271
- * @param idx
272
- */
273
- transformLine(idx) {
274
- const tab = this.tabs[idx];
275
- const rect = tab.getBoundingClientRect();
276
- const top = (rect.top + window.pageYOffset);
277
- const left = (rect.left + window.pageXOffset);
278
- const width = rect.width;
279
- const height = rect.height;
280
- if (this.direction == 'horizontal') {
281
- // this.lineOpts.top = (tab.offsetTop + tab.offsetHeight) + 'px'
282
- this.lineOpts.top = top + height + 'px';
283
- // this.lineOpts.left = tab.offsetLeft + 'px'
284
- this.lineOpts.left = left + 'px';
285
- // this.lineOpts.width = tab.offsetWidth + 'px'
286
- this.lineOpts.width = width + 'px';
287
- this.lineOpts.right = 'unset';
288
- this.lineOpts.height = '2px';
289
- }
290
- else {
291
- // this.lineOpts.top = tab.offsetTop + 'px'
292
- this.lineOpts.top = top + 'px';
293
- this.lineOpts.left = 'unset';
294
- this.lineOpts.right = '0';
295
- this.lineOpts.width = '2px';
296
- // this.lineOpts.height = tab.offsetHeight + 'px'
297
- this.lineOpts.height = height + 'px';
298
- }
299
- }
300
- /**
301
- * @desc
302
- */
303
- getLineTransform() {
304
- return {
305
- '--bcm-tabs-line-top': this.lineOpts.top,
306
- '--bcm-tabs-line-left': this.lineOpts.left,
307
- '--bcm-tabs-line-width': this.lineOpts.width,
308
- '--bcm-tabs-line-right': this.lineOpts.right,
309
- '--bcm-tabs-line-height': this.lineOpts.height
310
- };
311
- }
312
- /**
313
- * @desc
314
- * @param event
315
- */
316
- handleTabClick(event) {
317
- const targetElement = event.target;
318
- const childIdx = this.getChildIdx(targetElement);
319
- this.activeChild = null;
320
- this.activeChild = childIdx;
321
- }
322
- /**
323
- * @desc
324
- * @param event
325
- */
326
- handleTabClose(event) {
327
- const targetElement = event.target;
328
- const childIdx = this.getChildIdx(targetElement);
329
- // Remove element
330
- // #
331
- targetElement.remove();
332
- this.tabs.splice(childIdx - 1, 1);
333
- if (childIdx === this.activeChild) {
334
- this.activeChild = 1;
335
- this.activateChild(1);
336
- }
337
- }
338
- /**
339
- * @desc
340
- * @param newValue
341
- */
342
- activeChildChange(newValue) {
343
- this.activateChild(newValue);
344
- this.change.emit(newValue);
345
- this.buttonControl();
346
- }
347
- /**
348
- * @desc
349
- */
350
- windowResize() {
351
- this.transformLine(this.activeChild - 1);
352
- forceUpdate(this.el);
353
- }
354
- render() {
355
- const classes = classnames('tabs', [this.direction], [this.size], [this.type], this.fullWidth ? 'full-width' : null, this.underline ? 'underline' : null);
356
- const hostClasses = classnames(this.hidden ? 'hidden' : null);
357
- return (h(Host, { class: hostClasses }, h("div", { class: classes, style: this.getLineTransform(), "on-bcm-click": (event) => this.handleTabClick(event), "on-bcm-close": (event) => this.handleTabClose(event) }, h("slot", null))));
358
- }
359
- get el() { return getElement(this); }
360
- static get watchers() { return {
361
- "activeChild": ["activeChildChange"]
362
- }; }
363
- };
364
- BcmTabs.style = tabsCss;
365
-
366
- export { BcmTabs as bcm_tabs };
@@ -1,45 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { c as classnames } from './index-b84bc8c9.js';
7
- import { C as ColorHelper } from './color-helper-c0bb1d8a.js';
8
- import { S as SlotTemplate } from './slot-template-7c36d3be.js';
9
- import './_commonjsHelpers-be0d4ec8.js';
10
- import './colors-1d7854ea.js';
11
- import './utils-57652744.js';
12
- import './colors-df32bb43.js';
13
- import './string-helper-85990695.js';
14
- import './bcm-a50d55ba.js';
15
-
16
- const textCss = "@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-text{display:inline;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-text.hidden{display:none}.bcm-text__paragraph{margin:0;padding:0}.bcm-text__font-size-1{font-size:10px;line-height:calc(10px + 8px)}.bcm-text__font-size-2{font-size:12px;line-height:calc(12px + 8px)}.bcm-text__font-size-3{font-size:14px;line-height:calc(14px + 8px)}.bcm-text__font-size-4{font-size:16px;line-height:calc(16px + 8px)}.bcm-text__font-size-5{font-size:18px;line-height:calc(18px + 8px)}.bcm-text__font-size-6{font-size:20px;line-height:calc(20px + 8px)}.bcm-text__font-size-7{font-size:24px;line-height:calc(24px + 8px)}.bcm-text__font-size-8{font-size:32px;line-height:calc(32px + 8px)}.bcm-text__font-size-9{font-size:40px;line-height:calc(40px + 8px)}";
17
-
18
- const BcmText = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- this.hidden = false;
22
- this.scale = undefined;
23
- this.weight = "400";
24
- this.color = "slate";
25
- this.text = undefined;
26
- this.fontSize = 4;
27
- }
28
- render() {
29
- const { hidden, scale, weight, color, fontSize } = this;
30
- const hostClasses = classnames('bcm-text', {
31
- hidden
32
- });
33
- const classes = classnames('bcm-text__paragraph', `bcm-text__font-size-${fontSize}`, scale);
34
- const fontWeight = +weight || 400;
35
- const style = {
36
- color: ColorHelper.dsColor(color),
37
- fontWeight
38
- };
39
- return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null)), h("p", { class: classes, style: Object.assign({}, style) }, h(SlotTemplate, { value: this.text }))));
40
- }
41
- get el() { return getElement(this); }
42
- };
43
- BcmText.style = textCss;
44
-
45
- export { BcmText as bcm_text };
@@ -1,159 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { c as classnames } from './index-b84bc8c9.js';
7
- import { I as IsLoad } from './is-load-decorator-8277e3b8.js';
8
- import { G as Generate } from './generate-a1817b7f.js';
9
- import { B as Bcm } from './bcm-a50d55ba.js';
10
- import { C as CaptionTemplate } from './caption-template-5c43c733.js';
11
- import { I as InputTemplate } from './input-template-c8611096.js';
12
- import { d as delay } from './utils-57652744.js';
13
- import './_commonjsHelpers-be0d4ec8.js';
14
- import './package-5d20a20d.js';
15
- import './colors-df32bb43.js';
16
- import './types-6f06fa1a.js';
17
-
18
- var ResizeType;
19
- (function (ResizeType) {
20
- ResizeType["none"] = "none";
21
- ResizeType["both"] = "both";
22
- ResizeType["horizontal"] = "horizontal";
23
- ResizeType["vertical"] = "vertical";
24
- ResizeType["initial"] = "initial";
25
- ResizeType["inherit"] = "inherit";
26
- })(ResizeType || (ResizeType = {}));
27
-
28
- const textareaCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
29
-
30
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
31
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
33
- r = Reflect.decorate(decorators, target, key, desc);
34
- else
35
- for (var i = decorators.length - 1; i >= 0; i--)
36
- if (d = decorators[i])
37
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
38
- return c > 3 && r && Object.defineProperty(target, key, r), r;
39
- };
40
- const BcmTextarea = class {
41
- constructor(hostRef) {
42
- registerInstance(this, hostRef);
43
- this.focus = createEvent(this, "bcm-focus", 7);
44
- this.blur = createEvent(this, "bcm-blur", 7);
45
- this.clear = createEvent(this, "bcm-clear", 7);
46
- this.change = createEvent(this, "bcm-change", 7);
47
- this.input = createEvent(this, "bcm-input", 7);
48
- this._id = Generate.UID();
49
- this._internal_id = Generate.UID();
50
- this.hidden = false;
51
- this.value = undefined;
52
- this.placeholder = undefined;
53
- this.label = undefined;
54
- this.name = undefined;
55
- this.required = false;
56
- this.caption = undefined;
57
- this.noCaption = false;
58
- this.captionError = undefined;
59
- this.captionType = Bcm.Status.default;
60
- this.rows = 3;
61
- this.size = Bcm.Size.medium;
62
- this.disabled = undefined;
63
- this.readonly = false;
64
- this.clearable = undefined;
65
- this.resize = ResizeType.vertical;
66
- this.fullWidth = false;
67
- this.maxLength = undefined;
68
- this.focused = false;
69
- this.captionCache = undefined;
70
- this.captionTypeCache = undefined;
71
- }
72
- connectedCallback() {
73
- this.captionCache = this.caption;
74
- this.captionTypeCache = this.captionType;
75
- }
76
- async onBcmFocus() {
77
- this.textarea.focus();
78
- }
79
- async onBcmBlur() {
80
- this.textarea.blur();
81
- }
82
- async onBcmSelect() {
83
- this.textarea.select();
84
- }
85
- async set(data) {
86
- await this.setValue(data);
87
- }
88
- async get() {
89
- return this.value || null;
90
- }
91
- async setValue(value) {
92
- this.textarea.value = value;
93
- this.value = value;
94
- this.handleChange();
95
- return value;
96
- }
97
- async setClear() {
98
- this.textarea.value = '';
99
- this.value = '';
100
- await delay(10);
101
- return Promise.resolve();
102
- }
103
- async resetCaption() {
104
- await delay(10);
105
- this.caption = this.captionCache;
106
- this.captionType = this.captionTypeCache;
107
- this.captionError = null;
108
- await delay(10);
109
- return Promise.resolve();
110
- }
111
- async getValue() {
112
- return this.value;
113
- }
114
- watchValue(newValue) {
115
- this.textarea.value = newValue;
116
- this.handleChange();
117
- }
118
- handleFocus() {
119
- this.focused = true;
120
- this.focus.emit();
121
- }
122
- handleBlur() {
123
- this.focused = false;
124
- this.blur.emit();
125
- }
126
- handleChange() {
127
- this.value = this.textarea.value;
128
- this.change.emit(this.value);
129
- }
130
- handleInput() {
131
- this.value = this.textarea.value;
132
- this.input.emit(this.value);
133
- }
134
- handleClear(e) {
135
- this.textarea.value = '';
136
- this.value = '';
137
- this.clear.emit();
138
- this.textarea.focus();
139
- e.stopPropagation();
140
- }
141
- render() {
142
- const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
143
- const hostClasses = classnames('bcm-input', {
144
- hidden,
145
- 'full-width': fullWidth,
146
- });
147
- return (h(Host, { class: hostClasses }, label && h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), h(InputTemplate, { elementType: Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
148
- }
149
- get el() { return getElement(this); }
150
- static get watchers() { return {
151
- "value": ["watchValue"]
152
- }; }
153
- };
154
- __decorate([
155
- IsLoad()
156
- ], BcmTextarea.prototype, "el", void 0);
157
- BcmTextarea.style = textareaCss;
158
-
159
- export { BcmTextarea as bcm_textarea };
@@ -1,90 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { h } from './index-0615c2b8.js';
6
- import { d as defaultIcons } from './types-6f06fa1a.js';
7
- import { B as Bcm } from './bcm-a50d55ba.js';
8
- import { c as classnames } from './index-b84bc8c9.js';
9
- import { s as snq } from './generate-a1817b7f.js';
10
-
11
- const InputTemplate = ({ elementType,
12
- //textarea
13
- rows,
14
- //props
15
- id, internalId, type, placeholder, value, size, pattern,
16
- //,
17
- unit, unitPrefix, maxLength,
18
- //boolean
19
- disabled, clearable, focused, readonly, isPasswordVisible, passwordToggle, noDefaultIcon, inValid, captionType, resize, autocomplete, _suffix, _prefix,
20
- // custom functions
21
- changePasswordVisibility, handleClear, steps,
22
- //event functions
23
- ref, handleBlur, handleFocus, handleInput, handleChange, isEyeDropperSupported, eyeDropper, }) => {
24
- const ElementTagType = Bcm.HtmlElementType[elementType] || Bcm.HtmlElementType.input;
25
- type = type === "password" && isPasswordVisible ? "text" : type;
26
- value = snq(() => value, "");
27
- type = (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !focused ? "text" : type;
28
- value = !focused ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? " " + unit : "") : value;
29
- const typeColor = type === "color";
30
- type = type === "color" ? "text" : type;
31
- const templateHandleFocus = e => {
32
- e.target.parentElement.classList.add("focused");
33
- handleFocus(e);
34
- };
35
- const templateHandleBlur = e => {
36
- e.target.parentElement.classList.remove("focused");
37
- handleBlur(e);
38
- };
39
- var containerClass = classnames("bcm-input__container", ElementTagType === Bcm.HtmlElementType.textarea && classnames("bcm-input__textarea", "textarea-size-" + Bcm.Size[size], "resize-" + resize, "textarea-" + size), ElementTagType === Bcm.HtmlElementType.input && classnames("input-size-" + Bcm.Size[size]), {
40
- focused: focused,
41
- clearable: clearable,
42
- disabled,
43
- readonly,
44
- invalid: inValid,
45
- unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
46
- // 'empty': value?.length < 1,
47
- error: captionType === "error",
48
- });
49
- const caretContainer = classnames("caret-container", {
50
- unit: (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
51
- disabled: disabled || readonly || inValid,
52
- });
53
- const inputClass = "bcm-input__container--" + size;
54
- const unitClass = classnames(inputClass, "unit-prefix");
55
- return (h("div", { class: containerClass, id: id + "-container" },
56
- h("span", { hidden: true },
57
- h("slot", null)),
58
- h("span", { class: "input-prefix" },
59
- h("slot", { name: "prefix" }),
60
- _prefix && _prefix.length > 0 && h("span", { innerHTML: _prefix }),
61
- unitPrefix && h("span", { class: unitClass }, unitPrefix),
62
- typeColor && (h("i", { class: "tw-flex tw-h-4 tw-w-4 tw-items-center tw-justify-center tw-rounded-full tw-border tw-border-slate-300", style: {
63
- backgroundColor: value,
64
- } }))),
65
- h(ElementTagType, Object.assign({ tabindex: "0", id: id + "-input", "bcm-internal-id": internalId, class: "bcm-input-element " + inputClass }, (ElementTagType === Bcm.HtmlElementType.input && {
66
- type,
67
- autocomplete: autocomplete ? "on" : "off",
68
- pattern,
69
- }), (ElementTagType === Bcm.HtmlElementType.textarea && { rows: rows, resize: resize }), { value: value, maxLength: maxLength, placeholder: placeholder, disabled: disabled, readOnly: readonly, ref: el => ref(el), onBlur: e => templateHandleBlur(e), onFocus: e => templateHandleFocus(e), onInput: e => handleInput(e), onChange: e => handleChange(e) })),
70
- h("span", { class: "input-suffix-content" }, clearable && !disabled && !readonly && (h("span", { class: "input-suffix input-suffix-button input-clear-button", onClick: e => handleClear(e) },
71
- h("bcm-icon", { icon: "far fa-times" })))),
72
- h("span", { class: "input-suffix-content" }, (type === "password" || type === "text") && passwordToggle && (h("span", { class: "input-suffix input-suffix-button", onClick: () => changePasswordVisibility() },
73
- h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-slash" : "far fa-eye" })))),
74
- h("span", { class: "input-suffix-content" }, Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix" },
75
- h("bcm-icon", { icon: defaultIcons[type] })))),
76
- h("span", { class: "input-suffix-content" }, type === "number" && (h("div", { class: caretContainer },
77
- h("span", { class: "bcm-input-caret", onClick: () => steps("up") },
78
- h("bcm-icon", { icon: "fas fa-caret-up" })),
79
- h("span", { class: "bcm-input-caret", onClick: () => steps("down") },
80
- h("bcm-icon", { icon: "fas fa-caret-down" }))))),
81
- h("span", { class: "input-suffix-content" },
82
- type !== "number" && (h("span", { class: "input-suffix" },
83
- h("slot", { name: "suffix" }),
84
- _suffix && _suffix.length > 0 && h("span", { innerHTML: _suffix }))),
85
- typeColor && isEyeDropperSupported() && (h("span", { class: "input-suffix" },
86
- h("span", null,
87
- h("i", { class: "far fa-eye-dropper", onClick: () => eyeDropper() })))))));
88
- };
89
-
90
- export { InputTemplate as I };