@dative-gpi/foundation-core-components 1.0.0 → 1.0.1

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.
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <FSLoadTile
3
+ v-if="getting"
4
+ :editable="$props.editable"
5
+ :modelValue="modelValue"
6
+ @update:modelValue="$emit('update:modelValue', $event)"
7
+ />
8
+ <FSServiceAccountOrganisationTileUI
9
+ v-else-if="entity"
10
+ :imageId="entity.imageId"
11
+ :label="entity.label"
12
+ :roleLabel="entity.roleLabel"
13
+ :roleIcon="entity.roleIcon"
14
+ :editable="$props.editable"
15
+ :modelValue="modelValue"
16
+ @update:modelValue="$emit('update:modelValue', $event)"
17
+ v-bind="$attrs"
18
+ />
19
+ </template>
20
+
21
+ <script lang="ts">
22
+ import { defineComponent, onMounted, watch } from "vue";
23
+
24
+ import { useServiceAccountOrganisation } from "@dative-gpi/foundation-core-services/composables";
25
+
26
+ import FSServiceAccountOrganisationTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSServiceAccountOrganisationTileUI.vue";
27
+ import FSLoadTile from "@dative-gpi/foundation-shared-components/components/tiles/FSLoadTile.vue";
28
+
29
+ export default defineComponent({
30
+ name: "FSServiceAccountOrganisationTile",
31
+ components: {
32
+ FSServiceAccountOrganisationTileUI,
33
+ FSLoadTile
34
+ },
35
+ props: {
36
+ serviceAccountOrganisationId: {
37
+ type: String,
38
+ required: true
39
+ },
40
+ modelValue: {
41
+ type: Boolean,
42
+ required: false,
43
+ default: false
44
+ },
45
+ editable: {
46
+ type: Boolean,
47
+ required: false,
48
+ default: true
49
+ }
50
+ },
51
+ setup(props) {
52
+ const { get, getting, entity } = useServiceAccountOrganisation();
53
+
54
+ onMounted(() => {
55
+ get(props.serviceAccountOrganisationId);
56
+ });
57
+
58
+ watch(() => props.serviceAccountOrganisationId, () => {
59
+ get(props.serviceAccountOrganisationId);
60
+ });
61
+
62
+ return {
63
+ getting,
64
+ entity
65
+ };
66
+ }
67
+ });
68
+ </script>
@@ -9,8 +9,6 @@
9
9
  v-else-if="entity"
10
10
  :imageId="entity.imageId"
11
11
  :name="entity.name"
12
- :label="entity.label"
13
- :userType="entity.userType"
14
12
  :roleLabel="entity.roleLabel"
15
13
  :roleIcon="entity.roleIcon"
16
14
  :admin="entity.admin"
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.0",
4
+ "version": "1.0.1",
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.0",
14
- "@dative-gpi/foundation-core-services": "1.0.0",
15
- "@dative-gpi/foundation-shared-components": "1.0.0",
16
- "@dative-gpi/foundation-shared-domain": "1.0.0",
17
- "@dative-gpi/foundation-shared-services": "1.0.0"
13
+ "@dative-gpi/foundation-core-domain": "1.0.1",
14
+ "@dative-gpi/foundation-core-services": "1.0.1",
15
+ "@dative-gpi/foundation-shared-components": "1.0.1",
16
+ "@dative-gpi/foundation-shared-domain": "1.0.1",
17
+ "@dative-gpi/foundation-shared-services": "1.0.1"
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": "93365f65d39d6c9cc3821ffb48cba187200deaf9"
29
+ "gitHead": "297a3db2234e01a04a88c111d547656f4d0a74f0"
30
30
  }