@etsoo/smarterp-core 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/lib/cjs/UserApi.d.ts +6 -0
  2. package/lib/cjs/UserApi.js +8 -0
  3. package/lib/cjs/components/app/IdentityType.d.ts +8 -0
  4. package/lib/cjs/components/app/IdentityType.js +21 -0
  5. package/lib/cjs/components/app/SearchDays.d.ts +8 -0
  6. package/lib/cjs/components/app/SearchDays.js +29 -0
  7. package/lib/cjs/components/index.d.ts +3 -0
  8. package/lib/cjs/components/index.js +4 -0
  9. package/lib/cjs/components/user/UserTiplist.d.ts +23 -0
  10. package/lib/cjs/components/user/UserTiplist.js +27 -0
  11. package/lib/cjs/i18n/en.json +2 -0
  12. package/lib/cjs/i18n/zh-Hans.json +2 -0
  13. package/lib/cjs/i18n/zh-Hant.json +2 -0
  14. package/lib/mjs/UserApi.d.ts +6 -0
  15. package/lib/mjs/UserApi.js +8 -0
  16. package/lib/mjs/components/app/IdentityType.d.ts +8 -0
  17. package/lib/mjs/components/app/IdentityType.js +18 -0
  18. package/lib/mjs/components/app/SearchDays.d.ts +8 -0
  19. package/lib/mjs/components/app/SearchDays.js +26 -0
  20. package/lib/mjs/components/index.d.ts +3 -0
  21. package/lib/mjs/components/index.js +4 -0
  22. package/lib/mjs/components/user/UserTiplist.d.ts +23 -0
  23. package/lib/mjs/components/user/UserTiplist.js +24 -0
  24. package/lib/mjs/i18n/en.json +2 -0
  25. package/lib/mjs/i18n/zh-Hans.json +2 -0
  26. package/lib/mjs/i18n/zh-Hant.json +2 -0
  27. package/package.json +2 -2
  28. package/src/UserApi.ts +13 -0
  29. package/src/components/app/IdentityType.tsx +26 -0
  30. package/src/components/app/SearchDays.tsx +30 -0
  31. package/src/components/index.ts +5 -0
  32. package/src/components/user/UserTiplist.tsx +68 -0
  33. package/src/i18n/en.json +2 -0
  34. package/src/i18n/zh-Hans.json +2 -0
  35. package/src/i18n/zh-Hant.json +2 -0
