@dative-gpi/foundation-core-components 1.0.159-tes → 1.0.159-tes2
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.
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
>
|
|
81
81
|
<FSChip
|
|
82
82
|
v-if="item.type === FoldersListType.Dashboard"
|
|
83
|
-
:color="
|
|
83
|
+
:color="ColorEnum.Light"
|
|
84
84
|
:label="dashboardTypeLabel(item.dashboardType)"
|
|
85
85
|
/>
|
|
86
86
|
<FSChip
|
|
@@ -132,7 +132,7 @@ import { useOrganisation } from "@dative-gpi/foundation-shared-services/composab
|
|
|
132
132
|
import { useDashboardOrganisations, useFolders, useDashboardShallows, useAppOrganisationId, useCurrentUserOrganisation } from "@dative-gpi/foundation-core-services/composables";
|
|
133
133
|
|
|
134
134
|
import { DashboardType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
135
|
-
import {
|
|
135
|
+
import { dashboardTypeLabel, FoldersListType, type FoldersListItem } from "@dative-gpi/foundation-core-components/utils";
|
|
136
136
|
import type { FolderFilters, DashboardOrganisationFilters, DashboardShallowFilters, DashboardInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
137
137
|
|
|
138
138
|
import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
|
|
@@ -250,10 +250,6 @@ export default defineComponent({
|
|
|
250
250
|
value: DashboardType.Shallow,
|
|
251
251
|
text: dashboardTypeLabel(DashboardType.Shallow)
|
|
252
252
|
},
|
|
253
|
-
{
|
|
254
|
-
value: DashboardType.OrganisationType,
|
|
255
|
-
text: dashboardTypeLabel(DashboardType.OrganisationType)
|
|
256
|
-
},
|
|
257
253
|
{
|
|
258
254
|
value: 10,
|
|
259
255
|
text: $tr("ui.common.folder", "Folder")
|
|
@@ -331,7 +327,6 @@ export default defineComponent({
|
|
|
331
327
|
isSelected,
|
|
332
328
|
FoldersListType,
|
|
333
329
|
DashboardType,
|
|
334
|
-
dashboardTypeColor,
|
|
335
330
|
dashboardTypeLabel
|
|
336
331
|
};
|
|
337
332
|
}
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
/>
|
|
78
78
|
</template>
|
|
79
79
|
<template
|
|
80
|
-
#item.
|
|
80
|
+
#item.scope="{ item }"
|
|
81
81
|
>
|
|
82
82
|
<FSChip
|
|
83
|
-
:label="
|
|
84
|
-
:color="
|
|
83
|
+
:label="applicationScopeLabel(item.scope)"
|
|
84
|
+
:color="ColorEnum.Light"
|
|
85
85
|
/>
|
|
86
86
|
</template>
|
|
87
87
|
<template
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
import { defineComponent, type PropType, watch, computed } from "vue";
|
|
108
108
|
import _ from "lodash";
|
|
109
109
|
|
|
110
|
+
import { chartTypeLabel, chartIcon, applicationScopeLabel } from "@dative-gpi/foundation-shared-components/tools";
|
|
110
111
|
import { ChartOrigin, ChartType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
111
112
|
import { getEnumEntries } from "@dative-gpi/foundation-shared-domain/tools";
|
|
112
113
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
113
|
-
import { chartTypeLabel, chartIcon, chartOriginLabel, chartOriginColor } from "@dative-gpi/foundation-shared-components/tools";
|
|
114
114
|
|
|
115
115
|
import type { ChartModelLabel, ChartOrganisationFilters, ChartOrganisationTypeFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
116
116
|
import { useChartOrganisations, useChartOrganisationTypes } from "@dative-gpi/foundation-core-services/composables";
|
|
@@ -198,8 +198,7 @@ export default defineComponent({
|
|
|
198
198
|
tags: c.tags,
|
|
199
199
|
multiple: c.multiple,
|
|
200
200
|
chartType: c.chartType,
|
|
201
|
-
modelsLabels: c.modelsLabels
|
|
202
|
-
origin: ChartOrigin.Organisation
|
|
201
|
+
modelsLabels: c.modelsLabels
|
|
203
202
|
})).concat(chartOrganisationTypes.value.map(c => ({
|
|
204
203
|
id: c.id,
|
|
205
204
|
imageId: c.imageId,
|
|
@@ -214,8 +213,7 @@ export default defineComponent({
|
|
|
214
213
|
tags: c.tags,
|
|
215
214
|
multiple: c.multiple,
|
|
216
215
|
chartType: c.chartType,
|
|
217
|
-
modelsLabels: c.modelsLabels
|
|
218
|
-
origin: ChartOrigin.OrganisationType
|
|
216
|
+
modelsLabels: c.modelsLabels
|
|
219
217
|
})));
|
|
220
218
|
});
|
|
221
219
|
|
|
@@ -244,10 +242,10 @@ export default defineComponent({
|
|
|
244
242
|
})),
|
|
245
243
|
methodFilter: (value: ChartType, item: ChartType) => value == item
|
|
246
244
|
},
|
|
247
|
-
|
|
245
|
+
scope: {
|
|
248
246
|
fixedFilters: getEnumEntries(ChartOrigin).filter(e => e.value != ChartOrigin.None).map(e => ({
|
|
249
247
|
value: e.value,
|
|
250
|
-
text:
|
|
248
|
+
text: applicationScopeLabel(e.value)
|
|
251
249
|
})),
|
|
252
250
|
methodFilter: (value: ChartOrigin, item: ChartOrigin) => value == item
|
|
253
251
|
}
|
|
@@ -296,8 +294,7 @@ export default defineComponent({
|
|
|
296
294
|
headersOptions,
|
|
297
295
|
ColorEnum,
|
|
298
296
|
charts,
|
|
299
|
-
|
|
300
|
-
chartOriginColor,
|
|
297
|
+
applicationScopeLabel,
|
|
301
298
|
chartTypeLabel,
|
|
302
299
|
isSelected,
|
|
303
300
|
chartIcon,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
#item.dashboardType="{ item }"
|
|
33
33
|
>
|
|
34
34
|
<FSChip
|
|
35
|
-
:color="
|
|
35
|
+
:color="ColorEnum.Light"
|
|
36
36
|
:label="dashboardTypeLabel(item.dashboardType)"
|
|
37
37
|
/>
|
|
38
38
|
</template>
|
|
@@ -105,7 +105,8 @@ import { useAppOrganisationId, useCurrentUserOrganisation, useDashboardOrganisat
|
|
|
105
105
|
import type { DashboardOrganisationTypeFilters, DashboardOrganisationFilters, DashboardShallowFilters, DashboardInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
106
106
|
import { useOrganisation } from "@dative-gpi/foundation-shared-services/composables";
|
|
107
107
|
|
|
108
|
-
import {
|
|
108
|
+
import { dashboardTypeLabel, type DashboardsListItem } from "@dative-gpi/foundation-core-components/utils";
|
|
109
|
+
import { ColorEnum } from '@dative-gpi/foundation-shared-components/models';
|
|
109
110
|
import { DashboardType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
110
111
|
import { getEnumEntries } from '@dative-gpi/foundation-shared-domain';
|
|
111
112
|
|
|
@@ -264,13 +265,13 @@ export default defineComponent({
|
|
|
264
265
|
fetchingDashboardShallows,
|
|
265
266
|
headersOptions,
|
|
266
267
|
selecteds,
|
|
268
|
+
ColorEnum,
|
|
267
269
|
items,
|
|
268
270
|
mainUserDashboardId,
|
|
269
271
|
mainOrganisationDashboardId,
|
|
270
272
|
onSelect,
|
|
271
273
|
isSelected,
|
|
272
274
|
DashboardType,
|
|
273
|
-
dashboardTypeColor,
|
|
274
275
|
dashboardTypeLabel
|
|
275
276
|
};
|
|
276
277
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.159-
|
|
4
|
+
"version": "1.0.159-tes2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-core-domain": "1.0.159-
|
|
14
|
-
"@dative-gpi/foundation-core-services": "1.0.159-
|
|
15
|
-
"@dative-gpi/foundation-shared-components": "1.0.159-
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.0.159-
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.0.159-
|
|
13
|
+
"@dative-gpi/foundation-core-domain": "1.0.159-tes2",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.159-tes2",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.159-tes2",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.159-tes2",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.159-tes2"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"sass": "1.71.1",
|
|
27
27
|
"sass-loader": "13.3.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "9b51b75c3f99df003358ec61cb75e8f18f7579b8"
|
|
30
30
|
}
|