@etsoo/smarterp-core 1.1.6 → 1.1.8

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.
@@ -18,7 +18,7 @@ function AddressTiplist(props) {
18
18
  // App
19
19
  const app = (0, ICoreServiceApp_1.useRequiredAppContext)();
20
20
  // Destruct
21
- const { fullWidth = true, getOptionLabel = (option) => `${option.name} - ${option.formattedAddress} (${option.postalCode})`, name = "address", label = app.get("address") ?? "Address", maxItems = 10, onValueChange, ...rest } = props;
21
+ const { fullWidth = true, getOptionLabel = (option) => `${option.name} - ${option.formattedAddress}${option.postalCode ? ` (${option.postalCode})` : ""}`, name = "address", label = app.get("address") ?? "Address", maxItems = 10, onValueChange, ...rest } = props;
22
22
  // Provider
23
23
  const providerRef = react_1.default.useRef(appscript_1.MapApiProvider.Google);
24
24
  return ((0, jsx_runtime_1.jsx)(materialui_1.Tiplist, { fullWidth: fullWidth, getOptionLabel: getOptionLabel, idField: "placeId", label: label, loadData: async (keyword, _, maxItems) => {
@@ -38,7 +38,6 @@
38
38
  "externalApis": "External APIs",
39
39
  "fileName": "File name",
40
40
  "fullName": "Full name",
41
- "idContact": "Contact",
42
41
  "idCustomer": "Customer",
43
42
  "idDept": "Department",
44
43
  "idNone": "None",
@@ -38,7 +38,6 @@
38
38
  "externalApis": "外部接口",
39
39
  "fileName": "文件名",
40
40
  "fullName": "全称",
41
- "idContact": "联系人",
42
41
  "idCustomer": "客户",
43
42
  "idDept": "部门",
44
43
  "idNone": "无",
@@ -41,7 +41,6 @@
41
41
  "latinFamilyName": "姓氏(拼音)",
42
42
  "latinGivenName": "名(拼音)",
43
43
  "lightMode": "淺色模式",
44
- "idContact": "聯絡人",
45
44
  "idCustomer": "客戶",
46
45
  "idDept": "部門",
47
46
  "idNone": "無",
@@ -12,7 +12,7 @@ export function AddressTiplist(props) {
12
12
  // App
13
13
  const app = useRequiredAppContext();
14
14
  // Destruct
15
- const { fullWidth = true, getOptionLabel = (option) => `${option.name} - ${option.formattedAddress} (${option.postalCode})`, name = "address", label = app.get("address") ?? "Address", maxItems = 10, onValueChange, ...rest } = props;
15
+ const { fullWidth = true, getOptionLabel = (option) => `${option.name} - ${option.formattedAddress}${option.postalCode ? ` (${option.postalCode})` : ""}`, name = "address", label = app.get("address") ?? "Address", maxItems = 10, onValueChange, ...rest } = props;
16
16
  // Provider
17
17
  const providerRef = React.useRef(MapApiProvider.Google);
18
18
  return (_jsx(Tiplist, { fullWidth: fullWidth, getOptionLabel: getOptionLabel, idField: "placeId", label: label, loadData: async (keyword, _, maxItems) => {
@@ -38,7 +38,6 @@
38
38
  "externalApis": "External APIs",
39
39
  "fileName": "File name",
40
40
  "fullName": "Full name",
41
- "idContact": "Contact",
42
41
  "idCustomer": "Customer",
43
42
  "idDept": "Department",
44
43
  "idNone": "None",
@@ -38,7 +38,6 @@
38
38
  "externalApis": "外部接口",
39
39
  "fileName": "文件名",
40
40
  "fullName": "全称",
41
- "idContact": "联系人",
42
41
  "idCustomer": "客户",
43
42
  "idDept": "部门",
44
43
  "idNone": "无",
@@ -41,7 +41,6 @@
41
41
  "latinFamilyName": "姓氏(拼音)",
42
42
  "latinGivenName": "名(拼音)",
43
43
  "lightMode": "淺色模式",
44
- "idContact": "聯絡人",
45
44
  "idCustomer": "客戶",
46
45
  "idDept": "部門",
47
46
  "idNone": "無",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -52,10 +52,14 @@
52
52
  "typescript": "^5.9.3",
53
53
  "vitest": "^4.0.16"
54
54
  },
55
+ "overrides": {
56
+ "react": "$react",
57
+ "react-dom": "$react-dom"
58
+ },
55
59
  "dependencies": {
56
- "@etsoo/appscript": "^1.6.50",
57
- "@etsoo/materialui": "^1.5.93",
58
- "@etsoo/react": "^1.8.66",
60
+ "@etsoo/appscript": "^1.6.51",
61
+ "@etsoo/materialui": "^1.5.94",
62
+ "@etsoo/react": "^1.8.67",
59
63
  "@etsoo/shared": "^1.2.80",
60
64
  "@etsoo/toolpad": "^1.0.44",
61
65
  "@mui/material": "^7.3.6",
@@ -36,7 +36,9 @@ export function AddressTiplist(props: AddressTiplistProps) {
36
36
  const {
37
37
  fullWidth = true,
38
38
  getOptionLabel = (option) =>
39
- `${option.name} - ${option.formattedAddress} (${option.postalCode})`,
39
+ `${option.name} - ${option.formattedAddress}${
40
+ option.postalCode ? ` (${option.postalCode})` : ""
41
+ }`,
40
42
  name = "address",
41
43
  label = app.get("address") ?? "Address",
42
44
  maxItems = 10,
package/src/i18n/en.json CHANGED
@@ -38,7 +38,6 @@
38
38
  "externalApis": "External APIs",
39
39
  "fileName": "File name",
40
40
  "fullName": "Full name",
41
- "idContact": "Contact",
42
41
  "idCustomer": "Customer",
43
42
  "idDept": "Department",
44
43
  "idNone": "None",
@@ -38,7 +38,6 @@
38
38
  "externalApis": "外部接口",
39
39
  "fileName": "文件名",
40
40
  "fullName": "全称",
41
- "idContact": "联系人",
42
41
  "idCustomer": "客户",
43
42
  "idDept": "部门",
44
43
  "idNone": "无",
@@ -41,7 +41,6 @@
41
41
  "latinFamilyName": "姓氏(拼音)",
42
42
  "latinGivenName": "名(拼音)",
43
43
  "lightMode": "淺色模式",
44
- "idContact": "聯絡人",
45
44
  "idCustomer": "客戶",
46
45
  "idDept": "部門",
47
46
  "idNone": "無",