@@ -44,6 +44,12 @@ export declare class UserApi extends EntityApi {
44
44
  * @returns Result
45
45
  */
46
46
  auditHistory(rq: AuditHistoryRQ, payload?: IApiPayload<AuditHistoryDto[]>): Promise<AuditHistoryDto[] | undefined>;
47
+ /**
48
+ * Check app session
49
+ * @param payload Payload
50
+ * @returns Result
51
+ */
52
+ checkSession(payload?: IdResultPayload): Promise<import("@etsoo/shared").IdActionResult | undefined>;
47
53
  /**
48
54
  * Delete user identifier
49
55
  * @param id Identifier id
@@ -50,6 +50,14 @@ class UserApi extends appscript_1.EntityApi {
50
50
  auditHistory(rq, payload) {
51
51
  return this.api.post(`${this.flag}/AuditHistory`, rq, payload);
52
52
  }
53
+ /**
54
+ * Check app session
55
+ * @param payload Payload
56
+ * @returns Result
57
+ */
58
+ checkSession(payload) {
59
+ return this.api.post(`${this.flag}/CheckSession/${this.app.settings.appId}`, undefined, payload);
60
+ }
53
61
  /**
54
62
  * Delete user identifier
55
63
  * @param id Identifier id
@@ -0,0 +1,8 @@
1
+ import { SelectExProps } from "@etsoo/materialui";
2
+ import { ListType } from "@etsoo/shared";
3
+ /**
4
+ * Identity type component
5
+ * @param props Props
6
+ * @returns Component
7
+ */
8
+ export declare function IdentityType(props: Omit<SelectExProps<ListType>, "options">): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IdentityType = IdentityType;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const materialui_1 = require("@etsoo/materialui");
6
+ const ICoreServiceApp_1 = require("../../ICoreServiceApp");
7
+ /**
8
+ * Identity type component
9
+ * @param props Props
10
+ * @returns Component
11
+ */
12
+ function IdentityType(props) {
13
+ // App
14
+ const app = (0, ICoreServiceApp_1.useRequiredAppContext)();
15
+ // Identities
16
+ const identities = app.core.getIdentities();
17
+ // Destruct
18
+ const { label = app.get("identityType"), name = "identityType", ...rest } = props;
19
+ // Layout
20
+ return (0, jsx_runtime_1.jsx)(materialui_1.SelectEx, { label: label, name: name, options: identities, ...rest });
21
+ }
@@ -0,0 +1,8 @@
1
+ import { SelectExProps } from "@etsoo/materialui";
2
+ import { ListType } from "@etsoo/shared";
3
+ /**
4
+ * Days search component
5
+ * @param props Props
6
+ * @returns Component
7
+ */
8
+ export declare function SearchDays(props: Omit<SelectExProps<ListType>, "options">): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchDays = SearchDays;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const materialui_1 = require("@etsoo/materialui");
6
+ const ICoreServiceApp_1 = require("../../ICoreServiceApp");
7
+ const options = [
8
+ { id: "", label: "---" },
9
+ { id: 3, label: "3" },
10
+ { id: 7, label: "7" },
11
+ { id: 15, label: "15" },
12
+ { id: 30, label: "30" },
13
+ { id: 60, label: "60" },
14
+ { id: 90, label: "90" },
15
+ { id: 180, label: "180" }
16
+ ];
17
+ /**
18
+ * Days search component
19
+ * @param props Props
20
+ * @returns Component
21
+ */
22
+ function SearchDays(props) {
23
+ // App
24
+ const app = (0, ICoreServiceApp_1.useRequiredAppContext)();
25
+ // Destruct
26
+ const { label = app.get("days"), search = true, ...rest } = props;
27
+ // Layout
28
+ return (0, jsx_runtime_1.jsx)(materialui_1.SelectEx, { label: label, search: search, options: options, ...rest });
29
+ }
@@ -1,4 +1,7 @@
1
1
  export * from "./DefaultUI";
2
2
  export * from "./app/AppSwitchPopover";
3
+ export * from "./app/IdentityType";
4
+ export * from "./app/SearchDays";
3
5
  export * from "./org/OrgSwitchPopover";
4
6
  export * from "./org/OrgTiplist";
7
+ export * from "./user/UserTiplist";
@@ -18,6 +18,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./DefaultUI"), exports);
19
19
  // app
20
20
  __exportStar(require("./app/AppSwitchPopover"), exports);
21
+ __exportStar(require("./app/IdentityType"), exports);
22
+ __exportStar(require("./app/SearchDays"), exports);
21
23
  // org
22
24
  __exportStar(require("./org/OrgSwitchPopover"), exports);
23
25
  __exportStar(require("./org/OrgTiplist"), exports);
26
+ // user
27
+ __exportStar(require("./user/UserTiplist"), exports);
@@ -0,0 +1,23 @@
1
+ import { TiplistProps } from "@etsoo/materialui";
2
+ import { MemberListDto } from "../../dto/member/MemberListDto";
3
+ /**
4
+ * User tiplist properties
5
+ * 用户提示列表属性
6
+ */
7
+ export type UserTiplistProps = Omit<TiplistProps<MemberListDto, "id">, "loadData" | "label" | "name"> & {
8
+ /**
9
+ * Label
10
+ */
11
+ label?: string;
12
+ /**
13
+ * Name
14
+ */
15
+ name?: string;
16
+ };
17
+ /**
18
+ * User tiplist
19
+ * 用户提示列表
20
+ * @param props Properties
21
+ * @returns Component
22
+ */
23
+ export declare function UserTiplist(props: UserTiplistProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserTiplist = UserTiplist;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const materialui_1 = require("@etsoo/materialui");
6
+ const ICoreServiceApp_1 = require("../../ICoreServiceApp");
7
+ /**
8
+ * User tiplist
9
+ * 用户提示列表
10
+ * @param props Properties
11
+ * @returns Component
12
+ */
13
+ function UserTiplist(props) {
14
+ // App
15
+ const app = (0, ICoreServiceApp_1.useRequiredAppContext)();
16
+ // Destruct
17
+ const { fullWidth = true, label = app.get("user"), maxItems = 10, getOptionLabel = (data) => data.name, name = "userId", ...rest } = props;
18
+ // Layout
19
+ return ((0, jsx_runtime_1.jsx)(materialui_1.Tiplist, { label: label, getOptionLabel: getOptionLabel, name: name, fullWidth: fullWidth, maxItems: maxItems, loadData: (keyword, id, maxItems) => app.core.memberApi.list({
20
+ enabled: true,
21
+ keyword,
22
+ id,
23
+ queryPaging: {
24
+ batchSize: maxItems
25
+ }
26
+ }, { showLoading: false, defaultValue: [] }), ...rest }));
27
+ }
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "Switch to dark mode",
71
71
  "switchToLightModeAriaLabel": "Switch to light mode",
72
72
  "switchOrg": "Switch organization",
73
+ "target": "Target",
74
+ "targetId": "Target id",
73
75
  "years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
74
76
  "uiTypeEmail": "Email",
75
77
  "uiTypeMobile": "Mobile",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切换到深色模式",
71
71
  "switchToLightModeAriaLabel": "切换到浅色模式",
72
72
  "switchOrg": "切换机构",
73
+ "target": "目标",
74
+ "targetId": "目标编号",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "电子邮箱",
75
77
  "uiTypeMobile": "手机号",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切換到深色模式",
71
71
  "switchToLightModeAriaLabel": "切換到淺色模式",
72
72
  "switchOrg": "切換機構",
73
+ "target": "目標",
74
+ "targetId": "目標編號",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "電子郵件",
75
77
  "uiTypeMobile": "手機號碼",
@@ -44,6 +44,12 @@ export declare class UserApi extends EntityApi {
44
44
  * @returns Result
45
45
  */
46
46
  auditHistory(rq: AuditHistoryRQ, payload?: IApiPayload<AuditHistoryDto[]>): Promise<AuditHistoryDto[] | undefined>;
47
+ /**
48
+ * Check app session
49
+ * @param payload Payload
50
+ * @returns Result
51
+ */
52
+ checkSession(payload?: IdResultPayload): Promise<import("@etsoo/shared").IdActionResult | undefined>;
47
53
  /**
48
54
  * Delete user identifier
49
55
  * @param id Identifier id
@@ -47,6 +47,14 @@ export class UserApi extends EntityApi {
47
47
  auditHistory(rq, payload) {
48
48
  return this.api.post(`${this.flag}/AuditHistory`, rq, payload);
49
49
  }
50
+ /**
51
+ * Check app session
52
+ * @param payload Payload
53
+ * @returns Result
54
+ */
55
+ checkSession(payload) {
56
+ return this.api.post(`${this.flag}/CheckSession/${this.app.settings.appId}`, undefined, payload);
57
+ }
50
58
  /**
51
59
  * Delete user identifier
52
60
  * @param id Identifier id
@@ -0,0 +1,8 @@
1
+ import { SelectExProps } from "@etsoo/materialui";
2
+ import { ListType } from "@etsoo/shared";
3
+ /**
4
+ * Identity type component
5
+ * @param props Props
6
+ * @returns Component
7
+ */
8
+ export declare function IdentityType(props: Omit<SelectExProps<ListType>, "options">): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SelectEx } from "@etsoo/materialui";
3
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
4
+ /**
5
+ * Identity type component
6
+ * @param props Props
7
+ * @returns Component
8
+ */
9
+ export function IdentityType(props) {
10
+ // App
11
+ const app = useRequiredAppContext();
12
+ // Identities
13
+ const identities = app.core.getIdentities();
14
+ // Destruct
15
+ const { label = app.get("identityType"), name = "identityType", ...rest } = props;
16
+ // Layout
17
+ return _jsx(SelectEx, { label: label, name: name, options: identities, ...rest });
18
+ }
@@ -0,0 +1,8 @@
1
+ import { SelectExProps } from "@etsoo/materialui";
2
+ import { ListType } from "@etsoo/shared";
3
+ /**
4
+ * Days search component
5
+ * @param props Props
6
+ * @returns Component
7
+ */
8
+ export declare function SearchDays(props: Omit<SelectExProps<ListType>, "options">): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SelectEx } from "@etsoo/materialui";
3
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
4
+ const options = [
5
+ { id: "", label: "---" },
6
+ { id: 3, label: "3" },
7
+ { id: 7, label: "7" },
8
+ { id: 15, label: "15" },
9
+ { id: 30, label: "30" },
10
+ { id: 60, label: "60" },
11
+ { id: 90, label: "90" },
12
+ { id: 180, label: "180" }
13
+ ];
14
+ /**
15
+ * Days search component
16
+ * @param props Props
17
+ * @returns Component
18
+ */
19
+ export function SearchDays(props) {
20
+ // App
21
+ const app = useRequiredAppContext();
22
+ // Destruct
23
+ const { label = app.get("days"), search = true, ...rest } = props;
24
+ // Layout
25
+ return _jsx(SelectEx, { label: label, search: search, options: options, ...rest });
26
+ }
@@ -1,4 +1,7 @@
1
1
  export * from "./DefaultUI";
2
2
  export * from "./app/AppSwitchPopover";
3
+ export * from "./app/IdentityType";
4
+ export * from "./app/SearchDays";
3
5
  export * from "./org/OrgSwitchPopover";
4
6
  export * from "./org/OrgTiplist";
7
+ export * from "./user/UserTiplist";
@@ -2,6 +2,10 @@
2
2
  export * from "./DefaultUI";
3
3
  // app
4
4
  export * from "./app/AppSwitchPopover";
5
+ export * from "./app/IdentityType";
6
+ export * from "./app/SearchDays";
5
7
  // org
6
8
  export * from "./org/OrgSwitchPopover";
7
9
  export * from "./org/OrgTiplist";
10
+ // user
11
+ export * from "./user/UserTiplist";
@@ -0,0 +1,23 @@
1
+ import { TiplistProps } from "@etsoo/materialui";
2
+ import { MemberListDto } from "../../dto/member/MemberListDto";
3
+ /**
4
+ * User tiplist properties
5
+ * 用户提示列表属性
6
+ */
7
+ export type UserTiplistProps = Omit<TiplistProps<MemberListDto, "id">, "loadData" | "label" | "name"> & {
8
+ /**
9
+ * Label
10
+ */
11
+ label?: string;
12
+ /**
13
+ * Name
14
+ */
15
+ name?: string;
16
+ };
17
+ /**
18
+ * User tiplist
19
+ * 用户提示列表
20
+ * @param props Properties
21
+ * @returns Component
22
+ */
23
+ export declare function UserTiplist(props: UserTiplistProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Tiplist } from "@etsoo/materialui";
3
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
4
+ /**
5
+ * User tiplist
6
+ * 用户提示列表
7
+ * @param props Properties
8
+ * @returns Component
9
+ */
10
+ export function UserTiplist(props) {
11
+ // App
12
+ const app = useRequiredAppContext();
13
+ // Destruct
14
+ const { fullWidth = true, label = app.get("user"), maxItems = 10, getOptionLabel = (data) => data.name, name = "userId", ...rest } = props;
15
+ // Layout
16
+ return (_jsx(Tiplist, { label: label, getOptionLabel: getOptionLabel, name: name, fullWidth: fullWidth, maxItems: maxItems, loadData: (keyword, id, maxItems) => app.core.memberApi.list({
17
+ enabled: true,
18
+ keyword,
19
+ id,
20
+ queryPaging: {
21
+ batchSize: maxItems
22
+ }
23
+ }, { showLoading: false, defaultValue: [] }), ...rest }));
24
+ }
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "Switch to dark mode",
71
71
  "switchToLightModeAriaLabel": "Switch to light mode",
72
72
  "switchOrg": "Switch organization",
73
+ "target": "Target",
74
+ "targetId": "Target id",
73
75
  "years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
74
76
  "uiTypeEmail": "Email",
75
77
  "uiTypeMobile": "Mobile",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切换到深色模式",
71
71
  "switchToLightModeAriaLabel": "切换到浅色模式",
72
72
  "switchOrg": "切换机构",
73
+ "target": "目标",
74
+ "targetId": "目标编号",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "电子邮箱",
75
77
  "uiTypeMobile": "手机号",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切換到深色模式",
71
71
  "switchToLightModeAriaLabel": "切換到淺色模式",
72
72
  "switchOrg": "切換機構",
73
+ "target": "目標",
74
+ "targetId": "目標編號",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "電子郵件",
75
77
  "uiTypeMobile": "手機號碼",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -53,7 +53,7 @@
53
53
  "vitest": "^3.0.6"
54
54
  },
