@dative-gpi/foundation-shared-components 1.0.171 → 1.0.172

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.
@@ -15,12 +15,12 @@
15
15
  >
16
16
  <FSEntityCountBadge
17
17
  :label="$tr('ui.common.folders', 'Folder(s)')"
18
- :count="recursiveFoldersIds.length"
18
+ :count="$props.recursiveFoldersIds?.length ?? 0"
19
19
  :color="ColorEnum.Primary"
20
20
  />
21
21
  <FSEntityCountBadge
22
22
  :label="$tr('ui.common.dashboards', 'Dashboard(s)')"
23
- :count="recursiveDashboardsIds.length"
23
+ :count="dashboardCount"
24
24
  :color="ColorEnum.Success"
25
25
  />
26
26
  </FSCol>
@@ -55,11 +55,16 @@ export default defineComponent({
55
55
  required: false,
56
56
  default: () => []
57
57
  },
58
- recursiveDashboardsIds: {
58
+ recursiveDashboardOrganisationsIds: {
59
59
  type: Array as PropType<string[]>,
60
60
  required: false,
61
61
  default: () => []
62
62
  },
63
+ recursiveDashboardShallowsIds: {
64
+ type: Array as PropType<string[]>,
65
+ required: false,
66
+ default: () => []
67
+ }
63
68
  },
64
69
  components: {
65
70
  FSEntityCountBadge,
@@ -74,8 +79,13 @@ export default defineComponent({
74
79
  return props.bottomColor;
75
80
  });
76
81
 
82
+ const dashboardCount = computed(() => {
83
+ return (props.recursiveDashboardOrganisationsIds?.length ?? 0) + (props.recursiveDashboardShallowsIds?.length ?? 0);
84
+ });
85
+
77
86
  return {
78
87
  color,
88
+ dashboardCount,
79
89
  ColorEnum
80
90
  };
81
91
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.171",
4
+ "version": "1.0.172",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.171",
14
- "@dative-gpi/foundation-shared-services": "1.0.171"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.172",
14
+ "@dative-gpi/foundation-shared-services": "1.0.172"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "c3e976e42189e442a29e0596ee33008644f27ef4"
38
+ "gitHead": "1cb20dad5c78e2972e085f20b25b711c05d17dc8"
39
39
  }