@gct-paas/core-web 0.1.6-dev.19 → 0.1.6-dev.20

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.
Files changed (80) hide show
  1. package/dist/{JsBarcode-nqhcZPvn.js → JsBarcode-CWEjFQCg.js} +2 -2
  2. package/dist/{_plugin-vue_export-helper-CyelNe0I.js → _plugin-vue_export-helper-B35LNlRD.js} +2 -2
  3. package/dist/{chunk-C9ZKDnvz.js → chunk-HpW8Sg8U.js} +1 -1
  4. package/dist/components-BpPyUpai.js +2 -0
  5. package/dist/{cropper-BuY_n52N.js → cropper-C1mu2QTr.js} +2 -2
  6. package/dist/{de_DE-B3kLT_zG.js → de_DE-YNwX-fX4.js} +2 -2
  7. package/dist/{defineProperty-DiReHMuo.js → defineProperty-CD2ak0EA.js} +1 -1
  8. package/dist/{diagram-config-item-DYCiDqAy.js → diagram-config-item-BJKwQqe9.js} +2 -2
  9. package/dist/{diagram-config-item-reverse-BKf_yXvB.js → diagram-config-item-reverse-BOzMIA4L.js} +2 -2
  10. package/dist/{diagram-config-item-virtual-Dw36zOeJ.js → diagram-config-item-virtual-B5LubVsO.js} +2 -2
  11. package/dist/{en_US-tZ7NgN80.js → en_US-g6FEYBCI.js} +2 -2
  12. package/dist/{es_ES-DY2QXYwT.js → es_ES-Z0GZKMlm.js} +2 -2
  13. package/dist/{fr_FR-DbN-1gO0.js → fr_FR-CZj5WUAk.js} +2 -2
  14. package/dist/{hooks-BuOffqGU.js → hooks-DeDowLcc.js} +2 -2
  15. package/dist/{icon-next-picker-BmnIn29K.js → icon-next-picker-CFq-lz_9.js} +1 -1
  16. package/dist/index.min.css +1 -1
  17. package/dist/{ja_JP-BRcXbHEH.js → ja_JP-cdVlm4zt.js} +2 -2
  18. package/dist/loader.esm.min.js +2 -2
  19. package/dist/{monaco-editor-CHnBEX6V.js → monaco-editor-WsT5HN4r.js} +2 -2
  20. package/dist/{objectSpread2-BHKS0stT.js → objectSpread2-BX5mxK8X.js} +1 -1
  21. package/dist/{overlayscrollbars-vue-Cc8URtSg.js → overlayscrollbars-vue-Bw-ehDVl.js} +1 -1
  22. package/dist/{pt_PT-DjiZFPmH.js → pt_PT-D8jH_j8r.js} +2 -2
  23. package/dist/{relationship-diagram-config-BwVOMUAb.js → relationship-diagram-config-DfoqF9pQ.js} +2 -2
  24. package/dist/{rich-editor-DfsJmv_B.js → rich-editor-D9LLUpvZ.js} +2 -2
  25. package/dist/{ru_RU-Dw9N99Ox.js → ru_RU-BKz2q-Am.js} +2 -2
  26. package/dist/{template-D-UpvSne.js → template-nL-36e2v.js} +2 -2
  27. package/dist/{tr_TR-DCCv6rhK.js → tr_TR-BkdCTVee.js} +2 -2
  28. package/dist/{useMonacoEditor-C3S2BSui.js → useMonacoEditor-CtC6CTAo.js} +2 -2
  29. package/dist/{vi_VN-BNMXRAom.js → vi_VN-D_2pTOUH.js} +2 -2
  30. package/dist/{zh_CN-ywcxTWfr.js → zh_CN-CdoQJ08C.js} +2 -2
  31. package/dist/{zh_TW-DL4FRJVy.js → zh_TW-8IvF8KDZ.js} +2 -2
  32. package/es/components/design-view-layout/design-view-layout.css +24 -0
  33. package/es/components/design-view-layout/design-view-layout.mjs +11 -2
  34. package/es/components/index.d.ts +1 -0
  35. package/es/components/index.mjs +2 -0
  36. package/es/components/model-cascader/index.d.ts +34 -0
  37. package/es/components/model-cascader/index.mjs +98 -0
  38. package/es/components/model-cascader/style.css +54 -0
  39. package/es/components/model-cascader/util.d.ts +27 -0
  40. package/es/components/model-cascader/util.mjs +73 -0
  41. package/es/components/ui/basic-grid/basic-grid.vue.mjs +2 -2
  42. package/es/components/ui/basic-grid/basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs +2 -2
  43. package/es/components/ui/basic-grid/{basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css → basic-grid.vue_vue_type_style_index_0_scoped_99a4ea49_lang.css} +8 -8
  44. package/es/create-app-vue.mjs +2 -0
  45. package/es/index.d.ts +1 -0
  46. package/es/index.mjs +3 -1
  47. package/es/modules/category/category-sider.vue.d.ts +3 -3
  48. package/es/modules/category/category-sider.vue.mjs +2 -2
  49. package/es/modules/category/{category-sider.vue_vue_type_style_index_0_scoped_2ad0d132_lang.css → category-sider.vue_vue_type_style_index_0_scoped_67c7b3e4_lang.css} +33 -33
  50. package/es/modules/gct-form/components/flex-item/flex-item.mjs +1 -1
  51. package/es/modules/gct-form/components/grid-container/grid-container.mjs +1 -2
  52. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +3 -1
  53. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +7 -6
  54. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +3 -1
  55. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +7 -6
  56. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +7 -6
  57. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  58. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  59. package/es/modules/global-drawer/index.d.ts +4 -0
  60. package/es/modules/global-drawer/index.mjs +8 -0
  61. package/es/modules/global-drawer/src/BasicDrawer.vue.d.ts +171 -0
  62. package/es/modules/global-drawer/src/BasicDrawer.vue.mjs +6 -0
  63. package/es/modules/global-drawer/src/BasicDrawer.vue_vue_type_script_setup_true_name_BasicDrawer_lang.mjs +145 -0
  64. package/es/modules/global-drawer/src/BasicDrawer.vue_vue_type_style_index_0_lang.css +40 -0
  65. package/es/modules/global-drawer/src/components/DrawerFooter.vue.d.ts +95 -0
  66. package/es/modules/global-drawer/src/components/DrawerFooter.vue.mjs +42 -0
  67. package/es/modules/global-drawer/src/components/DrawerFooter.vue_vue_type_script_lang.mjs +38 -0
  68. package/es/modules/global-drawer/src/components/DrawerFooter.vue_vue_type_style_index_0_lang.css +11 -0
  69. package/es/modules/global-drawer/src/components/DrawerHeader.vue.d.ts +20 -0
  70. package/es/modules/global-drawer/src/components/DrawerHeader.vue.mjs +22 -0
  71. package/es/modules/global-drawer/src/components/DrawerHeader.vue_vue_type_script_lang.mjs +25 -0
  72. package/es/modules/global-drawer/src/components/DrawerHeader.vue_vue_type_style_index_0_lang.css +18 -0
  73. package/es/modules/global-drawer/src/props.d.ts +111 -0
  74. package/es/modules/global-drawer/src/props.mjs +62 -0
  75. package/es/modules/global-drawer/src/typing.d.ts +170 -0
  76. package/es/modules/global-drawer/src/useDrawer.d.ts +6 -0
  77. package/es/modules/global-drawer/src/useDrawer.mjs +6 -0
  78. package/package.json +9 -9
  79. package/dist/components-DtFY5KCF.js +0 -2
  80. /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
