@dative-gpi/foundation-core-components 1.0.165 → 1.0.167-address

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.
@@ -129,28 +129,38 @@
129
129
  </template>
130
130
 
131
131
  <template
132
- #item.tile="{ item, toggleSelect }"
132
+ #item.tile="{ index, item, toggleSelect }"
133
133
  >
134
134
  <FSGroupTileUI
135
135
  v-if="item.type === DeviceExplorerElementType.Group"
136
+ :key="index"
136
137
  :to="$props.itemTo && $props.itemTo(item)"
138
+ :imageId="item.imageId"
139
+ :icon="item.icon"
140
+ :label="item.label"
141
+ :code="item.code"
142
+ :recursiveGroupsIds="item.recursiveGroupsIds"
143
+ :recursiveDeviceOrganisationsIds="item.recursiveDeviceOrganisationsIds"
137
144
  :modelValue="isSelected(item.id)"
138
145
  :selectable="$props.selectable"
139
146
  @update:modelValue="toggleSelect(item)"
140
- v-bind="item"
141
147
  />
142
148
  <FSDeviceOrganisationTileUI
143
149
  v-if="item.type === DeviceExplorerElementType.DeviceOrganisation"
150
+ :key="index"
144
151
  :to="$props.itemTo && $props.itemTo(item)"
145
152
  :deviceConnectivity="item.connectivity"
146
153
  :deviceStatuses="item.status.statuses"
147
154
  :deviceWorstAlert="item.worstAlert"
148
155
  :deviceAlerts="item.alerts"
156
+ :imageId="item.imageId"
157
+ :label="item.label"
158
+ :code="item.code"
159
+ :modelStatuses="item.modelStatuses"
149
160
  :alertTo="$props.alertTo"
150
161
  :modelValue="isSelected(item.id)"
151
162
  :selectable="$props.selectable"
152
163
  @update:modelValue="toggleSelect(item)"
153
- v-bind="item"
154
164
  />
155
165
  </template>
156
166
  </FSDataTable>
@@ -90,10 +90,11 @@
90
90
  />
91
91
  </template>
92
92
  <template
93
- #item.tile="{ item, toggleSelect }"
93
+ #item.tile="{ index, item, toggleSelect }"
94
94
  >
95
95
  <FSFolderTileUI
96
96
  v-if="item.type == FoldersListType.Folder"
97
+ :key="index"
97
98
  :bottomColor="item.colors"
98
99
  v-bind="item"
99
100
  :selectable="$props.selectable"
@@ -103,6 +104,7 @@
103
104
  />
104
105
  <FSDashboardOrganisationTileUI
105
106
  v-if="item.type == FoldersListType.Dashboard && item.dashboardType == DashboardType.Organisation"
107
+ :key="index"
106
108
  :bottomColor="item.colors"
107
109
  :selectable="$props.selectable"
108
110
  :modelValue="isSelected(item.id)"
@@ -112,6 +114,7 @@
112
114
  />
113
115
  <FSDashboardShallowTileUI
114
116
  v-if="item.type == FoldersListType.Dashboard && item.dashboardType == DashboardType.Shallow"
117
+ :key="index"
115
118
  :bottomColor="item.colors"
116
119
  :selectable="$props.selectable"
117
120
  :modelValue="isSelected(item.id)"
@@ -171,9 +171,10 @@
171
171
  </FSSpan>
172
172
  </template>
173
173
  <template
174
- #item.tile="{ item, toggleSelect }"
174
+ #item.tile="{ index, item, toggleSelect }"
175
175
  >
176
176
  <FSAlertTileUI
177
+ :key="index"
177
178
  variant="standard"
178
179
  :label="item.label"
179
180
  :deviceOrganisationLabel="item.deviceOrganisationLabel"
@@ -79,9 +79,10 @@
79
79
  />
80
80
  </template>
81
81
  <template
82
- #item.tile="{ item, toggleSelect}"
82
+ #item.tile="{ index, item, toggleSelect}"
83
83
  >
84
84
  <FSChartTileUI
85
+ :key="index"
85
86
  :label="item.label"
86
87
  :category-label="item.chartCategoryLabel"
87
88
  :singleSelect="$props.singleSelect"
@@ -79,9 +79,10 @@
79
79
  </FSRow>
80
80
  </template>
81
81
  <template
82
- #item.tile="{ item, toggleSelect }"
82
+ #item.tile="{ index, item, toggleSelect }"
83
83
  >
84
84
  <FSChartTileUI
85
+ :key="index"
85
86
  :label="item.label"
86
87
  :singleSelect="$props.singleSelect"
87
88
  :selectable="$props.selectable"
@@ -85,9 +85,10 @@
85
85
  />
86
86
  </template>
87
87
  <template
88
- #item.tile="{ item }"
88
+ #item.tile="{ index, item }"
89
89
  >
90
90
  <FSChartTileUI
91
+ :key="index"
91
92
  :label="item.label"
92
93
  :categoryLabel="item.chartCategoryLabel"
