@fctc/widget-logic 6.0.5 → 6.0.7

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 CHANGED
@@ -6657,7 +6657,10 @@ 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 = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
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
+ };
6661
6664
  const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
6662
6665
  const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
6663
6666
  const onExpandChildGroup = () => {
package/dist/index.mjs CHANGED
@@ -6752,7 +6752,10 @@ 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 = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
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
+ };
6756
6759
  const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
6757
6760
  const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
6758
6761
  const onExpandChildGroup = () => {
package/dist/widget.d.mts CHANGED
@@ -305,7 +305,10 @@ declare const tableGroupController: (props: any) => {
305
305
  isShowGroup: boolean;
306
306
  isDataGroupFetched: boolean;
307
307
  isDataPlaceHolder: boolean;
308
- nameGroupWithCount: string;
308
+ nameGroupWithCount: {
309
+ title: string;
310
+ count: any;
311
+ };
309
312
  columnsGroup: any;
310
313
  rowsGroup: any[];
311
314
  dataGroup: any;
package/dist/widget.d.ts CHANGED
@@ -305,7 +305,10 @@ declare const tableGroupController: (props: any) => {
305
305
  isShowGroup: boolean;
306
306
  isDataGroupFetched: boolean;
307
307
  isDataPlaceHolder: boolean;
308
- nameGroupWithCount: string;
308
+ nameGroupWithCount: {
309
+ title: string;
310
+ count: any;
311
+ };
309
312
  columnsGroup: any;
310
313
  rowsGroup: any[];
311
314
  dataGroup: any;
package/dist/widget.js CHANGED
@@ -5895,7 +5895,10 @@ 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 = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
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
+ };
5899
5902
  const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
5900
5903
  const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
5901
5904
  const onExpandChildGroup = () => {
package/dist/widget.mjs CHANGED
@@ -5966,7 +5966,10 @@ 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 = `${typeof nameGroup === "string" ? nameGroup : typeof nameGroup === "boolean" && nameGroup ? i18n_default.t("yes") : i18n_default.t("no")} (${row[`${group_by_field_name?.split(":")?.[0]}_count`]})`;
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
+ };
5970
5973
  const allIdsNull = selectedRowKeys?.every((item) => item === void 0);
5971
5974
  const toggleShowGroup = () => setIsShowGroup((prev) => !prev);
5972
5975
  const onExpandChildGroup = () => {
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "name": "@fctc/widget-logic",
3
- "version": "6.0.5",
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.8",
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.7",
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
+ }