bromcom-ui 2.9.0-rc.0 → 2.9.0-rc.10

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 (506) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/global/global.js +19 -5
  4. package/dist/bromcom-ui/{p-bc840f30.entry.js → p-01416407.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-4aa0e6b1.js → p-034bbcdd.js} +1 -1
  6. package/dist/bromcom-ui/p-0523863a.entry.js +5 -0
  7. package/dist/bromcom-ui/p-07ff085d.entry.js +5 -0
  8. package/dist/bromcom-ui/p-0e99fd08.entry.js +5 -0
  9. package/dist/bromcom-ui/{p-f937f362.entry.js → p-123d6355.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-1286e447.entry.js +5 -0
  11. package/dist/bromcom-ui/p-14c7e2a8.js +297 -0
  12. package/dist/bromcom-ui/{p-e0f440b4.js → p-167e1654.js} +1 -1
  13. package/dist/bromcom-ui/p-170cf07d.js +6 -0
  14. package/dist/bromcom-ui/{p-b94fa326.js → p-1b94d494.js} +1 -1
  15. package/dist/bromcom-ui/{p-5618ee1e.entry.js → p-1b96dbbf.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-1c17fbd6.entry.js +5 -0
  17. package/dist/bromcom-ui/p-1df4d111.entry.js +5 -0
  18. package/dist/bromcom-ui/p-21cd7ad3.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-037a40a6.entry.js → p-228c74e9.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-a429e85b.js → p-23c35e1b.js} +1 -1
  21. package/dist/bromcom-ui/p-280736e0.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-f8c20298.entry.js → p-28f78dd4.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-2a9053d8.js +5 -0
  24. package/dist/bromcom-ui/p-2b3610b4.entry.js +5 -0
  25. package/dist/bromcom-ui/p-2baa0a6b.entry.js +5 -0
  26. package/dist/bromcom-ui/p-2c43873c.entry.js +5 -0
  27. package/dist/bromcom-ui/p-2d2ff5fc.entry.js +5 -0
  28. package/dist/bromcom-ui/p-2d4a0a66.entry.js +5 -0
  29. package/dist/bromcom-ui/p-2e080bdf.entry.js +5 -0
  30. package/dist/bromcom-ui/p-2e506b7c.entry.js +5 -0
  31. package/dist/bromcom-ui/p-2f4c8c67.entry.js +5 -0
  32. package/dist/bromcom-ui/p-2f81dd36.entry.js +5 -0
  33. package/dist/bromcom-ui/{p-c80ab24a.entry.js → p-3078fcd2.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-30abd87e.entry.js +5 -0
  35. package/dist/bromcom-ui/p-30b43b3a.entry.js +5 -0
  36. package/dist/bromcom-ui/p-3182df7e.js +10 -0
  37. package/dist/bromcom-ui/p-324b9364.js +5 -0
  38. package/dist/bromcom-ui/p-37488f1a.entry.js +5 -0
  39. package/dist/bromcom-ui/p-37c48622.entry.js +5 -0
  40. package/dist/bromcom-ui/{p-05b0bdce.entry.js → p-3960cae8.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-63b14659.entry.js → p-3a06c6b1.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-c23b6240.js → p-3ade1099.js} +1 -1
  43. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  44. package/dist/bromcom-ui/{p-494ebf69.entry.js → p-3d730230.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-412732f4.js +5 -0
  46. package/dist/bromcom-ui/p-42616ae0.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-d8cc24f0.entry.js → p-44ca28fa.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-4798d827.js +5 -0
  49. package/dist/bromcom-ui/p-48b925ad.js +5 -0
  50. package/dist/bromcom-ui/{p-842a5926.entry.js → p-4e33341b.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-4fc0c9db.entry.js +5 -0
  52. package/dist/bromcom-ui/p-52c6d2e5.entry.js +5 -0
  53. package/dist/bromcom-ui/p-535eae03.entry.js +5 -0
  54. package/dist/bromcom-ui/p-53d6a137.entry.js +5 -0
  55. package/dist/bromcom-ui/p-5559362d.entry.js +5 -0
  56. package/dist/bromcom-ui/p-5600c817.js +5 -0
  57. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  58. package/dist/bromcom-ui/{p-87df3ffb.js → p-5caf6360.js} +1 -1
  59. package/dist/bromcom-ui/p-637fb9e8.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-f82afa9d.entry.js → p-67343ad8.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-6909817b.entry.js +5 -0
  62. package/dist/bromcom-ui/p-6a7c6ef2.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-8f78fe1c.entry.js → p-6ab403d2.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-74dc0103.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-a60a2dd0.js → p-74e6d2b6.js} +1 -1
  66. package/dist/bromcom-ui/p-778529e9.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-5c059eba.entry.js → p-7b486021.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-f7e29f3e.entry.js → p-7c5763cc.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-7e3209a0.js +14 -0
  70. package/dist/bromcom-ui/{p-961dc8e1.entry.js → p-7f1612df.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-53820462.entry.js → p-8c3535b6.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-76cb3798.entry.js → p-9314d7ed.entry.js} +1 -1
  73. package/dist/bromcom-ui/p-95fa989d.entry.js +5 -0
  74. package/dist/bromcom-ui/p-9c6f8cf6.entry.js +5 -0
  75. package/dist/bromcom-ui/{p-23309057.entry.js → p-9d12a9da.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-9dec497d.entry.js +5 -0
  77. package/dist/bromcom-ui/p-a1412b63.js +5 -0
  78. package/dist/bromcom-ui/p-a54a47ed.entry.js +5 -0
  79. package/dist/bromcom-ui/{p-4fcf03c1.entry.js → p-ae57f046.entry.js} +1 -1
  80. package/dist/bromcom-ui/p-af4c2c90.entry.js +5 -0
  81. package/dist/bromcom-ui/p-b1613d12.entry.js +5 -0
  82. package/dist/bromcom-ui/{p-d69fb13b.entry.js → p-b284e383.entry.js} +1 -1
  83. package/dist/bromcom-ui/{p-f902b559.js → p-b426546b.js} +1 -1
  84. package/dist/bromcom-ui/p-b82685e4.js +12 -0
  85. package/dist/bromcom-ui/{p-7d662231.entry.js → p-ba3c6657.entry.js} +1 -1
  86. package/dist/bromcom-ui/p-bed627ab.js +11 -0
  87. package/dist/bromcom-ui/p-c537f73b.entry.js +5 -0
  88. package/dist/bromcom-ui/p-cca6e9c5.js +5 -0
  89. package/dist/bromcom-ui/{p-f3ed187a.entry.js → p-cea71a01.entry.js} +1 -1
  90. package/dist/bromcom-ui/{p-8d0ca8c2.js → p-cff8ef93.js} +1 -1
  91. package/dist/bromcom-ui/p-d2ff474a.entry.js +5 -0
  92. package/dist/bromcom-ui/p-d479398d.entry.js +5 -0
  93. package/dist/bromcom-ui/p-d9f26a59.entry.js +5 -0
  94. package/dist/bromcom-ui/{p-b60bcecf.js → p-dc8305dc.js} +1 -1
  95. package/dist/bromcom-ui/p-dc97634a.entry.js +5 -0
  96. package/dist/bromcom-ui/p-dd65dec9.entry.js +5 -0
  97. package/dist/bromcom-ui/{p-2afef4b5.entry.js → p-df185078.entry.js} +1 -1
  98. package/dist/bromcom-ui/p-e0271c48.entry.js +5 -0
  99. package/dist/bromcom-ui/{p-dbc4c30c.js → p-e1689f47.js} +1 -1
  100. package/dist/bromcom-ui/{p-c8e13fd7.js → p-e1877ee9.js} +1 -1
  101. package/dist/bromcom-ui/p-e304d0f8.entry.js +5 -0
  102. package/dist/bromcom-ui/p-e3a66478.entry.js +5 -0
  103. package/dist/bromcom-ui/p-e45c1546.js +5 -0
  104. package/dist/bromcom-ui/p-e4bc863b.entry.js +5 -0
  105. package/dist/bromcom-ui/p-edcc8c69.entry.js +5 -0
  106. package/dist/bromcom-ui/p-eed0258a.entry.js +5 -0
  107. package/dist/bromcom-ui/p-f3424c60.entry.js +5 -0
  108. package/dist/bromcom-ui/p-f521cbb4.entry.js +5 -0
  109. package/dist/bromcom-ui/p-fd03e308.entry.js +5 -0
  110. package/dist/bromcom-ui/p-fd87349e.entry.js +5 -0
  111. package/dist/bromcom-ui/p-fd93d2a4.entry.js +5 -0
  112. package/dist/bromcom-ui/p-fe83aac0.entry.js +5 -0
  113. package/dist/bromcom-ui/static/message-bot.svg +10 -0
  114. package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
  115. package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +111638 -0
  116. package/dist/cjs/{bcm-ab921827.js → bcm-03727f3b.js} +5 -4
  117. package/dist/cjs/bcm-accordion.cjs.entry.js +5 -4
  118. package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
  119. package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
  120. package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
  121. package/dist/cjs/bcm-avatar_2.cjs.entry.js +2770 -0
  122. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  123. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -5
  124. package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
  125. package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_8.cjs.entry.js} +430 -5442
  126. package/dist/cjs/bcm-card.cjs.entry.js +10 -9
  127. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
  128. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
  129. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
  130. package/dist/cjs/bcm-chip-group.cjs.entry.js +129 -0
  131. package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
  132. package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
  133. package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
  134. package/dist/cjs/bcm-color-input.cjs.entry.js +10 -9
  135. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  136. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  137. package/dist/cjs/bcm-date-picker.cjs.entry.js +9 -8
  138. package/dist/cjs/bcm-date.cjs.entry.js +124 -0
  139. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +29 -14
  140. package/dist/cjs/bcm-default.cjs.entry.js +5 -4
  141. package/dist/cjs/bcm-drawer.cjs.entry.js +13 -12
  142. package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
  143. package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
  144. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
  145. package/dist/cjs/bcm-form-2.cjs.entry.js +13 -9
  146. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  147. package/dist/cjs/bcm-form.cjs.entry.js +489 -0
  148. package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
  149. package/dist/cjs/bcm-item.cjs.entry.js +9 -8
  150. package/dist/cjs/bcm-items.cjs.entry.js +8 -7
  151. package/dist/cjs/bcm-link.cjs.entry.js +6 -6
  152. package/dist/cjs/bcm-list_3.cjs.entry.js +2502 -0
  153. package/dist/cjs/bcm-menu.cjs.entry.js +15 -13
  154. package/dist/cjs/bcm-message.cjs.entry.js +3 -3
  155. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -10
  156. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -9
  157. package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -11
  158. package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
  159. package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
  160. package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
  161. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
  162. package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
  163. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -9
  164. package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
  165. package/dist/cjs/bcm-popover.cjs.entry.js +27 -22
  166. package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
  167. package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -16
  168. package/dist/cjs/bcm-radio.cjs.entry.js +18 -17
  169. package/dist/cjs/bcm-range.cjs.entry.js +10 -9
  170. package/dist/cjs/bcm-rc-picker.cjs.entry.js +8150 -0
  171. package/dist/cjs/bcm-result.cjs.entry.js +3 -3
  172. package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
  173. package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
  174. package/dist/cjs/bcm-select.cjs.entry.js +5 -5
  175. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -4
  176. package/dist/cjs/bcm-step.cjs.entry.js +8 -7
  177. package/dist/cjs/bcm-stepper.cjs.entry.js +15 -14
  178. package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
  179. package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -11
  180. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -37
  181. package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -9
  182. package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
  183. package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
  184. package/dist/cjs/bcm-table.cjs.entry.js +236 -38
  185. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
  186. package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
  187. package/dist/cjs/bcm-tag.cjs.entry.js +19 -18
  188. package/dist/cjs/bcm-text.cjs.entry.js +8 -8
  189. package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
  190. package/dist/cjs/bcm-time-picker.cjs.entry.js +9 -8
  191. package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
  192. package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
  193. package/dist/cjs/bcm-toast.cjs.entry.js +15 -14
  194. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  195. package/dist/cjs/bromcom-ui.cjs.js +5 -3
  196. package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
  197. package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
  198. package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
  199. package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-baa45717.js} +2 -2
  200. package/dist/cjs/{generate-21143214.js → generate-225c30c9.js} +57 -8
  201. package/dist/cjs/global-d30014b0.js +27 -0
  202. package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
  203. package/dist/cjs/index-c08b35b2.js +1610 -0
  204. package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
  205. package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
  206. package/dist/cjs/index-e05a7c6f.js +545 -0
  207. package/dist/cjs/{input-template-1441e468.js → input-template-27576361.js} +8 -8
  208. package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-7575fbd2.js} +1 -1
  209. package/dist/cjs/{json-parse-decarator-8dbf0b0e.js → json-parse-decarator-c7dda47d.js} +2 -2
  210. package/dist/cjs/{label-template-4d5f99a5.js → label-template-8d34230f.js} +5 -5
  211. package/dist/cjs/loader.cjs.js +5 -3
  212. package/dist/cjs/moment-c1a71617.js +5689 -0
  213. package/dist/cjs/{number-helper-08a7ff70.js → number-helper-2b3bd61e.js} +1 -1
  214. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
  215. package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
  216. package/dist/cjs/package-e7a4d8ef.js +9 -0
  217. package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-86ece590.js} +1 -1
  218. package/dist/cjs/{slot-template-d70ea082.js → slot-template-758beb71.js} +2 -2
  219. package/dist/cjs/{stepper-states-9b6818aa.js → stepper-states-b56fbad9.js} +3 -3
  220. package/dist/cjs/{string-helper-d681e5c7.js → string-helper-b89a9828.js} +3 -3
  221. package/dist/cjs/{tooltip-helper-235b26ea.js → tooltip-helper-85b4c726.js} +22 -14
  222. package/dist/cjs/{validators-6a0077a8.js → validators-9e7f7995.js} +1 -1
  223. package/dist/collection/assets/csv.svg +9 -0
  224. package/dist/collection/assets/excel.svg +9 -0
  225. package/dist/collection/assets/pdf.svg +9 -0
  226. package/dist/collection/collection-manifest.json +5 -2
  227. package/dist/collection/components/atoms/avatar/avatar.js +94 -81
  228. package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
  229. package/dist/collection/components/atoms/badge/badge.js +30 -90
  230. package/dist/collection/components/atoms/badge/badge.style.js +48 -0
  231. package/dist/collection/components/{other/data-table/table.css → atoms/chip/chip-group.css} +2 -5
  232. package/dist/collection/components/atoms/chip/chip-group.js +50 -6
  233. package/dist/collection/components/atoms/chip/chip.css +9 -0
  234. package/dist/collection/components/atoms/chip/chip.js +3 -1
  235. package/dist/collection/components/atoms/icon/icon.js +15 -3
  236. package/dist/collection/components/atoms/icon/static/message-bot.svg +10 -0
  237. package/dist/collection/components/molecules/input/input.js +4 -4
  238. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +284 -0
  239. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +698 -0
  240. package/dist/collection/components/molecules/items/items.js +1 -1
  241. package/dist/collection/components/molecules/linked/linked.js +14 -2
  242. package/dist/collection/components/molecules/menu/menu.js +1 -0
  243. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  244. package/dist/collection/components/molecules/popover/popover.js +2 -2
  245. package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
  246. package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
  247. package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
  248. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +15 -1
  249. package/dist/collection/components/organism/form/form.js +1 -0
  250. package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
  251. package/dist/collection/components/other/typography/typography.js +1 -1
  252. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
  253. package/dist/collection/components/third-parts/rc-picker/date.js +572 -0
  254. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +366 -0
  255. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +258 -0
  256. package/dist/collection/components/third-parts/table/table-definations.js +42 -0
  257. package/dist/collection/components/third-parts/table/table.css +7169 -0
  258. package/dist/collection/components/third-parts/table/table.js +284 -0
  259. package/dist/collection/decorators/bcm-decorator.js +28 -0
  260. package/dist/collection/decorators/index.js +1 -0
  261. package/dist/collection/global/global.js +19 -5
  262. package/dist/collection/helper/color-helper.js +27 -1
  263. package/dist/collection/helper/generate.js +54 -4
  264. package/dist/collection/helper/popover-helper.js +13 -9
  265. package/dist/collection/helper/tooltip-helper.js +12 -4
  266. package/dist/collection/models/bcm.js +1 -0
  267. package/dist/collection/templates/index.js +2 -0
  268. package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
  269. package/dist/collection/templates/toolbar-template.js +15 -0
  270. package/dist/components/_commonjsHelpers.js +16 -1
  271. package/dist/components/avatar.js +93 -53
  272. package/dist/components/badge.js +2638 -46
  273. package/dist/components/bcm-chip-group.js +26 -6
  274. package/dist/components/bcm-date.d.ts +11 -0
  275. package/dist/components/bcm-date.js +161 -0
  276. package/dist/components/bcm-form-2.js +4 -1
  277. package/dist/components/bcm-form.js +1 -0
  278. package/dist/components/bcm-input-dropdown.d.ts +11 -0
  279. package/dist/components/bcm-input-dropdown.js +330 -0
  280. package/dist/components/bcm-items.js +1 -1
  281. package/dist/components/bcm-popover.js +14 -10
  282. package/dist/components/bcm-rc-picker.d.ts +11 -0
  283. package/dist/components/bcm-rc-picker.js +10 -0
  284. package/dist/components/bcm-tab-group.js +5 -1
  285. package/dist/components/bcm-tab-item-header.js +11 -26
  286. package/dist/components/bcm-table.js +111873 -41
  287. package/dist/components/bcm.js +1 -0
  288. package/dist/components/chip.js +4 -2
  289. package/dist/components/color-helper.js +27 -1
  290. package/dist/components/colors2.js +1 -1
  291. package/dist/components/datetime-picker.js +15 -1
  292. package/dist/components/generate.js +57 -7
  293. package/dist/components/icon.js +15 -3
  294. package/dist/components/index.d.ts +4 -1
  295. package/dist/components/index.js +17 -3
  296. package/dist/components/index3.js +5 -1
  297. package/dist/components/input.js +4 -4
  298. package/dist/components/linked.js +13 -1
  299. package/dist/components/menu.js +1 -0
  300. package/dist/components/raf.js +1594 -0
  301. package/dist/components/rc-overflow.js +32 -1557
  302. package/dist/components/rc-picker.js +13851 -0
  303. package/dist/components/tooltip-helper.js +12 -4
  304. package/dist/components/tooltip.js +1 -1
  305. package/dist/components/typography.js +1 -1
  306. package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-be0d4ec8.js} +16 -1
  307. package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +111635 -0
  308. package/dist/esm/{bcm-9f50af9c.js → bcm-ac17222c.js} +2 -1
  309. package/dist/esm/bcm-accordion.entry.js +5 -4
  310. package/dist/esm/bcm-alert.entry.js +9 -8
  311. package/dist/esm/bcm-attendance.entry.js +5 -4
  312. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  313. package/dist/esm/bcm-avatar_2.entry.js +2765 -0
  314. package/dist/esm/bcm-box.entry.js +1 -1
  315. package/dist/esm/bcm-breadcrumb.entry.js +6 -5
  316. package/dist/esm/bcm-button-group.entry.js +8 -7
  317. package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_8.entry.js} +434 -5439
  318. package/dist/esm/bcm-card.entry.js +11 -10
  319. package/dist/esm/bcm-checkbox-group.entry.js +13 -12
  320. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -7
  321. package/dist/esm/bcm-checkbox_2.entry.js +14 -13
  322. package/dist/esm/bcm-chip-group.entry.js +125 -0
  323. package/dist/esm/bcm-chip.entry.js +87 -0
  324. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  325. package/dist/esm/bcm-collapse.entry.js +6 -5
  326. package/dist/esm/bcm-color-input.entry.js +12 -11
  327. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  328. package/dist/esm/bcm-content.entry.js +1 -1
  329. package/dist/esm/bcm-date-picker.entry.js +9 -8
  330. package/dist/esm/bcm-date.entry.js +120 -0
  331. package/dist/esm/bcm-datetime-picker.entry.js +29 -14
  332. package/dist/esm/bcm-default.entry.js +5 -4
  333. package/dist/esm/bcm-drawer.entry.js +13 -12
  334. package/dist/esm/bcm-dropdown.entry.js +9 -8
  335. package/dist/esm/bcm-error-layout.entry.js +3 -3
  336. package/dist/esm/bcm-expansion-panel.entry.js +10 -9
  337. package/dist/esm/bcm-form-2.entry.js +12 -8
  338. package/dist/esm/bcm-form-group.entry.js +1 -1
  339. package/dist/esm/bcm-form.entry.js +485 -0
  340. package/dist/esm/bcm-input-custom.entry.js +6 -5
  341. package/dist/esm/bcm-item.entry.js +9 -8
  342. package/dist/esm/bcm-items.entry.js +8 -7
  343. package/dist/esm/bcm-link.entry.js +4 -4
  344. package/dist/esm/bcm-list_3.entry.js +2496 -0
  345. package/dist/esm/bcm-menu.entry.js +17 -15
  346. package/dist/esm/bcm-message.entry.js +3 -3
  347. package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
  348. package/dist/esm/bcm-modal-2-header.entry.js +12 -11
  349. package/dist/esm/bcm-modal-2.entry.js +13 -12
  350. package/dist/esm/bcm-modal.entry.js +9 -8
  351. package/dist/esm/bcm-notification.entry.js +3 -3
  352. package/dist/esm/bcm-old-input.entry.js +5 -5
  353. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  354. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  355. package/dist/esm/bcm-popconfirm-box.entry.js +11 -10
  356. package/dist/esm/bcm-popconfirm.entry.js +7 -6
  357. package/dist/esm/bcm-popover.entry.js +27 -22
  358. package/dist/esm/bcm-progress.entry.js +9 -8
  359. package/dist/esm/bcm-radio-group.entry.js +15 -14
  360. package/dist/esm/bcm-radio.entry.js +13 -12
  361. package/dist/esm/bcm-range.entry.js +8 -7
  362. package/dist/esm/bcm-rc-picker.entry.js +8146 -0
  363. package/dist/esm/bcm-result.entry.js +3 -3
  364. package/dist/esm/bcm-select-group.entry.js +3 -3
  365. package/dist/esm/bcm-select-option.entry.js +3 -3
  366. package/dist/esm/bcm-select.entry.js +6 -6
  367. package/dist/esm/bcm-skeleton.entry.js +5 -4
  368. package/dist/esm/bcm-step.entry.js +8 -7
  369. package/dist/esm/bcm-stepper.entry.js +15 -14
  370. package/dist/esm/bcm-switch.entry.js +10 -9
  371. package/dist/esm/bcm-tab-group.entry.js +17 -12
  372. package/dist/esm/bcm-tab-item-header.entry.js +24 -38
  373. package/dist/esm/bcm-tab-item.entry.js +12 -11
  374. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  375. package/dist/esm/bcm-tab.entry.js +3 -3
  376. package/dist/esm/bcm-table.entry.js +236 -38
  377. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  378. package/dist/esm/bcm-tabs.entry.js +4 -4
  379. package/dist/esm/bcm-tag.entry.js +9 -8
  380. package/dist/esm/bcm-text.entry.js +9 -9
  381. package/dist/esm/bcm-textarea.entry.js +11 -10
  382. package/dist/esm/bcm-time-picker.entry.js +9 -8
  383. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  384. package/dist/esm/bcm-timeline.entry.js +3 -3
  385. package/dist/esm/bcm-toast.entry.js +9 -8
  386. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  387. package/dist/esm/bromcom-ui.js +6 -4
  388. package/dist/esm/{caption-template-da16ba7b.js → caption-template-e973a48c.js} +2 -2
  389. package/dist/esm/{color-helper-e8ce23d7.js → color-helper-c4fa9ebc.js} +29 -3
  390. package/dist/esm/{colors-44c95e7e.js → colors-e1c31f79.js} +1 -1
  391. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  392. package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c52eaa.js} +1 -1
  393. package/dist/esm/{generate-a39b1045.js → generate-93b8bdf9.js} +56 -7
  394. package/dist/esm/global-d82f2bc7.js +25 -0
  395. package/dist/esm/{index-39133086.js → index-0615c2b8.js} +3 -1
  396. package/dist/esm/{index-93e36fdb.js → index-7e71bbc8.js} +1 -1
  397. package/dist/esm/index-a6d9d0af.js +541 -0
  398. package/dist/esm/{index-ed9652af.js → index-b84bc8c9.js} +1 -1
  399. package/dist/esm/index-c4568336.js +1594 -0
  400. package/dist/esm/{input-template-e1df6efd.js → input-template-f7c67bc9.js} +4 -4
  401. package/dist/esm/{is-load-decorator-bc14ec4b.js → is-load-decorator-6784aa87.js} +1 -1
  402. package/dist/esm/{json-parse-decarator-b1ceb8c8.js → json-parse-decarator-1e5367cd.js} +2 -2
  403. package/dist/esm/{label-template-d74fe788.js → label-template-f156f33f.js} +4 -4
  404. package/dist/esm/loader.js +6 -4
  405. package/dist/esm/moment-24231dde.js +5686 -0
  406. package/dist/esm/{number-helper-fa8e8000.js → number-helper-ff29314e.js} +1 -1
  407. package/dist/esm/old-bcm-popover-box.entry.js +13 -12
  408. package/dist/esm/old-bcm-popover.entry.js +7 -6
  409. package/dist/esm/package-64966ec6.js +7 -0
  410. package/dist/esm/{popover-placement-78f86f15.js → popover-placement-018109c4.js} +1 -1
  411. package/dist/esm/{slot-template-5b2db362.js → slot-template-46035685.js} +2 -2
  412. package/dist/esm/{stepper-states-44849ee8.js → stepper-states-7c75d904.js} +3 -3
  413. package/dist/esm/{string-helper-6bd24967.js → string-helper-4a28f775.js} +2 -2
  414. package/dist/esm/{tooltip-helper-10b64c23.js → tooltip-helper-6154996e.js} +21 -13
  415. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  416. package/dist/esm/{validators-dd70be40.js → validators-2956054d.js} +1 -1
  417. package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
  418. package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
  419. package/dist/types/components/atoms/badge/badge.d.ts +3 -7
  420. package/dist/types/components/atoms/badge/badge.style.d.ts +153 -0
  421. package/dist/types/components/atoms/chip/chip-group.d.ts +4 -0
  422. package/dist/types/components/atoms/icon/icon.d.ts +1 -0
  423. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +55 -0
  424. package/dist/types/components/molecules/linked/linked.d.ts +1 -0
  425. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  426. package/dist/types/components/third-parts/rc-picker/date.d.ts +46 -0
  427. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +20 -0
  428. package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
  429. package/dist/types/components/third-parts/table/table.d.ts +37 -0
  430. package/dist/types/components.d.ts +183 -16
  431. package/dist/types/decorators/bcm-decorator.d.ts +2 -0
  432. package/dist/types/decorators/index.d.ts +1 -0
  433. package/dist/types/helper/color-helper.d.ts +22 -2
  434. package/dist/types/helper/generate.d.ts +21 -1
  435. package/dist/types/helper/popover-helper.d.ts +0 -5
  436. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  437. package/dist/types/models/bcm.d.ts +9 -1
  438. package/dist/types/templates/index.d.ts +2 -0
  439. package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
  440. package/dist/types/templates/toolbar-template.d.ts +13 -0
  441. package/package.json +14 -7
  442. package/dist/bromcom-ui/p-02afc93f.entry.js +0 -5
  443. package/dist/bromcom-ui/p-0906c9b4.entry.js +0 -5
  444. package/dist/bromcom-ui/p-0d4a552d.entry.js +0 -5
  445. package/dist/bromcom-ui/p-0ee4e283.entry.js +0 -5
  446. package/dist/bromcom-ui/p-0fdbbbe8.entry.js +0 -5
  447. package/dist/bromcom-ui/p-14378828.entry.js +0 -5
  448. package/dist/bromcom-ui/p-15fa3329.entry.js +0 -5
  449. package/dist/bromcom-ui/p-1c5a2111.entry.js +0 -5
  450. package/dist/bromcom-ui/p-20ac20d4.entry.js +0 -5
  451. package/dist/bromcom-ui/p-236def30.entry.js +0 -5
  452. package/dist/bromcom-ui/p-24a733ff.entry.js +0 -5
  453. package/dist/bromcom-ui/p-24aefda6.js +0 -5
  454. package/dist/bromcom-ui/p-2cb4a196.entry.js +0 -5
  455. package/dist/bromcom-ui/p-2ea24a6e.js +0 -5
  456. package/dist/bromcom-ui/p-334e3147.entry.js +0 -5
  457. package/dist/bromcom-ui/p-344a4674.entry.js +0 -5
  458. package/dist/bromcom-ui/p-3ad545f0.entry.js +0 -5
  459. package/dist/bromcom-ui/p-40a5e4fc.entry.js +0 -5
  460. package/dist/bromcom-ui/p-440afdfa.entry.js +0 -5
  461. package/dist/bromcom-ui/p-4b34b3f9.entry.js +0 -5
  462. package/dist/bromcom-ui/p-55001c80.entry.js +0 -5
  463. package/dist/bromcom-ui/p-56896e3a.entry.js +0 -5
  464. package/dist/bromcom-ui/p-5f288af5.entry.js +0 -5
  465. package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
  466. package/dist/bromcom-ui/p-70b428e8.entry.js +0 -5
  467. package/dist/bromcom-ui/p-72b7fda0.entry.js +0 -5
  468. package/dist/bromcom-ui/p-7658ec26.entry.js +0 -5
  469. package/dist/bromcom-ui/p-772a214f.js +0 -5
  470. package/dist/bromcom-ui/p-79fd816c.js +0 -5
  471. package/dist/bromcom-ui/p-80a43b79.js +0 -5
  472. package/dist/bromcom-ui/p-843905c8.js +0 -5
  473. package/dist/bromcom-ui/p-8864e6af.entry.js +0 -5
  474. package/dist/bromcom-ui/p-89b21290.entry.js +0 -5
  475. package/dist/bromcom-ui/p-89f7a5c7.entry.js +0 -5
  476. package/dist/bromcom-ui/p-9b10d955.entry.js +0 -5
  477. package/dist/bromcom-ui/p-9c7e9b5d.entry.js +0 -5
  478. package/dist/bromcom-ui/p-9eb2a75d.entry.js +0 -5
  479. package/dist/bromcom-ui/p-a0a3fd94.entry.js +0 -5
  480. package/dist/bromcom-ui/p-a2046742.entry.js +0 -5
  481. package/dist/bromcom-ui/p-a49ded35.entry.js +0 -5
  482. package/dist/bromcom-ui/p-a97ee69d.entry.js +0 -19
  483. package/dist/bromcom-ui/p-ab55def1.entry.js +0 -5
  484. package/dist/bromcom-ui/p-be6d0712.entry.js +0 -5
  485. package/dist/bromcom-ui/p-c9b10de5.entry.js +0 -5
  486. package/dist/bromcom-ui/p-cad8f786.entry.js +0 -5
  487. package/dist/bromcom-ui/p-cf7af1fc.entry.js +0 -5
  488. package/dist/bromcom-ui/p-d011a407.entry.js +0 -5
  489. package/dist/bromcom-ui/p-d1598dd5.entry.js +0 -5
  490. package/dist/bromcom-ui/p-d3cb8d25.js +0 -5
  491. package/dist/bromcom-ui/p-d65a1e21.js +0 -11
  492. package/dist/bromcom-ui/p-da1055cb.js +0 -6
  493. package/dist/bromcom-ui/p-dc19c6f4.entry.js +0 -5
  494. package/dist/bromcom-ui/p-dcb2ae7f.entry.js +0 -5
  495. package/dist/bromcom-ui/p-dce2079e.entry.js +0 -5
  496. package/dist/bromcom-ui/p-e008411a.entry.js +0 -5
  497. package/dist/bromcom-ui/p-e3cafc0d.entry.js +0 -5
  498. package/dist/bromcom-ui/p-e606c42b.entry.js +0 -5
  499. package/dist/bromcom-ui/p-e66821e5.entry.js +0 -5
  500. package/dist/bromcom-ui/p-e6ce5ec8.entry.js +0 -5
  501. package/dist/cjs/global-b0d21446.js +0 -15
  502. package/dist/collection/components/atoms/avatar/avatar.css +0 -198
  503. package/dist/collection/components/atoms/badge/badge.css +0 -231
  504. package/dist/collection/components/other/data-table/table.js +0 -88
  505. package/dist/esm/global-4fad925b.js +0 -13
  506. package/dist/types/components/other/data-table/table.d.ts +0 -8
