@vc-shell/framework 1.0.67 → 1.0.69
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 +1590 -0
- package/core/composables/index.ts +1 -0
- package/core/composables/useErrorHandler/index.ts +44 -0
- package/core/composables/useNotifications/index.ts +13 -3
- package/core/plugins/error-interceptor/index.ts +17 -0
- package/core/plugins/error-interceptor/interceptor.ts +43 -0
- package/core/plugins/index.ts +1 -0
- package/core/plugins/validation/rules.ts +10 -0
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +8 -0
- package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -0
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/plugins/error-interceptor/index.d.ts +107 -0
- package/dist/core/plugins/error-interceptor/index.d.ts.map +1 -0
- package/dist/core/plugins/error-interceptor/interceptor.d.ts +39 -0
- package/dist/core/plugins/error-interceptor/interceptor.d.ts.map +1 -0
- package/dist/core/plugins/index.d.ts +1 -0
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/validation/rules.d.ts +1 -0
- package/dist/core/plugins/validation/rules.d.ts.map +1 -1
- package/dist/framework.mjs +24421 -23446
- package/dist/index.css +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/index.d.ts +2 -0
- package/dist/shared/components/notifications/components/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +131 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/composables/index.d.ts +3 -0
- package/dist/shared/components/notifications/composables/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts +27 -0
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts +9 -0
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/core/index.d.ts +2 -0
- package/dist/shared/components/notifications/core/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/core/notification.d.ts +12 -0
- package/dist/shared/components/notifications/core/notification.d.ts.map +1 -0
- package/dist/shared/components/notifications/index.d.ts +15 -0
- package/dist/shared/components/notifications/index.d.ts.map +1 -0
- package/dist/shared/components/notifications/types/index.d.ts +15 -0
- package/dist/shared/components/notifications/types/index.d.ts.map +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +8 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +121 -23
- package/dist/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +8 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +144 -28
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +49 -100
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +10 -31
- package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +1 -0
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +6 -8
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue +63 -33
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +0 -2
- package/shared/components/notifications/components/index.ts +1 -0
- package/shared/components/notifications/components/notification-container/index.ts +80 -0
- package/shared/components/notifications/composables/index.ts +2 -0
- package/shared/components/notifications/composables/useContainer/index.ts +190 -0
- package/shared/components/notifications/composables/useInstance/index.ts +46 -0
- package/shared/components/notifications/core/index.ts +1 -0
- package/shared/components/notifications/core/notification.ts +96 -0
- package/shared/components/notifications/index.ts +17 -0
- package/shared/components/notifications/styles/index.scss +9 -0
- package/shared/components/notifications/types/index.ts +16 -0
- package/shared/index.ts +8 -1
- package/shared/modules/assets/components/assets-details/assets-details.vue +6 -0
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +6 -0
- package/ui/components/molecules/vc-notification/index.ts +1 -8
- package/ui/components/molecules/vc-notification/vc-notification.vue +60 -25
- package/ui/components/organisms/vc-app/index.ts +0 -1
- package/ui/components/organisms/vc-app/vc-app.vue +9 -9
- package/ui/components/organisms/vc-blade/vc-blade.vue +44 -1
- package/ui/components/organisms/vc-popup/vc-popup.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -1
- package/ui/components/organisms/vc-table/vc-table.vue +12 -2
- package/ui/locales/en.json +6 -0
- package/LICENSE +0 -12
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { onErrorCaptured, getCurrentInstance, ref, Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
interface IUseErrorHandler {
|
|
4
|
+
error: Ref<string>;
|
|
5
|
+
reset(): void;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function useErrorHandler(capture?: boolean): IUseErrorHandler {
|
|
9
|
+
const error = ref<string>(null);
|
|
10
|
+
const instance = getCurrentInstance();
|
|
11
|
+
|
|
12
|
+
function reset() {
|
|
13
|
+
error.value = null;
|
|
14
|
+
|
|
15
|
+
if (instance) {
|
|
16
|
+
instance.emit("reset");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
onErrorCaptured((err) => {
|
|
21
|
+
if (err && err instanceof Error) {
|
|
22
|
+
if ("isApiException" in err && "response" in err) {
|
|
23
|
+
const stringifiedError = JSON.stringify(err);
|
|
24
|
+
error.value = stringifiedError;
|
|
25
|
+
} else {
|
|
26
|
+
error.value = err.toString();
|
|
27
|
+
}
|
|
28
|
+
console.error(err);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (instance) {
|
|
32
|
+
instance.emit("error", error.value);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (capture) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
error,
|
|
42
|
+
reset,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -51,20 +51,30 @@ export function useNotifications(): INotifications {
|
|
|
51
51
|
function addNotification(message: PushNotification) {
|
|
52
52
|
if (message.notifyType !== "IndexProgressPushNotification") {
|
|
53
53
|
const existsNotification = notifications.value.find((x) => x.id == message.id);
|
|
54
|
+
const existPushNotification = popupNotifications.value.find((x) => x.id == message.id);
|
|
54
55
|
|
|
55
56
|
if (existsNotification) {
|
|
56
57
|
message.isNew = existsNotification.isNew;
|
|
57
58
|
Object.assign(existsNotification, message);
|
|
58
59
|
} else {
|
|
59
|
-
popupNotifications.value.unshift(message);
|
|
60
60
|
notifications.value.unshift(message);
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
if (existPushNotification) {
|
|
64
|
+
message.isNew = true;
|
|
65
|
+
Object.assign(existPushNotification, message);
|
|
66
|
+
} else {
|
|
67
|
+
popupNotifications.value.unshift(message);
|
|
68
|
+
}
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
|
|
65
72
|
function markAsRead(message: PushNotification) {
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
const mes = popupNotifications.value.find((x) => x.id === message.id);
|
|
74
|
+
if (mes) {
|
|
75
|
+
mes.isNew = false;
|
|
76
|
+
_.remove(popupNotifications.value, (x) => x.id == message.id);
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
|
|
70
80
|
function dismiss(message: PushNotification) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import _Interceptor from "./interceptor";
|
|
3
|
+
|
|
4
|
+
export const ErrorInterceptor = _Interceptor as typeof _Interceptor & {
|
|
5
|
+
new (): {
|
|
6
|
+
$slots: {
|
|
7
|
+
default: (args: { error: string; reset: () => void }) => VNode[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// Declare globally
|
|
13
|
+
declare module "@vue/runtime-core" {
|
|
14
|
+
export interface GlobalComponents {
|
|
15
|
+
ErrorInterceptor: typeof ErrorInterceptor;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useErrorHandler } from "./../../composables";
|
|
2
|
+
import { SetupContext, defineComponent, VNode } from "vue";
|
|
3
|
+
|
|
4
|
+
export interface Props {
|
|
5
|
+
capture?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface Emits {
|
|
9
|
+
(event: "error", value: string): void;
|
|
10
|
+
(event: "reset"): void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type Slots = {
|
|
14
|
+
slots: {
|
|
15
|
+
default: (args: { error: string; reset: () => void }) => VNode[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default defineComponent({
|
|
20
|
+
props: {
|
|
21
|
+
capture: {
|
|
22
|
+
default: false,
|
|
23
|
+
type: Boolean,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
emits: {
|
|
27
|
+
error(value: Error | string) {
|
|
28
|
+
return (value && value instanceof Error) || typeof value === "string";
|
|
29
|
+
},
|
|
30
|
+
reset() {
|
|
31
|
+
return true;
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
setup(props, { slots }: SetupContext & Slots) {
|
|
35
|
+
const { error, reset } = useErrorHandler(props.capture);
|
|
36
|
+
|
|
37
|
+
return () =>
|
|
38
|
+
slots.default({
|
|
39
|
+
error: error.value,
|
|
40
|
+
reset,
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
});
|
package/core/plugins/index.ts
CHANGED
|
@@ -115,3 +115,13 @@ defineRule("before", before);
|
|
|
115
115
|
export const after = (value: string, [target]: string[]) =>
|
|
116
116
|
compare(value, [target], (first, second) => first < second, "End date must be later than start date");
|
|
117
117
|
defineRule("after", after);
|
|
118
|
+
|
|
119
|
+
export const bigInt = (value: string) => {
|
|
120
|
+
if (Number.isSafeInteger(parseInt(value))) {
|
|
121
|
+
return true;
|
|
122
|
+
} else {
|
|
123
|
+
return "Unsupported number";
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
defineRule("bigint", bigInt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useErrorHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,GAAG,EAAE,MAAM,KAAK,CAAC;AAEpE,UAAU,gBAAgB;IACxB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,KAAK,IAAI,IAAI,CAAC;CACf;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAoCnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useNotifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAY,WAAW,EAAiB,MAAM,KAAK,CAAC;AAK3D,UAAU,cAAc;IACtB,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IACvE,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5C,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACzC,UAAU,IAAI,IAAI,CAAC;IACnB,aAAa,IAAI,IAAI,CAAC;CACvB;AAKD,wBAAgB,gBAAgB,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useNotifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAY,WAAW,EAAiB,MAAM,KAAK,CAAC;AAK3D,UAAU,cAAc;IACtB,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IACvE,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5C,OAAO,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACzC,UAAU,IAAI,IAAI,CAAC;IACnB,aAAa,IAAI,IAAI,CAAC;CACvB;AAKD,wBAAgB,gBAAgB,IAAI,cAAc,CAiGjD"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
export declare const ErrorInterceptor: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
capture: boolean;
|
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
capture: {
|
|
10
|
+
default: boolean;
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onReset?: () => any;
|
|
15
|
+
onError?: (value: string | Error) => any;
|
|
16
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "capture">;
|
|
17
|
+
$attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$refs: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
$slots: Readonly<{
|
|
24
|
+
[name: string]: import("vue").Slot;
|
|
25
|
+
}>;
|
|
26
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
27
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
28
|
+
$emit: ((event: "error", value: string | Error) => void) & ((event: "reset") => void);
|
|
29
|
+
$el: any;
|
|
30
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
capture: {
|
|
32
|
+
default: boolean;
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
36
|
+
onReset?: () => any;
|
|
37
|
+
onError?: (value: string | Error) => any;
|
|
38
|
+
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
error(value: string | Error): boolean;
|
|
42
|
+
reset(): boolean;
|
|
43
|
+
}, string, {
|
|
44
|
+
capture: boolean;
|
|
45
|
+
}, {}, string> & {
|
|
46
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
47
|
+
created?: (() => void) | (() => void)[];
|
|
48
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
49
|
+
mounted?: (() => void) | (() => void)[];
|
|
50
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
51
|
+
updated?: (() => void) | (() => void)[];
|
|
52
|
+
activated?: (() => void) | (() => void)[];
|
|
53
|
+
deactivated?: (() => void) | (() => void)[];
|
|
54
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
55
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
56
|
+
destroyed?: (() => void) | (() => void)[];
|
|
57
|
+
unmounted?: (() => void) | (() => void)[];
|
|
58
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
59
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
60
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
61
|
+
};
|
|
62
|
+
$forceUpdate: () => void;
|
|
63
|
+
$nextTick: typeof import("vue").nextTick;
|
|
64
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
65
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
capture: {
|
|
67
|
+
default: boolean;
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
};
|
|
70
|
+
}>> & {
|
|
71
|
+
onReset?: () => any;
|
|
72
|
+
onError?: (value: string | Error) => any;
|
|
73
|
+
} & import("vue").ShallowUnwrapRef<() => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}>[]> & {} & import("vue").ComponentCustomProperties & {};
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
capture: {
|
|
81
|
+
default: boolean;
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
};
|
|
84
|
+
}>> & {
|
|
85
|
+
onReset?: () => any;
|
|
86
|
+
onError?: (value: string | Error) => any;
|
|
87
|
+
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
error(value: string | Error): boolean;
|
|
91
|
+
reset(): boolean;
|
|
92
|
+
}, string, {
|
|
93
|
+
capture: boolean;
|
|
94
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
95
|
+
$slots: {
|
|
96
|
+
default: (args: {
|
|
97
|
+
error: string;
|
|
98
|
+
reset: () => void;
|
|
99
|
+
}) => VNode[];
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
declare module "@vue/runtime-core" {
|
|
103
|
+
interface GlobalComponents {
|
|
104
|
+
ErrorInterceptor: typeof ErrorInterceptor;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/error-interceptor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAG5B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAGP;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,KAAK,EAAE;;EAGrE,CAAC;AAGF,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,gBAAgB;QAC/B,gBAAgB,EAAE,OAAO,gBAAgB,CAAC;KAC3C;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
export interface Props {
|
|
3
|
+
capture?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface Emits {
|
|
6
|
+
(event: "error", value: string): void;
|
|
7
|
+
(event: "reset"): void;
|
|
8
|
+
}
|
|
9
|
+
export type Slots = {
|
|
10
|
+
slots: {
|
|
11
|
+
default: (args: {
|
|
12
|
+
error: string;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}) => VNode[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import("vue").DefineComponent<{
|
|
18
|
+
capture: {
|
|
19
|
+
default: boolean;
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
22
|
+
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
error(value: Error | string): boolean;
|
|
26
|
+
reset(): boolean;
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
capture: {
|
|
29
|
+
default: boolean;
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
}>> & {
|
|
33
|
+
onReset?: () => any;
|
|
34
|
+
onError?: (value: string | Error) => any;
|
|
35
|
+
}, {
|
|
36
|
+
capture: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=interceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../../core/plugins/error-interceptor/interceptor.ts"],"names":[],"mappings":"AACA,OAAO,EAAiC,KAAK,EAAE,MAAM,KAAK,CAAC;AAE3D,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE;QACL,OAAO,EAAE,CAAC,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,IAAI,CAAA;SAAE,KAAK,KAAK,EAAE,CAAC;KAClE,CAAC;CACH,CAAC;;;;;;;;;iBAUe,KAAK,GAAG,MAAM;;;;;;;;;;;;;AAR/B,wBAwBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
@@ -8,4 +8,5 @@ export declare const mindimensions: (images: HTMLInputElement, [width, height]:
|
|
|
8
8
|
export declare const fileWeight: (file: HTMLInputElement, [size]: [number]) => string | true;
|
|
9
9
|
export declare const before: (value: string, [target]: string[]) => string | boolean;
|
|
10
10
|
export declare const after: (value: string, [target]: string[]) => string | boolean;
|
|
11
|
+
export declare const bigInt: (value: string) => true | "Unsupported number";
|
|
11
12
|
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../core/plugins/validation/rules.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,aAAa,WAAY,gBAAgB,mBAAmB,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,qCAwC1G,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,gBAAgB,UAAU,CAAC,MAAM,CAAC,kBAwBlE,CAAC;AA4BF,eAAO,MAAM,MAAM,UAAW,MAAM,YAAY,MAAM,EAAE,qBACiD,CAAC;AAI1G,eAAO,MAAM,KAAK,UAAW,MAAM,YAAY,MAAM,EAAE,qBACgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../core/plugins/validation/rules.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,aAAa,WAAY,gBAAgB,mBAAmB,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,qCAwC1G,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,gBAAgB,UAAU,CAAC,MAAM,CAAC,kBAwBlE,CAAC;AA4BF,eAAO,MAAM,MAAM,UAAW,MAAM,YAAY,MAAM,EAAE,qBACiD,CAAC;AAI1G,eAAO,MAAM,KAAK,UAAW,MAAM,YAAY,MAAM,EAAE,qBACgD,CAAC;AAGxG,eAAO,MAAM,MAAM,UAAW,MAAM,gCAMnC,CAAC"}
|