@quan-erp/base-frontend 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 (324) hide show
  1. package/LICENSE.md +49 -0
  2. package/README.md +80 -0
  3. package/dist-export/api/ai-assistant/ai-assistant.api.d.ts +14 -0
  4. package/dist-export/api/ai-assistant/ai-assistant.api.d.ts.map +1 -0
  5. package/dist-export/api/ai-assistant/ai-assistant.api.js +93 -0
  6. package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts +54 -0
  7. package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts.map +1 -0
  8. package/dist-export/api/ai-assistant/ai-assistant.dto.js +4 -0
  9. package/dist-export/api/ai-assistant/ai-assistant.export.d.ts +7 -0
  10. package/dist-export/api/ai-assistant/ai-assistant.export.d.ts.map +1 -0
  11. package/dist-export/api/ai-assistant/ai-assistant.export.js +7 -0
  12. package/dist-export/api/ai-model/ai-model.api.d.ts +37 -0
  13. package/dist-export/api/ai-model/ai-model.api.d.ts.map +1 -0
  14. package/dist-export/api/ai-model/ai-model.api.js +80 -0
  15. package/dist-export/api/ai-tool/ai-tool.dto.d.ts +26 -0
  16. package/dist-export/api/ai-tool/ai-tool.dto.d.ts.map +1 -0
  17. package/dist-export/api/ai-tool/ai-tool.dto.js +1 -0
  18. package/dist-export/api/branch/branch.export.d.ts +11 -0
  19. package/dist-export/api/branch/branch.export.d.ts.map +1 -0
  20. package/dist-export/api/branch/branch.export.js +12 -0
  21. package/dist-export/api/branch/branch.type.d.ts +46 -0
  22. package/dist-export/api/branch/branch.type.d.ts.map +1 -0
  23. package/dist-export/api/branch/branch.type.js +44 -0
  24. package/dist-export/api/change-log/change-log.dto.d.ts +41 -0
  25. package/dist-export/api/change-log/change-log.dto.d.ts.map +1 -0
  26. package/dist-export/api/change-log/change-log.dto.js +1 -0
  27. package/dist-export/api/change-log/change-log.export.d.ts +39 -0
  28. package/dist-export/api/change-log/change-log.export.d.ts.map +1 -0
  29. package/dist-export/api/change-log/change-log.export.js +18 -0
  30. package/dist-export/api/currency/currency.export.d.ts +17 -0
  31. package/dist-export/api/currency/currency.export.d.ts.map +1 -0
  32. package/dist-export/api/currency/currency.export.js +12 -0
  33. package/dist-export/api/currency/currency.type.d.ts +21 -0
  34. package/dist-export/api/currency/currency.type.d.ts.map +1 -0
  35. package/dist-export/api/currency/currency.type.js +1 -0
  36. package/dist-export/api/currency-exchange/currency-exchange.export.d.ts +11 -0
  37. package/dist-export/api/currency-exchange/currency-exchange.export.d.ts.map +1 -0
  38. package/dist-export/api/currency-exchange/currency-exchange.export.js +12 -0
  39. package/dist-export/api/currency-exchange/currency-exchange.type.d.ts +33 -0
  40. package/dist-export/api/currency-exchange/currency-exchange.type.d.ts.map +1 -0
  41. package/dist-export/api/currency-exchange/currency-exchange.type.js +1 -0
  42. package/dist-export/api/file/file.export.d.ts +14 -0
  43. package/dist-export/api/file/file.export.d.ts.map +1 -0
  44. package/dist-export/api/file/file.export.js +12 -0
  45. package/dist-export/api/file/file.type.d.ts +39 -0
  46. package/dist-export/api/file/file.type.d.ts.map +1 -0
  47. package/dist-export/api/file/file.type.js +10 -0
  48. package/dist-export/api/firebase/firebase.d.ts +4 -0
  49. package/dist-export/api/firebase/firebase.d.ts.map +1 -0
  50. package/dist-export/api/firebase/firebase.dto.d.ts +7 -0
  51. package/dist-export/api/firebase/firebase.dto.d.ts.map +1 -0
  52. package/dist-export/api/firebase/firebase.dto.js +1 -0
  53. package/dist-export/api/firebase/firebase.export.d.ts +2 -0
  54. package/dist-export/api/firebase/firebase.export.d.ts.map +1 -0
  55. package/dist-export/api/firebase/firebase.export.js +1 -0
  56. package/dist-export/api/firebase/firebase.js +35 -0
  57. package/dist-export/api/location/location.dto.d.ts +28 -0
  58. package/dist-export/api/location/location.dto.d.ts.map +1 -0
  59. package/dist-export/api/location/location.dto.js +27 -0
  60. package/dist-export/api/location/location.export.d.ts +26 -0
  61. package/dist-export/api/location/location.export.d.ts.map +1 -0
  62. package/dist-export/api/location/location.export.js +16 -0
  63. package/dist-export/api/notification/notification.api.d.ts +9 -0
  64. package/dist-export/api/notification/notification.api.d.ts.map +1 -0
  65. package/dist-export/api/notification/notification.api.js +45 -0
  66. package/dist-export/api/notification/notification.export.d.ts +6 -0
  67. package/dist-export/api/notification/notification.export.d.ts.map +1 -0
  68. package/dist-export/api/notification/notification.export.js +13 -0
  69. package/dist-export/api/notification/notification.store.d.ts +8 -0
  70. package/dist-export/api/notification/notification.store.d.ts.map +1 -0
  71. package/dist-export/api/notification/notification.store.js +46 -0
  72. package/dist-export/api/notification/notification.type.d.ts +48 -0
  73. package/dist-export/api/notification/notification.type.d.ts.map +1 -0
  74. package/dist-export/api/notification/notification.type.js +1 -0
  75. package/dist-export/api/partner/partner.export.d.ts +15 -0
  76. package/dist-export/api/partner/partner.export.d.ts.map +1 -0
  77. package/dist-export/api/partner/partner.export.js +12 -0
  78. package/dist-export/api/partner/partner.type.d.ts +41 -0
  79. package/dist-export/api/partner/partner.type.d.ts.map +1 -0
  80. package/dist-export/api/partner/partner.type.js +1 -0
  81. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts +18 -0
  82. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts.map +1 -0
  83. package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.js +13 -0
  84. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts +38 -0
  85. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts.map +1 -0
  86. package/dist-export/api/partner-shipping-address/partner-shipping-address.type.js +36 -0
  87. package/dist-export/api/permission/permission.export.d.ts +8 -0
  88. package/dist-export/api/permission/permission.export.d.ts.map +1 -0
  89. package/dist-export/api/permission/permission.export.js +10 -0
  90. package/dist-export/api/permission/permission.lib.d.ts +5 -0
  91. package/dist-export/api/permission/permission.lib.d.ts.map +1 -0
  92. package/dist-export/api/permission/permission.lib.js +24 -0
  93. package/dist-export/api/permission/permission.type.d.ts +32 -0
  94. package/dist-export/api/permission/permission.type.d.ts.map +1 -0
  95. package/dist-export/api/permission/permission.type.js +1 -0
  96. package/dist-export/api/role-permission/role-permission.api.d.ts +25 -0
  97. package/dist-export/api/role-permission/role-permission.api.d.ts.map +1 -0
  98. package/dist-export/api/role-permission/role-permission.api.js +71 -0
  99. package/dist-export/api/role-permission/role-permission.dto.d.ts +6 -0
  100. package/dist-export/api/role-permission/role-permission.dto.d.ts.map +1 -0
  101. package/dist-export/api/role-permission/role-permission.dto.js +1 -0
  102. package/dist-export/api/role-permission/role-permission.export.d.ts +11 -0
  103. package/dist-export/api/role-permission/role-permission.export.d.ts.map +1 -0
  104. package/dist-export/api/role-permission/role-permission.export.js +9 -0
  105. package/dist-export/api/setting/setting.api.d.ts +14 -0
  106. package/dist-export/api/setting/setting.api.d.ts.map +1 -0
  107. package/dist-export/api/setting/setting.api.js +70 -0
  108. package/dist-export/api/setting/setting.export.d.ts +36 -0
  109. package/dist-export/api/setting/setting.export.d.ts.map +1 -0
  110. package/dist-export/api/setting/setting.export.js +17 -0
  111. package/dist-export/api/setting/setting.store.d.ts +11 -0
  112. package/dist-export/api/setting/setting.store.d.ts.map +1 -0
  113. package/dist-export/api/setting/setting.store.js +36 -0
  114. package/dist-export/api/setting/setting.type.d.ts +44 -0
  115. package/dist-export/api/setting/setting.type.d.ts.map +1 -0
  116. package/dist-export/api/setting/setting.type.js +27 -0
  117. package/dist-export/api/tag/tag.api.d.ts +10 -0
  118. package/dist-export/api/tag/tag.api.d.ts.map +1 -0
  119. package/dist-export/api/tag/tag.api.js +60 -0
  120. package/dist-export/api/tag/tag.dto.d.ts +8 -0
  121. package/dist-export/api/tag/tag.dto.d.ts.map +1 -0
  122. package/dist-export/api/tag/tag.dto.js +1 -0
  123. package/dist-export/api/tag/tag.export.d.ts +10 -0
  124. package/dist-export/api/tag/tag.export.d.ts.map +1 -0
  125. package/dist-export/api/tag/tag.export.js +13 -0
  126. package/dist-export/api/unit/uoc.export.d.ts +11 -0
  127. package/dist-export/api/unit/uoc.export.d.ts.map +1 -0
  128. package/dist-export/api/unit/uoc.export.js +13 -0
  129. package/dist-export/api/unit/uoc.type.d.ts +11 -0
  130. package/dist-export/api/unit/uoc.type.d.ts.map +1 -0
  131. package/dist-export/api/unit/uoc.type.js +1 -0
  132. package/dist-export/api/unit/uom.export.d.ts +14 -0
  133. package/dist-export/api/unit/uom.export.d.ts.map +1 -0
  134. package/dist-export/api/unit/uom.export.js +16 -0
  135. package/dist-export/api/unit/uom.type.d.ts +30 -0
  136. package/dist-export/api/unit/uom.type.d.ts.map +1 -0
  137. package/dist-export/api/unit/uom.type.js +1 -0
  138. package/dist-export/api/user/user.api.d.ts +28 -0
  139. package/dist-export/api/user/user.api.d.ts.map +1 -0
  140. package/dist-export/api/user/user.api.js +138 -0
  141. package/dist-export/api/user/user.export.d.ts +11 -0
  142. package/dist-export/api/user/user.export.d.ts.map +1 -0
  143. package/dist-export/api/user/user.export.js +12 -0
  144. package/dist-export/api/user/user.type.d.ts +49 -0
  145. package/dist-export/api/user/user.type.d.ts.map +1 -0
  146. package/dist-export/api/user/user.type.js +20 -0
  147. package/dist-export/api/workflow/workflow.export.d.ts +41 -0
  148. package/dist-export/api/workflow/workflow.export.d.ts.map +1 -0
  149. package/dist-export/api/workflow/workflow.export.js +19 -0
  150. package/dist-export/api/workflow/workflow.type.d.ts +210 -0
  151. package/dist-export/api/workflow/workflow.type.d.ts.map +1 -0
  152. package/dist-export/api/workflow/workflow.type.js +11 -0
  153. package/dist-export/components/change-log/change-log.export.d.ts +9 -0
  154. package/dist-export/components/change-log/change-log.export.d.ts.map +1 -0
  155. package/dist-export/components/change-log/change-log.export.js +6 -0
  156. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts +4 -0
  157. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts.map +1 -0
  158. package/dist-export/components/home-shortcut-item/home-shortcut-item.export.js +6 -0
  159. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts +5 -0
  160. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts.map +1 -0
  161. package/dist-export/components/home-shortcut-item/home-shortcut-item.type.js +1 -0
  162. package/dist-export/components/location/location.export.d.ts +8 -0
  163. package/dist-export/components/location/location.export.d.ts.map +1 -0
  164. package/dist-export/components/location/location.export.js +16 -0
  165. package/dist-export/components/location/location.type.d.ts +62 -0
  166. package/dist-export/components/location/location.type.d.ts.map +1 -0
  167. package/dist-export/components/location/location.type.js +1 -0
  168. package/dist-export/components/sportlight-search/sportlight-search.export.d.ts +15 -0
  169. package/dist-export/components/sportlight-search/sportlight-search.export.d.ts.map +1 -0
  170. package/dist-export/components/sportlight-search/sportlight-search.export.js +11 -0
  171. package/dist-export/components/sportlight-search/sportlight-search.type.d.ts +23 -0
  172. package/dist-export/components/sportlight-search/sportlight-search.type.d.ts.map +1 -0
  173. package/dist-export/components/sportlight-search/sportlight-search.type.js +5 -0
  174. package/dist-export/components/tag/tag.dropdown.d.ts +13 -0
  175. package/dist-export/components/tag/tag.dropdown.d.ts.map +1 -0
  176. package/dist-export/components/tag/tag.dropdown.export.d.ts +5 -0
  177. package/dist-export/components/tag/tag.dropdown.export.d.ts.map +1 -0
  178. package/dist-export/components/tag/tag.dropdown.export.js +6 -0
  179. package/dist-export/components/tag/tag.dropdown.js +84 -0
  180. package/dist-export/dto/base.dto.d.ts +6 -0
  181. package/dist-export/dto/base.dto.d.ts.map +1 -0
  182. package/dist-export/dto/base.dto.js +1 -0
  183. package/dist-export/export/export-dashboard.d.ts +5 -0
  184. package/dist-export/export/export-dashboard.d.ts.map +1 -0
  185. package/dist-export/export/export-dashboard.js +7 -0
  186. package/dist-export/export/export-env.d.ts +5 -0
  187. package/dist-export/export/export-env.d.ts.map +1 -0
  188. package/dist-export/export/export-env.js +5 -0
  189. package/dist-export/export/export-navigate.d.ts +3 -0
  190. package/dist-export/export/export-navigate.d.ts.map +1 -0
  191. package/dist-export/export/export-navigate.js +7 -0
  192. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts +3 -0
  193. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts.map +1 -0
  194. package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.js +6 -0
  195. package/dist-export/export/index.d.ts +6 -0
  196. package/dist-export/export/index.d.ts.map +1 -0
  197. package/dist-export/export/index.js +5 -0
  198. package/dist-export/export.d.ts +131 -0
  199. package/dist-export/export.d.ts.map +1 -0
  200. package/dist-export/export.js +143 -0
  201. package/dist-export/locale/locale.export.d.ts +7 -0
  202. package/dist-export/locale/locale.export.d.ts.map +1 -0
  203. package/dist-export/locale/locale.export.js +9 -0
  204. package/dist-export/locale/locales/en-US.json +145 -0
  205. package/dist-export/locale/locales/my-MM.json +145 -0
  206. package/dist-export/locale/locales/zh-CN.json +145 -0
  207. package/dist-export/page/ai-assistant/ai-assistant.export.d.ts +5 -0
  208. package/dist-export/page/ai-assistant/ai-assistant.export.d.ts.map +1 -0
  209. package/dist-export/page/ai-assistant/ai-assistant.export.js +6 -0
  210. package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts +7 -0
  211. package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts.map +1 -0
  212. package/dist-export/page/ai-assistant/ai-assistant.locale.js +9 -0
  213. package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts +16 -0
  214. package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts.map +1 -0
  215. package/dist-export/page/ai-assistant/component/assistant.dropdown.js +50 -0
  216. package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts +9 -0
  217. package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts.map +1 -0
  218. package/dist-export/page/ai-assistant/component/icon-park-icon.js +11 -0
  219. package/dist-export/page/ai-assistant/locales/en-US.json +92 -0
  220. package/dist-export/page/ai-assistant/locales/my-MM.json +91 -0
  221. package/dist-export/page/ai-assistant/locales/zh-CN.json +91 -0
  222. package/dist-export/page/branch/branch.export.d.ts +4 -0
  223. package/dist-export/page/branch/branch.export.d.ts.map +1 -0
  224. package/dist-export/page/branch/branch.export.js +6 -0
  225. package/dist-export/page/branch/branch.types.d.ts +14 -0
  226. package/dist-export/page/branch/branch.types.d.ts.map +1 -0
  227. package/dist-export/page/branch/branch.types.js +1 -0
  228. package/dist-export/page/currency/currency.export.d.ts +6 -0
  229. package/dist-export/page/currency/currency.export.d.ts.map +1 -0
  230. package/dist-export/page/currency/currency.export.js +9 -0
  231. package/dist-export/page/currency/currency.type.d.ts +25 -0
  232. package/dist-export/page/currency/currency.type.d.ts.map +1 -0
  233. package/dist-export/page/currency/currency.type.js +1 -0
  234. package/dist-export/page/partner/partner.export.d.ts +4 -0
  235. package/dist-export/page/partner/partner.export.d.ts.map +1 -0
  236. package/dist-export/page/partner/partner.export.js +6 -0
  237. package/dist-export/page/partner/partner.types.d.ts +15 -0
  238. package/dist-export/page/partner/partner.types.d.ts.map +1 -0
  239. package/dist-export/page/partner/partner.types.js +1 -0
  240. package/dist-export/page/uoc/uoc.export.d.ts +5 -0
  241. package/dist-export/page/uoc/uoc.export.d.ts.map +1 -0
  242. package/dist-export/page/uoc/uoc.export.js +9 -0
  243. package/dist-export/page/uoc/uoc.types.d.ts +25 -0
  244. package/dist-export/page/uoc/uoc.types.d.ts.map +1 -0
  245. package/dist-export/page/uoc/uoc.types.js +1 -0
  246. package/dist-export/page/user/user.export.d.ts +4 -0
  247. package/dist-export/page/user/user.export.d.ts.map +1 -0
  248. package/dist-export/page/user/user.export.js +6 -0
  249. package/dist-export/page/user/user.types.d.ts +14 -0
  250. package/dist-export/page/user/user.types.d.ts.map +1 -0
  251. package/dist-export/page/user/user.types.js +1 -0
  252. package/dist-export/plugin/app-state.d.ts +5 -0
  253. package/dist-export/plugin/app-state.d.ts.map +1 -0
  254. package/dist-export/plugin/app-state.js +157 -0
  255. package/dist-export/plugin/export.d.ts +3 -0
  256. package/dist-export/plugin/export.d.ts.map +1 -0
  257. package/dist-export/plugin/export.js +7 -0
  258. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts +6 -0
  259. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts.map +1 -0
  260. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.js +6 -0
  261. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts +8 -0
  262. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts.map +1 -0
  263. package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.js +1 -0
  264. package/dist-export/store/dto.d.ts +10 -0
  265. package/dist-export/store/dto.d.ts.map +1 -0
  266. package/dist-export/store/dto.js +11 -0
  267. package/dist-export/store/home-shortcut/home-shortcut.export.d.ts +7 -0
  268. package/dist-export/store/home-shortcut/home-shortcut.export.d.ts.map +1 -0
  269. package/dist-export/store/home-shortcut/home-shortcut.export.js +9 -0
  270. package/dist-export/store/home-shortcut/home-shortcut.type.d.ts +20 -0
  271. package/dist-export/store/home-shortcut/home-shortcut.type.d.ts.map +1 -0
  272. package/dist-export/store/home-shortcut/home-shortcut.type.js +1 -0
  273. package/dist-export/store/nav-menu/nav-menu.export.d.ts +6 -0
  274. package/dist-export/store/nav-menu/nav-menu.export.d.ts.map +1 -0
  275. package/dist-export/store/nav-menu/nav-menu.export.js +6 -0
  276. package/dist-export/store/nav-menu/nav-menu.type.d.ts +46 -0
  277. package/dist-export/store/nav-menu/nav-menu.type.d.ts.map +1 -0
  278. package/dist-export/store/nav-menu/nav-menu.type.js +1 -0
  279. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts +3 -0
  280. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts.map +1 -0
  281. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.js +6 -0
  282. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts +14 -0
  283. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts.map +1 -0
  284. package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.js +1 -0
  285. package/dist-export/store/permission-template/permission-template.export.d.ts +7 -0
  286. package/dist-export/store/permission-template/permission-template.export.d.ts.map +1 -0
  287. package/dist-export/store/permission-template/permission-template.export.js +9 -0
  288. package/dist-export/store/permission-template/permission-template.type.d.ts +13 -0
  289. package/dist-export/store/permission-template/permission-template.type.d.ts.map +1 -0
  290. package/dist-export/store/permission-template/permission-template.type.js +1 -0
  291. package/dist-export/store/root-component-store/root-component.export.d.ts +6 -0
  292. package/dist-export/store/root-component-store/root-component.export.d.ts.map +1 -0
  293. package/dist-export/store/root-component-store/root-component.export.js +9 -0
  294. package/dist-export/store/root-component-store/root-component.type.d.ts +7 -0
  295. package/dist-export/store/root-component-store/root-component.type.d.ts.map +1 -0
  296. package/dist-export/store/root-component-store/root-component.type.js +1 -0
  297. package/dist-export/store/web-env/web-env.export.d.ts +6 -0
  298. package/dist-export/store/web-env/web-env.export.d.ts.map +1 -0
  299. package/dist-export/store/web-env/web-env.export.js +9 -0
  300. package/dist-export/store/web-env/web-env.store.d.ts +6 -0
  301. package/dist-export/store/web-env/web-env.store.d.ts.map +1 -0
  302. package/dist-export/store/web-env/web-env.store.js +16 -0
  303. package/dist-export/store/web-env/web-env.type.d.ts +16 -0
  304. package/dist-export/store/web-env/web-env.type.d.ts.map +1 -0
  305. package/dist-export/store/web-env/web-env.type.js +1 -0
  306. package/dist-export/utils/axios-client.d.ts +5 -0
  307. package/dist-export/utils/axios-client.d.ts.map +1 -0
  308. package/dist-export/utils/axios-client.js +84 -0
  309. package/dist-export/utils/common.d.ts +6 -0
  310. package/dist-export/utils/common.d.ts.map +1 -0
  311. package/dist-export/utils/common.js +5 -0
  312. package/dist-export/utils/index.d.ts +3 -0
  313. package/dist-export/utils/index.d.ts.map +1 -0
  314. package/dist-export/utils/index.js +2 -0
  315. package/dist-export/utils/pagination.d.ts +11 -0
  316. package/dist-export/utils/pagination.d.ts.map +1 -0
  317. package/dist-export/utils/pagination.js +6 -0
  318. package/dist-export/utils/react-query-indexed-db-persister.d.ts +7 -0
  319. package/dist-export/utils/react-query-indexed-db-persister.d.ts.map +1 -0
  320. package/dist-export/utils/react-query-indexed-db-persister.js +21 -0
  321. package/dist-export/utils/types.utils.d.ts +2 -0
  322. package/dist-export/utils/types.utils.d.ts.map +1 -0
  323. package/dist-export/utils/types.utils.js +1 -0
  324. package/package.json +182 -0