@@ -0,0 +1,111 @@
1
+ import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
2
+ import { PropType } from 'vue';
3
+ export declare const footerProps: {
4
+ confirmLoading: {
5
+ type: BooleanConstructor;
6
+ };
7
+ /**
8
+ * @description: Show close button
9
+ */
10
+ showCancelBtn: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ cancelButtonProps: PropType<ButtonProps>;
15
+ cancelText: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ /**
20
+ * @description: Show confirmation button
21
+ */
22
+ showOkBtn: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ okButtonProps: PropType<ButtonProps>;
27
+ okText: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ okType: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ showFooter: {
36
+ type: BooleanConstructor;
37
+ };
38
+ footerHeight: {
39
+ type: PropType<string | number>;
40
+ default: number;
41
+ };
42
+ };
43
+ export declare const basicProps: {
44
+ confirmLoading: {
45
+ type: BooleanConstructor;
46
+ };
47
+ /**
48
+ * @description: Show close button
49
+ */
50
+ showCancelBtn: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ cancelButtonProps: PropType<ButtonProps>;
55
+ cancelText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ /**
60
+ * @description: Show confirmation button
61
+ */
62
+ showOkBtn: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ okButtonProps: PropType<ButtonProps>;
67
+ okText: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ okType: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ showFooter: {
76
+ type: BooleanConstructor;
77
+ };
78
+ footerHeight: {
79
+ type: PropType<string | number>;
80
+ default: number;
81
+ };
82
+ isDetail: {
83
+ type: BooleanConstructor;
84
+ };
85
+ title: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ loadingText: {
90
+ type: StringConstructor;
91
+ };
92
+ showDetailBack: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ visible: {
97
+ type: BooleanConstructor;
98
+ };
99
+ loading: {
100
+ type: BooleanConstructor;
101
+ };
102
+ maskClosable: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ getContainer: PropType<() => IObject>;
107
+ closeFunc: PropType<() => Promise<boolean>>;
108
+ destroyOnClose: {
109
+ type: BooleanConstructor;
110
+ };
111
+ };
@@ -0,0 +1,62 @@
1
+ import { t } from "@gct-paas/core";
2
+ //#region src/modules/global-drawer/src/props.ts
3
+ var footerProps = {
4
+ confirmLoading: { type: Boolean },
5
+ /**
6
+ * @description: Show close button
7
+ */
8
+ showCancelBtn: {
9
+ type: Boolean,
10
+ default: true
11
+ },
12
+ cancelButtonProps: Object,
13
+ cancelText: {
14
+ type: String,
15
+ default: t("sys.cancelText")
16
+ },
17
+ /**
18
+ * @description: Show confirmation button
19
+ */
20
+ showOkBtn: {
21
+ type: Boolean,
22
+ default: true
23
+ },
24
+ okButtonProps: Object,
25
+ okText: {
26
+ type: String,
27
+ default: window.$t ? window.$t("sys.okText") : "确认"
28
+ },
29
+ okType: {
30
+ type: String,
31
+ default: "primary"
32
+ },
33
+ showFooter: { type: Boolean },
34
+ footerHeight: {
35
+ type: [String, Number],
36
+ default: 60
37
+ }
38
+ };
39
+ var basicProps = {
40
+ isDetail: { type: Boolean },
41
+ title: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ loadingText: { type: String },
46
+ showDetailBack: {
47
+ type: Boolean,
48
+ default: true
49
+ },
50
+ visible: { type: Boolean },
51
+ loading: { type: Boolean },
52
+ maskClosable: {
53
+ type: Boolean,
54
+ default: true
55
+ },
56
+ getContainer: Function,
57
+ closeFunc: Function,
58
+ destroyOnClose: { type: Boolean },
59
+ ...footerProps
60
+ };
61
+ //#endregion
62
+ export { basicProps, footerProps };
@@ -0,0 +1,170 @@
1
+ import { ButtonProps } from 'ant-design-vue/lib/button/buttonTypes';
2
+ import { CSSProperties, VNodeChild, ComputedRef } from 'vue';
3
+ import { JSX } from 'vue/jsx-runtime';
4
+ export interface DrawerInstance {
5
+ setDrawerProps: (props: Partial<DrawerProps>) => void;
6
+ emitVisible?: (visible: boolean, uid: number) => void;
7
+ }
8
+ export interface ReturnMethods extends DrawerInstance {
9
+ openDrawer: <T = IObject>(visible?: boolean, data?: T, openOnSet?: boolean) => void;
10
+ closeDrawer: () => void;
11
+ getVisible?: ComputedRef<boolean>;
12
+ }
13
+ export type RegisterFn = (drawerInstance: DrawerInstance, uuid?: string) => void;
14
+ export interface ReturnInnerMethods extends DrawerInstance {
15
+ closeDrawer: () => void;
16
+ changeLoading: (loading: boolean) => void;
17
+ changeOkLoading: (loading: boolean) => void;
18
+ getVisible?: ComputedRef<boolean>;
19
+ }
20
+ export type UseDrawerReturnType = [RegisterFn, ReturnMethods];
21
+ export type UseDrawerInnerReturnType = [RegisterFn, ReturnInnerMethods];
22
+ export interface DrawerFooterProps {
23
+ showOkBtn: boolean;
24
+ showCancelBtn: boolean;
25
+ /**
26
+ * Text of the Cancel button
27
+ * @default 'cancel'
28
+ * @type string
29
+ */
30
+ cancelText: string;
31
+ /**
32
+ * Text of the OK button
33
+ * @default 'OK'
34
+ * @type string
35
+ */
36
+ okText: string;
37
+ /**
38
+ * Button type of the OK button
39
+ * @default 'primary'
40
+ * @type string
41
+ */
42
+ okType: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
43
+ /**
44
+ * The ok button props, follow jsx rules
45
+ * @type object
46
+ */
47
+ okButtonProps: ButtonProps;
48
+ /**
49
+ * The cancel button props, follow jsx rules
50
+ * @type object
51
+ */
52
+ cancelButtonProps: ButtonProps;
53
+ /**
54
+ * Whether to apply loading visual effect for OK button or not
55
+ * @default false
56
+ * @type boolean
57
+ */
58
+ confirmLoading: boolean;
59
+ showFooter: boolean;
60
+ footerHeight: string | number;
61
+ }
62
+ export interface DrawerProps extends DrawerFooterProps {
63
+ isDetail?: boolean;
64
+ loading?: boolean;
65
+ showDetailBack?: boolean;
66
+ visible?: boolean;
67
+ /**
68
+ * Built-in ScrollContainer component configuration
69
+ * @type ScrollContainerOptions
70
+ */
71
+ closeFunc?: () => Promise<any>;
72
+ triggerWindowResize?: boolean;
73
+ /**
74
+ * Whether a close (x) button is visible on top right of the Drawer dialog or not.
75
+ * @default true
76
+ * @type boolean
77
+ */
78
+ closable?: boolean;
79
+ /**
80
+ * Whether to unmount child components on closing drawer or not.
81
+ * @default false
82
+ * @type boolean
83
+ */
84
+ destroyOnClose?: boolean;
85
+ /**
86
+ * Return the mounted node for Drawer.
87
+ * @default 'body'
88
+ * @type any ( HTMLElement| () => HTMLElement | string)
89
+ */
90
+ getContainer?: () => HTMLElement | string;
91
+ /**
92
+ * Whether to show mask or not.
93
+ * @default true
94
+ * @type boolean
95
+ */
96
+ mask?: boolean;
97
+ /**
98
+ * Clicking on the mask (area outside the Drawer) to close the Drawer or not.
99
+ * @default true
100
+ * @type boolean
101
+ */
102
+ maskClosable?: boolean;
103
+ /**
104
+ * Style for Drawer's mask element.
105
+ * @default {}
106
+ * @type object
107
+ */
108
+ maskStyle?: CSSProperties;
109
+ /**
110
+ * The title for Drawer.
111
+ * @type any (string | slot)
112
+ */
113
+ title?: VNodeChild | JSX.Element;
114
+ /**
115
+ * The class name of the container of the Drawer dialog.
116
+ * @type string
117
+ */
118
+ wrapClassName?: string;
119
+ class?: string;
120
+ /**
121
+ * Style of wrapper element which **contains mask** compare to `drawerStyle`
122
+ * @type object
123
+ */
124
+ wrapStyle?: CSSProperties;
125
+ /**
126
+ * Style of the popup layer element
127
+ * @type object
128
+ */
129
+ drawerStyle?: CSSProperties;
130
+ /**
131
+ * Style of floating layer, typically used for adjusting its position.
132
+ * @type object
133
+ */
134
+ bodyStyle?: CSSProperties;
135
+ headerStyle?: CSSProperties;
136
+ /**
137
+ * Width of the Drawer dialog.
138
+ * @default 256
139
+ * @type string | number
140
+ */
141
+ width?: string | number;
142
+ /**
143
+ * placement is top or bottom, height of the Drawer dialog.
144
+ * @type string | number
145
+ */
146
+ height?: string | number;
147
+ /**
148
+ * The z-index of the Drawer.
149
+ * @default 1000
150
+ * @type number
151
+ */
152
+ zIndex?: number;
153
+ /**
154
+ * The placement of the Drawer.
155
+ * @default 'right'
156
+ * @type string
157
+ */
158
+ placement?: 'top' | 'right' | 'bottom' | 'left';
159
+ afterVisibleChange?: (visible?: boolean) => void;
160
+ keyboard?: boolean;
161
+ /**
162
+ * Specify a callback that will be called when a user clicks mask, close button or Cancel button.
163
+ */
164
+ onClose?: (e?: Event) => void;
165
+ }
166
+ export interface DrawerActionType {
167
+ scrollBottom: () => void;
168
+ scrollTo: (to: number) => void;
169
+ getScrollWrap: () => Element | null;
170
+ }
@@ -0,0 +1,6 @@
1
+ import { UseDrawerReturnType, UseDrawerInnerReturnType } from './typing';
2
+ /**
3
+ * @description: Applicable to separate drawer and call outside
4
+ */
5
+ export declare function useDrawer(): UseDrawerReturnType;
6
+ export declare const useDrawerInner: (callbackFn?: Fn) => UseDrawerInnerReturnType;
@@ -0,0 +1,6 @@
1
+ import { reactive } from "vue";
2
+ import "lodash-es";
3
+ import "@vueuse/core";
4
+ reactive({});
5
+ reactive({});
6
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-web",
3
- "version": "0.1.6-dev.19",
3
+ "version": "0.1.6-dev.20",
4
4
  "type": "module",