93
94
  :icon="item.icon"
@@ -66,9 +66,10 @@
66
66
  />
67
67
  </template>
68
68
  <template
69
- #item.tile="{ item, toggleSelect }"
69
+ #item.tile="{ index, item, toggleSelect }"
70
70
  >
71
71
  <FSDashboardOrganisationTypeTileUI
72
+ :key="index"
72
73
  :bottomColor="item.colors"
73
74
  :selectable="$props.selectable"
74
75
  :singleSelect="$props.singleSelect"
@@ -60,10 +60,11 @@
60
60
  />
61
61
  </template>
62
62
  <template
63
- #item.tile="{ item, toggleSelect }"
63
+ #item.tile="{ index, item, toggleSelect }"
64
64
  >
65
65
  <FSDashboardOrganisationTypeTileUI
66
66
  v-if="item.dashboardType == DashboardType.OrganisationType"
67
+ :key="index"
67
68
  :bottomColor="item.colors"
68
69
  :selectable="$props.selectable"
69
70
  :singleSelect="$props.singleSelect"
@@ -74,6 +75,7 @@
74
75
  />
75
76
  <FSDashboardOrganisationTileUI
76
77
  v-if="item.dashboardType == DashboardType.Organisation"
78
+ :key="index"
77
79
  :bottomColor="item.colors"
78
80
  :selectable="$props.selectable"
79
81
  :singleSelect="$props.singleSelect"
@@ -84,6 +86,7 @@
84
86
  />
85
87
  <FSDashboardShallowTileUI
86
88
  v-if="item.dashboardType == DashboardType.Shallow"
89
+ :key="index"
87
90
  :bottomColor="item.colors"
88
91
  :selectable="$props.selectable"
89
92
  :singleSelect="$props.singleSelect"
@@ -39,9 +39,10 @@
39
39
  />
40
40
  </template>
41
41
  <template
42
- #item.tile="{ item }"
42
+ #item.tile="{ index, item }"
43
43
  >
44
44
  <FSClickable
45
+ :key="index"
45
46
  padding="12px"
46
47
  height="60px"
47
48
  width="233px"
@@ -26,9 +26,10 @@
26
26
  />
27
27
  </template>
28
28
  <template
29
- #item.tile="{ item }"
29
+ #item.tile="{ index, item }"
30
30
  >
31
31
  <FSClickable
32
+ :key="index"
32
33
  padding="12px"
33
34
  height="60px"
34
35
  width="233px"
@@ -106,6 +106,15 @@
106
106
  :deviceStatuses="item.status.statuses"
107
107
  />
108
108
  </template>
109
+ <template
110
+ #item.ownerAddress="{ item }"
111
+ >
112
+ <FSSpan
113
+ font="text-overline"
114
+ >
115
+ {{ item.ownerAddress ? item.ownerAddress.formattedAddress : '' }}
116
+ </FSSpan>
117
+ </template>
109
118
  <template
110
119
  #item.actions="{ item }"
111
120
  >
@@ -138,9 +147,10 @@
138
147
  />
139
148
  </template>
140
149
  <template
141
- #item.tile="{ item, toggleSelect }"
150
+ #item.tile="{ index, item, toggleSelect }"
142
151
  >
143
152
  <FSDeviceOrganisationTileUI
153
+ :key="index"
144
154
  :to="$props.itemTo && $props.itemTo(item)"
145
155
  :selectable="$props.selectable"
146
156
  :deviceConnectivity="item.connectivity"
@@ -181,6 +191,7 @@ import FSWorstAlert from "@dative-gpi/foundation-shared-components/components/de
181
191
  import FSIconCheck from "@dative-gpi/foundation-shared-components/components/FSIconCheck.vue";
182
192
  import FSTagGroup from "@dative-gpi/foundation-shared-components/components/FSTagGroup.vue";
183
193
  import FSImage from "@dative-gpi/foundation-shared-components/components/FSImage.vue";
194
+ import FSSpan from '@dative-gpi/foundation-shared-components/components/FSSpan.vue';
184
195
 
