@dative-gpi/foundation-core-components 1.1.33 → 1.1.35

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.
@@ -165,12 +165,12 @@
165
165
  </template>
166
166
  </FSDataTable>
167
167
  </template>
168
-
168
+
169
169
  <script lang="ts">
170
170
  import { computed, defineComponent, type PropType, ref, watch } from "vue";
171
171
  import { type RouteLocation } from "vue-router";
172
172
  import _ from "lodash";
173
-
173
+
174
174
  import { ConnectivityStatus, DeviceExplorerElementType } from "@dative-gpi/foundation-shared-domain/enums";
175
175
  import { useDeviceExplorerElements } from "@dative-gpi/foundation-core-services/composables";
176
176
  import { type DeviceExplorerElementInfos} from "@dative-gpi/foundation-core-domain/models";
@@ -259,7 +259,7 @@ export default defineComponent({
259
259
  const deviceExplorerElements = computed((): DeviceExplorerElementInfos[] => {
260
260
  let elements = entities.value.slice();
261
261
  if (props.connectedOnly) {
262
- elements = elements.filter(dee =>
262
+ elements = elements.filter(dee =>
263
263
  dee.type === DeviceExplorerElementType.Group ||
264
264
  (dee.connectivity != null && dee.connectivity.status != ConnectivityStatus.None)
265
265
  );
@@ -295,7 +295,7 @@ export default defineComponent({
295
295
 
296
296
  // Delay to wait before fetching after a search change
297
297
  const debounceFetch = (): void => debounce(fetch, 1000);
298
-
298
+
299
299
  watch([() => props.parentId, () => props.root], (next, previous) => {
300
300
  if ((!next && !previous) || !_.isEqual(next, previous)) {
301
301
  fetch();
@@ -319,4 +319,4 @@ export default defineComponent({
319
319
  };
320
320
  }
321
321
  });
322
- </script>
322
+ </script>
@@ -215,14 +215,14 @@
215
215
  </template>
216
216
  </FSDataTable>
217
217
  </template>
218
-
218
+
219
219
  <script lang="ts">
220
220
  import { computed, defineComponent, onMounted, type PropType, watch } from "vue";
221
221
  import { type RouteLocation } from "vue-router";
222
222
  import _ from "lodash";
223
223
 
224
224
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui";
225
-
225
+
226
226
  import { ConnectivityStatus, Criticity, PropertyEntity } from "@dative-gpi/foundation-shared-domain/enums";
227
227
  import { alphanumericSort, connectivityLabel, connectivityIcon, connectivityColor } from "@dative-gpi/foundation-shared-components/utils";
228
228
  import { CardVariants, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -311,7 +311,7 @@ export default defineComponent({
311
311
  const { fetching: fecthingCustomProperties, entities: customProperties, getMany: getManyCustomProperties } = useCustomProperties();
312
312
  const { entities, fetching: fetchingDeviceOrganisations, getMany: getManyDeviceOrganisations } = useDeviceOrganisations();
313
313
  const { $tr } = useTranslationsProvider();
314
-
314
+
315
315
  const deviceOrganisations = computed((): DeviceOrganisationInfos[] => {
316
316
  if (props.connectedOnly) {
317
317
  return entities.value.filter(d => d.connectivity != null && d.connectivity.status != ConnectivityStatus.None);
@@ -324,17 +324,17 @@ export default defineComponent({
324
324
  value: null,
325
325
  text: "—"
326
326
  }];
327
-
327
+
328
328
  const uniqueSubgroupings = _.uniqBy(
329
329
  entities.value.flatMap(device => device.subgroupings),
330
330
  'id'
331
331
  );
332
-
332
+
333
333
  filters.push(...uniqueSubgroupings.map(subgrouping => ({
334
334
  value: subgrouping.id,
335
335
  text: `${subgrouping.groupingLabel} - ${subgrouping.label}`
336
336
  })));
337
-
337
+
338
338
  return filters.sort((a, b) => a.text.localeCompare(b.text));
339
339
  });
340
340
 
@@ -454,23 +454,23 @@ export default defineComponent({
454
454
  }
455
455
  }), {})
456
456
  }));
457
-
457
+
458
458
  const isSelected = (id: string): boolean => {
459
459
  return props.modelValue.includes(id);
460
460
  };
461
-
461
+
462
462
  onMounted((): void => {
463
- getManyCustomProperties({
463
+ getManyCustomProperties({
464
464
  entities: [PropertyEntity.Device, PropertyEntity.DeviceOrganisation]
465
465
  });
466
466
  });
467
-
467
+
468
468
  watch(() => props.deviceOrganisationFilters, (next, previous) => {
469
469
  if ((!next && !previous) || !_.isEqual(next, previous)) {
470
470
  getManyDeviceOrganisations(props.deviceOrganisationFilters);
471
471
  }
472
472
  }, { immediate: true });
473
-
473
+
474
474
  return {
475
475
  fetchingDeviceOrganisations,
476
476
  fecthingCustomProperties,
@@ -488,4 +488,3 @@ export default defineComponent({
488
488
  }
489
489
  });
490
490
  </script>
491
-
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.1.33",
7
+ "version": "1.1.35",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,11 +13,11 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-core-domain": "1.1.33",
17
- "@dative-gpi/foundation-core-services": "1.1.33",
18
- "@dative-gpi/foundation-shared-components": "1.1.33",
19
- "@dative-gpi/foundation-shared-domain": "1.1.33",
20
- "@dative-gpi/foundation-shared-services": "1.1.33"
16
+ "@dative-gpi/foundation-core-domain": "1.1.35",
17
+ "@dative-gpi/foundation-core-services": "1.1.35",
18
+ "@dative-gpi/foundation-shared-components": "1.1.35",
19
+ "@dative-gpi/foundation-shared-domain": "1.1.35",
20
+ "@dative-gpi/foundation-shared-services": "1.1.35"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -29,5 +29,5 @@
29
29
  "sass": "1.71.1",
30
30
  "sass-loader": "13.3.2"
31
31
  },
32
- "gitHead": "8beaa200693b2a7962cdd215580576942b830bfe"
32
+ "gitHead": "b897bb52d748d3df45c5d651872276e7c5255938"
33
33
  }