@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.
- package/LICENSE.md +49 -0
- package/README.md +80 -0
- package/dist-export/api/ai-assistant/ai-assistant.api.d.ts +14 -0
- package/dist-export/api/ai-assistant/ai-assistant.api.d.ts.map +1 -0
- package/dist-export/api/ai-assistant/ai-assistant.api.js +93 -0
- package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts +54 -0
- package/dist-export/api/ai-assistant/ai-assistant.dto.d.ts.map +1 -0
- package/dist-export/api/ai-assistant/ai-assistant.dto.js +4 -0
- package/dist-export/api/ai-assistant/ai-assistant.export.d.ts +7 -0
- package/dist-export/api/ai-assistant/ai-assistant.export.d.ts.map +1 -0
- package/dist-export/api/ai-assistant/ai-assistant.export.js +7 -0
- package/dist-export/api/ai-model/ai-model.api.d.ts +37 -0
- package/dist-export/api/ai-model/ai-model.api.d.ts.map +1 -0
- package/dist-export/api/ai-model/ai-model.api.js +80 -0
- package/dist-export/api/ai-tool/ai-tool.dto.d.ts +26 -0
- package/dist-export/api/ai-tool/ai-tool.dto.d.ts.map +1 -0
- package/dist-export/api/ai-tool/ai-tool.dto.js +1 -0
- package/dist-export/api/branch/branch.export.d.ts +11 -0
- package/dist-export/api/branch/branch.export.d.ts.map +1 -0
- package/dist-export/api/branch/branch.export.js +12 -0
- package/dist-export/api/branch/branch.type.d.ts +46 -0
- package/dist-export/api/branch/branch.type.d.ts.map +1 -0
- package/dist-export/api/branch/branch.type.js +44 -0
- package/dist-export/api/change-log/change-log.dto.d.ts +41 -0
- package/dist-export/api/change-log/change-log.dto.d.ts.map +1 -0
- package/dist-export/api/change-log/change-log.dto.js +1 -0
- package/dist-export/api/change-log/change-log.export.d.ts +39 -0
- package/dist-export/api/change-log/change-log.export.d.ts.map +1 -0
- package/dist-export/api/change-log/change-log.export.js +18 -0
- package/dist-export/api/currency/currency.export.d.ts +17 -0
- package/dist-export/api/currency/currency.export.d.ts.map +1 -0
- package/dist-export/api/currency/currency.export.js +12 -0
- package/dist-export/api/currency/currency.type.d.ts +21 -0
- package/dist-export/api/currency/currency.type.d.ts.map +1 -0
- package/dist-export/api/currency/currency.type.js +1 -0
- package/dist-export/api/currency-exchange/currency-exchange.export.d.ts +11 -0
- package/dist-export/api/currency-exchange/currency-exchange.export.d.ts.map +1 -0
- package/dist-export/api/currency-exchange/currency-exchange.export.js +12 -0
- package/dist-export/api/currency-exchange/currency-exchange.type.d.ts +33 -0
- package/dist-export/api/currency-exchange/currency-exchange.type.d.ts.map +1 -0
- package/dist-export/api/currency-exchange/currency-exchange.type.js +1 -0
- package/dist-export/api/file/file.export.d.ts +14 -0
- package/dist-export/api/file/file.export.d.ts.map +1 -0
- package/dist-export/api/file/file.export.js +12 -0
- package/dist-export/api/file/file.type.d.ts +39 -0
- package/dist-export/api/file/file.type.d.ts.map +1 -0
- package/dist-export/api/file/file.type.js +10 -0
- package/dist-export/api/firebase/firebase.d.ts +4 -0
- package/dist-export/api/firebase/firebase.d.ts.map +1 -0
- package/dist-export/api/firebase/firebase.dto.d.ts +7 -0
- package/dist-export/api/firebase/firebase.dto.d.ts.map +1 -0
- package/dist-export/api/firebase/firebase.dto.js +1 -0
- package/dist-export/api/firebase/firebase.export.d.ts +2 -0
- package/dist-export/api/firebase/firebase.export.d.ts.map +1 -0
- package/dist-export/api/firebase/firebase.export.js +1 -0
- package/dist-export/api/firebase/firebase.js +35 -0
- package/dist-export/api/location/location.dto.d.ts +28 -0
- package/dist-export/api/location/location.dto.d.ts.map +1 -0
- package/dist-export/api/location/location.dto.js +27 -0
- package/dist-export/api/location/location.export.d.ts +26 -0
- package/dist-export/api/location/location.export.d.ts.map +1 -0
- package/dist-export/api/location/location.export.js +16 -0
- package/dist-export/api/notification/notification.api.d.ts +9 -0
- package/dist-export/api/notification/notification.api.d.ts.map +1 -0
- package/dist-export/api/notification/notification.api.js +45 -0
- package/dist-export/api/notification/notification.export.d.ts +6 -0
- package/dist-export/api/notification/notification.export.d.ts.map +1 -0
- package/dist-export/api/notification/notification.export.js +13 -0
- package/dist-export/api/notification/notification.store.d.ts +8 -0
- package/dist-export/api/notification/notification.store.d.ts.map +1 -0
- package/dist-export/api/notification/notification.store.js +46 -0
- package/dist-export/api/notification/notification.type.d.ts +48 -0
- package/dist-export/api/notification/notification.type.d.ts.map +1 -0
- package/dist-export/api/notification/notification.type.js +1 -0
- package/dist-export/api/partner/partner.export.d.ts +15 -0
- package/dist-export/api/partner/partner.export.d.ts.map +1 -0
- package/dist-export/api/partner/partner.export.js +12 -0
- package/dist-export/api/partner/partner.type.d.ts +41 -0
- package/dist-export/api/partner/partner.type.d.ts.map +1 -0
- package/dist-export/api/partner/partner.type.js +1 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts +18 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.d.ts.map +1 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-adderss.export.js +13 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts +38 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-address.type.d.ts.map +1 -0
- package/dist-export/api/partner-shipping-address/partner-shipping-address.type.js +36 -0
- package/dist-export/api/permission/permission.export.d.ts +8 -0
- package/dist-export/api/permission/permission.export.d.ts.map +1 -0
- package/dist-export/api/permission/permission.export.js +10 -0
- package/dist-export/api/permission/permission.lib.d.ts +5 -0
- package/dist-export/api/permission/permission.lib.d.ts.map +1 -0
- package/dist-export/api/permission/permission.lib.js +24 -0
- package/dist-export/api/permission/permission.type.d.ts +32 -0
- package/dist-export/api/permission/permission.type.d.ts.map +1 -0
- package/dist-export/api/permission/permission.type.js +1 -0
- package/dist-export/api/role-permission/role-permission.api.d.ts +25 -0
- package/dist-export/api/role-permission/role-permission.api.d.ts.map +1 -0
- package/dist-export/api/role-permission/role-permission.api.js +71 -0
- package/dist-export/api/role-permission/role-permission.dto.d.ts +6 -0
- package/dist-export/api/role-permission/role-permission.dto.d.ts.map +1 -0
- package/dist-export/api/role-permission/role-permission.dto.js +1 -0
- package/dist-export/api/role-permission/role-permission.export.d.ts +11 -0
- package/dist-export/api/role-permission/role-permission.export.d.ts.map +1 -0
- package/dist-export/api/role-permission/role-permission.export.js +9 -0
- package/dist-export/api/setting/setting.api.d.ts +14 -0
- package/dist-export/api/setting/setting.api.d.ts.map +1 -0
- package/dist-export/api/setting/setting.api.js +70 -0
- package/dist-export/api/setting/setting.export.d.ts +36 -0
- package/dist-export/api/setting/setting.export.d.ts.map +1 -0
- package/dist-export/api/setting/setting.export.js +17 -0
- package/dist-export/api/setting/setting.store.d.ts +11 -0
- package/dist-export/api/setting/setting.store.d.ts.map +1 -0
- package/dist-export/api/setting/setting.store.js +36 -0
- package/dist-export/api/setting/setting.type.d.ts +44 -0
- package/dist-export/api/setting/setting.type.d.ts.map +1 -0
- package/dist-export/api/setting/setting.type.js +27 -0
- package/dist-export/api/tag/tag.api.d.ts +10 -0
- package/dist-export/api/tag/tag.api.d.ts.map +1 -0
- package/dist-export/api/tag/tag.api.js +60 -0
- package/dist-export/api/tag/tag.dto.d.ts +8 -0
- package/dist-export/api/tag/tag.dto.d.ts.map +1 -0
- package/dist-export/api/tag/tag.dto.js +1 -0
- package/dist-export/api/tag/tag.export.d.ts +10 -0
- package/dist-export/api/tag/tag.export.d.ts.map +1 -0
- package/dist-export/api/tag/tag.export.js +13 -0
- package/dist-export/api/unit/uoc.export.d.ts +11 -0
- package/dist-export/api/unit/uoc.export.d.ts.map +1 -0
- package/dist-export/api/unit/uoc.export.js +13 -0
- package/dist-export/api/unit/uoc.type.d.ts +11 -0
- package/dist-export/api/unit/uoc.type.d.ts.map +1 -0
- package/dist-export/api/unit/uoc.type.js +1 -0
- package/dist-export/api/unit/uom.export.d.ts +14 -0
- package/dist-export/api/unit/uom.export.d.ts.map +1 -0
- package/dist-export/api/unit/uom.export.js +16 -0
- package/dist-export/api/unit/uom.type.d.ts +30 -0
- package/dist-export/api/unit/uom.type.d.ts.map +1 -0
- package/dist-export/api/unit/uom.type.js +1 -0
- package/dist-export/api/user/user.api.d.ts +28 -0
- package/dist-export/api/user/user.api.d.ts.map +1 -0
- package/dist-export/api/user/user.api.js +138 -0
- package/dist-export/api/user/user.export.d.ts +11 -0
- package/dist-export/api/user/user.export.d.ts.map +1 -0
- package/dist-export/api/user/user.export.js +12 -0
- package/dist-export/api/user/user.type.d.ts +49 -0
- package/dist-export/api/user/user.type.d.ts.map +1 -0
- package/dist-export/api/user/user.type.js +20 -0
- package/dist-export/api/workflow/workflow.export.d.ts +41 -0
- package/dist-export/api/workflow/workflow.export.d.ts.map +1 -0
- package/dist-export/api/workflow/workflow.export.js +19 -0
- package/dist-export/api/workflow/workflow.type.d.ts +210 -0
- package/dist-export/api/workflow/workflow.type.d.ts.map +1 -0
- package/dist-export/api/workflow/workflow.type.js +11 -0
- package/dist-export/components/change-log/change-log.export.d.ts +9 -0
- package/dist-export/components/change-log/change-log.export.d.ts.map +1 -0
- package/dist-export/components/change-log/change-log.export.js +6 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts +4 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.export.d.ts.map +1 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.export.js +6 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts +5 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.type.d.ts.map +1 -0
- package/dist-export/components/home-shortcut-item/home-shortcut-item.type.js +1 -0
- package/dist-export/components/location/location.export.d.ts +8 -0
- package/dist-export/components/location/location.export.d.ts.map +1 -0
- package/dist-export/components/location/location.export.js +16 -0
- package/dist-export/components/location/location.type.d.ts +62 -0
- package/dist-export/components/location/location.type.d.ts.map +1 -0
- package/dist-export/components/location/location.type.js +1 -0
- package/dist-export/components/sportlight-search/sportlight-search.export.d.ts +15 -0
- package/dist-export/components/sportlight-search/sportlight-search.export.d.ts.map +1 -0
- package/dist-export/components/sportlight-search/sportlight-search.export.js +11 -0
- package/dist-export/components/sportlight-search/sportlight-search.type.d.ts +23 -0
- package/dist-export/components/sportlight-search/sportlight-search.type.d.ts.map +1 -0
- package/dist-export/components/sportlight-search/sportlight-search.type.js +5 -0
- package/dist-export/components/tag/tag.dropdown.d.ts +13 -0
- package/dist-export/components/tag/tag.dropdown.d.ts.map +1 -0
- package/dist-export/components/tag/tag.dropdown.export.d.ts +5 -0
- package/dist-export/components/tag/tag.dropdown.export.d.ts.map +1 -0
- package/dist-export/components/tag/tag.dropdown.export.js +6 -0
- package/dist-export/components/tag/tag.dropdown.js +84 -0
- package/dist-export/dto/base.dto.d.ts +6 -0
- package/dist-export/dto/base.dto.d.ts.map +1 -0
- package/dist-export/dto/base.dto.js +1 -0
- package/dist-export/export/export-dashboard.d.ts +5 -0
- package/dist-export/export/export-dashboard.d.ts.map +1 -0
- package/dist-export/export/export-dashboard.js +7 -0
- package/dist-export/export/export-env.d.ts +5 -0
- package/dist-export/export/export-env.d.ts.map +1 -0
- package/dist-export/export/export-env.js +5 -0
- package/dist-export/export/export-navigate.d.ts +3 -0
- package/dist-export/export/export-navigate.d.ts.map +1 -0
- package/dist-export/export/export-navigate.js +7 -0
- package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts +3 -0
- package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.d.ts.map +1 -0
- package/dist-export/export/export-use-is-contain-in-bottom-nav-bar.js +6 -0
- package/dist-export/export/index.d.ts +6 -0
- package/dist-export/export/index.d.ts.map +1 -0
- package/dist-export/export/index.js +5 -0
- package/dist-export/export.d.ts +131 -0
- package/dist-export/export.d.ts.map +1 -0
- package/dist-export/export.js +143 -0
- package/dist-export/locale/locale.export.d.ts +7 -0
- package/dist-export/locale/locale.export.d.ts.map +1 -0
- package/dist-export/locale/locale.export.js +9 -0
- package/dist-export/locale/locales/en-US.json +145 -0
- package/dist-export/locale/locales/my-MM.json +145 -0
- package/dist-export/locale/locales/zh-CN.json +145 -0
- package/dist-export/page/ai-assistant/ai-assistant.export.d.ts +5 -0
- package/dist-export/page/ai-assistant/ai-assistant.export.d.ts.map +1 -0
- package/dist-export/page/ai-assistant/ai-assistant.export.js +6 -0
- package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts +7 -0
- package/dist-export/page/ai-assistant/ai-assistant.locale.d.ts.map +1 -0
- package/dist-export/page/ai-assistant/ai-assistant.locale.js +9 -0
- package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts +16 -0
- package/dist-export/page/ai-assistant/component/assistant.dropdown.d.ts.map +1 -0
- package/dist-export/page/ai-assistant/component/assistant.dropdown.js +50 -0
- package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts +9 -0
- package/dist-export/page/ai-assistant/component/icon-park-icon.d.ts.map +1 -0
- package/dist-export/page/ai-assistant/component/icon-park-icon.js +11 -0
- package/dist-export/page/ai-assistant/locales/en-US.json +92 -0
- package/dist-export/page/ai-assistant/locales/my-MM.json +91 -0
- package/dist-export/page/ai-assistant/locales/zh-CN.json +91 -0
- package/dist-export/page/branch/branch.export.d.ts +4 -0
- package/dist-export/page/branch/branch.export.d.ts.map +1 -0
- package/dist-export/page/branch/branch.export.js +6 -0
- package/dist-export/page/branch/branch.types.d.ts +14 -0
- package/dist-export/page/branch/branch.types.d.ts.map +1 -0
- package/dist-export/page/branch/branch.types.js +1 -0
- package/dist-export/page/currency/currency.export.d.ts +6 -0
- package/dist-export/page/currency/currency.export.d.ts.map +1 -0
- package/dist-export/page/currency/currency.export.js +9 -0
- package/dist-export/page/currency/currency.type.d.ts +25 -0
- package/dist-export/page/currency/currency.type.d.ts.map +1 -0
- package/dist-export/page/currency/currency.type.js +1 -0
- package/dist-export/page/partner/partner.export.d.ts +4 -0
- package/dist-export/page/partner/partner.export.d.ts.map +1 -0
- package/dist-export/page/partner/partner.export.js +6 -0
- package/dist-export/page/partner/partner.types.d.ts +15 -0
- package/dist-export/page/partner/partner.types.d.ts.map +1 -0
- package/dist-export/page/partner/partner.types.js +1 -0
- package/dist-export/page/uoc/uoc.export.d.ts +5 -0
- package/dist-export/page/uoc/uoc.export.d.ts.map +1 -0
- package/dist-export/page/uoc/uoc.export.js +9 -0
- package/dist-export/page/uoc/uoc.types.d.ts +25 -0
- package/dist-export/page/uoc/uoc.types.d.ts.map +1 -0
- package/dist-export/page/uoc/uoc.types.js +1 -0
- package/dist-export/page/user/user.export.d.ts +4 -0
- package/dist-export/page/user/user.export.d.ts.map +1 -0
- package/dist-export/page/user/user.export.js +6 -0
- package/dist-export/page/user/user.types.d.ts +14 -0
- package/dist-export/page/user/user.types.d.ts.map +1 -0
- package/dist-export/page/user/user.types.js +1 -0
- package/dist-export/plugin/app-state.d.ts +5 -0
- package/dist-export/plugin/app-state.d.ts.map +1 -0
- package/dist-export/plugin/app-state.js +157 -0
- package/dist-export/plugin/export.d.ts +3 -0
- package/dist-export/plugin/export.d.ts.map +1 -0
- package/dist-export/plugin/export.js +7 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts +6 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.d.ts.map +1 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.export.js +6 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts +8 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.d.ts.map +1 -0
- package/dist-export/store/bottom-nav-bar/bottom-nav-bar.type.js +1 -0
- package/dist-export/store/dto.d.ts +10 -0
- package/dist-export/store/dto.d.ts.map +1 -0
- package/dist-export/store/dto.js +11 -0
- package/dist-export/store/home-shortcut/home-shortcut.export.d.ts +7 -0
- package/dist-export/store/home-shortcut/home-shortcut.export.d.ts.map +1 -0
- package/dist-export/store/home-shortcut/home-shortcut.export.js +9 -0
- package/dist-export/store/home-shortcut/home-shortcut.type.d.ts +20 -0
- package/dist-export/store/home-shortcut/home-shortcut.type.d.ts.map +1 -0
- package/dist-export/store/home-shortcut/home-shortcut.type.js +1 -0
- package/dist-export/store/nav-menu/nav-menu.export.d.ts +6 -0
- package/dist-export/store/nav-menu/nav-menu.export.d.ts.map +1 -0
- package/dist-export/store/nav-menu/nav-menu.export.js +6 -0
- package/dist-export/store/nav-menu/nav-menu.type.d.ts +46 -0
- package/dist-export/store/nav-menu/nav-menu.type.d.ts.map +1 -0
- package/dist-export/store/nav-menu/nav-menu.type.js +1 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts +3 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.d.ts.map +1 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.export.js +6 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts +14 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.d.ts.map +1 -0
- package/dist-export/store/partner-detail-tab-store/partner-detail-tab.type.js +1 -0
- package/dist-export/store/permission-template/permission-template.export.d.ts +7 -0
- package/dist-export/store/permission-template/permission-template.export.d.ts.map +1 -0
- package/dist-export/store/permission-template/permission-template.export.js +9 -0
- package/dist-export/store/permission-template/permission-template.type.d.ts +13 -0
- package/dist-export/store/permission-template/permission-template.type.d.ts.map +1 -0
- package/dist-export/store/permission-template/permission-template.type.js +1 -0
- package/dist-export/store/root-component-store/root-component.export.d.ts +6 -0
- package/dist-export/store/root-component-store/root-component.export.d.ts.map +1 -0
- package/dist-export/store/root-component-store/root-component.export.js +9 -0
- package/dist-export/store/root-component-store/root-component.type.d.ts +7 -0
- package/dist-export/store/root-component-store/root-component.type.d.ts.map +1 -0
- package/dist-export/store/root-component-store/root-component.type.js +1 -0
- package/dist-export/store/web-env/web-env.export.d.ts +6 -0
- package/dist-export/store/web-env/web-env.export.d.ts.map +1 -0
- package/dist-export/store/web-env/web-env.export.js +9 -0
- package/dist-export/store/web-env/web-env.store.d.ts +6 -0
- package/dist-export/store/web-env/web-env.store.d.ts.map +1 -0
- package/dist-export/store/web-env/web-env.store.js +16 -0
- package/dist-export/store/web-env/web-env.type.d.ts +16 -0
- package/dist-export/store/web-env/web-env.type.d.ts.map +1 -0
- package/dist-export/store/web-env/web-env.type.js +1 -0
- package/dist-export/utils/axios-client.d.ts +5 -0
- package/dist-export/utils/axios-client.d.ts.map +1 -0
- package/dist-export/utils/axios-client.js +84 -0
- package/dist-export/utils/common.d.ts +6 -0
- package/dist-export/utils/common.d.ts.map +1 -0
- package/dist-export/utils/common.js +5 -0
- package/dist-export/utils/index.d.ts +3 -0
- package/dist-export/utils/index.d.ts.map +1 -0
- package/dist-export/utils/index.js +2 -0
- package/dist-export/utils/pagination.d.ts +11 -0
- package/dist-export/utils/pagination.d.ts.map +1 -0
- package/dist-export/utils/pagination.js +6 -0
- package/dist-export/utils/react-query-indexed-db-persister.d.ts +7 -0
- package/dist-export/utils/react-query-indexed-db-persister.d.ts.map +1 -0
- package/dist-export/utils/react-query-indexed-db-persister.js +21 -0
- package/dist-export/utils/types.utils.d.ts +2 -0
- package/dist-export/utils/types.utils.d.ts.map +1 -0
- package/dist-export/utils/types.utils.js +1 -0
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
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
|
+
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 @@
|
|
|
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"}
|