@gct-paas/core 0.0.1-dev.15 → 0.0.1-dev.17
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/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/constants/editor-register/editor-register.d.ts +14 -0
- package/es/constants/editor-register/editor-register.mjs +7 -0
- package/es/constants/editor-type/editor-type.d.ts +172 -0
- package/es/constants/editor-type/editor-type.mjs +48 -0
- package/es/constants/form-container-type/form-container-type.d.ts +14 -0
- package/es/constants/form-container-type/form-container-type.mjs +7 -0
- package/es/constants/index.d.ts +3 -0
- package/es/constants/index.mjs +3 -0
- package/es/controller/edit-form/edit-form.controller.d.ts +28 -0
- package/es/controller/edit-form/edit-form.controller.mjs +48 -0
- package/es/controller/editor/color-editor.controller.d.ts +13 -0
- package/es/controller/editor/color-editor.controller.mjs +7 -0
- package/es/controller/editor/length-unit-editor.controller.d.ts +13 -0
- package/es/controller/editor/length-unit-editor.controller.mjs +7 -0
- package/es/controller/editor-item/editor-item.controller.d.ts +14 -0
- package/es/controller/editor-item/editor-item.controller.mjs +9 -0
- package/es/controller/form/form.controller.d.ts +76 -0
- package/es/controller/form/form.controller.mjs +147 -0
- package/es/controller/form-collapse/form-collapse.controller.d.ts +18 -0
- package/es/controller/form-collapse/form-collapse.controller.mjs +13 -0
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +18 -0
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +13 -0
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +26 -0
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +70 -0
- package/es/controller/form-group/form-group.controller.d.ts +18 -0
- package/es/controller/form-group/form-group.controller.mjs +13 -0
- package/es/controller/form-item/form-item.controller.d.ts +20 -0
- package/es/controller/form-item/form-item.controller.mjs +39 -0
- package/es/controller/form-item-basic/form-item-basic.controller.d.ts +57 -0
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +48 -0
- package/es/controller/form-item-hidden/form-item-hidden.controller.d.ts +17 -0
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +8 -0
- package/es/controller/form-tab/form-tab.controller.d.ts +18 -0
- package/es/controller/form-tab/form-tab.controller.mjs +13 -0
- package/es/controller/form-tab-pane/form-tab-pane.controller.d.ts +18 -0
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +13 -0
- package/es/controller/gct-form/gct-form.controller.d.ts +101 -0
- package/es/controller/gct-form/gct-form.controller.mjs +214 -0
- package/es/controller/index.d.ts +15 -0
- package/es/controller/index.mjs +17 -0
- package/es/enums/page-designer/panel.d.ts +2 -0
- package/es/enums/page-designer/panel.mjs +1 -0
- package/es/global/gct/gct.d.ts +11 -3
- package/es/global/gct/gct.mjs +13 -2
- package/es/hooks/index.d.ts +4 -0
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/use-form/use-form.d.ts +10 -0
- package/es/hooks/use-form/use-form.mjs +9 -0
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +22 -0
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +84 -0
- package/es/hooks/use-modal/use-modal.d.ts +10 -0
- package/es/hooks/use-modal/use-modal.mjs +14 -0
- package/es/hooks/useCopyToClipboard.d.ts +11 -0
- package/es/hooks/useCopyToClipboard.mjs +58 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +36 -0
- package/es/interface/controller/edit-form/edit-form.controller.d.ts +26 -0
- package/es/interface/controller/edit-form/edit-form.controller.mjs +1 -0
- package/es/interface/controller/editor/i-color-editor.controller.d.ts +11 -0
- package/es/interface/controller/editor/i-color-editor.controller.mjs +1 -0
- package/es/interface/controller/editor/i-length-unit-editor.controller.d.ts +11 -0
- package/es/interface/controller/editor/i-length-unit-editor.controller.mjs +1 -0
- package/es/interface/controller/editor-item/editor-item.controller.d.ts +19 -0
- package/es/interface/controller/editor-item/editor-item.controller.mjs +1 -0
- package/es/interface/controller/form/form.controller.d.ts +121 -0
- package/es/interface/controller/form/form.controller.mjs +3 -0
- package/es/interface/controller/form-collapse/form-collapse.controller.d.ts +23 -0
- package/es/interface/controller/form-collapse/form-collapse.controller.mjs +1 -0
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +23 -0
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.mjs +1 -0
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +54 -0
- package/es/interface/controller/form-edit-item/form-edit-item.controller.mjs +1 -0
- package/es/interface/controller/form-group/form-group.controller.d.ts +24 -0
- package/es/interface/controller/form-group/form-group.controller.mjs +1 -0
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.d.ts +24 -0
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.mjs +1 -0
- package/es/interface/controller/form-item/form-item.controller.d.ts +40 -0
- package/es/interface/controller/form-item/form-item.controller.mjs +1 -0
- package/es/interface/controller/form-item-basic/form-item-basic.controller.d.ts +51 -0
- package/es/interface/controller/form-item-basic/form-item-basic.controller.mjs +1 -0
- package/es/interface/controller/form-tab/form-tab.controller.d.ts +23 -0
- package/es/interface/controller/form-tab/form-tab.controller.mjs +1 -0
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.d.ts +23 -0
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.mjs +1 -0
- package/es/interface/controller/index.d.ts +14 -0
- package/es/interface/events/form/i-form.event.d.ts +11 -0
- package/es/interface/events/form/i-form.event.mjs +1 -0
- package/es/interface/events/index.d.ts +1 -0
- package/es/interface/events/index.mjs +1 -0
- package/es/interface/form/i-editor/i-check-switch.d.ts +29 -0
- package/es/interface/form/i-editor/i-check-switch.mjs +3 -0
- package/es/interface/form/i-editor/i-checkbox-editor.d.ts +9 -0
- package/es/interface/form/i-editor/i-checkbox-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-color-editor.d.ts +13 -0
- package/es/interface/form/i-editor/i-color-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-editor-basic.d.ts +87 -0
- package/es/interface/form/i-editor/i-editor-basic.mjs +1 -0
- package/es/interface/form/i-editor/i-icon-select-editor.d.ts +21 -0
- package/es/interface/form/i-editor/i-icon-select-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-info-editor.d.ts +21 -0
- package/es/interface/form/i-editor/i-info-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-length-unit-editor.d.ts +13 -0
- package/es/interface/form/i-editor/i-length-unit-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-number-editor.d.ts +21 -0
- package/es/interface/form/i-editor/i-number-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-picker-editor.d.ts +30 -0
- package/es/interface/form/i-editor/i-picker-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-radio-editor.d.ts +21 -0
- package/es/interface/form/i-editor/i-radio-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-select-editor.d.ts +14 -0
- package/es/interface/form/i-editor/i-select-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-span-editor.d.ts +30 -0
- package/es/interface/form/i-editor/i-span-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-switch-editor.d.ts +14 -0
- package/es/interface/form/i-editor/i-switch-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-text-editor.d.ts +46 -0
- package/es/interface/form/i-editor/i-text-editor.mjs +3 -0
- package/es/interface/form/i-editor/i-textarea-editor.d.ts +25 -0
- package/es/interface/form/i-editor/i-textarea-editor.mjs +3 -0
- package/es/interface/form/i-form/i-edit-form.d.ts +48 -0
- package/es/interface/form/i-form/i-edit-form.mjs +1 -0
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +26 -0
- package/es/interface/form/i-form/i-form-collapse-pane.mjs +1 -0
- package/es/interface/form/i-form/i-form-collapse.d.ts +35 -0
- package/es/interface/form/i-form/i-form-collapse.mjs +1 -0
- package/es/interface/form/i-form/i-form-container.d.ts +53 -0
- package/es/interface/form/i-form/i-form-container.mjs +1 -0
- package/es/interface/form/i-form/i-form-edit-item.d.ts +140 -0
- package/es/interface/form/i-form/i-form-edit-item.mjs +1 -0
- package/es/interface/form/i-form/i-form-group-container.d.ts +24 -0
- package/es/interface/form/i-form/i-form-group-container.mjs +1 -0
- package/es/interface/form/i-form/i-form-group.d.ts +35 -0
- package/es/interface/form/i-form/i-form-group.mjs +1 -0
- package/es/interface/form/i-form/i-form-hidden-item.d.ts +11 -0
- package/es/interface/form/i-form/i-form-hidden-item.mjs +1 -0
- package/es/interface/form/i-form/i-form-item-basic.d.ts +126 -0
- package/es/interface/form/i-form/i-form-item-basic.mjs +1 -0
- package/es/interface/form/i-form/i-form-item.d.ts +11 -0
- package/es/interface/form/i-form/i-form-item.mjs +1 -0
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +19 -0
- package/es/interface/form/i-form/i-form-tab-pane.mjs +1 -0
- package/es/interface/form/i-form/i-form-tab.d.ts +21 -0
- package/es/interface/form/i-form/i-form-tab.mjs +1 -0
- package/es/interface/form/i-form/i-form.d.ts +72 -0
- package/es/interface/form/i-form/i-form.mjs +1 -0
- package/es/interface/form/index.d.ts +28 -0
- package/es/interface/form/index.mjs +1 -0
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +48 -0
- package/es/interface/i-dictionary/i-dictionary-item.mjs +1 -0
- package/es/interface/i-dictionary/i-dictionary.d.ts +52 -0
- package/es/interface/i-dictionary/i-dictionary.mjs +1 -0
- package/es/interface/i-modal/i-modal.d.ts +71 -0
- package/es/interface/i-modal/i-modal.mjs +3 -0
- package/es/interface/i-modal-data/i-modal-data.d.ts +34 -0
- package/es/interface/i-modal-data/i-modal-data.mjs +1 -0
- package/es/interface/index.d.ts +13 -4
- package/es/interface/index.mjs +0 -5
- package/es/interface/layout/i-flex-layout/i-flex-container.d.ts +75 -0
- package/es/interface/layout/i-flex-layout/i-flex-container.mjs +1 -0
- package/es/interface/layout/i-flex-layout/i-flex-item.d.ts +51 -0
- package/es/interface/layout/i-flex-layout/i-flex-item.mjs +1 -0
- package/es/interface/layout/i-grid-layout/i-grid-container.d.ts +29 -0
- package/es/interface/layout/i-grid-layout/i-grid-container.mjs +1 -0
- package/es/interface/layout/i-grid-layout/i-grid-item-span.d.ts +54 -0
- package/es/interface/layout/i-grid-layout/i-grid-item-span.mjs +1 -0
- package/es/interface/layout/i-grid-layout/i-grid-item.d.ts +37 -0
- package/es/interface/layout/i-grid-layout/i-grid-item.mjs +1 -0
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.d.ts +11 -0
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.mjs +1 -0
- package/es/interface/layout/index.d.ts +6 -0
- package/es/interface/layout/index.mjs +1 -0
- package/es/interface/provider/i-editor-provider/i-editor-provider.d.ts +24 -0
- package/es/interface/provider/i-editor-provider/i-editor-provider.mjs +1 -0
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.d.ts +44 -0
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.mjs +1 -0
- package/es/interface/provider/i-provider-basic/i-provider-basic.d.ts +25 -0
- package/es/interface/provider/i-provider-basic/i-provider-basic.mjs +1 -0
- package/es/interface/provider/index.d.ts +3 -0
- package/es/interface/provider/index.mjs +1 -0
- package/es/interface/state/form/form.state.d.ts +53 -0
- package/es/interface/state/form/form.state.mjs +1 -0
- package/es/interface/state/form-collapse/form-collapse.state.d.ts +11 -0
- package/es/interface/state/form-collapse/form-collapse.state.mjs +1 -0
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.d.ts +11 -0
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.mjs +1 -0
- package/es/interface/state/form-edit-item/form-edit-item.state.d.ts +38 -0
- package/es/interface/state/form-edit-item/form-edit-item.state.mjs +1 -0
- package/es/interface/state/form-group/form-group.state.d.ts +21 -0
- package/es/interface/state/form-group/form-group.state.mjs +1 -0
- package/es/interface/state/form-hidden-item/form-hidden-item.state.d.ts +5 -0
- package/es/interface/state/form-hidden-item/form-hidden-item.state.mjs +1 -0
- package/es/interface/state/form-item/form-item.state.d.ts +20 -0
- package/es/interface/state/form-item/form-item.state.mjs +1 -0
- package/es/interface/state/form-item-basic/form-item-basic.state.d.ts +63 -0
- package/es/interface/state/form-item-basic/form-item-basic.state.mjs +1 -0
- package/es/interface/state/form-tab/form-tab.state.d.ts +19 -0
- package/es/interface/state/form-tab/form-tab.state.mjs +1 -0
- package/es/interface/state/form-tab-pane/form-tab-pane.state.d.ts +11 -0
- package/es/interface/state/form-tab-pane/form-tab-pane.state.mjs +1 -0
- package/es/interface/state/i-designer-state.d.ts +0 -12
- package/es/interface/state/index.d.ts +10 -0
- package/es/interface/style/i-border.d.ts +16 -0
- package/es/interface/style/i-border.mjs +1 -0
- package/es/interface/style/i-font.d.ts +9 -0
- package/es/interface/style/i-font.mjs +1 -0
- package/es/interface/style/i-margin.d.ts +2 -0
- package/es/interface/style/i-margin.mjs +1 -0
- package/es/interface/style/i-padding.d.ts +2 -0
- package/es/interface/style/i-padding.mjs +1 -0
- package/es/interface/style/i-position.d.ts +14 -0
- package/es/interface/style/i-position.mjs +1 -0
- package/es/interface/style/i-spacing.d.ts +13 -0
- package/es/interface/style/i-spacing.mjs +1 -0
- package/es/interface/style/index.d.ts +6 -0
- package/es/interface/style/index.mjs +1 -0
- package/es/register/editor-register/editor-register.d.ts +57 -0
- package/es/register/editor-register/editor-register.mjs +66 -0
- package/es/register/form-item-register/form-item-register.d.ts +47 -0
- package/es/register/form-item-register/form-item-register.mjs +52 -0
- package/es/register/index.d.ts +2 -0
- package/es/register/index.mjs +2 -0
- package/es/state/form/form.state.d.ts +24 -0
- package/es/state/form/form.state.mjs +17 -0
- package/es/state/form-collapse/form-collapse.state.d.ts +14 -0
- package/es/state/form-collapse/form-collapse.state.mjs +7 -0
- package/es/state/form-collapse-pane/form-collapse-pane.state.d.ts +14 -0
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +7 -0
- package/es/state/form-edit-item/form-edit-item.state.d.ts +17 -0
- package/es/state/form-edit-item/form-edit-item.state.mjs +11 -0
- package/es/state/form-group/form-group.state.d.ts +21 -0
- package/es/state/form-group/form-group.state.mjs +15 -0
- package/es/state/form-item/form-item.state.d.ts +14 -0
- package/es/state/form-item/form-item.state.mjs +7 -0
- package/es/state/form-item-basic/form-item-basic.state.d.ts +17 -0
- package/es/state/form-item-basic/form-item-basic.state.mjs +10 -0
- package/es/state/form-tab/form-tab.state.d.ts +15 -0
- package/es/state/form-tab/form-tab.state.mjs +8 -0
- package/es/state/form-tab-pane/form-tab-pane.state.d.ts +14 -0
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +7 -0
- package/es/state/index.d.ts +9 -0
- package/es/state/index.mjs +9 -0
- package/es/utils/axios/interceptors.mjs +1 -1
- package/es/utils/dictionary/dictionary.d.ts +102 -0
- package/es/utils/dictionary/dictionary.mjs +147 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/width-install/width-install.d.ts +17 -0
- package/es/utils/width-install/width-install.mjs +21 -0
- package/package.json +7 -5
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AsyncSeriesHook } from 'qx-util';
|
|
2
|
+
import { IModalData } from '../i-modal-data/i-modal-data';
|
|
3
|
+
interface ModalHooks {
|
|
4
|
+
shouldDismiss: AsyncSeriesHook<[
|
|
5
|
+
], {
|
|
6
|
+
allowClose?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
beforeDismiss: AsyncSeriesHook<[], IModalData>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 模态操作对象,在模态等形式打开视图时,操作类需给视图注入此对象实现类
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-03-19 21:03:44
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IModal
|
|
17
|
+
*/
|
|
18
|
+
export interface IModal {
|
|
19
|
+
/**
|
|
20
|
+
* 是否忽略关闭检查,用于强制关闭视图
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghanrui
|
|
23
|
+
* @date 2024-03-19 21:03:50
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
*/
|
|
26
|
+
ignoreDismissCheck: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 钩子
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghanrui
|
|
31
|
+
* @date 2024-03-19 21:03:55
|
|
32
|
+
* @type {ModalHooks}
|
|
33
|
+
*/
|
|
34
|
+
hooks: ModalHooks;
|
|
35
|
+
/**
|
|
36
|
+
* 统一关闭入口
|
|
37
|
+
*
|
|
38
|
+
* @author zhanghanrui
|
|
39
|
+
* @date 2024-03-19 21:03:04
|
|
40
|
+
*/
|
|
41
|
+
dismiss: (data?: IModalData) => Promise<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* 设置模态框属性
|
|
44
|
+
* @param options
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
setOptions: (options: object) => void;
|
|
48
|
+
/**
|
|
49
|
+
* 确认操作
|
|
50
|
+
*
|
|
51
|
+
* @author zhanghanrui
|
|
52
|
+
* @date 2024-03-25 16:03:37
|
|
53
|
+
*/
|
|
54
|
+
ok?: () => Promise<IModalData | null>;
|
|
55
|
+
/**
|
|
56
|
+
* 提供 vue 文件下的回调注入,用于模态确认操作回调
|
|
57
|
+
*
|
|
58
|
+
* @author zhanghanrui
|
|
59
|
+
* @date 2024-03-29 11:03:03
|
|
60
|
+
* @param {(() => Promise<IModalData | null>)} ok
|
|
61
|
+
*/
|
|
62
|
+
callback(ok: () => Promise<IModalData | null>): void;
|
|
63
|
+
/**
|
|
64
|
+
* 取消操作
|
|
65
|
+
*
|
|
66
|
+
* @author zhanghanrui
|
|
67
|
+
* @date 2024-03-25 16:03:01
|
|
68
|
+
*/
|
|
69
|
+
cancel?: () => Promise<boolean>;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 模态打开界面,关闭时返回数据
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-03-19 20:03:55
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IModalData
|
|
8
|
+
*/
|
|
9
|
+
export interface IModalData {
|
|
10
|
+
/**
|
|
11
|
+
* 关闭模态窗时是否操作成功
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-03-19 20:03:36
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
*/
|
|
17
|
+
ok: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 返回的数据
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-03-19 20:03:44
|
|
23
|
+
* @type {IData[]}
|
|
24
|
+
*/
|
|
25
|
+
data?: IData[];
|
|
26
|
+
/**
|
|
27
|
+
* 额外参数
|
|
28
|
+
*
|
|
29
|
+
* @author zhanghanrui
|
|
30
|
+
* @date 2024-03-19 20:03:49
|
|
31
|
+
* @type {IParams}
|
|
32
|
+
*/
|
|
33
|
+
params?: IParams;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/es/interface/index.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
export * from './controller';
|
|
2
|
-
export * from './
|
|
1
|
+
export type * from './controller';
|
|
2
|
+
export type * from './events';
|
|
3
|
+
export type * from './form';
|
|
4
|
+
export type * from './hooks';
|
|
5
|
+
export type { IDictionary } from './i-dictionary/i-dictionary';
|
|
6
|
+
export type { IDictionaryItem } from './i-dictionary/i-dictionary-item';
|
|
3
7
|
export type { IHttpResponse } from './i-http-response/i-http-response';
|
|
4
8
|
export type { IMessageParams, IMessageUtil, } from './i-message-util/i-message-util';
|
|
9
|
+
export type { IModal } from './i-modal/i-modal';
|
|
10
|
+
export type { IModalData } from './i-modal-data/i-modal-data';
|
|
5
11
|
export type { IStyleIMportMap } from './i-import-style-map/i-import-style-map';
|
|
6
12
|
export type { IGlobalActions } from './i-pinia-action/i-global-actions';
|
|
7
13
|
export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
|
|
8
14
|
export type { IGlobalState } from './i-pinia-state/i-global-state';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
15
|
+
export type * from './layout';
|
|
16
|
+
export type * from './low-code-types';
|
|
17
|
+
export type * from './provider';
|
|
18
|
+
export type * from './state';
|
|
19
|
+
export type * from './style';
|
package/es/interface/index.mjs
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ILayoutContainerBasis } from '../i-layout-basis/i-layout-container-basis';
|
|
2
|
+
/**
|
|
3
|
+
* flex 布局容器
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-03-27 11:03:48
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IFlexContainer
|
|
9
|
+
* @extends {ILayoutContainerBasis}
|
|
10
|
+
*/
|
|
11
|
+
export interface IFlexContainer extends ILayoutContainerBasis {
|
|
12
|
+
/**
|
|
13
|
+
* 主轴方向
|
|
14
|
+
* row(默认值):主轴为水平方向,起点在左端。
|
|
15
|
+
* row-reverse:主轴为水平方向,起点在右端。
|
|
16
|
+
* column:主轴为垂直方向,起点在上沿。
|
|
17
|
+
* column-reverse:主轴为垂直方向,起点在下沿。
|
|
18
|
+
*
|
|
19
|
+
* @author zhanghanrui
|
|
20
|
+
* @date 2024-03-26 19:03:47
|
|
21
|
+
* @type {('row' | 'row-reverse' | 'column' | 'column-reverse')}
|
|
22
|
+
*/
|
|
23
|
+
flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
24
|
+
/**
|
|
25
|
+
* 换行模式
|
|
26
|
+
* nowrap(默认):不换行
|
|
27
|
+
* wrap:换行,第一行在上方
|
|
28
|
+
* wrap-reverse:换行,第一行在下方
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghanrui
|
|
31
|
+
* @date 2024-03-26 19:03:09
|
|
32
|
+
* @type {('nowrap' | 'wrap' | 'wrap-reverse')}
|
|
33
|
+
*/
|
|
34
|
+
flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
35
|
+
/**
|
|
36
|
+
* 主轴对齐方式
|
|
37
|
+
* flex-start(默认值):左对齐
|
|
38
|
+
* flex-end:右对齐
|
|
39
|
+
* center: 居中
|
|
40
|
+
* space-between:两端对齐,项目之间的间隔都相等
|
|
41
|
+
* space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍
|
|
42
|
+
*
|
|
43
|
+
* @author zhanghanrui
|
|
44
|
+
* @date 2024-03-26 19:03:38
|
|
45
|
+
* @type {('flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around')}
|
|
46
|
+
*/
|
|
47
|
+
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
48
|
+
/**
|
|
49
|
+
* 交叉轴对齐方式
|
|
50
|
+
* flex-start:交叉轴的起点对齐
|
|
51
|
+
* flex-end:交叉轴的终点对齐
|
|
52
|
+
* center:交叉轴的中点对齐
|
|
53
|
+
* baseline: 项目的第一行文字的基线对齐
|
|
54
|
+
* stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度
|
|
55
|
+
*
|
|
56
|
+
* @author zhanghanrui
|
|
57
|
+
* @date 2024-03-26 19:03:26
|
|
58
|
+
* @type {('flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch')}
|
|
59
|
+
*/
|
|
60
|
+
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
61
|
+
/**
|
|
62
|
+
* 多根轴线的对齐方式
|
|
63
|
+
* flex-start:与交叉轴的起点对齐
|
|
64
|
+
* flex-end:与交叉轴的终点对齐
|
|
65
|
+
* center:与交叉轴的中点对齐
|
|
66
|
+
* space-between:与交叉轴两端对齐,轴线之间的间隔平均分布
|
|
67
|
+
* space-around:每根轴线两侧的间隔都相等。所以,轴线之间的间隔比轴线与边框的间隔大一倍
|
|
68
|
+
* stretch(默认值):轴线占满整个交叉轴
|
|
69
|
+
*
|
|
70
|
+
* @author zhanghanrui
|
|
71
|
+
* @date 2024-03-26 19:03:20
|
|
72
|
+
* @type {('flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch')}
|
|
73
|
+
*/
|
|
74
|
+
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
75
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* flex 布局项
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-03-26 19:03:07
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IFlexItem
|
|
8
|
+
*/
|
|
9
|
+
export interface IFlexItem {
|
|
10
|
+
/**
|
|
11
|
+
* order属性定义项目的排列顺序。数值越小,排列越靠前,默认为0
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-03-26 19:03:48
|
|
15
|
+
* @type {number}
|
|
16
|
+
*/
|
|
17
|
+
order?: number;
|
|
18
|
+
/**
|
|
19
|
+
* flex-grow属性定义项目的放大比例,默认为0,即如果存在剩余空间,也不放大
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-03-26 19:03:21
|
|
23
|
+
* @type {number}
|
|
24
|
+
*/
|
|
25
|
+
flexGrow?: number;
|
|
26
|
+
/**
|
|
27
|
+
* flex-shrink属性定义了项目的缩小比例,默认为1,即如果空间不足,该项目将缩小
|
|
28
|
+
*
|
|
29
|
+
* @author zhanghanrui
|
|
30
|
+
* @date 2024-03-26 19:03:42
|
|
31
|
+
* @type {number}
|
|
32
|
+
*/
|
|
33
|
+
flexShrink?: number;
|
|
34
|
+
/**
|
|
35
|
+
* flex-basis属性定义了在分配多余空间之前,项目占据的主轴空间(main size)。浏览器根据这个属性,计算主轴是否有多余空间。它的默认值为auto,即项目的本来大小
|
|
36
|
+
*
|
|
37
|
+
* @author zhanghanrui
|
|
38
|
+
* @date 2024-03-26 19:03:03
|
|
39
|
+
* @type {(number | 'auto')}
|
|
40
|
+
*/
|
|
41
|
+
flexBasis?: number | 'auto';
|
|
42
|
+
/**
|
|
43
|
+
* align-self属性允许单个项目有与其他项目不一样的对齐方式,可覆盖align-items属性
|
|
44
|
+
* 该属性可能取6个值,除了auto,其他都与align-items属性完全一致
|
|
45
|
+
*
|
|
46
|
+
* @author zhanghanrui
|
|
47
|
+
* @date 2024-03-26 19:03:30
|
|
48
|
+
* @type {('auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch')}
|
|
49
|
+
*/
|
|
50
|
+
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ILayoutContainerBasis } from '../i-layout-basis/i-layout-container-basis';
|
|
2
|
+
/**
|
|
3
|
+
* 栅格布局容器
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-03-27 11:03:05
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IGridContainer
|
|
9
|
+
* @extends {ILayoutContainerBasis}
|
|
10
|
+
*/
|
|
11
|
+
export interface IGridContainer extends ILayoutContainerBasis {
|
|
12
|
+
/**
|
|
13
|
+
* 栅格布局模式,24栅格或12栅格
|
|
14
|
+
*
|
|
15
|
+
* @default 24
|
|
16
|
+
* @author zhanghanrui
|
|
17
|
+
* @date 2024-03-26 19:03:16
|
|
18
|
+
* @type {(12 | 24)}
|
|
19
|
+
*/
|
|
20
|
+
mode: 12 | 24;
|
|
21
|
+
/**
|
|
22
|
+
* 栅格间隔
|
|
23
|
+
*
|
|
24
|
+
* @author zhanghanrui
|
|
25
|
+
* @date 2024-03-27 11:03:38
|
|
26
|
+
* @type {(number | Object | number[])}
|
|
27
|
+
*/
|
|
28
|
+
gutter?: number | object | number[];
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* span 布局项
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-03-26 19:03:40
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IGridItemSpan
|
|
8
|
+
*/
|
|
9
|
+
export interface IGridItemSpan {
|
|
10
|
+
/**
|
|
11
|
+
* <576px
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-03-26 19:03:22
|
|
15
|
+
* @type {number}
|
|
16
|
+
*/
|
|
17
|
+
sx?: number;
|
|
18
|
+
/**
|
|
19
|
+
* ≥576px
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
*/
|
|
23
|
+
sm?: number;
|
|
24
|
+
/**
|
|
25
|
+
* ≥768px
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
*/
|
|
29
|
+
md?: number;
|
|
30
|
+
/**
|
|
31
|
+
* ≥992px
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
*/
|
|
35
|
+
lg?: number;
|
|
36
|
+
/**
|
|
37
|
+
* ≥1200px
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
*/
|
|
41
|
+
xl?: number;
|
|
42
|
+
/**
|
|
43
|
+
* ≥1600px
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
*/
|
|
47
|
+
xxl?: number;
|
|
48
|
+
/**
|
|
49
|
+
* ≥1600px
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
*/
|
|
53
|
+
xxxl?: number;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IGridItemSpan } from './i-grid-item-span';
|
|
2
|
+
type ColNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
3
|
+
/**
|
|
4
|
+
* 表格布局项
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-03-26 19:03:43
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IGridItem
|
|
10
|
+
*/
|
|
11
|
+
export interface IGridItem {
|
|
12
|
+
/**
|
|
13
|
+
* 栅格占位格数
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-03-26 19:03:53
|
|
17
|
+
* @type {(ColNumber | IGridItemSpan)}
|
|
18
|
+
*/
|
|
19
|
+
span?: ColNumber | IGridItemSpan;
|
|
20
|
+
/**
|
|
21
|
+
* 偏移量
|
|
22
|
+
*
|
|
23
|
+
* @author zhanghanrui
|
|
24
|
+
* @date 2024-03-26 19:03:55
|
|
25
|
+
* @type {ColNumber}
|
|
26
|
+
*/
|
|
27
|
+
offset?: ColNumber;
|
|
28
|
+
/**
|
|
29
|
+
* 栅格顺序
|
|
30
|
+
*
|
|
31
|
+
* @author zhanghanrui
|
|
32
|
+
* @date 2024-03-26 19:03:17
|
|
33
|
+
* @type {number}
|
|
34
|
+
*/
|
|
35
|
+
order?: number;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { IFlexContainer } from './i-flex-layout/i-flex-container';
|
|
2
|
+
export type { IFlexItem } from './i-flex-layout/i-flex-item';
|
|
3
|
+
export type { IGridContainer } from './i-grid-layout/i-grid-container';
|
|
4
|
+
export type { IGridItem } from './i-grid-layout/i-grid-item';
|
|
5
|
+
export type { IGridItemSpan } from './i-grid-layout/i-grid-item-span';
|
|
6
|
+
export type { ILayoutContainerBasis } from './i-layout-basis/i-layout-container-basis';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IProviderBasic } from '../i-provider-basic/i-provider-basic';
|
|
2
|
+
import { IFormItem } from '../../form';
|
|
3
|
+
/**
|
|
4
|
+
* 编辑器提供者
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-03-27 10:03:54
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IEditorProvider
|
|
10
|
+
* @extends {IProviderBasic}
|
|
11
|
+
*/
|
|
12
|
+
export interface IEditorProvider extends IProviderBasic {
|
|
13
|
+
/**
|
|
14
|
+
* 直接特殊绘制
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghanrui
|
|
17
|
+
* @date 2024-03-27 09:03:08
|
|
18
|
+
* @param {*} value 当前项的值
|
|
19
|
+
* @param {IData} data 当前表单数据
|
|
20
|
+
* @param {IFormItem} item 当前表单项模型
|
|
21
|
+
* @return {*} {*}
|
|
22
|
+
*/
|
|
23
|
+
render?(value: any, data: IData, item: IFormItem): any;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IFormController, IFormItemBasicController } from '../../controller';
|
|
2
|
+
import { IFormItemBasic } from '../../form';
|
|
3
|
+
import { IProviderBasic } from '../i-provider-basic/i-provider-basic';
|
|
4
|
+
/**
|
|
5
|
+
* 表单项提供者
|
|
6
|
+
*
|
|
7
|
+
* @author zhanghanrui
|
|
8
|
+
* @date 2024-04-01 13:04:46
|
|
9
|
+
* @export
|
|
10
|
+
* @interface IFormItemProvider
|
|
11
|
+
* @extends {IProviderBasic}
|
|
12
|
+
*/
|
|
13
|
+
export interface IFormItemProvider extends IProviderBasic {
|
|
14
|
+
/**
|
|
15
|
+
* 表单项组件,可是组件名称或组件实例
|
|
16
|
+
*
|
|
17
|
+
* @author zhanghanrui
|
|
18
|
+
* @date 2024-04-01 14:04:45
|
|
19
|
+
* @type {*}
|
|
20
|
+
*/
|
|
21
|
+
component: any;
|
|
22
|
+
/**
|
|
23
|
+
* 直接特殊绘制
|
|
24
|
+
*
|
|
25
|
+
* @author zhanghanrui
|
|
26
|
+
* @date 2024-04-01 13:04:52
|
|
27
|
+
* @param {IFormController} form 表单控制器
|
|
28
|
+
* @param {*} value 当前项的值
|
|
29
|
+
* @param {IData} data 当前表单数据
|
|
30
|
+
* @param {IFormItemBasic} item 当前表单项模型
|
|
31
|
+
* @return {*} {*}
|
|
32
|
+
*/
|
|
33
|
+
render?(form: IFormController, value: any, data: IData, item: IFormItemBasic): any;
|
|
34
|
+
/**
|
|
35
|
+
* 创建控制器实例
|
|
36
|
+
*
|
|
37
|
+
* @author zhanghanrui
|
|
38
|
+
* @date 2024-04-02 10:04:37
|
|
39
|
+
* @param {IFormController} form
|
|
40
|
+
* @param {IFormItemBasic} item
|
|
41
|
+
* @return {*} {IFormItemBasicController}
|
|
42
|
+
*/
|
|
43
|
+
createController(form: IFormController, item: IFormItemBasic): IFormItemBasicController;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 适配器基础接口
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-04-01 13:04:58
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IProviderBasic
|
|
8
|
+
*/
|
|
9
|
+
export interface IProviderBasic {
|
|
10
|
+
/**
|
|
11
|
+
* 具体组件或者组件名称
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-03-27 10:03:05
|
|
15
|
+
* @type {*}
|
|
16
|
+
*/
|
|
17
|
+
component?: unknown;
|
|
18
|
+
/**
|
|
19
|
+
* 绘制
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-03-27 10:03:41
|
|
23
|
+
*/
|
|
24
|
+
render?: (...args: any[]) => any;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表单状态
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-04-01 11:04:19
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IFormState
|
|
8
|
+
*/
|
|
9
|
+
export interface IFormState {
|
|
10
|
+
/**
|
|
11
|
+
* 是否正在加载中
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
* @author zhanghanrui
|
|
15
|
+
* @date 2024-04-03 16:04:17
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
*/
|
|
18
|
+
loading: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 是否已加载完成
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghanrui
|
|
23
|
+
* @date 2024-04-03 17:04:59
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
*/
|
|
26
|
+
loaded: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 是否新建数据模式
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
* @author zhanghanrui
|
|
32
|
+
* @date 2024-04-03 14:04:01
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
*/
|
|
35
|
+
isNew: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 是否已销毁
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
* @author zhanghanrui
|
|
41
|
+
* @date 2024-04-03 16:04:53
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
*/
|
|
44
|
+
destroyed: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 表单数据(表单值,纯用于触发状态管理,需要值还是从项的控制器取)
|
|
47
|
+
*
|
|
48
|
+
* @author zhanghanrui
|
|
49
|
+
* @date 2024-04-01 11:04:04
|
|
50
|
+
* @type {IData}
|
|
51
|
+
*/
|
|
52
|
+
data: IData;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IFormItemBasicState } from '../form-item-basic/form-item-basic.state';
|
|
2
|
+
/**
|
|
3
|
+
* 表单折叠面板
|
|
4
|
+
*
|
|
5
|
+
* @author lingxiaoming
|
|
6
|
+
* @date 2024-07-14 01:54:34
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IFormCollapseState
|
|
9
|
+
* @extends {IFormItemBasicState}
|
|
10
|
+
*/
|
|
11
|
+
export type IFormCollapseState = IFormItemBasicState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IFormItemBasicState } from '../form-item-basic/form-item-basic.state';
|
|
2
|
+
/**
|
|
3
|
+
* 表单折叠面板项
|
|
4
|
+
*
|
|
5
|
+
* @author lingxiaoming
|
|
6
|
+
* @date 2024-07-14 01:54:34
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IFormCollapsePaneState
|
|
9
|
+
* @extends {IFormItemBasicState}
|
|
10
|
+
*/
|
|
11
|
+
export type IFormCollapsePaneState = IFormItemBasicState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|