5
5
  "description": "paas 平台网页端核心包",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -65,20 +65,20 @@
65
65
  "vxe-table": "npm:@gct-paas/vxe-table@4.6.19",
66
66
  "wujie": "^1.0.29",
67
67
  "wujie-vue3": "^1.0.29",
68
- "@gct-paas/core": "0.1.6-dev.19",
69
- "@gct-paas/core-components": "0.1.6-dev.19",
70
- "@gct-paas/scss": "0.1.6-dev.19",
71
- "@gct-paas/v-ben": "0.1.6-dev.19"
68
+ "@gct-paas/core": "0.1.6-dev.20",
69
+ "@gct-paas/scss": "0.1.6-dev.20",
70
+ "@gct-paas/v-ben": "0.1.6-dev.20",
71
+ "@gct-paas/core-components": "0.1.6-dev.20"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@gct-paas/api": "^0.1.6-dev.11",
75
75
  "@types/sortablejs": "^1.15.1",
76
76
  "vant": ">=4",
77
77
  "vue": ">=3",
78
- "@gct-paas/core": "0.1.6-dev.19",
79
- "@gct-paas/scss": "0.1.6-dev.19",
80
- "@gct-paas/v-ben": "0.1.6-dev.19",
81
- "@gct-paas/core-components": "0.1.6-dev.19"
78
+ "@gct-paas/core": "0.1.6-dev.20",
79
+ "@gct-paas/core-components": "0.1.6-dev.20",
80
+ "@gct-paas/v-ben": "0.1.6-dev.20",
81
+ "@gct-paas/scss": "0.1.6-dev.20"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@types/bwip-js": "^3.2.3",