@gct-paas/schema 0.1.4-dev.10 → 0.1.4-dev.11

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 (42) hide show
  1. package/dist/index.esm.min.mjs +675 -840
  2. package/dist/index.min.cjs +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/es/constants/index.d.ts +1 -1
  5. package/es/index.d.ts +0 -1
  6. package/es/index.mjs +2 -10
  7. package/es/interface/designer.d.ts +0 -1
  8. package/es/interface/modal/i-modal-body.d.ts +1 -1
  9. package/es/interface/schema/widget-props/i-search-widget-props.d.ts +6 -0
  10. package/es/interface/schema/widget-types.d.ts +16 -6
  11. package/es/interface/widget/i-common.d.ts +2 -1
  12. package/es/interface/widget/i-editors.d.ts +2 -2
  13. package/es/interface/widget/i-props.d.ts +1 -10
  14. package/es/interface/widget/i-schemas.d.ts +1 -0
  15. package/es/utils/schema/index.d.ts +9 -1
  16. package/es/utils/schema/index.mjs +74 -3
  17. package/es/utils/schema/search.d.ts +9 -0
  18. package/es/utils/schema/search.mjs +155 -0
  19. package/es/utils/schema/utils.d.ts +21 -0
  20. package/es/utils/schema/utils.mjs +284 -0
  21. package/package.json +5 -5
  22. package/es/schema/common-config/base-button-config.d.ts +0 -3
  23. package/es/schema/common-config/base-button-config.mjs +0 -84
  24. package/es/schema/common-config/button-editor-config.d.ts +0 -4
  25. package/es/schema/common-config/button-editor-config.mjs +0 -206
  26. package/es/schema/common-config/button-props-func.d.ts +0 -5
  27. package/es/schema/common-config/button-props-func.mjs +0 -11
  28. package/es/schema/common-config/common-field-editor-config.d.ts +0 -10
  29. package/es/schema/common-config/common-field-editor-config.mjs +0 -61
  30. package/es/schema/common-config/common-style.d.ts +0 -3
  31. package/es/schema/common-config/common-style.mjs +0 -85
  32. package/es/schema/common-config/display-editor-config.d.ts +0 -3
  33. package/es/schema/common-config/display-editor-config.mjs +0 -89
  34. package/es/schema/common-config/permission-editor-config.d.ts +0 -2
  35. package/es/schema/common-config/permission-editor-config.mjs +0 -23
  36. package/es/schema/index.d.ts +0 -9
  37. package/es/schema/modal/modal-body.d.ts +0 -2
  38. package/es/schema/modal/modal-body.mjs +0 -9
  39. package/es/schema/modal/modal-footer.d.ts +0 -2
  40. package/es/schema/modal/modal-footer.mjs +0 -9
  41. package/es/schema/modal/modal.d.ts +0 -8
  42. package/es/schema/modal/modal.mjs +0 -182
