@dative-gpi/foundation-core-components 1.0.142-role3 → 1.0.142-select-entity-slot

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:[getNameSlot(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">
@@ -42,8 +52,13 @@ export default defineComponent({
42
52
  };
43
53
  });
44
54
 
55
+ const getNameSlot = (name: string | number) => {
56
+ return name.toString().replace("base-list-", "");
57
+ }
58
+
45
59
  return {
46
60
  component,
61
+ getNameSlot
47
62
  }
48
63
  }
49
64
  });
@@ -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:[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
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.142-role3",
4
+ "version": "1.0.142-select-entity-slot",
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.142-role3",
14
- "@dative-gpi/foundation-core-services": "1.0.142-role3",
15
- "@dative-gpi/foundation-shared-components": "1.0.142-role3",
16
- "@dative-gpi/foundation-shared-domain": "1.0.142-role3",
17
- "@dative-gpi/foundation-shared-services": "1.0.142-role3"
13
+ "@dative-gpi/foundation-core-domain": "1.0.142-select-entity-slot",
14
+ "@dative-gpi/foundation-core-services": "1.0.142-select-entity-slot",
15
+ "@dative-gpi/foundation-shared-components": "1.0.142-select-entity-slot",
16
+ "@dative-gpi/foundation-shared-domain": "1.0.142-select-entity-slot",
17
+ "@dative-gpi/foundation-shared-services": "1.0.142-select-entity-slot"
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": "a4cb5dbe0b195be866482be144eee946a7467702"
29
+ "gitHead": "79558fe722c254ecb69d9c9da5ee7e3fc6aa7973"
30
30
  }