@robot-admin/naive-ui-components 0.11.8 → 0.13.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 +26 -0
- package/README.md +172 -29
- package/README_EN.md +171 -28
- package/SECURITY.md +1 -0
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +67 -67
- 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 +70 -70
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_AudioPlayer.css +81 -66
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.d.ts +1 -1
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AvatarGroup.css +40 -25
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +6 -6
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +14 -14
- package/dist/C_Breadcrumb.d.cts +1 -1
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +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.css +2 -2
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +96 -78
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +52 -28
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +48 -42
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +1 -1
- package/dist/C_CollapsePanel.css +14 -14
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +14 -14
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +94 -55
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Draggable.css +48 -48
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -14
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +18 -18
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +36 -36
- package/dist/C_Form.css +49 -50
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +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_FormSearch.css +45 -45
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_FormulaEditor.css +94 -55
- package/dist/C_FormulaEditor2.cjs +2 -2
- package/dist/C_FormulaEditor2.js +2 -2
- package/dist/C_FullCalendar.css +8 -1
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +14 -14
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +14 -14
- package/dist/C_Icon2.cjs +1 -1
- package/dist/C_Icon2.js +1 -1
- package/dist/C_ImageCropper.css +22 -22
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +14 -14
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Login.css +232 -149
- 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_Markdown.css +35 -35
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_Menu.d.cts +1 -1
- package/dist/C_Menu2.cjs +1 -1
- package/dist/C_Menu2.js +1 -1
- package/dist/C_NotificationCenter.css +30 -30
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +4 -0
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_QRCode.css +8 -8
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Signature.css +14 -14
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +39 -39
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -38
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +160 -160
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +173 -174
- 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 +52 -52
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +14 -14
- package/dist/C_Theme2.cjs +1 -1
- package/dist/C_Theme2.js +1 -1
- package/dist/C_Time.css +4 -4
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +76 -58
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +51 -51
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +35 -32
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +53 -50
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_VideoPlayer.css +17 -13
- package/dist/C_VideoPlayer2.cjs +2 -2
- package/dist/C_VideoPlayer2.js +2 -2
- package/dist/C_VtableGantt.css +19 -19
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/C_WaterFall.css +19 -15
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +123 -123
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +3 -3
- package/dist/constants2.d.ts +3 -3
- package/dist/constants3.d.cts +8 -4
- package/dist/constants3.d.ts +8 -4
- package/dist/constants4.d.cts +6 -6
- package/dist/constants4.d.ts +6 -6
- 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 -49
- package/dist/index.d.ts +51 -49
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +74 -69
- package/dist/index.vue.d.ts +74 -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 +54 -69
- package/dist/index12.vue.d.cts +54 -69
- package/dist/index12.vue.d.ts +52 -58
- package/dist/index13.vue.d.cts +52 -58
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index14.vue.d.cts +1 -1
- package/dist/index14.vue.d.ts +14 -47
- package/dist/index15.vue.d.cts +14 -47
- package/dist/index16.vue.d.ts +15 -12
- package/dist/index17.vue.d.cts +15 -12
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- 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/index24.vue.d.cts +3 -3
- package/dist/index24.vue.d.ts +3 -3
- package/dist/index25.vue.d.cts +1 -1
- package/dist/index25.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +5 -5
- package/dist/index26.vue.d.ts +5 -5
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- 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 +2 -2
- package/dist/mapUtils.d.ts +2 -2
- 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 +1735 -1400
- package/dist/useCalendarEvents.d.cts +23 -18
- package/dist/useCalendarEvents.d.ts +23 -18
- package/dist/useCollapsePanel.d.cts +4 -3
- package/dist/useCollapsePanel.d.ts +4 -3
- package/dist/useCropperCore.d.cts +32 -17
- package/dist/useCropperCore.d.ts +32 -17
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useDynamicFormState.d.cts +7 -2
- package/dist/useDynamicFormState.d.ts +7 -2
- package/dist/useEdgeInteraction.d.cts +20 -19
- package/dist/useEdgeInteraction.d.ts +20 -19
- package/dist/useFullscreen.d.cts +6 -6
- package/dist/useFullscreen.d.ts +6 -6
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +5 -4
- package/dist/useQRCode.d.ts +5 -4
- package/dist/useSearchState.d.cts +9 -9
- package/dist/useSearchState.d.ts +9 -9
- package/dist/useSignatureHistory.d.cts +18 -10
- package/dist/useSignatureHistory.d.ts +18 -10
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +12 -5
- package/dist/useTableQuery.d.ts +12 -5
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +6 -3
- package/dist/useTimeSelection.d.ts +6 -3
- package/dist/useTreeOperations.d.cts +8 -8
- package/dist/useTreeOperations.d.ts +8 -8
- package/dist/useWorkflowValidation.d.cts +6 -4
- package/dist/useWorkflowValidation.d.ts +6 -4
- package/dist/verification.d.cts +71 -6
- package/dist/verification.d.ts +71 -6
- package/package.json +5 -3
- package/dist/types.d.ts +0 -58
- package/dist/types2.d.cts +0 -58
package/dist/index11.vue.d.cts
CHANGED
|
@@ -1,88 +1,79 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** 图标(Iconify 图标名) */
|
|
15
|
-
icon?: string;
|
|
16
|
-
/** 快捷键标注文字(仅展示,不绑定) */
|
|
17
|
-
shortcut?: string;
|
|
18
|
-
/** 是否禁用 */
|
|
3
|
+
//#region src/components/C_Date/types.d.ts
|
|
4
|
+
type DatePickerMode = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'smart-range';
|
|
5
|
+
type DateValue = string | null;
|
|
6
|
+
type DateRangeValue = [string, string] | null;
|
|
7
|
+
type DateModelValue = DateValue | DateRangeValue;
|
|
8
|
+
interface DateProps {
|
|
9
|
+
modelValue?: DateModelValue;
|
|
10
|
+
mode?: DatePickerMode;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
startPlaceholder?: string;
|
|
13
|
+
endPlaceholder?: string;
|
|
19
14
|
disabled?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
disabledBeforeToday?: boolean;
|
|
16
|
+
disabledAfterToday?: boolean;
|
|
17
|
+
valueFormat?: string;
|
|
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
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
autoClose?: boolean;
|
|
43
|
-
/** 是否禁用整个菜单 */
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
/** 自定义 z-index */
|
|
46
|
-
zIndex?: number;
|
|
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];
|
|
39
|
+
}
|
|
40
|
+
interface DateExpose {
|
|
41
|
+
clearAll: () => void;
|
|
47
42
|
}
|
|
48
|
-
/** 默认 Props */
|
|
49
|
-
declare const DEFAULT_CONTEXT_MENU_PROPS: {
|
|
50
|
-
minWidth: number;
|
|
51
|
-
maxWidth: number;
|
|
52
|
-
subMenuPlacement: "right";
|
|
53
|
-
autoClose: boolean;
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
zIndex: number;
|
|
56
|
-
};
|
|
57
43
|
//#endregion
|
|
58
|
-
//#region src/components/
|
|
59
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}) => any) | undefined;
|
|
76
|
-
onClose?: (() => any) | undefined;
|
|
44
|
+
//#region src/components/C_Date/index.vue.d.ts
|
|
45
|
+
declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
46
|
+
"update:modelValue": (value: DateModelValue) => any;
|
|
47
|
+
change: (value: DateModelValue) => any;
|
|
48
|
+
"update:singleDate": (value: DateValue) => any;
|
|
49
|
+
"update:singleDateTime": (value: DateValue) => any;
|
|
50
|
+
"update:dateRange": (value: DateRangeValue) => any;
|
|
51
|
+
"update:dateTimeRange": (value: DateRangeValue) => any;
|
|
52
|
+
"update:smartRange": (value: DateRangeValue) => any;
|
|
53
|
+
}, string, vue.PublicProps, Readonly<DateProps> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((value: DateModelValue) => any) | undefined;
|
|
55
|
+
onChange?: ((value: DateModelValue) => any) | undefined;
|
|
56
|
+
"onUpdate:singleDate"?: ((value: DateValue) => any) | undefined;
|
|
57
|
+
"onUpdate:singleDateTime"?: ((value: DateValue) => any) | undefined;
|
|
58
|
+
"onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
59
|
+
"onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
60
|
+
"onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
77
61
|
}>, {
|
|
78
|
-
|
|
62
|
+
mode: DatePickerMode;
|
|
79
63
|
disabled: boolean;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
64
|
+
startPlaceholder: string;
|
|
65
|
+
endPlaceholder: string;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
disabledBeforeToday: boolean;
|
|
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;
|
|
85
76
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
77
|
declare const _default: typeof __VLS_export;
|
|
87
78
|
//#endregion
|
|
88
|
-
export {
|
|
79
|
+
export { DatePickerMode as a, DateValue as c, DateModelValue as i, DateEmits as n, DateProps as o, DateExpose as r, DateRangeValue as s, _default as t };
|
package/dist/index11.vue.d.ts
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];
|
|
39
|
-
}
|
|
40
|
-
interface DateExpose {
|
|
41
|
-
clearAll: () => void;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
42
20
|
}
|
|
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
|
-
|
|
55
|
+
theme: "light" | "dark";
|
|
56
|
+
modelValue: string;
|
|
57
|
+
readonly: boolean;
|
|
58
|
+
height: number;
|
|
63
59
|
disabled: boolean;
|
|
64
|
-
|
|
65
|
-
startPlaceholder: string;
|
|
66
|
-
endPlaceholder: string;
|
|
67
|
-
disabledBeforeToday: boolean;
|
|
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
|
+
placeholder: string;
|
|
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.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];
|
|
39
|
-
}
|
|
40
|
-
interface DateExpose {
|
|
41
|
-
clearAll: () => void;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
height?: number;
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
42
20
|
}
|
|
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
|
-
|
|
55
|
+
theme: "light" | "dark";
|
|
56
|
+
modelValue: string;
|
|
57
|
+
readonly: boolean;
|
|
58
|
+
height: number;
|
|
63
59
|
disabled: boolean;
|
|
64
|
-
|
|
65
|
-
startPlaceholder: string;
|
|
66
|
-
endPlaceholder: string;
|
|
67
|
-
disabledBeforeToday: boolean;
|
|
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
|
+
placeholder: string;
|
|
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
|
-
disabled: boolean;
|
|
59
|
-
readonly: boolean;
|
|
60
|
-
theme: "light" | "dark";
|
|
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 };
|