185
196
  export default defineComponent({
186
197
  name: "FSBaseDeviceOrganisationsList",
@@ -193,7 +204,8 @@ export default defineComponent({
193
204
  FSIconCheck,
194
205
  FSMetaValue,
195
206
  FSTagGroup,
196
- FSImage
207
+ FSImage,
208
+ FSSpan
197
209
  },
198
210
  props: {
199
211
  tableCode: {
@@ -37,9 +37,10 @@
37
37
  </template>
38
38
 
39
39
  <template
40
- #item.tile="{ item, toggleSelect }"
40
+ #item.tile="{ index, item, toggleSelect }"
41
41
  >
42
42
  <FSFolderTileUI
43
+ :key="index"
43
44
  :bottomColor="item.colors"
44
45
  v-bind="item"
45
46
  :modelValue="isSelected(item.id)"
@@ -53,9 +53,10 @@
53
53
  />
54
54
  </template>
55
55
  <template
56
- #item.tile="{ item, toggleSelect }"
56
+ #item.tile="{ index, item, toggleSelect }"
57
57
  >
58
58
  <FSGroupTileUI
59
+ :key="index"
59
60
  :selectable="$props.selectable"
60
61
  :modelValue="isSelected(item.id)"
61
62
  @update:modelValue="toggleSelect(item)"
@@ -27,10 +27,10 @@
27
27
  </template>
28
28
 
29
29
  <template
30
- #item.tile="{ item, toggleSelect }"
30
+ #item.tile="{ index, item, toggleSelect }"
31
31
  >
32
32
  <FSLocationTileUI
33
- v-bind="item"
33
+ :key="index"
34
34
  :bottomColor="item.colors"
35
35
  :address="item.address.placeLabel"
36
36
  :selectable="$props.selectable"
@@ -38,6 +38,7 @@
38
38
  :modelValue="isSelected(item.id)"
39
39
  :to="$props.itemTo && $props.itemTo(item)"
40
40
  @update:modelValue="toggleSelect(item)"
41
+ v-bind="item"
41
42
  />
42
43
  </template>
43
44
  </FSDataTable>
@@ -59,9 +59,10 @@
59
59
  />
60
60
  </template>
61
61
  <template
62
- #item.tile="{ item, toggleSelect }"
62
+ #item.tile="{ index, item, toggleSelect }"
63
63
  >
64
64
  <FSModelTileUI
65
+ :key="index"
65
66
  :to="$props.itemTo && $props.itemTo(item)"
66
67
  :selectable="$props.selectable"
67
68
  :singleSelect="$props.singleSelect"
@@ -0,0 +1,44 @@
1
+ <template>
2
+ <FSSimpleList
3
+ :items="playlists"
4
+ :loading="fetching"
5
+ v-bind="$attrs"
6
+ />
7
+ </template>
8
+
9
+ <script lang="ts">
10
+ import { defineComponent, type PropType, watch } from "vue";
11
+
12
+ import type { PlaylistFilters } from "@dative-gpi/foundation-core-domain/models";
13
+ import { usePlaylists } from "@dative-gpi/foundation-core-services/composables";
14
+
15
+ import FSSimpleList from "@dative-gpi/foundation-shared-components/components/lists/FSSimpleList.vue";
16
+
17
+ export default defineComponent({
18
+ name: "FSSimplePlaylistsList",
19
+ components: {
20
+ FSSimpleList,
21
+ },
22
+ props: {
23
+ playlistFilters: {
24
+ type: Object as PropType<PlaylistFilters>,
25
+ required: false,
26
+ default: () => ({})
27
+ }
28
+ },
29
+ setup(props) {
30
+ const { entities: playlists, getMany, fetching } = usePlaylists();
31
+
32
+ const fetch = () => {
33
+ getMany(props.playlistFilters);
34
+ }
35
+
36
+ watch(() => props.playlistFilters, fetch, { immediate: true });
37
+
38
+ return {
39
+ playlists,
40
+ fetching
41
+ }
42
+ }
43
+ });
44
+ </script>
@@ -64,9 +64,10 @@
64
64
  </FSSpan>
65
65
  </template>
66
66
  <template
67
- #item.tile="{ item, toggleSelect }"
67
+ #item.tile="{ index, item, toggleSelect }"
68
68
  >
69
69
  <FSServiceAccountOrganisationTileUI
70
+ :key="index"
70
71
  :to="$props.itemTo && $props.itemTo(item)"
71
72
  :selectable="$props.selectable"
72
73
  :modelValue="isSelected(item.id)"
@@ -78,9 +78,10 @@
78
78
  </FSSpan>
79
79
  </template>
80
80
  <template
81
- #item.tile="{ item, toggleSelect }"
81
+ #item.tile="{ index, item, toggleSelect }"
82
82
  >
83
83
  <FSUserOrganisationTileUI
84
+ :key="index"
84
85
  :to="$props.itemTo && $props.itemTo(item)"
85
86
  :selectable="$props.selectable"
86
87
  :modelValue="isSelected(item.id)"
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.165",
4
+ "version": "1.0.167-address",
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.165",
14
- "@dative-gpi/foundation-core-services": "1.0.165",
15
- "@dative-gpi/foundation-shared-components": "1.0.165",
16
- "@dative-gpi/foundation-shared-domain": "1.0.165",
17
- "@dative-gpi/foundation-shared-services": "1.0.165"
13
+ "@dative-gpi/foundation-core-domain": "1.0.167-address",
14
+ "@dative-gpi/foundation-core-services": "1.0.167-address",
15
+ "@dative-gpi/foundation-shared-components": "1.0.167-address",
16
+ "@dative-gpi/foundation-shared-domain": "1.0.167-address",
17
+ "@dative-gpi/foundation-shared-services": "1.0.167-address"
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": "0481543beb9ab42475891298793dc397c2428a19"
29
+ "gitHead": "79b2c8fe9e4c7ac46ff677fb20914857aeedaee5"
30
30
  }