@dative-gpi/foundation-shared-components 0.0.80 → 0.0.81

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.
@@ -33,6 +33,7 @@
33
33
  >
34
34
  <FSForm
35
35
  :variant="$props.variant"
36
+ @submit="onSubmit"
36
37
  v-model="valid"
37
38
  >
38
39
  <FSCol
@@ -74,7 +75,6 @@
74
75
  :color="$props.rightButtonColor"
75
76
  :load="$props.load"
76
77
  :editable="$props.editable"
77
- @click="onSubmit"
78
78
  />
79
79
  </FSRow>
80
80
  </FSRow>
@@ -88,7 +88,7 @@ export default defineComponent({
88
88
  default: null
89
89
  }
90
90
  },
91
- emits: ["update:modelValue"],
91
+ emits: ["update:modelValue", "update:imageId"],
92
92
  setup(props, { emit }) {
93
93
  const { getColors } = useColors();
94
94
  const { readFile } = useFiles();
@@ -120,7 +120,12 @@ export default defineComponent({
120
120
  const onRemove = () => {
121
121
  fileSelected.value.fileName = "";
122
122
  fileSelected.value.fileContent = null;
123
- emit("update:modelValue", null);
123
+ if (props.modelValue) {
124
+ emit("update:modelValue", null);
125
+ }
126
+ else {
127
+ emit("update:imageId", null);
128
+ }
124
129
  };
125
130
 
126
131
  return {
@@ -12,6 +12,7 @@
12
12
  >
13
13
  <template #placeholder>
14
14
  <FSLoader
15
+ v-if="$props.imageId"
15
16
  class="fs-image-load"
16
17
  height="100%"
17
18
  width="100%"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "0.0.80",
4
+ "version": "0.0.81",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "0.0.80",
14
- "@dative-gpi/foundation-shared-services": "0.0.80",
13
+ "@dative-gpi/foundation-shared-domain": "0.0.81",
14
+ "@dative-gpi/foundation-shared-services": "0.0.81",
15
15
  "@fontsource/montserrat": "^5.0.16",
16
16
  "@lexical/clipboard": "^0.12.5",
17
17
  "@lexical/history": "^0.12.5",
@@ -32,5 +32,5 @@
32
32
  "sass": "^1.69.5",
33
33
  "sass-loader": "^13.3.2"
34
34
  },
35
- "gitHead": "6418edb464dd47a1384ff22515e5215e43fe6edb"
35
+ "gitHead": "72578083082db4065616325c62c03918f5a50166"
36
36
  }