@cashub/ui-elv 1.0.0

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