@merkaly/nuxt 0.6.0 → 0.6.4
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/dist/module.d.mts +11 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +86 -28
- package/dist/runtime/components/app.d.vue.ts +3 -3
- package/dist/runtime/components/app.vue +7 -0
- package/dist/runtime/components/app.vue.d.ts +3 -3
- package/dist/runtime/components/format/FormatDate.d.vue.ts +2 -2
- package/dist/runtime/components/format/FormatDate.vue.d.ts +2 -2
- package/dist/runtime/components/format/FormatIcon.d.vue.ts +32 -5
- package/dist/runtime/components/format/FormatIcon.vue +20 -5
- package/dist/runtime/components/format/FormatIcon.vue.d.ts +32 -5
- package/dist/runtime/components/format/FormatMoney.d.vue.ts +2 -2
- package/dist/runtime/components/format/FormatMoney.vue +7 -7
- package/dist/runtime/components/format/FormatMoney.vue.d.ts +2 -2
- package/dist/runtime/components/format/FormatNumber.d.vue.ts +52 -0
- package/dist/runtime/components/format/FormatNumber.vue +38 -0
- package/dist/runtime/components/format/FormatNumber.vue.d.ts +52 -0
- package/dist/runtime/components/format/FormatText.d.vue.ts +9 -3
- package/dist/runtime/components/format/FormatText.vue +2 -2
- package/dist/runtime/components/format/FormatText.vue.d.ts +9 -3
- package/dist/runtime/components/input/InputAddress.d.vue.ts +1 -1
- package/dist/runtime/components/input/InputAddress.vue.d.ts +1 -1
- package/dist/runtime/components/input/InputDateRange.vue +6 -6
- package/dist/runtime/components/input/InputDropzone.vue +1 -1
- package/dist/runtime/components/input/InputMoney.d.vue.ts +1 -1
- package/dist/runtime/components/input/InputMoney.vue +1 -1
- package/dist/runtime/components/input/InputMoney.vue.d.ts +1 -1
- package/dist/runtime/components/input/InputSelect.d.vue.ts +10 -11
- package/dist/runtime/components/input/InputSelect.vue +19 -11
- package/dist/runtime/components/input/InputSelect.vue.d.ts +10 -11
- package/dist/runtime/components/table/TableDatagrid.d.vue.ts +1 -1
- package/dist/runtime/components/table/TableDatagrid.vue +7 -5
- package/dist/runtime/components/table/TableDatagrid.vue.d.ts +1 -1
- package/dist/runtime/composables/useCounterUp.d.ts +8 -0
- package/dist/runtime/composables/useCounterUp.js +30 -0
- package/dist/runtime/composables/useDatagrid.d.ts +7 -2
- package/dist/runtime/composables/useDatagrid.js +7 -2
- package/dist/runtime/composables/useNotify.d.ts +19 -0
- package/dist/runtime/composables/useNotify.js +40 -0
- package/dist/runtime/middleware/auth.d.ts +1 -1
- package/dist/runtime/plugins/api.global.d.ts +1 -1
- package/dist/runtime/plugins/auth0.client.d.ts +2 -2
- package/dist/runtime/plugins/sentry.global.d.ts +1 -1
- package/dist/runtime/types/nuxt.d.ts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +20 -20
- package/dist/runtime/composables/useMoney.d.ts +0 -7
- package/dist/runtime/composables/useMoney.js +0 -10
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { push } from "notivue";
|
|
2
|
+
import { useModal } from "bootstrap-vue-next";
|
|
3
|
+
export function useNotify() {
|
|
4
|
+
const $modal = useModal();
|
|
5
|
+
function toast(options) {
|
|
6
|
+
const toastByVariant = {
|
|
7
|
+
success: push.success,
|
|
8
|
+
danger: push.error,
|
|
9
|
+
warning: push.warning,
|
|
10
|
+
info: push.info
|
|
11
|
+
};
|
|
12
|
+
return toastByVariant[options.variant]({
|
|
13
|
+
title: options.title,
|
|
14
|
+
message: options.message
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function alert(options) {
|
|
18
|
+
const instance = $modal.create({
|
|
19
|
+
body: options.message,
|
|
20
|
+
centered: true,
|
|
21
|
+
okOnly: true,
|
|
22
|
+
okTitle: options.okText || "OK",
|
|
23
|
+
title: options.title || "Alert"
|
|
24
|
+
});
|
|
25
|
+
instance.show();
|
|
26
|
+
}
|
|
27
|
+
function confirm(options) {
|
|
28
|
+
const instance = $modal.create({
|
|
29
|
+
body: options.message,
|
|
30
|
+
cancelTitle: options.cancelText || "Cancel",
|
|
31
|
+
cancelVariant: "secondary",
|
|
32
|
+
okTitle: options.confirmText || "OK",
|
|
33
|
+
okVariant: options.variant || "primary",
|
|
34
|
+
onOk: options.onConfirm,
|
|
35
|
+
title: options.title || "Confirm"
|
|
36
|
+
});
|
|
37
|
+
instance.show();
|
|
38
|
+
}
|
|
39
|
+
return { toast, alert, confirm };
|
|
40
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("#app").RouteMiddleware;
|
|
2
2
|
export default _default;
|
|
@@ -46,5 +46,5 @@ export interface ParamsOptions {
|
|
|
46
46
|
export type ApiOptions<TData = unknown, TMeta = Record<string, unknown>, TParams = object> = ParamsOptions & HooksOptions<TData, TMeta, TParams> & RefOptions & {
|
|
47
47
|
params?: TParams;
|
|
48
48
|
};
|
|
49
|
-
declare const _default: import("
|
|
49
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
50
50
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("#app").Plugin<{
|
|
2
2
|
auth0: import("@auth0/auth0-spa-js").Auth0Client;
|
|
3
|
-
}> & import("
|
|
3
|
+
}> & import("#app").ObjectPlugin<{
|
|
4
4
|
auth0: import("@auth0/auth0-spa-js").Auth0Client;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|
package/dist/types.d.mts
CHANGED
|
@@ -10,4 +10,4 @@ export { type ApiOptions, type HooksOptions, type ParamsOptions, type RefOptions
|
|
|
10
10
|
|
|
11
11
|
export { default } from './module.mjs'
|
|
12
12
|
|
|
13
|
-
export { type MerkalyModuleOptions } from './module.mjs'
|
|
13
|
+
export { type MerkalyI18nLocale, type MerkalyModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/nuxt",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/merkaly-io/nuxt.git"
|
|
@@ -30,46 +30,45 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "nuxt-module-build build",
|
|
32
32
|
"build:stub": "nuxt-module-build build --stub",
|
|
33
|
-
"dev": "pnpm dev:prepare && cd playground && pnpm storybook",
|
|
34
|
-
"dev:build": "nuxi build playground",
|
|
35
|
-
"dev:prepare": "pnpm build:stub && nuxi prepare playground",
|
|
36
33
|
"lint": "eslint .",
|
|
37
34
|
"prepack": "pnpm build",
|
|
38
35
|
"prepare": "nuxt-module-build prepare",
|
|
39
|
-
"release": "pnpm lint && pnpm test && pnpm build && changelogen --release && npm publish --access public && git push --follow-tags",
|
|
40
36
|
"test": "vitest run",
|
|
41
|
-
"test:types": "vue-tsc --noEmit
|
|
37
|
+
"test:types": "vue-tsc --noEmit",
|
|
42
38
|
"test:watch": "vitest watch"
|
|
43
39
|
},
|
|
44
40
|
"dependencies": {
|
|
45
|
-
"@auth0/auth0-spa-js": "^2.
|
|
46
|
-
"@bootstrap-vue-next/nuxt": "^0.
|
|
41
|
+
"@auth0/auth0-spa-js": "^2.20.0",
|
|
42
|
+
"@bootstrap-vue-next/nuxt": "^0.45.3",
|
|
47
43
|
"@nuxt/devtools": "^3.2.1",
|
|
48
44
|
"@nuxt/eslint": "1.15.1",
|
|
49
45
|
"@nuxt/eslint-config": "^1.15.1",
|
|
50
46
|
"@nuxt/fonts": "0.14.0",
|
|
51
47
|
"@nuxt/image": "^2.0.0",
|
|
52
48
|
"@nuxt/kit": "^4.4.2",
|
|
49
|
+
"@nuxtjs/i18n": "^10.4.0",
|
|
53
50
|
"@nuxtjs/plausible": "^3.0.1",
|
|
54
|
-
"@sentry/nuxt": "^10.
|
|
51
|
+
"@sentry/nuxt": "^10.53.1",
|
|
55
52
|
"@types/node": "latest",
|
|
56
53
|
"@types/vue-select": "^3.16.8",
|
|
57
|
-
"@vueuse/components": "^14.
|
|
58
|
-
"@vueuse/core": "^14.
|
|
59
|
-
"@vueuse/integrations": "^14.
|
|
60
|
-
"@vueuse/nuxt": "^14.
|
|
54
|
+
"@vueuse/components": "^14.3.0",
|
|
55
|
+
"@vueuse/core": "^14.3.0",
|
|
56
|
+
"@vueuse/integrations": "^14.3.0",
|
|
57
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
61
58
|
"bootstrap": "^5.3.8",
|
|
62
|
-
"bootstrap-vue-next": "^0.
|
|
59
|
+
"bootstrap-vue-next": "^0.45.3",
|
|
63
60
|
"change-case": "^5",
|
|
64
61
|
"class-transformer": "^0.5.1",
|
|
65
62
|
"class-validator": "^0.15.1",
|
|
66
63
|
"eslint": "^9.39.1",
|
|
67
64
|
"filesize": "^11.0.2",
|
|
68
|
-
"
|
|
65
|
+
"gsap": "^3.15.0",
|
|
66
|
+
"notivue": "^2.4.5",
|
|
67
|
+
"nuxt": "^4.4.6",
|
|
69
68
|
"reflect-metadata": "^0.2.2",
|
|
70
|
-
"sass": "^1.
|
|
69
|
+
"sass": "^1.100.0",
|
|
71
70
|
"typescript": "~5.9.3",
|
|
72
|
-
"v-money3": "^3.
|
|
71
|
+
"v-money3": "^3.26.0",
|
|
73
72
|
"vite-svg-loader": "^5.1.0",
|
|
74
73
|
"vue": "^3.5.22",
|
|
75
74
|
"vue-router": "^5.0.0",
|
|
@@ -82,12 +81,13 @@
|
|
|
82
81
|
"changelogen": "^0.6.2",
|
|
83
82
|
"eslint-plugin-storybook": "^10.1.11",
|
|
84
83
|
"vitest": "^4.1.0",
|
|
85
|
-
"vue-tsc": "^3.
|
|
84
|
+
"vue-tsc": "^3.3.1"
|
|
86
85
|
},
|
|
87
86
|
"optionalDependencies": {
|
|
88
|
-
"defu": "^6.1.
|
|
87
|
+
"defu": "^6.1.5"
|
|
89
88
|
},
|
|
89
|
+
"packageManager": "pnpm@10.28.2",
|
|
90
90
|
"engines": {
|
|
91
|
-
"node": ">=
|
|
91
|
+
"node": ">=24"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import type { FormatMoneyOptions } from '../utils/formatMoney.js';
|
|
3
|
-
type UseMoneyOptions = {
|
|
4
|
-
[K in keyof FormatMoneyOptions]: MaybeRefOrGetter<FormatMoneyOptions[K]>;
|
|
5
|
-
};
|
|
6
|
-
export declare function useMoney(value: MaybeRefOrGetter<number>, options?: Partial<UseMoneyOptions>): import("vue").ComputedRef<string>;
|
|
7
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { computed, toValue } from "vue";
|
|
2
|
-
import { formatMoney } from "../utils/formatMoney.js";
|
|
3
|
-
export function useMoney(value, options = {}) {
|
|
4
|
-
return computed(() => formatMoney(toValue(value), {
|
|
5
|
-
base: toValue(options.base),
|
|
6
|
-
currency: toValue(options.currency),
|
|
7
|
-
locale: toValue(options.locale),
|
|
8
|
-
mode: toValue(options.mode)
|
|
9
|
-
}));
|
|
10
|
-
}
|