55
55
  "dependencies": {
56
- "@etsoo/appscript": "^1.6.8",
56
+ "@etsoo/appscript": "^1.6.9",
57
57
  "@etsoo/materialui": "^1.4.82",
58
58
  "@etsoo/react": "^1.8.31",
59
59
  "@etsoo/shared": "^1.2.61",
package/src/UserApi.ts CHANGED
@@ -67,6 +67,19 @@ export class UserApi extends EntityApi {
67
67
  return this.api.post(`${this.flag}/AuditHistory`, rq, payload);
68
68
  }
69
69
 
70
+ /**
71
+ * Check app session
72
+ * @param payload Payload
73
+ * @returns Result
74
+ */
75
+ checkSession(payload?: IdResultPayload) {
76
+ return this.api.post(
77
+ `${this.flag}/CheckSession/${this.app.settings.appId}`,
78
+ undefined,
79
+ payload
80
+ );
81
+ }
82
+
70
83
  /**
71
84
  * Delete user identifier
72
85
  * @param id Identifier id
@@ -0,0 +1,26 @@
1
+ import { SelectEx, SelectExProps } from "@etsoo/materialui";
2
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
3
+ import { ListType } from "@etsoo/shared";
4
+
5
+ /**
6
+ * Identity type component
7
+ * @param props Props
8
+ * @returns Component
9
+ */
10
+ export function IdentityType(props: Omit<SelectExProps<ListType>, "options">) {
11
+ // App
12
+ const app = useRequiredAppContext();
13
+
14
+ // Identities
15
+ const identities = app.core.getIdentities();
16
+
17
+ // Destruct
18
+ const {
19
+ label = app.get("identityType"),
20
+ name = "identityType",
21
+ ...rest
22
+ } = props;
23
+
24
+ // Layout
25
+ return <SelectEx label={label} name={name} options={identities} {...rest} />;
26
+ }
@@ -0,0 +1,30 @@
1
+ import { SelectEx, SelectExProps } from "@etsoo/materialui";
2
+ import { ListType } from "@etsoo/shared";
3
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
4
+
5
+ const options: ListType[] = [
6
+ { id: "" as any, label: "---" },
7
+ { id: 3, label: "3" },
8
+ { id: 7, label: "7" },
9
+ { id: 15, label: "15" },
10
+ { id: 30, label: "30" },
11
+ { id: 60, label: "60" },
12
+ { id: 90, label: "90" },
13
+ { id: 180, label: "180" }
14
+ ];
15
+
16
+ /**
17
+ * Days search component
18
+ * @param props Props
19
+ * @returns Component
20
+ */
21
+ export function SearchDays(props: Omit<SelectExProps<ListType>, "options">) {
22
+ // App
23
+ const app = useRequiredAppContext();
24
+
25
+ // Destruct
26
+ const { label = app.get("days"), search = true, ...rest } = props;
27
+
28
+ // Layout
29
+ return <SelectEx label={label} search={search} options={options} {...rest} />;
30
+ }
@@ -3,7 +3,12 @@ export * from "./DefaultUI";
3
3
 
4
4
  // app
5
5
  export * from "./app/AppSwitchPopover";
6
+ export * from "./app/IdentityType";
7
+ export * from "./app/SearchDays";
6
8
 
7
9
  // org
8
10
  export * from "./org/OrgSwitchPopover";
9
11
  export * from "./org/OrgTiplist";
12
+
13
+ // user
14
+ export * from "./user/UserTiplist";
@@ -0,0 +1,68 @@
1
+ import { Tiplist, TiplistProps } from "@etsoo/materialui";
2
+ import { useRequiredAppContext } from "../../ICoreServiceApp";
3
+ import { MemberListDto } from "../../dto/member/MemberListDto";
4
+
5
+ /**
6
+ * User tiplist properties
7
+ * 用户提示列表属性
8
+ */
9
+ export type UserTiplistProps = Omit<
10
+ TiplistProps<MemberListDto, "id">,
11
+ "loadData" | "label" | "name"
12
+ > & {
13
+ /**
14
+ * Label
15
+ */
16
+ label?: string;
17
+
18
+ /**
19
+ * Name
20
+ */
21
+ name?: string;
22
+ };
23
+
24
+ /**
25
+ * User tiplist
26
+ * 用户提示列表
27
+ * @param props Properties
28
+ * @returns Component
29
+ */
30
+ export function UserTiplist(props: UserTiplistProps) {
31
+ // App
32
+ const app = useRequiredAppContext();
33
+
34
+ // Destruct
35
+ const {
36
+ fullWidth = true,
37
+ label = app.get("user")!,
38
+ maxItems = 10,
39
+ getOptionLabel = (data) => data.name,
40
+ name = "userId",
41
+ ...rest
42
+ } = props;
43
+
44
+ // Layout
45
+ return (
46
+ <Tiplist<MemberListDto>
47
+ label={label}
48
+ getOptionLabel={getOptionLabel}
49
+ name={name}
50
+ fullWidth={fullWidth}
51
+ maxItems={maxItems}
52
+ loadData={(keyword, id, maxItems) =>
53
+ app.core.memberApi.list(
54
+ {
55
+ enabled: true,
56
+ keyword,
57
+ id,
58
+ queryPaging: {
59
+ batchSize: maxItems
60
+ }
61
+ },
62
+ { showLoading: false, defaultValue: [] }
63
+ )
64
+ }
65
+ {...rest}
66
+ />
67
+ );
68
+ }
package/src/i18n/en.json CHANGED
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "Switch to dark mode",
71
71
  "switchToLightModeAriaLabel": "Switch to light mode",
72
72
  "switchOrg": "Switch organization",
73
+ "target": "Target",
74
+ "targetId": "Target id",
73
75
  "years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
74
76
  "uiTypeEmail": "Email",
75
77
  "uiTypeMobile": "Mobile",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切换到深色模式",
71
71
  "switchToLightModeAriaLabel": "切换到浅色模式",
72
72
  "switchOrg": "切换机构",
73
+ "target": "目标",
74
+ "targetId": "目标编号",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "电子邮箱",
75
77
  "uiTypeMobile": "手机号",
@@ -70,6 +70,8 @@
70
70
  "switchToDarkModeAriaLabel": "切換到深色模式",
71
71
  "switchToLightModeAriaLabel": "切換到淺色模式",
72
72
  "switchOrg": "切換機構",
73
+ "target": "目標",
74
+ "targetId": "目標編號",
73
75
  "years5": ["1年", "2年", "3年", "4年", "5年"],
74
76
  "uiTypeEmail": "電子郵件",
75
77
  "uiTypeMobile": "手機號碼",