bromcom-ui 2.7.38-rc.9 → 2.8.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (441) 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/helper/index.ts +1 -0
  4. package/dist/bromcom-ui/global/helper/toast.ts +136 -0
  5. package/dist/bromcom-ui/p-07b62dab.entry.js +5 -0
  6. package/dist/bromcom-ui/p-0ae31364.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-72f741db.entry.js → p-0b77585e.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-64b20f43.entry.js → p-0f685aa9.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-168d2632.entry.js +5 -0
  11. package/dist/bromcom-ui/p-178fb088.entry.js +5 -0
  12. package/dist/bromcom-ui/p-17bafd84.entry.js +5 -0
  13. package/dist/bromcom-ui/p-1a0900cc.entry.js +10 -0
  14. package/dist/bromcom-ui/p-1faaac85.entry.js +5 -0
  15. package/dist/bromcom-ui/p-22e08221.entry.js +5 -0
  16. package/dist/bromcom-ui/p-2a57c8c7.entry.js +5 -0
  17. package/dist/bromcom-ui/{p-444cb95f.entry.js → p-2cdc4578.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-2eaf7068.entry.js +5 -0
  19. package/dist/bromcom-ui/p-34a59d30.js +5 -0
  20. package/dist/bromcom-ui/{p-4721d58a.entry.js → p-369d6e4f.entry.js} +1 -1
  21. package/dist/bromcom-ui/p-3a093f9e.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-969f623c.entry.js → p-3ccc9177.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-69ef565b.entry.js → p-3d4897d8.entry.js} +1 -1
  24. package/dist/bromcom-ui/p-3d8802d9.entry.js +5 -0
  25. package/dist/bromcom-ui/p-3e45d00d.entry.js +5 -0
  26. package/dist/bromcom-ui/p-410c74f6.js +5 -0
  27. package/dist/bromcom-ui/p-4185987d.entry.js +5 -0
  28. package/dist/bromcom-ui/p-4487e8c2.js +5 -0
  29. package/dist/bromcom-ui/{p-5775dcea.js → p-48e9166c.js} +1 -1
  30. package/dist/bromcom-ui/{p-1d44dbea.entry.js → p-4a123037.entry.js} +1 -1
  31. package/dist/bromcom-ui/p-4a51c718.entry.js +5 -0
  32. package/dist/bromcom-ui/p-51deaab5.entry.js +5 -0
  33. package/dist/bromcom-ui/p-524ab0fc.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-620afa4f.js → p-56a5396d.js} +1 -1
  35. package/dist/bromcom-ui/p-56bb19ef.js +5 -0
  36. package/dist/bromcom-ui/p-58815bb1.entry.js +5 -0
  37. package/dist/bromcom-ui/p-5cd30376.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-fc55a7e3.entry.js → p-5d014153.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
  40. package/dist/bromcom-ui/{p-3126f440.entry.js → p-61709094.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-65fbabc8.entry.js +5 -0
  42. package/dist/bromcom-ui/p-6baf6ea4.entry.js +5 -0
  43. package/dist/bromcom-ui/p-6ea775e8.entry.js +5 -0
  44. package/dist/bromcom-ui/p-701cf04e.entry.js +5 -0
  45. package/dist/bromcom-ui/p-70c794df.js +5 -0
  46. package/dist/bromcom-ui/p-71930900.js +5 -0
  47. package/dist/bromcom-ui/{p-16ff1ff3.js → p-74595a06.js} +1 -1
  48. package/dist/bromcom-ui/p-79a1c167.js +5 -0
  49. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  50. package/dist/bromcom-ui/p-7eb09daf.entry.js +5 -0
  51. package/dist/bromcom-ui/{p-930558cd.js → p-7eb8c46e.js} +1 -1
  52. package/dist/bromcom-ui/p-80fdd63f.entry.js +5 -0
  53. package/dist/bromcom-ui/p-889553d3.entry.js +5 -0
  54. package/dist/bromcom-ui/{p-ba062b3c.js → p-88f7d869.js} +1 -1
  55. package/dist/bromcom-ui/p-89a9e8e3.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  57. package/dist/bromcom-ui/p-8cc29a92.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-219b3300.entry.js → p-8d1cd79f.entry.js} +1 -1
  59. package/dist/bromcom-ui/p-8fa7cdf0.entry.js +5 -0
  60. package/dist/bromcom-ui/p-94da7678.entry.js +5 -0
  61. package/dist/bromcom-ui/p-967df53d.entry.js +5 -0
  62. package/dist/bromcom-ui/p-970a4dd6.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-57d0c6e7.entry.js → p-97df9122.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-98c9ac37.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-ee9ba6ba.entry.js → p-9a1dc17c.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-1d77b8a6.js → p-9bef5a59.js} +1 -1
  67. package/dist/bromcom-ui/{p-4f86851c.entry.js → p-a173ed35.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-a452bb5e.entry.js +5 -0
  69. package/dist/bromcom-ui/p-a5abe2d6.entry.js +5 -0
  70. package/dist/bromcom-ui/p-afa908e9.entry.js +5 -0
  71. package/dist/bromcom-ui/p-b175a1e1.entry.js +5 -0
  72. package/dist/bromcom-ui/p-b5531d54.entry.js +5 -0
  73. package/dist/bromcom-ui/p-ba8d8c03.entry.js +5 -0
  74. package/dist/bromcom-ui/p-bd2d9941.entry.js +5 -0
  75. package/dist/bromcom-ui/{p-5a9b78f6.entry.js → p-bdb012c3.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-c3238361.entry.js +5 -0
  77. package/dist/bromcom-ui/{p-5001042f.js → p-c718f29a.js} +1 -1
  78. package/dist/bromcom-ui/{p-2b73f6b1.entry.js → p-c9235a71.entry.js} +1 -1
  79. package/dist/bromcom-ui/p-ceace9c7.entry.js +5 -0
  80. package/dist/bromcom-ui/p-d236a84f.entry.js +5 -0
  81. package/dist/bromcom-ui/p-d39369ff.entry.js +5 -0
  82. package/dist/bromcom-ui/{p-a368c325.entry.js → p-dae1cc7b.entry.js} +1 -1
  83. package/dist/bromcom-ui/{p-b9352123.entry.js → p-dc306bd8.entry.js} +1 -1
  84. package/dist/bromcom-ui/{p-764ae0c1.js → p-de954bc9.js} +1 -1
  85. package/dist/bromcom-ui/{p-c3ef369d.entry.js → p-dfe8e354.entry.js} +1 -1
  86. package/dist/bromcom-ui/{p-568f4f45.entry.js → p-e02491ce.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-0b6afb97.entry.js → p-e2b3cb98.entry.js} +1 -1
  88. package/dist/bromcom-ui/p-e2e7d808.entry.js +5 -0
  89. package/dist/bromcom-ui/p-e30c5251.entry.js +5 -0
  90. package/dist/bromcom-ui/p-e3d32c37.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-ac156ba4.entry.js → p-e422fc70.entry.js} +1 -1
  92. package/dist/bromcom-ui/p-e9295fec.entry.js +5 -0
  93. package/dist/bromcom-ui/p-ef6e4107.entry.js +5 -0
  94. package/dist/bromcom-ui/{p-4b1ed966.entry.js → p-f089027d.entry.js} +1 -1
  95. package/dist/bromcom-ui/{p-9979bd82.entry.js → p-f16ce14a.entry.js} +1 -1
  96. package/dist/bromcom-ui/p-f881a6b8.entry.js +5 -0
  97. package/dist/bromcom-ui/p-ffb57c2c.entry.js +5 -0
  98. package/dist/cjs/bcm-accordion.cjs.entry.js +3 -1
  99. package/dist/cjs/bcm-alert.cjs.entry.js +2 -1
  100. package/dist/cjs/bcm-attendance.cjs.entry.js +4 -2
  101. package/dist/cjs/bcm-avatar_2.cjs.entry.js +5 -4
  102. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -1
  103. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -1
  104. package/dist/cjs/{bcm-button.cjs.entry.js → bcm-button_2.cjs.entry.js} +127 -29
  105. package/dist/cjs/bcm-card.cjs.entry.js +3 -2
  106. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +2 -1
  107. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -2
  108. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +5 -4
  109. package/dist/cjs/bcm-chip.cjs.entry.js +4 -3
  110. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -1
  111. package/dist/cjs/bcm-color-input.cjs.entry.js +5 -4
  112. package/dist/cjs/{bcm-colorful_7.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +10 -904
  113. package/dist/cjs/bcm-colorpicker.cjs.entry.js +432 -0
  114. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -1
  115. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -2
  116. package/dist/cjs/bcm-default.cjs.entry.js +3 -1
  117. package/dist/cjs/bcm-drawer.cjs.entry.js +5 -4
  118. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -2
  119. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -2
  120. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -1
  121. package/dist/cjs/bcm-form.cjs.entry.js +1 -1
  122. package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
  123. package/dist/cjs/bcm-input-custom.cjs.entry.js +73 -0
  124. package/dist/cjs/bcm-input.cjs.entry.js +369 -0
  125. package/dist/cjs/bcm-item.cjs.entry.js +3 -2
  126. package/dist/cjs/bcm-items.cjs.entry.js +3 -2
  127. package/dist/cjs/bcm-label_2.cjs.entry.js +149 -0
  128. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  129. package/dist/cjs/bcm-list.cjs.entry.js +14 -12
  130. package/dist/cjs/bcm-menu.cjs.entry.js +7 -6
  131. package/dist/cjs/bcm-modal.cjs.entry.js +2 -1
  132. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +3 -2
  133. package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -2
  134. package/dist/cjs/bcm-popover.cjs.entry.js +84 -34
  135. package/dist/cjs/bcm-progress.cjs.entry.js +3 -2
  136. package/dist/cjs/bcm-radio-group.cjs.entry.js +77 -211
  137. package/dist/cjs/bcm-radio.cjs.entry.js +36 -77
  138. package/dist/cjs/bcm-range.cjs.entry.js +2 -1
  139. package/dist/cjs/bcm-search.cjs.entry.js +6 -4
  140. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  141. package/dist/cjs/bcm-skeleton.cjs.entry.js +3 -1
  142. package/dist/cjs/bcm-step.cjs.entry.js +3 -2
  143. package/dist/cjs/bcm-stepper.cjs.entry.js +56 -29
  144. package/dist/cjs/bcm-switch.cjs.entry.js +3 -2
  145. package/dist/cjs/bcm-tab-group.cjs.entry.js +86 -98
  146. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +87 -0
  147. package/dist/cjs/bcm-tab-item.cjs.entry.js +104 -0
  148. package/dist/cjs/bcm-tag.cjs.entry.js +3 -2
  149. package/dist/cjs/bcm-text.cjs.entry.js +2 -1
  150. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -2
  151. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -1
  152. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  153. package/dist/cjs/color-helper-09aa652d.js +86 -0
  154. package/dist/cjs/{color-helper-c9882bd8.js → colors-7cc2aee2.js} +1 -78
  155. package/dist/cjs/{generate-dbed3a63.js → generate-b2779357.js} +118 -16
  156. package/dist/cjs/{input-template-79002b88.js → input-template-ef0dff49.js} +2 -2
  157. package/dist/cjs/{json-parse-decarator-65760934.js → json-parse-decarator-6daa901d.js} +1 -1
  158. package/dist/cjs/loader.cjs.js +1 -1
  159. package/dist/cjs/{number-helper-d77c9113.js → number-helper-c0a3073d.js} +1 -1
  160. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -2
  161. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -1
  162. package/dist/cjs/{stepper-states-fae35b0d.js → stepper-states-7458308e.js} +1 -1
  163. package/dist/cjs/{tooltip-helper-7beca613.js → tooltip-helper-d4c09d59.js} +38 -8
  164. package/dist/cjs/{validators-95afb38d.js → validators-9db90679.js} +1 -1
  165. package/dist/collection/collection-manifest.json +5 -1
  166. package/dist/collection/components/atoms/button/button.js +1 -1
  167. package/dist/collection/components/atoms/chip/chip.js +1 -1
  168. package/dist/collection/components/atoms/link/link.js +1 -1
  169. package/dist/collection/components/external-source/bcm-toast-helper.js +20 -0
  170. package/dist/collection/components/external-source/test.js/bcm-toast-helper.js +20 -0
  171. package/dist/collection/components/molecules/checkbox/checkbox.css +1 -0
  172. package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
  173. package/dist/collection/components/molecules/input/input.js +5 -2
  174. package/dist/collection/components/molecules/menu/menu.js +1 -1
  175. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  176. package/dist/collection/components/molecules/popover/popover.js +107 -2
  177. package/dist/collection/components/molecules/radio/{group.js → radio-group.js} +163 -246
  178. package/dist/collection/components/molecules/radio/radio.js +42 -132
  179. package/dist/collection/components/molecules/search/search.js +20 -1
  180. package/dist/collection/components/molecules/stepper/stepper.js +55 -35
  181. package/dist/collection/components/molecules/switch/switch.js +1 -1
  182. package/dist/collection/components/molecules/tab-group/tab-group.js +98 -100
  183. package/dist/collection/components/molecules/tab-group/tab-item-header.js +186 -0
  184. package/dist/collection/components/molecules/tab-group/tab-item.js +161 -0
  185. package/dist/collection/components/molecules/tooltip/tooltip.js +109 -2
  186. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
  187. package/dist/collection/components/organism/form/form.js +1 -1
  188. package/dist/collection/components/organism/list/list.css +1 -0
  189. package/dist/collection/components/organism/list/list.js +21 -2
  190. package/dist/collection/components/other/attendance/attendance.js +1 -1
  191. package/dist/collection/components/other/input-custom/input-custom.js +249 -0
  192. package/dist/collection/components/other/toast/toast.js +365 -0
  193. package/dist/collection/components/other_deprecated/select/select.js +1 -1
  194. package/dist/collection/global/components/_checkbox.css +1 -0
  195. package/dist/collection/global/helper/index.js +5 -0
  196. package/dist/collection/global/helper/index.ts +1 -0
  197. package/dist/collection/global/helper/toast.js +114 -0
  198. package/dist/collection/global/helper/toast.ts +136 -0
  199. package/dist/collection/helper/generate.js +120 -19
  200. package/dist/collection/helper/popover-helper.js +57 -29
  201. package/dist/collection/helper/tooltip-helper.js +34 -5
  202. package/dist/collection/stories/assets/button/1.svg +35 -0
  203. package/dist/collection/stories/assets/button/10.svg +24 -0
  204. package/dist/collection/stories/assets/button/11.svg +24 -0
  205. package/dist/collection/stories/assets/button/12.svg +24 -0
  206. package/dist/collection/stories/assets/button/2.svg +28 -0
  207. package/dist/collection/stories/assets/button/3.svg +41 -0
  208. package/dist/collection/stories/assets/button/4.svg +9 -0
  209. package/dist/collection/stories/assets/button/5.svg +65 -0
  210. package/dist/collection/stories/assets/button/6.svg +68 -0
  211. package/dist/collection/stories/assets/button/7.svg +203 -0
  212. package/dist/collection/stories/assets/button/8.svg +316 -0
  213. package/dist/collection/stories/assets/button/9.svg +9 -0
  214. package/dist/collection/templates/button-template.js +1 -1
  215. package/dist/collection/templates/input-template.js +1 -1
  216. package/dist/collection/templates/list-item-template.js +1 -1
  217. package/dist/collection/templates/list-template.js +2 -2
  218. package/dist/components/bcm-attendance.js +1 -1
  219. package/dist/components/bcm-chip.js +1 -1
  220. package/dist/components/bcm-form.js +1 -1
  221. package/dist/components/bcm-input-custom.d.ts +11 -0
  222. package/dist/components/bcm-input-custom.js +114 -0
  223. package/dist/components/bcm-list.js +10 -8
  224. package/dist/components/bcm-popconfirm.js +1 -1
  225. package/dist/components/bcm-popover.js +83 -30
  226. package/dist/components/bcm-radio-group.js +88 -230
  227. package/dist/components/bcm-select.js +1 -1
  228. package/dist/components/bcm-stepper.js +51 -33
  229. package/dist/components/bcm-switch.js +1 -1
  230. package/dist/components/bcm-tab-group.js +84 -98
  231. package/dist/components/bcm-tab-item-header.d.ts +11 -0
  232. package/dist/components/bcm-tab-item-header.js +102 -0
  233. package/dist/components/bcm-tab-item.d.ts +11 -0
  234. package/dist/components/bcm-tab-item.js +117 -0
  235. package/dist/components/bcm-tab.js +1 -1
  236. package/dist/components/bcm-tabs-content.js +1 -1
  237. package/dist/components/bcm-tabs.js +1 -1
  238. package/dist/components/bcm-tag.js +1 -1
  239. package/dist/components/bcm-toast.d.ts +11 -0
  240. package/dist/components/bcm-toast.js +140 -0
  241. package/dist/components/button.js +2 -2
  242. package/dist/components/checkbox-lite.js +1 -1
  243. package/dist/components/checkbox.js +2 -2
  244. package/dist/components/color-helper.js +1 -405
  245. package/dist/components/colors2.js +411 -0
  246. package/dist/components/datetime-picker.js +1 -1
  247. package/dist/components/generate.js +117 -16
  248. package/dist/components/index.d.ts +5 -1
  249. package/dist/components/index.js +4 -0
  250. package/dist/components/input-template.js +2 -15
  251. package/dist/components/input.js +5 -2
  252. package/dist/components/link.js +1 -1
  253. package/dist/components/menu.js +1 -1
  254. package/dist/components/radio.js +38 -82
  255. package/dist/components/search.js +3 -1
  256. package/dist/components/tooltip-helper.js +34 -4
  257. package/dist/components/tooltip.js +29 -3
  258. package/dist/components/types.js +14 -27
  259. package/dist/components/types2.js +25 -25
  260. package/dist/components/types3.js +32 -0
  261. package/dist/esm/bcm-accordion.entry.js +5 -3
  262. package/dist/esm/bcm-alert.entry.js +5 -4
  263. package/dist/esm/bcm-attendance.entry.js +6 -4
  264. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  265. package/dist/esm/bcm-avatar_2.entry.js +10 -9
  266. package/dist/esm/bcm-box.entry.js +2 -2
  267. package/dist/esm/bcm-breadcrumb.entry.js +4 -3
  268. package/dist/esm/bcm-button-group.entry.js +4 -3
  269. package/dist/esm/{bcm-button.entry.js → bcm-button_2.entry.js} +125 -28
  270. package/dist/esm/bcm-card.entry.js +7 -6
  271. package/dist/esm/bcm-checkbox-group.entry.js +8 -7
  272. package/dist/esm/bcm-checkbox-lite_9.entry.js +6 -5
  273. package/dist/esm/bcm-checkbox_2.entry.js +10 -9
  274. package/dist/esm/bcm-chip.entry.js +7 -6
  275. package/dist/esm/bcm-collapse-group.entry.js +3 -3
  276. package/dist/esm/bcm-collapse.entry.js +4 -3
  277. package/dist/esm/bcm-color-input.entry.js +8 -7
  278. package/dist/esm/{bcm-colorful_7.entry.js → bcm-colorful_2.entry.js} +16 -905
  279. package/dist/esm/bcm-colorpicker.entry.js +428 -0
  280. package/dist/esm/bcm-date-picker.entry.js +5 -4
  281. package/dist/esm/bcm-datetime-picker.entry.js +9 -8
  282. package/dist/esm/bcm-default.entry.js +5 -3
  283. package/dist/esm/bcm-drawer.entry.js +9 -8
  284. package/dist/esm/bcm-dropdown.entry.js +5 -4
  285. package/dist/esm/bcm-error-layout.entry.js +2 -2
  286. package/dist/esm/bcm-expansion-panel.entry.js +6 -5
  287. package/dist/esm/bcm-form-2.entry.js +4 -3
  288. package/dist/esm/bcm-form-group.entry.js +2 -2
  289. package/dist/esm/bcm-form.entry.js +4 -4
  290. package/dist/esm/bcm-icon.entry.js +37 -0
  291. package/dist/esm/bcm-input-custom.entry.js +69 -0
  292. package/dist/esm/bcm-input.entry.js +365 -0
  293. package/dist/esm/bcm-item.entry.js +6 -5
  294. package/dist/esm/bcm-items.entry.js +5 -4
  295. package/dist/esm/bcm-label_2.entry.js +144 -0
  296. package/dist/esm/bcm-link.entry.js +3 -3
  297. package/dist/esm/bcm-list.entry.js +22 -20
  298. package/dist/esm/bcm-menu.entry.js +11 -10
  299. package/dist/esm/bcm-message.entry.js +2 -2
  300. package/dist/esm/bcm-modal.entry.js +5 -4
  301. package/dist/esm/bcm-notification.entry.js +2 -2
  302. package/dist/esm/bcm-old-input.entry.js +4 -4
  303. package/dist/esm/bcm-old-tag_2.entry.js +3 -3
  304. package/dist/esm/bcm-popconfirm-box.entry.js +6 -5
  305. package/dist/esm/bcm-popconfirm.entry.js +5 -4
  306. package/dist/esm/bcm-popover.entry.js +87 -37
  307. package/dist/esm/bcm-progress.entry.js +6 -5
  308. package/dist/esm/bcm-radio-group.entry.js +74 -208
  309. package/dist/esm/bcm-radio.entry.js +37 -78
  310. package/dist/esm/bcm-range.entry.js +5 -4
  311. package/dist/esm/bcm-result.entry.js +2 -2
  312. package/dist/esm/bcm-search.entry.js +10 -8
  313. package/dist/esm/bcm-select-group.entry.js +1 -1
  314. package/dist/esm/bcm-select-option.entry.js +1 -1
  315. package/dist/esm/bcm-select.entry.js +4 -4
  316. package/dist/esm/bcm-skeleton.entry.js +5 -3
  317. package/dist/esm/bcm-step.entry.js +6 -5
  318. package/dist/esm/bcm-stepper.entry.js +57 -30
  319. package/dist/esm/bcm-switch.entry.js +7 -6
  320. package/dist/esm/bcm-tab-group.entry.js +87 -99
  321. package/dist/esm/bcm-tab-item-header.entry.js +83 -0
  322. package/dist/esm/bcm-tab-item.entry.js +100 -0
  323. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  324. package/dist/esm/bcm-tab.entry.js +2 -2
  325. package/dist/esm/bcm-table.entry.js +3 -3
  326. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  327. package/dist/esm/bcm-tabs.entry.js +3 -3
  328. package/dist/esm/bcm-tag.entry.js +6 -5
  329. package/dist/esm/bcm-text.entry.js +6 -5
  330. package/dist/esm/bcm-textarea.entry.js +7 -6
  331. package/dist/esm/bcm-time-picker.entry.js +5 -4
  332. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  333. package/dist/esm/bcm-timeline.entry.js +2 -2
  334. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  335. package/dist/esm/bromcom-ui.js +2 -2
  336. package/dist/esm/{caption-template-2ef181f9.js → caption-template-389f5bd6.js} +1 -1
  337. package/dist/esm/color-helper-2b6697b6.js +84 -0
  338. package/dist/esm/{color-helper-b5e9aa56.js → colors-39b87f63.js} +1 -78
  339. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  340. package/dist/esm/{generate-1e46485f.js → generate-fbf3c64b.js} +118 -16
  341. package/dist/esm/{index-662f4cf5.js → index-6e2d80d7.js} +1 -1
  342. package/dist/esm/{index-cb0cdd87.js → index-8b349654.js} +1 -1
  343. package/dist/esm/{input-template-844dc974.js → input-template-f5b003c0.js} +3 -3
  344. package/dist/esm/{is-load-decorator-0a59085d.js → is-load-decorator-66e19e04.js} +1 -1
  345. package/dist/esm/{json-parse-decarator-00aa321e.js → json-parse-decarator-f023562b.js} +2 -2
  346. package/dist/esm/{label-template-d8687efd.js → label-template-eed2dd69.js} +2 -2
  347. package/dist/esm/loader.js +2 -2
  348. package/dist/esm/{number-helper-f2cdb65b.js → number-helper-b69dc985.js} +1 -1
  349. package/dist/esm/old-bcm-popover-box.entry.js +7 -6
  350. package/dist/esm/old-bcm-popover.entry.js +4 -3
  351. package/dist/esm/{slot-template-5b2da1d3.js → slot-template-64b41ee5.js} +1 -1
  352. package/dist/esm/{stepper-states-822ebfe9.js → stepper-states-7087f0cb.js} +3 -3
  353. package/dist/esm/{tooltip-helper-aecc821b.js → tooltip-helper-31ca799b.js} +39 -9
  354. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  355. package/dist/esm/{validators-1b3c085a.js → validators-d3c37e80.js} +1 -1
  356. package/dist/types/components/external-source/bcm-toast-helper.d.ts +12 -0
  357. package/dist/types/components/external-source/test.js/bcm-toast-helper.d.ts +12 -0
  358. package/dist/types/components/molecules/popover/popover.d.ts +10 -1
  359. package/dist/types/components/molecules/radio/{group.d.ts → radio-group.d.ts} +19 -27
  360. package/dist/types/components/molecules/radio/radio.d.ts +5 -11
  361. package/dist/types/components/molecules/search/search.d.ts +1 -0
  362. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -3
  363. package/dist/types/components/molecules/tab-group/tab-group.d.ts +7 -4
  364. package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +13 -0
  365. package/dist/types/components/molecules/tab-group/tab-item.d.ts +17 -0
  366. package/dist/types/components/molecules/tooltip/tooltip.d.ts +10 -1
  367. package/dist/types/components/organism/list/list.d.ts +1 -0
  368. package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
  369. package/dist/types/components/other/toast/toast.d.ts +25 -0
  370. package/dist/types/components.d.ts +176 -42
  371. package/dist/types/global/helper/index.d.ts +1 -0
  372. package/dist/types/global/helper/toast.d.ts +96 -0
  373. package/dist/types/helper/generate.d.ts +3 -0
  374. package/dist/types/helper/popover-helper.d.ts +13 -3
  375. package/dist/types/helper/tooltip-helper.d.ts +13 -3
  376. package/dist/types/index.d.ts +1 -1
  377. package/dist/types/templates/list-template.d.ts +1 -0
  378. package/helper/index.d.ts +2 -0
  379. package/helper/index.d.ts.map +1 -0
  380. package/helper/index.js +17 -0
  381. package/helper/toast.d.ts +97 -0
  382. package/helper/toast.d.ts.map +1 -0
  383. package/helper/toast.js +115 -0
  384. package/package.json +8 -5
  385. package/dist/bromcom-ui/p-053e9893.js +0 -5
  386. package/dist/bromcom-ui/p-07ebe62b.entry.js +0 -10
  387. package/dist/bromcom-ui/p-08c22a43.entry.js +0 -5
  388. package/dist/bromcom-ui/p-0a6cf248.entry.js +0 -5
  389. package/dist/bromcom-ui/p-15dcafdc.entry.js +0 -5
  390. package/dist/bromcom-ui/p-1683b3c0.entry.js +0 -5
  391. package/dist/bromcom-ui/p-1eaffb4d.entry.js +0 -5
  392. package/dist/bromcom-ui/p-2d75fb9d.entry.js +0 -5
  393. package/dist/bromcom-ui/p-2dc55ebd.entry.js +0 -5
  394. package/dist/bromcom-ui/p-2de23a54.entry.js +0 -5
  395. package/dist/bromcom-ui/p-3118bba1.entry.js +0 -5
  396. package/dist/bromcom-ui/p-3f3bb4b0.entry.js +0 -5
  397. package/dist/bromcom-ui/p-3f4192c8.entry.js +0 -5
  398. package/dist/bromcom-ui/p-40736ee7.entry.js +0 -5
  399. package/dist/bromcom-ui/p-44843df2.entry.js +0 -5
  400. package/dist/bromcom-ui/p-612f6cbc.entry.js +0 -5
  401. package/dist/bromcom-ui/p-69bffd70.entry.js +0 -5
  402. package/dist/bromcom-ui/p-6c77955c.entry.js +0 -5
  403. package/dist/bromcom-ui/p-6f98089c.entry.js +0 -5
  404. package/dist/bromcom-ui/p-6fcb72c6.entry.js +0 -5
  405. package/dist/bromcom-ui/p-73076cdb.entry.js +0 -5
  406. package/dist/bromcom-ui/p-751ee360.entry.js +0 -5
  407. package/dist/bromcom-ui/p-7b7ae0f3.entry.js +0 -5
  408. package/dist/bromcom-ui/p-7c318b12.js +0 -5
  409. package/dist/bromcom-ui/p-7dfb39a6.js +0 -5
  410. package/dist/bromcom-ui/p-7ea09be3.js +0 -5
  411. package/dist/bromcom-ui/p-87de49b4.entry.js +0 -5
  412. package/dist/bromcom-ui/p-8914af05.entry.js +0 -5
  413. package/dist/bromcom-ui/p-918acf86.entry.js +0 -5
  414. package/dist/bromcom-ui/p-962d32ef.entry.js +0 -5
  415. package/dist/bromcom-ui/p-968e2d79.js +0 -5
  416. package/dist/bromcom-ui/p-9d349123.entry.js +0 -5
  417. package/dist/bromcom-ui/p-a3864e85.entry.js +0 -5
  418. package/dist/bromcom-ui/p-a5077dec.entry.js +0 -5
  419. package/dist/bromcom-ui/p-a8d1397d.js +0 -5
  420. package/dist/bromcom-ui/p-adf96c3b.entry.js +0 -5
  421. package/dist/bromcom-ui/p-b00d3d27.entry.js +0 -5
  422. package/dist/bromcom-ui/p-c421b369.entry.js +0 -5
  423. package/dist/bromcom-ui/p-c9e1f317.entry.js +0 -5
  424. package/dist/bromcom-ui/p-cd8998bd.entry.js +0 -5
  425. package/dist/bromcom-ui/p-cf5ad8a8.entry.js +0 -5
  426. package/dist/bromcom-ui/p-d1bd9b8d.entry.js +0 -5
  427. package/dist/bromcom-ui/p-dddbb790.entry.js +0 -5
  428. package/dist/bromcom-ui/p-de332baa.entry.js +0 -5
  429. package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
  430. package/dist/bromcom-ui/p-e9cea37d.entry.js +0 -5
  431. package/dist/bromcom-ui/p-ea9667ba.entry.js +0 -5
  432. package/dist/bromcom-ui/p-f7e85c95.entry.js +0 -5
  433. package/dist/bromcom-ui/p-f9608226.entry.js +0 -5
  434. package/dist/bromcom-ui/p-fa5118d5.entry.js +0 -5
  435. package/dist/bromcom-ui/p-faee01b2.entry.js +0 -5
  436. package/dist/collection/components/molecules/radio/group.css +0 -802
  437. package/dist/collection/components/molecules/radio/radio.css +0 -1286
  438. package/dist/collection/components/molecules/radio/types.js +0 -30
  439. package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
  440. package/dist/types/components/molecules/radio/types.d.ts +0 -29
  441. package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
@@ -1207,7 +1207,7 @@ const BcmSelect$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
1207
1207
  'overflow': 'hidden',
1208
1208
  'display': 'block'
1209
1209
  };
1210
- return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e), tabIndex: -1 }, h("span", { class: selectedText, title: this.selectText && (this.selectText) }, (this.selectText && (this.selectText)), ((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" }, h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))), h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))), (!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" }, " ", placeholder, " ")))), h("div", { class: "buttons" }, clearable && value && (h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z" })))), h("span", { class: this.isOpen ? 'open' : 'close' }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z" }))))), h("div", { class: menu, style: optionViewportStyle }, h("div", { class: optionsViewport })), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
1210
+ return (h(Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, h("div", { class: container }, label && h("bcm-label", { onClick: () => this.handleOpen(false), tooltip: this.tooltip, type: captionType, value: label, required: required }), h("div", { id: "selected-container", class: selected, onClick: (e) => this.handleOpen(e) }, h("span", { class: selectedText, title: this.selectText && (this.selectText) }, (this.selectText && (this.selectText)), ((!this.selectText && (this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0)) && (h("span", { id: "tagcontainer", class: "tag-container" }, h("span", null, this.onShowVisibleTags.map((item) => (h("bcm-old-tag", { _internal_id: this._internal_id, customStyle: customStyleTag, onClick: () => this.handleClickTag(), type: "dissmisable", value: item[this.objectMapping['text']], title: item[this.objectMapping['text']], id: item[this.objectMapping['id']], class: "tag" })))), h("span", null, this.onShowHiddenTags.length > 0 && (h("bcm-old-tag", { _internal_id: this._internal_id, title: this.hiddenTagsString, customStyle: customStyleOtherTag, onClick: (e) => this.showHiddenTags(e), color: this.otherTagStatus ? 'prime-blue' : 'grey-9', type: "dissmisable", value: "+ " + this.onShowHiddenTags.length + " item" + (this.onShowHiddenTags.length > 1 ? 's' : '') + " selected", id: "other-tag" })))))), (!(this.selectText || this.onShowVisibleTags.length > 0 || this.onShowHiddenTags.length > 0) && placeholder && (h("span", { class: "placeholder" }, " ", placeholder, " ")))), h("div", { class: "buttons" }, clearable && value && (h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z" })))), h("span", { class: this.isOpen ? 'open' : 'close' }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M168.5 164.2l148 146.8c4.7 4.7 4.7 12.3 0 17l-19.8 19.8c-4.7 4.7-12.3 4.7-17 0L160 229.3 40.3 347.8c-4.7 4.7-12.3 4.7-17 0L3.5 328c-4.7-4.7-4.7-12.3 0-17l148-146.8c4.7-4.7 12.3-4.7 17 0z" }))))), h("div", { class: menu, style: optionViewportStyle }, h("div", { class: optionsViewport })), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
1211
1211
  ? h("span", { class: captionClasses }, " ", captionError, " ")
