@kp-ui/lowcode-pc 1.0.0-alpha.1 → 1.0.0-alpha.3
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/assets/CustomerModal.mjs +4 -91
- package/assets/CustomerModal.mjs.map +1 -0
- package/assets/bpmn-editor-widget.mjs +1 -0
- package/assets/bpmn-editor-widget.mjs.map +1 -0
- package/assets/button-list-widget.mjs +1 -0
- package/assets/button-list-widget.mjs.map +1 -0
- package/assets/button-widget.mjs +1 -0
- package/assets/button-widget.mjs.map +1 -0
- package/assets/cascader-widget.mjs +1 -0
- package/assets/cascader-widget.mjs.map +1 -0
- package/assets/checkbox-widget.mjs +1 -0
- package/assets/checkbox-widget.mjs.map +1 -0
- package/assets/code-editor-widget.mjs +1 -0
- package/assets/code-editor-widget.mjs.map +1 -0
- package/assets/color-widget.mjs +1 -0
- package/assets/color-widget.mjs.map +1 -0
- package/assets/data-table-widget.mjs +1 -0
- package/assets/data-table-widget.mjs.map +1 -0
- package/assets/date-range-widget.mjs +1 -0
- package/assets/date-range-widget.mjs.map +1 -0
- package/assets/date-widget.mjs +1 -0
- package/assets/date-widget.mjs.map +1 -0
- package/assets/divider-widget.mjs +1 -0
- package/assets/divider-widget.mjs.map +1 -0
- package/assets/diy-compontent-widget.mjs +1 -0
- package/assets/diy-compontent-widget.mjs.map +1 -0
- package/assets/dropdown-widget.mjs +1 -0
- package/assets/dropdown-widget.mjs.map +1 -0
- package/assets/en-US.mjs +1 -0
- package/assets/en-US.mjs.map +1 -0
- package/assets/en-US_extension.mjs +1 -0
- package/assets/en-US_extension.mjs.map +1 -0
- package/assets/en-US_render.mjs +1 -0
- package/assets/en-US_render.mjs.map +1 -0
- package/assets/file-upload-widget.mjs +1 -0
- package/assets/file-upload-widget.mjs.map +1 -0
- package/assets/form-item-wrapper.mjs +1 -0
- package/assets/form-item-wrapper.mjs.map +1 -0
- package/assets/grid-col-widget.mjs +1 -0
- package/assets/grid-col-widget.mjs.map +1 -0
- package/assets/grid-sub-form-widget.mjs +1 -0
- package/assets/grid-sub-form-widget.mjs.map +1 -0
- package/assets/grid-widget.mjs +1 -0
- package/assets/grid-widget.mjs.map +1 -0
- package/assets/html-text-widget.mjs +1 -0
- package/assets/html-text-widget.mjs.map +1 -0
- package/assets/input-widget.mjs +1 -0
- package/assets/input-widget.mjs.map +1 -0
- package/assets/install.mjs +200 -43
- package/assets/install.mjs.map +1 -0
- package/assets/number-widget.mjs +1 -0
- package/assets/number-widget.mjs.map +1 -0
- package/assets/radio-widget.mjs +1 -0
- package/assets/radio-widget.mjs.map +1 -0
- package/assets/rate-widget.mjs +1 -0
- package/assets/rate-widget.mjs.map +1 -0
- package/assets/rich-editor-widget.mjs +1 -0
- package/assets/rich-editor-widget.mjs.map +1 -0
- package/assets/select-widget.mjs +1 -0
- package/assets/select-widget.mjs.map +1 -0
- package/assets/slider-widget.mjs +1 -0
- package/assets/slider-widget.mjs.map +1 -0
- package/assets/static-text-widget.mjs +1 -0
- package/assets/static-text-widget.mjs.map +1 -0
- package/assets/switch-widget.mjs +1 -0
- package/assets/switch-widget.mjs.map +1 -0
- package/assets/tab-widget.mjs +1 -0
- package/assets/tab-widget.mjs.map +1 -0
- package/assets/textarea-widget.mjs +1 -0
- package/assets/textarea-widget.mjs.map +1 -0
- package/assets/time-range-widget.mjs +1 -0
- package/assets/time-range-widget.mjs.map +1 -0
- package/assets/time-widget.mjs +1 -0
- package/assets/time-widget.mjs.map +1 -0
- package/assets/tree-widget.mjs +1 -0
- package/assets/tree-widget.mjs.map +1 -0
- package/assets/treeSelect-widget.mjs +1 -0
- package/assets/treeSelect-widget.mjs.map +1 -0
- package/assets/useCustomerModal.mjs +1 -0
- package/assets/useCustomerModal.mjs.map +1 -0
- package/assets/useField.mjs +1 -0
- package/assets/useField.mjs.map +1 -0
- package/assets/useSelect.mjs +1 -0
- package/assets/useSelect.mjs.map +1 -0
- package/assets/vf-box-widget.mjs +1 -0
- package/assets/vf-box-widget.mjs.map +1 -0
- package/assets/vf-collapse-widget.mjs +1 -0
- package/assets/vf-collapse-widget.mjs.map +1 -0
- package/assets/vf-dialog-widget.mjs +1 -0
- package/assets/vf-dialog-widget.mjs.map +1 -0
- package/assets/vue-render-widget.mjs +1 -0
- package/assets/vue-render-widget.mjs.map +1 -0
- package/assets/zh-CN.mjs +1 -0
- package/assets/zh-CN.mjs.map +1 -0
- package/assets/zh-CN_extension.mjs +1 -0
- package/assets/zh-CN_extension.mjs.map +1 -0
- package/assets/zh-CN_render.mjs +1 -0
- package/assets/zh-CN_render.mjs.map +1 -0
- package/index.js +7 -2
- package/index.js.map +1 -0
- package/package.json +6 -3
- package/types/index.d.ts +1 -0
- package/types/pc/install.d.ts +9 -0
- package/types/core/src/components/DragBtn.vue.d.ts +0 -7
- package/types/core/src/components/HttpEditor.vue.d.ts +0 -46
- package/types/core/src/components/common/EventItemEditor.vue.d.ts +0 -12
- package/types/core/src/components/common/LowcodeI18nProvider.vue.d.ts +0 -17
- package/types/core/src/components/common/RenderWidgetList.vue.d.ts +0 -16
- package/types/core/src/components/common/desginer/FormWidgetContainer.vue.d.ts +0 -6
- package/types/core/src/components/common/desginer/RenderDesignerWrapper.vue.d.ts +0 -2
- package/types/core/src/components/common/desginer/WidgetWrapper.vue.d.ts +0 -30
- package/types/core/src/components/common/render/ActionButtonListDialog.vue.d.ts +0 -345
- package/types/core/src/components/common/render/Debugger.vue.d.ts +0 -10
- package/types/core/src/components/common/render/LowcodeRenderProvider.vue.d.ts +0 -26
- package/types/core/src/components/common/render/index.d.ts +0 -6
- package/types/core/src/components/common/render/useFormContext.d.ts +0 -148
- package/types/core/src/components/common/render/useFormDataProcessor.d.ts +0 -10
- package/types/core/src/components/contextMenu/WidgetContextMenu.vue.d.ts +0 -21
- package/types/core/src/components/contextMenu/useWidgetContextMenu.d.ts +0 -25
- package/types/core/src/components/index.d.ts +0 -17
- package/types/core/src/components/layout/LowcodeLayout.vue.d.ts +0 -24
- package/types/core/src/components/property-editor/index.d.ts +0 -3
- package/types/core/src/components/property-editor/propertyRegister.d.ts +0 -199
- package/types/core/src/components/property-editor/useEditor.d.ts +0 -19
- package/types/core/src/components/setting-plane/WidgetSettingPlane.vue.d.ts +0 -2
- package/types/core/src/components/setting-plane/form-crud-setting.vue.d.ts +0 -10
- package/types/core/src/components/setting-plane/form-setting.vue.d.ts +0 -332
- package/types/core/src/components/setting-plane/index.d.ts +0 -3
- package/types/core/src/components/setting-plane/index.vue.d.ts +0 -675
- package/types/core/src/components/settings/PanelItemDrag.vue.d.ts +0 -24
- package/types/core/src/components/settings/WidgetPanel.vue.d.ts +0 -20
- package/types/core/src/components/toolbar-panel/index.vue.d.ts +0 -689
- package/types/core/src/constants/EditorTypeEnum.d.ts +0 -151
- package/types/core/src/constants/LayoutTypeEnum.d.ts +0 -5
- package/types/core/src/constants/WidgetTypeEnum.d.ts +0 -65
- package/types/core/src/constants/index.d.ts +0 -12
- package/types/core/src/hooks/index.d.ts +0 -7
- package/types/core/src/hooks/useAppRef.d.ts +0 -9
- package/types/core/src/hooks/useDataHttp.d.ts +0 -207
- package/types/core/src/hooks/useDesigner.d.ts +0 -22
- package/types/core/src/hooks/useField.d.ts +0 -95
- package/types/core/src/hooks/useFormValidation.d.ts +0 -54
- package/types/core/src/hooks/useInputEvent.d.ts +0 -10
- package/types/core/src/hooks/useLowcode.d.ts +0 -22
- package/types/core/src/hooks/useNativeDragAndDrop.d.ts +0 -34
- package/types/core/src/hooks/useWidget.d.ts +0 -5
- package/types/core/src/lang/en-US.d.ts +0 -564
- package/types/core/src/lang/en-US_extension.d.ts +0 -23
- package/types/core/src/lang/en-US_render.d.ts +0 -38
- package/types/core/src/lang/zh-CN.d.ts +0 -584
- package/types/core/src/lang/zh-CN_extension.d.ts +0 -23
- package/types/core/src/lang/zh-CN_render.d.ts +0 -38
- package/types/core/src/types/button.d.ts +0 -17
- package/types/core/src/types/designer.d.ts +0 -74
- package/types/core/src/types/fileObject.d.ts +0 -7
- package/types/core/src/types/global.d.ts +0 -20
- package/types/core/src/types/index.d.ts +0 -8
- package/types/core/src/types/rowSelectionType.d.ts +0 -12
- package/types/core/src/types/schema.d.ts +0 -169
- package/types/core/src/types/widgetProps.d.ts +0 -8
- package/types/core/src/utils/emitter.d.ts +0 -17
- package/types/core/src/utils/event-bus.d.ts +0 -10
- package/types/core/src/utils/file.d.ts +0 -0
- package/types/core/src/utils/format.d.ts +0 -46
- package/types/core/src/utils/getFileName.d.ts +0 -1
- package/types/core/src/utils/i18n.d.ts +0 -27
- package/types/core/src/utils/index.d.ts +0 -7
- package/types/core/src/utils/insertAssetsToBody.d.ts +0 -3
- package/types/core/src/utils/request/handleAxiosError.d.ts +0 -11
- package/types/core/src/utils/request/http.d.ts +0 -4
- package/types/core/src/utils/smart-vue-i18n/index.d.ts +0 -11
- package/types/core/src/utils/transformWidgetList.d.ts +0 -2
- package/types/core/src/utils/useEmitter.d.ts +0 -31
- package/types/core/src/utils/util.d.ts +0 -81
- package/types/core/src/utils/validators.d.ts +0 -25
- package/types/pc/src/components/desginer/form-widget/container-widget/data-table-widget.vue.d.ts +0 -77
- package/types/pc/src/components/desginer/form-widget/container-widget/grid-col-widget.vue.d.ts +0 -16
- package/types/pc/src/components/desginer/form-widget/container-widget/grid-sub-form-widget.vue.d.ts +0 -5
- package/types/pc/src/components/desginer/form-widget/container-widget/grid-widget.vue.d.ts +0 -5
- package/types/pc/src/components/desginer/form-widget/container-widget/index.d.ts +0 -153
- package/types/pc/src/components/desginer/form-widget/container-widget/tab-widget.vue.d.ts +0 -5
- package/types/pc/src/components/desginer/form-widget/container-widget/useTableWidget.d.ts +0 -274
- package/types/pc/src/components/desginer/form-widget/container-widget/vf-box-widget.vue.d.ts +0 -32
- package/types/pc/src/components/desginer/form-widget/container-widget/vf-collapse-widget.vue.d.ts +0 -33
- package/types/pc/src/components/desginer/form-widget/container-widget/vf-dialog-widget.vue.d.ts +0 -4
- package/types/pc/src/components/desginer/form-widget/index.vue.d.ts +0 -171
- package/types/pc/src/components/desginer/index.vue.d.ts +0 -52
- package/types/pc/src/components/desginer/widget-panel/advanced/bpmn-editor.d.ts +0 -13
- package/types/pc/src/components/desginer/widget-panel/advanced/cascader.d.ts +0 -31
- package/types/pc/src/components/desginer/widget-panel/advanced/code-editor.d.ts +0 -18
- package/types/pc/src/components/desginer/widget-panel/advanced/data-table.d.ts +0 -52
- package/types/pc/src/components/desginer/widget-panel/advanced/diy-compontent.d.ts +0 -10
- package/types/pc/src/components/desginer/widget-panel/advanced/file-upload.d.ts +0 -24
- package/types/pc/src/components/desginer/widget-panel/advanced/index.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/advanced/rich-editor.d.ts +0 -22
- package/types/pc/src/components/desginer/widget-panel/advanced/tree-select.d.ts +0 -33
- package/types/pc/src/components/desginer/widget-panel/advanced/tree.d.ts +0 -27
- package/types/pc/src/components/desginer/widget-panel/advancedFieldsEnums.d.ts +0 -11
- package/types/pc/src/components/desginer/widget-panel/basicFields/button.d.ts +0 -17
- package/types/pc/src/components/desginer/widget-panel/basicFields/buttonList.d.ts +0 -22
- package/types/pc/src/components/desginer/widget-panel/basicFields/checkbox.d.ts +0 -27
- package/types/pc/src/components/desginer/widget-panel/basicFields/color.d.ts +0 -16
- package/types/pc/src/components/desginer/widget-panel/basicFields/date.d.ts +0 -29
- package/types/pc/src/components/desginer/widget-panel/basicFields/dateRange.d.ts +0 -29
- package/types/pc/src/components/desginer/widget-panel/basicFields/divider.d.ts +0 -12
- package/types/pc/src/components/desginer/widget-panel/basicFields/dropdown.d.ts +0 -18
- package/types/pc/src/components/desginer/widget-panel/basicFields/htmlText.d.ts +0 -11
- package/types/pc/src/components/desginer/widget-panel/basicFields/input.d.ts +0 -31
- package/types/pc/src/components/desginer/widget-panel/basicFields/number.d.ts +0 -26
- package/types/pc/src/components/desginer/widget-panel/basicFields/radio.d.ts +0 -38
- package/types/pc/src/components/desginer/widget-panel/basicFields/rate.d.ts +0 -23
- package/types/pc/src/components/desginer/widget-panel/basicFields/select.d.ts +0 -35
- package/types/pc/src/components/desginer/widget-panel/basicFields/slider.d.ts +0 -25
- package/types/pc/src/components/desginer/widget-panel/basicFields/staticText.d.ts +0 -11
- package/types/pc/src/components/desginer/widget-panel/basicFields/switch.d.ts +0 -19
- package/types/pc/src/components/desginer/widget-panel/basicFields/textarea.d.ts +0 -35
- package/types/pc/src/components/desginer/widget-panel/basicFields/time.d.ts +0 -26
- package/types/pc/src/components/desginer/widget-panel/basicFields/timeRange.d.ts +0 -27
- package/types/pc/src/components/desginer/widget-panel/basicFieldsEnums.d.ts +0 -38
- package/types/pc/src/components/desginer/widget-panel/containers/grid-col.d.ts +0 -17
- package/types/pc/src/components/desginer/widget-panel/containers/grid-sub-form.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/containers/grid.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/containers/index.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/containers/tab-pane.d.ts +0 -23
- package/types/pc/src/components/desginer/widget-panel/containers/tab.d.ts +0 -9
- package/types/pc/src/components/desginer/widget-panel/containers/vf-box.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/containers/vf-collapse.d.ts +0 -13
- package/types/pc/src/components/desginer/widget-panel/containers/vf-dialog.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/containersEnums.d.ts +0 -1
- package/types/pc/src/components/desginer/widget-panel/index.vue.d.ts +0 -8
- package/types/pc/src/components/desginer/widget-panel/widgetsConfig.d.ts +0 -28
- package/types/pc/src/components/field-widget/hooks/useSelect.d.ts +0 -72
- package/types/pc/src/components/field-widget/index.d.ts +0 -3
- package/types/pc/src/components/field-widget/useField.d.ts +0 -95
- package/types/pc/src/components/form-render/RenderWigetList.vue.d.ts +0 -27
- package/types/pc/src/components/form-render/container-items/data-table-widget.vue.d.ts +0 -95
- package/types/pc/src/components/form-render/container-items/grid-col-widget.vue.d.ts +0 -36
- package/types/pc/src/components/form-render/container-items/grid-sub-form-widget.vue.d.ts +0 -39
- package/types/pc/src/components/form-render/container-items/grid-widget.vue.d.ts +0 -35
- package/types/pc/src/components/form-render/container-items/index.d.ts +0 -255
- package/types/pc/src/components/form-render/container-items/tab-widget.vue.d.ts +0 -5
- package/types/pc/src/components/form-render/container-items/vf-box-widget.vue.d.ts +0 -32
- package/types/pc/src/components/form-render/container-items/vf-collapse-widget.vue.d.ts +0 -33
- package/types/pc/src/components/index.d.ts +0 -4
- package/types/pc/src/components/public/ActionButtonListRender.vue.d.ts +0 -121
- package/types/pc/src/components/public/ConfigView/CustomPageRender.vue.d.ts +0 -16
- package/types/pc/src/components/public/CustomerModal/CustomerModal.vue.d.ts +0 -14
- package/types/pc/src/components/public/CustomerModal/customerModal.d.ts +0 -6
- package/types/pc/src/components/public/CustomerModal/useCustomerModal.d.ts +0 -7
- package/types/pc/src/components/public/DynamicDialog.vue.d.ts +0 -97
- package/types/pc/src/components/render/index.vue.d.ts +0 -82
- package/types/pc/src/components/render/useRenderWidget.d.ts +0 -3
- package/types/pc/src/designer.d.ts +0 -233
- package/types/pc/src/hooks/useLowcode.d.ts +0 -21
- package/types/pc/src/hooks/useWidget.d.ts +0 -7
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { FormConfig, Widget } from '../../../..';
|
|
2
|
-
import { routerReloadStatus } from '../../../../../tmgc2-share/index.ts';
|
|
3
|
-
export interface FormRenderProps {
|
|
4
|
-
vfCtx?: Record<string, any>;
|
|
5
|
-
formJson?: any;
|
|
6
|
-
formData?: Record<string, any>;
|
|
7
|
-
optionData?: Record<string, any>;
|
|
8
|
-
disabledMode?: boolean;
|
|
9
|
-
renderConfig?: {
|
|
10
|
-
languageName?: string;
|
|
11
|
-
};
|
|
12
|
-
parentForm?: any;
|
|
13
|
-
dynamicCreation?: boolean;
|
|
14
|
-
debug?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 表单上下文配置
|
|
18
|
-
*/
|
|
19
|
-
export interface FormContextOptions {
|
|
20
|
-
props: FormRenderProps;
|
|
21
|
-
renderForm: any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* 创建表单上下文
|
|
25
|
-
* @param options 表单上下文配置
|
|
26
|
-
* @returns 表单上下文
|
|
27
|
-
*/
|
|
28
|
-
export declare const useFormContext: ({ renderForm, props }: FormContextOptions) => {
|
|
29
|
-
context: import('vue').ComputedRef<{
|
|
30
|
-
proxy: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null | undefined;
|
|
31
|
-
$route?: import('vue-router').RouteLocationNormalizedLoaded | undefined;
|
|
32
|
-
$router?: import('vue-router').Router | undefined;
|
|
33
|
-
$pinia?: import('pinia').Pinia | undefined;
|
|
34
|
-
_pStores?: Record<string, import('pinia').StoreGeneric>;
|
|
35
|
-
$openCustomerModal?: ((ops: {
|
|
36
|
-
type: string;
|
|
37
|
-
formCode: string;
|
|
38
|
-
title: string;
|
|
39
|
-
} & Record<string, any>, app: any) => void) | undefined;
|
|
40
|
-
instance: import('vue').ComponentInternalInstance | null;
|
|
41
|
-
exposed: Record<string, any>;
|
|
42
|
-
}>;
|
|
43
|
-
i18nt: (key: string, obj?: Record<string, any>) => string;
|
|
44
|
-
goBack: (reloadStatus?: routerReloadStatus, cb?: () => void) => void;
|
|
45
|
-
reload: () => void;
|
|
46
|
-
formValidator: {
|
|
47
|
-
validate: () => Promise<boolean>;
|
|
48
|
-
validateField: (fieldName: string) => Promise<boolean>;
|
|
49
|
-
resetValidation: () => void;
|
|
50
|
-
clearValidate: () => void;
|
|
51
|
-
validationErrors: import('vue').Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
52
|
-
getFieldValidationRules: (widget: Widget) => import('../../../..').ValidationRule[];
|
|
53
|
-
};
|
|
54
|
-
getFieldValue: (field: string) => any;
|
|
55
|
-
resetValidation: () => void;
|
|
56
|
-
clearValidate: () => void;
|
|
57
|
-
getVfCtx: () => Record<string, any> | undefined;
|
|
58
|
-
getParentFormRef: () => any;
|
|
59
|
-
getFormRef: () => any;
|
|
60
|
-
getWidgetRef: (widgetName: any, showError?: boolean) => any;
|
|
61
|
-
showDialog: (dialogName: any, formData?: {}, extraData?: {}) => void;
|
|
62
|
-
getFormData: () => Record<string, any>;
|
|
63
|
-
getChildFormRef: () => any;
|
|
64
|
-
setFormData: (data: Record<string, any>) => void;
|
|
65
|
-
setReadMode: (newVal: boolean) => void;
|
|
66
|
-
setFormJson: (json: any) => Promise<void>;
|
|
67
|
-
setLoading: (loading: boolean) => void;
|
|
68
|
-
onFormDetail: () => Promise<import('axios').AxiosResponse<any, any, {}> | undefined>;
|
|
69
|
-
onFormUpdate: () => Promise<import('axios').AxiosResponse<any, any, {}> | undefined>;
|
|
70
|
-
formDataModel: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
71
|
-
isLoading: import('vue').Ref<boolean, boolean>;
|
|
72
|
-
vfCtx: Record<string, any> | undefined;
|
|
73
|
-
formConfig: import('vue').ComputedRef<FormConfig>;
|
|
74
|
-
dynamicDialogRef: Readonly<import('vue').ShallowRef<any>>;
|
|
75
|
-
setChildFormRef: (chid: any) => void;
|
|
76
|
-
setDialogOrDrawerRef: (ddRef: any) => void;
|
|
77
|
-
formWidgetId: symbol;
|
|
78
|
-
registerToRefList: (widgetName?: symbol | string) => void;
|
|
79
|
-
dialogOrDrawerRef: import('vue').Ref<any, any>;
|
|
80
|
-
emitter: {
|
|
81
|
-
vfEvents: import('vue').Ref<import('../../../..').EventsMap, import('../../../..').EventsMap>;
|
|
82
|
-
editEventHandler: (eventName: string, eventParams: any[], mode: string) => void;
|
|
83
|
-
onChangeEditEventHandler: (params: import('../../../..').EditEventHandlerParams) => void;
|
|
84
|
-
emit$: <T = any>(eventName: string, data: T) => void;
|
|
85
|
-
on$: <T = any>(eventName: string, fn: import('../../../..').EventHandler<T>) => void;
|
|
86
|
-
off$: <T = any>(eventName: string, fn?: import('../../../..').EventHandler<T>) => void;
|
|
87
|
-
dispatch: (componentName: string, eventName: string, params: any) => void;
|
|
88
|
-
broadcast: (componentName: string, eventName: string, params: any) => void;
|
|
89
|
-
};
|
|
90
|
-
formJsonObj: import('vue').Ref<any, any>;
|
|
91
|
-
readModeFlag: import('vue').Ref<any, any>;
|
|
92
|
-
widgetRefList: import('vue').Ref<Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>, Map<string, any> | (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>)>;
|
|
93
|
-
widgetList: import('vue').ComputedRef<any>;
|
|
94
|
-
labelPosition: import('vue').ComputedRef<"inline" | "horizontal" | "vertical">;
|
|
95
|
-
labelWidth: import('vue').ComputedRef<string>;
|
|
96
|
-
customClass: import('vue').ComputedRef<string[]>;
|
|
97
|
-
dialogProps: import('vue').Ref<{}, {}>;
|
|
98
|
-
expose: {
|
|
99
|
-
context: import('vue').ComputedRef<{
|
|
100
|
-
proxy: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null | undefined;
|
|
101
|
-
$route?: import('vue-router').RouteLocationNormalizedLoaded | undefined;
|
|
102
|
-
$router?: import('vue-router').Router | undefined;
|
|
103
|
-
$pinia?: import('pinia').Pinia | undefined;
|
|
104
|
-
_pStores?: Record<string, import('pinia').StoreGeneric>;
|
|
105
|
-
$openCustomerModal?: ((ops: {
|
|
106
|
-
type: string;
|
|
107
|
-
formCode: string;
|
|
108
|
-
title: string;
|
|
109
|
-
} & Record<string, any>, app: any) => void) | undefined;
|
|
110
|
-
instance: import('vue').ComponentInternalInstance | null;
|
|
111
|
-
exposed: Record<string, any>;
|
|
112
|
-
}>;
|
|
113
|
-
i18nt: (key: string, obj?: Record<string, any>) => string;
|
|
114
|
-
goBack: (reloadStatus?: routerReloadStatus, cb?: () => void) => void;
|
|
115
|
-
reload: () => void;
|
|
116
|
-
formValidator: {
|
|
117
|
-
validate: () => Promise<boolean>;
|
|
118
|
-
validateField: (fieldName: string) => Promise<boolean>;
|
|
119
|
-
resetValidation: () => void;
|
|
120
|
-
clearValidate: () => void;
|
|
121
|
-
validationErrors: import('vue').Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
122
|
-
getFieldValidationRules: (widget: Widget) => import('../../../..').ValidationRule[];
|
|
123
|
-
};
|
|
124
|
-
getFieldValue: (field: string) => any;
|
|
125
|
-
resetValidation: () => void;
|
|
126
|
-
clearValidate: () => void;
|
|
127
|
-
getVfCtx: () => Record<string, any> | undefined;
|
|
128
|
-
getParentFormRef: () => any;
|
|
129
|
-
getFormRef: () => any;
|
|
130
|
-
getWidgetRef: (widgetName: any, showError?: boolean) => any;
|
|
131
|
-
showDialog: (dialogName: any, formData?: {}, extraData?: {}) => void;
|
|
132
|
-
getFormData: () => Record<string, any>;
|
|
133
|
-
getChildFormRef: () => any;
|
|
134
|
-
setFormData: (data: Record<string, any>) => void;
|
|
135
|
-
setReadMode: (newVal: boolean) => void;
|
|
136
|
-
setFormJson: (json: any) => Promise<void>;
|
|
137
|
-
setLoading: (loading: boolean) => void;
|
|
138
|
-
onFormDetail: () => Promise<import('axios').AxiosResponse<any, any, {}> | undefined>;
|
|
139
|
-
onFormUpdate: () => Promise<import('axios').AxiosResponse<any, any, {}> | undefined>;
|
|
140
|
-
formDataModel: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
141
|
-
isLoading: import('vue').Ref<boolean, boolean>;
|
|
142
|
-
vfCtx: Record<string, any> | undefined;
|
|
143
|
-
formConfig: import('vue').ComputedRef<FormConfig>;
|
|
144
|
-
dynamicDialogRef: Readonly<import('vue').ShallowRef<any>>;
|
|
145
|
-
setChildFormRef: (chid: any) => void;
|
|
146
|
-
setDialogOrDrawerRef: (ddRef: any) => void;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Widget } from '../../../types/schema';
|
|
2
|
-
/**
|
|
3
|
-
* 创建表单数据处理器
|
|
4
|
-
* @param formDataModel 表单数据模型引用
|
|
5
|
-
* @returns 表单数据处理器
|
|
6
|
-
*/
|
|
7
|
-
export declare const useFormDataProcessor: (formDataModel: any) => {
|
|
8
|
-
buildFormModel: (widgetList: Widget[], formData?: Record<string, any>) => Record<string, any>;
|
|
9
|
-
buildDataFromWidget: (widget: Widget<any>, formData?: Record<string, any>) => Record<string, any>;
|
|
10
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Widget } from '../../types/schema';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
widget: Widget | null;
|
|
4
|
-
index: number;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
parentWidget?: any;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_PublicProps = {
|
|
11
|
-
'list'?: Widget[];
|
|
12
|
-
} & __VLS_Props;
|
|
13
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
"update:list": (value: Widget<any>[]) => any;
|
|
15
|
-
} & {
|
|
16
|
-
"update:visible": (visible: boolean) => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
19
|
-
"onUpdate:list"?: ((value: Widget<any>[]) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Component, Ref } from 'vue';
|
|
2
|
-
import { Widget } from '../../types/schema';
|
|
3
|
-
export interface MenuItem {
|
|
4
|
-
key: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
icon?: Component;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
divider?: boolean;
|
|
9
|
-
children?: MenuItem[];
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function useWidgetContextMenu(props: {
|
|
13
|
-
widget: Widget;
|
|
14
|
-
index: number;
|
|
15
|
-
parentWidget?: Widget;
|
|
16
|
-
onClose: () => void;
|
|
17
|
-
list: Ref<Widget[]>;
|
|
18
|
-
}): {
|
|
19
|
-
menuConfigs: import('vue').ComputedRef<MenuItem[]>;
|
|
20
|
-
moveUpWidget: () => void;
|
|
21
|
-
moveDownWidget: () => void;
|
|
22
|
-
cloneWidget: () => void;
|
|
23
|
-
removeWidget: () => void;
|
|
24
|
-
selectParentWidget: () => void;
|
|
25
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { default as PanelItemDrag } from './settings/PanelItemDrag.vue';
|
|
2
|
-
export { default as WidgetPanel } from './settings/WidgetPanel.vue';
|
|
3
|
-
export { default as LowcodeLayout } from './layout/LowcodeLayout.vue';
|
|
4
|
-
export { default as ToolbarPanel } from './toolbar-panel/index.vue';
|
|
5
|
-
export { default as WidgetContextMenu } from './contextMenu/WidgetContextMenu.vue';
|
|
6
|
-
export { useWidgetContextMenu } from './contextMenu/useWidgetContextMenu';
|
|
7
|
-
export { default as HttpEditor } from './HttpEditor.vue';
|
|
8
|
-
export { default as DragBtn } from './DragBtn.vue';
|
|
9
|
-
export * from './common/render';
|
|
10
|
-
export { default as RenderDesignerWrapper } from './common/desginer/RenderDesignerWrapper.vue';
|
|
11
|
-
export { default as FormWidgetContainer } from './common/desginer/FormWidgetContainer.vue';
|
|
12
|
-
export { default as WidgetWrapper } from './common/desginer/WidgetWrapper.vue';
|
|
13
|
-
export { default as RenderWidgetList } from './common/RenderWidgetList.vue';
|
|
14
|
-
export { default as EventItemEditor } from './common/EventItemEditor.vue';
|
|
15
|
-
export * from './setting-plane';
|
|
16
|
-
export { default as WidgetEditors } from './property-editor';
|
|
17
|
-
export { default as LowcodeI18nProvider } from './common/LowcodeI18nProvider.vue';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
leftWidth?: number;
|
|
3
|
-
rightWidth?: number;
|
|
4
|
-
};
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: {
|
|
8
|
-
left?(_: {}): any;
|
|
9
|
-
header?(_: {}): any;
|
|
10
|
-
content?(_: {}): any;
|
|
11
|
-
right?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 格式说明:属性名称==对应属性编辑器的组件名称
|
|
3
|
-
*/
|
|
4
|
-
export declare const COMMON_PROPERTIES: {
|
|
5
|
-
name: string;
|
|
6
|
-
label: string;
|
|
7
|
-
labelAlign: string;
|
|
8
|
-
type: string;
|
|
9
|
-
tabPosition: string;
|
|
10
|
-
tabBarGutter: string;
|
|
11
|
-
shape: string;
|
|
12
|
-
danger: string;
|
|
13
|
-
ghost: string;
|
|
14
|
-
defaultValue: string;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
startPlaceholder: string;
|
|
17
|
-
endPlaceholder: string;
|
|
18
|
-
columnWidth: string;
|
|
19
|
-
autoFullWidth: string;
|
|
20
|
-
size: string;
|
|
21
|
-
flex: string;
|
|
22
|
-
buttonStyle: string;
|
|
23
|
-
border: string;
|
|
24
|
-
labelWidth: string;
|
|
25
|
-
labelHidden: string;
|
|
26
|
-
rows: string;
|
|
27
|
-
required: string;
|
|
28
|
-
requiredHint: string;
|
|
29
|
-
validation: string;
|
|
30
|
-
validationHint: string;
|
|
31
|
-
readonly: string;
|
|
32
|
-
disabled: string;
|
|
33
|
-
loadingPage: string;
|
|
34
|
-
hidden: string;
|
|
35
|
-
useModal: string;
|
|
36
|
-
checkedValue: string;
|
|
37
|
-
unCheckedValue: string;
|
|
38
|
-
placement: string;
|
|
39
|
-
rowKey: string;
|
|
40
|
-
tableWidth: string;
|
|
41
|
-
tableHeight: string;
|
|
42
|
-
showIndex: string;
|
|
43
|
-
stripe: string;
|
|
44
|
-
colorRow: string;
|
|
45
|
-
tableSize: string;
|
|
46
|
-
pagination: string;
|
|
47
|
-
showButtonsColumn: string;
|
|
48
|
-
rowSelection: string;
|
|
49
|
-
dsEnabled: string;
|
|
50
|
-
tableColumns: string;
|
|
51
|
-
treeDataEnabled: string;
|
|
52
|
-
allowClear: string;
|
|
53
|
-
treeDefaultExpandAll: string;
|
|
54
|
-
showTime: string;
|
|
55
|
-
editable: string;
|
|
56
|
-
showPassword: string;
|
|
57
|
-
textContent: string;
|
|
58
|
-
htmlContent: string;
|
|
59
|
-
slotCompontent: string;
|
|
60
|
-
diyCompontent: string;
|
|
61
|
-
format: string;
|
|
62
|
-
valueFormat: string;
|
|
63
|
-
showSearch: string;
|
|
64
|
-
multiple: string;
|
|
65
|
-
accept: string;
|
|
66
|
-
mode: string;
|
|
67
|
-
menuList: string;
|
|
68
|
-
contentPosition: string;
|
|
69
|
-
treeData: string;
|
|
70
|
-
limit: string;
|
|
71
|
-
maxSize: string;
|
|
72
|
-
fileTypes: string;
|
|
73
|
-
contentHeight: string;
|
|
74
|
-
customClass: string;
|
|
75
|
-
uploadListType: string;
|
|
76
|
-
showBlankRow: string;
|
|
77
|
-
showRowNumber: string;
|
|
78
|
-
cellWidth: string;
|
|
79
|
-
cellHeight: string;
|
|
80
|
-
colHeight: string;
|
|
81
|
-
gutter: string;
|
|
82
|
-
responsive: string;
|
|
83
|
-
span: string;
|
|
84
|
-
offset: string;
|
|
85
|
-
push: string;
|
|
86
|
-
pull: string;
|
|
87
|
-
title: string;
|
|
88
|
-
width: string;
|
|
89
|
-
height: string;
|
|
90
|
-
top: string;
|
|
91
|
-
left: string;
|
|
92
|
-
lineHeight: string;
|
|
93
|
-
formCode: string;
|
|
94
|
-
collapseIcon: string;
|
|
95
|
-
unCollapseIcon: string;
|
|
96
|
-
isCollapse: string;
|
|
97
|
-
rightSlotCss: string;
|
|
98
|
-
bodyStyle: string;
|
|
99
|
-
fullscreen: string;
|
|
100
|
-
showClose: string;
|
|
101
|
-
closeOnClickModal: string;
|
|
102
|
-
closeOnPressEscape: string;
|
|
103
|
-
direction: string;
|
|
104
|
-
readMode: string;
|
|
105
|
-
disabledMode: string;
|
|
106
|
-
buttonList: string;
|
|
107
|
-
buttonPosition: string;
|
|
108
|
-
boxModel: string;
|
|
109
|
-
legend: string;
|
|
110
|
-
customRender: string;
|
|
111
|
-
echartBar: string;
|
|
112
|
-
borderImg: string;
|
|
113
|
-
optionItems: string;
|
|
114
|
-
refreshInterval: string;
|
|
115
|
-
};
|
|
116
|
-
export declare const ADVANCED_PROPERTIES: {
|
|
117
|
-
min: string;
|
|
118
|
-
max: string;
|
|
119
|
-
count: string;
|
|
120
|
-
precision: string;
|
|
121
|
-
step: string;
|
|
122
|
-
controlsPosition: string;
|
|
123
|
-
minLength: string;
|
|
124
|
-
maxLength: string;
|
|
125
|
-
showCount: string;
|
|
126
|
-
addonBefore: string;
|
|
127
|
-
switchWidth: string;
|
|
128
|
-
activeColor: string;
|
|
129
|
-
inactiveColor: string;
|
|
130
|
-
lowThreshold: string;
|
|
131
|
-
highThreshold: string;
|
|
132
|
-
allowHalf: string;
|
|
133
|
-
showText: string;
|
|
134
|
-
showScore: string;
|
|
135
|
-
range: string;
|
|
136
|
-
vertical: string;
|
|
137
|
-
plain: string;
|
|
138
|
-
round: string;
|
|
139
|
-
circle: string;
|
|
140
|
-
icon: string;
|
|
141
|
-
labelIconClass: string;
|
|
142
|
-
labelIconPosition: string;
|
|
143
|
-
appendButton: string;
|
|
144
|
-
appendButtonDisabled: string;
|
|
145
|
-
buttonIcon: string;
|
|
146
|
-
};
|
|
147
|
-
export declare const EVENT_PROPERTIES: {
|
|
148
|
-
onCreated: string;
|
|
149
|
-
onMounted: string;
|
|
150
|
-
onClick: string;
|
|
151
|
-
onCheck: string;
|
|
152
|
-
onInput: string;
|
|
153
|
-
onChange: string;
|
|
154
|
-
onTableChange: string;
|
|
155
|
-
onFocus: string;
|
|
156
|
-
onBlur: string;
|
|
157
|
-
onRemoteQuery: string;
|
|
158
|
-
onBeforeUpload: string;
|
|
159
|
-
onUploadSuccess: string;
|
|
160
|
-
onUploadError: string;
|
|
161
|
-
onFileRemove: string;
|
|
162
|
-
onValidate: string;
|
|
163
|
-
onAppendButtonClick: string;
|
|
164
|
-
onClickIcon: string;
|
|
165
|
-
onMenuClick: string;
|
|
166
|
-
onTabClick: string;
|
|
167
|
-
onSubFormRowAdd: string;
|
|
168
|
-
onSubFormRowInsert: string;
|
|
169
|
-
onSubFormRowDelete: string;
|
|
170
|
-
onSubFormRowChange: string;
|
|
171
|
-
onPageSizeChange: string;
|
|
172
|
-
onCurrentPageChange: string;
|
|
173
|
-
onSelectionChange: string;
|
|
174
|
-
onHideOperationButton: string;
|
|
175
|
-
onDisableOperationButton: string;
|
|
176
|
-
onGetOperationButtonLabel: string;
|
|
177
|
-
onOperationButtonClick: string;
|
|
178
|
-
onHeaderClick: string;
|
|
179
|
-
onRowClick: string;
|
|
180
|
-
onRowDoubleClick: string;
|
|
181
|
-
onCellClick: string;
|
|
182
|
-
onCellDoubleClick: string;
|
|
183
|
-
onGetRowClassName: string;
|
|
184
|
-
onGetSpanMethod: string;
|
|
185
|
-
onDialogOpened: string;
|
|
186
|
-
onDialogBeforeClose: string;
|
|
187
|
-
customRow: string;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* 判断属性是否已注册
|
|
191
|
-
* @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)
|
|
192
|
-
*/
|
|
193
|
-
export declare function propertyRegistered(uniquePropName: string): boolean;
|
|
194
|
-
export declare function getPropertyEditor(uniquePropName: string): any;
|
|
195
|
-
export declare enum PROPERTY_TYPE {
|
|
196
|
-
Common = "COMMON",
|
|
197
|
-
Advanced = "ADVANCED",
|
|
198
|
-
Event = "EVENT"
|
|
199
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Widget } from '../../..';
|
|
2
|
-
export interface EditorPros {
|
|
3
|
-
selectedWidget: Widget;
|
|
4
|
-
}
|
|
5
|
-
interface EditorProsType {
|
|
6
|
-
optionModel: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
export declare function useEditor(props?: EditorProsType): {
|
|
9
|
-
designer: import('vue').Ref<import('../../..').FormDesigner, import('../../..').FormDesigner>;
|
|
10
|
-
serverFieldList: () => never[];
|
|
11
|
-
getDesignerConfig: () => Record<string, any>;
|
|
12
|
-
hasConfig: (configName: any) => boolean;
|
|
13
|
-
emitDefaultValueChange: () => void;
|
|
14
|
-
inputNumberHandler: (value: any) => void;
|
|
15
|
-
onRemoteChange: (val: any) => void;
|
|
16
|
-
onAllowCreateChange: (val: any) => void;
|
|
17
|
-
onMultipleSelected: (val: any) => void;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const formConfig: import('vue').ModelRef<any, string, any, any>;
|
|
2
|
-
type __VLS_PublicProps = {
|
|
3
|
-
'formConfig'?: typeof formConfig['value'];
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"update:formConfig": (value: any) => any;
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
-
"onUpdate:formConfig"?: ((value: any) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|