@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 @@
|
|
|
1
|
+
{"version":3,"file":"ai-assistant.locale.d.ts","sourceRoot":"","sources":["../../../src/page/ai-assistant/ai-assistant.locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEpF,eAAO,MAAM,qBAAqB,EAAE,cAInC,CAAA;AAED,wBAAgB,oBAAoB;;;EAEnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useLazyLocaleTranslation } from "@quan-erp/shared-ui";
|
|
2
|
+
export const AiAssistantLocaleLazy = {
|
|
3
|
+
'en-US': () => import('./locales/en-US.json'),
|
|
4
|
+
'my-MM': () => import('./locales/my-MM.json'),
|
|
5
|
+
'zh-CN': () => import('./locales/zh-CN.json'),
|
|
6
|
+
};
|
|
7
|
+
export function useAiAssistantLocale() {
|
|
8
|
+
return useLazyLocaleTranslation(AiAssistantLocaleLazy);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AIAssistantDto } from "../../../api/ai-assistant/ai-assistant.dto";
|
|
3
|
+
import type { TakeAndPartialRest } from "../../../utils/types.utils";
|
|
4
|
+
export type AssistantDropdownValue = string | TakeAndPartialRest<AIAssistantDto, "shortId">;
|
|
5
|
+
export type AssistantDropdownProps = {
|
|
6
|
+
value?: AssistantDropdownValue;
|
|
7
|
+
trigger?: (value?: AssistantDropdownValue) => ReactNode;
|
|
8
|
+
setValue: (v?: string, assistant?: AIAssistantDto) => void;
|
|
9
|
+
isCompact?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
allowClear?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function AssistantDropdown({ value, setValue, trigger, isCompact, className, disabled, allowClear, placeholder: externalPlaceholder, }: AssistantDropdownProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=assistant.dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.dropdown.d.ts","sourceRoot":"","sources":["../../../../src/page/ai-assistant/component/assistant.dropdown.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAEjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,kBAAkB,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;AAE5F,MAAM,MAAM,sBAAsB,GAAG;IACjC,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,sBAAsB,KAAK,SAAS,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3D,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,CAAC;AAOF,wBAAgB,iBAAiB,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EAAE,mBAAmB,GACnC,EAAE,sBAAsB,+BAqKxB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, Popover, PopoverContent, PopoverTrigger, cn, useMediaQuery, useDebounceValue, Drawer, DrawerTrigger, DrawerContent, } from "@quan-erp/shared-ui";
|
|
3
|
+
import { Check, Down, LoadingFour } from "@icon-park/react";
|
|
4
|
+
import { useMemo, useState } from "react";
|
|
5
|
+
import { useAvailableAssistantQuery } from "../../../api/ai-assistant/ai-assistant.api";
|
|
6
|
+
import { useAiAssistantLocale } from "../ai-assistant.locale";
|
|
7
|
+
import { IconParkIcon } from "./icon-park-icon";
|
|
8
|
+
function resolveAssistantShortId(value) {
|
|
9
|
+
if (value == null)
|
|
10
|
+
return undefined;
|
|
11
|
+
return typeof value === "string" ? value : value.shortId;
|
|
12
|
+
}
|
|
13
|
+
export function AssistantDropdown({ value, setValue, trigger, isCompact, className, disabled, allowClear, placeholder: externalPlaceholder, }) {
|
|
14
|
+
const t = useAiAssistantLocale();
|
|
15
|
+
const placeholder = externalPlaceholder || t.get("select-assistant", "Select Assistant...");
|
|
16
|
+
const [open, setOpen] = useState(false);
|
|
17
|
+
const [search, setSearch] = useState("");
|
|
18
|
+
const debouncedSearch = useDebounceValue(search, 500);
|
|
19
|
+
const isMobile = useMediaQuery();
|
|
20
|
+
const { data: assistantsData = [], isLoading } = useAvailableAssistantQuery({
|
|
21
|
+
currentPage: 1,
|
|
22
|
+
pageSize: 50,
|
|
23
|
+
query: debouncedSearch,
|
|
24
|
+
});
|
|
25
|
+
const selectedShortId = resolveAssistantShortId(value);
|
|
26
|
+
const selectedLabel = useMemo(() => {
|
|
27
|
+
if (trigger)
|
|
28
|
+
return null;
|
|
29
|
+
if (!selectedShortId)
|
|
30
|
+
return placeholder;
|
|
31
|
+
const found = assistantsData.find((a) => a.shortId === selectedShortId);
|
|
32
|
+
if (!found) {
|
|
33
|
+
return typeof value === "object" && value?.name ? value.name : placeholder;
|
|
34
|
+
}
|
|
35
|
+
return found.name;
|
|
36
|
+
}, [value, selectedShortId, assistantsData, placeholder, trigger]);
|
|
37
|
+
const ListContent = (_jsxs(Command, { shouldFilter: false, className: cn("builtin:bg-transparent"), children: [_jsx(CommandInput, { placeholder: t.get("search-assistant", "Search assistant..."), autoFocus: false, value: search, onValueChange: setSearch }), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: isLoading ? (_jsxs("div", { className: "builtin:flex builtin:items-center builtin:gap-2", children: [_jsx(LoadingFour, { className: "builtin:h-4 builtin:w-4 builtin:animate-spin" }), _jsx("span", { children: t.get("searching", "Searching...") })] })) : (t.get("no-assistants-found", "No assistants found.")) }), _jsxs(CommandGroup, { heading: t.get("available-assistants", "Available Assistants"), children: [allowClear && (_jsxs(CommandItem, { value: "all assistants", onSelect: () => {
|
|
38
|
+
setValue(undefined, undefined);
|
|
39
|
+
setOpen(false);
|
|
40
|
+
}, className: cn("builtin:flex builtin:cursor-pointer builtin:items-center builtin:justify-between builtin:px-3 builtin:py-3 builtin:md:py-2 builtin:md:h-10 builtin:h-12 builtin:rounded-2xl", !selectedShortId && "builtin:bg-accent/50"), children: [_jsx("div", { className: "builtin:flex builtin:items-center builtin:gap-3", children: _jsx("span", { className: "builtin:text-sm builtin:leading-none builtin:font-semibold", children: placeholder }) }), !selectedShortId && _jsx(Check, { className: "builtin:text-primary builtin:h-4 builtin:w-4" })] })), assistantsData.map((assistant) => {
|
|
41
|
+
return (_jsxs(CommandItem, { value: assistant.name, onSelect: () => {
|
|
42
|
+
setValue(assistant.shortId, assistant);
|
|
43
|
+
setOpen(false);
|
|
44
|
+
}, className: cn("builtin:flex builtin:cursor-pointer builtin:items-center builtin:justify-between builtin:px-3 builtin:py-3 builtin:md:py-2 builtin:rounded-2xl", selectedShortId === assistant.shortId && "builtin:bg-accent/50"), children: [_jsxs("div", { className: "builtin:flex builtin:items-center builtin:gap-3", children: [_jsx("div", { className: "builtin:border-border builtin:bg-muted/50 builtin:text-muted-foreground builtin:flex builtin:min-h-10 builtin:min-w-10 builtin:p-2 builtin:items-center builtin:justify-center builtin:rounded-full builtin:border", children: _jsx(IconParkIcon, { name: assistant.icon, className: "builtin:h-4 builtin:w-4 builtin:p-0" }) }), _jsxs("div", { className: "builtin:flex builtin:flex-col builtin:gap-0.5", children: [_jsx("span", { className: "builtin:text-sm builtin:leading-none builtin:font-semibold", children: assistant.name }), _jsx("span", { className: "builtin:text-muted-foreground builtin:text-[10px] builtin:line-clamp-2", children: assistant.description })] })] }), selectedShortId === assistant.shortId && _jsx(Check, { className: "builtin:text-primary builtin:h-4 builtin:w-4" })] }, assistant.shortId));
|
|
45
|
+
})] })] })] }));
|
|
46
|
+
if (isMobile) {
|
|
47
|
+
return (_jsxs(Drawer, { open: open, onOpenChange: setOpen, children: [_jsx(DrawerTrigger, { asChild: true, children: trigger ? trigger(value) : (_jsxs(Button, { variant: "select", disabled: disabled, role: "combobox", "aria-expanded": open, className: cn("builtin:border-input/50 builtin:hover:bg-accent builtin:hover:text-accent-foreground builtin:w-full builtin:justify-between builtin:font-normal builtin:transition-colors", isCompact ? "builtin:h-8 builtin:px-2 builtin:text-xs" : "builtin:h-11 builtin:px-3 builtin:text-sm", className), children: [_jsx("span", { className: "builtin:truncate", children: selectedLabel }), _jsx(Down, { className: "builtin:ml-2 builtin:h-4 builtin:w-4 builtin:shrink-0 builtin:opacity-50" })] })) }), _jsx(DrawerContent, { className: "builtin:flex builtin:max-h-[85vh] builtin:flex-col builtin:overflow-hidden builtin:p-2", children: ListContent })] }));
|
|
48
|
+
}
|
|
49
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, modal: true, children: [_jsx(PopoverTrigger, { asChild: true, children: trigger ? trigger(value) : (_jsxs(Button, { variant: "select", role: "combobox", disabled: disabled, "aria-expanded": open, className: cn("builtin:border-input/50 builtin:hover:bg-accent builtin:hover:text-accent-foreground builtin:w-full builtin:justify-between builtin:font-normal builtin:shadow-sm builtin:transition-colors", isCompact ? "builtin:h-8 builtin:px-2 builtin:text-xs" : "builtin:h-9 builtin:px-3 builtin:text-sm", className), children: [_jsx("span", { className: "builtin:truncate", children: selectedLabel }), _jsx(Down, { className: "builtin:text-muted-foreground builtin:ml-2 builtin:h-4 builtin:w-4 builtin:shrink-0 builtin:opacity-50" })] })) }), _jsx(PopoverContent, { className: "builtin:w-[300px] builtin:p-0 builtin:shadow-lg", align: "start", children: ListContent })] }));
|
|
50
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as IconPark from "@icon-park/react";
|
|
2
|
+
type IconName = keyof typeof IconPark;
|
|
3
|
+
export declare function IconParkIcon(props: {
|
|
4
|
+
name: IconName | string | undefined;
|
|
5
|
+
size?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=icon-park-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-park-icon.d.ts","sourceRoot":"","sources":["../../../../src/page/ai-assistant/component/icon-park-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,KAAK,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAGtC,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAChC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,sCAKA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@quan-erp/shared-ui";
|
|
3
|
+
import * as IconPark from "@icon-park/react";
|
|
4
|
+
export function IconParkIcon(props) {
|
|
5
|
+
if (!props.name)
|
|
6
|
+
return null;
|
|
7
|
+
const Icon = IconPark[props.name];
|
|
8
|
+
if (!Icon || props.name === "DEFAULT_ICON_CONFIGS")
|
|
9
|
+
return null;
|
|
10
|
+
return _jsx(Icon, { theme: "outline", size: props.size, className: cn("builtin:p-1", props.className) });
|
|
11
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ai-assistant": "AI Assistant",
|
|
3
|
+
"ai-assistant-list": "AI Assistant list",
|
|
4
|
+
"create": "Create",
|
|
5
|
+
"loading-ai-assistants": "Loading AI Assistants...",
|
|
6
|
+
"failed-to-load-ai-assistants": "Failed to load AI Assistants. Please check your connection.",
|
|
7
|
+
"no-ai-assistants-found": "No AI Assistants found",
|
|
8
|
+
"no-ai-assistants-created-yet": "There are no AI Assistants created yet.",
|
|
9
|
+
"id": "ID",
|
|
10
|
+
"manage": "Manage",
|
|
11
|
+
"delete-ai-assistant": "Delete AI Assistant",
|
|
12
|
+
"are-you-sure-to-delete-ai-assistant": "Are you sure to delete AI Assistant?",
|
|
13
|
+
"edit-ai-assistant": "Edit AI Assistant",
|
|
14
|
+
"create-ai-assistant": "Create AI Assistant",
|
|
15
|
+
"icon": "Icon",
|
|
16
|
+
"select-icon": "Select icon",
|
|
17
|
+
"search-icons": "Search icons...",
|
|
18
|
+
"short-id": "Short ID",
|
|
19
|
+
"cannot-edit-after-created": "Cannot edit after created",
|
|
20
|
+
"name": "Name",
|
|
21
|
+
"ai-assistant-name": "AI Assistant Name",
|
|
22
|
+
"description": "Description",
|
|
23
|
+
"describe-what-this-assistant-does": "Describe what this assistant does...",
|
|
24
|
+
"allowed-roles": "Allowed Roles",
|
|
25
|
+
"model": "Model",
|
|
26
|
+
"select-model": "Select model",
|
|
27
|
+
"tools": "Tools",
|
|
28
|
+
"add-tools": "Add tools...",
|
|
29
|
+
"search-tools": "Search tools...",
|
|
30
|
+
"no-tools-found": "No tools found.",
|
|
31
|
+
"remove": "Remove",
|
|
32
|
+
"system-prompt": "System prompt",
|
|
33
|
+
"define-main-purpose": "Define the main purpose and mission of this assistant",
|
|
34
|
+
"identity": "Identity",
|
|
35
|
+
"eg-expert-ai-assistant": "e.g. Expert AI Assistant",
|
|
36
|
+
"role": "Role",
|
|
37
|
+
"eg-senior-software-engineer": "e.g. Senior Software Engineer",
|
|
38
|
+
"core-mission": "Core Mission",
|
|
39
|
+
"objective": "Objective",
|
|
40
|
+
"what-should-assistant-achieve": "What should the assistant achieve?",
|
|
41
|
+
"scope-of-knowledge": "Scope of Knowledge",
|
|
42
|
+
"define-knowledge-areas": "Define what knowledge areas the assistant can cover",
|
|
43
|
+
"scope-of-work": "Scope of Work",
|
|
44
|
+
"mandatory-rules": "Mandatory Rules",
|
|
45
|
+
"list-strict-rules": "List any strict rules or constraints",
|
|
46
|
+
"language-policy": "Language Policy",
|
|
47
|
+
"specify-language-preferences": "Specify language preferences or tone",
|
|
48
|
+
"response-structure": "Response Structure",
|
|
49
|
+
"how-should-assistant-format": "How should the assistant format its answers?",
|
|
50
|
+
"tool-usage-guidelines": "Tool Usage Guidelines",
|
|
51
|
+
"when-and-how-to-use-tools": "When and how to use the assigned tools",
|
|
52
|
+
"additional-info": "Additional Info",
|
|
53
|
+
"any-other-context": "Any other context or instructions",
|
|
54
|
+
"ai-models": "AI Models",
|
|
55
|
+
"base-url": "Base URL",
|
|
56
|
+
"sdk-type": "SDK Type",
|
|
57
|
+
"active": "Active",
|
|
58
|
+
"yes": "Yes",
|
|
59
|
+
"no": "No",
|
|
60
|
+
"delete-ai-model": "Delete AI Model",
|
|
61
|
+
"are-you-sure-to-delete-ai-model": "Are you sure to delete AI Model?",
|
|
62
|
+
"selected": "selected",
|
|
63
|
+
"select-roles": "Select roles...",
|
|
64
|
+
"search-roles": "Search roles...",
|
|
65
|
+
"no-role-found": "No role found",
|
|
66
|
+
"create-ai-model": "Create AI Model",
|
|
67
|
+
"edit-ai-model": "Edit AI Model",
|
|
68
|
+
"model-id": "Model ID",
|
|
69
|
+
"only-applicable-to-non-ollama": "Only applicable to non-ollama providers",
|
|
70
|
+
"api-key": "API Key",
|
|
71
|
+
"provider": "Provider",
|
|
72
|
+
"select-provider": "Select Provider",
|
|
73
|
+
"save": "Save",
|
|
74
|
+
"cancel": "Cancel",
|
|
75
|
+
"conversation-history": "Conversation history",
|
|
76
|
+
"conversation-deleted": "Conversation deleted",
|
|
77
|
+
"stop": "Stop",
|
|
78
|
+
"copy": "Copy",
|
|
79
|
+
"type-your-message": "Type your message...",
|
|
80
|
+
"ai-is-typing": "AI is typing...",
|
|
81
|
+
"no-messages-yet": "No messages yet, start a conversation!",
|
|
82
|
+
"delete-conversation": "Delete conversation",
|
|
83
|
+
"are-you-sure-to-delete-conversation": "Are you sure to delete this conversation?",
|
|
84
|
+
"copied": "Copied",
|
|
85
|
+
"you": "You",
|
|
86
|
+
"ask-business-question": "Ask business question...",
|
|
87
|
+
"select-assistant": "Select Assistant...",
|
|
88
|
+
"search-assistant": "Search assistant...",
|
|
89
|
+
"searching": "Searching...",
|
|
90
|
+
"available-assistants": "Available Assistants",
|
|
91
|
+
"no-assistants-found": "No assistants found."
|
|
92
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ai-assistant": "AI အကူအညီ",
|
|
3
|
+
"ai-assistant-list": "AI အကူအညီစာရင်း",
|
|
4
|
+
"create": "ဖန်တီးရန်",
|
|
5
|
+
"loading-ai-assistants": "AI အကူအညီများကို တင်နေပါသည်...",
|
|
6
|
+
"failed-to-load-ai-assistants": "AI အကူအညီများကို တင်၍မရပါ။ သင့်အင်တာနက်ချိတ်ဆက်မှုကို စစ်ဆေးပါ။",
|
|
7
|
+
"no-ai-assistants-found": "AI အကူအညီများ မတွေ့ပါ",
|
|
8
|
+
"no-ai-assistants-created-yet": "ဖန်တီးထားသော AI အကူအညီများ မရှိသေးပါ။",
|
|
9
|
+
"id": "ID",
|
|
10
|
+
"manage": "စီမံရန်",
|
|
11
|
+
"delete-ai-assistant": "AI အကူအညီကို ဖျက်ရန်",
|
|
12
|
+
"are-you-sure-to-delete-ai-assistant": "AI အကူအညီကို ဖျက်ရန် သေချာပါသလား?",
|
|
13
|
+
"edit-ai-assistant": "AI အကူအညီကို ပြင်ဆင်ရန်",
|
|
14
|
+
"create-ai-assistant": "AI အကူအညီကို ဖန်တီးရန်",
|
|
15
|
+
"icon": "အိုင်ကွန်",
|
|
16
|
+
"select-icon": "အိုင်ကွန်ကို ရွေးချယ်ပါ",
|
|
17
|
+
"search-icons": "အိုင်ကွန်များကို ရှာရန်...",
|
|
18
|
+
"short-id": "ID အတို",
|
|
19
|
+
"cannot-edit-after-created": "ဖန်တီးပြီးနောက် ပြင်ဆင်၍မရပါ",
|
|
20
|
+
"name": "အမည်",
|
|
21
|
+
"ai-assistant-name": "AI အကူအညီ အမည်",
|
|
22
|
+
"description": "ဖော်ပြချက်",
|
|
23
|
+
"describe-what-this-assistant-does": "ဤအကူအညီ ဘာလုပ်သလဲဆိုတာကို ဖော်ပြပါ...",
|
|
24
|
+
"allowed-roles": "ခွင့်ပြုထားသော အခန်းကဏ္ဍများ",
|
|
25
|
+
"model": "မော်ဒယ်",
|
|
26
|
+
"select-model": "မော်ဒယ်ကို ရွေးချယ်ပါ",
|
|
27
|
+
"tools": "ကိရိယာများ",
|
|
28
|
+
"add-tools": "ကိရိယာများကို ထည့်ရန်...",
|
|
29
|
+
"search-tools": "ကိရိယာများကို ရှာရန်...",
|
|
30
|
+
"no-tools-found": "ကိရိယာများ မတွေ့ပါ",
|
|
31
|
+
"remove": "ဖယ်ရှားရန်",
|
|
32
|
+
"system-prompt": "စနစ် ညွှန်ကြားချက်",
|
|
33
|
+
"define-main-purpose": "ဤအကူအညီ၏ အဓိကရည်ရွယ်ချက်နှင့် လုပ်ငန်းစဉ်ကို သတ်မှတ်ပါ",
|
|
34
|
+
"identity": "ကိုယ်ပိုင်လက္ခဏာ",
|
|
35
|
+
"eg-expert-ai-assistant": "ဥပမာ- ကျွမ်းကျင်သော AI အကူအညီ",
|
|
36
|
+
"role": "အခန်းကဏ္ဍ",
|
|
37
|
+
"eg-senior-software-engineer": "ဥပမာ- အကြီးတန်း ဆော့ဖ်ဝဲလ် အင်ဂျင်နီယာ",
|
|
38
|
+
"core-mission": "အဓိက လုပ်ငန်းစဉ်",
|
|
39
|
+
"objective": "ရည်ရွယ်ချက်",
|
|
40
|
+
"what-should-assistant-achieve": "အကူအညီသည် ဘာကို ပြီးမြောက်သင့်သလဲ?",
|
|
41
|
+
"scope-of-knowledge": "အသိပညာ နယ်ပယ်",
|
|
42
|
+
"define-knowledge-areas": "အကူအညီသည် မည်သည့် အသိပညာနယ်ပယ်များကို လွှမ်းခြုံနိုင်သည်ကို သတ်မှတ်ပါ",
|
|
43
|
+
"scope-of-work": "လုပ်ငန်း နယ်ပယ်",
|
|
44
|
+
"mandatory-rules": "မဖြစ်မနေ လိုက်နာရမည့် စည်းကမ်းများ",
|
|
45
|
+
"list-strict-rules": "တင်းကျပ်သော စည်းကမ်းများ သို့မဟုတ် ကန့်သတ်ချက်များကို စာရင်းပြုစုပါ",
|
|
46
|
+
"language-policy": "ဘာသာစကား မူဝါဒ",
|
|
47
|
+
"specify-language-preferences": "ဘာသာစကား နှစ်သက်မှု သို့မဟုတ် လေယူလေသိမ်းကို သတ်မှတ်ပါ",
|
|
48
|
+
"response-structure": "တုံ့ပြန်မှု ဖွဲ့စည်းပုံ",
|
|
49
|
+
"how-should-assistant-format": "အကူအညီသည် ၎င်း၏ အဖြေများကို မည်သို့ ဖွဲ့စည်းသင့်သနည်း?",
|
|
50
|
+
"tool-usage-guidelines": "ကိရိယာ အသုံးပြုမှု လမ်းညွှန်ချက်များ",
|
|
51
|
+
"when-and-how-to-use-tools": "သတ်မှတ်ထားသော ကိရိယာများကို မည်သည့်အချိန်နှင့် မည်သို့ အသုံးပြုရမည်နည်း",
|
|
52
|
+
"additional-info": "အပို အချက်အလက်",
|
|
53
|
+
"any-other-context": "အခြား ဆက်စပ်အကြောင်းအရာ သို့မဟုတ် ညွှန်ကြားချက်များ",
|
|
54
|
+
"ai-models": "AI မော်ဒယ်များ",
|
|
55
|
+
"base-url": "အခြေခံ URL",
|
|
56
|
+
"sdk-type": "SDK အမျိုးအစား",
|
|
57
|
+
"active": "တက်ကြွသော",
|
|
58
|
+
"yes": "ဟုတ်ကဲ့",
|
|
59
|
+
"no": "ဟင့်အင်း",
|
|
60
|
+
"delete-ai-model": "AI မော်ဒယ်ကို ဖျက်ရန်",
|
|
61
|
+
"are-you-sure-to-delete-ai-model": "AI မော်ဒယ်ကို ဖျက်ရန် သေချာပါသလား?",
|
|
62
|
+
"selected": "ရွေးချယ်ထားသည်",
|
|
63
|
+
"select-roles": "အခန်းကဏ္ဍများကို ရွေးချယ်ပါ...",
|
|
64
|
+
"search-roles": "အခန်းကဏ္ဍများကို ရှာရန်...",
|
|
65
|
+
"no-role-found": "အခန်းကဏ္ဍ မတွေ့ပါ",
|
|
66
|
+
"create-ai-model": "AI မော်ဒယ်ကို ဖန်တီးရန်",
|
|
67
|
+
"edit-ai-model": "AI မော်ဒယ်ကို ပြင်ဆင်ရန်",
|
|
68
|
+
"model-id": "မော်ဒယ် ID",
|
|
69
|
+
"only-applicable-to-non-ollama": "ollama မဟုတ်သော ပံ့ပိုးသူများအတွက်သာ အကျုံးဝင်သည်",
|
|
70
|
+
"api-key": "API သော့",
|
|
71
|
+
"provider": "ပံ့ပိုးသူ",
|
|
72
|
+
"select-provider": "ပံ့ပိုးသူကို ရွေးချယ်ပါ",
|
|
73
|
+
"save": "သိမ်းဆည်းရန်",
|
|
74
|
+
"cancel": "ပယ်ဖျက်ရန်",
|
|
75
|
+
"conversation-history": "စကားပြောဆိုမှု ရာဇဝင်",
|
|
76
|
+
"conversation-deleted": "စကားပြောဆိုမှုကို ဖျက်လိုက်ပါပြီ",
|
|
77
|
+
"stop": "ရပ်တန့်ရန်",
|
|
78
|
+
"copy": "ကူးယူရန်",
|
|
79
|
+
"copied": "ကူးယူပြီးပါပြီ",
|
|
80
|
+
"you": "သင်",
|
|
81
|
+
"type-your-message": "သင့်မက်ဆေ့ခ်ျကို ရိုက်ထည့်ပါ...",
|
|
82
|
+
"ai-is-typing": "AI ရိုက်နေသည်...",
|
|
83
|
+
"no-messages-yet": "မက်ဆေ့ခ်ျများ မရှိသေးပါ၊ စကားပြောဆိုမှုကို စတင်လိုက်ပါ!",
|
|
84
|
+
"delete-conversation": "စကားပြောဆိုမှုကို ဖျက်ရန်",
|
|
85
|
+
"are-you-sure-to-delete-conversation": "ဤစကားပြောဆိုမှုကို ဖျက်ရန် သေချာပါသလား?",
|
|
86
|
+
"select-assistant": "AI အကူအညီရွေးပါ...",
|
|
87
|
+
"search-assistant": "AI အကူအညီရှာရန်...",
|
|
88
|
+
"searching": "ရှာဖွေနေသည်...",
|
|
89
|
+
"available-assistants": "ရရှိနိုင်သော AI အကူအညီများ",
|
|
90
|
+
"no-assistants-found": "AI အကူအညီများ မတွေ့ပါ။"
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ai-assistant": "AI 助手",
|
|
3
|
+
"ai-assistant-list": "AI 助手列表",
|
|
4
|
+
"create": "创建",
|
|
5
|
+
"loading-ai-assistants": "正在加载 AI 助手...",
|
|
6
|
+
"failed-to-load-ai-assistants": "加载 AI 助手失败。请检查您的网络连接。",
|
|
7
|
+
"no-ai-assistants-found": "未找到 AI 助手",
|
|
8
|
+
"no-ai-assistants-created-yet": "尚未创建任何 AI 助手。",
|
|
9
|
+
"id": "ID",
|
|
10
|
+
"manage": "管理",
|
|
11
|
+
"delete-ai-assistant": "删除 AI 助手",
|
|
12
|
+
"are-you-sure-to-delete-ai-assistant": "确定要删除此 AI 助手吗?",
|
|
13
|
+
"edit-ai-assistant": "编辑 AI 助手",
|
|
14
|
+
"create-ai-assistant": "创建 AI 助手",
|
|
15
|
+
"icon": "图标",
|
|
16
|
+
"select-icon": "选择图标",
|
|
17
|
+
"search-icons": "搜索图标...",
|
|
18
|
+
"short-id": "短 ID",
|
|
19
|
+
"cannot-edit-after-created": "创建后无法编辑",
|
|
20
|
+
"name": "名称",
|
|
21
|
+
"ai-assistant-name": "AI 助手名称",
|
|
22
|
+
"description": "描述",
|
|
23
|
+
"describe-what-this-assistant-does": "描述此助手的功能...",
|
|
24
|
+
"allowed-roles": "允许的角色",
|
|
25
|
+
"model": "模型",
|
|
26
|
+
"select-model": "选择模型",
|
|
27
|
+
"tools": "工具",
|
|
28
|
+
"add-tools": "添加工具...",
|
|
29
|
+
"search-tools": "搜索工具...",
|
|
30
|
+
"no-tools-found": "未找到工具。",
|
|
31
|
+
"remove": "移除",
|
|
32
|
+
"system-prompt": "系统提示词",
|
|
33
|
+
"define-main-purpose": "定义此助手的主要目的和任务",
|
|
34
|
+
"identity": "身份",
|
|
35
|
+
"eg-expert-ai-assistant": "例如:专家级 AI 助手",
|
|
36
|
+
"role": "角色",
|
|
37
|
+
"eg-senior-software-engineer": "例如:高级软件工程师",
|
|
38
|
+
"core-mission": "核心任务",
|
|
39
|
+
"objective": "目标",
|
|
40
|
+
"what-should-assistant-achieve": "助手应该实现什么目标?",
|
|
41
|
+
"scope-of-knowledge": "知识范围",
|
|
42
|
+
"define-knowledge-areas": "定义助手可以涵盖的知识领域",
|
|
43
|
+
"scope-of-work": "工作范围",
|
|
44
|
+
"mandatory-rules": "强制性规则",
|
|
45
|
+
"list-strict-rules": "列出任何严格的规则或限制",
|
|
46
|
+
"language-policy": "语言政策",
|
|
47
|
+
"specify-language-preferences": "指定语言偏好或语气",
|
|
48
|
+
"response-structure": "响应结构",
|
|
49
|
+
"how-should-assistant-format": "助手应该如何格式化其回答?",
|
|
50
|
+
"tool-usage-guidelines": "工具使用指南",
|
|
51
|
+
"when-and-how-to-use-tools": "何时以及如何使用分配的工具",
|
|
52
|
+
"additional-info": "附加信息",
|
|
53
|
+
"any-other-context": "任何其他上下文或说明",
|
|
54
|
+
"ai-models": "AI 模型",
|
|
55
|
+
"base-url": "基础 URL",
|
|
56
|
+
"sdk-type": "SDK 类型",
|
|
57
|
+
"active": "启用",
|
|
58
|
+
"yes": "是",
|
|
59
|
+
"no": "否",
|
|
60
|
+
"delete-ai-model": "删除 AI 模型",
|
|
61
|
+
"are-you-sure-to-delete-ai-model": "确定要删除此 AI 模型吗?",
|
|
62
|
+
"selected": "已选择",
|
|
63
|
+
"select-roles": "选择角色...",
|
|
64
|
+
"search-roles": "搜索角色...",
|
|
65
|
+
"no-role-found": "未找到角色",
|
|
66
|
+
"create-ai-model": "创建 AI 模型",
|
|
67
|
+
"edit-ai-model": "编辑 AI 模型",
|
|
68
|
+
"model-id": "模型 ID",
|
|
69
|
+
"only-applicable-to-non-ollama": "仅适用于非 Ollama 提供商",
|
|
70
|
+
"api-key": "API 密钥",
|
|
71
|
+
"provider": "提供商",
|
|
72
|
+
"select-provider": "选择提供商",
|
|
73
|
+
"save": "保存",
|
|
74
|
+
"cancel": "取消",
|
|
75
|
+
"conversation-history": "对话历史",
|
|
76
|
+
"conversation-deleted": "对话已删除",
|
|
77
|
+
"stop": "停止",
|
|
78
|
+
"copy": "复制",
|
|
79
|
+
"copied": "已复制",
|
|
80
|
+
"you": "你",
|
|
81
|
+
"type-your-message": "输入您的消息...",
|
|
82
|
+
"ai-is-typing": "AI 正在输入...",
|
|
83
|
+
"no-messages-yet": "暂无消息,开始对话吧!",
|
|
84
|
+
"delete-conversation": "删除对话",
|
|
85
|
+
"are-you-sure-to-delete-conversation": "确定要删除此对话吗?",
|
|
86
|
+
"select-assistant": "选择助手...",
|
|
87
|
+
"search-assistant": "搜索助手...",
|
|
88
|
+
"searching": "搜索中...",
|
|
89
|
+
"available-assistants": "可用助手",
|
|
90
|
+
"no-assistants-found": "未找到助手。"
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.export.d.ts","sourceRoot":"","sources":["../../../src/page/branch/branch.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,aAExD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginAPI } from "@quan-erp/shared-frontend-core";
|
|
2
|
+
import { APINames } from "../../export";
|
|
3
|
+
import { BUILTIN_PLUGIN } from "../../utils/common";
|
|
4
|
+
export function BranchDropdown(props) {
|
|
5
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.BranchDropdown)(props);
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BranchDto } from "../../export";
|
|
2
|
+
import type { TakeAndPartialRest } from "../../utils/types.utils";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
export type BranchDropdownProps = {
|
|
5
|
+
value?: number | TakeAndPartialRest<BranchDto, "id" | 'name'>;
|
|
6
|
+
trigger?: (value?: number | TakeAndPartialRest<BranchDto, "id" | 'name'>) => ReactNode;
|
|
7
|
+
setValue: (v?: number, branch?: BranchDto) => void;
|
|
8
|
+
isCompact?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
allowClear?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=branch.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.types.d.ts","sourceRoot":"","sources":["../../../src/page/branch/branch.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,SAAS,CAAC;IACvF,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACnD,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,6 @@
|
|
|
1
|
+
import type { CurrencyDropdownProps, CurrencyInputProps } from "./currency.type";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export declare function CurrencyDropdown(props: CurrencyDropdownProps): ReactNode;
|
|
4
|
+
export declare function CurrencyInput(props: CurrencyInputProps): ReactNode;
|
|
5
|
+
export type { CurrencyDropdownProps, CurrencyInputProps } from "./currency.type";
|
|
6
|
+
//# sourceMappingURL=currency.export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.export.d.ts","sourceRoot":"","sources":["../../../src/page/currency/currency.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,aAE5D;AAQD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,aAEtD;AAED,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -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 CurrencyDropdown(props) {
|
|
5
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.CurrencyDropdown)(props);
|
|
6
|
+
}
|
|
7
|
+
export function CurrencyInput(props) {
|
|
8
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.CurrencyInput)(props);
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CurrencyDto } from "../../api/currency/currency.type";
|
|
2
|
+
import type { TakeAndPartialRest } from "../../utils/types.utils";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
export type CurrencyDropdownProps = {
|
|
5
|
+
value?: number | TakeAndPartialRest<CurrencyDto, "id" | "code">;
|
|
6
|
+
trigger?: (value?: number | TakeAndPartialRest<CurrencyDto, "id" | "code">) => ReactNode;
|
|
7
|
+
setValue: (v?: number, currency?: CurrencyDto) => void;
|
|
8
|
+
isCompact?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
allowClear?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
};
|
|
14
|
+
export type CurrencyInputProps = {
|
|
15
|
+
amount?: number;
|
|
16
|
+
setAmount: (amount?: number) => void;
|
|
17
|
+
currencyId?: number | TakeAndPartialRest<CurrencyDto, "id" | "code">;
|
|
18
|
+
setCurrencyId?: (id?: number, currency?: CurrencyDto) => void;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
inputClassName?: string;
|
|
23
|
+
allowClearCurrency?: boolean;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=currency.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.type.d.ts","sourceRoot":"","sources":["../../../src/page/currency/currency.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,SAAS,CAAC;IACzF,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IACvD,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;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.export.d.ts","sourceRoot":"","sources":["../../../src/page/partner/partner.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,aAE1D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginAPI } from "@quan-erp/shared-frontend-core";
|
|
2
|
+
import { APINames } from "../../export";
|
|
3
|
+
import { BUILTIN_PLUGIN } from "../../utils/common";
|
|
4
|
+
export function PartnerDropdown(props) {
|
|
5
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.PartnerDropdown)(props);
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PartnerDto } from "../../export";
|
|
2
|
+
import type { TakeAndPartialRest } from "../../utils/types.utils";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
export type PartnerDropdownProps = {
|
|
5
|
+
value?: number | TakeAndPartialRest<PartnerDto, "id" | "firstName" | "lastName">;
|
|
6
|
+
trigger?: (value?: number | TakeAndPartialRest<PartnerDto, "id" | "firstName" | "lastName">) => ReactNode;
|
|
7
|
+
setValue: (v?: number, partner?: PartnerDto) => void;
|
|
8
|
+
isCompact?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
allowClear?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
partnerType?: 'customer' | 'supplier';
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=partner.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.types.d.ts","sourceRoot":"","sources":["../../../src/page/partner/partner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,CAAC;IACjF,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,KAAK,SAAS,CAAC;IAC1G,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACrD,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;IACrB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CACzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UnitMeasurementCategoryDropdownProps, UnitMeasurementDropdownProps } from "./uoc.types";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export declare function UnitMeasurementDropdown(props: UnitMeasurementDropdownProps): ReactNode;
|
|
4
|
+
export declare function UnitMeasurementCategoryDropdown(props: UnitMeasurementCategoryDropdownProps): ReactNode;
|
|
5
|
+
//# sourceMappingURL=uoc.export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uoc.export.d.ts","sourceRoot":"","sources":["../../../src/page/uoc/uoc.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oCAAoC,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AACtG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,aAE1E;AAID,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,oCAAoC,aAE1F"}
|
|
@@ -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 UnitMeasurementDropdown(props) {
|
|
5
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.UnitMeasurementDropdown)(props);
|
|
6
|
+
}
|
|
7
|
+
export function UnitMeasurementCategoryDropdown(props) {
|
|
8
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.UnitMeasurementCategoryDropdown)(props);
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { UnitCategoryDto, UnitMeasurementDto } from "../../api/unit/uom.type";
|
|
2
|
+
import type { TakeAndPartialRest } from "../../utils/types.utils";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
export type UnitMeasurementDropdownProps = {
|
|
5
|
+
value?: number | TakeAndPartialRest<UnitMeasurementDto, "id" | "name">;
|
|
6
|
+
trigger?: (value?: number | TakeAndPartialRest<UnitMeasurementDto, "id" | "name">) => ReactNode;
|
|
7
|
+
setValue: (v?: number, unit?: UnitMeasurementDto) => void;
|
|
8
|
+
isCompact?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
allowClear?: boolean;
|
|
12
|
+
categoryId?: number;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
};
|
|
15
|
+
export type UnitMeasurementCategoryDropdownProps = {
|
|
16
|
+
value?: number;
|
|
17
|
+
trigger?: (value?: number) => ReactNode;
|
|
18
|
+
setValue: (v?: number, category?: UnitCategoryDto) => void;
|
|
19
|
+
isCompact?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
allowClear?: boolean;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=uoc.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uoc.types.d.ts","sourceRoot":"","sources":["../../../src/page/uoc/uoc.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,4BAA4B,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,kBAAkB,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IACvE,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,kBAAkB,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,SAAS,CAAC;IAChG,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3D,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 @@
|
|
|
1
|
+
{"version":3,"file":"user.export.d.ts","sourceRoot":"","sources":["../../../src/page/user/user.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,aAEpD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginAPI } from "@quan-erp/shared-frontend-core";
|
|
2
|
+
import { APINames } from "../../export";
|
|
3
|
+
import { BUILTIN_PLUGIN } from "../../utils/common";
|
|
4
|
+
export function UserDropdown(props) {
|
|
5
|
+
return PluginAPI.use(BUILTIN_PLUGIN.name, APINames.UserDropdown)(props);
|
|
6
|
+
}
|