@gct-paas/design 0.1.6-dev.21 → 0.1.6-dev.23

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.
@@ -15,6 +15,102 @@ var toolkitPinned = ref(false);
15
15
  var instance = class ComponentUtils {
16
16
  static SubTableGroup = "SubTableGroup";
17
17
  static CardListGroup = "CardListGroup";
18
+ static TxnPageGroup = "TxnPageGroup";
19
+ /** 按分组上下文存储分类组件映射,仅保留现有两套逻辑 */
20
+ static _categoryCompsMap = {
21
+ default: {
22
+ [CategoryTypeEnum.FORM]: [
23
+ FormComponents.GenRadio,
24
+ FormComponents.GenCheckbox,
25
+ FormComponents.GenSwitch,
26
+ FormComponents.Text,
27
+ FormComponents.GenImage,
28
+ FormComponents.Form
29
+ ],
30
+ [CategoryTypeEnum.LAYOUT]: [
31
+ FormComponents.Collapse,
32
+ FormComponents.SpaceOccupation,
33
+ FormComponents.Divider,
34
+ FormComponents.ButtonContainer,
35
+ FormComponents.LayoutContainer,
36
+ FormComponents.Grid,
37
+ FormComponents.LeftRightColumns,
38
+ FormComponents.Tabs
39
+ ],
40
+ [CategoryTypeEnum.ADVANCED]: [
41
+ FormComponents.Search,
42
+ FormComponents.QuickSearch,
43
+ FormComponents.SelectSearch,
44
+ FormComponents.TableSelect,
45
+ FormComponents.Iframe,
46
+ FormComponents.CustomCode
47
+ ],
48
+ [CategoryTypeEnum.PROCESS]: [
49
+ FormComponents.FormProcess,
50
+ FormComponents.ProcessButton,
51
+ FormComponents.ButtonProcessContainer,
52
+ FormComponents.ApprovalHistory,
53
+ FormComponents.FlowDiagram
54
+ ],
55
+ [CategoryTypeEnum.BUTTON]: [
56
+ FormComponents.CustomButton,
57
+ FormComponents.SubmitButton,
58
+ FormComponents.RefreshButton,
59
+ FormComponents.ResetButton,
60
+ FormComponents.LabelPrintButton
61
+ ],
62
+ [CategoryTypeEnum.DATA]: [
63
+ FormComponents.CardList,
64
+ FormComponents.DataTable,
65
+ FormComponents.DataVTable,
66
+ FormComponents.TreeTable,
67
+ FormComponents.RefDataTable,
68
+ FormComponents.Descriptions
69
+ ]
70
+ },
71
+ SubTableGroup: {
72
+ [CategoryTypeEnum.FORM]: [
73
+ FormComponents.GenRadio,
74
+ FormComponents.GenCheckbox,
75
+ FormComponents.GenSwitch,
76
+ FormComponents.Text,
77
+ FormComponents.GenImage
78
+ ],
79
+ [CategoryTypeEnum.LAYOUT]: [
80
+ FormComponents.Collapse,
81
+ FormComponents.SpaceOccupation,
82
+ FormComponents.Divider,
83
+ FormComponents.LayoutContainer,
84
+ FormComponents.Grid,
85
+ FormComponents.LeftRightColumns,
86
+ FormComponents.Tabs
87
+ ],
88
+ [CategoryTypeEnum.ADVANCED]: [FormComponents.Iframe, FormComponents.CustomCode],
89
+ [CategoryTypeEnum.PROCESS]: [],
90
+ [CategoryTypeEnum.BUTTON]: [],
91
+ [CategoryTypeEnum.DATA]: []
92
+ },
93
+ TxnPageGroup: {
94
+ [CategoryTypeEnum.FORM]: [
95
+ FormComponents.GenRadio,
96
+ FormComponents.GenCheckbox,
97
+ FormComponents.GenSwitch,
98
+ FormComponents.Text,
99
+ FormComponents.GenImage,
100
+ FormComponents.Form
101
+ ],
102
+ [CategoryTypeEnum.LAYOUT]: [
103
+ FormComponents.Collapse,
104
+ FormComponents.SpaceOccupation,
105
+ FormComponents.Divider,
106
+ FormComponents.LayoutContainer,
107
+ FormComponents.Grid,
108
+ FormComponents.LeftRightColumns,
109
+ FormComponents.Tabs
110
+ ],
111
+ [CategoryTypeEnum.DATA]: [FormComponents.DataTable, FormComponents.Descriptions]
112
+ }
113
+ };
18
114
  static _instance;
19
115
  /** 当前所处的组件分组上下文 */
20
116
  groupType = "";
@@ -30,6 +126,11 @@ var instance = class ComponentUtils {
30
126
  CategoryTypeEnum.LAYOUT,
31
127
  CategoryTypeEnum.ADVANCED
32
128
  ];
129
+ if (this.groupType === ComponentUtils.TxnPageGroup) return [
130
+ CategoryTypeEnum.FORM,
131
+ CategoryTypeEnum.LAYOUT,
132
+ CategoryTypeEnum.DATA
133
+ ];
33
134
  return [
34
135
  CategoryTypeEnum.FORM,
35
136
  CategoryTypeEnum.LAYOUT,
@@ -47,92 +148,17 @@ var instance = class ComponentUtils {
47
148
  * @returns 当前上下文下允许使用的组件枚举值列表
48
149
  */
49
150
  _getCompsForCategory(categoryType) {
50
- const isSubTable = this.groupType === ComponentUtils.SubTableGroup;
51
- switch (categoryType) {
52
- case CategoryTypeEnum.FORM:
53
- if (isSubTable) return [
54
- FormComponents.GenRadio,
55
- FormComponents.GenCheckbox,
56
- FormComponents.GenSwitch,
57
- FormComponents.Text,
58
- FormComponents.GenImage
59
- ];
60
- return [
61
- FormComponents.GenRadio,
62
- FormComponents.GenCheckbox,
63
- FormComponents.GenSwitch,
64
- FormComponents.Text,
65
- FormComponents.GenImage,
66
- FormComponents.Form
67
- ];
68
- case CategoryTypeEnum.LAYOUT:
69
- if (isSubTable) return [
70
- FormComponents.Collapse,
71
- FormComponents.SpaceOccupation,
72
- FormComponents.Divider,
73
- FormComponents.LayoutContainer,
74
- FormComponents.Grid,
75
- FormComponents.LeftRightColumns,
76
- FormComponents.Tabs
77
- ];
78
- return [
79
- FormComponents.Collapse,
80
- FormComponents.SpaceOccupation,
81
- FormComponents.Divider,
82
- FormComponents.ButtonContainer,
83
- FormComponents.LayoutContainer,
84
- FormComponents.Grid,
85
- FormComponents.LeftRightColumns,
86
- FormComponents.Tabs
87
- ];
88
- case CategoryTypeEnum.ADVANCED:
89
- if (isSubTable) return [FormComponents.Iframe, FormComponents.CustomCode];
90
- return [
91
- FormComponents.Search,
92
- FormComponents.QuickSearch,
93
- FormComponents.SelectSearch,
94
- FormComponents.TableSelect,
95
- FormComponents.Iframe,
96
- FormComponents.CustomCode
97
- ];
98
- case CategoryTypeEnum.PROCESS:
99
- if (isSubTable) return [];
100
- return [
101
- FormComponents.FormProcess,
102
- FormComponents.ProcessButton,
103
- FormComponents.ButtonProcessContainer,
104
- FormComponents.ApprovalHistory,
105
- FormComponents.FlowDiagram
106
- ];
107
- case CategoryTypeEnum.BUTTON:
108
- if (isSubTable) return [];
109
- return [
110
- FormComponents.CustomButton,
111
- FormComponents.SubmitButton,
112
- FormComponents.RefreshButton,
113
- FormComponents.ResetButton,
114
- FormComponents.LabelPrintButton
115
- ];
116
- case CategoryTypeEnum.DATA:
117
- if (isSubTable) return [];
118
- return [
119
- FormComponents.CardList,
120
- FormComponents.DataTable,
121
- FormComponents.DataVTable,
122
- FormComponents.TreeTable,
123
- FormComponents.RefDataTable,
124
- FormComponents.Descriptions
125
- ];
126
- default: return [];
127
- }
151
+ const groupKey = this.groupType === ComponentUtils.SubTableGroup ? "SubTableGroup" : this.groupType === ComponentUtils.TxnPageGroup ? "TxnPageGroup" : "default";
152
+ return ComponentUtils._categoryCompsMap[groupKey][categoryType] ?? [];
128
153
  }
129
154
  /**
130
155
  * 根据所处分组上下文更新 groupType
131
156
  *
132
157
  * @param data - 当前选中组件数据
133
158
  * @param modalState - 是否处于子表单(弹框)状态
159
+ * @param isTxn - 是否处于事务页面状态
134
160
  */
135
- changeGroupType({ data, modalState }) {
161
+ changeGroupType({ data, modalState, isTxn }) {
136
162
  if (data.type === FormComponents.CardList) {
137
163
  this._setGroupType(ComponentUtils.CardListGroup);
138
164
  return;
@@ -141,6 +167,10 @@ var instance = class ComponentUtils {
141
167
  this._setGroupType(ComponentUtils.SubTableGroup);
142
168
  return;
143
169
  }
170
+ if (isTxn) {
171
+ this._setGroupType(ComponentUtils.TxnPageGroup);
172
+ return;
173
+ }
144
174
  this._setGroupType("");
145
175
  }
146
176
  /** 更新组件分组上下文 */
@@ -260,11 +290,12 @@ function useToolkit() {
260
290
  });
261
291
  }
262
292
  /** 根据当前选中组件的上下文刷新组件列表 */
263
- function changeToolkitWidgets({ data, modalState }) {
293
+ function changeToolkitWidgets({ data, modalState, isTxn }) {
264
294
  const oldGroupType = instance.groupType;
265
295
  instance.changeGroupType({
266
296
  data,
267
- modalState
297
+ modalState,
298
+ isTxn
268
299
  });
269
300
  if (oldGroupType !== instance.groupType) toolkitWidgets.value = instance.getWidgetsToolkit({
270
301
  platform: _gct.store.context.platform,
@@ -1,11 +1,9 @@
1
1
  import { Ref, App } from 'vue';
2
2
  import { PanelEnum } from '@gct-paas/core';
3
- import { PermissionResponse, WebpageResponse } from '@gct-paas/api/apaas';
3
+ import { PermissionResponse } from '@gct-paas/api/apaas';
4
4
  export declare const newKeyTag = "___new___";
5
- export type PageInfo = WebpageResponse & {
6
- categoryId?: string;
7
- };
8
- export declare const pageInfo: Ref<PageInfo>;
5
+ export type { PageInfo } from '../design-state';
6
+ export { pageInfo } from '../design-state';
9
7
  export declare const pagePermissions: Ref<{
10
8
  createTime?: string | undefined;
11
9
  createUserId?: string | undefined;
@@ -40,6 +38,15 @@ export declare const currentPanel: Ref<PanelEnum>;
40
38
  * @returns
41
39
  */
42
40
  export declare function loadPageInfo(app: App): Promise<void>;
41
+ /**
42
+ * 加载页面信息
43
+ * @returns
44
+ */
45
+ export declare function loadTxnPageInfo(app: App): Promise<void>;
46
+ /**
47
+ * @param mode 切换模式
48
+ */
49
+ export declare function toggleTxnPageInfo(mode: 'create' | 'detail'): Promise<void>;
43
50
  /**
44
51
  * 初始化界面占用信息
45
52
  */
@@ -54,4 +61,3 @@ export declare function usePage(): {
54
61
  togglePanel: typeof togglePanel;
55
62
  initLockState: typeof initLockState;
56
63
  };
57
- export {};
@@ -4,20 +4,19 @@ import { platform } from "../../../utils/design-view/index.mjs";
4
4
  import { DesignPluginPgkUtil } from "../../../utils/design-plugin-pkg-util/design-plugin-pkg-util.mjs";
5
5
  import { createWidgetByType } from "../../../utils/schema/index.mjs";
6
6
  import "../../../utils/index.mjs";
7
- import "../design-state.mjs";
7
+ import { pageInfo } from "../design-state.mjs";
8
8
  import { useCacheHistory } from "../../develop/useCacheHistory.mjs";
9
9
  import { useToolkit } from "../layout/useToolkit.mjs";
10
10
  import { useDesigner } from "../useDesigner.mjs";
11
11
  import { useUserOccupy } from "../../../components/user-occupy/useUserOccupy.mjs";
12
12
  import "../../../components/index.mjs";
13
13
  import { isEmpty, isNil } from "lodash-es";
14
- import { FormComponents, KitPkgUtil, PanelEnum, Platform, t } from "@gct-paas/core";
14
+ import { ButtonSize, ButtonStyle, FormComponents, KitPkgUtil, PanelEnum, Platform, t } from "@gct-paas/core";
15
15
  import { computed, createVNode, ref } from "vue";
16
16
  import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
17
17
  import { Modal } from "ant-design-vue";
18
18
  //#region src/hooks/design-view/page/usePage.ts
19
19
  var newKeyTag = "___new___";
20
- var pageInfo = ref({});
21
20
  var pagePermissions = ref([]);
22
21
  var { setLockInfo, initOccupy, loadOccupyInfo } = useUserOccupy();
23
22
  var unlockAvailable = computed(() => {
@@ -113,9 +112,132 @@ async function loadPageInfo(app) {
113
112
  loadPageDesignHistoryList();
114
113
  pagePermissions.value = await _api.apaas.permission.getList({ relationId: _gct.store.context.pid }) || [];
115
114
  if (!pid.startsWith("___new___")) initLockState();
115
+ pageJson.pageConfig.title = "新建页";
116
116
  savePageJsonSnapshot();
117
117
  }
118
118
  /**
119
+ * 加载页面信息
120
+ * @returns
121
+ */
122
+ async function loadTxnPageInfo(app) {
123
+ const { initToolkitWidgets } = useToolkit();
124
+ const { setPageJson, loadPageDesignHistoryList, emitCache, pageJson, setPluginConfigs, savePageJsonSnapshot } = useDesigner();
125
+ const { historyUtils } = useCacheHistory();
126
+ platform.value = _gct.store.context.platform || Platform.WEB;
127
+ const baseid = _gct.store.context.baseid || "";
128
+ const pid = _gct.store.context.pid || "";
129
+ if (baseid) {
130
+ const res = await _api.apaas.transaction.getGetVersionById({ id: baseid });
131
+ pageInfo.value = {
132
+ id: newKeyTag,
133
+ name: res.name,
134
+ key: res.key,
135
+ modelKey: res.modelKey,
136
+ designerJson: "",
137
+ _designerJson: "",
138
+ detailDesignerJson: "",
139
+ txnPageMode: "create",
140
+ baseId: baseid
141
+ };
142
+ } else if (pid.startsWith("___new___")) pageInfo.value = {
143
+ id: newKeyTag,
144
+ name: "",
145
+ key: pid.replace(`${newKeyTag}:`, ""),
146
+ designerJson: "",
147
+ _designerJson: "",
148
+ detailDesignerJson: "",
149
+ txnPageMode: "create"
150
+ };
151
+ else {
152
+ const pageInfoRes = await _api.apaas.transaction.getInfo({ id: _gct.store.context.pid });
153
+ pageInfo.value = pageInfoRes;
154
+ pageInfo.value._designerJson = pageInfoRes.designerJson;
155
+ pageInfo.value.txnPageMode = "create";
156
+ }
157
+ const all = [];
158
+ if (_gct.store.appInfo.suiteKey) all.push(KitPkgUtil.loadDesign(_gct.store.appInfo.suiteKey).then((module) => {
159
+ if (module) module.setupApp(app);
160
+ }));
161
+ const _configs = [];
162
+ all.push(DesignPluginPgkUtil.loadDesignPlugin(app, platform.value, _gct.store.appInfo.suiteKey ? [_gct.store.appInfo.suiteKey] : void 0).then(([configs]) => {
163
+ _configs.push(...configs);
164
+ setPluginConfigs(configs);
165
+ }));
166
+ await Promise.all(all);
167
+ if (!historyUtils.isHistoryInfoExist(_gct.store.context.pid)) historyUtils.init({ historyId: _gct.store.context.pid ?? "" });
168
+ if (pageInfo.value.designerJson && !isNil(pageInfo.value.designerJson) && !isEmpty(pageInfo.value.designerJson)) {
169
+ const _json = JSON.parse(pageInfo.value.designerJson);
170
+ if (_json && _json.plugins) {
171
+ const items = _json.plugins.filter((item) => {
172
+ return _configs.findIndex((config) => config.key === item.key) === -1;
173
+ });
174
+ await DesignPluginPgkUtil.loadDesignDeletedPlugins(platform.value, items);
175
+ }
176
+ if (!_json.pageConfig) _json.pageConfig = {
177
+ title: "",
178
+ i18n: {},
179
+ hasFooter: false
180
+ };
181
+ setPageJson({
182
+ ..._json,
183
+ id: pageInfo.value.id
184
+ }, true);
185
+ } else {
186
+ emitCache();
187
+ setPageJson({
188
+ newDesigner: true,
189
+ style: {
190
+ paddingAll: "",
191
+ paddingTop: "",
192
+ paddingRight: "16",
193
+ paddingBottom: "16",
194
+ paddingLeft: "16"
195
+ }
196
+ }, true);
197
+ }
198
+ if (!pageJson.widgets.some((item) => item.type === FormComponents.BottomButtonContainer)) {
199
+ const bottomBtnWidget = createWidgetByType(FormComponents.BottomButtonContainer);
200
+ [FormComponents.TxnCancelButton, FormComponents.TxnConfirmButton].forEach((e) => {
201
+ const data = createWidgetByType(e);
202
+ data.props.parentWidgetId = bottomBtnWidget.id;
203
+ data.props.buttonStyle = ButtonStyle.ORDINARY;
204
+ data.props.size = ButtonSize.DEFAULT;
205
+ data.props.noDelete = true;
206
+ bottomBtnWidget.children?.push(data);
207
+ });
208
+ pageJson.widgets.push(bottomBtnWidget);
209
+ }
210
+ initToolkitWidgets();
211
+ loadPageDesignHistoryList();
212
+ pagePermissions.value = await _api.apaas.permission.getList({ relationId: _gct.store.context.pid }) || [];
213
+ if (!pid.startsWith("___new___")) initLockState();
214
+ savePageJsonSnapshot();
215
+ }
216
+ /**
217
+ * @param mode 切换模式
218
+ */
219
+ async function toggleTxnPageInfo(mode) {
220
+ const { setTxnPageJson, pageJson } = useDesigner();
221
+ if (mode === "create") {
222
+ pageInfo.value.detailDesignerJson = JSON.stringify(pageJson);
223
+ pageInfo.value.txnPageMode = mode;
224
+ setTxnPageJson({ ...JSON.parse(pageInfo.value._designerJson) });
225
+ } else {
226
+ pageInfo.value._designerJson = JSON.stringify(pageJson);
227
+ pageInfo.value.txnPageMode = mode;
228
+ setTxnPageJson({ ...pageInfo.value.detailDesignerJson ? JSON.parse(pageInfo.value.detailDesignerJson) : {
229
+ newDesigner: true,
230
+ style: {
231
+ paddingAll: "",
232
+ paddingTop: "",
233
+ paddingRight: "16",
234
+ paddingBottom: "16",
235
+ paddingLeft: "16"
236
+ }
237
+ } });
238
+ }
239
+ }
240
+ /**
119
241
  * 初始化界面占用信息
120
242
  */
121
243
  function initLockState() {
@@ -166,4 +288,4 @@ function usePage() {
166
288
  };
167
289
  }
168
290
  //#endregion
169
- export { currentPanel, loadPageInfo, lockPage, newKeyTag, pageInfo, pagePermissions, togglePanel, unlockAvailable, usePage };
291
+ export { currentPanel, loadPageInfo, loadTxnPageInfo, lockPage, newKeyTag, pagePermissions, togglePanel, toggleTxnPageInfo, unlockAvailable, usePage };
@@ -1091,8 +1091,9 @@ export declare function useDesigner(): {
1091
1091
  methodMap: import('vue').Ref<import('@gct-paas/schema').ExportMethod, import('@gct-paas/schema').ExportMethod>;
1092
1092
  checkWidgetMove: () => boolean;
1093
1093
  handleAddDrag: (newIndex: number, childrenList: LowCodeWidget.BasicSchema[], scope: SCOPE, formID?: string) => void;
1094
- setPageJson: (json: PageJson) => Promise<void>;
1095
- save: (flag?: boolean, showSuccess?: boolean) => Promise<boolean>;
1094
+ setPageJson: (json: PageJson, hasFooter?: boolean) => Promise<void>;
1095
+ setTxnPageJson: (json: PageJson, hasFooter?: boolean) => Promise<void>;
1096
+ save: (flag?: boolean, showSuccess?: boolean, isTxn?: boolean) => Promise<boolean>;
1096
1097
  savePageJsonSnapshot: (json?: PageJson) => void;
1097
1098
  emitCache: () => void;
1098
1099
  undoOrRestore: (content: string) => void;
@@ -1,7 +1,7 @@
1
1
  import { platform } from "../../utils/design-view/index.mjs";
2
2
  import { initMethodMap } from "../../utils/transform-js/transform-js.mjs";
3
3
  import "../../utils/index.mjs";
4
- import { methodMap, pageJson } from "./design-state.mjs";
4
+ import { defaultPageJson, methodMap, pageJson } from "./design-state.mjs";
5
5
  import { useDesignModal } from "./designer/useDesignModal.mjs";
6
6
  import { useDesignPreview } from "./designer/useDesignPreview.mjs";
7
7
  import { useWidgetRegistry } from "./widget/useWidgetRegistry.mjs";
@@ -38,14 +38,22 @@ function useDesigner() {
38
38
  /**
39
39
  * 设置设计器的 pageJSON
40
40
  */
41
- async function setPageJson(json) {
42
- pageJson.pageConfig.hasFooter = platform.value === Platform.MOBILE || platform.value === Platform.PAD;
41
+ async function setPageJson(json, hasFooter = false) {
42
+ pageJson.pageConfig.hasFooter = hasFooter || platform.value === Platform.MOBILE || platform.value === Platform.PAD;
43
43
  Object.assign(pageJson, json);
44
44
  initMethodMap(pageJson.js).then((map) => {
45
45
  methodMap.value = map;
46
46
  });
47
47
  cache.emitCache();
48
48
  }
49
+ async function setTxnPageJson(json, hasFooter = false) {
50
+ pageJson.pageConfig.hasFooter = hasFooter || platform.value === Platform.MOBILE || platform.value === Platform.PAD;
51
+ Object.assign(pageJson, defaultPageJson, json);
52
+ initMethodMap(pageJson.js).then((map) => {
53
+ methodMap.value = map;
54
+ });
55
+ cache.emitCache();
56
+ }
49
57
  /** 检查是否可以拖拽进入的方法,比如某些组件不能拖到某些组件内 */
50
58
  function checkWidgetMove() {
51
59
  return true;
@@ -66,6 +74,7 @@ function useDesigner() {
66
74
  checkWidgetMove,
67
75
  handleAddDrag,
68
76
  setPageJson,
77
+ setTxnPageJson,
69
78
  save: saveHook.save,
70
79
  savePageJsonSnapshot: saveHook.savePageJsonSnapshot,
71
80
  emitCache: cache.emitCache,
package/es/index.mjs CHANGED
@@ -39,7 +39,7 @@ import { FieldOverrideUtil, setupOverride } from "./schema/field/index.mjs";
39
39
  import { BaseSearch, getSearchOptions } from "./schema/search/BaseSearch.mjs";
40
40
  import { BaseDate } from "./schema/search/BaseDate.mjs";
41
41
  import "./schema/index.mjs";
42
- import { isModified, loading, methodMap, modalDesignId, modalDesignState, modalInfo, noMore, pageDesignHistoryList, pageJson, pageJsonSnapshot, pageNo, pluginConfigs, regRoot, subTableModalId, subTableModalState, transformPageJson, wfNodesModalId, wfNodesModalState, widgetInfo, workflowModalId, workflowModalState } from "./hooks/design-view/design-state.mjs";
42
+ import { isModified, loading, methodMap, modalDesignId, modalDesignState, modalInfo, noMore, pageDesignHistoryList, pageInfo, pageJson, pageJsonSnapshot, pageNo, pluginConfigs, regRoot, subTableModalId, subTableModalState, transformPageJson, wfNodesModalId, wfNodesModalState, widgetInfo, workflowModalId, workflowModalState } from "./hooks/design-view/design-state.mjs";
43
43
  import { useScope } from "./hooks/design-view/layout/useScope.mjs";
44
44
  import { useGlobal } from "./hooks/design-view/global/useGlobal.mjs";
45
45
  import { useDesignModal } from "./hooks/design-view/designer/useDesignModal.mjs";
@@ -47,7 +47,7 @@ import { useDesignPreview } from "./hooks/design-view/designer/useDesignPreview.
47
47
  import { useCacheHistory, useCacheHistoryInner } from "./hooks/develop/useCacheHistory.mjs";
48
48
  import { useWidgetRegistry } from "./hooks/design-view/widget/useWidgetRegistry.mjs";
49
49
  import { useToolkit } from "./hooks/design-view/layout/useToolkit.mjs";
50
- import { currentPanel, loadPageInfo, lockPage, newKeyTag, pageInfo, pagePermissions, togglePanel, unlockAvailable, usePage } from "./hooks/design-view/page/usePage.mjs";
50
+ import { currentPanel, loadPageInfo, loadTxnPageInfo, lockPage, newKeyTag, pagePermissions, togglePanel, toggleTxnPageInfo, unlockAvailable, usePage } from "./hooks/design-view/page/usePage.mjs";
51
51
  import { useWidgetQuery } from "./hooks/design-view/widget/useWidgetQuery.mjs";
52
52
  import { useSelectedWidget } from "./hooks/design-view/widget/useSelectedWidget.mjs";
53
53
  import { useDesignCache } from "./hooks/design-view/designer/useDesignCache.mjs";
@@ -105,4 +105,4 @@ function onInit() {
105
105
  }
106
106
  onInit();
107
107
  //#endregion
108
- export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignContent, DesignEditorNode, DesignEditorNodeProvider, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignItemPreview, DesignNode, DesignNodePrefix, DesignNodeType, DesignPluginPgkUtil, DesignViewController, DesignViewHooks, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldOverrideUtil, FieldSchema, InsertNodeMode, MaterialContent, MaterialGroup, MaterialRegister, MenuClickEvent, multi_field_display_default as MultiFieldDisplay, NodeBaseProvider, NodeRegister, NotMask, PageTypeEnum, PanelContent, PropsEditorRegister, SCREditorUtils, user_lock_default as UserLock, user_occupy_default as UserOccupy, asyncIdentify, baseBtnEditor, baseBtnProp, basicAttrsUtils, basicFieldEditor, beginDrag, BTN_TYPE_COLOR as btnTypeColor, buildRunJs, buildRuntimeJson, buttonEditor, buttonProps, buttonStyleEditor, changeCmpData, commonStyle, createWidgetByType, createWidgetProvider, createdSearchField, currentPanel, customMenu, deptFilter, designCreateAppVue, designInterceptors, designRegister, designSetupApp, destroyOccupyTimer, deviceEvent, displayEditor, displayProps, explainEditor, findAllChildrenTypes, fixedAlignEditor, flatten, formItemProps, formulaFilter, getAutofillEditor, getBindCmpTypeEditor, getInputAttrEditor, getSearchOptions, hiddenButtonProps, initFieldWidgetRuntime, initMethodMap, isCanCrop, isModified, loadPageInfo, loadPageOccupyInfo, loading, lockPage, methodMap, modal_exports as modalCfg, modalDesignId, modalDesignState, modalInfo, multiFieldEditor, newKeyTag, noMore, nodeContainerProps, nodeEditorProps, nodeProps, notNeedPxStyle, occupyPage, onWidgetInfoInit, openFormulaEditorByDesign, pageDesignHistoryList, pageInfo, pageJson, pageJsonSnapshot, pageNo, pageOccupyInfo, pagePermissions, permissionEditor, placeholderEditor, platform, pluginConfigs, PRESET_COLOR as presetColor, propEditorProps, propsToStyle, regRoot, regexEditor, rgba2hex, schemaToStyle, setupOverride, shadeColor, styleEditorProps, subTableModalId, subTableModalState, submitInHideEditor, togglePanel, transformField2Component, transformPageJson, unlockAvailable, uploadDraggerEditor, useAsyncFieldConfig, useAsyncFileAttrs, useAsyncOperateField, useCacheHistory, useCacheHistoryInner, useDesignCache, useDesignHistory, useDesignModal, useDesignPreview, useDesignSave, useDesignViewController, useDesignViewStore, useDesigner, useDesignerController, useFieldTransfer, useGlobal, useModelField, usePage, usePageOccupy, usePropEditor, useScope, useSelectedWidget, useStyle, useStyleEditor, useToolkit, useUserOccupy, useWidget, useWidgetQuery, useWidgetRegistry, validatorEditor, wfNodesModalId, wfNodesModalState, widgetInfo, widgetProps, widgetWrapperProps, workflowModalId, workflowModalState };
108
+ export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignContent, DesignEditorNode, DesignEditorNodeProvider, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignItemPreview, DesignNode, DesignNodePrefix, DesignNodeType, DesignPluginPgkUtil, DesignViewController, DesignViewHooks, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldOverrideUtil, FieldSchema, InsertNodeMode, MaterialContent, MaterialGroup, MaterialRegister, MenuClickEvent, multi_field_display_default as MultiFieldDisplay, NodeBaseProvider, NodeRegister, NotMask, PageTypeEnum, PanelContent, PropsEditorRegister, SCREditorUtils, user_lock_default as UserLock, user_occupy_default as UserOccupy, asyncIdentify, baseBtnEditor, baseBtnProp, basicAttrsUtils, basicFieldEditor, beginDrag, BTN_TYPE_COLOR as btnTypeColor, buildRunJs, buildRuntimeJson, buttonEditor, buttonProps, buttonStyleEditor, changeCmpData, commonStyle, createWidgetByType, createWidgetProvider, createdSearchField, currentPanel, customMenu, deptFilter, designCreateAppVue, designInterceptors, designRegister, designSetupApp, destroyOccupyTimer, deviceEvent, displayEditor, displayProps, explainEditor, findAllChildrenTypes, fixedAlignEditor, flatten, formItemProps, formulaFilter, getAutofillEditor, getBindCmpTypeEditor, getInputAttrEditor, getSearchOptions, hiddenButtonProps, initFieldWidgetRuntime, initMethodMap, isCanCrop, isModified, loadPageInfo, loadPageOccupyInfo, loadTxnPageInfo, loading, lockPage, methodMap, modal_exports as modalCfg, modalDesignId, modalDesignState, modalInfo, multiFieldEditor, newKeyTag, noMore, nodeContainerProps, nodeEditorProps, nodeProps, notNeedPxStyle, occupyPage, onWidgetInfoInit, openFormulaEditorByDesign, pageDesignHistoryList, pageInfo, pageJson, pageJsonSnapshot, pageNo, pageOccupyInfo, pagePermissions, permissionEditor, placeholderEditor, platform, pluginConfigs, PRESET_COLOR as presetColor, propEditorProps, propsToStyle, regRoot, regexEditor, rgba2hex, schemaToStyle, setupOverride, shadeColor, styleEditorProps, subTableModalId, subTableModalState, submitInHideEditor, togglePanel, toggleTxnPageInfo, transformField2Component, transformPageJson, unlockAvailable, uploadDraggerEditor, useAsyncFieldConfig, useAsyncFileAttrs, useAsyncOperateField, useCacheHistory, useCacheHistoryInner, useDesignCache, useDesignHistory, useDesignModal, useDesignPreview, useDesignSave, useDesignViewController, useDesignViewStore, useDesigner, useDesignerController, useFieldTransfer, useGlobal, useModelField, usePage, usePageOccupy, usePropEditor, useScope, useSelectedWidget, useStyle, useStyleEditor, useToolkit, useUserOccupy, useWidget, useWidgetQuery, useWidgetRegistry, validatorEditor, wfNodesModalId, wfNodesModalState, widgetInfo, widgetProps, widgetWrapperProps, workflowModalId, workflowModalState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/design",
3
- "version": "0.1.6-dev.21",
3
+ "version": "0.1.6-dev.23",
4
4
  "type": "module",
5
5
  "description": "paas 平台设计界面底包",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -51,10 +51,10 @@
51
51
  "react-dnd-html5-backend": "^16.0.1",
52
52
  "vue": "^3.5.30",
53
53
  "vue3-dnd": "^2.1.0",
54
- "@gct-paas/core": "0.1.6-dev.21",
55
- "@gct-paas/core-web": "0.1.6-dev.21",
56
- "@gct-paas/schema": "0.1.6-dev.21",
57
- "@gct-paas/scss": "0.1.6-dev.21"
54
+ "@gct-paas/core": "0.1.6-dev.23",
55
+ "@gct-paas/core-web": "0.1.6-dev.23",
56
+ "@gct-paas/schema": "0.1.6-dev.23",
57
+ "@gct-paas/scss": "0.1.6-dev.23"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/babel__core": "^7.20.5",
@@ -64,10 +64,10 @@
64
64
  "peerDependencies": {
65
65
  "@gct-paas/api": "^0.1.6-dev.14",
66
66
  "vue": ">=3",
67
- "@gct-paas/core-web": "0.1.6-dev.21",
68
- "@gct-paas/core": "0.1.6-dev.21",
69
- "@gct-paas/schema": "0.1.6-dev.21",
70
- "@gct-paas/scss": "0.1.6-dev.21"
67
+ "@gct-paas/core": "0.1.6-dev.23",
68
+ "@gct-paas/scss": "0.1.6-dev.23",
69
+ "@gct-paas/schema": "0.1.6-dev.23",
70
+ "@gct-paas/core-web": "0.1.6-dev.23"
71
71
  },
72
72
  "scripts": {
73
73
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",