@@ -1,182 +0,0 @@
1
- import { BuiltinType, Platform, PropGroup, StyleGroup, buildShortUUID } from '@gct-paas/core';
2
- import { widget as widget$1 } from './modal-body.mjs';
3
- import { widget as widget$2 } from './modal-footer.mjs';
4
-
5
- const widget = {
6
- id: "",
7
- /**默认是WEB 添加的时候会根据当前环境改变 */
8
- platform: Platform.WEB,
9
- /**系统用的name */
10
- name: "sys.pageDesigner.modal",
11
- alias: "",
12
- /**用户新建编辑的name */
13
- modalName: "",
14
- type: BuiltinType.MODAL,
15
- js: "",
16
- css: "",
17
- children: [widget$1, widget$2],
18
- props: {
19
- modalTitle: "弹窗",
20
- unitType: "px",
21
- modalWidth: 800,
22
- isSubTableModal: false,
23
- bindSubTableId: "",
24
- createModalTitle: "新建弹窗",
25
- editModalTitle: "编辑弹窗",
26
- hasFooter: true,
27
- openMode: "modal",
28
- /**just mobile */
29
- mUnitType: "%",
30
- mModalWidth: 80
31
- },
32
- style: {
33
- paddingAll: "16",
34
- paddingTop: "16",
35
- paddingRight: "16",
36
- paddingBottom: "16",
37
- paddingLeft: "16"
38
- },
39
- events: {},
40
- i18n: {},
41
- runJs: "",
42
- los: {},
43
- icon: "icon-motaikuang1",
44
- isField: false
45
- };
46
- const propEditorList = [
47
- {
48
- component: "text-editor",
49
- name: "modalTitle",
50
- label: "sys.pageDesigner.modalTitleName",
51
- group: PropGroup.BASIC,
52
- _config: {
53
- showCount: true,
54
- maxlength: 32
55
- },
56
- hidden: (widget2) => {
57
- return widget2.props.isSubTableModal;
58
- }
59
- },
60
- {
61
- component: "input-unit-editor",
62
- name: { unitType: "unitType", modalWidth: "modalWidth" },
63
- label: "sys.pageDesigner.modalWidthProp",
64
- group: PropGroup.MODAL,
65
- hidden: (widget2) => {
66
- return widget2.platform === Platform.MOBILE;
67
- }
68
- },
69
- {
70
- component: "input-unit-editor",
71
- name: { unitType: "mUnitType", modalWidth: "mModalWidth" },
72
- label: "sys.pageDesigner.modalHeightProp",
73
- group: PropGroup.MODAL,
74
- hidden: (widget2) => {
75
- return widget2.platform !== Platform.MOBILE;
76
- },
77
- _config: {
78
- filterUnitType: "px"
79
- }
80
- },
81
- {
82
- component: "text-editor",
83
- name: "createModalTitle",
84
- label: "sys.pageDesigner.createModalTitle",
85
- group: PropGroup.MODALTITLECONFIG,
86
- _config: {
87
- i18n: true
88
- },
89
- hidden: (widget2) => {
90
- return !widget2.props.isSubTableModal;
91
- }
92
- },
93
- {
94
- component: "text-editor",
95
- name: "editModalTitle",
96
- label: "sys.pageDesigner.editModalTitle",
97
- group: PropGroup.MODALTITLECONFIG,
98
- _config: {
99
- i18n: true
100
- },
101
- hidden: (widget2) => {
102
- return !widget2.props.isSubTableModal;
103
- }
104
- },
105
- {
106
- component: "select-editor",
107
- name: "openMode",
108
- label: "sys.appDesigner.openMode",
109
- group: PropGroup.MODAL,
110
- hidden: (widget2) => {
111
- return widget2.platform !== Platform.WEB;
112
- },
113
- _config: {
114
- options: () => {
115
- return [
116
- {
117
- label: "打开弹窗页面",
118
- value: "modal"
119
- },
120
- {
121
- label: "右侧划入页面",
122
- value: "drawer"
123
- }
124
- ];
125
- }
126
- },
127
- changeCallback: (widget2, value) => {
128
- if (value === "drawer") {
129
- widget2.props.unitType = "%";
130
- widget2.props.modalWidth = 80;
131
- } else {
132
- widget2.props.unitType = "px";
133
- widget2.props.modalWidth = 800;
134
- }
135
- }
136
- },
137
- {
138
- component: "switch-editor",
139
- name: "hasFooter",
140
- label: "sys.pageDesigner.operateButton",
141
- group: PropGroup.BUTTON,
142
- hidden: (widget2) => {
143
- return widget2.props.isSubTableModal;
144
- }
145
- }
146
- ];
147
- const styleEditorList = [
148
- {
149
- component: "color-editor",
150
- name: "backgroundColor",
151
- label: "sys.pageDesigner.backgroundColor",
152
- group: StyleGroup.BACKGROUND
153
- },
154
- {
155
- component: "margin-editor",
156
- group: StyleGroup.MARGIN,
157
- _config: {
158
- hiddenMarginOrPadding: "margin"
159
- }
160
- }
161
- ];
162
- const eventList = [
163
- {
164
- name: "onMounted",
165
- title: "sys.pageDesigner.onMounted",
166
- params: []
167
- }
168
- ];
169
- const runCallback = () => {
170
- };
171
- const beforeCreate = (widget2) => {
172
- widget2.children[0].id = buildShortUUID(widget2.children[0].type);
173
- widget2.children[1].id = buildShortUUID(widget2.children[1].type);
174
- };
175
- const designerConfig = {
176
- basicProps: {
177
- key_label: "弹窗",
178
- alias_hidden: true
179
- }
180
- };
181
-
182
- export { beforeCreate, designerConfig, eventList, propEditorList, runCallback, styleEditorList, widget };