@dative-gpi/foundation-core-components 1.0.145 → 1.0.147-maps

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.
@@ -2,7 +2,17 @@
2
2
  <component
3
3
  :is="component"
4
4
  v-bind="$attrs"
5
- />
5
+ >
6
+ <template
7
+ v-for="(_, name) in $slots"
8
+ v-slot:[name]="slotData"
9
+ >
10
+ <slot
11
+ :name="name"
12
+ v-bind="slotData"
13
+ />
14
+ </template>
15
+ </component>
6
16
  </template>
7
17
 
8
18
  <script lang="ts">
@@ -43,7 +53,7 @@ export default defineComponent({
43
53
  });
44
54
 
45
55
  return {
46
- component,
56
+ component
47
57
  }
48
58
  }
49
59
  });
@@ -15,7 +15,17 @@
15
15
  :modelValue="actualSelecteds"
16
16
  :filters="$props.filters"
17
17
  @update:modelValue="actualSelecteds = $event"
18
- />
18
+ >
19
+ <template
20
+ v-for="(_, name) in $slots"
21
+ v-slot:[name]="slotData"
22
+ >
23
+ <slot
24
+ :name="name"
25
+ v-bind="slotData"
26
+ />
27
+ </template>
28
+ </FSSelectEntitiesList>
19
29
  </template>
20
30
  </FSDialogSubmit>
21
31
  </template>
@@ -45,7 +45,17 @@
45
45
  :modelValue="$props.modelValue"
46
46
  @update:modelValue="$emit('update:modelValue', $event)"
47
47
  v-bind="baseTableAttrs"
48
- />
48
+ >
49
+ <template
50
+ v-for="(_, name) in $slots"
51
+ v-slot:[getNameSlot(name)]="slotData"
52
+ >
53
+ <slot
54
+ :name="name"
55
+ v-bind="slotData"
56
+ />
57
+ </template>
58
+ </FSBaseEntitiesList>
49
59
  </FSCol>
50
60
  </FSCol>
51
61
  </template>
@@ -54,7 +64,7 @@
54
64
  import { defineComponent, type PropType, computed } from "vue";
55
65
 
56
66
  import { EntityType } from "@dative-gpi/foundation-shared-domain/enums";
57
- import type { DashboardOrganisationFilters, DashboardOrganisationTypeFilters, DeviceOrganisationFilters, FolderFilters, GroupFilters, LocationFilters, ModelFilters, UserOrganisationFilters } from "@dative-gpi/foundation-core-domain/models";
67
+ import type { DashboardOrganisationFilters, DashboardOrganisationTypeFilters, DashboardShallowFilters, DeviceOrganisationFilters, FolderFilters, GroupFilters, LocationFilters, ModelFilters, UserOrganisationFilters } from "@dative-gpi/foundation-core-domain/models";
58
68
 
59
69
  import { TABLES as T } from "../../utils";
60
70
 
@@ -116,7 +126,7 @@ export default defineComponent({
116
126
  dashboardOrganisationsIds: props.modelValue,
117
127
  dashboardOrganisationTypesIds: props.modelValue,
118
128
  dashboardShallowsIds: props.modelValue
119
- } satisfies DashboardOrganisationFilters & DashboardOrganisationTypeFilters;
129
+ } satisfies DashboardOrganisationFilters & DashboardOrganisationTypeFilters & DashboardShallowFilters;
120
130
  case EntityType.Group:
121
131
  return {
122
132
  groupsIds: props.modelValue
@@ -199,11 +209,16 @@ export default defineComponent({
199
209
  emit("update:modelValue", props.modelValue.filter((i) => i !== id));
200
210
  }
201
211
 
212
+ const getNameSlot = (name: string | number) => {
213
+ return name.toString().replace("base-list-", "");
214
+ }
215
+
202
216
  return {
203
217
  simpleListFilters,
204
218
  baseTableAttrs,
205
219
  tableCode,
206
- onRemove
220
+ onRemove,
221
+ getNameSlot
207
222
  }
208
223
  }
209
224
  });
@@ -134,25 +134,7 @@
134
134
  </FSSpan>
135
135
  </template>
136
136
  <template
137
- #item.triggerSourceTimestamp="{ item }"
138
- >
139
- <FSSpan
140
- font="text-overline"
141
- >
142
- {{ epochToShortTimeFormat(item.triggerSourceTimestamp) }}
143
- </FSSpan>
144
- </template>
145
- <template
146
- #item.triggerEnqueuedTimestamp="{ item }"
147
- >
148
- <FSSpan
149
- font="text-overline"
150
- >
151
- {{ epochToShortTimeFormat(item.triggerEnqueuedTimestamp) }}
152
- </FSSpan>
153
- </template>
154
- <template
155
- #item.triggerProcessedTimestamp="{ item }"
137
+ #item.triggerActualTimestamp="{ item }"
156
138
  >
157
139
  <FSSpan
158
140
  font="text-overline"
@@ -170,30 +152,12 @@
170
152
  </FSSpan>
171
153
  </template>
172
154
  <template
173
- #item.currentSourceTimestamp="{ item }"
174
- >
175
- <FSSpan
176
- font="text-overline"
177
- >
178
- {{ epochToShortTimeFormat(item.currentSourceTimestamp) }}
179
- </FSSpan>
180
- </template>
181
- <template
182
- #item.currentEnqueuedTimestamp="{ item }"
183
- >
184
- <FSSpan
185
- font="text-overline"
186
- >
187
- {{ epochToShortTimeFormat(item.currentEnqueuedTimestamp) }}
188
- </FSSpan>
189
- </template>
190
- <template
191
- #item.currentProcessedTimestamp="{ item }"
155
+ #item.currentActualTimestamp="{ item }"
192
156
  >
193
157
  <FSSpan
194
158
  font="text-overline"
195
159
  >
196
- {{ epochToShortTimeFormat(item.currentProcessedTimestamp) }}
160
+ {{ epochToShortTimeFormat(item.currentActualTimestamp) }}
197
161
  </FSSpan>
198
162
  </template>
199
163
  <template
@@ -321,7 +285,7 @@ export default defineComponent({
321
285
  const als = [...alerts.value]
322
286
  return als.sort((a: AlertInfos, b: AlertInfos) => {
323
287
  return (a.acknowledged === b.acknowledged) ?
324
- +b.currentSourceTimestamp! - +a.currentSourceTimestamp! : a.acknowledged ? 1 : -1
288
+ +b.currentActualTimestamp! - +a.currentActualTimestamp! : a.acknowledged ? 1 : -1
325
289
  });
326
290
  });
327
291
 
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.145",
4
+ "version": "1.0.147-maps",
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.145",
14
- "@dative-gpi/foundation-core-services": "1.0.145",
15
- "@dative-gpi/foundation-shared-components": "1.0.145",
16
- "@dative-gpi/foundation-shared-domain": "1.0.145",
17
- "@dative-gpi/foundation-shared-services": "1.0.145"
13
+ "@dative-gpi/foundation-core-domain": "1.0.147-maps",
14
+ "@dative-gpi/foundation-core-services": "1.0.147-maps",
15
+ "@dative-gpi/foundation-shared-components": "1.0.147-maps",
16
+ "@dative-gpi/foundation-shared-domain": "1.0.147-maps",
17
+ "@dative-gpi/foundation-shared-services": "1.0.147-maps"
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": "6c88c1ce189ab312cb04f5956ca391e94b1a0dbe"
29
+ "gitHead": "ae8bef1eca27c0f0c345f01c69bf851e12fec0df"
30
30
  }