@cashub/ui-elv 1.0.2 → 1.0.3

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 (309) hide show
  1. package/datetimePicker/index.js +2 -37
  2. package/esm/Tab/Tab.js +21 -0
  3. package/esm/Tab/TabList.js +160 -0
  4. package/esm/Tab/TabPanel.js +42 -0
  5. package/esm/Tab/TabTab.js +98 -0
  6. package/esm/Tab/index.js +23 -0
  7. package/esm/Tab/subComponent/TabContext.js +3 -0
  8. package/esm/Tab/subComponent/TabListV2.js +18 -0
  9. package/esm/Tab/subComponent/TabPanelV2.js +45 -0
  10. package/esm/Tab/subComponent/TabTabV2.js +56 -0
  11. package/esm/VerticalTab/TabList.js +20 -0
  12. package/esm/VerticalTab/TabPanel.js +45 -0
  13. package/esm/VerticalTab/TabTab.js +63 -0
  14. package/esm/VerticalTab/VerticalTab.js +34 -0
  15. package/esm/VerticalTab/index.js +9 -0
  16. package/esm/VerticalTab/subComponent/TabContext.js +3 -0
  17. package/esm/alert/Alert.js +22 -0
  18. package/esm/alert/index.js +1 -0
  19. package/esm/animate/Collapse.js +65 -0
  20. package/esm/animate/Loader.js +51 -0
  21. package/esm/animate/NumberCounter.js +45 -0
  22. package/esm/animate/PulseRing.js +26 -0
  23. package/esm/animate/Spinner.js +11 -0
  24. package/esm/animate/index.js +5 -0
  25. package/esm/assets/css/autocomplete.css +16 -0
  26. package/esm/assets/css/font.css +4 -0
  27. package/esm/assets/css/global.css +2 -0
  28. package/esm/assets/font/helvetica/Helvetica.ttf +0 -0
  29. package/esm/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
  30. package/esm/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
  31. package/esm/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
  32. package/esm/assets/icons/app-management.png +0 -0
  33. package/esm/assets/icons/burger-black.png +0 -0
  34. package/esm/assets/icons/burger-white.png +0 -0
  35. package/esm/assets/icons/burger.png +0 -0
  36. package/esm/assets/icons/file.svg +1 -0
  37. package/esm/assets/icons/map_icon1.png +0 -0
  38. package/esm/assets/icons/map_icon4.png +0 -0
  39. package/esm/assets/images/bg-aside.png +0 -0
  40. package/esm/assets/images/bg-chart-circle.png +0 -0
  41. package/esm/assets/images/bg-chart-triangle.png +0 -0
  42. package/esm/assets/images/cashub-logo-only.png +0 -0
  43. package/esm/assets/images/default-user.jpg +0 -0
  44. package/esm/assets/images/logo-cashub.png +0 -0
  45. package/esm/assets/images/map.png +0 -0
  46. package/esm/assets/images/qrcode.png +0 -0
  47. package/esm/backdrop/BaseBackdrop.js +11 -0
  48. package/esm/backdrop/LoadingBackdrop.js +10 -0
  49. package/esm/backdrop/ModalBackdrop.js +8 -0
  50. package/esm/backdrop/index.js +3 -0
  51. package/esm/badge/Badge.js +19 -0
  52. package/esm/badge/BadgeDot.js +11 -0
  53. package/esm/badge/BadgeFill.js +42 -0
  54. package/esm/badge/BadgeFillTriangle.js +138 -0
  55. package/esm/badge/BadgeWithText.js +24 -0
  56. package/esm/badge/index.js +5 -0
  57. package/esm/billing/BarChart.js +45 -0
  58. package/esm/billing/Grid.js +38 -0
  59. package/esm/billing/Header2.js +19 -0
  60. package/esm/billing/Header3.js +31 -0
  61. package/esm/billing/Paragraph.js +27 -0
  62. package/esm/billing/ParagraphGroup.js +16 -0
  63. package/esm/billing/ParagraphText.js +20 -0
  64. package/esm/billing/Section.js +44 -0
  65. package/esm/billing/SectionBody.js +11 -0
  66. package/esm/billing/SectionHeader.js +20 -0
  67. package/esm/billing/__stories__/BarChart.stories.js_bak +46 -0
  68. package/esm/billing/__stories__/Grid.stories.js_bak +57 -0
  69. package/esm/billing/__stories__/Header2.stories.js_bak +62 -0
  70. package/esm/billing/__stories__/Header3.stories.js_bak +69 -0
  71. package/esm/billing/__stories__/Paragraph.stories.js_bak +84 -0
  72. package/esm/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
  73. package/esm/billing/__stories__/ParagraphText.stories.js_bak +64 -0
  74. package/esm/billing/__stories__/Section.stories.js_bak +115 -0
  75. package/esm/billing/__stories__/SectionBody.stories.js_bak +62 -0
  76. package/esm/billing/__stories__/SectionHeader.stories.js-bak +68 -0
  77. package/esm/breadcrumb/Breadcrumb.js +71 -0
  78. package/esm/breadcrumb/index.js +1 -0
  79. package/esm/button/Button.js +145 -0
  80. package/esm/button/ButtonGroup.js +54 -0
  81. package/esm/button/IconButton.js +64 -0
  82. package/esm/button/ScrollToTopButton.js +47 -0
  83. package/esm/button/index.js +4 -0
  84. package/esm/callout/Callout.js +45 -0
  85. package/esm/callout/index.js +1 -0
  86. package/esm/chart/BarChart.js +147 -0
  87. package/esm/chart/DoughnutChart.js +110 -0
  88. package/esm/chart/LineChart.js +140 -0
  89. package/esm/chart/SingleBarChart.js +35 -0
  90. package/esm/chart/index.js +5 -0
  91. package/esm/chart/utils/centerTextPlugin.js +56 -0
  92. package/esm/chart/utils/customTooltip.js +84 -0
  93. package/esm/chart/utils/customTooltipLifecyclePlugin.js +16 -0
  94. package/esm/chart/utils/htmlLegendPlugin.js +83 -0
  95. package/esm/chart/utils/index.js +3 -0
  96. package/esm/chart/utils/padEmptyChartBar.js +47 -0
  97. package/esm/chart/utils/tooltipElement.js +17 -0
  98. package/esm/chart/utils/xAxisLabelTooltipPlugin.js +101 -0
  99. package/esm/chart/utils/yAxisTopTitlePlugin.js +43 -0
  100. package/esm/container/FlexContainer.js +33 -0
  101. package/esm/container/index.js +1 -0
  102. package/esm/cropper/Cropper.js +47 -0
  103. package/esm/cropper/CropperModalHandler.js +34 -0
  104. package/esm/cropper/index.js +2 -0
  105. package/esm/cropper/subComponent/CropImageModal.js +72 -0
  106. package/{datetimePicker/DatetimePicker.js → esm/datetimePicker/DatetimePickerV3.js} +63 -31
  107. package/esm/datetimePicker/TimeInput.js +49 -0
  108. package/esm/datetimePicker/TimePickerStyle.js +58 -0
  109. package/esm/datetimePicker/TimePickerV2.js +199 -0
  110. package/esm/datetimePicker/accordion/Month.js +245 -0
  111. package/esm/datetimePicker/accordion/Year.js +275 -0
  112. package/esm/datetimePicker/index.js +4 -0
  113. package/esm/datetimePicker/provider/constant.js +38 -0
  114. package/esm/datetimePicker/subComponent/DateTimePickerContext.js +3 -0
  115. package/esm/datetimePicker/utils/GMTDate.js +9 -0
  116. package/esm/datetimePicker/utils/pad.js +7 -0
  117. package/esm/datetimePicker/utils/toUTC0.js +7 -0
  118. package/esm/descriptionList/DescriptionDetail.js +21 -0
  119. package/esm/descriptionList/DescriptionList.js +18 -0
  120. package/esm/descriptionList/DescriptionTerm.js +7 -0
  121. package/esm/descriptionList/index.js +3 -0
  122. package/esm/divider/Divider.js +24 -0
  123. package/esm/divider/index.js +1 -0
  124. package/esm/dropdown/Dropdown.js +48 -0
  125. package/esm/dropdown/DropdownButtonOption.js +36 -0
  126. package/esm/dropdown/DropdownContent.js +83 -0
  127. package/esm/dropdown/DropdownDivOption.js +19 -0
  128. package/esm/dropdown/DropdownItem.js +19 -0
  129. package/esm/dropdown/DropdownLinkOption.js +17 -0
  130. package/esm/dropdown/DropdownToggle.js +31 -0
  131. package/esm/dropdown/index.js +11 -0
  132. package/esm/dropdown/subComponent/DropdownContext.js +3 -0
  133. package/esm/dropzone/FileDropzone.js +472 -0
  134. package/esm/dropzone/ImageDropzone.js +327 -0
  135. package/esm/dropzone/index.js +2 -0
  136. package/esm/dropzone/subComponent/Message.js +19 -0
  137. package/esm/figure/IconFigure.js +35 -0
  138. package/esm/figure/ImageFigure.js +31 -0
  139. package/esm/figure/index.js +2 -0
  140. package/esm/file/HiddenFileInput.js +8 -0
  141. package/esm/file/index.js +1 -0
  142. package/esm/form/Checkbox.js +157 -0
  143. package/esm/form/Fieldset.js +11 -0
  144. package/esm/form/FormItem.js +15 -0
  145. package/esm/form/Input.js +59 -0
  146. package/esm/form/Label.js +54 -0
  147. package/esm/form/MutedText.js +14 -0
  148. package/esm/form/PasswordInput.js +40 -0
  149. package/esm/form/RadioButton.js +94 -0
  150. package/esm/form/SearchSelect.js +174 -0
  151. package/esm/form/Searchbox.js +91 -0
  152. package/esm/form/Slider.js +39 -0
  153. package/esm/form/SwitchButton.js +97 -0
  154. package/esm/form/Textarea.js +34 -0
  155. package/esm/form/TreeView.js +66 -0
  156. package/esm/form/index.js +14 -0
  157. package/esm/grid/Column.js +39 -0
  158. package/esm/grid/Grid.js +28 -0
  159. package/esm/grid/index.js +2 -0
  160. package/esm/heading/Heading1.js +14 -0
  161. package/esm/heading/Heading2.js +21 -0
  162. package/esm/heading/Heading3.js +42 -0
  163. package/esm/heading/index.js +3 -0
  164. package/esm/helmet/Helmet.js +17 -0
  165. package/esm/helmet/index.js +2 -0
  166. package/esm/iconbox/ApplicationIconBox.js +74 -0
  167. package/esm/iconbox/IconBox.js +60 -0
  168. package/esm/iconbox/IconBoxV2.js +63 -0
  169. package/esm/iconbox/index.js +3 -0
  170. package/esm/iconbox/subComponent/IconBoxFigure.js +43 -0
  171. package/esm/iconbox/subComponent/IconBoxImage.js +35 -0
  172. package/esm/image/ImageFluid.js +10 -0
  173. package/esm/image/UploadImage.js +243 -0
  174. package/esm/image/index.js +2 -0
  175. package/esm/index.js +47 -0
  176. package/esm/keyframe/Pulse.js +15 -0
  177. package/esm/keyframe/Spin.js +7 -0
  178. package/esm/layout/Aside.js +39 -0
  179. package/esm/layout/AsideHeader.jsx +27 -0
  180. package/esm/layout/Backdrop.js +16 -0
  181. package/esm/layout/Container.js +30 -0
  182. package/esm/layout/Footer.js +36 -0
  183. package/esm/layout/Header.jsx +55 -0
  184. package/esm/layout/Layout.jsx +84 -0
  185. package/esm/layout/Logo.jsx +17 -0
  186. package/esm/layout/MenuIcon.jsx +27 -0
  187. package/esm/layout/Sidebar.jsx +271 -0
  188. package/esm/layout/index.js +1 -0
  189. package/esm/link/LinkSpan.js +62 -0
  190. package/esm/link/index.js +1 -0
  191. package/esm/map/GoogleMap.js +439 -0
  192. package/esm/map/GoogleReverseGeolocation.js +193 -0
  193. package/esm/map/LeafletMap.js +224 -0
  194. package/esm/map/LeafletReverseGeolocation.js +94 -0
  195. package/esm/map/index.js +4 -0
  196. package/esm/map/subComponent/BasicLeafletMap.js +27 -0
  197. package/esm/map/subComponent/GoogleMapContainer.js +22 -0
  198. package/esm/map/subComponent/GoogleMapPopup.js +103 -0
  199. package/esm/map/subComponent/GoogleMapWrapper.js +34 -0
  200. package/esm/map/subComponent/LeafletDrawControl.js +116 -0
  201. package/esm/map/subComponent/LeafletMapContainer.js +166 -0
  202. package/esm/map/subComponent/MapSearchBoxControl.js +47 -0
  203. package/esm/modal/StateModal.js +169 -0
  204. package/esm/modal/TitleModal.js +241 -0
  205. package/esm/modal/index.js +2 -0
  206. package/esm/page/Disclaimer.js +121 -0
  207. package/esm/page/index.js +1 -0
  208. package/esm/paginate/Paginate.js +129 -0
  209. package/esm/paginate/index.js +1 -0
  210. package/esm/popover/Popover.js +82 -0
  211. package/esm/popover/index.js +1 -0
  212. package/esm/qrcode/QRCode.js +51 -0
  213. package/esm/qrcode/QRCodeContainter.js +27 -0
  214. package/esm/qrcode/index.js +2 -0
  215. package/esm/ribbon/Ribbon.js +35 -0
  216. package/esm/ribbon/index.js +1 -0
  217. package/esm/section/Section.js +126 -0
  218. package/esm/section/SectionBody.js +43 -0
  219. package/esm/section/SectionHeader.js +61 -0
  220. package/esm/section/SectionToolbar.js +11 -0
  221. package/esm/section/SectionToolbarItem.js +10 -0
  222. package/esm/section/index.js +5 -0
  223. package/esm/select/InputSelect.js +263 -0
  224. package/esm/select/Select.js +811 -0
  225. package/esm/select/index.js +2 -0
  226. package/esm/select/subComponent/Checkbox.js +40 -0
  227. package/esm/select/subComponent/Footer.js +6 -0
  228. package/esm/select/subComponent/ListBox.js +23 -0
  229. package/esm/select/subComponent/Option.js +37 -0
  230. package/esm/select/subComponent/OptionGroup.js +16 -0
  231. package/esm/select/subComponent/Options.js +25 -0
  232. package/esm/select/subComponent/SearchBox.js +51 -0
  233. package/esm/select/subComponent/SelectedMultipleCount.js +32 -0
  234. package/esm/select/subComponent/SelectedMultipleTags.js +47 -0
  235. package/esm/select/subComponent/SelectedMultipleText.js +63 -0
  236. package/esm/select/subComponent/SelectedSingle.js +10 -0
  237. package/esm/styles/GlobalStyle.js +328 -0
  238. package/esm/styles/config/breakpoint.style.js +7 -0
  239. package/esm/styles/config/header.style.js +4 -0
  240. package/esm/styles/config/sidebar.style.js +11 -0
  241. package/esm/styles/index.js +2 -0
  242. package/esm/styles/mixin/backgroundColor.js +38 -0
  243. package/esm/styles/mixin/borderColor.js +31 -0
  244. package/esm/styles/mixin/color.js +31 -0
  245. package/esm/styles/mixin/colorOnBackground.js +31 -0
  246. package/esm/styles/mixin/inputPlaceholder.js +24 -0
  247. package/esm/styles/mixin/media.js +15 -0
  248. package/esm/styles/mixin/rounded.js +24 -0
  249. package/esm/styles/mixin/scrollbar.js +26 -0
  250. package/esm/styles/theme/dark.theme.js +91 -0
  251. package/esm/styles/theme/light.theme.js +91 -0
  252. package/esm/styles/theme/white.theme.js +91 -0
  253. package/esm/styles/themes.js +9 -0
  254. package/esm/table/GridTable.js +329 -0
  255. package/esm/table/ImageBox.js +38 -0
  256. package/esm/table/InfiniteGridTable.js +396 -0
  257. package/esm/table/PermissionTable.js +57 -0
  258. package/esm/table/SimpleGridTable.js +136 -0
  259. package/esm/table/Table.js +559 -0
  260. package/esm/table/__mock__/columns.js +64 -0
  261. package/esm/table/__mock__/data.js +530 -0
  262. package/esm/table/hooks/index.js +2 -0
  263. package/esm/table/hooks/useCalculateDataRange.js +22 -0
  264. package/esm/table/hooks/useGenerateSort.js +32 -0
  265. package/esm/table/index.js +6 -0
  266. package/esm/table/subComponent/BaseTableHeadCell.js +54 -0
  267. package/esm/table/subComponent/GridTableFooter.js +17 -0
  268. package/esm/table/subComponent/GridTableHeadCell.js +13 -0
  269. package/esm/table/subComponent/Resizer.js +70 -0
  270. package/esm/table/subComponent/TableFooter.js +24 -0
  271. package/esm/table/subComponent/TableFooterInfo.js +6 -0
  272. package/esm/table/subComponent/TableFooterPager.js +26 -0
  273. package/esm/table/subComponent/TableHeadCell.js +12 -0
  274. package/esm/table/subComponent/TableSort.js +31 -0
  275. package/esm/tagify/TagifyStyle.js +54 -0
  276. package/esm/tagify/Tags.js +49 -0
  277. package/esm/tagify/index.js +3 -0
  278. package/esm/tagify/templates/getCreateButtonTemplate.js +12 -0
  279. package/esm/text/Paragraph.js +79 -0
  280. package/esm/text/index.js +1 -0
  281. package/esm/timeline/Timeline.js +132 -0
  282. package/esm/timeline/index.js +1 -0
  283. package/esm/toast/CustomToastContainer.js +38 -0
  284. package/esm/toast/MessageContainer.js +44 -0
  285. package/esm/toast/index.js +3 -0
  286. package/esm/toast/show.js +29 -0
  287. package/esm/toast/style.css +1 -0
  288. package/esm/tooltip/Tooltip.js +133 -0
  289. package/esm/tooltip/index.js +1 -0
  290. package/esm/treeView/TreeViewV2.js +32 -0
  291. package/esm/treeView/TreeflexStyle.js +43 -0
  292. package/esm/treeView/index.js +2 -0
  293. package/esm/wizard/Wizard.js +244 -0
  294. package/esm/wizard/index.js +1 -0
  295. package/index.js +0 -12
  296. package/layout/Sidebar.jsx +1 -1
  297. package/package.json +5 -4
  298. package/datetimePicker/DatePicker.js +0 -363
  299. package/datetimePicker/DatePickerV2.js +0 -407
  300. package/datetimePicker/DatetimePickerV2.js +0 -395
  301. package/datetimePicker/TimePicker.js +0 -317
  302. package/datetimePicker/hooks/index.js +0 -27
  303. package/datetimePicker/hooks/useChangeNumber.js +0 -42
  304. package/datetimePicker/hooks/useDecrease.js +0 -38
  305. package/datetimePicker/hooks/useIncrease.js +0 -38
  306. package/datetimePicker/subComponent/Accordion.js +0 -373
  307. package/datetimePicker/subComponent/CustomTimeInput.js +0 -47
  308. package/jsoneditor/JsonEditor.js +0 -142
  309. package/jsoneditor/index.js +0 -13
