@robot-admin/naive-ui-components 0.31.5 → 0.33.0
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 +11 -5
- package/README_EN.md +11 -5
- package/dist/C_AutoComplete.cjs +1 -0
- package/dist/C_AutoComplete.css +36 -0
- package/dist/C_AutoComplete.d.cts +4 -0
- package/dist/C_AutoComplete.d.ts +4 -0
- package/dist/C_AutoComplete.js +1 -0
- package/dist/C_AutoComplete2.cjs +1 -0
- package/dist/C_AutoComplete2.js +1 -0
- 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_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +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_DataPicker.css +235 -31
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_Form.base.css +68 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +68 -1
- package/dist/C_Form.d.cts +3 -3
- package/dist/C_Form.d.ts +5 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +3 -1
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +160 -72
- package/dist/C_FormSearch.d.cts +3 -3
- package/dist/C_FormSearch.d.ts +3 -3
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Select.css +32 -1
- package/dist/C_Select.d.cts +4 -2
- package/dist/C_Select.d.ts +4 -2
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +214 -147
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +146 -146
- package/dist/C_Table.d.cts +3 -3
- package/dist/C_Table.d.ts +13 -10
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +4 -3
- package/dist/C_Table2.js +4 -3
- package/dist/C_TagsView.css +51 -51
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.cjs +1 -1
- package/dist/C_Tree.css +60 -23
- package/dist/C_Tree.d.cts +2 -2
- package/dist/C_Tree.d.ts +12 -9
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/OptionStatus.cjs +1 -0
- package/dist/OptionStatus.js +1 -0
- package/dist/SearchFieldSettings.cjs +1 -0
- package/dist/SearchFieldSettings.js +1 -0
- package/dist/constants4.d.cts +9 -9
- package/dist/constants4.d.ts +9 -9
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +2 -1
- package/dist/data.d.ts +2 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/dateRange.d.cts +52 -7
- package/dist/dateRange.d.ts +52 -7
- package/dist/editors.cjs +1 -0
- package/dist/{useTableQuery.d.cts → editors.d.cts} +120 -13
- package/dist/{useTableQuery.d.ts → editors.d.ts} +120 -13
- package/dist/editors.js +1 -0
- package/dist/fieldRenderers.cjs +1 -0
- package/dist/fieldRenderers.js +1 -0
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +79 -29
- package/dist/formField.d.ts +79 -29
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +63 -59
- package/dist/index.d.ts +63 -58
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +27 -35
- package/dist/index10.vue.d.ts +37 -80
- package/dist/index11.vue.d.cts +37 -80
- package/dist/index11.vue.d.ts +83 -16
- package/dist/index12.vue.d.cts +83 -16
- package/dist/index12.vue.d.ts +16 -59
- package/dist/index13.vue.d.cts +16 -59
- package/dist/index13.vue.d.ts +57 -17
- package/dist/index14.vue.d.cts +57 -17
- package/dist/index14.vue.d.ts +18 -55
- package/dist/index15.vue.d.cts +18 -55
- package/dist/index15.vue.d.ts +53 -124
- package/dist/index16.vue.d.cts +53 -124
- package/dist/index16.vue.d.ts +123 -51
- package/dist/index17.vue.d.cts +123 -51
- package/dist/index17.vue.d.ts +52 -25
- package/dist/index18.vue.d.cts +52 -25
- package/dist/index18.vue.d.ts +25 -12
- package/dist/index19.vue.d.cts +25 -12
- package/dist/index19.vue.d.ts +13 -129
- package/dist/index2.vue.d.cts +26 -82
- package/dist/index2.vue.d.ts +26 -82
- package/dist/index20.vue.d.cts +13 -129
- package/dist/index20.vue.d.ts +129 -76
- package/dist/index21.vue.d.cts +129 -76
- package/dist/index21.vue.d.ts +78 -72
- package/dist/index22.vue.d.cts +75 -97
- package/dist/index22.vue.d.ts +68 -96
- package/dist/index23.vue.d.cts +91 -40
- package/dist/index23.vue.d.ts +91 -40
- package/dist/index24.vue.d.cts +49 -23
- package/dist/index24.vue.d.ts +49 -23
- package/dist/index25.vue.d.cts +19 -46
- package/dist/index25.vue.d.ts +19 -46
- package/dist/index26.vue.d.cts +25 -98
- package/dist/index26.vue.d.ts +25 -98
- package/dist/index27.vue.d.cts +95 -37
- package/dist/index27.vue.d.ts +95 -37
- package/dist/index28.vue.d.cts +34 -8
- package/dist/index28.vue.d.ts +34 -8
- package/dist/index29.vue.d.cts +9 -86
- package/dist/index29.vue.d.ts +9 -86
- package/dist/index3.vue.d.cts +80 -30
- package/dist/index3.vue.d.ts +80 -30
- package/dist/index30.vue.d.cts +85 -99
- package/dist/index30.vue.d.ts +85 -99
- package/dist/index31.vue.d.cts +94 -63
- package/dist/index31.vue.d.ts +94 -63
- package/dist/index32.vue.d.cts +79 -0
- package/dist/index32.vue.d.ts +79 -0
- package/dist/index4.vue.d.cts +30 -19
- package/dist/index4.vue.d.ts +30 -19
- package/dist/index5.vue.d.cts +19 -128
- package/dist/index5.vue.d.ts +17 -34
- package/dist/index6.vue.d.cts +127 -35
- package/dist/index6.vue.d.ts +30 -22
- package/dist/index7.vue.d.cts +30 -22
- package/dist/index7.vue.d.ts +25 -118
- package/dist/index8.vue.d.cts +25 -118
- package/dist/index8.vue.d.ts +112 -21
- package/dist/index9.vue.d.cts +112 -21
- package/dist/index9.vue.d.ts +27 -35
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/optionSource.d.cts +30 -0
- package/dist/optionSource.d.ts +30 -0
- package/dist/public.d.ts +2 -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/selectPresentation.cjs +1 -1
- package/dist/selectPresentation.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/sourceControls.cjs +1 -0
- package/dist/sourceControls.js +1 -0
- package/dist/style.css +513 -324
- package/dist/types2.d.cts +29 -103
- package/dist/types2.d.ts +30 -55
- package/dist/types3.d.cts +106 -55
- package/dist/types3.d.ts +60 -0
- package/dist/types4.d.cts +60 -0
- package/dist/types4.d.ts +50 -0
- package/dist/types5.d.cts +50 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDataResource.cjs +1 -1
- package/dist/useDataResource.js +1 -1
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useDynamicFormState.d.cts +17 -3
- package/dist/useDynamicFormState.d.ts +17 -3
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormConfig.d.cts +5 -2
- package/dist/useFormConfig.d.ts +5 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGlobalSearch.d.cts +8 -0
- package/dist/useGlobalSearch.d.ts +8 -0
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +6 -6
- package/dist/verification.d.ts +6 -6
- package/docs/architecture.md +3 -1
- package/docs/components.en.md +2 -1
- package/docs/components.md +2 -1
- package/docs/engineering.en.md +11 -1
- package/docs/engineering.md +11 -1
- package/docs/guides/component-contracts.md +72 -0
- package/docs/guides/data-picker.md +37 -1
- package/docs/guides/remote-options.md +117 -0
- package/docs/guides/search-workflows.md +162 -2
- package/docs/guides/table-editing.md +79 -0
- package/docs/guides/tree.en.md +41 -0
- package/docs/guides/tree.md +80 -1
- package/docs/search-selection-coverage.md +59 -0
- package/docs/wl-ui-produce-coverage.md +2 -0
- package/package.json +6 -3
- package/dist/helpers2.cjs +0 -1
- package/dist/helpers2.js +0 -1
- package/dist/temporalField.cjs +0 -1
- package/dist/temporalField.js +0 -1
- package/dist/useTableQuery.cjs +0 -1
- package/dist/useTableQuery.js +0 -1
package/dist/index13.vue.d.ts
CHANGED
|
@@ -1,24 +1,64 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.js";
|
|
2
|
-
import { t as ValidationIssue } from "./validation.js";
|
|
3
1
|
import * as vue from "vue";
|
|
4
2
|
|
|
5
|
-
//#region src/components/
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
interface Props {
|
|
13
|
+
editorId?: string;
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
20
|
+
}
|
|
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
|
+
"update:modelValue": (value: string) => any;
|
|
46
|
+
error: (error: Error) => any;
|
|
47
|
+
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
|
+
"editor-change": (html: string) => any;
|
|
49
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onError?: ((error: Error) => any) | undefined;
|
|
52
|
+
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
|
+
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
19
54
|
}>, {
|
|
20
|
-
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
theme: "light" | "dark";
|
|
57
|
+
modelValue: string;
|
|
58
|
+
readonly: boolean;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
height: number;
|
|
21
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
22
62
|
declare const _default: typeof __VLS_export;
|
|
23
63
|
//#endregion
|
|
24
|
-
export {
|
|
64
|
+
export { _default as t };
|
package/dist/index14.vue.d.cts
CHANGED
|
@@ -1,24 +1,64 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
|
-
import { t as ValidationIssue } from "./validation.cjs";
|
|
3
1
|
import * as vue from "vue";
|
|
4
2
|
|
|
5
|
-
//#region src/components/
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
interface Props {
|
|
13
|
+
editorId?: string;
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
20
|
+
}
|
|
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
|
+
"update:modelValue": (value: string) => any;
|
|
46
|
+
error: (error: Error) => any;
|
|
47
|
+
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
|
+
"editor-change": (html: string) => any;
|
|
49
|
+
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onError?: ((error: Error) => any) | undefined;
|
|
52
|
+
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
|
+
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
19
54
|
}>, {
|
|
20
|
-
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
theme: "light" | "dark";
|
|
57
|
+
modelValue: string;
|
|
58
|
+
readonly: boolean;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
height: number;
|
|
21
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
22
62
|
declare const _default: typeof __VLS_export;
|
|
23
63
|
//#endregion
|
|
24
|
-
export {
|
|
64
|
+
export { _default as t };
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -1,61 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.js";
|
|
2
|
+
import { t as ValidationIssue } from "./validation.js";
|
|
3
3
|
import * as vue from "vue";
|
|
4
|
-
import { ComputedRef, Ref } from "vue";
|
|
5
4
|
|
|
6
|
-
//#region src/components/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
visible: Ref<boolean>;
|
|
14
|
-
mode: Ref<FormModalMode>;
|
|
15
|
-
model: Ref<T | null>;
|
|
16
|
-
title: Ref<string>;
|
|
17
|
-
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
18
|
-
setModel(model: T): void;
|
|
19
|
-
close(): void;
|
|
20
|
-
submit(model?: T): Promise<boolean>;
|
|
21
|
-
}
|
|
22
|
-
interface FormModalProps<T extends object = FormRecord> {
|
|
23
|
-
editor: FormModalEditor<T>;
|
|
24
|
-
options: FormOption<T>[];
|
|
25
|
-
config?: FormConfig<T>;
|
|
26
|
-
/** 当前弹窗使用的自定义字段渲染器。 */
|
|
27
|
-
renderers?: Record<string, FormRenderer>;
|
|
28
|
-
width?: number | string;
|
|
29
|
-
createText?: string;
|
|
30
|
-
saveText?: string;
|
|
31
|
-
cancelText?: string;
|
|
32
|
-
closable?: boolean;
|
|
33
|
-
maskClosable?: boolean;
|
|
34
|
-
closeOnEsc?: boolean;
|
|
35
|
-
}
|
|
36
|
-
interface FormModalEmits<T extends object = FormRecord> {
|
|
37
|
-
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
38
|
-
close: [];
|
|
5
|
+
//#region src/components/C_ErrorSummary/types.d.ts
|
|
6
|
+
interface ErrorSummaryProps {
|
|
7
|
+
issues: readonly ValidationIssue[];
|
|
8
|
+
title?: string;
|
|
9
|
+
/** 每页挂载的问题数,默认 8,最大 100,避免大批失败创建大量 DOM。 */
|
|
10
|
+
limit?: number;
|
|
11
|
+
locale?: ComponentLocale;
|
|
39
12
|
}
|
|
40
13
|
//#endregion
|
|
41
|
-
//#region src/components/
|
|
42
|
-
declare const __VLS_export: <
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
expose: (exposed: {}) => void;
|
|
50
|
-
attrs: any;
|
|
51
|
-
slots: {
|
|
52
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
53
|
-
};
|
|
54
|
-
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
55
|
-
}>) => vue.VNode & {
|
|
56
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
57
|
-
};
|
|
14
|
+
//#region src/components/C_ErrorSummary/index.vue.d.ts
|
|
15
|
+
declare const __VLS_export: vue.DefineComponent<ErrorSummaryProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
16
|
+
navigate: (issue: ValidationIssue) => any;
|
|
17
|
+
}, string, vue.PublicProps, Readonly<ErrorSummaryProps> & Readonly<{
|
|
18
|
+
onNavigate?: ((issue: ValidationIssue) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
limit: number;
|
|
21
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
22
|
declare const _default: typeof __VLS_export;
|
|
59
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
60
23
|
//#endregion
|
|
61
|
-
export {
|
|
24
|
+
export { ErrorSummaryProps as n, _default as t };
|
package/dist/index15.vue.d.cts
CHANGED
|
@@ -1,61 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
|
+
import { t as ValidationIssue } from "./validation.cjs";
|
|
3
3
|
import * as vue from "vue";
|
|
4
|
-
import { ComputedRef, Ref } from "vue";
|
|
5
4
|
|
|
6
|
-
//#region src/components/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
visible: Ref<boolean>;
|
|
14
|
-
mode: Ref<FormModalMode>;
|
|
15
|
-
model: Ref<T | null>;
|
|
16
|
-
title: Ref<string>;
|
|
17
|
-
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
18
|
-
setModel(model: T): void;
|
|
19
|
-
close(): void;
|
|
20
|
-
submit(model?: T): Promise<boolean>;
|
|
21
|
-
}
|
|
22
|
-
interface FormModalProps<T extends object = FormRecord> {
|
|
23
|
-
editor: FormModalEditor<T>;
|
|
24
|
-
options: FormOption<T>[];
|
|
25
|
-
config?: FormConfig<T>;
|
|
26
|
-
/** 当前弹窗使用的自定义字段渲染器。 */
|
|
27
|
-
renderers?: Record<string, FormRenderer>;
|
|
28
|
-
width?: number | string;
|
|
29
|
-
createText?: string;
|
|
30
|
-
saveText?: string;
|
|
31
|
-
cancelText?: string;
|
|
32
|
-
closable?: boolean;
|
|
33
|
-
maskClosable?: boolean;
|
|
34
|
-
closeOnEsc?: boolean;
|
|
35
|
-
}
|
|
36
|
-
interface FormModalEmits<T extends object = FormRecord> {
|
|
37
|
-
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
38
|
-
close: [];
|
|
5
|
+
//#region src/components/C_ErrorSummary/types.d.ts
|
|
6
|
+
interface ErrorSummaryProps {
|
|
7
|
+
issues: readonly ValidationIssue[];
|
|
8
|
+
title?: string;
|
|
9
|
+
/** 每页挂载的问题数,默认 8,最大 100,避免大批失败创建大量 DOM。 */
|
|
10
|
+
limit?: number;
|
|
11
|
+
locale?: ComponentLocale;
|
|
39
12
|
}
|
|
40
13
|
//#endregion
|
|
41
|
-
//#region src/components/
|
|
42
|
-
declare const __VLS_export: <
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
expose: (exposed: {}) => void;
|
|
50
|
-
attrs: any;
|
|
51
|
-
slots: {
|
|
52
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
53
|
-
};
|
|
54
|
-
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
55
|
-
}>) => vue.VNode & {
|
|
56
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
57
|
-
};
|
|
14
|
+
//#region src/components/C_ErrorSummary/index.vue.d.ts
|
|
15
|
+
declare const __VLS_export: vue.DefineComponent<ErrorSummaryProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
16
|
+
navigate: (issue: ValidationIssue) => any;
|
|
17
|
+
}, string, vue.PublicProps, Readonly<ErrorSummaryProps> & Readonly<{
|
|
18
|
+
onNavigate?: ((issue: ValidationIssue) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
limit: number;
|
|
21
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
22
|
declare const _default: typeof __VLS_export;
|
|
59
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
60
23
|
//#endregion
|
|
61
|
-
export {
|
|
24
|
+
export { ErrorSummaryProps as n, _default as t };
|
package/dist/index15.vue.d.ts
CHANGED
|
@@ -1,132 +1,61 @@
|
|
|
1
|
+
import { E as FormRecord, T as FormOption, n as FormConfig, z as SubmitEventPayload } from "./useFormConfig.js";
|
|
2
|
+
import { r as FormRenderer } from "./useFormRenderer.js";
|
|
1
3
|
import * as vue from "vue";
|
|
4
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
5
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
interface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
//#region src/components/C_FormModal/types.d.ts
|
|
7
|
+
type FormModalMode = 'create' | 'edit';
|
|
8
|
+
/**
|
|
9
|
+
* Structural editor contract. It intentionally does not depend on request-core,
|
|
10
|
+
* so any headless CRUD implementation can drive the modal.
|
|
11
|
+
*/
|
|
12
|
+
interface FormModalEditor<T extends object = FormRecord> {
|
|
13
|
+
visible: Ref<boolean>;
|
|
14
|
+
mode: Ref<FormModalMode>;
|
|
15
|
+
model: Ref<T | null>;
|
|
16
|
+
title: Ref<string>;
|
|
17
|
+
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
18
|
+
setModel(model: T): void;
|
|
19
|
+
close(): void;
|
|
20
|
+
submit(model?: T): Promise<boolean>;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/** 进入此步骤前的回调 */
|
|
29
|
-
onHighlightStarted?: (element: Element | undefined, step: GuideStep) => void;
|
|
30
|
-
/** 离开此步骤后的回调 */
|
|
31
|
-
onDeselected?: (element: Element | undefined, step: GuideStep) => void;
|
|
32
|
-
/** 是否跳过此步骤的条件 */
|
|
33
|
-
skipIf?: () => boolean;
|
|
34
|
-
}
|
|
35
|
-
/** 引导主题配置 */
|
|
36
|
-
interface GuideTheme {
|
|
37
|
-
/** 弹层背景色 */
|
|
38
|
-
popoverBgColor?: string;
|
|
39
|
-
/** 弹层文字色 */
|
|
40
|
-
popoverTextColor?: string;
|
|
41
|
-
/** 按钮主色 */
|
|
42
|
-
primaryColor?: string;
|
|
43
|
-
/** 遮罩层透明度 */
|
|
44
|
-
overlayOpacity?: number;
|
|
45
|
-
/** 弹层圆角 */
|
|
46
|
-
borderRadius?: string;
|
|
22
|
+
interface FormModalProps<T extends object = FormRecord> {
|
|
23
|
+
editor: FormModalEditor<T>;
|
|
24
|
+
options: FormOption<T>[];
|
|
25
|
+
config?: FormConfig<T>;
|
|
26
|
+
/** 当前弹窗使用的自定义字段渲染器。 */
|
|
27
|
+
renderers?: Record<string, FormRenderer>;
|
|
28
|
+
width?: number | string;
|
|
29
|
+
createText?: string;
|
|
30
|
+
saveText?: string;
|
|
31
|
+
cancelText?: string;
|
|
32
|
+
closable?: boolean;
|
|
33
|
+
maskClosable?: boolean;
|
|
34
|
+
closeOnEsc?: boolean;
|
|
47
35
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
enabled?: boolean;
|
|
52
|
-
/** 持久化 key 前缀 */
|
|
53
|
-
keyPrefix?: string;
|
|
54
|
-
}
|
|
55
|
-
/** C_Guide Props */
|
|
56
|
-
interface GuideProps {
|
|
57
|
-
/** 引导步骤 */
|
|
58
|
-
steps?: GuideStep[];
|
|
59
|
-
/** 完成按钮文字 */
|
|
60
|
-
doneBtnText?: string;
|
|
61
|
-
/** 下一步按钮文字 */
|
|
62
|
-
nextBtnText?: string;
|
|
63
|
-
/** 上一步按钮文字 */
|
|
64
|
-
prevBtnText?: string;
|
|
65
|
-
/** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
|
|
66
|
-
showSkipButton?: boolean;
|
|
67
|
-
/** 跳过按钮文字,默认“跳过引导”。 */
|
|
68
|
-
skipBtnText?: string;
|
|
69
|
-
/** 是否显示进度条 */
|
|
70
|
-
showProgress?: boolean;
|
|
71
|
-
/** 是否启用键盘导航(← → Esc) */
|
|
72
|
-
keyboard?: boolean;
|
|
73
|
-
/** 是否启用动画 */
|
|
74
|
-
animate?: boolean;
|
|
75
|
-
/** 是否允许点击遮罩关闭 */
|
|
76
|
-
allowClose?: boolean;
|
|
77
|
-
/** 自动跳过不存在或不可见的目标,默认 true。 */
|
|
78
|
-
skipMissingElements?: boolean;
|
|
79
|
-
/** 主题配置 */
|
|
80
|
-
theme?: GuideTheme;
|
|
81
|
-
/** 持久化配置 */
|
|
82
|
-
persistence?: GuidePersistence;
|
|
83
|
-
/** 弹层自定义 CSS 类 */
|
|
84
|
-
popoverClass?: string;
|
|
85
|
-
/** 是否显示触发按钮(设为 false 则仅通过 expose 的 startGuide 触发) */
|
|
86
|
-
showTrigger?: boolean;
|
|
87
|
-
/** 触发按钮的 tooltip 文字 */
|
|
88
|
-
triggerTooltip?: string;
|
|
89
|
-
/** 触发按钮图标 */
|
|
90
|
-
triggerIcon?: string;
|
|
36
|
+
interface FormModalEmits<T extends object = FormRecord> {
|
|
37
|
+
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
38
|
+
close: [];
|
|
91
39
|
}
|
|
92
40
|
//#endregion
|
|
93
|
-
//#region src/components/
|
|
94
|
-
declare const __VLS_export:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
onComplete?: (() => any) | undefined;
|
|
111
|
-
onSkip?: ((currentStep: number) => any) | undefined;
|
|
112
|
-
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
113
|
-
}>, {
|
|
114
|
-
keyboard: boolean;
|
|
115
|
-
steps: GuideStep[];
|
|
116
|
-
doneBtnText: string;
|
|
117
|
-
nextBtnText: string;
|
|
118
|
-
prevBtnText: string;
|
|
119
|
-
showSkipButton: boolean;
|
|
120
|
-
skipBtnText: string;
|
|
121
|
-
showProgress: boolean;
|
|
122
|
-
animate: boolean;
|
|
123
|
-
allowClose: boolean;
|
|
124
|
-
skipMissingElements: boolean;
|
|
125
|
-
popoverClass: string;
|
|
126
|
-
showTrigger: boolean;
|
|
127
|
-
triggerTooltip: string;
|
|
128
|
-
triggerIcon: string;
|
|
129
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
//#region src/components/C_FormModal/index.vue.d.ts
|
|
42
|
+
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<{
|
|
43
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
45
|
+
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
46
|
+
}> & (typeof globalThis extends {
|
|
47
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
48
|
+
} ? P : {});
|
|
49
|
+
expose: (exposed: {}) => void;
|
|
50
|
+
attrs: any;
|
|
51
|
+
slots: {
|
|
52
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
53
|
+
};
|
|
54
|
+
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
55
|
+
}>) => vue.VNode & {
|
|
56
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
57
|
+
};
|
|
130
58
|
declare const _default: typeof __VLS_export;
|
|
59
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
131
60
|
//#endregion
|
|
132
|
-
export {
|
|
61
|
+
export { FormModalProps as a, FormModalMode as i, FormModalEditor as n, FormModalEmits as r, _default as t };
|