@@ -0,0 +1,284 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { Generate } from "@bcm/helpers";
6
+ import { ToolbarTemplate } from "@bcm/template";
7
+ import { Host, h } from "@stencil/core";
8
+ import { Grid } from "ag-grid-enterprise";
9
+ import cs from "classnames";
10
+ import snq from "snq";
11
+ import { ExportTypes, tableOptions } from "./table-definations";
12
+ export class BcmTable {
13
+ constructor() {
14
+ this._id = Generate.UID();
15
+ this.gridOptions = {};
16
+ this.extensions = "csv";
17
+ this.height = "250px";
18
+ this.showToolbar = false;
19
+ this.showFooter = false;
20
+ this.toolBarConfig = {
21
+ showNewButton: false,
22
+ showExportButton: true,
23
+ showColumnButton: true,
24
+ showFilterButton: false,
25
+ showSearchInput: true,
26
+ };
27
+ this.agGrid = null;
28
+ this.columns = undefined;
29
+ this.fileTypes = [];
30
+ this.isReady = false;
31
+ this.footerOptions = {
32
+ statusBar: {
33
+ statusPanels: [
34
+ { statusPanel: "agTotalAndFilteredRowCountComponent", align: "left" },
35
+ { statusPanel: "agTotalRowCountComponent", align: "right" },
36
+ { statusPanel: "agFilteredRowCountComponent" },
37
+ { statusPanel: "agSelectedRowCountComponent" },
38
+ { statusPanel: "agAggregationComponent" },
39
+ ],
40
+ },
41
+ };
42
+ }
43
+ get grid() {
44
+ var _a;
45
+ return (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridOptions;
46
+ }
47
+ componentDidLoad() {
48
+ this.initGrid();
49
+ }
50
+ initGrid() {
51
+ var _a;
52
+ const agGridDiv = this.el.querySelector(`#bcm-table-${this._id}`);
53
+ if (!agGridDiv)
54
+ return;
55
+ const options = Object.assign(Object.assign(Object.assign({}, tableOptions), Object.assign({}, (this.showFooter && this.footerOptions))), this.gridOptions);
56
+ (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.destroy();
57
+ this.agGrid = new Grid(agGridDiv, Object.assign(Object.assign({}, options), { onGridReady: params => this.initToolbar(params) }));
58
+ }
59
+ initToolbar(params) {
60
+ this.columns = snq(() => { var _a; return (_a = params === null || params === void 0 ? void 0 : params.api) === null || _a === void 0 ? void 0 : _a.getColumnDefs(); }, [])
61
+ .filter(Boolean)
62
+ .filter((col) => !col.hide)
63
+ .map((column) => {
64
+ var _a, _b, _c, _d, _e;
65
+ return ({
66
+ id: column.colId,
67
+ type: (_c = (_b = (_a = column === null || column === void 0 ? void 0 : column.filterParams) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== null && _c !== void 0 ? _c : "text",
68
+ disabled: (_e = (_d = column === null || column === void 0 ? void 0 : column.filterParams) === null || _d === void 0 ? void 0 : _d.disabledColumn) !== null && _e !== void 0 ? _e : false,
69
+ });
70
+ });
71
+ this.fileTypes = snq(() => {
72
+ var _a;
73
+ return (_a = this.extensions
74
+ .toLowerCase()
75
+ .split(",")) === null || _a === void 0 ? void 0 : _a.map((extention) => extention.trim()).map((extention) => ExportTypes[extention]);
76
+ }, []);
77
+ this.isReady = true;
78
+ }
79
+ handleColumnVisible({ checked, id }) {
80
+ if (!id)
81
+ return;
82
+ this.grid.columnApi.setColumnVisible(id, checked);
83
+ }
84
+ handleFileType({ text }) {
85
+ if (!text)
86
+ return;
87
+ switch (text.toLowerCase()) {
88
+ case "csv":
89
+ this.grid.api.exportDataAsCsv();
90
+ break;
91
+ case "excel":
92
+ this.grid.api.exportDataAsExcel();
93
+ break;
94
+ case "pdf":
95
+ alert("PDF export is not supported yet");
96
+ break;
97
+ }
98
+ }
99
+ handleSearch(text) {
100
+ if (text === undefined)
101
+ return;
102
+ this.grid.api.setQuickFilter(text);
103
+ if (this.grid.api.getDisplayedRowCount() === 0) {
104
+ this.grid.api.showNoRowsOverlay();
105
+ }
106
+ else {
107
+ this.grid.api.hideOverlay();
108
+ }
109
+ }
110
+ watchHandler(newValue, oldValue) {
111
+ if (newValue !== oldValue) {
112
+ this.initGrid();
113
+ }
114
+ }
115
+ render() {
116
+ const { _id, height, toolBarConfig, columns } = this;
117
+ return (h(Host, null, h("div", { class: cs("bcm-ui-element bcm-ui-table bcm-table", "tw-flex tw-w-full tw-flex-col tw-gap-2", {
118
+ "tw-hidden": !this.isReady,
119
+ }) }, this.showToolbar && (h(ToolbarTemplate, { tableId: _id, config: toolBarConfig, columns: columns, onHideColumn: e => this.handleColumnVisible(e), onSearch: e => this.handleSearch(e), onSelectExportType: e => this.handleFileType(e), extensions: this.fileTypes })), h("div", { id: `bcm-table-${this._id}`, class: "ag-theme-bcm", style: { height } }))));
120
+ }
121
+ static get is() { return "bcm-table"; }
122
+ static get originalStyleUrls() {
123
+ return {
124
+ "$": ["table.scss"]
125
+ };
126
+ }
127
+ static get styleUrls() {
128
+ return {
129
+ "$": ["table.css"]
130
+ };
131
+ }
132
+ static get properties() {
133
+ return {
134
+ "_id": {
135
+ "type": "string",
136
+ "mutable": true,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": ""
147
+ },
148
+ "attribute": "_id",
149
+ "reflect": true,
150
+ "defaultValue": "Generate.UID()"
151
+ },
152
+ "gridOptions": {
153
+ "type": "unknown",
154
+ "mutable": true,
155
+ "complexType": {
156
+ "original": "GridOptions",
157
+ "resolved": "GridOptions<any>",
158
+ "references": {
159
+ "GridOptions": {
160
+ "location": "import",
161
+ "path": "ag-grid-enterprise"
162
+ }
163
+ }
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "defaultValue": "{}"
172
+ },
173
+ "extensions": {
174
+ "type": "string",
175
+ "mutable": true,
176
+ "complexType": {
177
+ "original": "string",
178
+ "resolved": "string",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": ""
186
+ },
187
+ "attribute": "extensions",
188
+ "reflect": true,
189
+ "defaultValue": "\"csv\""
190
+ },
191
+ "height": {
192
+ "type": "string",
193
+ "mutable": true,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": ""
204
+ },
205
+ "attribute": "height",
206
+ "reflect": true,
207
+ "defaultValue": "\"250px\""
208
+ },
209
+ "showToolbar": {
210
+ "type": "boolean",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "boolean",
214
+ "resolved": "boolean",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": false,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": ""
222
+ },
223
+ "attribute": "show-toolbar",
224
+ "reflect": true,
225
+ "defaultValue": "false"
226
+ },
227
+ "showFooter": {
228
+ "type": "boolean",
229
+ "mutable": false,
230
+ "complexType": {
231
+ "original": "boolean",
232
+ "resolved": "boolean",
233
+ "references": {}
234
+ },
235
+ "required": false,
236
+ "optional": false,
237
+ "docs": {
238
+ "tags": [],
239
+ "text": ""
240
+ },
241
+ "attribute": "show-footer",
242
+ "reflect": true,
243
+ "defaultValue": "false"
244
+ },
245
+ "toolBarConfig": {
246
+ "type": "unknown",
247
+ "mutable": true,
248
+ "complexType": {
249
+ "original": "Bcm.ToolBarButtonProps",
250
+ "resolved": "ToolBarButtonProps",
251
+ "references": {
252
+ "Bcm": {
253
+ "location": "import",
254
+ "path": "@bcm/model"
255
+ }
256
+ }
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "defaultValue": "{\n showNewButton: false,\n showExportButton: true,\n showColumnButton: true,\n showFilterButton: false,\n showSearchInput: true,\n }"
265
+ }
266
+ };
267
+ }
268
+ static get states() {
269
+ return {
270
+ "agGrid": {},
271
+ "columns": {},
272
+ "fileTypes": {},
273
+ "isReady": {},
274
+ "footerOptions": {}
275
+ };
276
+ }
277
+ static get elementRef() { return "el"; }
278
+ static get watchers() {
279
+ return [{
280
+ "propName": "gridOptions",
281
+ "methodName": "watchHandler"
282
+ }];
283
+ }
284
+ }
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { getElement } from "@stencil/core";
6
+ export function BcmComponent() {
7
+ return (target, _propertyKey) => {
8
+ const originalComponentDidLoad = target.componentWillRender;
9
+ target.componentWillRender = function () {
10
+ const hostElement = getElement(this); //
11
+ const isStopChange = hostElement.hasAttribute("stop-change");
12
+ if (isStopChange) {
13
+ hostElement.addEventListener("bcm-change", (event) => {
14
+ event.stopImmediatePropagation();
15
+ }, {
16
+ capture: true,
17
+ once: true,
18
+ });
19
+ }
20
+ else {
21
+ hostElement.removeAttribute("stop-change");
22
+ }
23
+ if (originalComponentDidLoad) {
24
+ originalComponentDidLoad.call(this);
25
+ }
26
+ };
27
+ };
28
+ }
@@ -6,3 +6,4 @@ export * from './id-decorator';
6
6
  export * from './is-load-decorator';
7
7
  export * from './json-parse-decarator';
8
8
  export * from './property-decorators';
9
+ export * from './bcm-decorator';
@@ -1,23 +1,37 @@
1
+ import { version } from "../../package.json";
2
+ import { LicenseManager } from "ag-grid-enterprise";
3
+ import { Env } from "@stencil/core";
4
+
5
+ window.bcm = (function () {
6
+ return {
7
+ version: version,
8
+ };
9
+ })();
10
+
1
11
  function addHeadScript(obj) {
2
12
  const head = document.head;
3
- const script = document.createElement('script');
13
+ const script = document.createElement("script");
4
14
  Object.keys(obj).forEach(key => {
5
15
  script[key] = obj[key];
6
16
  });
7
17
  head.appendChild(script);
8
18
  }
9
19
 
10
- addHeadScript({ src: 'https://kit.fontawesome.com/5e86bea963.js', crossOrigin: 'anonymous' });
20
+ addHeadScript({ src: "https://kit.fontawesome.com/5e86bea963.js", crossOrigin: "anonymous" });
21
+
22
+ (() => {
23
+ LicenseManager.setLicenseKey(Env["AG_GRID_LICENSE_KEY"]);
24
+ })();
11
25
 
12
26
  async function fetchJSON(url = null) {
13
27
  const response = await fetch(url);
14
28
  return await response.json();
15
29
  }
16
30
 
17
- async function componentInit(component, componentId, componentContainerId = '0') {
31
+ async function componentInit(component, componentId, componentContainerId = "0") {
18
32
  await removeComponent(componentId);
19
33
  const element = await createComponent(component, componentId, componentContainerId);
20
- if (component.substring(0, 4) === 'bcm-') {
34
+ if (component.substring(0, 4) === "bcm-") {
21
35
  await customElements.whenDefined(component);
22
36
  await element.componentOnReady();
23
37
  }
@@ -27,7 +41,7 @@ async function componentInit(component, componentId, componentContainerId = '0')
27
41
  async function createComponent(tag, id, target) {
28
42
  var elem = document.createElement(tag);
29
43
  elem.id = id;
30
- if (target !== '0') {
44
+ if (target !== "0") {
31
45
  document.getElementById(target).appendChild(elem);
32
46
  }
33
47
 
@@ -6,6 +6,26 @@ import { ColorPalette } from '../global/variables/colors';
6
6
  import { extractColor } from '../utils/utils';
7
7
  import tailwindColor from 'tailwindcss/colors';
8
8
  export class ColorHelper {
9
+ /**
10
+ * @param color - color string in format of `colorName-tone` or `colorName` (default tone is 600)
11
+ * @return `{ tone: number, colorName: string }`
12
+ * @description
13
+ * Parse color string to get color name and tone
14
+ * @example
15
+ * parseColor("red-500") // { tone: 500, colorName: "red" }
16
+ * parseColor("red") // { tone: 600, colorName: "red" }
17
+ * parseColor(null) // { tone: null, colorName: null }
18
+ */
19
+ static parseColor(color, defaultTone = 600) {
20
+ if (!color)
21
+ return { tone: null, colorName: null };
22
+ const [colorName, tone] = color.split("-");
23
+ const parsedTone = tone ? parseInt(tone) : defaultTone;
24
+ return {
25
+ tone: parsedTone,
26
+ colorName,
27
+ };
28
+ }
9
29
  }
10
30
  ColorHelper.isHex = (str) => /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(str);
11
31
  ColorHelper.isRgb = (str) => /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(str);
@@ -42,7 +62,7 @@ ColorHelper.reverseColor = (color) => {
42
62
  const g = parseInt(hexColor.substring(3, 5), 16);
43
63
  const b = parseInt(hexColor.substring(5, 7), 16);
44
64
  const yiq = (r * 299 + g * 587 + b * 114) / 1000;
45
- return yiq >= 200 ? '#475569' : '#f8fafc';
65
+ return yiq >= 200 ? '#334155' : '#fff';
46
66
  }
47
67
  };
48
68
  ColorHelper.dsColor = (color) => 'var(--bcm-new-ds-color-' + color + ')';
@@ -79,3 +99,9 @@ ColorHelper.twColor = (colorName, tone = '500') => {
79
99
  return 'blue-500';
80
100
  };
81
101
  ColorHelper.twColorReverse = (color) => ColorHelper.reverseColor(ColorHelper.getTwColorToHex(color));
102
+ /**
103
+ * @param object
104
+ * @return string
105
+ * @description Convert style object to string
106
+ */
107
+ ColorHelper.generateStyleString = (obj) => Object.keys(obj).reduce((acc, key) => { return `${acc}${key}:${obj[key]};`; }, "");
@@ -33,15 +33,65 @@ if (isAllowedDomain()) {
33
33
  }
34
34
  })();
35
35
  export class Generate {
36
- static getTwColor(color, variable = "--bcm-color-default") {
36
+ /**
37
+ const dc = Generate.getTwColor({
38
+ color: "blue",
39
+ tones: {
40
+ 200: ["text"],
41
+ 700: ["bg", "border"],
42
+ 800: ["bg-hover", "border-hover"],
43
+ },
44
+ variable: "--bcm-avatar",
45
+ });
46
+
47
+ return {
48
+ --bcm-avatar-text: --tw-blue-200;
49
+ --bcm-avatar-bg: --tw-blue-700;
50
+ --bcm-avatar-bg-hover: --tw-blue-800;
51
+ --bcm-avatar-border: --tw-blue-700;
52
+ --bcm-avatar-border-hover: --tw-blue-800;
53
+ }
54
+
55
+ */
56
+ static getTwColor(args) {
57
+ const { color, variable, tones } = (args = Object.assign({
58
+ variable: "--bcm-color-default",
59
+ defaultTone: "600",
60
+ tones: {
61
+ 50: {},
62
+ 100: {},
63
+ 200: {},
64
+ 300: {},
65
+ 400: {},
66
+ 500: {},
67
+ 600: {},
68
+ 700: {},
69
+ 800: {},
70
+ 900: {},
71
+ 950: {},
72
+ },
73
+ }, args));
37
74
  if (!color || !colors[color]) {
38
75
  return false;
39
76
  }
40
- const colorObj = colors[color];
41
77
  const result = {};
42
- for (const [key, value] of Object.entries(colorObj)) {
43
- result[`${variable}-${key}`] = value;
78
+ if (typeof colors[color] === "string") {
79
+ result[variable] = colors[color];
80
+ return result;
44
81
  }
82
+ const toneList = Array.isArray(tones) ? tones : Object.keys(tones);
83
+ toneList.forEach(tone => {
84
+ if (colors[color][tone]) {
85
+ if (Array.isArray(tones[tone])) {
86
+ tones[tone].forEach(item => {
87
+ result[`${variable}-${item}`] = colors[color][tone];
88
+ });
89
+ }
90
+ else {
91
+ result[`${variable}-${tone}`] = colors[color][tone];
92
+ }
93
+ }
94
+ });
45
95
  return result;
46
96
  }
47
97
  }
@@ -14,25 +14,29 @@ export class Popover {
14
14
  }
15
15
  this.removeListener();
16
16
  };
17
- this.bgColor = () => ColorHelper.twColor(this.color, 700);
18
- this.exepcitonColors = {
19
- white: "slate-300",
20
- black: "slate-700",
21
- };
22
17
  this.target = () => document.getElementById(this.targetId);
23
18
  this.init = () => {
24
- const inner = `<div class="tw-z-[1] tw-rounded tw-py-2 tw-bg-${this.bgColor()}">
19
+ const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
20
+ const dc = Generate.getTwColor({
21
+ color: colorName,
22
+ tones: {
23
+ [tone]: ["bg"],
24
+ },
25
+ variable: "--bcm-popover",
26
+ });
27
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-popover-bg"] && { "--bcm-popover-text": ColorHelper.reverseColor(dc["--bcm-popover-bg"]) }));
28
+ const inner = `<div class="tw-z-[1] tw-rounded tw-py-2">
25
29
  ${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ""}
26
30
  ${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ""}
27
31
  </div>`;
28
32
  this.el = Generate.createElement("div", {
29
33
  "id": `${this.targetId}-popover-box`,
30
34
  "class": `
31
- tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
35
+ 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
32
36
  tw-shadow`,
33
37
  "role": "popover",
34
38
  "aria-hidden": "true",
35
- "style": `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
39
+ "style": ColorHelper.generateStyleString(style),
36
40
  "innerHTML": inner,
37
41
  });
38
42
  };
@@ -88,7 +92,7 @@ export class Popover {
88
92
  placement: this.placement,
89
93
  offset: 8,
90
94
  arrow: true,
91
- arrowColor: `tw-bg-${this.bgColor()}`,
95
+ arrowColor: `tw-bg-[--bcm-popover-bg]`,
92
96
  });
93
97
  }
94
98
  };
@@ -15,7 +15,6 @@ export class Tooltip {
15
15
  }
16
16
  this.removeListener();
17
17
  };
