bromcom-ui 2.12.3 → 3.0.0-alpha.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 (431) 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-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-4ca7e0e7.entry.js → p-10687c62.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-c49b6287.entry.js → p-19ed830b.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-32c55505.entry.js → p-1a7e1a74.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-d59d9687.entry.js → p-1fbec9e4.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-e0cc8f86.entry.js → p-2afde14e.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-beaec5b8.js → p-2d0ff35e.js} +1 -1
  10. package/dist/bromcom-ui/{p-21bacc22.js → p-31a60231.js} +1 -1
  11. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-6bdf0cbc.js → p-3be27626.js} +1 -1
  13. package/dist/bromcom-ui/{p-6bea284a.js → p-499d8454.js} +1 -1
  14. package/dist/bromcom-ui/{p-a6aa173f.entry.js → p-4a71c61a.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-3f34cf2a.entry.js → p-4cc12992.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-c77541f4.js → p-4d2bf0e7.js} +2 -2
  17. package/dist/bromcom-ui/p-556010cb.js +5 -0
  18. package/dist/bromcom-ui/{p-3aaa60b9.entry.js → p-56b9cdf7.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-1b558b0f.entry.js → p-583982a6.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-ef5cba72.js → p-59dc2542.js} +1 -1
  21. package/dist/bromcom-ui/{p-d623e891.entry.js → p-5adcfd9b.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-375e9750.entry.js → p-5f47e061.entry.js} +1 -1
  24. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  25. package/dist/bromcom-ui/{p-d6b1465a.entry.js → p-6d42e250.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
  28. package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
  29. package/dist/bromcom-ui/{p-d1298c40.js → p-7b21fcb9.js} +1 -1
  30. package/dist/bromcom-ui/p-815f884d.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-6657830f.js → p-85eedabc.js} +1 -1
  32. package/dist/bromcom-ui/{p-8fa7d3c3.entry.js → p-8c009880.entry.js} +1 -1
  33. package/dist/bromcom-ui/p-8d0d0c5b.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
  35. package/dist/bromcom-ui/{p-0715c523.entry.js → p-8f062608.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-9cbf3f1d.entry.js +16 -0
  37. package/dist/bromcom-ui/{p-aeb4be41.js → p-a2df6c19.js} +1 -1
  38. package/dist/bromcom-ui/p-a2e0a182.entry.js +5 -0
  39. package/dist/bromcom-ui/{p-2b42d77e.entry.js → p-a6b4a46d.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-a6b696de.js +5 -0
  41. package/dist/bromcom-ui/p-a947136c.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-bb6f4952.entry.js → p-ac720743.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-3288f732.entry.js → p-b3af25ef.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-77ef609e.entry.js → p-b46e368e.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-d53c9b92.entry.js → p-bae91cbf.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-1141f58d.entry.js → p-c10b25e2.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-59f7fa84.entry.js → p-c4bf7f7e.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-c4d524b5.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-9b59c689.entry.js → p-c5bb29d0.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-5d670fd7.entry.js → p-cc70861b.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-e8eaa3bb.entry.js → p-d0e56f5f.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-5d266fd0.entry.js → p-d49d3d72.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-a0d6d680.js → p-d65bc842.js} +1 -1
  54. package/dist/bromcom-ui/{p-cb7d5481.entry.js → p-dc2d5b2f.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-dc73abe2.js +5 -0
  56. package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
  57. package/dist/bromcom-ui/p-e46fde49.js +5 -0
  58. package/dist/bromcom-ui/{p-083126ea.entry.js → p-e499306b.entry.js} +1 -1
  59. package/dist/bromcom-ui/p-ebd9132c.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-1812bfb7.entry.js → p-f5a8e601.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-19b32974.entry.js → p-f66c4afa.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-a486613b.entry.js → p-fdd4cabe.entry.js} +1 -1
  63. package/dist/cjs/bcm-accordion_68.cjs.entry.js +47182 -0
  64. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +3 -3
  65. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +3 -3
  66. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-caption.cjs.entry.js +4 -4
  68. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-input-2.cjs.entry.js +4 -4
  74. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +4 -4
  76. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
  77. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
  78. package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
  79. package/dist/cjs/bcm-number-input.cjs.entry.js +5 -5
  80. package/dist/cjs/bcm-skeleton.cjs.entry.js +3 -3
  81. package/dist/cjs/bcm-table.cjs.entry.js +3 -3
  82. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  83. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  84. package/dist/cjs/bcm-toast.cjs.entry.js +17 -17
  85. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  86. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-f8a78504.js} +9 -9
  87. package/dist/cjs/{generate-b43c3d3b.js → generate-e3956756.js} +13 -13
  88. package/dist/cjs/{input.style-b5676e6a.js → input.style-bee84fb0.js} +1 -1
  89. package/dist/cjs/{label-template-e83447b5.js → label-template-fc301e0c.js} +4 -4
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/cjs/{number-helper-a708fa79.js → number-helper-43361f4e.js} +1 -1
  92. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  93. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  94. package/dist/cjs/{validators-84d8ae28.js → validators-9a6ae72d.js} +1 -1
  95. package/dist/collection/collection-manifest.json +1 -1
  96. package/dist/collection/components/atoms/avatar/avatar.js +1 -1
  97. package/dist/collection/components/atoms/avatar/avatar.style.js +4 -4
  98. package/dist/collection/components/atoms/badge/badge.style.js +8 -8
  99. package/dist/collection/components/atoms/button/button.css +90 -92
  100. package/dist/collection/components/atoms/button/button.js +45 -46
  101. package/dist/collection/components/atoms/chip/chip.css +27 -29
  102. package/dist/collection/components/atoms/chip/chip.js +10 -11
  103. package/dist/collection/components/atoms/divider/divider.css +4 -4
  104. package/dist/collection/components/atoms/link/link.css +10 -11
  105. package/dist/collection/components/molecules/accordion/accordion.css +23 -0
  106. package/dist/collection/components/molecules/accordion/accordion.js +1 -1
  107. package/dist/collection/components/molecules/alert/alert.css +28 -24
  108. package/dist/collection/components/molecules/alert/alert.js +26 -36
  109. package/dist/collection/components/molecules/button-group/button-group.css +15 -23
  110. package/dist/collection/components/molecules/checkbox/checkbox.css +15 -15
  111. package/dist/collection/components/molecules/checkbox/checkbox.js +8 -9
  112. package/dist/collection/components/molecules/color-input/color-input.js +1 -1
  113. package/dist/collection/components/molecules/empty/empty.js +1 -1
  114. package/dist/collection/components/molecules/error-layout/error-layout.css +13 -15
  115. package/dist/collection/components/molecules/error-layout/error-layout.js +1 -1
  116. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +25 -22
  117. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +1 -1
  118. package/dist/collection/components/molecules/input/input.css +21 -13
  119. package/dist/collection/components/molecules/input/input.style.js +1 -1
  120. package/dist/collection/components/molecules/menu/menu.css +29 -23
  121. package/dist/collection/components/molecules/modal/modal.css +21 -27
  122. package/dist/collection/components/molecules/radio/radio.js +10 -10
  123. package/dist/collection/components/molecules/range/range.css +5 -8
  124. package/dist/collection/components/molecules/search/search.css +21 -13
  125. package/dist/collection/components/molecules/stepper/stepper.css +6 -5
  126. package/dist/collection/components/molecules/switch/switch.css +22 -21
  127. package/dist/collection/components/molecules/tab-group/tab-item-header.js +6 -6
  128. package/dist/collection/components/molecules/textarea/textarea.css +21 -13
  129. package/dist/collection/components/organism/list/list.css +44 -44
  130. package/dist/collection/components/other/shortcut/shortcut.js +4 -4
  131. package/dist/collection/components/other/toast/toast.js +16 -16
  132. package/dist/collection/components/third-parts/colorful/colorful.css +21 -13
  133. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +13 -9
  134. package/dist/collection/global/components/_checkbox.css +15 -15
  135. package/dist/collection/helper/popover-helper.js +5 -5
  136. package/dist/collection/helper/tooltip-helper.js +6 -6
  137. package/dist/collection/templates/caption-template.js +9 -9
  138. package/dist/collection/templates/input-template.js +1 -1
  139. package/dist/collection/templates/label-template.js +4 -4
  140. package/dist/collection/templates/step-template.js +4 -4
  141. package/dist/components/Overflow.js +141 -83
  142. package/dist/components/avatar.js +6 -6
  143. package/dist/components/badge.js +9 -9
  144. package/dist/components/bcm-accordion.js +2 -2
  145. package/dist/components/bcm-alert.js +28 -41
  146. package/dist/components/bcm-attendance-actions-comment.js +1 -1
  147. package/dist/components/bcm-attendance-actions-dropdown.js +1 -1
  148. package/dist/components/bcm-attendance-actions.js +1 -1
  149. package/dist/components/bcm-button-group.js +1 -1
  150. package/dist/components/bcm-checkbox-group.js +1 -1
  151. package/dist/components/bcm-color-input.js +1 -1
  152. package/dist/components/bcm-error-layout.js +2 -2
  153. package/dist/components/bcm-expansion-panel.js +2 -2
  154. package/dist/components/bcm-input-2.js +1 -1
  155. package/dist/components/bcm-input-dropdown.js +1 -1
  156. package/dist/components/bcm-modal.js +1 -1
  157. package/dist/components/bcm-popover.js +5 -5
  158. package/dist/components/bcm-range.js +1 -1
  159. package/dist/components/bcm-shortcut.js +4 -4
  160. package/dist/components/bcm-stepper.js +6 -6
  161. package/dist/components/bcm-switch.js +1 -1
  162. package/dist/components/bcm-tab-item-header.js +6 -6
  163. package/dist/components/bcm-toast.js +16 -16
  164. package/dist/components/button.js +47 -48
  165. package/dist/components/caption-template.js +9 -9
  166. package/dist/components/checkbox-lite.js +1 -1
  167. package/dist/components/checkbox.js +9 -10
  168. package/dist/components/chip.js +11 -12
  169. package/dist/components/colorful.js +1 -1
  170. package/dist/components/divider.js +1 -1
  171. package/dist/components/empty.js +1 -1
  172. package/dist/components/index4.js +2549 -171
  173. package/dist/components/index5.js +171 -2549
  174. package/dist/components/input-template.js +1 -1
  175. package/dist/components/input.js +1 -1
  176. package/dist/components/input.style.js +2 -2
  177. package/dist/components/label.js +4 -4
  178. package/dist/components/link.js +1 -1
  179. package/dist/components/list.js +2 -2
  180. package/dist/components/menu.js +1 -1
  181. package/dist/components/radio.js +10 -10
  182. package/dist/components/rc-picker.js +2651 -2404
  183. package/dist/components/search.js +2 -2
  184. package/dist/components/skeleton.js +1 -1
  185. package/dist/components/step.js +1 -1
  186. package/dist/components/textarea.js +1 -1
  187. package/dist/components/tooltip-helper.js +6 -6
  188. package/dist/esm/{_commonjsHelpers-82aa9212.js → _commonjsHelpers-7002e5de.js} +1 -1
  189. package/dist/esm/bcm-accordion_68.entry.js +47111 -0
  190. package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -10
  191. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
  192. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  193. package/dist/esm/bcm-box.entry.js +1 -1
  194. package/dist/esm/bcm-breadcrumb.entry.js +5 -5
  195. package/dist/esm/bcm-caption.entry.js +12 -12
  196. package/dist/esm/bcm-card.entry.js +9 -9
  197. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  198. package/dist/esm/bcm-content.entry.js +1 -1
  199. package/dist/esm/bcm-date-picker.entry.js +7 -7
  200. package/dist/esm/bcm-datetime-picker.entry.js +11 -11
  201. package/dist/esm/bcm-default.entry.js +4 -4
  202. package/dist/esm/bcm-form-2.entry.js +6 -6
  203. package/dist/esm/bcm-form-group.entry.js +1 -1
  204. package/dist/esm/bcm-input-2.entry.js +9 -9
  205. package/dist/esm/bcm-input-custom.entry.js +5 -5
  206. package/dist/esm/bcm-input-dropdown.entry.js +12 -12
  207. package/dist/esm/bcm-message.entry.js +3 -3
  208. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  209. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  210. package/dist/esm/bcm-modal-2.entry.js +11 -11
  211. package/dist/esm/bcm-notification.entry.js +3 -3
  212. package/dist/esm/bcm-number-input.entry.js +13 -13
  213. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  214. package/dist/esm/bcm-react-number.entry.js +3 -3
  215. package/dist/esm/bcm-result.entry.js +3 -3
  216. package/dist/esm/bcm-select-group.entry.js +3 -3
  217. package/dist/esm/bcm-select-option.entry.js +3 -3
  218. package/dist/esm/bcm-skeleton.entry.js +10 -10
  219. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  220. package/dist/esm/bcm-table.entry.js +11 -11
  221. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  222. package/dist/esm/bcm-tag.entry.js +7 -7
  223. package/dist/esm/bcm-time-picker.entry.js +7 -7
  224. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  225. package/dist/esm/bcm-timeline.entry.js +3 -3
  226. package/dist/esm/bcm-toast.entry.js +23 -23
  227. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  228. package/dist/esm/bromcom-ui.js +4 -4
  229. package/dist/esm/{caption-template-d7953d13.js → caption-template-16dd9444.js} +11 -11
  230. package/dist/esm/{color-helper-74614f24.js → color-helper-ba15b0d8.js} +2 -2
  231. package/dist/esm/{colors-dd598eea.js → colors-ed4e7579.js} +1 -1
  232. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
  233. package/dist/esm/{generate-d009624a.js → generate-d2495751.js} +14 -14
  234. package/dist/esm/{global-f1d14ca8.js → global-88abdcdc.js} +1 -1
  235. package/dist/esm/{index-f549811f.js → index-00c8a8f7.js} +1 -1
  236. package/dist/esm/{index-036974d7.js → index-0d3a56ec.js} +1 -1
  237. package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
  238. package/dist/esm/{input.style-e855c0f3.js → input.style-0ddc0073.js} +1 -1
  239. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
  240. package/dist/esm/{label-template-a26f76c0.js → label-template-4c3797f4.js} +6 -6
  241. package/dist/esm/loader.js +4 -4
  242. package/dist/esm/{number-helper-b7a7a318.js → number-helper-a1e5c9e5.js} +1 -1
  243. package/dist/esm/old-bcm-popover-box.entry.js +10 -10
  244. package/dist/esm/old-bcm-popover.entry.js +5 -5
  245. package/dist/esm/{popover-placement-d12fec40.js → popover-placement-2bf3a181.js} +1 -1
  246. package/dist/esm/{slot-template-2a19b2db.js → slot-template-e0202c5a.js} +2 -2
  247. package/dist/esm/{string-helper-3592bdc2.js → string-helper-69203215.js} +1 -1
  248. package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
  249. package/dist/esm/{validators-5519219e.js → validators-57df25a7.js} +1 -1
  250. package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
  251. package/dist/types/components/molecules/alert/alert.d.ts +1 -3
  252. package/dist/types/components.d.ts +0 -2
  253. package/package.json +1 -1
  254. package/dist/bromcom-ui/p-01dde034.entry.js +0 -5
  255. package/dist/bromcom-ui/p-01ffa0a9.entry.js +0 -5
  256. package/dist/bromcom-ui/p-096837b5.entry.js +0 -5
  257. package/dist/bromcom-ui/p-09cb8ce4.entry.js +0 -5
  258. package/dist/bromcom-ui/p-0a3ce86e.entry.js +0 -5
  259. package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
  260. package/dist/bromcom-ui/p-177e1e89.entry.js +0 -5
  261. package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
  262. package/dist/bromcom-ui/p-270e1b24.entry.js +0 -5
  263. package/dist/bromcom-ui/p-29bc95a1.entry.js +0 -5
  264. package/dist/bromcom-ui/p-2b02c9d5.entry.js +0 -5
  265. package/dist/bromcom-ui/p-2b0c3160.entry.js +0 -5
  266. package/dist/bromcom-ui/p-2cd6cdee.js +0 -5
  267. package/dist/bromcom-ui/p-2e96086c.entry.js +0 -5
  268. package/dist/bromcom-ui/p-349400c6.entry.js +0 -5
  269. package/dist/bromcom-ui/p-376a20ed.js +0 -5
  270. package/dist/bromcom-ui/p-41276d76.entry.js +0 -5
  271. package/dist/bromcom-ui/p-4393b33e.entry.js +0 -5
  272. package/dist/bromcom-ui/p-45a24494.entry.js +0 -5
  273. package/dist/bromcom-ui/p-4874c7d0.entry.js +0 -5
  274. package/dist/bromcom-ui/p-49bc13a0.entry.js +0 -5
  275. package/dist/bromcom-ui/p-4bd65d2f.entry.js +0 -5
  276. package/dist/bromcom-ui/p-4e03575c.entry.js +0 -7
  277. package/dist/bromcom-ui/p-4f0bf943.entry.js +0 -5
  278. package/dist/bromcom-ui/p-6404c57b.entry.js +0 -5
  279. package/dist/bromcom-ui/p-68b95b96.entry.js +0 -5
  280. package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
  281. package/dist/bromcom-ui/p-790ff40a.entry.js +0 -5
  282. package/dist/bromcom-ui/p-7c3dcd4e.entry.js +0 -5
  283. package/dist/bromcom-ui/p-7dbfff1b.entry.js +0 -5
  284. package/dist/bromcom-ui/p-7fa0942c.js +0 -5
  285. package/dist/bromcom-ui/p-8256af97.entry.js +0 -5
  286. package/dist/bromcom-ui/p-85936d14.entry.js +0 -5
  287. package/dist/bromcom-ui/p-8b6d3a37.js +0 -5
  288. package/dist/bromcom-ui/p-8bc7d1dc.entry.js +0 -5
  289. package/dist/bromcom-ui/p-8d17c696.entry.js +0 -5
  290. package/dist/bromcom-ui/p-8f32198d.js +0 -14
  291. package/dist/bromcom-ui/p-8f519009.entry.js +0 -5
  292. package/dist/bromcom-ui/p-904b0c28.entry.js +0 -5
  293. package/dist/bromcom-ui/p-915fd3f1.entry.js +0 -5
  294. package/dist/bromcom-ui/p-93c2058f.entry.js +0 -5
  295. package/dist/bromcom-ui/p-96d7ab4a.entry.js +0 -5
  296. package/dist/bromcom-ui/p-9c0bc44a.js +0 -5
  297. package/dist/bromcom-ui/p-a0f44b56.entry.js +0 -5
  298. package/dist/bromcom-ui/p-a23e04ba.entry.js +0 -5
  299. package/dist/bromcom-ui/p-a6b1a008.entry.js +0 -5
  300. package/dist/bromcom-ui/p-ab0ad97f.js +0 -5
  301. package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
  302. package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
  303. package/dist/bromcom-ui/p-c1c51cf2.entry.js +0 -5
  304. package/dist/bromcom-ui/p-cbb99519.entry.js +0 -5
  305. package/dist/bromcom-ui/p-cedb9ca3.js +0 -5
  306. package/dist/bromcom-ui/p-d0cd1d32.entry.js +0 -5
  307. package/dist/bromcom-ui/p-d231f047.entry.js +0 -5
  308. package/dist/bromcom-ui/p-d44ec0ea.entry.js +0 -5
  309. package/dist/bromcom-ui/p-d5f03511.entry.js +0 -5
  310. package/dist/bromcom-ui/p-e0ab7b38.js +0 -11
  311. package/dist/bromcom-ui/p-e1b6f98e.entry.js +0 -5
  312. package/dist/bromcom-ui/p-e25c4375.entry.js +0 -5
  313. package/dist/bromcom-ui/p-e29aebf7.entry.js +0 -5
  314. package/dist/bromcom-ui/p-eaa94da0.entry.js +0 -5
  315. package/dist/bromcom-ui/p-ec957130.entry.js +0 -5
  316. package/dist/bromcom-ui/p-eca0acda.js +0 -5
  317. package/dist/bromcom-ui/p-f5074bd8.js +0 -5
  318. package/dist/bromcom-ui/p-fb081ff7.entry.js +0 -5
  319. package/dist/bromcom-ui/p-fc787048.entry.js +0 -5
  320. package/dist/bromcom-ui/p-fdf2e30b.entry.js +0 -5
  321. package/dist/bromcom-ui/p-feed1c5a.entry.js +0 -5
  322. package/dist/cjs/Overflow-5a73947b.js +0 -2233
  323. package/dist/cjs/bcm-accordion.cjs.entry.js +0 -74
  324. package/dist/cjs/bcm-alert.cjs.entry.js +0 -99
  325. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +0 -330
  326. package/dist/cjs/bcm-attendance.cjs.entry.js +0 -35
  327. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -210
  328. package/dist/cjs/bcm-button-group.cjs.entry.js +0 -92
  329. package/dist/cjs/bcm-button.cjs.entry.js +0 -372
  330. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -415
  331. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2529
  332. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  333. package/dist/cjs/bcm-chip-group.cjs.entry.js +0 -128
  334. package/dist/cjs/bcm-chip.cjs.entry.js +0 -91
  335. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
  336. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
  337. package/dist/cjs/bcm-color-input.cjs.entry.js +0 -77
  338. package/dist/cjs/bcm-colorful_2.cjs.entry.js +0 -251
  339. package/dist/cjs/bcm-date_6.cjs.entry.js +0 -15363
  340. package/dist/cjs/bcm-drawer.cjs.entry.js +0 -96
  341. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -119
  342. package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -64
  343. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -116
  344. package/dist/cjs/bcm-input_2.cjs.entry.js +0 -550
  345. package/dist/cjs/bcm-item.cjs.entry.js +0 -72
  346. package/dist/cjs/bcm-items.cjs.entry.js +0 -49
  347. package/dist/cjs/bcm-link.cjs.entry.js +0 -51
  348. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -1977
  349. package/dist/cjs/bcm-menu.cjs.entry.js +0 -151
  350. package/dist/cjs/bcm-modal.cjs.entry.js +0 -157
  351. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  352. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
  353. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -115
  354. package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -101
  355. package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
  356. package/dist/cjs/bcm-progress.cjs.entry.js +0 -162
  357. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -161
  358. package/dist/cjs/bcm-radio.cjs.entry.js +0 -65
  359. package/dist/cjs/bcm-range.cjs.entry.js +0 -183
  360. package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
  361. package/dist/cjs/bcm-shortcut.cjs.entry.js +0 -65
  362. package/dist/cjs/bcm-step.cjs.entry.js +0 -89
  363. package/dist/cjs/bcm-stepper.cjs.entry.js +0 -240
  364. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  365. package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -210
  366. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +0 -60
  367. package/dist/cjs/bcm-tab-item.cjs.entry.js +0 -91
  368. package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
  369. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
  370. package/dist/cjs/bcm-text.cjs.entry.js +0 -49
  371. package/dist/cjs/index-d321de96.js +0 -193
  372. package/dist/cjs/input-template-ccfbe214.js +0 -92
  373. package/dist/cjs/json-parse-decarator-f1c0961d.js +0 -40
  374. package/dist/cjs/lodash-917168d7.js +0 -17199
  375. package/dist/cjs/stepper-states-e293bcd3.js +0 -85
  376. package/dist/cjs/tooltip-helper-311d3baa.js +0 -158
  377. package/dist/esm/Overflow-40c63001.js +0 -2217
  378. package/dist/esm/bcm-accordion.entry.js +0 -70
  379. package/dist/esm/bcm-alert.entry.js +0 -95
  380. package/dist/esm/bcm-attendance-actions.entry.js +0 -326
  381. package/dist/esm/bcm-attendance.entry.js +0 -31
  382. package/dist/esm/bcm-avatar_2.entry.js +0 -205
  383. package/dist/esm/bcm-button-group.entry.js +0 -88
  384. package/dist/esm/bcm-button.entry.js +0 -368
  385. package/dist/esm/bcm-checkbox-group.entry.js +0 -411
  386. package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2517
  387. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  388. package/dist/esm/bcm-chip-group.entry.js +0 -124
  389. package/dist/esm/bcm-chip.entry.js +0 -87
  390. package/dist/esm/bcm-collapse-group.entry.js +0 -39
  391. package/dist/esm/bcm-collapse.entry.js +0 -58
  392. package/dist/esm/bcm-color-input.entry.js +0 -73
  393. package/dist/esm/bcm-colorful_2.entry.js +0 -246
  394. package/dist/esm/bcm-date_6.entry.js +0 -15354
  395. package/dist/esm/bcm-drawer.entry.js +0 -92
  396. package/dist/esm/bcm-dropdown.entry.js +0 -115
  397. package/dist/esm/bcm-error-layout.entry.js +0 -60
  398. package/dist/esm/bcm-expansion-panel.entry.js +0 -112
  399. package/dist/esm/bcm-input_2.entry.js +0 -545
  400. package/dist/esm/bcm-item.entry.js +0 -68
  401. package/dist/esm/bcm-items.entry.js +0 -45
  402. package/dist/esm/bcm-link.entry.js +0 -47
  403. package/dist/esm/bcm-list_3.entry.js +0 -1971
  404. package/dist/esm/bcm-menu.entry.js +0 -147
  405. package/dist/esm/bcm-modal.entry.js +0 -153
  406. package/dist/esm/bcm-old-input.entry.js +0 -393
  407. package/dist/esm/bcm-old-tag_2.entry.js +0 -140
  408. package/dist/esm/bcm-popconfirm-box.entry.js +0 -111
  409. package/dist/esm/bcm-popconfirm.entry.js +0 -97
  410. package/dist/esm/bcm-popover.entry.js +0 -226
  411. package/dist/esm/bcm-progress.entry.js +0 -158
  412. package/dist/esm/bcm-radio-group.entry.js +0 -157
  413. package/dist/esm/bcm-radio.entry.js +0 -61
  414. package/dist/esm/bcm-range.entry.js +0 -179
  415. package/dist/esm/bcm-select.entry.js +0 -1191
  416. package/dist/esm/bcm-shortcut.entry.js +0 -61
  417. package/dist/esm/bcm-step.entry.js +0 -85
  418. package/dist/esm/bcm-stepper.entry.js +0 -236
  419. package/dist/esm/bcm-switch.entry.js +0 -147
  420. package/dist/esm/bcm-tab-group.entry.js +0 -206
  421. package/dist/esm/bcm-tab-item-header.entry.js +0 -56
  422. package/dist/esm/bcm-tab-item.entry.js +0 -87
  423. package/dist/esm/bcm-tab.entry.js +0 -68
  424. package/dist/esm/bcm-tabs.entry.js +0 -366
  425. package/dist/esm/bcm-text.entry.js +0 -45
  426. package/dist/esm/index-7e71bbc8.js +0 -191
  427. package/dist/esm/input-template-f22c62aa.js +0 -90
  428. package/dist/esm/json-parse-decarator-56846a0c.js +0 -38
  429. package/dist/esm/lodash-4197be99.js +0 -17197
  430. package/dist/esm/stepper-states-ec0b9c40.js +0 -83
  431. package/dist/esm/tooltip-helper-ddb8b9e3.js +0 -156