@@ -0,0 +1,530 @@
1
+ const data = [{
2
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
3
+ name: 'User A',
4
+ contact: 'Admin A',
5
+ contactEmail: 'user-a@mail.com',
6
+ active: 1,
7
+ relatedActive: 1,
8
+ telephone: '0912345678',
9
+ description: '',
10
+ tag: [{
11
+ name: 'tag1',
12
+ tag_id: 1001
13
+ }, {
14
+ name: 'tag2',
15
+ tag_id: 1002
16
+ }, {
17
+ name: 'tag3',
18
+ tag_id: 1003
19
+ }, {
20
+ name: 'tag4',
21
+ tag_id: 1004
22
+ }]
23
+ }, {
24
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
25
+ name: 'User A',
26
+ contact: 'Admin A',
27
+ contactEmail: 'user-a@mail.com',
28
+ active: 1,
29
+ relatedActive: 1,
30
+ telephone: '0912345678',
31
+ description: '',
32
+ tag: [{
33
+ name: 'tag1',
34
+ tag_id: 1001
35
+ }, {
36
+ name: 'tag2',
37
+ tag_id: 1002
38
+ }, {
39
+ name: 'tag3',
40
+ tag_id: 1003
41
+ }]
42
+ }, {
43
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
44
+ name: 'User A',
45
+ contact: 'Admin A',
46
+ contactEmail: 'user-a@mail.com',
47
+ active: 1,
48
+ relatedActive: 1,
49
+ telephone: '0912345678',
50
+ description: '',
51
+ tag: [{
52
+ name: 'tag1',
53
+ tag_id: 1001
54
+ }, {
55
+ name: 'tag2',
56
+ tag_id: 1002
57
+ }]
58
+ }, {
59
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
60
+ name: 'User A',
61
+ contact: 'Admin A',
62
+ contactEmail: 'user-a@mail.com',
63
+ active: 1,
64
+ relatedActive: 1,
65
+ telephone: '0912345678',
66
+ description: '',
67
+ tag: [{
68
+ name: 'tag1',
69
+ tag_id: 1001
70
+ }]
71
+ }, {
72
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
73
+ name: 'User A',
74
+ contact: 'Admin A',
75
+ contactEmail: 'user-a@mail.com',
76
+ active: 1,
77
+ relatedActive: 1,
78
+ telephone: '0912345678',
79
+ description: '',
80
+ tag: [{
81
+ name: 'tag1',
82
+ tag_id: 1001
83
+ }, {
84
+ name: 'tag2',
85
+ tag_id: 1002
86
+ }]
87
+ }, {
88
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
89
+ name: 'User A',
90
+ contact: 'Admin A',
91
+ contactEmail: 'user-a@mail.com',
92
+ active: 1,
93
+ relatedActive: 1,
94
+ telephone: '0912345678',
95
+ description: '',
96
+ tag: [{
97
+ name: 'tag1',
98
+ tag_id: 1001
99
+ }, {
100
+ name: 'tag2',
101
+ tag_id: 1002
102
+ }, {
103
+ name: 'tag3',
104
+ tag_id: 1003
105
+ }, {
106
+ name: 'tag4',
107
+ tag_id: 1004
108
+ }]
109
+ }, {
110
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
111
+ name: 'User A',
112
+ contact: 'Admin A',
113
+ contactEmail: 'user-a@mail.com',
114
+ active: 1,
115
+ relatedActive: 1,
116
+ telephone: '0912345678',
117
+ description: '',
118
+ tag: [{
119
+ name: 'tag1',
120
+ tag_id: 1001
121
+ }, {
122
+ name: 'tag2',
123
+ tag_id: 1002
124
+ }, {
125
+ name: 'tag3',
126
+ tag_id: 1003
127
+ }]
128
+ }, {
129
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
130
+ name: 'User A',
131
+ contact: 'Admin A',
132
+ contactEmail: 'user-a@mail.com',
133
+ active: 1,
134
+ relatedActive: 1,
135
+ telephone: '0912345678',
136
+ description: '',
137
+ tag: [{
138
+ name: 'tag1',
139
+ tag_id: 1001
140
+ }, {
141
+ name: 'tag2',
142
+ tag_id: 1002
143
+ }]
144
+ }, {
145
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
146
+ name: 'User A',
147
+ contact: 'Admin A',
148
+ contactEmail: 'user-a@mail.com',
149
+ active: 1,
150
+ relatedActive: 1,
151
+ telephone: '0912345678',
152
+ description: '',
153
+ tag: [{
154
+ name: 'tag1',
155
+ tag_id: 1001
156
+ }]
157
+ }, {
158
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
159
+ name: 'User A',
160
+ contact: 'Admin A',
161
+ contactEmail: 'user-a@mail.com',
162
+ active: 1,
163
+ relatedActive: 1,
164
+ telephone: '0912345678',
165
+ description: '',
166
+ tag: [{
167
+ name: 'tag1',
168
+ tag_id: 1001
169
+ }, {
170
+ name: 'tag2',
171
+ tag_id: 1002
172
+ }, {
173
+ name: 'tag3',
174
+ tag_id: 1003
175
+ }, {
176
+ name: 'tag4',
177
+ tag_id: 1004
178
+ }]
179
+ }, {
180
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
181
+ name: 'User A',
182
+ contact: 'Admin A',
183
+ contactEmail: 'user-a@mail.com',
184
+ active: 1,
185
+ relatedActive: 1,
186
+ telephone: '0912345678',
187
+ description: '',
188
+ tag: [{
189
+ name: 'tag1',
190
+ tag_id: 1001
191
+ }, {
192
+ name: 'tag2',
193
+ tag_id: 1002
194
+ }, {
195
+ name: 'tag3',
196
+ tag_id: 1003
197
+ }]
198
+ }, {
199
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
200
+ name: 'User A',
201
+ contact: 'Admin A',
202
+ contactEmail: 'user-a@mail.com',
203
+ active: 1,
204
+ relatedActive: 1,
205
+ telephone: '0912345678',
206
+ description: '',
207
+ tag: [{
208
+ name: 'tag1',
209
+ tag_id: 1001
210
+ }, {
211
+ name: 'tag2',
212
+ tag_id: 1002
213
+ }]
214
+ }, {
215
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
216
+ name: 'User A',
217
+ contact: 'Admin A',
218
+ contactEmail: 'user-a@mail.com',
219
+ active: 1,
220
+ relatedActive: 1,
221
+ telephone: '0912345678',
222
+ description: '',
223
+ tag: [{
224
+ name: 'tag1',
225
+ tag_id: 1001
226
+ }]
227
+ }, {
228
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
229
+ name: 'User A',
230
+ contact: 'Admin A',
231
+ contactEmail: 'user-a@mail.com',
232
+ active: 1,
233
+ relatedActive: 1,
234
+ telephone: '0912345678',
235
+ description: '',
236
+ tag: [{
237
+ name: 'tag1',
238
+ tag_id: 1001
239
+ }, {
240
+ name: 'tag2',
241
+ tag_id: 1002
242
+ }, {
243
+ name: 'tag3',
244
+ tag_id: 1003
245
+ }, {
246
+ name: 'tag4',
247
+ tag_id: 1004
248
+ }]
249
+ }, {
250
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
251
+ name: 'User A',
252
+ contact: 'Admin A',
253
+ contactEmail: 'user-a@mail.com',
254
+ active: 1,
255
+ relatedActive: 1,
256
+ telephone: '0912345678',
257
+ description: '',
258
+ tag: [{
259
+ name: 'tag1',
260
+ tag_id: 1001
261
+ }, {
262
+ name: 'tag2',
263
+ tag_id: 1002
264
+ }, {
265
+ name: 'tag3',
266
+ tag_id: 1003
267
+ }]
268
+ }, {
269
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
270
+ name: 'User A',
271
+ contact: 'Admin A',
272
+ contactEmail: 'user-a@mail.com',
273
+ active: 1,
274
+ relatedActive: 1,
275
+ telephone: '0912345678',
276
+ description: '',
277
+ tag: [{
278
+ name: 'tag1',
279
+ tag_id: 1001
280
+ }, {
281
+ name: 'tag2',
282
+ tag_id: 1002
283
+ }]
284
+ }, {
285
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
286
+ name: 'User A',
287
+ contact: 'Admin A',
288
+ contactEmail: 'user-a@mail.com',
289
+ active: 1,
290
+ relatedActive: 1,
291
+ telephone: '0912345678',
292
+ description: '',
293
+ tag: [{
294
+ name: 'tag1',
295
+ tag_id: 1001
296
+ }]
297
+ }, {
298
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
299
+ name: 'User A',
300
+ contact: 'Admin A',
301
+ contactEmail: 'user-a@mail.com',
302
+ active: 1,
303
+ relatedActive: 1,
304
+ telephone: '0912345678',
305
+ description: '',
306
+ tag: [{
307
+ name: 'tag1',
308
+ tag_id: 1001
309
+ }, {
310
+ name: 'tag2',
311
+ tag_id: 1002
312
+ }, {
313
+ name: 'tag3',
314
+ tag_id: 1003
315
+ }, {
316
+ name: 'tag4',
317
+ tag_id: 1004
318
+ }]
319
+ }, {
320
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
321
+ name: 'User A',
322
+ contact: 'Admin A',
323
+ contactEmail: 'user-a@mail.com',
324
+ active: 1,
325
+ relatedActive: 1,
326
+ telephone: '0912345678',
327
+ description: '',
328
+ tag: [{
329
+ name: 'tag1',
330
+ tag_id: 1001
331
+ }, {
332
+ name: 'tag2',
333
+ tag_id: 1002
334
+ }, {
335
+ name: 'tag3',
336
+ tag_id: 1003
337
+ }]
338
+ }, {
339
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
340
+ name: 'User A',
341
+ contact: 'Admin A',
342
+ contactEmail: 'user-a@mail.com',
343
+ active: 1,
344
+ relatedActive: 1,
345
+ telephone: '0912345678',
346
+ description: '',
347
+ tag: [{
348
+ name: 'tag1',
349
+ tag_id: 1001
350
+ }, {
351
+ name: 'tag2',
352
+ tag_id: 1002
353
+ }]
354
+ }, {
355
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
356
+ name: 'User A',
357
+ contact: 'Admin A',
358
+ contactEmail: 'user-a@mail.com',
359
+ active: 1,
360
+ relatedActive: 1,
361
+ telephone: '0912345678',
362
+ description: '',
363
+ tag: [{
364
+ name: 'tag1',
365
+ tag_id: 1001
366
+ }]
367
+ }, {
368
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
369
+ name: 'User A',
370
+ contact: 'Admin A',
371
+ contactEmail: 'user-a@mail.com',
372
+ active: 1,
373
+ relatedActive: 1,
374
+ telephone: '0912345678',
375
+ description: '',
376
+ tag: [{
377
+ name: 'tag1',
378
+ tag_id: 1001
379
+ }, {
380
+ name: 'tag2',
381
+ tag_id: 1002
382
+ }, {
383
+ name: 'tag3',
384
+ tag_id: 1003
385
+ }, {
386
+ name: 'tag4',
387
+ tag_id: 1004
388
+ }]
389
+ }, {
390
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
391
+ name: 'User A',
392
+ contact: 'Admin A',
393
+ contactEmail: 'user-a@mail.com',
394
+ active: 1,
395
+ relatedActive: 1,
396
+ telephone: '0912345678',
397
+ description: '',
398
+ tag: [{
399
+ name: 'tag1',
400
+ tag_id: 1001
401
+ }, {
402
+ name: 'tag2',
403
+ tag_id: 1002
404
+ }, {
405
+ name: 'tag3',
406
+ tag_id: 1003
407
+ }]
408
+ }, {
409
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
410
+ name: 'User A',
411
+ contact: 'Admin A',
412
+ contactEmail: 'user-a@mail.com',
413
+ active: 1,
414
+ relatedActive: 1,
415
+ telephone: '0912345678',
416
+ description: '',
417
+ tag: [{
418
+ name: 'tag1',
419
+ tag_id: 1001
420
+ }, {
421
+ name: 'tag2',
422
+ tag_id: 1002
423
+ }]
424
+ }, {
425
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
426
+ name: 'User A',
427
+ contact: 'Admin A',
428
+ contactEmail: 'user-a@mail.com',
429
+ active: 1,
430
+ relatedActive: 1,
431
+ telephone: '0912345678',
432
+ description: '',
433
+ tag: [{
434
+ name: 'tag1',
435
+ tag_id: 1001
436
+ }]
437
+ }, {
438
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
439
+ name: 'User A',
440
+ contact: 'Admin A',
441
+ contactEmail: 'user-a@mail.com',
442
+ active: 1,
443
+ relatedActive: 1,
444
+ telephone: '0912345678',
445
+ description: '',
446
+ tag: [{
447
+ name: 'tag1',
448
+ tag_id: 1001
449
+ }, {
450
+ name: 'tag2',
451
+ tag_id: 1002
452
+ }, {
453
+ name: 'tag3',
454
+ tag_id: 1003
455
+ }, {
456
+ name: 'tag4',
457
+ tag_id: 1004
458
+ }]
459
+ }, {
460
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
461
+ name: 'User A',
462
+ contact: 'Admin A',
463
+ contactEmail: 'user-a@mail.com',
464
+ active: 1,
465
+ relatedActive: 1,
466
+ telephone: '0912345678',
467
+ description: '',
468
+ tag: [{
469
+ name: 'tag1',
470
+ tag_id: 1001
471
+ }, {
472
+ name: 'tag2',
473
+ tag_id: 1002
474
+ }, {
475
+ name: 'tag3',
476
+ tag_id: 1003
477
+ }]
478
+ }, {
479
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
480
+ name: 'User A',
481
+ contact: 'Admin A',
482
+ contactEmail: 'user-a@mail.com',
483
+ active: 1,
484
+ relatedActive: 1,
485
+ telephone: '0912345678',
486
+ description: '',
487
+ tag: [{
488
+ name: 'tag1',
489
+ tag_id: 1001
490
+ }, {
491
+ name: 'tag2',
492
+ tag_id: 1002
493
+ }]
494
+ }, {
495
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
496
+ name: 'User A',
497
+ contact: 'Admin A',
498
+ contactEmail: 'user-a@mail.com',
499
+ active: 1,
500
+ relatedActive: 1,
501
+ telephone: '0912345678',
502
+ description: '',
503
+ tag: [{
504
+ name: 'tag1',
505
+ tag_id: 1001
506
+ }]
507
+ }, {
508
+ logoUrl: 'http://localhost:10084/cashub/images/2022/04/20/9qxPfgv13Vd7HnDJVmFLOFocO4mb2CFMmQfXzo2L.png',
509
+ name: 'User A',
510
+ contact: 'Admin A',
511
+ contactEmail: 'user-a@mail.com',
512
+ active: 1,
513
+ relatedActive: 1,
514
+ telephone: '0912345678',
515
+ description: '',
516
+ tag: [{
517
+ name: 'tag1',
518
+ tag_id: 1001
519
+ }, {
520
+ name: 'tag2',
521
+ tag_id: 1002
522
+ }, {
523
+ name: 'tag3',
524
+ tag_id: 1003
525
+ }, {
526
+ name: 'tag4',
527
+ tag_id: 1004
528
+ }]
529
+ }];
530
+ export default data;
@@ -0,0 +1,2 @@
1
+ export { default as useCalculateDataRange } from './useCalculateDataRange';
2
+ export { default as useGenerateSort } from './useGenerateSort';
@@ -0,0 +1,22 @@
1
+ import { useState, useEffect } from 'react';
2
+ const useCalculateDataRange = (page, limit, total) => {
3
+ const [start, setStart] = useState(0);
4
+ const [end, setEnd] = useState(0);
5
+ useEffect(() => {
6
+ let start = 0;
7
+ let end = page * limit;
8
+ if (total !== 0) {
9
+ start = (page - 1) * limit + 1;
10
+ }
11
+ if (end > total) {
12
+ end = total;
13
+ }
14
+ setStart(start);
15
+ setEnd(end);
16
+ }, [page, limit, total]);
17
+ return {
18
+ start,
19
+ end
20
+ };
21
+ };
22
+ export default useCalculateDataRange;
@@ -0,0 +1,32 @@
1
+ import { useCallback } from 'react';
2
+ import TableSort from '../subComponent/TableSort';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ const useGenerateSort = (sortColumn, sortType) => {
5
+ return useCallback(fieldName => {
6
+ let isActiveAsc = false;
7
+ let isActiveDesc = false;
8
+ if (Array.isArray(sortColumn) && Array.isArray(sortType)) {
9
+ const sortColumnIndex = sortColumn.indexOf(fieldName);
10
+ if (sortColumnIndex !== -1) {
11
+ if (sortType[sortColumnIndex] === 'asc') {
12
+ isActiveAsc = true;
13
+ }
14
+ if (sortType[sortColumnIndex] === 'desc') {
15
+ isActiveDesc = true;
16
+ }
17
+ }
18
+ } else if (fieldName === sortColumn && sortType === 'asc') {
19
+ isActiveAsc = true;
20
+ } else if (fieldName === sortColumn && sortType === 'desc') {
21
+ isActiveDesc = true;
22
+ }
23
+ return /*#__PURE__*/_jsxs(TableSort, {
24
+ children: [/*#__PURE__*/_jsx(TableSort.UpIcon, {
25
+ $active: isActiveAsc
26
+ }), /*#__PURE__*/_jsx(TableSort.DownIcon, {
27
+ $active: isActiveDesc
28
+ })]
29
+ });
30
+ }, [sortColumn, sortType]);
31
+ };
32
+ export default useGenerateSort;
@@ -0,0 +1,6 @@
1
+ export { default as GridTable } from './GridTable';
2
+ export { default as InfiniteGridTable } from './InfiniteGridTable';
3
+ export { default as Table } from './Table';
4
+ export { default as PermissionTable } from './PermissionTable';
5
+ export { default as SimpleGridTable } from './SimpleGridTable';
6
+ export { default as ImageBox } from './ImageBox';
@@ -0,0 +1,54 @@
1
+ import styled, { css } from 'styled-components';
2
+ const BaseTableHeadCell = styled.th`
3
+ position: relative;
4
+ font-size: var(--font-body1);
5
+ font-weight: var(--font-bold);
6
+ width: ${_ref => {
7
+ let {
8
+ width
9
+ } = _ref;
10
+ return width || 'auto';
11
+ }};
12
+ padding: var(--spacing-s) var(--spacing-xs);
13
+
14
+ > div {
15
+ display: flex;
16
+
17
+ > span {
18
+ overflow: hidden;
19
+ white-space: nowrap;
20
+ text-overflow: ellipsis;
21
+ }
22
+ }
23
+
24
+ ${_ref2 => {
25
+ let {
26
+ sortable
27
+ } = _ref2;
28
+ return sortable && css`
29
+ cursor: pointer;
30
+
31
+ > div > span {
32
+ max-width: calc(100% - 1rem);
33
+ padding-right: var(--spacing-xs);
34
+ }
35
+ `;
36
+ }}
37
+
38
+ ${_ref3 => {
39
+ let {
40
+ align
41
+ } = _ref3;
42
+ switch (align) {
43
+ case 'center':
44
+ return css`
45
+ > div {
46
+ justify-content: center;
47
+ }
48
+ `;
49
+ default:
50
+ break;
51
+ }
52
+ }}
53
+ `;
54
+ export default BaseTableHeadCell;
@@ -0,0 +1,17 @@
1
+ import TableFooter from './TableFooter';
2
+ import styled from 'styled-components';
3
+ const GridTableFooter = styled(TableFooter)`
4
+ position: sticky;
5
+ bottom: 0;
6
+ height: 48px;
7
+ padding: 0 var(--spacing-xs);
8
+ border-top: 1px solid var(--border-color);
9
+ border-bottom: 1px solid var(--border-color);
10
+ background: ${_ref => {
11
+ let {
12
+ backgroundReverse
13
+ } = _ref;
14
+ return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
15
+ }};
16
+ `;
17
+ export default GridTableFooter;
@@ -0,0 +1,13 @@
1
+ import styled from 'styled-components';
2
+ import BaseTableHeadCell from './BaseTableHeadCell';
3
+ const GridTableHeadCell = styled(BaseTableHeadCell)`
4
+ border-top: 1px solid var(--border-color);
5
+ border-bottom: 1px solid var(--border-color);
6
+ background: ${_ref => {
7
+ let {
8
+ backgroundReverse
9
+ } = _ref;
10
+ return backgroundReverse ? 'var(--color-background1)' : 'var(--color-background2)';
11
+ }};
12
+ `;
13
+ export default GridTableHeadCell;