@dative-gpi/foundation-core-components 0.0.205 → 0.0.207

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.
@@ -81,11 +81,9 @@
81
81
  </template>
82
82
 
83
83
  <script lang="ts">
84
- import type { PropType } from "vue";
85
- import { computed, defineComponent } from "vue";
84
+ import { computed, defineComponent, type PropType } from "vue";
86
85
 
87
- import type { ChartOrganisationFilters, ChartOrganisationTypeFilters} from "@dative-gpi/foundation-core-domain/models";
88
- import { ChartOrigin } from "@dative-gpi/foundation-core-domain/models";
86
+ import { type ChartOrganisationFilters, ChartOrigin, type ChartOrganisationTypeFilters } from "@dative-gpi/foundation-core-domain/models";
89
87
  import { useChartOrganisations, useChartOrganisationTypes } from "@dative-gpi/foundation-core-services/composables";
90
88
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
91
89
 
@@ -163,7 +161,7 @@ export default defineComponent({
163
161
  return init.value && (fetchingChartOrganisationTypes.value || fetchingChartOrganisations.value);
164
162
  });
165
163
 
166
- const innerUpdate = (value: Chart[] | Chart | null) => {
164
+ const update = (value: Chart[] | Chart | null) => {
167
165
  if (Array.isArray(value)) {
168
166
  emit("update:modelValue", value.map(v => v.id));
169
167
  emit("update:type", value.map(v => v.type));
@@ -174,7 +172,7 @@ export default defineComponent({
174
172
  }
175
173
  };
176
174
 
177
- const innerFetch = (search: string | null) => {
175
+ const fetch = (search: string | null) => {
178
176
  return Promise.all([
179
177
  getManyChartOrganisationTypes({ ...props.chartOrganisationTypeFilters, search: search ?? undefined }),
180
178
  getManyChartOrganisations({ ...props.chartOrganisationFilters, search: search ?? undefined })
@@ -185,8 +183,8 @@ export default defineComponent({
185
183
  charts,
186
184
  [() => props.chartOrganisationTypeFilters, () => props.chartOrganisationFilters],
187
185
  emit,
188
- innerFetch,
189
- innerUpdate
186
+ fetch,
187
+ update
190
188
  );
191
189
 
192
190
  return {
@@ -81,10 +81,9 @@
81
81
  </template>
82
82
 
83
83
  <script lang="ts">
84
- import type { PropType } from "vue";
85
- import { computed, defineComponent } from "vue";
84
+ import { computed, defineComponent, type PropType } from "vue";
86
85
 
87
- import type { DashboardOrganisationFilters, DashboardOrganisationTypeFilters, DashboardShallowFilters } from "@dative-gpi/foundation-core-domain/models";
86
+ import { type DashboardOrganisationFilters, type DashboardOrganisationTypeFilters, type DashboardShallowFilters } from "@dative-gpi/foundation-core-domain/models";
88
87
  import { useDashboardOrganisations, useDashboardOrganisationTypes, useDashboardShallows } from "@dative-gpi/foundation-core-services/composables";
89
88
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
90
89
  import { DashboardType } from "@dative-gpi/foundation-shared-domain/models";
@@ -175,7 +174,7 @@ export default defineComponent({
175
174
  return init.value && (fetchingDashboardOrganisationTypes.value || fetchingDashboardOrganisations.value || fetchingDashboardShallows.value);
176
175
  });
177
176
 
178
- const innerUpdate = (value: Dashboard[] | Dashboard | null) => {
177
+ const update = (value: Dashboard[] | Dashboard | null) => {
179
178
  if (Array.isArray(value)) {
180
179
  emit("update:modelValue", value.map(v => v.id));
181
180
  emit("update:type", value.map(v => v.type));
@@ -186,7 +185,7 @@ export default defineComponent({
186
185
  }
187
186
  };
188
187
 
189
- const innerFetch = (search: string | null) => {
188
+ const fetch = (search: string | null) => {
190
189
  return Promise.all([
191
190
  getManyDashboardOrganisationTypes({ ...props.dashboardOrganisationTypeFilters, search: search ?? undefined }),
192
191
  getManyDashboardOrganisations({ ...props.dashboardOrganisationFilters, search: search ?? undefined }),
@@ -198,8 +197,8 @@ export default defineComponent({
198
197
  dashboards,
199
198
  [() => props.dashboardOrganisationTypeFilters, () => props.dashboardOrganisationFilters, () => props.dashboardShallowFilters],
200
199
  emit,
201
- innerFetch,
202
- innerUpdate
200
+ fetch,
201
+ update
203
202
  );
204
203
 
205
204
  return {
@@ -48,10 +48,9 @@
48
48
  </template>
49
49
 
50
50
  <script lang="ts">
51
- import type { PropType } from "vue";
52
- import { computed, defineComponent } from "vue";
51
+ import { computed, defineComponent, type PropType } from "vue";
53
52
 
54
- import type { DashboardOrganisationFilters } from "@dative-gpi/foundation-core-domain/models";
53
+ import { type DashboardOrganisationFilters } from "@dative-gpi/foundation-core-domain/models";
55
54
  import { useDashboardOrganisations } from "@dative-gpi/foundation-core-services/composables";
56
55
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
57
56
 
@@ -94,7 +93,7 @@ export default defineComponent({
94
93
  return init.value && fetchingDashboardOrganisations.value;
95
94
  });
96
95
 
97
- const innerFetch = (search: string | null) => {
96
+ const fetch = (search: string | null) => {
98
97
  return getManyDashboardOrganisations({ ...props.dashboardOrganisationFilters, search: search ?? undefined });
99
98
  };
100
99
 
@@ -102,7 +101,7 @@ export default defineComponent({
102
101
  dashboardOrganisations,
103
102
  [() => props.dashboardOrganisationFilters],
104
103
  emit,
105
- innerFetch
104
+ fetch
106
105
  );
107
106
 
108
107
  return {
@@ -57,12 +57,11 @@
57
57
  </template>
58
58
 
59
59
  <script lang="ts">
60
- import type { PropType } from "vue";
61
- import { computed, defineComponent } from "vue";
60
+ import { computed, defineComponent, type PropType } from "vue";
62
61
 
63
62
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
63
+ import { type DataCategoryFilters } from "@dative-gpi/foundation-core-domain/models";
64
64
  import { useDataCategories } from "@dative-gpi/foundation-core-services/composables";
65
- import type { DataCategoryFilters } from "@dative-gpi/foundation-core-domain/models";
66
65
 
67
66
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
68
67
  import FSButton from "@dative-gpi/foundation-shared-components/components/FSButton.vue";
@@ -109,7 +108,7 @@ export default defineComponent({
109
108
  return init.value && fetchingDataCategories.value;
110
109
  });
111
110
 
112
- const innerFetch = (search: string | null) => {
111
+ const fetch = (search: string | null) => {
113
112
  return getManyDataCategories({ ...props.dataCategoriesFilters, search: search ?? undefined });
114
113
  };
115
114
 
@@ -117,7 +116,7 @@ export default defineComponent({
117
116
  dataCategories,
118
117
  [() => props.dataCategoriesFilters],
119
118
  emit,
120
- innerFetch
119
+ fetch
121
120
  );
122
121
 
123
122
  return {
@@ -67,12 +67,11 @@
67
67
  </template>
68
68
 
69
69
  <script lang="ts">
70
- import type { PropType } from "vue";
71
- import { computed, defineComponent } from "vue";
70
+ import { computed, defineComponent, type PropType } from "vue";
72
71
 
72
+ import { type DataDefinitionFilters } from "@dative-gpi/foundation-core-domain/models";
73
73
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
74
74
  import { useDataDefinitions } from "@dative-gpi/foundation-core-services/composables";
75
- import type { DataDefinitionFilters } from "@dative-gpi/foundation-core-domain/models";
76
75
 
77
76
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
78
77
  import FSButton from "@dative-gpi/foundation-shared-components/components/FSButton.vue";
@@ -119,7 +118,7 @@ export default defineComponent({
119
118
  return init.value && fetchingDataDefinitions.value;
120
119
  });
121
120
 
122
- const innerFetch = (search: string | null) => {
121
+ const fetch = (search: string | null) => {
123
122
  return getManyDataDefinitions({ ...props.dataDefinitionFilters, search: search ?? undefined });
124
123
  };
125
124
 
@@ -127,7 +126,7 @@ export default defineComponent({
127
126
  dataDefinitions,
128
127
  [() => props.dataDefinitionFilters],
129
128
  emit,
130
- innerFetch
129
+ fetch
131
130
  );
132
131
 
133
132
  return {
@@ -49,12 +49,11 @@
49
49
  </template>
50
50
 
51
51
  <script lang="ts">
52
- import type { PropType } from "vue";
53
- import { computed, defineComponent } from "vue";
52
+ import { computed, defineComponent, type PropType } from "vue";
54
53
 
55
54
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
55
+ import { type GroupFilters } from "@dative-gpi/foundation-core-domain/models";
56
56
  import { useGroups } from "@dative-gpi/foundation-core-services/composables";
57
- import type { GroupFilters } from "@dative-gpi/foundation-core-domain/models";
58
57
 
59
58
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
60
59
  import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
@@ -99,7 +98,7 @@ export default defineComponent({
99
98
  return init.value && fetchingGroups.value;
100
99
  });
101
100
 
102
- const innerFetch = (search: string | null) => {
101
+ const fetch = (search: string | null) => {
103
102
  return getManyGroups({ ...props.groupFilters, search: search ?? undefined });
104
103
  };
105
104
 
@@ -107,7 +106,7 @@ export default defineComponent({
107
106
  groups,
108
107
  [() => props.groupFilters],
109
108
  emit,
110
- innerFetch
109
+ fetch
111
110
  );
112
111
 
113
112
  return {
@@ -94,7 +94,11 @@ export default defineComponent({
94
94
  setup(props, { emit }) {
95
95
  const { getMany: getManyLocations, fetching: fetchingLocations, entities: locations } = useLocations();
96
96
 
97
- const innerFetch = (search: string | null) => {
97
+ const loading = computed((): boolean => {
98
+ return init.value && fetchingLocations.value;
99
+ });
100
+
101
+ const fetch = (search: string | null) => {
98
102
  return getManyLocations({ ...props.locationFilters, search: search ?? undefined });
99
103
  };
100
104
 
@@ -102,13 +106,9 @@ export default defineComponent({
102
106
  locations,
103
107
  [() => props.locationFilters],
104
108
  emit,
105
- innerFetch
109
+ fetch
106
110
  );
107
111
 
108
- const loading = computed((): boolean => {
109
- return init.value && fetchingLocations.value;
110
- });
111
-
112
112
  return {
113
113
  locations,
114
114
  toggleSet,
@@ -10,12 +10,11 @@
10
10
  </template>
11
11
 
12
12
  <script lang="ts">
13
- import type { PropType } from "vue";
14
- import { computed, defineComponent } from "vue";
13
+ import { computed, defineComponent, type PropType } from "vue";
15
14
 
16
15
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
16
+ import { type ManufacturerFilters } from "@dative-gpi/foundation-core-domain/models";
17
17
  import { useManufacturers } from "@dative-gpi/foundation-core-services/composables";
18
- import type { ManufacturerFilters } from "@dative-gpi/foundation-core-domain/models";
19
18
 
20
19
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
21
20
 
@@ -45,7 +44,11 @@ export default defineComponent({
45
44
  setup(props, { emit }) {
46
45
  const { getMany: getManyManufacturers, fetching: fetchingManufacturers, entities: manufacturers } = useManufacturers();
47
46
 
48
- const innerFetch = (search: string | null) => {
47
+ const loading = computed((): boolean => {
48
+ return init.value && fetchingManufacturers.value;
49
+ });
50
+
51
+ const fetch = (search: string | null) => {
49
52
  return getManyManufacturers({ ...props.manufacturerFilters, search: search ?? undefined });
50
53
  };
51
54
 
@@ -53,13 +56,9 @@ export default defineComponent({
53
56
  manufacturers,
54
57
  [() => props.manufacturerFilters],
55
58
  emit,
56
- innerFetch
59
+ fetch
57
60
  );
58
61
 
59
- const loading = computed((): boolean => {
60
- return init.value && fetchingManufacturers.value;
61
- });
62
-
63
62
  return {
64
63
  manufacturers,
65
64
  toggleSet,
@@ -10,12 +10,11 @@
10
10
  </template>
11
11
 
12
12
  <script lang="ts">
13
- import type { PropType } from "vue";
14
- import { computed, defineComponent } from "vue";
13
+ import { computed, defineComponent, type PropType } from "vue";
15
14
 
16
15
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
16
+ import { type ModelFilters } from "@dative-gpi/foundation-core-domain/models";
17
17
  import { useModels } from "@dative-gpi/foundation-core-services/composables";
18
- import type { ModelFilters } from "@dative-gpi/foundation-core-domain/models";
19
18
 
20
19
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
21
20
 
@@ -49,7 +48,7 @@ export default defineComponent({
49
48
  return init.value && fetchingModels.value;
50
49
  });
51
50
 
52
- const innerFetch = (search: string | null) => {
51
+ const fetch = (search: string | null) => {
53
52
  return getManyModels({ ...props.modelFilters, search: search ?? undefined });
54
53
  };
55
54
 
@@ -57,7 +56,7 @@ export default defineComponent({
57
56
  models,
58
57
  [() => props.modelFilters],
59
58
  emit,
60
- innerFetch
59
+ fetch
61
60
  );
62
61
 
63
62
  return {
@@ -10,12 +10,11 @@
10
10
  </template>
11
11
 
12
12
  <script lang="ts">
13
- import type { PropType } from "vue";
14
- import { computed, defineComponent } from "vue";
13
+ import { computed, defineComponent, type PropType } from "vue";
15
14
 
15
+ import { type OrganisationTypeFilters } from "@dative-gpi/foundation-shared-domain/models";
16
16
  import { useOrganisationTypes } from "@dative-gpi/foundation-core-services/composables";
17
17
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
18
- import type { OrganisationTypeFilters } from "@dative-gpi/foundation-shared-domain/models";
19
18
 
20
19
  import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
21
20
 
@@ -49,7 +48,7 @@ export default defineComponent({
49
48
  return init.value && fetchingOrganisationTypes.value;
50
49
  });
51
50
 
52
- const innerFetch = (search: string | null) => {
51
+ const fetch = (search: string | null) => {
53
52
  return getManyOrganisationTypes({ ...props.organisationTypeFilters, search: search ?? undefined });
54
53
  };
55
54
 
@@ -57,7 +56,7 @@ export default defineComponent({
57
56
  organisationTypes,
58
57
  [() => props.organisationTypeFilters],
59
58
  emit,
60
- innerFetch
59
+ fetch
61
60
  );
62
61
 
63
62
  return {
@@ -81,11 +81,9 @@
81
81
  </template>
82
82
 
83
83
  <script lang="ts">
84
- import type { PropType } from "vue";
85
- import { computed, defineComponent } from "vue";
84
+ import { computed, defineComponent, type PropType } from "vue";
86
85
 
87
- import type { RoleOrganisationFilters, RoleOrganisationTypeFilters} from "@dative-gpi/foundation-core-domain/models";
88
- import { RoleType } from "@dative-gpi/foundation-core-domain/models";
86
+ import { type RoleOrganisationFilters, type RoleOrganisationTypeFilters, RoleType } from "@dative-gpi/foundation-core-domain/models";
89
87
  import { useRoleOrganisations, useRoleOrganisationTypes } from "@dative-gpi/foundation-core-services/composables";
90
88
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
91
89
 
@@ -163,7 +161,7 @@ export default defineComponent({
163
161
  return init.value && (fetchingRoleOrganisationTypes.value || fetchingRoleOrganisations.value);
164
162
  });
165
163
 
166
- const innerUpdate = (value: Role[] | Role | null) => {
164
+ const update = (value: Role[] | Role | null) => {
167
165
  if (Array.isArray(value)) {
168
166
  emit("update:modelValue", value.map(v => v.id));
169
167
  emit("update:type", value.map(v => v.type));
@@ -174,7 +172,7 @@ export default defineComponent({
174
172
  }
175
173
  };
176
174
 
177
- const innerFetch = (search: string | null) => {
175
+ const fetch = (search: string | null) => {
178
176
  return Promise.all([
179
177
  getManyRoleOrganisationTypes({ ...props.roleOrganisationTypeFilters, search: search ?? undefined }),
180
178
  getManyRoleOrganisations({ ...props.roleOrganisationFilters, search: search ?? undefined })
@@ -185,8 +183,8 @@ export default defineComponent({
185
183
  roles,
186
184
  [() => props.roleOrganisationTypeFilters, () => props.roleOrganisationFilters],
187
185
  emit,
188
- innerFetch,
189
- innerUpdate
186
+ fetch,
187
+ update
190
188
  );
191
189
 
192
190
  return {
@@ -77,10 +77,9 @@
77
77
  </template>
78
78
 
79
79
  <script lang="ts">
80
- import type { PropType } from "vue";
81
- import { computed, defineComponent } from "vue";
80
+ import { computed, defineComponent, type PropType } from "vue";
82
81
 
83
- import type { UserOrganisationFilters, UserOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
82
+ import { type UserOrganisationFilters, type UserOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
84
83
  import { useUserOrganisations } from "@dative-gpi/foundation-core-services/composables";
85
84
  import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
86
85
 
@@ -136,7 +135,7 @@ export default defineComponent({
136
135
  }));
137
136
  });
138
137
 
139
- const innerFetch = (search: string | null) => {
138
+ const fetch = (search: string | null) => {
140
139
  return getManyUserOrganisations({ ...props.userOrganisationFilters, search: search ?? undefined });
141
140
  };
142
141
 
@@ -144,7 +143,7 @@ export default defineComponent({
144
143
  userOrganisations,
145
144
  [() => props.userOrganisationFilters],
146
145
  emit,
147
- innerFetch,
146
+ fetch,
148
147
  null,
149
148
  (item: UserOrganisationInfos) => item.id,
150
149
  (item: UserOrganisationInfos) => item.name
@@ -20,12 +20,11 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts">
23
- import type { PropType } from "vue";
24
- import { defineComponent } from "vue";
23
+ import { defineComponent, type PropType } from "vue";
25
24
 
26
25
  import { useTreeView } from "@dative-gpi/foundation-shared-components/composables";
26
+ import { type FolderFilters } from "@dative-gpi/foundation-core-domain/models";
27
27
  import { useFolders } from "@dative-gpi/foundation-core-services/composables";
28
- import type { FolderFilters } from "@dative-gpi/foundation-core-domain/models";
29
28
 
30
29
  import FSTreeViewField from "@dative-gpi/foundation-shared-components/components/fields/FSTreeViewField.vue";
31
30
  import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
@@ -57,7 +56,7 @@ export default defineComponent({
57
56
  setup(props, { emit }) {
58
57
  const { getMany: getManyFolders, fetching: fetchingFolders, entities: folders } = useFolders();
59
58
 
60
- const innerFetch = () => {
59
+ const fetch = () => {
61
60
  return getManyFolders({ ...props.folderFilters });
62
61
  };
63
62
 
@@ -65,7 +64,7 @@ export default defineComponent({
65
64
  folders,
66
65
  [() => props.folderFilters],
67
66
  emit,
68
- innerFetch
67
+ fetch
69
68
  );
70
69
 
71
70
  return {
@@ -20,12 +20,11 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts">
23
- import type { PropType } from "vue";
24
- import { defineComponent } from "vue";
23
+ import { defineComponent, type PropType } from "vue";
25
24
 
26
25
  import { useTreeView } from "@dative-gpi/foundation-shared-components/composables";
26
+ import { type GroupFilters } from "@dative-gpi/foundation-core-domain/models";
27
27
  import { useGroups } from "@dative-gpi/foundation-core-services/composables";
28
- import type { GroupFilters } from "@dative-gpi/foundation-core-domain/models";
29
28
 
30
29
  import FSTreeViewField from "@dative-gpi/foundation-shared-components/components/fields/FSTreeViewField.vue";
31
30
  import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
@@ -57,7 +56,7 @@ export default defineComponent({
57
56
  setup(props, { emit }) {
58
57
  const { getMany: getManyGroups, fetching: fetchingGroups, entities: groups } = useGroups();
59
58
 
60
- const innerFetch = () => {
59
+ const fetch = () => {
61
60
  return getManyGroups({ ...props.groupFilters });
62
61
  };
63
62
 
@@ -65,7 +64,7 @@ export default defineComponent({
65
64
  groups,
66
65
  [() => props.groupFilters],
67
66
  emit,
68
- innerFetch
67
+ fetch
69
68
  );
70
69
 
71
70
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-components",
3
3
  "sideEffects": false,
4
- "version": "0.0.205",
4
+ "version": "0.0.207",
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": "0.0.205",
14
- "@dative-gpi/foundation-core-services": "0.0.205",
15
- "@dative-gpi/foundation-shared-components": "0.0.205",
16
- "@dative-gpi/foundation-shared-domain": "0.0.205",
17
- "@dative-gpi/foundation-shared-services": "0.0.205"
13
+ "@dative-gpi/foundation-core-domain": "0.0.207",
14
+ "@dative-gpi/foundation-core-services": "0.0.207",
15
+ "@dative-gpi/foundation-shared-components": "0.0.207",
16
+ "@dative-gpi/foundation-shared-domain": "0.0.207",
17
+ "@dative-gpi/foundation-shared-services": "0.0.207"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -26,5 +26,5 @@
26
26
  "sass": "1.71.1",
27
27
  "sass-loader": "13.3.2"
28
28
  },
29
- "gitHead": "5921db5434ded466e46ff785f53b082fcb5aa4ce"
29
+ "gitHead": "1387dbf5d3b11c281c0e6183ab900e47c9622a9a"
30
30
  }