@@ -1,111 +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-f549811f.js';
7
- import { C as ColorHelper } from './color-helper-74614f24.js';
8
- import { G as Generate } from './generate-d009624a.js';
9
- import { S as StringHelper } from './string-helper-3592bdc2.js';
10
- import { s as setPosition } from './popover-placement-d12fec40.js';
11
- import './_commonjsHelpers-82aa9212.js';
12
- import './colors-1d7854ea.js';
13
- import './utils-57652744.js';
14
- import './colors-dd598eea.js';
15
- import './package-7549581c.js';
16
- import './bcm-a50d55ba.js';
17
-
18
- const popconfirmBoxCss = "@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-popconfirm-box{position:absolute;transition:transform 0.2s ease-in-out;}.bcm-popconfirm-box .bcm-pop-box{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:10px;line-height:calc(10px + 8px);box-shadow:0 4px 12px 2px rgba(17, 24, 38, 0.1);border-radius:4px;position:absolute;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;z-index:-99999;overflow:hidden;visibility:hidden;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content{display:flex;flex-direction:row;align-items:flex-start}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-icon{margin-right:8px;min-width:16px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-content-text{display:flex;flex-direction:row;align-items:center;text-align:left;padding-top:1px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons{display:flex;justify-content:flex-end;margin-top:8px}.bcm-popconfirm-box .bcm-pop-box .bcm-pop-buttons bcm-button:first-child{margin-right:8px}.bcm-popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10900;pointer-events:none}.bcm-popconfirm-box.bcm-pop-open{display:block;z-index:10900}.bcm-popconfirm-box.bcm-pop-open .bcm-pop-box{z-index:10900;overflow:unset;visibility:unset}.bcm-popconfirm-box.bcm-pop-open::after{display:block}.bcm-popconfirm-box.top .bcm-pop-box{bottom:100%;margin-bottom:16px}.bcm-popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.bcm-popconfirm-box.bottom .bcm-pop-box{top:100%;margin-top:16px}.bcm-popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.bcm-popconfirm-box.left .bcm-pop-box{right:100%;margin-right:16px}.bcm-popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.bcm-popconfirm-box.right .bcm-pop-box{left:100%;margin-left:16px}.bcm-popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.bcm-popconfirm-box.top.center .bcm-pop-box,.bcm-popconfirm-box.bottom.center .bcm-pop-box{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.center::after,.bcm-popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.bcm-popconfirm-box.top.start .bcm-pop-box,.bcm-popconfirm-box.bottom.start .bcm-pop-box{left:0}.bcm-popconfirm-box.top.start::after,.bcm-popconfirm-box.bottom.start::after{left:16px}.bcm-popconfirm-box.top.end .bcm-pop-box,.bcm-popconfirm-box.bottom.end .bcm-pop-box{right:0}.bcm-popconfirm-box.top.end::after,.bcm-popconfirm-box.bottom.end::after{right:16px}.bcm-popconfirm-box.left.center .bcm-pop-box,.bcm-popconfirm-box.right.center .bcm-pop-box{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.center::after,.bcm-popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.bcm-popconfirm-box.left.start .bcm-pop-box,.bcm-popconfirm-box.right.start .bcm-pop-box{top:0}.bcm-popconfirm-box.left.start::after,.bcm-popconfirm-box.right.start::after{top:12px}.bcm-popconfirm-box.left.end .bcm-pop-box,.bcm-popconfirm-box.right.end .bcm-pop-box{bottom:0}.bcm-popconfirm-box.left.end::after,.bcm-popconfirm-box.right.end::after{bottom:12px}.bcm-popconfirm-box.top{transform:translateY(1px)}.bcm-popconfirm-box.bottom{transform:translateY(-1px)}.bcm-popconfirm-box.left{transform:translateX(1px)}.bcm-popconfirm-box.right{transform:translateX(-1px)}.bcm-popconfirm-box.top.bcm-pop-open,.bcm-popconfirm-box.bottom.bcm-pop-open{transform:translateY(0)}.bcm-popconfirm-box.left.bcm-pop-open,.bcm-popconfirm-box.right.bcm-pop-open{transform:translateX(0)}";
19
-
20
- const statuses = {
21
- error: ['fal fa-times-circle', 'red-6'],
22
- warning: ['fal fa-exclamation-circle', 'warmyellow-6'],
23
- };
24
- const BcmPopconfirmBox = class {
25
- constructor(hostRef) {
26
- registerInstance(this, hostRef);
27
- this.onConfirm = createEvent(this, "bcm-popconfirm-confirm", 7);
28
- this.onCancel = createEvent(this, "bcm-popconfirm-cancel", 7);
29
- this.onShow = createEvent(this, "bcm-popconfirm-show", 7);
30
- this._id = Generate.UID();
31
- this._target_id = undefined;
32
- this.message = undefined;
33
- this.status = 'warning';
34
- this.cancelText = "No";
35
- this.okeyText = "Yes";
36
- this.placement = undefined;
37
- this.open = false;
38
- this.hidden = false;
39
- this._internal_id = undefined;
40
- this.placement_string = undefined;
41
- }
42
- getPopconfirm() {
43
- return document.querySelector(`bcm-popconfirm[id="${this._target_id}"]`);
44
- }
45
- handleClickOutside(e) {
46
- if (this.el.contains(e.target) || this.getPopconfirm().contains(e.target)) {
47
- return;
48
- }
49
- this.getPopconfirm().hide();
50
- this.hide();
51
- }
52
- showHandler(e) {
53
- if (e.detail != this._target_id) {
54
- this.getPopconfirm().hide();
55
- this.hide();
56
- }
57
- }
58
- async show() {
59
- this.open = true;
60
- this.onShow.emit(this._target_id);
61
- }
62
- async hide() {
63
- this.open = false;
64
- }
65
- componentWillRender() {
66
- this.calculateLocation();
67
- }
68
- calculateLocation() {
69
- if (this.open) {
70
- var placement = this.placement;
71
- const box = this.el.querySelector('.bcm-pop-box');
72
- const targetElement = document.getElementById(this._target_id).children[0];
73
- if (box && targetElement) {
74
- let pos = setPosition(placement, targetElement, { top: targetElement.offsetTop, left: targetElement.offsetLeft });
75
- this.setPlacementString(placement);
76
- this.el.style.top = pos[0] + 'px';
77
- this.el.style.left = pos[1] + 'px';
78
- }
79
- }
80
- }
81
- setPlacementString(placement) {
82
- const placements = StringHelper.textContains(placement, '-') ? placement.split('-') : placement.split(' ');
83
- if (placements.length === 1) {
84
- placements.push('center');
85
- }
86
- this.placement_string = placements.join(' ');
87
- }
88
- handleConfirm() {
89
- this.getPopconfirm().hide();
90
- this.hide();
91
- this.onConfirm.emit(this._target_id);
92
- }
93
- handleCancel() {
94
- this.getPopconfirm().hide();
95
- this.hide();
96
- this.onCancel.emit(this._target_id);
97
- }
98
- render() {
99
- const { message, cancelText, okeyText, open, placement_string, status } = this;
100
- const statusies = statuses[status];
101
- const boxClasses = classnames('bcm-pop-box');
102
- const hostClasses = classnames('bcm-popconfirm-box', placement_string, {
103
- 'bcm-pop-open': open,
104
- });
105
- return (h(Host, { class: hostClasses }, h("div", { class: boxClasses }, h("div", { class: "bcm-pop-content" }, h("div", { class: "bcm-pop-content-icon size-3", style: { color: ColorHelper.convertColorToHex(statusies[1]) } }, h("bcm-icon", { icon: statusies[0] })), h("div", { class: "bcm-pop-content-text" }, h("bcm-text", { scale: "size-2", innerHTML: message }))), h("div", { class: "bcm-pop-buttons" }, h("bcm-button", { size: "small", onClick: () => this.handleCancel(), outline: true }, cancelText), h("bcm-button", { size: "small", onClick: () => this.handleConfirm() }, okeyText)))));
106
- }
107
- get el() { return getElement(this); }
108
- };
109
- BcmPopconfirmBox.style = popconfirmBoxCss;
110
-
111
- export { BcmPopconfirmBox as bcm_popconfirm_box };
@@ -1,97 +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-f549811f.js';
7
- import { G as Generate } from './generate-d009624a.js';
8
- import { a as Bcm } from './bcm-a50d55ba.js';
9
- import './_commonjsHelpers-82aa9212.js';
10
- import './package-7549581c.js';
11
- import './colors-dd598eea.js';
12
-
13
- const popconfirmCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-popconfirm{display:inline-flex}";
14
-
15
- const BcmPopconfirm = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- this.onShow = createEvent(this, "bcm-show", 7);
19
- this.onHide = createEvent(this, "bcm-hide", 7);
20
- this.onConfirm = createEvent(this, "bcm-confirm", 7);
21
- this.onCancel = createEvent(this, "bcm-cancel", 7);
22
- this._id = Generate.UID();
23
- this.message = undefined;
24
- this.status = 'warning';
25
- this.cancelText = "No";
26
- this.okeyText = "Yes";
27
- this.placement = Bcm.Placement.top;
28
- this.trigger = Bcm.TriggerType.click;
29
- this.open = false;
30
- this.hidden = false;
31
- }
32
- async show() {
33
- // if (this.open) return
34
- this.open = true;
35
- this.onShow.emit();
36
- await this.createBox().then(() => this.showBox());
37
- }
38
- async hide() {
39
- // if (!this.open) return
40
- this.open = false;
41
- this.onHide.emit();
42
- // this.hideBox()
43
- }
44
- async createBox() {
45
- let element = this.getPopconfirmBox();
46
- if (!element) {
47
- const box = document.createElement('bcm-popconfirm-box');
48
- box.setAttribute('id', 'box-' + this._id);
49
- box.setAttribute('target-id', this._id);
50
- box.setAttribute('placement', this.placement);
51
- box.setAttribute('message', this.message);
52
- box.setAttribute('status', this.status);
53
- box.setAttribute('cancel-text', this.cancelText);
54
- box.setAttribute('okey-text', this.okeyText);
55
- this.el.parentElement.appendChild(box);
56
- }
57
- return Promise.resolve();
58
- }
59
- getPopconfirmBox() {
60
- return document.querySelector(`bcm-popconfirm-box[id="box-${this._id}"]`);
61
- }
62
- showBox() {
63
- this.getPopconfirmBox() && this.getPopconfirmBox().show();
64
- }
65
- hideBox() {
66
- this.getPopconfirmBox() && this.getPopconfirmBox().hide();
67
- }
68
- listenTrigger(event) {
69
- switch (this.trigger) {
70
- case 'click':
71
- event === 'click' && (this.open ? this.hide() : this.show());
72
- break;
73
- case 'hover':
74
- event === 'onMouseOver' && this.show();
75
- event === 'onMouseOut' && this.hide();
76
- break;
77
- case 'focus':
78
- event === 'onFocus' && this.show();
79
- event === 'onBlur' && this.hide();
80
- break;
81
- }
82
- }
83
- onBcmConfirm(e) {
84
- e.detail == this._id && (this.onConfirm.emit(this._id));
85
- }
86
- onBcmCancel(e) {
87
- e.detail == this._id && (this.onCancel.emit(this._id));
88
- }
89
- render() {
90
- const popconfirmClasses = classnames('bcm-popconfirm');
91
- return (h(Host, { class: popconfirmClasses, onclick: () => this.listenTrigger('click') }, h("slot", null)));
92
- }
93
- get el() { return getElement(this); }
94
- };
95
- BcmPopconfirm.style = popconfirmCss;
96
-
97
- export { BcmPopconfirm as bcm_popconfirm };
@@ -1,226 +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 ColorHelper } from './color-helper-74614f24.js';
7
- import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-d009624a.js';
9
- import './number-helper-b7a7a318.js';
10
- import { S as StringHelper } from './string-helper-3592bdc2.js';
11
- import './validators-5519219e.js';
12
- import './element-dragger-89bb52fd.js';
13
- import { B as Bcm } from './bcm-a50d55ba.js';
14
- import { d as delay } from './utils-57652744.js';
15
- import { F as FloatingUI } from './floating-ui-3f4394da.js';
16
- import './colors-1d7854ea.js';
17
- import './colors-dd598eea.js';
18
- import './_commonjsHelpers-82aa9212.js';
19
- import './package-7549581c.js';
20
-
21
- class Popover {
22
- constructor({ content, message, targetId, placement = "top", color = "slate-700", trigger = "none", openDelay = 0, closeDelay = 0, autoHide = false, emitShow = () => { }, emitHide = () => { } }) {
23
- this.destroy = () => {
24
- this.el = document.getElementById(this.id);
25
- if (this.el) {
26
- this.el.remove();
27
- this.emitHide();
28
- }
29
- this.removeListener();
30
- };
31
- this.target = () => document.getElementById(this.targetId);
32
- this.init = () => {
33
- const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
34
- const dc = Generate.getTwColor({
35
- color: colorName,
36
- tones: {
37
- [tone]: ["bg"],
38
- },
39
- variable: "--bcm-popover",
40
- });
41
- const style = Object.assign(Object.assign({}, dc), (dc["--bcm-popover-bg"] && { "--bcm-popover-text": ColorHelper.reverseColor(dc["--bcm-popover-bg"]) }));
42
- const inner = `<div class="tw-z-[1] tw-rounded tw-py-2">
43
- ${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ""}
44
- ${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ""}
45
- </div>`;
46
- this.el = Generate.createElement("div", {
47
- "id": `${this.targetId}-popover-box`,
48
- "class": `
49
- tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-[--bcm-popover-bg] tw-text-[--bcm-popover-text] tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
50
- tw-shadow`,
51
- "role": "popover",
52
- "aria-hidden": "true",
53
- "style": ColorHelper.generateStyleString(style),
54
- "innerHTML": inner,
55
- });
56
- };
57
- this.update = () => {
58
- this.el = document.getElementById(this.id);
59
- if (this.el) {
60
- this.hide();
61
- this.show();
62
- }
63
- };
64
- this.listener = () => {
65
- window.addEventListener("resize", this.calculatePosition.bind(this));
66
- window.addEventListener("scroll", this.calculatePosition.bind(this), true);
67
- window.addEventListener("wheel", this.calculatePosition.bind(this));
68
- if (this.trigger && this.target()) {
69
- switch (this.trigger) {
70
- case "click":
71
- this.target().addEventListener("click", this.toggle.bind(this));
72
- this.autoHide && this.target().addEventListener("mouseleave", this.hide.bind(this));
73
- break;
74
- case "hover":
75
- this.target().addEventListener("mouseenter", this.show.bind(this));
76
- this.target().addEventListener("mouseleave", this.hide.bind(this));
77
- break;
78
- case "focus":
79
- this.target().addEventListener("focus", this.show.bind(this), true);
80
- this.target().addEventListener("blur", this.hide.bind(this), true);
81
- break;
82
- }
83
- }
84
- this.calculatePosition();
85
- };
86
- this.removeListener = () => {
87
- window.removeEventListener("resize", this.calculatePosition.bind(this));
88
- window.removeEventListener("scroll", this.calculatePosition.bind(this), true);
89
- window.removeEventListener("wheel", this.calculatePosition.bind(this));
90
- if (this.target()) {
91
- this.target().removeEventListener("click", this.toggle.bind(this));
92
- this.target().removeEventListener("mouseenter", this.show.bind(this));
93
- this.target().removeEventListener("mouseleave", this.hide.bind(this));
94
- this.target().removeEventListener("focus", this.show.bind(this), true);
95
- this.target().removeEventListener("blur", this.hide.bind(this), true);
96
- }
97
- };
98
- this.calculatePosition = () => {
99
- this.el = document.getElementById(this.id);
100
- if (this.el) {
101
- FloatingUI({
102
- ref: this.target(),
103
- floating: this.el,
104
- placement: this.placement,
105
- offset: 8,
106
- arrow: true,
107
- arrowColor: `tw-bg-[--bcm-popover-bg]`,
108
- });
109
- }
110
- };
111
- this.show = async () => {
112
- if (this.message) {
113
- this.init();
114
- await delay(this.openDelay);
115
- this.calculatePosition();
116
- this.emitShow();
117
- }
118
- else {
119
- this.hide();
120
- }
121
- };
122
- this.hide = async () => {
123
- this.el = document.getElementById(this.id);
124
- if (this.el) {
125
- await delay(this.closeDelay);
126
- this.el.remove();
127
- this.emitHide();
128
- }
129
- };
130
- this.toggle = () => {
131
- this.el = document.getElementById(this.id);
132
- if (this.el) {
133
- this.hide();
134
- }
135
- else {
136
- this.show();
137
- }
138
- };
139
- this.content = content;
140
- this.message = message;
141
- this.targetId = targetId;
142
- this.placement = placement;
143
- this.color = color;
144
- this.trigger = trigger;
145
- this.id = targetId + "-popover-box";
146
- this.openDelay = openDelay;
147
- this.closeDelay = closeDelay;
148
- this.autoHide = autoHide;
149
- this.emitShow = emitShow;
150
- this.emitHide = emitHide;
151
- }
152
- }
153
-
154
- const BcmPopover = class {
155
- constructor(hostRef) {
156
- registerInstance(this, hostRef);
157
- this.bcmPopoverShow = createEvent(this, "bcmPopoverShow", 7);
158
- this.bcmPopoverHide = createEvent(this, "bcmPopoverHide", 7);
159
- this._id = Generate.UID();
160
- this.message = "";
161
- this.content = "";
162
- this.placement = Bcm.Placement.top;
163
- this.trigger = Bcm.TriggerType.click;
164
- this.open = false;
165
- this.color = "white";
166
- this.openDelay = 0;
167
- this.closeDelay = 0;
168
- this.autoHide = false;
169
- this.targetId = undefined;
170
- this.popover = undefined;
171
- }
172
- emitShow() {
173
- this.bcmPopoverShow.emit();
174
- }
175
- emitHide() {
176
- this.bcmPopoverHide.emit();
177
- }
178
- connectedCallback() {
179
- this.popover = new Popover({
180
- targetId: this.targetId || this._id,
181
- content: this.content,
182
- message: this.message,
183
- placement: this.placement,
184
- color: this.color,
185
- trigger: this.trigger,
186
- openDelay: this.openDelay,
187
- closeDelay: this.closeDelay,
188
- autoHide: this.autoHide,
189
- emitShow: () => this.emitShow(),
190
- emitHide: () => this.emitHide(),
191
- });
192
- }
193
- componentDidLoad() {
194
- this.popover.listener();
195
- }
196
- componentDidRender() {
197
- const { content, message, placement, color, trigger } = this;
198
- this.popover.content = content;
199
- this.popover.message = message;
200
- this.popover.placement = placement;
201
- this.popover.color = color;
202
- this.popover.trigger = trigger;
203
- this.popover.openDelay = this.openDelay;
204
- this.popover.closeDelay = this.closeDelay;
205
- this.popover.autoHide = this.autoHide;
206
- this.popover.update();
207
- }
208
- disconnectedCallback() {
209
- this.popover.destroy();
210
- }
211
- async show() {
212
- this.popover.show();
213
- }
214
- async hide() {
215
- this.popover.hide();
216
- }
217
- async toggle() {
218
- this.popover.toggle();
219
- }
220
- render() {
221
- return (h(Host, { class: "tw-inline-flex tw-h-fit tw-w-fit", role: "tooltip", "aria-hidden": "true" }, h("slot", null)));
222
- }
223
- get el() { return getElement(this); }
224
- };
225
-
226
- export { BcmPopover as bcm_popover };
@@ -1,158 +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-f549811f.js';
7
- import { C as ColorHelper } from './color-helper-74614f24.js';
8
- import { G as Generate } from './generate-d009624a.js';
9
- import { a as Bcm } from './bcm-a50d55ba.js';
10
- import './_commonjsHelpers-82aa9212.js';
11
- import './colors-1d7854ea.js';
12
- import './utils-57652744.js';
13
- import './colors-dd598eea.js';
14
- import './package-7549581c.js';
15
-
16
- // export const lineSizes = {
17
- // small: {
18
- // textSize: 'size-1',
19
- // iconSize: 14,
20
- // },
21
- // medium: {
22
- // textSize: 'size-2',
23
- // iconSize: 16,
24
- // }
25
- // }
26
- const circleSizes = {
27
- small: {
28
- textSize: 'size-3',
29
- iconSize: 22,
30
- circleSize: 80,
31
- radius: 36
32
- },
33
- medium: {
34
- textSize: 'size-5',
35
- iconSize: 30,
36
- circleSize: 120,
37
- radius: 52
38
- }
39
- };
40
-
41
- const progressCss = "@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-progress{--bcm-progress-color:var(--bcm-new-ds-color-blue-500);display:inline-block;min-width:50px;width:100%;max-width:256px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400}.bcm-progress.full-width{width:100%;max-width:100%;min-width:auto}.bcm-progress__line{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;min-height:8px}.bcm-progress__line .value{margin-left:8px;color:var(--bcm-new-ds-color-slate-500);min-width:32px;font-size:14px;min-height:calc(14px + 8px);font-weight:500}.bcm-progress__line-progress{width:100%;flex:1;height:8px;border:0 none;background:var(--bcm-new-ds-color-slate-200);appearance:none}.bcm-progress__line-progress.small{height:6px}.bcm-progress__line-progress.line-rounded,.bcm-progress__line-progress.line-rounded::-webkit-progress-value{border-radius:8px}.bcm-progress__line-progress.line-rounded::-moz-progress-bar{border-radius:8px}.bcm-progress__line-progress.completed::-webkit-progress-value{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.completed::-moz-progress-bar{background-color:var(--bcm-progress-color)}.bcm-progress__line-progress.error::-webkit-progress-value{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error::-moz-progress-bar{background-color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress.error .value{color:var(--bcm-new-ds-color-red-500)}.bcm-progress__line-progress::-webkit-progress-bar{background:transparent}.bcm-progress__line-progress::-webkit-progress-value{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__line-progress::-moz-progress-bar{background-color:var(--bcm-progress-color);transition:0.3s}.bcm-progress__circle{position:relative}.bcm-progress__circle bcm-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.bcm-progress__circle text{fill:var(--bcm-new-ds-color-slate-500);font-size:18px;line-height:calc(18px + 8px);font-weight:500}.bcm-progress__circle-circle{transition:0.35s stroke-dashoffset, 0.1s stroke;transform:rotate(-90deg);transform-origin:50% 50%;stroke:#F5F5F5;stroke-width:6px;fill:transparent}.bcm-progress__circle-circle.bar{stroke:var(--bcm-progress-color)}.bcm-progress__circle-circle.completed{stroke:var(--bcm-new-ds-color-emerald-500)}.bcm-progress__circle-circle.error{stroke:var(--bcm-new-ds-color-red-500)}";
42
-
43
- const BcmProgress = class {
44
- constructor(hostRef) {
45
- registerInstance(this, hostRef);
46
- this._id = Generate.UID();
47
- this.value = 0;
48
- this.max = 100;
49
- this.size = Bcm.Size.medium;
50
- this.type = "line-rounded";
51
- this.info = null;
52
- this.error = false;
53
- this.hidden = false;
54
- this.fullWidth = false;
55
- this.color = "blue";
56
- this.isCompleted = false;
57
- }
58
- connectedCallback() {
59
- this.maxPercent(this.value);
60
- }
61
- componentDidRender() {
62
- const circle = this.el.querySelector("#circle");
63
- if (circle) {
64
- const radius = circle.r.baseVal.value;
65
- const circumference = radius * 2 * Math.PI;
66
- const offset = circumference - (this.value / this.max) * circumference;
67
- circle.style.strokeDasharray = `${circumference} ${circumference}`;
68
- circle.style.strokeDashoffset = `${circumference}`;
69
- circle.style.strokeDashoffset = `${offset}`;
70
- }
71
- }
72
- componentShouldUpdate(newVal, oldVal, propName) {
73
- if (propName === "value" && newVal !== oldVal) {
74
- this.handlePercent(newVal);
75
- }
76
- if (propName === "max" && newVal !== oldVal) {
77
- this.value > newVal ? this.value = newVal : this.value;
78
- }
79
- }
80
- maxPercent(newValue) {
81
- if (newValue >= this.max) {
82
- this.value = this.max;
83
- this.isCompleted = true;
84
- }
85
- if (newValue < this.max) {
86
- this.isCompleted = false;
87
- }
88
- if (newValue <= 0) {
89
- this.value = 0;
90
- }
91
- }
92
- async increment(percent) {
93
- this.handlePercent(+percent, "increment");
94
- }
95
- async decrement(percent) {
96
- this.handlePercent(+percent, "decrement");
97
- }
98
- async set(percent) {
99
- this.handlePercent(+percent, "set");
100
- }
101
- handlePercent(percent, process = "set") {
102
- if ((percent || percent == 0) && typeof percent === "number") {
103
- switch (process) {
104
- case "increment":
105
- this.value += percent;
106
- break;
107
- case "decrement":
108
- this.value -= percent;
109
- break;
110
- case "set":
111
- this.value = percent;
112
- break;
113
- }
114
- this.maxPercent(this.value);
115
- this.error = false;
116
- }
117
- else {
118
- this.error = true;
119
- }
120
- }
121
- getIcon(type = "line") {
122
- let icon = "far fa-" + (this.error ? "times" : "check") + (type === "line" ? "-circle" : "");
123
- if (this.error || (this.info === "icon" && this.isCompleted)) {
124
- return h("bcm-icon", { icon: icon });
125
- }
126
- }
127
- render() {
128
- const { type, hidden, error, size, isCompleted, value, fullWidth } = this;
129
- const isIcon = this.info === "icon";
130
- const { circleSize, radius, textSize } = circleSizes[this.size];
131
- const centerOfCircle = +circleSize / 2;
132
- const completeState = classnames({
133
- completed: isIcon && isCompleted,
134
- error,
135
- });
136
- const lineClasses = classnames("bcm-progress__line-progress", size, type, completeState);
137
- const circleClasses = classnames("bcm-progress__circle-circle", "bar", completeState);
138
- const containerStyle = {
139
- width: `${circleSize}px`,
140
- height: `${circleSize}px`,
141
- };
142
- const hostClasses = classnames("bcm-progress", {
143
- hidden,
144
- "full-width": fullWidth,
145
- });
146
- const CircleTemplate = () => (h("div", { class: "bcm-progress__circle", style: containerStyle }, h("svg", { width: circleSize, height: circleSize }, h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: "bcm-progress__circle-circle" }), h("circle", { r: radius, cx: centerOfCircle, cy: centerOfCircle, class: circleClasses, id: "circle" }), (this.info && this.info != "icon") && !this.error && (h("text", { x: centerOfCircle, y: centerOfCircle, "text-anchor": "middle", class: textSize, "alignment-baseline": "middle" }, this.info === "value-max" && (value + "/" + this.max), this.info === "value" && { value }, this.info === "percent" &&
147
- (100 / this.max) * +(value) + "%"))), this.getIcon("circle")));
148
- const LineTemplate = () => (h("div", { class: "bcm-progress__line" }, h("progress", { class: lineClasses, value: value, max: this.max }), this.info === "value-max" && h("span", { class: "value" }, value, "/", this.max, " "), this.info === "value" && h("span", { class: "value" }, value, " "), this.info === "percent" &&
149
- h("span", { class: "value" }, (100 / this.max) * +(value), "%"), this.info === "icon" && h("span", { class: "value" }, this.getIcon("line"))));
150
- return (h(Host, { class: hostClasses, style: {
151
- [`--bcm-progress-color`]: ColorHelper.dsColor(this.color),
152
- } }, type === "circle" ? h(CircleTemplate, null) : h(LineTemplate, null)));
153
- }
154
- get el() { return getElement(this); }
155
- };
156
- BcmProgress.style = progressCss;
157
-
158
- export { BcmProgress as bcm_progress };