@dative-gpi/foundation-core-components 1.0.145 → 1.0.146
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
|
});
|
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.
|
|
4
|
+
"version": "1.0.146",
|
|
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.
|
|
14
|
-
"@dative-gpi/foundation-core-services": "1.0.
|
|
15
|
-
"@dative-gpi/foundation-shared-components": "1.0.
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-core-domain": "1.0.146",
|
|
14
|
+
"@dative-gpi/foundation-core-services": "1.0.146",
|
|
15
|
+
"@dative-gpi/foundation-shared-components": "1.0.146",
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.146",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.146"
|
|
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": "
|
|
29
|
+
"gitHead": "6054ea411ddcd4f9f4942e5a4e7a99b6f92338a1"
|
|
30
30
|
}
|