1212
1212
  : caption && h("span", { class: captionClasses }, " ", caption, " "))))));
1213
1213
  }
@@ -3,13 +3,19 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { h, proxyCustomElement, HTMLElement, createEvent, forceUpdate, Host } from '@stencil/core/internal/client';
6
- import { c as classnames } from './index2.js';
7
6
  import { G as Generate, s as snq } from './generate.js';
7
+ import { c as classnames } from './index2.js';
8
+ import './color-helper.js';
9
+ import './validators.js';
10
+ import './number-helper.js';
11
+ import './string-helper.js';
12
+ import './element-dragger.js';
13
+ import { g as getChildElements, d as delay } from './utils.js';
14
+ import { a as Bcm } from './bcm.js';
8
15
  import { I as IsLoad } from './is-load-decorator.js';
9
- import { B as Bcm } from './bcm.js';
10
- import { g as getChildElements } from './utils.js';
16
+ import './types.js';
17
+ import './types2.js';
11
18
  import { s as stepperStates, d as defineCustomElement$2 } from './step.js';
12
- import { d as defineCustomElement$3 } from './icon.js';
13
19
 
14
20
  const StepperHeaderTemplate = ({ _title, description, status, valid, index, loading, active, stepChange, statusIcon, icon, disabled, headerHidden, }) => {
15
21
  const classes = classnames('bcm-stepper__header-item', `bcm-stepper__header-item--${status}`, {
@@ -89,14 +95,14 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
89
95
  this.setSteps(this.getItems());
90
96
  }
91
97
  setSteps(steps) {
92
- const slots = getChildElements(this.el, 'bcm-step');
98
+ const slots = getChildElements(this.el, "bcm-step");
93
99
  if (slots.length > 0) {
94
100
  slots.forEach((item, index) => {
95
101
  const step = steps.find(step => !item.headerHidden && step.id === item.id);
96
102
  if (step) {
97
- Generate.setAttributes(item, Object.assign({ title: '', _title: step.title || step._title || '', status: step.status || 'default', disabled: step.disabled || false, valid: step.valid || true, loading: step.loading || false, index: step.index || index, active: step.active || false, innerHtml: step.innerHtml || '' }, (item.hidden == true && { headerHidden: true })));
103
+ Generate.setAttributes(item, Object.assign({ title: "", _title: step.title || step._title || "", status: step.status || "default", disabled: step.disabled || false, valid: step.valid || true, loading: step.loading || false, index: step.index || index, active: step.active || false, innerHtml: step.innerHtml || "" }, (item.hidden == true && { headerHidden: true })));
98
104
  if ((item.hidden = false)) {
99
- item.removeAttribute('hidden');
105
+ item.removeAttribute("hidden");
100
106
  }
101
107
  }
102
108
  });
@@ -112,7 +118,7 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
112
118
  return stepperStates.getActiveIndex(this.stepperId);
113
119
  }
114
120
  getSlotElements() {
115
- return snq(() => getChildElements(this.el, 'bcm-step'), []);
121
+ return snq(() => getChildElements(this.el, "bcm-step"), []);
116
122
  }
117
123
  async onStepChange(index) {
118
124
  if (index) {
@@ -143,36 +149,53 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
143
149
  const step = await this.getCurrentStep();
144
150
  const lastStep = this.getItems()[this.getItems().length - 1];
145
151
  if (step.valid) {
146
- this.linear && lastStep.id != step.id && (step.status = 'success');
152
+ this.linear && lastStep.id != step.id && (step.status = "success");
147
153
  if (index < this.getItems().length) {
148
154
  await this.onStepChange(index + 1);
149
155
  }
150
156
  }
151
157
  else {
152
- step.status = 'error';
158
+ step.status = "error";
153
159
  }
154
160
  forceUpdate(this.el);
155
161
  return Promise.resolve(this.getActiveIndex());
156
162
  }
157
- async setActive(index) {
163
+ async setActive(index, force = false) {
158
164
  if (!index)
159
165
  return;
160
- if (this.linear) {
161
- const prevStepIsValid = this.getItems()
162
- .filter(item => item.index < index)
163
- .map(item => ({
164
- id: item.id,
165
- status: item.status,
166
- disabled: item.disabled,
167
- }))
168
- .every(item => !item.disabled && (item.status === 'success' || item.status === 'default'));
169
- if (prevStepIsValid) {
170
- await this.next(index - 1);
166
+ if (force) {
167
+ if (this.getActiveIndex() < index) {
168
+ while (this.getActiveIndex() < index) {
169
+ await this.next();
170
+ await delay(100);
171
+ }
172
+ }
173
+ else {
174
+ while (this.getActiveIndex() > index) {
175
+ await this.prev();
176
+ await delay(100);
177
+ }
171
178
  }
172
179
  }
173
180
  else {
174
- stepperStates.setActiveIndex(this.stepperId, index);
175
- await this.next(index - 1);
181
+ if (this.linear) {
182
+ const prevStepIsValid = this.getItems()
183
+ .filter(item => item.index < index)
184
+ .map(item => ({
185
+ id: item.id,
186
+ status: item.status,
187
+ disabled: item.disabled,
188
+ }))
189
+ .every(item => !item.disabled && (item.status === "success" || item.status === "default"));
190
+ console.log("prevStepIsValid", prevStepIsValid);
191
+ if (prevStepIsValid) {
192
+ await this.next(index - 1);
193
+ }
194
+ }
195
+ else {
196
+ stepperStates.setActiveIndex(this.stepperId, index);
197
+ await this.next(index - 1);
198
+ }
176
199
  }
177
200
  }
178
201
  async reset() {
@@ -192,11 +215,11 @@ const BcmStepper$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
192
215
  }
193
216
  render() {
194
217
  const { hidden, direction, linear, size } = this;
195
- const hostClasses = classnames('bcm-stepper', 'bcm-stepper__direction-' + direction, 'bcm-stepper__size-' + size, {
196
- 'bcm-stepper__linear': linear,
218
+ const hostClasses = classnames("bcm-stepper", "bcm-stepper__direction-" + direction, "bcm-stepper__size-" + size, {
219
+ "bcm-stepper__linear": linear,
197
220
  hidden,
198
221
  });
199
- const lineClasses = item => classnames('bcm-stepper__header-line', `bcm-stepper__header-line--${(item === null || item === void 0 ? void 0 : item.disabled) ? 'disabled' : (item === null || item === void 0 ? void 0 : item.status) === 'error' ? 'default' : item === null || item === void 0 ? void 0 : item.status}`);
222
+ const lineClasses = item => classnames("bcm-stepper__header-line", `bcm-stepper__header-line--${(item === null || item === void 0 ? void 0 : item.disabled) ? "disabled" : (item === null || item === void 0 ? void 0 : item.status) === "error" ? "default" : item === null || item === void 0 ? void 0 : item.status}`);
200
223
  const items = this.getItems();
201
224
  return (h(Host, { class: hostClasses }, h("span", { hidden: true, id: `bcm-stepper__steps-${this._id}` }, h("slot", null)), h("main", null, h("header", { class: "bcm-stepper__header" }, items === null || items === void 0 ? void 0 : items.map((item, index) => [
202
225
  h(StepperHeaderTemplate, Object.assign({}, item, { stepChange: step => this.onStepChange(step) })),
@@ -233,18 +256,13 @@ function defineCustomElement$1() {
233
256
  if (typeof customElements === "undefined") {
234
257
  return;
235
258
  }
236
- const components = ["bcm-stepper", "bcm-icon", "bcm-step"];
259
+ const components = ["bcm-stepper", "bcm-step"];
237
260
  components.forEach(tagName => { switch (tagName) {
238
261
  case "bcm-stepper":
239
262
  if (!customElements.get(tagName)) {
240
263
  customElements.define(tagName, BcmStepper$1);
241
264
  }
242
265
  break;
243
- case "bcm-icon":
244
- if (!customElements.get(tagName)) {
245
- defineCustomElement$3();
246
- }
247
- break;
248
266
  case "bcm-step":
249
267
  if (!customElements.get(tagName)) {
250
268
  defineCustomElement$2();
@@ -136,7 +136,7 @@ const BcmSwitch$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
136
136
  const bcmSwitchContainer = classnames('bcm-switch__container', `bcm-switch__container--${this.labelPosition}`);
137
137
  const switchText = (text) => (size != Bcm.Size.small && (activeText || inactiveText)) && (h("span", { class: text + '-text' }, text == 'active' ? activeText : inactiveText));
138
138
  const switchIcon = (text) => (size != Bcm.Size.small && (activeIcon || inactiveIcon)) && h("bcm-icon", { icon: text == 'active' ? activeIcon : inactiveIcon, class: ' icon-' + text });
139
- return (h(Host, { tabindex: "1", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: bcmSwitchClasses }, h("span", { hidden: true }, h("slot", null)), h("div", { class: bcmSwitchContainer }, label && h("bcm-label", { htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required }), h("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled || readonly }), h("label", { htmlFor: _internal_id, class: bcmSwitchLabel }, switchText('inactive'), h("div", { class: classes }, switchIcon('active'), h("span", { class: "handle" }, pending && h("span", { class: "switch-spinner" })), switchIcon('inactive')), switchText('active'))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
139
+ return (h(Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), class: bcmSwitchClasses }, h("span", { hidden: true }, h("slot", null)), h("div", { class: bcmSwitchContainer }, label && h("bcm-label", { htmlFor: _internal_id, tooltip: this.tooltip, type: captionType, value: label, required: required }), h("input", { id: _internal_id, onChange: () => this.handleChange(), ref: el => (this.inputElement = el), checked: checked, type: "checkbox", class: "switch", disabled: disabled || readonly }), h("label", { htmlFor: _internal_id, class: bcmSwitchLabel }, switchText('inactive'), h("div", { class: classes }, switchIcon('active'), h("span", { class: "handle" }, pending && h("span", { class: "switch-spinner" })), switchIcon('inactive')), switchText('active'))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
140
140
  }
141
141
  get el() { return this; }
142
142
  static get style() { return switchCss; }
@@ -4,9 +4,14 @@
4
4
  */
5
5
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
6
6
  import { I as IsLoad } from './is-load-decorator.js';
7
- import { G as Generate, s as snq } from './generate.js';
8
- import { c as classnames } from './index2.js';
9
- import { B as Bcm } from './bcm.js';
7
+ import './color-helper.js';
8
+ import './validators.js';
9
+ import { G as Generate } from './generate.js';
10
+ import './number-helper.js';
11
+ import './string-helper.js';
12
+ import './element-dragger.js';
13
+ import { d as delay } from './utils.js';
14
+ import { a as Bcm } from './bcm.js';
10
15
 
11
16
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12
17
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -22,150 +27,131 @@ const BcmTabGroup$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
22
27
  constructor() {
23
28
  super();
24
29
  this.__registerHost();
25
- this.tabChange = createEvent(this, "tabChange", 7);
26
- this.headerItems = [];
30
+ this.tabChange = createEvent(this, "bcm-tab-change", 7);
27
31
  this._id = Generate.UID();
28
32
  this.active = "1";
29
33
  this.color = "blue";
30
34
  this.size = Bcm.Size.medium;
31
35
  }
36
+ get tabItems() {
37
+ return this.el.querySelectorAll("bcm-tab-item");
38
+ }
39
+ get tabItemHeaders() {
40
+ return this.el.querySelectorAll("bcm-tab-item-header");
41
+ }
32
42
  connectedCallback() {
33
43
  var _a;
34
- if ((_a = this.tabItems()) === null || _a === void 0 ? void 0 : _a.length) {
35
- this.headerItems = [];
36
- this.tabItems().forEach((tab, index) => {
44
+ if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
45
+ this.tabItems.forEach((tab, index) => {
37
46
  let itemActive = tab.hasAttribute("active") ? true : false;
38
47
  let itemDisabled = tab.hasAttribute("disabled") ? true : false;
39
48
  let itemIndex = index + 1;
40
49
  tab.setAttribute("index", `${itemIndex}`);
41
- tab.classList.add("tw-w-full");
42
- let header = {
43
- slot: "header",
44
- content: "",
45
- active: itemActive,
46
- disabled: itemDisabled,
47
- index: itemIndex,
48
- };
49
- const headerItemHeader = tab.querySelector("bcm-tab-item-header");
50
- if (headerItemHeader) {
51
- header.content = headerItemHeader.innerHTML;
52
- headerItemHeader.classList.add("tw-hidden");
53
- }
54
- else {
55
- header.content = tab.getAttribute("label") || `Tab ${itemIndex}`;
56
- }
50
+ tab.setAttribute("size", this.size);
51
+ tab.setAttribute("color", this.color);
52
+ tab.removeAttribute("active");
53
+ tab.removeAttribute("disabled");
57
54
  if (itemActive) {
58
55
  tab.setAttribute("active", "");
59
- tab.classList.add("tw-block");
60
- tab.classList.remove("tw-hidden");
61
56
  this.active = itemIndex.toString();
62
57
  }
63
- else {
64
- tab.removeAttribute("active");
65
- tab.classList.remove("tw-block");
66
- tab.classList.add("tw-hidden");
58
+ if (itemDisabled) {
59
+ tab.setAttribute("disabled", "");
67
60
  }
68
- this.headerItems.push(header);
69
61
  });
70
- const isHasActiveTab = this.headerItems.some(tab => tab.active);
62
+ const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.hasAttribute("active"));
71
63
  if (!isHasActiveTab) {
72
- this.headerItems[0].active = true;
73
- this.tabItems()[0].setAttribute("active", "");
74
- this.tabItems()[0].classList.add("tw-block");
75
- this.tabItems()[0].classList.remove("tw-hidden");
64
+ this.tabItems[0].setAttribute("active", "");
76
65
  }
77
66
  }
78
67
  }
79
- tabItems() {
80
- return snq(() => this.el.querySelectorAll("bcm-tab-item"), []);
81
- }
82
68
  handleTabClick(index) {
83
- this.headerItems.forEach(tab => {
84
- tab.active && (tab.active = false);
85
- });
86
- this.headerItems[index - 1].active = true;
87
- this.active = index.toString();
88
- const tabItems = this.el.querySelectorAll("bcm-tab-item");
89
- if (tabItems) {
90
- tabItems.forEach(tab => {
91
- const tabIndex = tab.getAttribute("index");
92
- if (tabIndex == this.active) {
69
+ var _a, _b;
70
+ if (index) {
71
+ this.active = index.toString();
72
+ }
73
+ if ((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length) {
74
+ this.tabItems.forEach(tab => {
75
+ tab.removeAttribute("active");
76
+ tab.setAttribute("size", this.size);
77
+ tab.setAttribute("color", this.color);
78
+ if (tab.getAttribute("index") == this.active) {
93
79
  tab.setAttribute("active", "");
94
- tab.classList.add("tw-block");
95
- tab.classList.remove("tw-hidden");
96
80
  }
97
- else {
98
- tab.removeAttribute("active");
99
- tab.classList.remove("tw-block");
100
- tab.classList.add("tw-hidden");
81
+ });
82
+ }
83
+ if ((_b = this.tabItemHeaders) === null || _b === void 0 ? void 0 : _b.length) {
84
+ this.tabItemHeaders.forEach(tabHeader => {
85
+ tabHeader.removeAttribute("active");
86
+ tabHeader.setAttribute("size", this.size);
87
+ tabHeader.setAttribute("color", this.color);
88
+ if (tabHeader.getAttribute("index") == this.active) {
89
+ tabHeader.setAttribute("active", "");
90
+ // tabHeader.scrollIntoView({
91
+ // behavior: "smooth",
92
+ // block: "start",
93
+ // inline: "center",
94
+ // });
101
95
  }
102
96
  });
103
97
  }
104
- this.inkBarControl();
105
- forceUpdate(this);
106
98
  this.tabChange.emit(this.active);
107
99
  }
100
+ componentDidRender() {
101
+ this.inkBarControl();
102
+ this.handleTabClick();
103
+ }
108
104
  componentDidLoad() {
109
105
  this.inkBarControl();
110
106
  }
111
107
  async setActive(index) {
112
- if (index > 0 && index <= this.headerItems.length && index != +this.active && !this.headerItems[index - 1].disabled) {
108
+ if (index > 0 && index <= this.tabItems.length && index != +this.active) {
113
109
  this.handleTabClick(index);
114
110
  }
115
111
  }
112
+ async refresh() {
113
+ await delay(100);
114
+ forceUpdate(this);
115
+ }
116
116
  inkBarControl() {
117
+ var _a;
117
118
  const inkBar = this.el.querySelector("#ink-bar");
118
- if (inkBar) {
119
- const tabHeaderItems = this.el.querySelectorAll("bcm-tab-item-header");
120
- if (tabHeaderItems) {
121
- tabHeaderItems.forEach((tab) => {
122
- const tabIndex = tab.getAttribute("index");
123
- if (tabIndex == this.active) {
124
- inkBar.style.width = tab.offsetWidth + "px";
125
- // inkBar.style.top = tab.offsetHeight + 'px';
126
- inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
127
- }
128
- });
119
+ if (!inkBar || !((_a = this.tabItemHeaders) === null || _a === void 0 ? void 0 : _a.length))
120
+ return;
121
+ for (let i = 0; i < this.tabItemHeaders.length; i++) {
122
+ const tab = this.tabItemHeaders[i];
123
+ const tabIndex = tab.getAttribute("index");
124
+ if (tabIndex === this.active) {
125
+ inkBar.style.width = `${tab.offsetWidth}px`;
126
+ // inkBar.style.top = `${tab.offsetHeight}px`;
127
+ inkBar.style.transform = `translateX(${tab.offsetLeft}px)`;
129
128
  }
130
129
  }
131
130
  }
132
- render() {
133
- const { color, size } = this;
134
- let fontSize, padding, gap;
135
- switch (size) {
136
- case Bcm.Size.small:
137
- fontSize = "2";
138
- padding = "1";
139
- gap = "2";
140
- break;
141
- case Bcm.Size.medium:
142
- fontSize = "3";
143
- padding = "2";
144
- gap = "3";
145
- break;
146
- case Bcm.Size.large:
147
- fontSize = "4";
148
- padding = "3";
149
- gap = "4";
150
- break;
151
- default:
152
- fontSize = "3";
153
- padding = "2";
154
- gap = "3";
155
- break;
131
+ activeChanged(newVal, _oldVal) {
132
+ var _a;
133
+ if (!((_a = this.tabItems) === null || _a === void 0 ? void 0 : _a.length))
134
+ return;
135
+ const isHasActiveTab = Array.from(this.tabItems).some(tab => tab.getAttribute("index") == newVal);
136
+ if (!isHasActiveTab) {
137
+ this.active = "1";
156
138
  }
157
- const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
158
- return (h(Host, { class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h("div", { class: `tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between tw-mb-${padding} tw-relative` }, this.headerItems.map(item => (h("bcm-tab-item-header", { tabIndex: "1", class: classnames(`tw-text-${fontSize} tw-py-${padding} tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-all tw-gap-${gap} tw-focus:outline-none`, item.disabled ? disabledClass : "tw-cursor-pointer", item.active
159
- ? `tw-text-${color}-500 enabled:hover:tw-text-${color}-600 enabled:active:tw-text-${color}-700 enabled:focus-visible:tw-text-${color}-800`
160
- : "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600"), active: item.active, disabled: item.disabled, index: item.index, innerHTML: item.content, onClick: () => !item.disabled && this.handleTabClick(item.index) }))), h("div", { id: "ink-bar", class: `tw-bg-${color}-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h("slot", null)));
139
+ }
140
+ render() {
141
+ const { color } = this;
142
+ return (h(Host, { role: "tablist", "aria-label": "Tab Group", class: "tw-flex tw-w-full tw-flex-col tw-items-center tw-font-sans" }, h("div", { class: `tw-relative tw-flex tw-w-full tw-flex-row tw-items-end tw-justify-between`, id: "tab-header" }, h("div", { id: "ink-bar", class: `tw-bg-${color}-500 tw-absolute tw-bottom-0 tw-left-0 tw-mt-[-2px] tw-h-[2px] tw-rounded-sm tw-transition-transform` })), h("slot", null)));
161
143
  }
162
144
  get el() { return this; }
145
+ static get watchers() { return {
146
+ "active": ["activeChanged"]
147
+ }; }
163
148
  }, [4, "bcm-tab-group", {
164
149
  "_id": [513, "id"],
165
150
  "active": [1537],
166
151
  "color": [1],
167
152
  "size": [1],
168
- "setActive": [64]
153
+ "setActive": [64],
154
+ "refresh": [64]
169
155
  }]);
170
156
  __decorate([
171
157
  IsLoad()
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BcmTabItemHeader extends Components.BcmTabItemHeader, HTMLElement {}
4
+ export const BcmTabItemHeader: {
5
+ prototype: BcmTabItemHeader;
6
+ new (): BcmTabItemHeader;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,102 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
+ import { I as IsLoad } from './is-load-decorator.js';
7
+ import './color-helper.js';
8
+ import './validators.js';
9
+ import { G as Generate } from './generate.js';
10
+ import './number-helper.js';
11
+ import './string-helper.js';
12
+ import './element-dragger.js';
13
+ import { a as Bcm } from './bcm.js';
14
+ import { c as classnames } from './index2.js';
15
+
16
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
19
+ r = Reflect.decorate(decorators, target, key, desc);
20
+ else
21
+ for (var i = decorators.length - 1; i >= 0; i--)
22
+ if (d = decorators[i])
23
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ const BcmTabItemHeader$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
27
+ constructor() {
28
+ super();
29
+ this.__registerHost();
30
+ this._id = Generate.UID();
31
+ this.active = false;
32
+ this.disabled = false;
33
+ this.index = undefined;
34
+ this.color = "blue";
35
+ this.size = Bcm.Size.medium;
36
+ }
37
+ handleClick() {
38
+ var _a;
39
+ if (!this.disabled) {
40
+ (_a = Generate.findParentElement(this.el, "bcm-tab-group")) === null || _a === void 0 ? void 0 : _a.setActive(this.index);
41
+ }
42
+ }
43
+ render() {
44
+ const { color, size, active, disabled } = this;
45
+ let fontSize, padding, gap;
46
+ switch (size) {
47
+ case Bcm.Size.small:
48
+ fontSize = "2";
49
+ padding = "1";
50
+ gap = "2";
51
+ break;
52
+ case Bcm.Size.medium:
53
+ fontSize = "3";
54
+ padding = "2";
55
+ gap = "3";
56
+ break;
57
+ case Bcm.Size.large:
58
+ fontSize = "4";
59
+ padding = "3";
60
+ gap = "4";
61
+ break;
62
+ default:
63
+ fontSize = "3";
64
+ padding = "2";
65
+ gap = "3";
66
+ break;
67
+ }
68
+ const disabledClass = "tw-cursor-not-allowed tw-text-gray-400 tw-opacity-50";
69
+ return (h(Host, { onClick: () => this.handleClick(), class: classnames(`tw-text-${fontSize} tw-py-${padding} tw-flex tw-flex-1 tw-items-center tw-justify-center tw-border-b-[2px] tw-border-b-slate-300 tw-transition-font tw-gap-${gap} tw-focus:outline-none tw-mb-${padding}]`, disabled ? disabledClass : "tw-cursor-pointer", active
70
+ ? `tw-text-${color}-500 enabled:hover:tw-text-${color}-600 enabled:active:tw-text-${color}-700 enabled:focus-visible:tw-text-${color}-800`
71
+ : "tw-text-slate-400 enabled:hover:tw-text-slate-500 enabled:focus-visible:tw-text-slate-700 enabled:active:tw-text-slate-600") }));
72
+ }
73
+ get el() { return this; }
74
+ }, [0, "bcm-tab-item-header", {
75
+ "_id": [1537, "id"],
76
+ "active": [1540],
77
+ "disabled": [4],
78
+ "index": [8],
79
+ "color": [1],
80
+ "size": [1]
81
+ }]);
82
+ __decorate([
83
+ IsLoad()
84
+ ], BcmTabItemHeader$1.prototype, "el", void 0);
85
+ function defineCustomElement$1() {
86
+ if (typeof customElements === "undefined") {
87
+ return;
88
+ }
89
+ const components = ["bcm-tab-item-header"];
90
+ components.forEach(tagName => { switch (tagName) {
91
+ case "bcm-tab-item-header":
92
+ if (!customElements.get(tagName)) {
93
+ customElements.define(tagName, BcmTabItemHeader$1);
94
+ }
95
+ break;
96
+ } });
97
+ }
98
+
99
+ const BcmTabItemHeader = BcmTabItemHeader$1;
100
+ const defineCustomElement = defineCustomElement$1;
101
+
102
+ export { BcmTabItemHeader, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BcmTabItem extends Components.BcmTabItem, HTMLElement {}
4
+ export const BcmTabItem: {
5
+ prototype: BcmTabItem;
6
+ new (): BcmTabItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;