@goweekdays/layer-common 1.2.0 → 1.2.2

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,17 @@
1
1
  # @goweekdays/layer-common
2
2
 
3
+ ## 1.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 14e48f2: Fix getAll() in useApp() composable
8
+
9
+ ## 1.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 4ab7a09: Fix confirmationPrompt component error message display
14
+
3
15
  ## 1.2.0
4
16
 
5
17
  ### 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>
@@ -24,10 +24,11 @@ export default function useApps() {
24
24
  limit = 10,
25
25
  search = "",
26
26
  status = "active",
27
+ type = "standard",
27
28
  } = {}) {
28
29
  return $fetch<Record<string, any>>(resource, {
29
30
  method: "GET",
30
- query: { page, limit, search, status },
31
+ query: { page, limit, search, status, type },
31
32
  });
32
33
  }
33
34
 
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.2",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"