@goweekdays/layer-common 1.2.0 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @goweekdays/layer-common
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ab7a09: Fix confirmationPrompt component error message display
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
@@ -11,11 +11,21 @@
11
11
  {{ localProps.content }}
12
12
  </p>
13
13
 
14
- <v-row v-if="localProps.message" no-gutters justify="center" class="mt-4">
15
- <span class="text-caption text-error text-center">
16
- {{ localProps.message }}
17
- </span>
18
- </v-row>
14
+ <v-alert
15
+ v-if="message"
16
+ type="error"
17
+ variant="flat"
18
+ closable
19
+ position="absolute"
20
+ location="bottom"
21
+ style="bottom: 48px"
22
+ @click:close="message = ''"
23
+ width="100%"
24
+ tile
25
+ class="text-caption"
26
+ >
27
+ {{ message }}
28
+ </v-alert>
19
29
  </v-card-text>
20
30
 
21
31
  <v-toolbar density="compact">
@@ -58,10 +68,6 @@ const localProps = defineProps({
58
68
  type: String,
59
69
  default: "Title",
60
70
  },
61
- message: {
62
- type: String,
63
- default: "",
64
- },
65
71
  disabled: {
66
72
  type: Boolean,
67
73
  default: false,
@@ -77,4 +83,6 @@ const localProps = defineProps({
77
83
  });
78
84
 
79
85
  const emits = defineEmits(["cancel", "confirm"]);
86
+
87
+ const message = defineModel("message", { default: "" });
80
88
  </script>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@goweekdays/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.2.0",
5
+ "version": "1.2.1",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"