@dative-gpi/foundation-core-components 1.0.194-playlists-02 → 1.0.194-sandbox
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/components/lists/dataCategories/FSBaseDataCategoriesList.vue +10 -8
- package/components/lists/dataDefinitions/FSBaseDataDefinitionsList.vue +10 -7
- package/components/lists/locations/FSBaseLocationsList.vue +1 -1
- package/package.json +8 -8
- package/components/lists/playlists/FSTilePlaylistsList.vue +0 -93
- package/components/tiles/FSPlaylistTile.vue +0 -78
|
@@ -41,17 +41,18 @@
|
|
|
41
41
|
<template
|
|
42
42
|
#item.tile="{ index, item }"
|
|
43
43
|
>
|
|
44
|
-
<
|
|
44
|
+
<FSCard
|
|
45
45
|
:key="index"
|
|
46
46
|
padding="12px"
|
|
47
47
|
height="60px"
|
|
48
48
|
width="233px"
|
|
49
|
-
:
|
|
49
|
+
:variant="isSelected(item.id) ? CardVariants.Standard : CardVariants.Background"
|
|
50
|
+
:color="ColorEnum.Primary"
|
|
50
51
|
@click="$emit('update:modelValue', [item.id])"
|
|
51
52
|
v-bind="$attrs"
|
|
52
53
|
>
|
|
53
54
|
<template
|
|
54
|
-
#default
|
|
55
|
+
#default="{ contentVariant }"
|
|
55
56
|
>
|
|
56
57
|
<FSRow
|
|
57
58
|
align="center-center"
|
|
@@ -66,11 +67,11 @@
|
|
|
66
67
|
<FSIcon
|
|
67
68
|
:color="item.correlated ? ColorEnum.Primary : ColorEnum.Light"
|
|
68
69
|
:icon="item.correlated ? 'mdi-link' : 'mdi-link-off'"
|
|
69
|
-
variant="
|
|
70
|
+
:variant="contentVariant"
|
|
70
71
|
/>
|
|
71
72
|
</FSRow>
|
|
72
73
|
</template>
|
|
73
|
-
</
|
|
74
|
+
</FSCard>
|
|
74
75
|
</template>
|
|
75
76
|
</FSDataTable>
|
|
76
77
|
</FSFadeOut>
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
import { defineComponent, type PropType, ref, watch } from "vue";
|
|
82
83
|
import _ from "lodash";
|
|
83
84
|
|
|
84
|
-
import {ColorEnum} from "@dative-gpi/foundation-shared-components/models";
|
|
85
|
+
import {CardVariants, ColorEnum} from "@dative-gpi/foundation-shared-components/models";
|
|
85
86
|
|
|
86
87
|
import { useDataCategories } from "@dative-gpi/foundation-core-services/composables";
|
|
87
88
|
import type { DataCategoryFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
@@ -89,10 +90,10 @@ import type { DataCategoryFilters } from "@dative-gpi/foundation-core-domain/mod
|
|
|
89
90
|
import FSDataTable from "../FSDataTable.vue";
|
|
90
91
|
import FSCol from "@dative-gpi/foundation-shared-components/components/FSCol.vue";
|
|
91
92
|
import FSRow from "@dative-gpi/foundation-shared-components/components/FSRow.vue";
|
|
93
|
+
import FSCard from "@dative-gpi/foundation-shared-components/components/FSCard.vue";
|
|
92
94
|
import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
|
|
93
95
|
import FSSpan from "@dative-gpi/foundation-shared-components/components/FSSpan.vue";
|
|
94
96
|
import FSFadeOut from "@dative-gpi/foundation-shared-components/components/FSFadeOut.vue";
|
|
95
|
-
import FSClickable from "@dative-gpi/foundation-shared-components/components/FSClickable.vue";
|
|
96
97
|
import FSSearchField from "@dative-gpi/foundation-shared-components/components/fields/FSSearchField.vue";
|
|
97
98
|
import FSButtonCheckbox from "@dative-gpi/foundation-shared-components/components/buttons/FSButtonCheckbox.vue";
|
|
98
99
|
|
|
@@ -102,7 +103,7 @@ export default defineComponent({
|
|
|
102
103
|
FSDataTable,
|
|
103
104
|
FSCol,
|
|
104
105
|
FSFadeOut,
|
|
105
|
-
|
|
106
|
+
FSCard,
|
|
106
107
|
FSRow,
|
|
107
108
|
FSSpan,
|
|
108
109
|
FSSearchField,
|
|
@@ -146,6 +147,7 @@ export default defineComponent({
|
|
|
146
147
|
return {
|
|
147
148
|
fetchingDataCategories,
|
|
148
149
|
dataCategories,
|
|
150
|
+
CardVariants,
|
|
149
151
|
ColorEnum,
|
|
150
152
|
search,
|
|
151
153
|
correlated,
|
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
<template
|
|
29
29
|
#item.tile="{ index, item }"
|
|
30
30
|
>
|
|
31
|
-
<
|
|
31
|
+
<FSCard
|
|
32
32
|
:key="index"
|
|
33
33
|
padding="12px"
|
|
34
34
|
height="60px"
|
|
35
35
|
width="233px"
|
|
36
|
-
:color="
|
|
36
|
+
:color="ColorEnum.Primary"
|
|
37
|
+
:variant="isSelected(item.id) ? CardVariants.Standard : CardVariants.Background"
|
|
37
38
|
@click="$emit('update:modelValue', [item.id])"
|
|
38
39
|
v-bind="$attrs"
|
|
39
40
|
>
|
|
40
41
|
<template
|
|
41
|
-
#default
|
|
42
|
+
#default="{ contentVariant }"
|
|
42
43
|
>
|
|
43
44
|
<FSRow
|
|
44
45
|
align="center-center"
|
|
@@ -54,11 +55,12 @@
|
|
|
54
55
|
<v-spacer/>
|
|
55
56
|
<FSIcon
|
|
56
57
|
:color="ColorEnum.Primary"
|
|
58
|
+
:variant="contentVariant"
|
|
57
59
|
icon="mdi-link"
|
|
58
60
|
/>
|
|
59
61
|
</FSRow>
|
|
60
62
|
</template>
|
|
61
|
-
</
|
|
63
|
+
</FSCard>
|
|
62
64
|
</template>
|
|
63
65
|
</FSDataTable>
|
|
64
66
|
</template>
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
import { defineComponent, type PropType, watch } from "vue";
|
|
68
70
|
import _ from "lodash";
|
|
69
71
|
|
|
70
|
-
import {ColorEnum} from "@dative-gpi/foundation-shared-components/models";
|
|
72
|
+
import { CardVariants, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
71
73
|
|
|
72
74
|
import { useDataDefinitions } from "@dative-gpi/foundation-core-services/composables";
|
|
73
75
|
import type { DataDefinitionFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
@@ -76,7 +78,7 @@ import FSDataTable from "../FSDataTable.vue";
|
|
|
76
78
|
import FSRow from "@dative-gpi/foundation-shared-components/components/FSRow.vue";
|
|
77
79
|
import FSSpan from "@dative-gpi/foundation-shared-components/components/FSSpan.vue";
|
|
78
80
|
import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
|
|
79
|
-
import
|
|
81
|
+
import FSCard from "@dative-gpi/foundation-shared-components/components/FSCard.vue";
|
|
80
82
|
import FSButtonCheckbox from "@dative-gpi/foundation-shared-components/components/buttons/FSButtonCheckbox.vue";
|
|
81
83
|
|
|
82
84
|
export default defineComponent({
|
|
@@ -84,7 +86,7 @@ export default defineComponent({
|
|
|
84
86
|
components: {
|
|
85
87
|
FSButtonCheckbox,
|
|
86
88
|
FSDataTable,
|
|
87
|
-
|
|
89
|
+
FSCard,
|
|
88
90
|
FSSpan,
|
|
89
91
|
FSIcon,
|
|
90
92
|
FSRow,
|
|
@@ -123,6 +125,7 @@ export default defineComponent({
|
|
|
123
125
|
return {
|
|
124
126
|
fetchingDataDefinitions,
|
|
125
127
|
dataDefinitions,
|
|
128
|
+
CardVariants,
|
|
126
129
|
ColorEnum,
|
|
127
130
|
isSelected
|
|
128
131
|
};
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
:bottomColor="item.colors"
|
|
35
35
|
:address="item.address.placeLabel"
|
|
36
36
|
:selectable="$props.selectable"
|
|
37
|
-
:singleSelect="
|
|
37
|
+
:singleSelect="singleSelect"
|
|
38
38
|
:modelValue="isSelected(item.id)"
|
|
39
39
|
:to="$props.itemTo && $props.itemTo(item)"
|
|
40
40
|
@update:modelValue="toggleSelect(item)"
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.0.194-
|
|
7
|
+
"version": "1.0.194-sandbox",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-core-domain": "1.0.194-
|
|
17
|
-
"@dative-gpi/foundation-core-services": "1.0.194-
|
|
18
|
-
"@dative-gpi/foundation-shared-components": "1.0.194-
|
|
19
|
-
"@dative-gpi/foundation-shared-domain": "1.0.194-
|
|
20
|
-
"@dative-gpi/foundation-shared-services": "1.0.194-
|
|
16
|
+
"@dative-gpi/foundation-core-domain": "1.0.194-sandbox",
|
|
17
|
+
"@dative-gpi/foundation-core-services": "1.0.194-sandbox",
|
|
18
|
+
"@dative-gpi/foundation-shared-components": "1.0.194-sandbox",
|
|
19
|
+
"@dative-gpi/foundation-shared-domain": "1.0.194-sandbox",
|
|
20
|
+
"@dative-gpi/foundation-shared-services": "1.0.194-sandbox"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
24
24
|
"color": "^4.2.3",
|
|
25
|
-
"vue": "^3.
|
|
25
|
+
"vue": "^3.5.26"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/color": "3.0.6",
|
|
29
29
|
"sass": "1.71.1",
|
|
30
30
|
"sass-loader": "13.3.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "456a9bcb78b6f7cbacc1c9845f68cbbf62320dbb"
|
|
33
33
|
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSTileList
|
|
3
|
-
:items="playlists"
|
|
4
|
-
:loading="fetching"
|
|
5
|
-
:selectable="$props.selectable"
|
|
6
|
-
:singleSelect="$props.singleSelect"
|
|
7
|
-
:modelValue="$props.modelValue"
|
|
8
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
9
|
-
v-bind="$attrs"
|
|
10
|
-
>
|
|
11
|
-
<template
|
|
12
|
-
v-for="(_, name) in $slots"
|
|
13
|
-
v-slot:[name]="slotData"
|
|
14
|
-
>
|
|
15
|
-
<slot
|
|
16
|
-
:name="name"
|
|
17
|
-
v-bind="slotData"
|
|
18
|
-
/>
|
|
19
|
-
</template>
|
|
20
|
-
<template
|
|
21
|
-
#item.tile="{ item, toggleSelect, direction }"
|
|
22
|
-
>
|
|
23
|
-
<FSPlaylistTileUI
|
|
24
|
-
:dashboardsCount="item.dashboards.length"
|
|
25
|
-
:selectable="$props.selectable"
|
|
26
|
-
:singleSelect="$props.singleSelect"
|
|
27
|
-
:modelValue="($props.modelValue ?? []).includes(item.id)"
|
|
28
|
-
:width="direction === ListDirections.Column ? 'fill' : undefined"
|
|
29
|
-
@update:modelValue="toggleSelect(item)"
|
|
30
|
-
v-bind="item"
|
|
31
|
-
/>
|
|
32
|
-
</template>
|
|
33
|
-
</FSTileList>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script lang="ts">
|
|
37
|
-
import type { PropType} from "vue";
|
|
38
|
-
import { defineComponent, watch } from "vue";
|
|
39
|
-
|
|
40
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
41
|
-
import { ListDirections } from "@dative-gpi/foundation-shared-domain/enums";
|
|
42
|
-
|
|
43
|
-
import type { PlaylistFilters } from "@dative-gpi/foundation-core-domain/models";
|
|
44
|
-
import { usePlaylists } from "@dative-gpi/foundation-core-services/composables";
|
|
45
|
-
|
|
46
|
-
import FSPlaylistTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSPlaylistTileUI.vue";
|
|
47
|
-
import FSTileList from "@dative-gpi/foundation-shared-components/components/lists/FSTileList.vue";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export default defineComponent({
|
|
51
|
-
title: "FSTilePlaylistsList",
|
|
52
|
-
components: {
|
|
53
|
-
FSPlaylistTileUI,
|
|
54
|
-
FSTileList
|
|
55
|
-
},
|
|
56
|
-
props: {
|
|
57
|
-
playlistFilters: {
|
|
58
|
-
type: Object as PropType<PlaylistFilters>,
|
|
59
|
-
required: true
|
|
60
|
-
},
|
|
61
|
-
modelValue: {
|
|
62
|
-
type: Array as PropType<string[]>,
|
|
63
|
-
required: false,
|
|
64
|
-
default: () => []
|
|
65
|
-
},
|
|
66
|
-
selectable: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
required: false,
|
|
69
|
-
default: false
|
|
70
|
-
},
|
|
71
|
-
singleSelect: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
required: false,
|
|
74
|
-
default: false
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
setup(props) {
|
|
78
|
-
const { entities: playlists, getMany, fetching } = usePlaylists();
|
|
79
|
-
|
|
80
|
-
const fetch = () => {
|
|
81
|
-
getMany(props.playlistFilters);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
watch(() => props.playlistFilters, fetch, { immediate: true });
|
|
85
|
-
return {
|
|
86
|
-
ListDirections,
|
|
87
|
-
playlists,
|
|
88
|
-
ColorEnum,
|
|
89
|
-
fetching
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
</script>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSLoadTile
|
|
3
|
-
v-if="getting"
|
|
4
|
-
:selectable="$props.selectable"
|
|
5
|
-
:modelValue="$props.modelValue"
|
|
6
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
-
/>
|
|
8
|
-
<PlaylistTileUI
|
|
9
|
-
v-else-if="entity"
|
|
10
|
-
:dashboardsCount="entity.dashboards?.length ?? 0"
|
|
11
|
-
:looped="entity.looped"
|
|
12
|
-
:delay="entity.delay"
|
|
13
|
-
:label="entity.label"
|
|
14
|
-
:code="entity.code"
|
|
15
|
-
:selectable="$props.selectable"
|
|
16
|
-
:modelValue="$props.modelValue"
|
|
17
|
-
@update:modelValue="$emit('update:modelValue', $event)"
|
|
18
|
-
v-bind="$attrs"
|
|
19
|
-
>
|
|
20
|
-
<template
|
|
21
|
-
v-for="(_, name) in $slots"
|
|
22
|
-
v-slot:[name]="slotData"
|
|
23
|
-
>
|
|
24
|
-
<slot
|
|
25
|
-
:name="name"
|
|
26
|
-
v-bind="slotData"
|
|
27
|
-
/>
|
|
28
|
-
</template>
|
|
29
|
-
</PlaylistTileUI>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script lang="ts">
|
|
33
|
-
import { defineComponent, onMounted, watch } from "vue";
|
|
34
|
-
|
|
35
|
-
import { usePlaylist } from "@dative-gpi/foundation-core-services/composables";
|
|
36
|
-
|
|
37
|
-
import PlaylistTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSPlaylistTileUI.vue";
|
|
38
|
-
|
|
39
|
-
export default defineComponent({
|
|
40
|
-
name: "FSPlaylistTile",
|
|
41
|
-
components: {
|
|
42
|
-
PlaylistTileUI
|
|
43
|
-
},
|
|
44
|
-
props: {
|
|
45
|
-
playlistId: {
|
|
46
|
-
type: String,
|
|
47
|
-
required: true
|
|
48
|
-
},
|
|
49
|
-
modelValue: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
required: false,
|
|
52
|
-
default: false
|
|
53
|
-
},
|
|
54
|
-
selectable: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
required: false,
|
|
57
|
-
default: false
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
emits: ["update:modelValue"],
|
|
61
|
-
setup(props) {
|
|
62
|
-
const { get, getting, entity } = usePlaylist();
|
|
63
|
-
|
|
64
|
-
onMounted(() => {
|
|
65
|
-
get(props.playlistId);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
watch(() => props.playlistId, () => {
|
|
69
|
-
get(props.playlistId);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
return {
|
|
73
|
-
getting,
|
|
74
|
-
entity
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
</script>
|