datastake-daf 0.6.790 → 0.6.791

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.
@@ -15480,7 +15480,7 @@ const getColumns$d = ({
15480
15480
  }
15481
15481
  }, {
15482
15482
  dataIndex: 'province',
15483
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
15483
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
15484
15484
  ellipsis: true,
15485
15485
  show: true,
15486
15486
  render: (v, all) => {
@@ -15497,7 +15497,7 @@ const getColumns$d = ({
15497
15497
  }
15498
15498
  }, {
15499
15499
  dataIndex: 'territory',
15500
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
15500
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
15501
15501
  ellipsis: true,
15502
15502
  show: true,
15503
15503
  render: (v, all) => {
@@ -31971,7 +31971,7 @@ const getColumns$9 = ({
31971
31971
  }
31972
31972
  }, {
31973
31973
  dataIndex: 'province',
31974
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
31974
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
31975
31975
  ellipsis: true,
31976
31976
  show: true,
31977
31977
  render: (v, all) => {
@@ -31988,7 +31988,7 @@ const getColumns$9 = ({
31988
31988
  }
31989
31989
  }, {
31990
31990
  dataIndex: 'territory',
31991
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
31991
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
31992
31992
  ellipsis: true,
31993
31993
  show: true,
31994
31994
  render: (v, all) => {
@@ -32406,7 +32406,7 @@ const getColumns$8 = ({
32406
32406
  }
32407
32407
  }, {
32408
32408
  dataIndex: 'province',
32409
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
32409
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
32410
32410
  ellipsis: true,
32411
32411
  show: true,
32412
32412
  render: (v, all) => {
@@ -32423,7 +32423,7 @@ const getColumns$8 = ({
32423
32423
  }
32424
32424
  }, {
32425
32425
  dataIndex: 'territory',
32426
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
32426
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
32427
32427
  ellipsis: true,
32428
32428
  show: true,
32429
32429
  render: (v, all) => {
@@ -32663,7 +32663,7 @@ const getColumns$7 = ({
32663
32663
  }
32664
32664
  }, {
32665
32665
  dataIndex: 'province',
32666
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
32666
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
32667
32667
  ellipsis: true,
32668
32668
  show: true,
32669
32669
  render: (v, all) => {
@@ -32680,7 +32680,7 @@ const getColumns$7 = ({
32680
32680
  }
32681
32681
  }, {
32682
32682
  dataIndex: 'territory',
32683
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
32683
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
32684
32684
  ellipsis: true,
32685
32685
  show: true,
32686
32686
  render: (v, all) => {
@@ -33040,7 +33040,7 @@ const getColumns$6 = ({
33040
33040
  }
33041
33041
  }, {
33042
33042
  dataIndex: 'region',
33043
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
33043
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
33044
33044
  ellipsis: true,
33045
33045
  show: true,
33046
33046
  render: (v, all) => {
@@ -33057,7 +33057,7 @@ const getColumns$6 = ({
33057
33057
  }
33058
33058
  }, {
33059
33059
  dataIndex: 'territory',
33060
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
33060
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
33061
33061
  ellipsis: true,
33062
33062
  show: true,
33063
33063
  render: (v, all) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.790",
3
+ "version": "0.6.791",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
72
72
  },
73
73
  {
74
74
  dataIndex: 'province',
75
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
75
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
76
76
  ellipsis: true,
77
77
  show: true,
78
78
  render: (v, all) => {
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
87
87
  },
88
88
  {
89
89
  dataIndex: 'territory',
90
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
90
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
91
91
  ellipsis: true,
92
92
  show: true,
93
93
  render: (v, all) => {
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
72
72
  },
73
73
  {
74
74
  dataIndex: 'province',
75
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
75
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
76
76
  ellipsis: true,
77
77
  show: true,
78
78
  render: (v, all) => {
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
87
87
  },
88
88
  {
89
89
  dataIndex: 'territory',
90
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
90
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
91
91
  ellipsis: true,
92
92
  show: true,
93
93
  render: (v, all) => {
@@ -42,7 +42,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
42
42
  },
43
43
  {
44
44
  dataIndex: 'region',
45
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
45
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
46
46
  ellipsis: true,
47
47
  show: true,
48
48
  render: (v, all) => {
@@ -57,7 +57,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
57
57
  },
58
58
  {
59
59
  dataIndex: 'territory',
60
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
60
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
61
61
  ellipsis: true,
62
62
  show: true,
63
63
  render: (v, all) => {
@@ -67,7 +67,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
67
67
  },
68
68
  {
69
69
  dataIndex: 'province',
70
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
70
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
71
71
  ellipsis: true,
72
72
  show: true,
73
73
  render: (v, all) => {
@@ -82,7 +82,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
82
82
  },
83
83
  {
84
84
  dataIndex: 'territory',
85
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
85
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
86
86
  ellipsis: true,
87
87
  show: true,
88
88
  render: (v, all) => {
@@ -73,7 +73,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
73
73
  },
74
74
  {
75
75
  dataIndex: 'province',
76
- title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
76
+ title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
77
77
  ellipsis: true,
78
78
  show: true,
79
79
  render: (v, all) => {
@@ -88,7 +88,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
88
88
  },
89
89
  {
90
90
  dataIndex: 'territory',
91
- title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
91
+ title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
92
92
  ellipsis: true,
93
93
  show: true,
94
94
  render: (v, all) => {