@@ -0,0 +1,14 @@
1
+ import type { UserDto } from "../../export";
2
+ import type { TakeAndPartialRest } from "../../utils/types.utils";
3
+ import type { ReactNode } from "react";
4
+ export type UserDropdownProps = {
5
+ value?: number | TakeAndPartialRest<UserDto, "id" | "name">;
6
+ trigger?: (value?: number | TakeAndPartialRest<UserDto, "id" | "name">) => ReactNode;
7
+ setValue: (v?: number, user?: UserDto) => void;
8
+ isCompact?: boolean;
9
+ className?: string;
10
+ disabled?: boolean;
11
+ allowClear?: boolean;
12
+ placeholder?: string;
13
+ };
14
+ //# sourceMappingURL=user.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/page/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IAC5D,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,SAAS,CAAC;IACrF,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { QueryClient } from "@tanstack/react-query";
2
+ import type { AppRegistryState } from '@quan-erp/shared-types';
3
+ export declare const queryClient: QueryClient;
4
+ export declare const useAppRegistry: import("zustand").UseBoundStore<import("zustand").StoreApi<AppRegistryState>>;
5
+ //# sourceMappingURL=app-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../src/plugin/app-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAgG,MAAM,wBAAwB,CAAA;AAmB5J,eAAO,MAAM,WAAW,aAOtB,CAAA;AAQF,eAAO,MAAM,cAAc,+EAiIxB,CAAC"}
@@ -0,0 +1,157 @@
1
+ import { QueryClient } from "@tanstack/react-query";
2
+ import { create } from "zustand";
3
+ import axiosClient from "../utils/axios-client";
4
+ import { useSettingStore } from "../api/setting/setting.store";
5
+ import { SETTING_QUERY_KEY } from "../api/setting/setting.api";
6
+ import { Platforms } from "@quan-erp/shared-frontend-core";
7
+ import { deleteFirebaseMessaging } from "../api/firebase/firebase";
8
+ import { reactQueryIndexedDBPersister } from "../utils/react-query-indexed-db-persister";
9
+ import { persistQueryClient } from "@tanstack/react-query-persist-client";
10
+ function getTokenFromLocalstorage() {
11
+ return localStorage.getItem('access-token');
12
+ }
13
+ export const queryClient = new QueryClient({
14
+ defaultOptions: {
15
+ queries: {
16
+ refetchOnReconnect: true,
17
+ gcTime: 1000 * 60 * 60 * 24, // 24 hours
18
+ }
19
+ }
20
+ });
21
+ persistQueryClient({
22
+ queryClient: queryClient,
23
+ persister: reactQueryIndexedDBPersister,
24
+ maxAge: 1000 * 60 * 60 * 7, // 1 day
25
+ });
26
+ export const useAppRegistry = create((set, get) => ({
27
+ locale: 'burmese',
28
+ setLocale: (locale) => {
29
+ set(state => ({ ...state, locale }));
30
+ },
31
+ routes: [],
32
+ route: {
33
+ add(route) {
34
+ if (Array.isArray(route)) {
35
+ set(state => ({ ...state, routes: [...state.routes, ...route] }));
36
+ }
37
+ else {
38
+ set(state => ({ ...state, routes: [...state.routes, route] }));
39
+ }
40
+ }
41
+ },
42
+ menus: [],
43
+ menuState: {
44
+ isMinimize: Platforms.isMobile() ? true : JSON.parse(window.localStorage.getItem('menu-state') || 'false'),
45
+ allowSwipeToOpen: true
46
+ },
47
+ menu: {
48
+ add(menu) {
49
+ set(state => ({ ...state, menus: [...state.menus, menu] }));
50
+ },
51
+ minimize() {
52
+ set(state => ({ ...state, menuState: { ...state.menuState, isMinimize: true } }));
53
+ window.localStorage.setItem('menu-state', 'true');
54
+ },
55
+ maximize() {
56
+ set(state => ({ ...state, menuState: { ...state.menuState, isMinimize: false } }));
57
+ window.localStorage.setItem('menu-state', 'false');
58
+ },
59
+ allowSwipeToOpen(flag) {
60
+ set(state => ({ ...state, menuState: { ...state.menuState, allowSwipeToOpen: flag } }));
61
+ }
62
+ },
63
+ rootRoutes: [],
64
+ rootRoute: {
65
+ add(route) {
66
+ set(state => ({ ...state, rootRoutes: [...state.rootRoutes, route] }));
67
+ }
68
+ },
69
+ queryClient: queryClient,
70
+ getAxiosClient: () => {
71
+ return axiosClient;
72
+ },
73
+ userInfo: (() => {
74
+ const accessToken = getTokenFromLocalstorage();
75
+ if (accessToken) {
76
+ return { accessToken };
77
+ }
78
+ return null;
79
+ })(),
80
+ user: {
81
+ getInfo() {
82
+ return get().userInfo;
83
+ },
84
+ getAccessToken() { },
85
+ isLogin() {
86
+ return !!get().userInfo;
87
+ },
88
+ setUser(user) {
89
+ set(state => ({ ...state, userInfo: user }));
90
+ },
91
+ logout() {
92
+ set(state => ({ ...state, userInfo: null }));
93
+ useSettingStore.getState().reset();
94
+ get().queryClient.invalidateQueries({ queryKey: [SETTING_QUERY_KEY], exact: false });
95
+ get().queryClient.cancelQueries();
96
+ get().queryClient.clear();
97
+ reactQueryIndexedDBPersister.removeClient();
98
+ localStorage.removeItem("access-token");
99
+ localStorage.removeItem('refresh-token');
100
+ localStorage.removeItem('user-info');
101
+ deleteFirebaseMessaging();
102
+ }
103
+ },
104
+ plugins: [{ name: 'builtin', version: '1.0.0', displayName: 'Built in' }],
105
+ plugin: {
106
+ getInstalled() {
107
+ return [];
108
+ },
109
+ install(plugin) {
110
+ set((state) => {
111
+ return { plugins: [...state.plugins, plugin] };
112
+ });
113
+ },
114
+ isInstalled(name) {
115
+ const state = get();
116
+ return !!state.plugins.find(p => p.name === name);
117
+ }
118
+ },
119
+ settings: [],
120
+ setting: {
121
+ add(setting) {
122
+ set(state => ({
123
+ settings: [...state.settings, setting]
124
+ }));
125
+ }
126
+ },
127
+ dashboards: [],
128
+ dashboard: {
129
+ add(item) {
130
+ set(state => ({
131
+ ...state,
132
+ dashboards: [...state.dashboards, item]
133
+ }));
134
+ }
135
+ },
136
+ portals: [],
137
+ portal: {
138
+ add(elemnt) {
139
+ set(state => ({ ...state, portals: [...state.portals, elemnt] }));
140
+ }
141
+ },
142
+ reports: {
143
+ // [BUILTIN_PLUGIN.name]: <div>builtin report page</div>
144
+ },
145
+ report: {
146
+ add(item) {
147
+ set(state => ({
148
+ ...state,
149
+ reports: {
150
+ ...state.reports,
151
+ [item.pluginName]: item.page
152
+ }
153
+ }));
154
+ }
155
+ }
156
+ }));
157
+ window.useAppRegistry = useAppRegistry;
@@ -0,0 +1,3 @@
1
+ import type { AppRegistryState } from "@quan-erp/shared-types";
2
+ export declare function useAppRegistry<U = AppRegistryState>(selector?: (state: AppRegistryState) => U): U;
3
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/plugin/export.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D,wBAAgB,cAAc,CAAC,CAAC,GAAG,gBAAgB,EAC/C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,CAAC,GAC1C,CAAC,CAGH"}
@@ -0,0 +1,7 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../utils/common";
3
+ import { APINames } from "../export";
4
+ export function useAppRegistry(selector) {
5
+ const store = PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useAppRegistry);
6
+ return selector ? store(selector) : store();
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { BottomNavBarStore } from "./bottom-nav-bar.type";
2
+ import type { StoreApi, UseBoundStore } from "zustand";
3
+ type UseButtomNavBar = UseBoundStore<StoreApi<BottomNavBarStore>>;
4
+ export declare function useBottomNavBarStore(): UseButtomNavBar;
5
+ export {};
6
+ //# sourceMappingURL=bottom-nav-bar.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bottom-nav-bar.export.d.ts","sourceRoot":"","sources":["../../../src/store/bottom-nav-bar/bottom-nav-bar.export.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD,KAAK,eAAe,GAAG,aAAa,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACjE,wBAAgB,oBAAoB,oBAEnC"}
@@ -0,0 +1,6 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export function useBottomNavBarStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useBottomNavBarStore);
6
+ }
@@ -0,0 +1,8 @@
1
+ export type BottomNavBarStore = {
2
+ visibility: {
3
+ isVisible: boolean;
4
+ show: () => void;
5
+ hide: () => void;
6
+ };
7
+ };
8
+ //# sourceMappingURL=bottom-nav-bar.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bottom-nav-bar.type.d.ts","sourceRoot":"","sources":["../../../src/store/bottom-nav-bar/bottom-nav-bar.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,UAAU,EAAE;QACR,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,MAAM,IAAI,CAAC;QACjB,IAAI,EAAE,MAAM,IAAI,CAAA;KACnB,CAAA;CACJ,CAAA"}
@@ -0,0 +1,10 @@
1
+ export declare class ResponseDto<T> {
2
+ status: string;
3
+ message?: string;
4
+ payload: T;
5
+ }
6
+ export declare class RequestDto<T> {
7
+ payload: T;
8
+ constructor(payload: T);
9
+ }
10
+ //# sourceMappingURL=dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../src/store/dto.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW,CAAC,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,CAAA;CACb;AAGD,qBAAa,UAAU,CAAC,CAAC;IACF,OAAO,EAAE,CAAC;gBAAV,OAAO,EAAE,CAAC;CAChC"}
@@ -0,0 +1,11 @@
1
+ export class ResponseDto {
2
+ status;
3
+ message;
4
+ payload;
5
+ }
6
+ export class RequestDto {
7
+ payload;
8
+ constructor(payload) {
9
+ this.payload = payload;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { HomeShortcutStore } from "./home-shortcut.type";
3
+ type UseHomeShortcutStore = UseBoundStore<StoreApi<HomeShortcutStore>>;
4
+ export declare function useHomeShortcutStore(): UseHomeShortcutStore;
5
+ export declare function getHomeShortcutStore(): UseHomeShortcutStore;
6
+ export {};
7
+ //# sourceMappingURL=home-shortcut.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home-shortcut.export.d.ts","sourceRoot":"","sources":["../../../src/store/home-shortcut/home-shortcut.export.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,KAAK,oBAAoB,GAAG,aAAa,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACtE,wBAAgB,oBAAoB,yBAEnC;AACD,wBAAgB,oBAAoB,yBAEnC"}
@@ -0,0 +1,9 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export function useHomeShortcutStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useHomeShortcutStore);
6
+ }
7
+ export function getHomeShortcutStore() {
8
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useHomeShortcutStore);
9
+ }
@@ -0,0 +1,20 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ export type Shortcut = {
3
+ id: string;
4
+ pluginName?: string;
5
+ displayName: string | ReactNode;
6
+ component: ReactNode;
7
+ toLink?: string;
8
+ onClick?: () => void;
9
+ style?: CSSProperties;
10
+ span?: Partial<{
11
+ col: number;
12
+ row: number;
13
+ }>;
14
+ };
15
+ export type HomeShortcutStore = {
16
+ availableShortcuts: Shortcut[];
17
+ add: (shortcut: Shortcut) => void;
18
+ addAll: (shortcut: Shortcut[]) => void;
19
+ };
20
+ //# sourceMappingURL=home-shortcut.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home-shortcut.type.d.ts","sourceRoot":"","sources":["../../../src/store/home-shortcut/home-shortcut.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,MAAM,MAAM,QAAQ,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAA;KACd,CAAC,CAAA;CACL,CAAA;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kBAAkB,EAAE,QAAQ,EAAE,CAAC;IAC/B,GAAG,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAA;CACzC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { NavMenuStore } from "./nav-menu.type";
3
+ type UseNavMenuStore = UseBoundStore<StoreApi<NavMenuStore>>;
4
+ export declare function useNavMenuStore(): UseNavMenuStore;
5
+ export {};
6
+ //# sourceMappingURL=nav-menu.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-menu.export.d.ts","sourceRoot":"","sources":["../../../src/store/nav-menu/nav-menu.export.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,KAAK,eAAe,GAAG,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAA;AAC5D,wBAAgB,eAAe,oBAE9B"}
@@ -0,0 +1,6 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export function useNavMenuStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useNavMenuStore);
6
+ }
@@ -0,0 +1,46 @@
1
+ import type { ReactNode } from "react";
2
+ export type NavMenuStore = {
3
+ navMenuActionItems: ReactNode[];
4
+ navMenuActionItem: {
5
+ add: (item: ReactNode) => void;
6
+ addAll: (items: ReactNode[]) => void;
7
+ set: (items: ReactNode[]) => void;
8
+ };
9
+ navMenuDefaultActionItemVisibility: {
10
+ isVisible: boolean;
11
+ hide: () => void;
12
+ show: () => void;
13
+ };
14
+ navMenuItems: ReactNode[];
15
+ navMenuItem: {
16
+ add: (item: ReactNode) => void;
17
+ addAll: (items: ReactNode[]) => void;
18
+ set: (items: ReactNode[]) => void;
19
+ };
20
+ leading: {
21
+ item?: ReactNode;
22
+ set: (item: ReactNode) => void;
23
+ setBackButton: () => void;
24
+ reset: () => void;
25
+ };
26
+ label: {
27
+ value?: ReactNode;
28
+ set(value: ReactNode): void;
29
+ reset(): void;
30
+ };
31
+ visibility: {
32
+ isVisible: boolean;
33
+ hide: () => void;
34
+ show: () => void;
35
+ };
36
+ syncNavMenu: (navMenu: {
37
+ leadingBackButton: undefined | boolean;
38
+ leading: undefined | ReactNode;
39
+ items: undefined | ReactNode[];
40
+ actionItems: undefined | ReactNode[];
41
+ menuTitle: undefined | ReactNode;
42
+ visibleDefaultActionItem: undefined | boolean;
43
+ visible: undefined | boolean;
44
+ }) => void;
45
+ };
46
+ //# sourceMappingURL=nav-menu.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-menu.type.d.ts","sourceRoot":"","sources":["../../../src/store/nav-menu/nav-menu.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,YAAY,GAAG;IACvB,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC,iBAAiB,EAAE;QACf,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;QAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;QACrC,GAAG,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAA;KACpC,CAAC;IACF,kCAAkC,EAAE;QAChC,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,MAAM,IAAI,CAAA;QAChB,IAAI,EAAE,MAAM,IAAI,CAAA;KACnB,CAAA;IACD,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,WAAW,EAAE;QACT,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;QAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;QACrC,GAAG,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,CAAA;KACpC,CAAC;IACF,OAAO,EAAE;QACL,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;QAC/B,aAAa,EAAE,MAAM,IAAI,CAAC;QAC1B,KAAK,EAAE,MAAM,IAAI,CAAA;KACpB,CAAC;IACF,KAAK,EAAE;QACH,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,GAAG,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;QAC5B,KAAK,IAAI,IAAI,CAAA;KAChB,CAAA;IACD,UAAU,EAAE;QACR,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,MAAM,IAAI,CAAA;QAChB,IAAI,EAAE,MAAM,IAAI,CAAA;KACnB,CAAC;IACF,WAAW,EAAE,CAAC,OAAO,EAAE;QACnB,iBAAiB,EAAE,SAAS,GAAG,OAAO,CAAC;QACvC,OAAO,EAAE,SAAS,GAAG,SAAS,CAAC;QAC/B,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;QAC/B,WAAW,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;QACrC,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;QACjC,wBAAwB,EAAE,SAAS,GAAG,OAAO,CAAC;QAC9C,OAAO,EAAE,SAAS,GAAG,OAAO,CAAA;KAC/B,KAAK,IAAI,CAAA;CACb,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { PartnerDetailTab } from "./partner-detail-tab.type";
2
+ export declare function getPartnerDetailTabs(): PartnerDetailTab[];
3
+ //# sourceMappingURL=partner-detail-tab.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner-detail-tab.export.d.ts","sourceRoot":"","sources":["../../../src/store/partner-detail-tab-store/partner-detail-tab.export.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,wBAAgB,oBAAoB,uBAEnC"}
@@ -0,0 +1,6 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export function getPartnerDetailTabs() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.partnerDetailTabs);
6
+ }
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ export type PartnerDetailTab = {
3
+ sortNumber: number;
4
+ pluginName: string;
5
+ onTabTriggerRender: (props: {
6
+ key: string;
7
+ partnerId: number;
8
+ }) => ReactNode;
9
+ onTabContentRender: (props: {
10
+ key: string;
11
+ partnerId: number;
12
+ }) => ReactNode;
13
+ };
14
+ //# sourceMappingURL=partner-detail-tab.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner-detail-tab.type.d.ts","sourceRoot":"","sources":["../../../src/store/partner-detail-tab-store/partner-detail-tab.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC7E,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAA;CAC/E,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { PermissionTemplateStoreType } from "./permission-template.type";
3
+ type UsePermissionTemplateStore = UseBoundStore<StoreApi<PermissionTemplateStoreType>>;
4
+ export declare function usePerimssionTemplateStore(): UsePermissionTemplateStore;
5
+ export declare function getPerimssionTemplateStore(): UsePermissionTemplateStore;
6
+ export {};
7
+ //# sourceMappingURL=permission-template.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-template.export.d.ts","sourceRoot":"","sources":["../../../src/store/permission-template/permission-template.export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAK9E,KAAK,0BAA0B,GAAG,aAAa,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,CAAA;AACtF,wBAAgB,0BAA0B,+BAEzC;AACD,wBAAgB,0BAA0B,+BAEzC"}
@@ -0,0 +1,9 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { BUILTIN_PLUGIN } from "../../utils/common";
3
+ import { APINames } from "../../export";
4
+ export function usePerimssionTemplateStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.usePerimssionTemplateStore);
6
+ }
7
+ export function getPerimssionTemplateStore() {
8
+ return usePerimssionTemplateStore();
9
+ }
@@ -0,0 +1,13 @@
1
+ import type { ApiPermission } from "@quan-erp/shared-types";
2
+ import type { ReactNode } from "react";
3
+ export type PermissionTemplate = {
4
+ icon?: ReactNode;
5
+ name: string;
6
+ description: string;
7
+ apis: ApiPermission[];
8
+ };
9
+ export type PermissionTemplateStoreType = {
10
+ template: PermissionTemplate[];
11
+ add: (template: PermissionTemplate[]) => void;
12
+ };
13
+ //# sourceMappingURL=permission-template.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-template.type.d.ts","sourceRoot":"","sources":["../../../src/store/permission-template/permission-template.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,aAAa,EAAE,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,GAAG,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAA;CAChD,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { RootComponentStore } from "./root-component.type";
3
+ export type UseRootComponentStore = UseBoundStore<StoreApi<RootComponentStore>>;
4
+ export declare function getRootComponentStore(): UseRootComponentStore;
5
+ export declare function useRootComponentStore(): UseRootComponentStore;
6
+ //# sourceMappingURL=root-component.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-component.export.d.ts","sourceRoot":"","sources":["../../../src/store/root-component-store/root-component.export.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAC/E,wBAAgB,qBAAqB,0BAEpC;AACD,wBAAgB,qBAAqB,0BAEpC"}
@@ -0,0 +1,9 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { APINames } from "../../export";
3
+ import { BUILTIN_PLUGIN } from "../../utils/common";
4
+ export function getRootComponentStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useRootComponentStore);
6
+ }
7
+ export function useRootComponentStore() {
8
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useRootComponentStore);
9
+ }
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ export type RootComponentStore = {
3
+ components: ReactNode[];
4
+ add: (component: ReactNode) => void;
5
+ addAll: (component: ReactNode[]) => void;
6
+ };
7
+ //# sourceMappingURL=root-component.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-component.type.d.ts","sourceRoot":"","sources":["../../../src/store/root-component-store/root-component.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,GAAG,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;CAC5C,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { StoreApi, UseBoundStore } from "zustand";
2
+ import type { WebEnvStore } from "./web-env.type";
3
+ export type UseWebEnvStore = UseBoundStore<StoreApi<WebEnvStore>>;
4
+ export declare function useWebEnvStore(): UseWebEnvStore;
5
+ export declare function getWebEnvStore(): UseWebEnvStore;
6
+ //# sourceMappingURL=web-env.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-env.export.d.ts","sourceRoot":"","sources":["../../../src/store/web-env/web-env.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAA;AAEjE,wBAAgB,cAAc,mBAE7B;AAED,wBAAgB,cAAc,mBAE7B"}
@@ -0,0 +1,9 @@
1
+ import { PluginAPI } from "@quan-erp/shared-frontend-core";
2
+ import { APINames } from "../../export";
3
+ import { BUILTIN_PLUGIN } from "../../utils/common";
4
+ export function useWebEnvStore() {
5
+ return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.useWebEnvStore);
6
+ }
7
+ export function getWebEnvStore() {
8
+ return useWebEnvStore();
9
+ }
@@ -0,0 +1,6 @@
1
+ import type { WebEnvType } from "./web-env.type";
2
+ export declare const useWebEnvStore: import("zustand").UseBoundStore<import("zustand").StoreApi<{
3
+ env: WebEnvType;
4
+ setEnv: (env: WebEnvType) => void;
5
+ }>>;
6
+ //# sourceMappingURL=web-env.store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-env.store.d.ts","sourceRoot":"","sources":["../../../src/store/web-env/web-env.store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,cAAc;SAAiB,UAAU;YAAU,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI;GAcvF,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { create } from "zustand";
2
+ export const useWebEnvStore = create((set, get) => {
3
+ return {
4
+ env: import.meta.env,
5
+ setEnv: (env) => {
6
+ set(prev => {
7
+ return {
8
+ env: {
9
+ ...prev.env,
10
+ ...env
11
+ }
12
+ };
13
+ });
14
+ }
15
+ };
16
+ });
@@ -0,0 +1,16 @@
1
+ export type WebEnvStore = {
2
+ env: WebEnvType;
3
+ setEnv: (env: WebEnvType) => void;
4
+ };
5
+ export type WebEnvType = Partial<{
6
+ VITE_BACKEND_API: string | null;
7
+ VITE_MULTI_ORGANIZATION: string | null;
8
+ VITE_BASE_VERSION: string;
9
+ VITE_INITIAL_ROUTING: string;
10
+ VITE_MODE: string;
11
+ VITE_CORE_VERSION: string;
12
+ VITE_APP_NAME: string;
13
+ VITE_FIREBASE_VAPID_KEY: string;
14
+ VITE_MODULE_CACHE_ID: string;
15
+ }>;
16
+ //# sourceMappingURL=web-env.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-env.type.d.ts","sourceRoot":"","sources":["../../../src/store/web-env/web-env.type.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;IAC7B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;IAChC,oBAAoB,EAAE,MAAM,CAAA;CAC/B,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const BACKEND_API: string;
2
+ declare const axiosClient: import("axios").AxiosInstance;
3
+ export declare const refreshClient: import("axios").AxiosInstance;
4
+ export default axiosClient;
5
+ //# sourceMappingURL=axios-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-client.d.ts","sourceRoot":"","sources":["../../src/utils/axios-client.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,QAA8H,CAAA;AAEtJ,QAAA,MAAM,WAAW,+BAIf,CAAC;AAEH,eAAO,MAAM,aAAa,+BAIxB,CAAC;AAqFH,eAAe,WAAW,CAAC"}