@dative-gpi/foundation-core-components 0.0.71 → 0.0.72

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.
@@ -5,7 +5,7 @@
5
5
  :modelValue="$props.modelValue"
6
6
  @update:modelValue="(value) => $emit('update:modelValue', value)"
7
7
  />
8
- <FSSimpleIconTileUI
8
+ <FSDashboardOrganisationTileUI
9
9
  v-else-if="entity"
10
10
  :label="entity.label"
11
11
  :code="entity.code"
@@ -23,13 +23,13 @@ import { defineComponent, onMounted, watch } from "vue";
23
23
 
24
24
  import { useDashboardOrganisation } from "@dative-gpi/foundation-core-services/composables";
25
25
 
26
- import FSSimpleIconTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSSimpleIconTileUI.vue";
26
+ import FSDashboardOrganisationTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSDashboardOrganisationTileUI.vue";
27
27
  import FSLoadTile from "@dative-gpi/foundation-shared-components/components/tiles/FSLoadTile.vue";
28
28
 
29
29
  export default defineComponent({
30
30
  name: "FSDashboardOrganisationTile",
31
31
  components: {
32
- FSSimpleIconTileUI,
32
+ FSDashboardOrganisationTileUI,
33
33
  FSLoadTile
34
34
  },
35
35
  props: {
@@ -5,7 +5,7 @@
5
5
  :modelValue="$props.modelValue"
6
6
  @update:modelValue="(value) => $emit('update:modelValue', value)"
7
7
  />
8
- <FSSimpleIconTileUI
8
+ <FSDashboardOrganisationTypeTileUI
9
9
  v-else-if="entity"
10
10
  :label="entity.label"
11
11
  :code="entity.code"
@@ -23,13 +23,13 @@ import { defineComponent, onMounted, watch } from "vue";
23
23
 
24
24
  import { useDashboardOrganisationType } from "@dative-gpi/foundation-core-services/composables";
25
25
 
26
- import FSSimpleIconTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSSimpleIconTileUI.vue";
26
+ import FSDashboardOrganisationTypeTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSDashboardOrganisationTypeTileUI.vue";
27
27
  import FSLoadTile from "@dative-gpi/foundation-shared-components/components/tiles/FSLoadTile.vue";
28
28
 
29
29
  export default defineComponent({
30
30
  name: "FSDashboardOrganisationTypeTile",
31
31
  components: {
32
- FSSimpleIconTileUI,
32
+ FSDashboardOrganisationTypeTileUI,
33
33
  FSLoadTile
34
34
  },
35
35
  props: {
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <FSLoadTile
3
+ v-if="getting"
4
+ :editable="$props.editable"
5
+ :modelValue="$props.modelValue"
6
+ @update:modelValue="(value) => $emit('update:modelValue', value)"
7
+ />
8
+ <FSDashboardShallowTileUI
9
+ v-else-if="entity"
10
+ :label="entity.label"
11
+ :code="entity.code"
12
+ :bottomColor="entity.colors"
13
+ :icon="entity.icon"
14
+ :editable="$props.editable"
15
+ :modelValue="$props.modelValue"
16
+ @update:modelValue="(value) => $emit('update:modelValue', value)"
17
+ v-bind="$attrs"
18
+ />
19
+ </template>
20
+
21
+ <script lang="ts">
22
+ import { defineComponent, onMounted, watch } from "vue";
23
+
24
+ import { useDashboardShallow } from "@dative-gpi/foundation-core-services/composables";
25
+
26
+ import FSDashboardShallowTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSDashboardShallowTileUI.vue";
27
+ import FSLoadTile from "@dative-gpi/foundation-shared-components/components/tiles/FSLoadTile.vue";
28
+
29
+ export default defineComponent({
30
+ name: "FSDashboardShallowTile",
31
+ components: {
32
+ FSDashboardShallowTileUI,
33
+ FSLoadTile
34
+ },
35
+ props: {
36
+ dashboardShallowId: {
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 } = useDashboardShallow();
53
+
54
+ onMounted(() => {
55
+ get(props.dashboardShallowId);
56
+ });
57
+
58
+ watch(() => props.dashboardShallowId, () => {
59
+ get(props.dashboardShallowId);
60
+ });
61
+
62
+ return {
63
+ getting,
64
+ entity
65
+ };
66
+ }
67
+ });
68
+ </script>
@@ -5,12 +5,11 @@
5
5
  :modelValue="$props.modelValue"
6
6
  @update:modelValue="(value) => $emit('update:modelValue', value)"
7
7
  />
8
- <FSSimpleIconTileUI
8
+ <FSFolderTileUI
9
9
  v-else-if="entity"
10
10
  :label="entity.label"
11
11
  :code="entity.code"
12
12
  :bottomColor="entity.colors"
13
- :iconBackgroundColor="entity.colors"
14
13
  :icon="entity.icon"
15
14
  :editable="$props.editable"
16
15
  :modelValue="$props.modelValue"
@@ -24,13 +23,13 @@ import { defineComponent, onMounted, watch } from "vue";
24
23
 
25
24
  import { useDashboardOrganisation, useFolder } from "@dative-gpi/foundation-core-services/composables";
26
25
 
27
- import FSSimpleIconTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSSimpleIconTileUI.vue";
26
+ import FSFolderTileUI from "@dative-gpi/foundation-shared-components/components/tiles/FSFolderTileUI.vue";
28
27
  import FSLoadTile from "@dative-gpi/foundation-shared-components/components/tiles/FSLoadTile.vue";
29
28
 
30
29
  export default defineComponent({
31
- name: "FSDashboardTile",
30
+ name: "FSFolderTile",
32
31
  components: {
33
- FSSimpleIconTileUI,
32
+ FSFolderTileUI,
34
33
  FSLoadTile
35
34
  },
36
35
  props: {
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.71",
4
+ "version": "0.0.72",
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.71",
14
- "@dative-gpi/foundation-core-services": "0.0.71",
15
- "@dative-gpi/foundation-shared-components": "0.0.71",
16
- "@dative-gpi/foundation-shared-domain": "0.0.71",
17
- "@dative-gpi/foundation-shared-services": "0.0.71",
13
+ "@dative-gpi/foundation-core-domain": "0.0.72",
14
+ "@dative-gpi/foundation-core-services": "0.0.72",
15
+ "@dative-gpi/foundation-shared-components": "0.0.72",
16
+ "@dative-gpi/foundation-shared-domain": "0.0.72",
17
+ "@dative-gpi/foundation-shared-services": "0.0.72",
18
18
  "color": "^4.2.3",
19
19
  "vue": "^3.2.0",
20
20
  "vuedraggable": "^4.1.0"
@@ -24,5 +24,5 @@
24
24
  "sass": "^1.69.5",
25
25
  "sass-loader": "^13.3.2"
26
26
  },
27
- "gitHead": "72097470e9163b0da5e7ab5d67496ac5c403f918"
27
+ "gitHead": "dbc4787e4b28439c3d9284f6e430daab222cd671"
28
28
  }