@nexdom/uimed-vue 2.0.0-beta.2 → 2.0.0-beta.21
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/AGENTS.md +116 -14
- package/README.md +2 -2
- package/dist/components.d.ts +696 -77
- package/dist/components.js +1493 -311
- package/dist/composables.d.ts +130 -4
- package/dist/composables.js +55 -3
- package/dist/index.d.ts +3 -15
- package/dist/index.js +22 -13
- package/dist/locale-CM4o8cD_.js +12 -0
- package/dist/plugins.d.ts +18 -8
- package/dist/plugins.js +56 -5
- package/dist/styles/fonts/UnimedSlab-Regular.woff2 +0 -0
- package/dist/styles/fonts/fonts.css +4 -0
- package/dist/styles/settings.scss +6 -0
- package/dist/types-HPMP8IrV.d.ts +49 -0
- package/dist/unit-test.d.ts +2 -3
- package/dist/unit-test.js +3 -1
- package/dist/use-dialog-Ck2_ZW7T.js +124 -0
- package/package.json +8 -8
- package/dist/types-BPXXtbmW.d.ts +0 -5
- package/dist/use-toast-CACuYhK_.js +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexdom/uimed-vue",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "A ui framework for NEXDOM applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lib",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@commitlint/cli": "^21.2.1",
|
|
56
56
|
"@commitlint/config-conventional": "^21.2.0",
|
|
57
|
-
"@fontsource/roboto": "^5.3.0",
|
|
58
57
|
"@mdi/font": "^7.4.47",
|
|
59
58
|
"@nexdom/shared": "^2.1.1",
|
|
60
59
|
"@playwright/test": "^1.62.1",
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
"@types/node": "^26.1.2",
|
|
65
64
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
66
65
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
67
|
-
"@vitest/coverage-v8": "
|
|
66
|
+
"@vitest/coverage-v8": "5.0.1",
|
|
68
67
|
"@vue/test-utils": "^2.4.11",
|
|
69
68
|
"bumpp": "^12.1.1",
|
|
70
69
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
@@ -76,23 +75,24 @@
|
|
|
76
75
|
"sass-embedded": "^1.103.1",
|
|
77
76
|
"stryker-vue-ignorer": "github:davidlandais/stryker-vue-ignorer",
|
|
78
77
|
"typescript": "^6.0.3",
|
|
79
|
-
"vite-
|
|
80
|
-
"vite-plus": "^0.2.9",
|
|
78
|
+
"vite-plus": "^1.0.0",
|
|
81
79
|
"vitepress": "2.0.0-alpha.19",
|
|
82
80
|
"vitepress-plugin-group-icons": "^1.7.6",
|
|
81
|
+
"vitest": "5.0.1",
|
|
83
82
|
"vue": "^3.5.40",
|
|
83
|
+
"vue-component-type-helpers": "^3.3.11",
|
|
84
84
|
"vue-router": "^5.3.1",
|
|
85
85
|
"vue-tsc": "^3.3.9",
|
|
86
86
|
"vuetify": "^4.2.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@fontsource/roboto": "^5.3.0",
|
|
90
89
|
"@mdi/font": "^7.4.47",
|
|
91
90
|
"@nexdom/shared": "^2.1.1",
|
|
92
91
|
"resize-observer-polyfill": "^1.5.1",
|
|
93
|
-
"
|
|
94
|
-
"vite-plus": "^0.
|
|
92
|
+
"sass-embedded": "^1.103.1",
|
|
93
|
+
"vite-plus": "^1.0.0",
|
|
95
94
|
"vue": "^3.5.40",
|
|
95
|
+
"vue-component-type-helpers": "^3.3.11",
|
|
96
96
|
"vue-router": "^5.3.1",
|
|
97
97
|
"vuetify": "^4.2.0"
|
|
98
98
|
},
|
package/dist/types-BPXXtbmW.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { computed, ref, toValue } from "vue";
|
|
2
|
-
const colorToVuetifyColor = {
|
|
3
|
-
primary: "primary",
|
|
4
|
-
secondary: "secondary",
|
|
5
|
-
positive: "success",
|
|
6
|
-
informative: "info",
|
|
7
|
-
caution: "warning",
|
|
8
|
-
danger: "error"
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/composables/colors/use-vuetify-color.ts
|
|
12
|
-
function useVuetifyColor(color) {
|
|
13
|
-
return computed(() => {
|
|
14
|
-
const colorValue = toValue(color);
|
|
15
|
-
return colorValue ? colorToVuetifyColor[colorValue] : colorToVuetifyColor.primary;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/composables/dialogs/use-toast.ts
|
|
20
|
-
const messages = ref([]);
|
|
21
|
-
/**
|
|
22
|
-
* Composable which returns a function to display toast messages.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const { toast } = useToast();
|
|
27
|
-
* toast({ message: "Hello, World!" });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
function useToast() {
|
|
31
|
-
return { toast };
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Displays a toast message.
|
|
35
|
-
* @param {ToastOptions} options - Options for the toast message.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* toast({ message: "Hello, World!" });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
function toast(options) {
|
|
43
|
-
const text = options.message;
|
|
44
|
-
const color = useVuetifyColor(options.color ?? "informative");
|
|
45
|
-
const toastMessage = {
|
|
46
|
-
text,
|
|
47
|
-
color: color.value,
|
|
48
|
-
prependIcon: `$${color.value}`
|
|
49
|
-
};
|
|
50
|
-
messages.value.push(toastMessage);
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { useToast as n, useVuetifyColor as r, messages as t };
|