@fctc/widget-logic 6.0.7 → 6.0.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.
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/dist/widget.d.mts +1 -4
- package/dist/widget.d.ts +1 -4
- package/dist/widget.js +2 -5
- package/dist/widget.mjs +2 -5
- package/package.json +92 -92
package/dist/index.js
CHANGED
|
@@ -6289,7 +6289,7 @@ var binaryFieldController = (props) => {
|
|
|
6289
6289
|
};
|
|
6290
6290
|
const fetchFileMeta = async (url2) => {
|
|
6291
6291
|
try {
|
|
6292
|
-
const res = await fetch(url2
|
|
6292
|
+
const res = await fetch(url2);
|
|
6293
6293
|
const size = res.headers.get("content-length") || "";
|
|
6294
6294
|
let type = res.headers.get("content-type") || "";
|
|
6295
6295
|
const date = res.headers.get("last-modified") || "";
|
|
@@ -6657,10 +6657,7 @@ var tableGroupController = (props) => {
|
|
|
6657
6657
|
const nameGroup = Array.isArray(row[group_by_field_name]) ? row?.string ?? row[`${group_by_field_name}`][1] : viewData?.models?.[model]?.[group_by_field_name]?.selection ? viewData.models[model][group_by_field_name].selection.find(
|
|
6658
6658
|
(selectItem) => selectItem?.[0] === row[group_by_field_name]
|
|
6659
6659
|
)?.[1] : row[group_by_field_name];
|
|
6660
|
-
const nameGroupWithCount = {
|
|
6661
|
-
title: typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no"),
|
|
6662
|
-
count: row[`${group_by_field_name?.split(":")?.[0]}_count`]
|
|
6663
|
-
};
|
|
6660
|
+
const nameGroupWithCount = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
|
|
6664
6661
|
const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
|
|
6665
6662
|
const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
|
|
6666
6663
|
const onExpandChildGroup = () => {
|
package/dist/index.mjs
CHANGED
|
@@ -6384,7 +6384,7 @@ var binaryFieldController = (props) => {
|
|
|
6384
6384
|
};
|
|
6385
6385
|
const fetchFileMeta = async (url2) => {
|
|
6386
6386
|
try {
|
|
6387
|
-
const res = await fetch(url2
|
|
6387
|
+
const res = await fetch(url2);
|
|
6388
6388
|
const size = res.headers.get("content-length") || "";
|
|
6389
6389
|
let type = res.headers.get("content-type") || "";
|
|
6390
6390
|
const date = res.headers.get("last-modified") || "";
|
|
@@ -6752,10 +6752,7 @@ var tableGroupController = (props) => {
|
|
|
6752
6752
|
const nameGroup = Array.isArray(row[group_by_field_name]) ? row?.string ?? row[`${group_by_field_name}`][1] : viewData?.models?.[model]?.[group_by_field_name]?.selection ? viewData.models[model][group_by_field_name].selection.find(
|
|
6753
6753
|
(selectItem) => selectItem?.[0] === row[group_by_field_name]
|
|
6754
6754
|
)?.[1] : row[group_by_field_name];
|
|
6755
|
-
const nameGroupWithCount = {
|
|
6756
|
-
title: typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no"),
|
|
6757
|
-
count: row[`${group_by_field_name?.split(":")?.[0]}_count`]
|
|
6758
|
-
};
|
|
6755
|
+
const nameGroupWithCount = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
|
|
6759
6756
|
const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
|
|
6760
6757
|
const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
|
|
6761
6758
|
const onExpandChildGroup = () => {
|
package/dist/widget.d.mts
CHANGED
|
@@ -305,10 +305,7 @@ declare const tableGroupController: (props: any) => {
|
|
|
305
305
|
isShowGroup: boolean;
|
|
306
306
|
isDataGroupFetched: boolean;
|
|
307
307
|
isDataPlaceHolder: boolean;
|
|
308
|
-
nameGroupWithCount:
|
|
309
|
-
title: string;
|
|
310
|
-
count: any;
|
|
311
|
-
};
|
|
308
|
+
nameGroupWithCount: string;
|
|
312
309
|
columnsGroup: any;
|
|
313
310
|
rowsGroup: any[];
|
|
314
311
|
dataGroup: any;
|
package/dist/widget.d.ts
CHANGED
|
@@ -305,10 +305,7 @@ declare const tableGroupController: (props: any) => {
|
|
|
305
305
|
isShowGroup: boolean;
|
|
306
306
|
isDataGroupFetched: boolean;
|
|
307
307
|
isDataPlaceHolder: boolean;
|
|
308
|
-
nameGroupWithCount:
|
|
309
|
-
title: string;
|
|
310
|
-
count: any;
|
|
311
|
-
};
|
|
308
|
+
nameGroupWithCount: string;
|
|
312
309
|
columnsGroup: any;
|
|
313
310
|
rowsGroup: any[];
|
|
314
311
|
dataGroup: any;
|
package/dist/widget.js
CHANGED
|
@@ -5527,7 +5527,7 @@ var binaryFieldController = (props) => {
|
|
|
5527
5527
|
};
|
|
5528
5528
|
const fetchFileMeta = async (url2) => {
|
|
5529
5529
|
try {
|
|
5530
|
-
const res = await fetch(url2
|
|
5530
|
+
const res = await fetch(url2);
|
|
5531
5531
|
const size = res.headers.get("content-length") || "";
|
|
5532
5532
|
let type = res.headers.get("content-type") || "";
|
|
5533
5533
|
const date = res.headers.get("last-modified") || "";
|
|
@@ -5895,10 +5895,7 @@ var tableGroupController = (props) => {
|
|
|
5895
5895
|
const nameGroup = Array.isArray(row[group_by_field_name]) ? row?.string ?? row[`${group_by_field_name}`][1] : viewData?.models?.[model]?.[group_by_field_name]?.selection ? viewData.models[model][group_by_field_name].selection.find(
|
|
5896
5896
|
(selectItem) => selectItem?.[0] === row[group_by_field_name]
|
|
5897
5897
|
)?.[1] : row[group_by_field_name];
|
|
5898
|
-
const nameGroupWithCount = {
|
|
5899
|
-
title: typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no"),
|
|
5900
|
-
count: row[`${group_by_field_name?.split(":")?.[0]}_count`]
|
|
5901
|
-
};
|
|
5898
|
+
const nameGroupWithCount = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
|
|
5902
5899
|
const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
|
|
5903
5900
|
const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
|
|
5904
5901
|
const onExpandChildGroup = () => {
|
package/dist/widget.mjs
CHANGED
|
@@ -5598,7 +5598,7 @@ var binaryFieldController = (props) => {
|
|
|
5598
5598
|
};
|
|
5599
5599
|
const fetchFileMeta = async (url2) => {
|
|
5600
5600
|
try {
|
|
5601
|
-
const res = await fetch(url2
|
|
5601
|
+
const res = await fetch(url2);
|
|
5602
5602
|
const size = res.headers.get("content-length") || "";
|
|
5603
5603
|
let type = res.headers.get("content-type") || "";
|
|
5604
5604
|
const date = res.headers.get("last-modified") || "";
|
|
@@ -5966,10 +5966,7 @@ var tableGroupController = (props) => {
|
|
|
5966
5966
|
const nameGroup = Array.isArray(row[group_by_field_name]) ? row?.string ?? row[`${group_by_field_name}`][1] : viewData?.models?.[model]?.[group_by_field_name]?.selection ? viewData.models[model][group_by_field_name].selection.find(
|
|
5967
5967
|
(selectItem) => selectItem?.[0] === row[group_by_field_name]
|
|
5968
5968
|
)?.[1] : row[group_by_field_name];
|
|
5969
|
-
const nameGroupWithCount = {
|
|
5970
|
-
title: typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no"),
|
|
5971
|
-
count: row[`${group_by_field_name?.split(":")?.[0]}_count`]
|
|
5972
|
-
};
|
|
5969
|
+
const nameGroupWithCount = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
|
|
5973
5970
|
const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
|
|
5974
5971
|
const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
|
|
5975
5972
|
const onExpandChildGroup = () => {
|
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "6.0.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./hooks": {
|
|
14
|
-
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs",
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./widget": {
|
|
19
|
-
"types": "./dist/widget.d.ts",
|
|
20
|
-
"import": "./dist/widget.mjs",
|
|
21
|
-
"require": "./dist/widget.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./icons": {
|
|
24
|
-
"types": "./dist/icons.d.ts",
|
|
25
|
-
"import": "./dist/icons.mjs",
|
|
26
|
-
"require": "./dist/icons.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./utils": {
|
|
29
|
-
"types": "./dist/utils.d.ts",
|
|
30
|
-
"import": "./dist/utils.mjs",
|
|
31
|
-
"require": "./dist/utils.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./store": {
|
|
34
|
-
"types": "./dist/store.d.ts",
|
|
35
|
-
"import": "./dist/store.mjs",
|
|
36
|
-
"require": "./dist/store.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./config": {
|
|
39
|
-
"types": "./dist/config.d.ts",
|
|
40
|
-
"import": "./dist/config.mjs",
|
|
41
|
-
"require": "./dist/config.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./constants": {
|
|
44
|
-
"types": "./dist/constants.d.ts",
|
|
45
|
-
"import": "./dist/constants.mjs",
|
|
46
|
-
"require": "./dist/constants.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./environment": {
|
|
49
|
-
"types": "./dist/environment.d.ts",
|
|
50
|
-
"import": "./dist/environment.mjs",
|
|
51
|
-
"require": "./dist/environment.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./provider": {
|
|
54
|
-
"types": "./dist/provider.d.ts",
|
|
55
|
-
"import": "./dist/provider.mjs",
|
|
56
|
-
"require": "./dist/provider.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./services": {
|
|
59
|
-
"types": "./dist/services.d.ts",
|
|
60
|
-
"import": "./dist/services.mjs",
|
|
61
|
-
"require": "./dist/services.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./types": {
|
|
64
|
-
"types": "./dist/types.d.ts",
|
|
65
|
-
"import": "./dist/types.mjs",
|
|
66
|
-
"require": "./dist/types.cjs"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"test": "jest"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@fctc/interface-logic": "^5.4.9",
|
|
78
|
-
"@tanstack/react-query": "^5.84.0",
|
|
79
|
-
"i18next": "^25.3.2",
|
|
80
|
-
"i18next-browser-languagedetector": "^8.2.0",
|
|
81
|
-
"react-i18next": "^15.6.1"
|
|
82
|
-
},
|
|
83
|
-
"devDependencies": {
|
|
84
|
-
"@types/react": "^18.3.1",
|
|
85
|
-
"jest": "^29.7.0",
|
|
86
|
-
"react": "18.0.0",
|
|
87
|
-
"tsup": "^8.0.0",
|
|
88
|
-
"typescript": "^5.8.2"
|
|
89
|
-
},
|
|
90
|
-
"packageManager": "yarn@1.22.0",
|
|
91
|
-
"peerDependencies": {}
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/widget-logic",
|
|
3
|
+
"version": "6.0.8",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./hooks": {
|
|
14
|
+
"types": "./dist/hooks.d.ts",
|
|
15
|
+
"import": "./dist/hooks.mjs",
|
|
16
|
+
"require": "./dist/hooks.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./widget": {
|
|
19
|
+
"types": "./dist/widget.d.ts",
|
|
20
|
+
"import": "./dist/widget.mjs",
|
|
21
|
+
"require": "./dist/widget.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./icons": {
|
|
24
|
+
"types": "./dist/icons.d.ts",
|
|
25
|
+
"import": "./dist/icons.mjs",
|
|
26
|
+
"require": "./dist/icons.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./utils": {
|
|
29
|
+
"types": "./dist/utils.d.ts",
|
|
30
|
+
"import": "./dist/utils.mjs",
|
|
31
|
+
"require": "./dist/utils.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./store": {
|
|
34
|
+
"types": "./dist/store.d.ts",
|
|
35
|
+
"import": "./dist/store.mjs",
|
|
36
|
+
"require": "./dist/store.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"types": "./dist/config.d.ts",
|
|
40
|
+
"import": "./dist/config.mjs",
|
|
41
|
+
"require": "./dist/config.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./constants": {
|
|
44
|
+
"types": "./dist/constants.d.ts",
|
|
45
|
+
"import": "./dist/constants.mjs",
|
|
46
|
+
"require": "./dist/constants.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./environment": {
|
|
49
|
+
"types": "./dist/environment.d.ts",
|
|
50
|
+
"import": "./dist/environment.mjs",
|
|
51
|
+
"require": "./dist/environment.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./provider": {
|
|
54
|
+
"types": "./dist/provider.d.ts",
|
|
55
|
+
"import": "./dist/provider.mjs",
|
|
56
|
+
"require": "./dist/provider.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./services": {
|
|
59
|
+
"types": "./dist/services.d.ts",
|
|
60
|
+
"import": "./dist/services.mjs",
|
|
61
|
+
"require": "./dist/services.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./types": {
|
|
64
|
+
"types": "./dist/types.d.ts",
|
|
65
|
+
"import": "./dist/types.mjs",
|
|
66
|
+
"require": "./dist/types.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"test": "jest"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@fctc/interface-logic": "^5.4.9",
|
|
78
|
+
"@tanstack/react-query": "^5.84.0",
|
|
79
|
+
"i18next": "^25.3.2",
|
|
80
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
81
|
+
"react-i18next": "^15.6.1"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@types/react": "^18.3.1",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"react": "18.0.0",
|
|
87
|
+
"tsup": "^8.0.0",
|
|
88
|
+
"typescript": "^5.8.2"
|
|
89
|
+
},
|
|
90
|
+
"packageManager": "yarn@1.22.0",
|
|
91
|
+
"peerDependencies": {}
|
|
92
|
+
}
|