mhz-helpers 1.2.21 → 1.2.23
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export interface ICalendarDates {
|
|
2
|
-
dateFrom:
|
|
3
|
-
dateTo:
|
|
2
|
+
dateFrom: Date;
|
|
3
|
+
dateTo: Date;
|
|
4
4
|
}
|
|
5
5
|
export declare function useCalendar(): {
|
|
6
|
-
dateFrom: import('vue').Ref<
|
|
7
|
-
dateTo: import('vue').Ref<
|
|
6
|
+
dateFrom: import('vue').Ref<Date | undefined, Date | undefined>;
|
|
7
|
+
dateTo: import('vue').Ref<Date | undefined, Date | undefined>;
|
|
8
8
|
isDatesReady: import('vue').Ref<boolean, boolean>;
|
|
9
9
|
updateDates: (dates: ICalendarDates) => void;
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { RuleItem } from 'async-validator';
|
|
3
3
|
import { TLocale } from '../locales/types';
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function useValidate<T>(formData: Ref<T>, rules: Partial<{
|
|
5
5
|
[fieldName in keyof T]: (RuleItem | ((locale: TLocale) => RuleItem))[];
|
|
6
6
|
}>, locale?: TLocale): {
|
|
7
7
|
error: (field: string) => string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -5869,9 +5869,9 @@ function tu(t, e = "ru") {
|
|
|
5869
5869
|
};
|
|
5870
5870
|
}
|
|
5871
5871
|
function nu() {
|
|
5872
|
-
const t = D(
|
|
5872
|
+
const t = D(), e = D(), n = D(!1);
|
|
5873
5873
|
function r(s) {
|
|
5874
|
-
|
|
5874
|
+
t.value = s.dateFrom, e.value = s.dateTo, n.value = !0;
|
|
5875
5875
|
}
|
|
5876
5876
|
return { dateFrom: t, dateTo: e, isDatesReady: n, updateDates: r };
|
|
5877
5877
|
}
|
|
@@ -5976,7 +5976,7 @@ export {
|
|
|
5976
5976
|
fr as useQueryClient,
|
|
5977
5977
|
Ja as useRouteId,
|
|
5978
5978
|
su as useTimer,
|
|
5979
|
-
Ga as
|
|
5979
|
+
Ga as useValidate,
|
|
5980
5980
|
Na as vueQueryOptions,
|
|
5981
5981
|
La as wait,
|
|
5982
5982
|
Qa as withSetup
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-helpers",
|
|
3
3
|
"description": "Mhz helpers and composables",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.23",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "9.37.0",
|
|
37
|
-
"@types/node": "24.
|
|
37
|
+
"@types/node": "24.7.2",
|
|
38
38
|
"@vitejs/plugin-vue": "6.0.1",
|
|
39
39
|
"@vitest/coverage-istanbul": "3.2.4",
|
|
40
40
|
"eslint": "9.37.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-unicorn": "61.0.2",
|
|
47
47
|
"eslint-plugin-vue": "10.5.0",
|
|
48
48
|
"globals": "16.4.0",
|
|
49
|
-
"happy-dom": "
|
|
49
|
+
"happy-dom": "20.0.0",
|
|
50
50
|
"postcss-html": "1.8.0",
|
|
51
51
|
"prettier": "3.6.2",
|
|
52
52
|
"stylelint": "16.25.0",
|
|
@@ -56,20 +56,20 @@
|
|
|
56
56
|
"stylelint-order": "7.0.0",
|
|
57
57
|
"stylelint-prettier": "5.0.3",
|
|
58
58
|
"typescript": "5.9.3",
|
|
59
|
-
"typescript-eslint": "8.
|
|
59
|
+
"typescript-eslint": "8.46.0",
|
|
60
60
|
"vite": "7.1.9",
|
|
61
61
|
"vite-plugin-dts": "4.5.4",
|
|
62
62
|
"vitest": "3.2.4",
|
|
63
63
|
"vue-eslint-parser": "10.2.0",
|
|
64
64
|
"vue-linters-config": "0.5.4",
|
|
65
|
-
"vue-tsc": "3.1.
|
|
65
|
+
"vue-tsc": "3.1.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"vue": "3.5.22",
|
|
69
69
|
"vue-router": "4.5.1"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
|
-
"npm": ">=11.
|
|
73
|
-
"node": ">=24.
|
|
72
|
+
"npm": ">=11.6.1",
|
|
73
|
+
"node": ">=24.10.0"
|
|
74
74
|
}
|
|
75
75
|
}
|