@robot-admin/naive-ui-components 0.11.7 → 0.12.1
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 +18 -0
- package/README.md +146 -29
- package/README_EN.md +146 -29
- package/SECURITY.md +1 -0
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +53 -53
- package/dist/C_ActionBar.d.cts +2 -2
- package/dist/C_ActionBar.d.ts +2 -2
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +67 -67
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.d.ts +1 -1
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +1 -1
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Captcha.cjs +1 -1
- package/dist/C_Captcha.css +193 -51
- package/dist/C_Captcha.d.cts +2 -3
- package/dist/C_Captcha.d.ts +2 -3
- package/dist/C_Captcha.js +1 -1
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_FormModal.cjs +1 -0
- package/dist/C_FormModal.css +41 -0
- package/dist/C_FormModal.d.cts +2 -0
- package/dist/C_FormModal.d.ts +3 -0
- package/dist/C_FormModal.js +1 -0
- package/dist/C_FormModal2.cjs +1 -0
- package/dist/C_FormModal2.js +1 -0
- package/dist/C_Login.css +210 -127
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +3 -3
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Menu.d.cts +1 -1
- package/dist/C_Table.base.css +86 -86
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +86 -86
- package/dist/C_Table.d.ts +4 -3
- package/dist/C_Table.js +1 -1
- package/dist/C_Tabs.cjs +1 -0
- package/dist/C_Tabs.css +1 -0
- package/dist/C_Tabs.d.cts +2 -0
- package/dist/C_Tabs.d.ts +2 -0
- package/dist/C_Tabs.js +1 -0
- package/dist/C_TagsView.css +38 -38
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_VtableGantt.css +19 -19
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +2 -2
- package/dist/constants3.d.ts +2 -2
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +108 -0
- package/dist/data.d.ts +108 -0
- package/dist/data2.cjs +1 -0
- package/dist/data2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +49 -48
- package/dist/index.d.ts +51 -49
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +72 -69
- package/dist/index.vue.d.ts +72 -69
- package/dist/index10.vue.d.cts +80 -39
- package/dist/index10.vue.d.ts +68 -77
- package/dist/index11.vue.d.cts +68 -77
- package/dist/index11.vue.d.ts +53 -68
- package/dist/index12.vue.d.cts +53 -68
- package/dist/index12.vue.d.ts +52 -58
- package/dist/index13.vue.d.cts +52 -58
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +5 -5
- package/dist/index15.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +14 -11
- package/dist/index17.vue.d.cts +14 -11
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index18.vue.d.ts +3 -3
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +70 -65
- package/dist/index2.vue.d.ts +70 -65
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +2 -2
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +1 -1
- package/dist/index22.vue.d.ts +1 -1
- package/dist/index24.vue.d.cts +2 -2
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +1 -1
- package/dist/index25.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +30 -80
- package/dist/index3.vue.d.ts +30 -80
- package/dist/index4.vue.d.cts +130 -30
- package/dist/index4.vue.d.ts +22 -30
- package/dist/index5.vue.d.cts +18 -126
- package/dist/index5.vue.d.ts +22 -19
- package/dist/index6.vue.d.cts +22 -19
- package/dist/index6.vue.d.ts +117 -22
- package/dist/index7.vue.d.cts +117 -22
- package/dist/index7.vue.d.ts +17 -110
- package/dist/index8.vue.d.cts +17 -110
- package/dist/index8.vue.d.ts +37 -24
- package/dist/index9.vue.d.cts +37 -24
- package/dist/index9.vue.d.ts +80 -39
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/presets.d.cts +96 -0
- package/dist/presets.d.ts +96 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/style.css +520 -393
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +8 -8
- package/dist/useCollapsePanel.d.ts +8 -8
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useEdgeInteraction.d.cts +3 -2
- package/dist/useEdgeInteraction.d.ts +3 -2
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSearchState.d.cts +6 -6
- package/dist/useSearchState.d.ts +6 -6
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +10 -0
- package/dist/useTableQuery.d.ts +10 -0
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +5 -5
- package/dist/useTimeSelection.d.ts +5 -5
- package/dist/useTreeOperations.d.cts +8 -8
- package/dist/useTreeOperations.d.ts +8 -8
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +70 -5
- package/dist/verification.d.ts +70 -5
- package/package.json +2 -1
- package/dist/types.d.ts +0 -58
- package/dist/types2.d.cts +0 -58
package/dist/index12.vue.d.cts
CHANGED
|
@@ -1,79 +1,64 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
//#region src/components/C_Editor/index.vue.d.ts
|
|
4
|
+
interface EditorInstance {
|
|
5
|
+
getHtml(): string;
|
|
6
|
+
setHtml(html: string): void;
|
|
7
|
+
disable(): void;
|
|
8
|
+
enable(): void;
|
|
9
|
+
destroy(): void;
|
|
10
|
+
isDestroyed: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
editorId: string;
|
|
14
|
+
modelValue?: string;
|
|
11
15
|
placeholder?: string;
|
|
12
|
-
startPlaceholder?: string;
|
|
13
|
-
endPlaceholder?: string;
|
|
14
16
|
disabled?: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
startDateProps?: Record<string, unknown>;
|
|
19
|
-
endDateProps?: Record<string, unknown>;
|
|
20
|
-
/** @deprecated Use modelValue. */
|
|
21
|
-
singleDate?: DateValue;
|
|
22
|
-
/** @deprecated Use modelValue. */
|
|
23
|
-
singleDateTime?: DateValue;
|
|
24
|
-
/** @deprecated Use modelValue. */
|
|
25
|
-
dateRange?: DateRangeValue;
|
|
26
|
-
/** @deprecated Use modelValue. */
|
|
27
|
-
dateTimeRange?: DateRangeValue;
|
|
28
|
-
/** @deprecated Use modelValue. */
|
|
29
|
-
smartRange?: DateRangeValue;
|
|
30
|
-
}
|
|
31
|
-
interface DateEmits {
|
|
32
|
-
'update:modelValue': [value: DateModelValue];
|
|
33
|
-
'update:singleDate': [value: DateValue];
|
|
34
|
-
'update:singleDateTime': [value: DateValue];
|
|
35
|
-
'update:dateRange': [value: DateRangeValue];
|
|
36
|
-
'update:dateTimeRange': [value: DateRangeValue];
|
|
37
|
-
'update:smartRange': [value: DateRangeValue];
|
|
38
|
-
change: [value: DateModelValue];
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
39
20
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
21
|
+
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
22
|
+
initializeEditor: () => void;
|
|
23
|
+
destroyEditor: () => void;
|
|
24
|
+
setContent: (html: string) => void;
|
|
25
|
+
getContent: () => string;
|
|
26
|
+
handleEditorFocus: () => void;
|
|
27
|
+
handleEditorBlur: () => void;
|
|
28
|
+
editorInstance: Readonly<vue.Ref<{
|
|
29
|
+
readonly getHtml: () => string;
|
|
30
|
+
readonly setHtml: (html: string) => void;
|
|
31
|
+
readonly disable: () => void;
|
|
32
|
+
readonly enable: () => void;
|
|
33
|
+
readonly destroy: () => void;
|
|
34
|
+
readonly isDestroyed: boolean;
|
|
35
|
+
} | null, {
|
|
36
|
+
readonly getHtml: () => string;
|
|
37
|
+
readonly setHtml: (html: string) => void;
|
|
38
|
+
readonly disable: () => void;
|
|
39
|
+
readonly enable: () => void;
|
|
40
|
+
readonly destroy: () => void;
|
|
41
|
+
readonly isDestroyed: boolean;
|
|
42
|
+
} | null>>;
|
|
43
|
+
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
+
error: (error: Error) => any;
|
|
46
|
+
"update:modelValue": (value: string) => any;
|
|
47
|
+
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
|
+
"editor-change": (html: string) => any;
|
|
49
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
+
onError?: ((error: Error) => any) | undefined;
|
|
51
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
+
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
|
+
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
61
54
|
}>, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
height: number;
|
|
56
|
+
theme: "light" | "dark";
|
|
57
|
+
modelValue: string;
|
|
65
58
|
placeholder: string;
|
|
66
59
|
disabled: boolean;
|
|
67
|
-
|
|
68
|
-
disabledAfterToday: boolean;
|
|
69
|
-
startDateProps: Record<string, unknown>;
|
|
70
|
-
endDateProps: Record<string, unknown>;
|
|
71
|
-
singleDate: DateValue;
|
|
72
|
-
singleDateTime: DateValue;
|
|
73
|
-
dateRange: DateRangeValue;
|
|
74
|
-
dateTimeRange: DateRangeValue;
|
|
75
|
-
smartRange: DateRangeValue;
|
|
60
|
+
readonly: boolean;
|
|
76
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
77
62
|
declare const _default: typeof __VLS_export;
|
|
78
63
|
//#endregion
|
|
79
|
-
export {
|
|
64
|
+
export { _default as t };
|
package/dist/index12.vue.d.ts
CHANGED
|
@@ -1,64 +1,58 @@
|
|
|
1
|
+
import { C as FormConfig, K as FormOption, at as SubmitEventPayload, q as FormRecord } from "./useDynamicFormState.js";
|
|
1
2
|
import * as vue from "vue";
|
|
3
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
4
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
//#region src/components/C_FormModal/types.d.ts
|
|
6
|
+
type FormModalMode = 'create' | 'edit';
|
|
7
|
+
/**
|
|
8
|
+
* Structural editor contract. It intentionally does not depend on request-core,
|
|
9
|
+
* so any headless CRUD implementation can drive the modal.
|
|
10
|
+
*/
|
|
11
|
+
interface FormModalEditor<T extends object = FormRecord> {
|
|
12
|
+
visible: Ref<boolean>;
|
|
13
|
+
mode: Ref<FormModalMode>;
|
|
14
|
+
model: Ref<T | null>;
|
|
15
|
+
title: Ref<string>;
|
|
16
|
+
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
17
|
+
setModel(model: T): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
submit(model?: T): Promise<boolean>;
|
|
11
20
|
}
|
|
12
|
-
interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
interface FormModalProps<T extends object = FormRecord> {
|
|
22
|
+
editor: FormModalEditor<T>;
|
|
23
|
+
options: FormOption<T>[];
|
|
24
|
+
config?: FormConfig<T>;
|
|
25
|
+
width?: number | string;
|
|
26
|
+
createText?: string;
|
|
27
|
+
saveText?: string;
|
|
28
|
+
cancelText?: string;
|
|
29
|
+
closable?: boolean;
|
|
30
|
+
maskClosable?: boolean;
|
|
31
|
+
closeOnEsc?: boolean;
|
|
20
32
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
error: (error: Error) => any;
|
|
46
|
-
"update:modelValue": (value: string) => any;
|
|
47
|
-
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
|
-
"editor-change": (html: string) => any;
|
|
49
|
-
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
onError?: ((error: Error) => any) | undefined;
|
|
51
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
-
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
|
-
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
|
-
}>, {
|
|
55
|
-
height: number;
|
|
56
|
-
modelValue: string;
|
|
57
|
-
placeholder: string;
|
|
58
|
-
theme: "light" | "dark";
|
|
59
|
-
disabled: boolean;
|
|
60
|
-
readonly: boolean;
|
|
61
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
interface FormModalEmits<T extends object = FormRecord> {
|
|
34
|
+
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
35
|
+
close: [];
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/C_FormModal/index.vue.d.ts
|
|
39
|
+
declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
40
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
41
|
+
onClose?: (() => any) | undefined;
|
|
42
|
+
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
43
|
+
}> & (typeof globalThis extends {
|
|
44
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
45
|
+
} ? P : {});
|
|
46
|
+
expose: (exposed: {}) => void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {
|
|
49
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
50
|
+
};
|
|
51
|
+
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
52
|
+
}>) => vue.VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
62
55
|
declare const _default: typeof __VLS_export;
|
|
56
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
63
57
|
//#endregion
|
|
64
|
-
export { _default as t };
|
|
58
|
+
export { FormModalProps as a, FormModalMode as i, FormModalEditor as n, FormModalEmits as r, _default as t };
|
package/dist/index13.vue.d.cts
CHANGED
|
@@ -1,64 +1,58 @@
|
|
|
1
|
+
import { C as FormConfig, K as FormOption, at as SubmitEventPayload, q as FormRecord } from "./useDynamicFormState.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
3
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
4
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
//#region src/components/C_FormModal/types.d.ts
|
|
6
|
+
type FormModalMode = 'create' | 'edit';
|
|
7
|
+
/**
|
|
8
|
+
* Structural editor contract. It intentionally does not depend on request-core,
|
|
9
|
+
* so any headless CRUD implementation can drive the modal.
|
|
10
|
+
*/
|
|
11
|
+
interface FormModalEditor<T extends object = FormRecord> {
|
|
12
|
+
visible: Ref<boolean>;
|
|
13
|
+
mode: Ref<FormModalMode>;
|
|
14
|
+
model: Ref<T | null>;
|
|
15
|
+
title: Ref<string>;
|
|
16
|
+
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
17
|
+
setModel(model: T): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
submit(model?: T): Promise<boolean>;
|
|
11
20
|
}
|
|
12
|
-
interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
interface FormModalProps<T extends object = FormRecord> {
|
|
22
|
+
editor: FormModalEditor<T>;
|
|
23
|
+
options: FormOption<T>[];
|
|
24
|
+
config?: FormConfig<T>;
|
|
25
|
+
width?: number | string;
|
|
26
|
+
createText?: string;
|
|
27
|
+
saveText?: string;
|
|
28
|
+
cancelText?: string;
|
|
29
|
+
closable?: boolean;
|
|
30
|
+
maskClosable?: boolean;
|
|
31
|
+
closeOnEsc?: boolean;
|
|
20
32
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
error: (error: Error) => any;
|
|
46
|
-
"update:modelValue": (value: string) => any;
|
|
47
|
-
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
|
-
"editor-change": (html: string) => any;
|
|
49
|
-
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
onError?: ((error: Error) => any) | undefined;
|
|
51
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
-
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
|
-
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
|
-
}>, {
|
|
55
|
-
height: number;
|
|
56
|
-
modelValue: string;
|
|
57
|
-
placeholder: string;
|
|
58
|
-
theme: "light" | "dark";
|
|
59
|
-
disabled: boolean;
|
|
60
|
-
readonly: boolean;
|
|
61
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
interface FormModalEmits<T extends object = FormRecord> {
|
|
34
|
+
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
35
|
+
close: [];
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/C_FormModal/index.vue.d.ts
|
|
39
|
+
declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
40
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
41
|
+
onClose?: (() => any) | undefined;
|
|
42
|
+
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
43
|
+
}> & (typeof globalThis extends {
|
|
44
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
45
|
+
} ? P : {});
|
|
46
|
+
expose: (exposed: {}) => void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {
|
|
49
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
50
|
+
};
|
|
51
|
+
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
52
|
+
}>) => vue.VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
62
55
|
declare const _default: typeof __VLS_export;
|
|
56
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
63
57
|
//#endregion
|
|
64
|
-
export { _default as t };
|
|
58
|
+
export { FormModalProps as a, FormModalMode as i, FormModalEditor as n, FormModalEmits as r, _default as t };
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -79,21 +79,21 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
79
79
|
isCompleted: () => boolean;
|
|
80
80
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
81
81
|
start: () => any;
|
|
82
|
-
close: (currentStep: number) => any;
|
|
83
82
|
complete: () => any;
|
|
83
|
+
close: (currentStep: number) => any;
|
|
84
84
|
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
85
85
|
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
86
86
|
onStart?: (() => any) | undefined;
|
|
87
|
-
onClose?: ((currentStep: number) => any) | undefined;
|
|
88
87
|
onComplete?: (() => any) | undefined;
|
|
88
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
89
89
|
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
steps: GuideStep[];
|
|
92
|
-
keyboard: boolean;
|
|
93
92
|
doneBtnText: string;
|
|
94
93
|
nextBtnText: string;
|
|
95
94
|
prevBtnText: string;
|
|
96
95
|
showProgress: boolean;
|
|
96
|
+
keyboard: boolean;
|
|
97
97
|
animate: boolean;
|
|
98
98
|
allowClose: boolean;
|
|
99
99
|
popoverClass: string;
|
package/dist/index14.vue.d.cts
CHANGED
|
@@ -79,21 +79,21 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
79
79
|
isCompleted: () => boolean;
|
|
80
80
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
81
81
|
start: () => any;
|
|
82
|
-
close: (currentStep: number) => any;
|
|
83
82
|
complete: () => any;
|
|
83
|
+
close: (currentStep: number) => any;
|
|
84
84
|
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
85
85
|
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
86
86
|
onStart?: (() => any) | undefined;
|
|
87
|
-
onClose?: ((currentStep: number) => any) | undefined;
|
|
88
87
|
onComplete?: (() => any) | undefined;
|
|
88
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
89
89
|
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
steps: GuideStep[];
|
|
92
|
-
keyboard: boolean;
|
|
93
92
|
doneBtnText: string;
|
|
94
93
|
nextBtnText: string;
|
|
95
94
|
prevBtnText: string;
|
|
96
95
|
showProgress: boolean;
|
|
96
|
+
keyboard: boolean;
|
|
97
97
|
animate: boolean;
|
|
98
98
|
allowClose: boolean;
|
|
99
99
|
popoverClass: string;
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -69,21 +69,21 @@ declare const __VLS_export: vue.DefineComponent<LegacyIconProps, {
|
|
|
69
69
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
70
70
|
onLoad?: (() => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
|
-
ariaLabel: string;
|
|
73
72
|
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
74
|
-
clickable: boolean;
|
|
75
73
|
title: string;
|
|
76
|
-
name: string | any;
|
|
77
|
-
size: number | string;
|
|
78
74
|
color: string;
|
|
79
75
|
loading: boolean;
|
|
76
|
+
size: number | string;
|
|
77
|
+
name: string | any;
|
|
80
78
|
flip: "horizontal" | "vertical" | "both";
|
|
79
|
+
clickable: boolean;
|
|
80
|
+
rotate: number;
|
|
81
81
|
svgPath: string;
|
|
82
82
|
viewBox: string;
|
|
83
83
|
alt: string;
|
|
84
84
|
fallbackIcon: string;
|
|
85
|
+
ariaLabel: string;
|
|
85
86
|
customClass: string;
|
|
86
|
-
rotate: number;
|
|
87
87
|
componentProps: Record<string, any>;
|
|
88
88
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
89
89
|
declare const _default: typeof __VLS_export;
|
package/dist/index15.vue.d.cts
CHANGED
|
@@ -69,21 +69,21 @@ declare const __VLS_export: vue.DefineComponent<LegacyIconProps, {
|
|
|
69
69
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
70
70
|
onLoad?: (() => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
|
-
ariaLabel: string;
|
|
73
72
|
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
74
|
-
clickable: boolean;
|
|
75
73
|
title: string;
|
|
76
|
-
name: string | any;
|
|
77
|
-
size: number | string;
|
|
78
74
|
color: string;
|
|
79
75
|
loading: boolean;
|
|
76
|
+
size: number | string;
|
|
77
|
+
name: string | any;
|
|
80
78
|
flip: "horizontal" | "vertical" | "both";
|
|
79
|
+
clickable: boolean;
|
|
80
|
+
rotate: number;
|
|
81
81
|
svgPath: string;
|
|
82
82
|
viewBox: string;
|
|
83
83
|
alt: string;
|
|
84
84
|
fallbackIcon: string;
|
|
85
|
+
ariaLabel: string;
|
|
85
86
|
customClass: string;
|
|
86
|
-
rotate: number;
|
|
87
87
|
componentProps: Record<string, any>;
|
|
88
88
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
89
89
|
declare const _default: typeof __VLS_export;
|
package/dist/index15.vue.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
tooltip?: string;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (key: string) => any;
|
|
23
22
|
change: (key: string) => any;
|
|
23
|
+
"update:modelValue": (key: string) => any;
|
|
24
24
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
25
|
onChange?: ((key: string) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
modelValue: string;
|
|
29
29
|
options: LegacyLanguageOption[];
|
package/dist/index16.vue.d.cts
CHANGED
|
@@ -19,11 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
tooltip?: string;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (key: string) => any;
|
|
23
22
|
change: (key: string) => any;
|
|
23
|
+
"update:modelValue": (key: string) => any;
|
|
24
24
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
25
|
onChange?: ((key: string) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
modelValue: string;
|
|
29
29
|
options: LegacyLanguageOption[];
|
package/dist/index16.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.js";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Login/types.d.ts
|
|
@@ -29,6 +29,10 @@ interface SocialProvider {
|
|
|
29
29
|
interface PasswordFormData {
|
|
30
30
|
username: string;
|
|
31
31
|
password: string;
|
|
32
|
+
captchaToken?: string;
|
|
33
|
+
captchaTimestamp?: number;
|
|
34
|
+
captchaType?: CaptchaProof['type'];
|
|
35
|
+
captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
|
|
32
36
|
}
|
|
33
37
|
interface CaptchaFormData {
|
|
34
38
|
account: string;
|
|
@@ -63,6 +67,10 @@ interface LoginProps {
|
|
|
63
67
|
defaultPassword?: string;
|
|
64
68
|
/** 人机验证的应用服务端校验适配器 */
|
|
65
69
|
captchaVerifier?: CaptchaVerifier;
|
|
70
|
+
/** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
|
|
71
|
+
captchaProvider?: CaptchaProvider;
|
|
72
|
+
/** 签发一次性 ALTCHA 挑战的同源服务端地址 */
|
|
73
|
+
captchaChallengeUrl?: string;
|
|
66
74
|
/** 未配置服务端校验器时是否拒绝登录验证 */
|
|
67
75
|
requireCaptchaServerVerification?: boolean;
|
|
68
76
|
/** 服务端人机验证超时(毫秒) */
|
|
@@ -79,11 +87,7 @@ type __VLS_Slots = {} & {
|
|
|
79
87
|
declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
80
88
|
resetCaptcha: () => void;
|
|
81
89
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
82
|
-
submit: (data: PasswordFormData
|
|
83
|
-
captchaToken?: string;
|
|
84
|
-
captchaTimestamp?: number;
|
|
85
|
-
captchaVerifiedBy?: CaptchaSuccessPayload["verifiedBy"];
|
|
86
|
-
}) => any;
|
|
90
|
+
submit: (data: PasswordFormData) => any;
|
|
87
91
|
"captcha-submit": (data: CaptchaFormData) => any;
|
|
88
92
|
"send-code": (account: string) => any;
|
|
89
93
|
"social-login": (provider: string) => any;
|
|
@@ -91,12 +95,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
|
91
95
|
"qrcode-refresh": () => any;
|
|
92
96
|
"register-submit": (data: RegisterFormData) => any;
|
|
93
97
|
"register-send-code": (phone: string) => any;
|
|
98
|
+
"captcha-visible-change": (visible: boolean) => any;
|
|
94
99
|
}, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
|
|
95
|
-
onSubmit?: ((data: PasswordFormData
|
|
96
|
-
captchaToken?: string;
|
|
97
|
-
captchaTimestamp?: number;
|
|
98
|
-
captchaVerifiedBy?: CaptchaSuccessPayload["verifiedBy"];
|
|
99
|
-
}) => any) | undefined;
|
|
100
|
+
onSubmit?: ((data: PasswordFormData) => any) | undefined;
|
|
100
101
|
"onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
|
|
101
102
|
"onSend-code"?: ((account: string) => any) | undefined;
|
|
102
103
|
"onSocial-login"?: ((provider: string) => any) | undefined;
|
|
@@ -104,12 +105,14 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
|
104
105
|
"onQrcode-refresh"?: (() => any) | undefined;
|
|
105
106
|
"onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
|
|
106
107
|
"onRegister-send-code"?: ((phone: string) => any) | undefined;
|
|
108
|
+
"onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
|
|
107
109
|
}>, {
|
|
108
110
|
title: string;
|
|
109
111
|
loading: boolean;
|
|
110
112
|
storageKey: string;
|
|
111
113
|
defaultUsername: string;
|
|
112
114
|
defaultPassword: string;
|
|
115
|
+
captchaProvider: CaptchaProvider;
|
|
113
116
|
requireCaptchaServerVerification: boolean;
|
|
114
117
|
captchaVerificationTimeout: number;
|
|
115
118
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index17.vue.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as CaptchaProvider, p as CaptchaVerifier, s as CaptchaProof, u as CaptchaSuccessPayload } from "./verification.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Login/types.d.ts
|
|
@@ -29,6 +29,10 @@ interface SocialProvider {
|
|
|
29
29
|
interface PasswordFormData {
|
|
30
30
|
username: string;
|
|
31
31
|
password: string;
|
|
32
|
+
captchaToken?: string;
|
|
33
|
+
captchaTimestamp?: number;
|
|
34
|
+
captchaType?: CaptchaProof['type'];
|
|
35
|
+
captchaVerifiedBy?: CaptchaSuccessPayload['verifiedBy'];
|
|
32
36
|
}
|
|
33
37
|
interface CaptchaFormData {
|
|
34
38
|
account: string;
|
|
@@ -63,6 +67,10 @@ interface LoginProps {
|
|
|
63
67
|
defaultPassword?: string;
|
|
64
68
|
/** 人机验证的应用服务端校验适配器 */
|
|
65
69
|
captchaVerifier?: CaptchaVerifier;
|
|
70
|
+
/** 人机验证提供方;ALTCHA 模式必须同时配置挑战地址和服务端校验器 */
|
|
71
|
+
captchaProvider?: CaptchaProvider;
|
|
72
|
+
/** 签发一次性 ALTCHA 挑战的同源服务端地址 */
|
|
73
|
+
captchaChallengeUrl?: string;
|
|
66
74
|
/** 未配置服务端校验器时是否拒绝登录验证 */
|
|
67
75
|
requireCaptchaServerVerification?: boolean;
|
|
68
76
|
/** 服务端人机验证超时(毫秒) */
|
|
@@ -79,11 +87,7 @@ type __VLS_Slots = {} & {
|
|
|
79
87
|
declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
80
88
|
resetCaptcha: () => void;
|
|
81
89
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
82
|
-
submit: (data: PasswordFormData
|
|
83
|
-
captchaToken?: string;
|
|
84
|
-
captchaTimestamp?: number;
|
|
85
|
-
captchaVerifiedBy?: CaptchaSuccessPayload["verifiedBy"];
|
|
86
|
-
}) => any;
|
|
90
|
+
submit: (data: PasswordFormData) => any;
|
|
87
91
|
"captcha-submit": (data: CaptchaFormData) => any;
|
|
88
92
|
"send-code": (account: string) => any;
|
|
89
93
|
"social-login": (provider: string) => any;
|
|
@@ -91,12 +95,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
|
91
95
|
"qrcode-refresh": () => any;
|
|
92
96
|
"register-submit": (data: RegisterFormData) => any;
|
|
93
97
|
"register-send-code": (phone: string) => any;
|
|
98
|
+
"captcha-visible-change": (visible: boolean) => any;
|
|
94
99
|
}, string, vue.PublicProps, Readonly<LoginProps> & Readonly<{
|
|
95
|
-
onSubmit?: ((data: PasswordFormData
|
|
96
|
-
captchaToken?: string;
|
|
97
|
-
captchaTimestamp?: number;
|
|
98
|
-
captchaVerifiedBy?: CaptchaSuccessPayload["verifiedBy"];
|
|
99
|
-
}) => any) | undefined;
|
|
100
|
+
onSubmit?: ((data: PasswordFormData) => any) | undefined;
|
|
100
101
|
"onCaptcha-submit"?: ((data: CaptchaFormData) => any) | undefined;
|
|
101
102
|
"onSend-code"?: ((account: string) => any) | undefined;
|
|
102
103
|
"onSocial-login"?: ((provider: string) => any) | undefined;
|
|
@@ -104,12 +105,14 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
|
|
|
104
105
|
"onQrcode-refresh"?: (() => any) | undefined;
|
|
105
106
|
"onRegister-submit"?: ((data: RegisterFormData) => any) | undefined;
|
|
106
107
|
"onRegister-send-code"?: ((phone: string) => any) | undefined;
|
|
108
|
+
"onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
|
|
107
109
|
}>, {
|
|
108
110
|
title: string;
|
|
109
111
|
loading: boolean;
|
|
110
112
|
storageKey: string;
|
|
111
113
|
defaultUsername: string;
|
|
112
114
|
defaultPassword: string;
|
|
115
|
+
captchaProvider: CaptchaProvider;
|
|
113
116
|
requireCaptchaServerVerification: boolean;
|
|
114
117
|
captchaVerificationTimeout: number;
|
|
115
118
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|