18
- this.bgColor = () => ColorHelper.twColor(this.color, 700);
19
18
  this.target = () => document.getElementById(this.targetId);
20
19
  this.sizeClass = () => {
21
20
  switch (this.size) {
@@ -30,13 +29,22 @@ export class Tooltip {
30
29
  }
31
30
  };
32
31
  this.init = () => {
32
+ const { tone, colorName } = ColorHelper.parseColor(this.color, 700);
33
+ const dc = Generate.getTwColor({
34
+ color: colorName,
35
+ tones: {
36
+ [tone]: ["bg"],
37
+ },
38
+ variable: "--bcm-tooltip",
39
+ });
40
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-tooltip-bg"] && { "--bcm-tooltip-text": ColorHelper.reverseColor(dc["--bcm-tooltip-bg"]) }));
33
41
  this.el = Generate.createElement("div", {
34
42
  "id": `${this.targetId}-tooltip-box`,
35
43
  "class": `
36
- tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-${this.bgColor()} tw-text-white ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,
44
+ tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-xs tw-py-1 tw-px-2 tw-rounded tw-bg-[--bcm-tooltip-bg] tw-text-[--bcm-tooltip-text] ${this.sizeClass()} tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300`,
37
45
  "role": "tooltip",
38
46
  "aria-hidden": "true",
39
- "style": `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
47
+ "style": ColorHelper.generateStyleString(style),
40
48
  "innerHTML": StringHelper.trim(this.message),
41
49
  });
42
50
  };
@@ -92,7 +100,7 @@ export class Tooltip {
92
100
  placement: this.placement,
93
101
  offset: 8,
94
102
  arrow: true,
95
- arrowColor: `tw-bg-${this.bgColor()}`,
103
+ arrowColor: `tw-bg-[--bcm-tooltip-bg]`,
96
104
  });
97
105
  }
98
106
  };
@@ -456,6 +456,7 @@ export var Bcm;
456
456
  TriggerType["hover"] = "hover";
457
457
  TriggerType["click"] = "click";
458
458
  TriggerType["focus"] = "focus";
459
+ TriggerType["custom"] = "custom";
459
460
  })(TriggerType = Bcm.TriggerType || (Bcm.TriggerType = {}));
460
461
  let ListType;
461
462
  (function (ListType) {
@@ -15,3 +15,5 @@ export * from './list-template';
15
15
  export * from './slot-template';
16
16
  export * from './step-template';
17
17
  export * from './tag-template';
18
+ export * from './toolbar-template';
19
+ export * from './toolbar-hamburger-template';
@@ -0,0 +1,14 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { StringHelper } from "@bcm/helpers";
6
+ import { Fragment, h } from "@stencil/core";
7
+ export const ToolbarHamburgerTemplate = ({ hamburgerMenuId, config, column, extensions, onHideColumn, onSelectExportType }) => {
8
+ const { showColumnButton, showExportButton, showNewButton } = config;
9
+ return (h(Fragment, null, h("bcm-linked", { class: "lg:tw-hidden md:tw-hidden", "target-id": hamburgerMenuId, "main-linked": true }, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[180px] tw-flex-col tw-gap-2 tw-p-4" }, showNewButton && (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", null, "New")))), showColumnButton && (h("bcm-item", { id: hamburgerMenuId + "-hamburger-linked", color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", { class: "tw-mr-2" }, "Add Column"), h("i", { class: "fas fa-chevron-right" })))), showExportButton && (h("bcm-item", { id: hamburgerMenuId + "-hamburger-extentions", color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", { class: "tw-mr-2" }, "Exports"), h("i", { class: "fas fa-chevron-right" })))))), h("bcm-linked", { trigger: "hover", "target-id": hamburgerMenuId + "-hamburger-linked", placement: "left-start", "hide-delay": "200" }, h(Fragment, null, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, column === null || column === void 0 ? void 0 : column.map(col => {
10
+ return (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-5 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1" }, h("span", null, StringHelper.capitalize(col.id)), h("bcm-switch", { disabled: col.disabled, accessKey: col.id, id: col.id, class: "tw-mt-2", "no-caption": true, checked: true, "onBcm-change": e => onHideColumn({ checked: e.detail, id: col.id }) }))));
11
+ })))), h("bcm-linked", { trigger: "hover", "target-id": hamburgerMenuId + "-hamburger-extentions", placement: "left-start", "hide-delay": "200" }, h(Fragment, null, h("div", { class: "tw-shadow-custom tw-flex tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, extensions === null || extensions === void 0 ? void 0 : extensions.map(ext => {
12
+ return (h("div", { class: "tw-flex tw-w-full tw-flex-1 tw-cursor-pointer tw-flex-row tw-items-center tw-justify-start tw-gap-2 tw-rounded tw-bg-white tw-px-3 tw-py-[5px] tw-font-sans tw-text-size-4 tw-font-medium tw-antialiased hover:tw-bg-slate-100", onClick: () => onSelectExportType(ext) }, h("span", null, h("i", { class: "tw-text-size-5 " + ext.icon })), h("span", null, ext.text)));
13
+ }))))));
14
+ };
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ import { StringHelper } from "@bcm/helpers";
6
+ import { Fragment, h } from "@stencil/core";
7
+ import { ToolbarHamburgerTemplate } from "./toolbar-hamburger-template";
8
+ export const ToolbarTemplate = ({ columns, config, extensions, tableId, onHideColumn, onSearch, onSelectExportType }) => {
9
+ const { showColumnButton, showExportButton, showNewButton, showFilterButton, showSearchInput } = config;
10
+ return (h("div", { class: "tw-flex tw-w-full tw-flex-row tw-items-center tw-justify-between" }, h("div", { class: "tw-flex tw-flex-row tw-items-center tw-justify-start tw-gap-2" }, h("slot", { name: "left" }), showFilterButton && (h("bcm-dropdown", { kind: "ghost" }, h("bcm-icon", { icon: "far fa-filter" }), "Filter", h("bcm-badge", { color: "blue", size: "small", value: "1" }, "1"))), showSearchInput && h("bcm-input", { class: "!tw-mb-0", placeholder: "Search", type: "search", "no-caption": true, "onBcm-input": e => onSearch(e.detail) })), h("div", null), h("div", { class: "tw-flex tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-gap-2", id: "test" }, h("slot", { name: "right" }), showNewButton && h("bcm-button", { icon: "fas fa-plus" }, "New"), showColumnButton && (h("section", { class: "tw-hidden lg:tw-block md:tw-block" }, h("bcm-dropdown", { kind: "ghost", placement: "bottom-end" }, h("bcm-icon", { icon: "far fa-plus" }), "Add Column", h(Fragment, null, h("bcm-content", { class: "tw-hidden lg:tw-block md:tw-block" }, h("div", { class: "tw-shadow-custom tw-w-full tw-min-w-[256px] tw-flex-col tw-gap-2 tw-p-4" }, columns === null || columns === void 0 ? void 0 : columns.map(col => {
11
+ return (h("bcm-item", { color: "white" }, h("div", { class: "tw-flex tw-h-4 tw-w-full tw-flex-1 tw-items-center tw-justify-between tw-gap-1 tw-font-medium" }, h("span", null, StringHelper.capitalize(col.id)), h("bcm-switch", { class: "!tw-mt-2", disabled: col.disabled, "onBcm-change": e => onHideColumn({ checked: e.detail, id: col.id }), accessKey: col.id, id: col.id, "no-caption": true, checked: true }))));
12
+ }))))))), showExportButton && (h("section", { class: "tw-hidden lg:tw-block md:tw-block" }, (extensions === null || extensions === void 0 ? void 0 : extensions.length) > 1 && (h("bcm-dropdown", { id: tableId + "extention-content", selectable: false, kind: "ghost", class: "!tw-font-medium" }, "Export As", h("bcm-content", { class: "tw-hidden lg:tw-block md:tw-block" }, h("div", { class: "tw-shadow-custom tw-flex tw-w-full tw-min-w-[200px] tw-flex-col tw-gap-2 tw-p-4" }, extensions === null || extensions === void 0 ? void 0 : extensions.map(ext => {
13
+ return (h("div", { class: "tw-flex tw-w-full tw-flex-1 tw-cursor-pointer tw-flex-row tw-items-center tw-justify-start tw-gap-2 tw-rounded tw-bg-white tw-px-3 tw-py-[5px] tw-font-sans tw-text-size-4 tw-font-medium tw-antialiased hover:tw-bg-slate-100", onClick: () => onSelectExportType(ext) }, h("span", null, h("i", { class: "tw-text-size-5 " + ext.icon })), h("span", null, ext.text)));
14
+ }))))), (extensions === null || extensions === void 0 ? void 0 : extensions.length) == 1 && (h("bcm-button", { outline: true, onClick: () => onSelectExportType(extensions[0]) }, h("img", { src: "assets/" + extensions[0].path }), " Export as ", extensions[0].text))))), h("bcm-button", { outline: true, id: tableId + "-hamburger-menu", class: "sm:tw-block lg:tw-hidden md:tw-hidden", icon: "fas fa-bars" }), h(ToolbarHamburgerTemplate, { hamburgerMenuId: tableId + "-hamburger-menu", config: config, column: columns, extensions: extensions, onHideColumn: onHideColumn, onSelectExportType: onSelectExportType })));
15
+ };
@@ -18,8 +18,23 @@ function createCommonjsModule(fn, basedir, module) {
18
18
  }, fn(module, module.exports), module.exports;
19
19
  }
20
20
 
21
+ function getAugmentedNamespace(n) {
22
+ if (n.__esModule) return n;
23
+ var a = Object.defineProperty({}, '__esModule', {value: true});
24
+ Object.keys(n).forEach(function (k) {
25
+ var d = Object.getOwnPropertyDescriptor(n, k);
26
+ Object.defineProperty(a, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () {
29
+ return n[k];
30
+ }
31
+ });
32
+ });
33
+ return a;
34
+ }
35
+
21
36
  function commonjsRequire () {
22
37
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
23
38
  }
24
39
 
25
- export { commonjsGlobal as a, createCommonjsModule as c, getDefaultExportFromCjs as g };
40
+ export { commonjsGlobal as a, getDefaultExportFromCjs as b, createCommonjsModule as c, getAugmentedNamespace as g };