@ibiz-template/vue3-components 0.7.41-alpha.12 → 0.7.41-alpha.14
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/ibiz-markdown-editor-0VHzFa2l.js +1 -0
- package/dist/index-1fHusiqt.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-TYKjfyR5.js → wang-editor-z0RY8bO1.js} +1 -1
- package/dist/{xlsx-util-Q9msA8ef.js → xlsx-util-8Du1A340.js} +1 -1
- package/es/control/calendar/calendar.mjs +4 -1
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +76 -2
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drbar/drbar.controller.d.ts +6 -0
- package/es/control/drbar/drbar.controller.mjs +8 -0
- package/es/control/drbar/drbar.mjs +6 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +6 -0
- package/es/control/drtab/drtab.controller.mjs +9 -0
- package/es/control/drtab/drtab.mjs +13 -0
- package/es/control/form/form/index.mjs +2 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.d.ts +29 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +53 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.d.ts +13 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.mjs +21 -0
- package/es/control/form/form-detail/form-iframe/index.d.ts +25 -0
- package/es/control/form/form-detail/form-iframe/index.mjs +12 -0
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +6 -4
- package/es/control/form/form-detail/index.d.ts +1 -0
- package/es/control/form/form-detail/index.mjs +1 -0
- package/es/control/form/index.mjs +1 -0
- package/es/control/gantt/gantt.d.ts +1 -1
- package/es/control/gantt/gantt.mjs +4 -1
- package/es/control/gantt/index.d.ts +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +5 -8
- package/es/control/grid/virtualized-table/index.d.ts +136 -0
- package/es/control/grid/virtualized-table/index.mjs +18 -0
- package/es/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +200 -0
- package/es/control/grid/virtualized-table/virtualized-table.mjs +325 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.d.ts +10 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.mjs +14 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.d.ts +95 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.mjs +191 -0
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/index.d.ts +44 -1
- package/es/control/kanban/kanban.d.ts +56 -1
- package/es/control/kanban/kanban.mjs +36 -2
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +3 -0
- package/es/control/tab-exp-panel/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +2 -1
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +21 -2
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +1 -1
- package/es/control/tree/tree.mjs +4 -1
- package/es/control/tree-grid/index.d.ts +1 -1
- package/es/control/tree-grid/tree-grid.d.ts +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.mjs +4 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +3 -2
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +5 -5
- package/es/editor/date-range-select/date-range-select.controller.mjs +9 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +4 -3
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +10 -7
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +5 -5
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +3 -3
- package/es/editor/span/span/span.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +3 -77
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +167 -108
- package/es/editor/text-box/input/input.d.ts +4 -4
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/util/app-util/app-util.d.ts +54 -2
- package/es/util/app-util/app-util.mjs +48 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/custom-view.engine.d.ts +1 -1
- package/es/view-engine/custom-view.engine.mjs +5 -5
- package/es/view-engine/de-index-view-engine.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +1 -1
- package/es/view-engine/md-custom-view.engine.mjs +5 -5
- package/es/view-engine/opt-view.engine.mjs +1 -1
- package/lib/control/calendar/calendar.cjs +4 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +76 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/drbar/drbar.cjs +6 -0
- package/lib/control/drbar/drbar.controller.cjs +8 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +13 -0
- package/lib/control/drtab/drtab.controller.cjs +9 -0
- package/lib/control/form/form/index.cjs +2 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +58 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.provider.cjs +23 -0
- package/lib/control/form/form-detail/form-iframe/index.cjs +17 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -3
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/index.cjs +2 -0
- package/lib/control/form/index.cjs +6 -4
- package/lib/control/gantt/gantt.cjs +4 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -6
- package/lib/control/grid/virtualized-table/index.cjs +23 -0
- package/lib/control/grid/virtualized-table/virtualized-table.cjs +327 -0
- package/lib/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/lib/control/grid/virtualized-table/virtualized-table.provider.cjs +16 -0
- package/lib/control/grid/virtualized-table/virtualized-table.util.cjs +193 -0
- package/lib/control/index.cjs +82 -80
- package/lib/control/kanban/kanban.cjs +34 -0
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/search-bar/search-bar.cjs +3 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +20 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/lib/editor/date-range-select/date-range-select.controller.cjs +9 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +5 -5
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +166 -107
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
- package/lib/index.cjs +112 -110
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -1
- package/lib/util/app-util/app-util.cjs +47 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/custom-view.engine.cjs +5 -5
- package/lib/view-engine/de-index-view-engine.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +5 -5
- package/lib/view-engine/opt-view.engine.cjs +1 -1
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-KyK5mBTS.js +0 -1
- package/dist/index-pyv7Wdpx.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { getDeACMode, calcDeCodeNameById, ConfigService, UIActionUtil, SysUIActionTag } from '@ibiz-template/runtime';
|
|
2
2
|
import { createUUID } from 'qx-util';
|
|
3
3
|
import { IBizContext } from '@ibiz-template/core';
|
|
4
|
-
import { route2routePath, useUIStore } from '@ibiz-template/vue3-util';
|
|
4
|
+
import { route2routePath, useUIStore, routePath2string } from '@ibiz-template/vue3-util';
|
|
5
5
|
import { calcAiToolbarItemsByAc } from '../ai-util/ai-util.mjs';
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __publicField = (obj, key, value) => {
|
|
11
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
8
14
|
class AppUtil {
|
|
9
15
|
/**
|
|
10
16
|
* Creates an instance of AppUtil.
|
|
@@ -14,6 +20,12 @@ class AppUtil {
|
|
|
14
20
|
*/
|
|
15
21
|
constructor(router) {
|
|
16
22
|
this.router = router;
|
|
23
|
+
/**
|
|
24
|
+
* @description 视图缓存中心
|
|
25
|
+
* @type {Map<string, IApiViewController>}
|
|
26
|
+
* @memberof AppUtil
|
|
27
|
+
*/
|
|
28
|
+
__publicField(this, "viewCacheCenter", /* @__PURE__ */ new Map());
|
|
17
29
|
}
|
|
18
30
|
/**
|
|
19
31
|
* @description 路由是否初始化构建完成
|
|
@@ -441,6 +453,41 @@ class AppUtil {
|
|
|
441
453
|
});
|
|
442
454
|
});
|
|
443
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* @description 当前路由转换成路由路径对象
|
|
458
|
+
* @param {boolean} [isRouteModal]
|
|
459
|
+
* @returns {*} {{
|
|
460
|
+
* appContext?: IParams;
|
|
461
|
+
* pathNodes: {
|
|
462
|
+
* viewName: string;
|
|
463
|
+
* context?: IParams;
|
|
464
|
+
* params?: IParams;
|
|
465
|
+
* srfnav?: string;
|
|
466
|
+
* }[];
|
|
467
|
+
* }}
|
|
468
|
+
* @memberof AppUtil
|
|
469
|
+
*/
|
|
470
|
+
route2routeObject(isRouteModal) {
|
|
471
|
+
const routePath = route2routePath(this.router.currentRoute.value);
|
|
472
|
+
return routePath;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @description 路由路径对象转化为路由路径
|
|
476
|
+
* @param {{
|
|
477
|
+
* appContext?: IParams;
|
|
478
|
+
* pathNodes: {
|
|
479
|
+
* viewName: string;
|
|
480
|
+
* context?: IParams;
|
|
481
|
+
* params?: IParams;
|
|
482
|
+
* srfnav?: string;
|
|
483
|
+
* }[];
|
|
484
|
+
* }} routePath
|
|
485
|
+
* @returns {*} {string}
|
|
486
|
+
* @memberof AppUtil
|
|
487
|
+
*/
|
|
488
|
+
routeObject2String(routePath) {
|
|
489
|
+
return routePath2string(routePath);
|
|
490
|
+
}
|
|
444
491
|
}
|
|
445
492
|
|
|
446
493
|
export { AppUtil };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -30,6 +30,6 @@ export declare class CustomViewEngine extends ViewEngineBase {
|
|
|
30
30
|
* @param {(IData | undefined)} data 数据
|
|
31
31
|
* @memberof CustomViewEngine
|
|
32
32
|
*/
|
|
33
|
-
calcToolbarButtonState(control: IMDControl, data: IData | undefined): void;
|
|
33
|
+
calcToolbarButtonState(control: IMDControl, data: IData | undefined, _params?: IParams): void;
|
|
34
34
|
call(key: keyof IApiCustomViewCall, args: any): Promise<IData | null | undefined>;
|
|
35
35
|
}
|
|
@@ -43,15 +43,15 @@ class CustomViewEngine extends ViewEngineBase {
|
|
|
43
43
|
);
|
|
44
44
|
control == null ? void 0 : control.evt.on(
|
|
45
45
|
"onLoadSuccess",
|
|
46
|
-
() => this.calcToolbarButtonState(ctrl, void 0)
|
|
46
|
+
(evt) => this.calcToolbarButtonState(ctrl, void 0, evt)
|
|
47
47
|
);
|
|
48
48
|
control == null ? void 0 : control.evt.on(
|
|
49
49
|
"onSelectionChange",
|
|
50
|
-
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
50
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
|
|
51
51
|
);
|
|
52
52
|
control == null ? void 0 : control.evt.on(
|
|
53
53
|
"onRefreshSuccess",
|
|
54
|
-
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
54
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
|
|
55
55
|
);
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -62,7 +62,7 @@ class CustomViewEngine extends ViewEngineBase {
|
|
|
62
62
|
* @param {(IData | undefined)} data 数据
|
|
63
63
|
* @memberof CustomViewEngine
|
|
64
64
|
*/
|
|
65
|
-
calcToolbarButtonState(control, data) {
|
|
65
|
+
calcToolbarButtonState(control, data, _params) {
|
|
66
66
|
const model = this.controls.find(
|
|
67
67
|
(ctrl) => {
|
|
68
68
|
var _a;
|
|
@@ -73,7 +73,7 @@ class CustomViewEngine extends ViewEngineBase {
|
|
|
73
73
|
const toolbar = this.view.getController(
|
|
74
74
|
model.name
|
|
75
75
|
);
|
|
76
|
-
toolbar == null ? void 0 : toolbar.calcButtonState(data, control.appDataEntityId);
|
|
76
|
+
toolbar == null ? void 0 : toolbar.calcButtonState(data, control.appDataEntityId, _params);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
async call(key, args) {
|
|
@@ -46,7 +46,7 @@ class DEIndexViewEngine extends EditViewEngine {
|
|
|
46
46
|
const { evt } = this.view;
|
|
47
47
|
const formDeId = this.form.model.appDataEntityId;
|
|
48
48
|
const data = event.data[0];
|
|
49
|
-
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId);
|
|
49
|
+
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId, event);
|
|
50
50
|
if (data.srfkey) {
|
|
51
51
|
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
52
52
|
}
|
|
@@ -101,7 +101,7 @@ class EditViewEngine extends DEMainViewEngine {
|
|
|
101
101
|
const { model, evt } = this.view;
|
|
102
102
|
const formDeId = this.form.model.appDataEntityId;
|
|
103
103
|
const data = event.data[0];
|
|
104
|
-
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId);
|
|
104
|
+
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId, event);
|
|
105
105
|
if (model.showDataInfoBar) {
|
|
106
106
|
if (data.srfkey) {
|
|
107
107
|
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
@@ -35,7 +35,7 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
35
35
|
* @param {(IData | undefined)} data 数据
|
|
36
36
|
* @memberof MDCustomViewEngine
|
|
37
37
|
*/
|
|
38
|
-
calcToolbarButtonState(control: IMDControl, data: IData | undefined): void;
|
|
38
|
+
calcToolbarButtonState(control: IMDControl, data: IData | undefined, _params?: IParams): void;
|
|
39
39
|
call(key: keyof IApiMDCustomViewCall, args: any): Promise<IData | null | undefined>;
|
|
40
40
|
/**
|
|
41
41
|
* @description 刷新数据
|
|
@@ -46,15 +46,15 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
46
46
|
);
|
|
47
47
|
control == null ? void 0 : control.evt.on(
|
|
48
48
|
"onLoadSuccess",
|
|
49
|
-
() => this.calcToolbarButtonState(ctrl, void 0)
|
|
49
|
+
(evt) => this.calcToolbarButtonState(ctrl, void 0, evt)
|
|
50
50
|
);
|
|
51
51
|
control == null ? void 0 : control.evt.on(
|
|
52
52
|
"onSelectionChange",
|
|
53
|
-
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
53
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
|
|
54
54
|
);
|
|
55
55
|
control == null ? void 0 : control.evt.on(
|
|
56
56
|
"onRefreshSuccess",
|
|
57
|
-
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
57
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
|
|
58
58
|
);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -79,7 +79,7 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
79
79
|
* @param {(IData | undefined)} data 数据
|
|
80
80
|
* @memberof MDCustomViewEngine
|
|
81
81
|
*/
|
|
82
|
-
calcToolbarButtonState(control, data) {
|
|
82
|
+
calcToolbarButtonState(control, data, _params) {
|
|
83
83
|
const model = this.controls.find(
|
|
84
84
|
(ctrl) => {
|
|
85
85
|
var _a;
|
|
@@ -90,7 +90,7 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
90
90
|
const toolbar = this.view.getController(
|
|
91
91
|
model.name
|
|
92
92
|
);
|
|
93
|
-
toolbar == null ? void 0 : toolbar.calcButtonState(data, control.appDataEntityId);
|
|
93
|
+
toolbar == null ? void 0 : toolbar.calcButtonState(data, control.appDataEntityId, _params);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
async call(key, args) {
|
|
@@ -68,7 +68,7 @@ class OptViewEngine extends ViewEngineBase {
|
|
|
68
68
|
const formDataStateChange = (event) => {
|
|
69
69
|
var _a;
|
|
70
70
|
const data = event.data[0];
|
|
71
|
-
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId);
|
|
71
|
+
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId, event);
|
|
72
72
|
if (data.srfkey) {
|
|
73
73
|
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext });
|
|
74
74
|
}
|
|
@@ -286,7 +286,10 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
286
286
|
if (!contextMenuC.model.detoolbarItems) {
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
289
|
-
await contextMenuC.calcButtonState(item.deData || (item.deData ? item : void 0), targetCalendarItem.appDataEntityId
|
|
289
|
+
await contextMenuC.calcButtonState(item.deData || (item.deData ? item : void 0), targetCalendarItem.appDataEntityId, {
|
|
290
|
+
view: c.view,
|
|
291
|
+
ctrl: c
|
|
292
|
+
});
|
|
290
293
|
const menuState = contextMenuC.state.buttonsState;
|
|
291
294
|
const menus = calcContextMenuItems(contextMenuC.model.detoolbarItems, item, evt, menuState);
|
|
292
295
|
if (!menus.length) {
|
|
@@ -22,6 +22,14 @@ const CalendarUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
22
|
timeList.value = useCalendarUser.getDayTime();
|
|
23
23
|
const popoverValue = vue.ref("");
|
|
24
24
|
const curPopover = vue.ref();
|
|
25
|
+
const scrollContainerRef = vue.ref();
|
|
26
|
+
const scrollTop = vue.ref(0);
|
|
27
|
+
const thumbHeight = vue.ref(0);
|
|
28
|
+
const enableScroll = vue.ref(false);
|
|
29
|
+
const orginY = vue.ref(0);
|
|
30
|
+
const realHeight = vue.ref(1);
|
|
31
|
+
const visibleHeight = vue.ref(1);
|
|
32
|
+
const isScroll = vue.ref(false);
|
|
25
33
|
vue.watch(() => props.selectedDay, () => {
|
|
26
34
|
if (props.selectedDay) {
|
|
27
35
|
weekday.value = useCalendarUser.calcCurWeek(new Date(props.selectedDay));
|
|
@@ -104,9 +112,62 @@ const CalendarUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
112
|
}, [renderEvent(item)]);
|
|
105
113
|
})])]);
|
|
106
114
|
};
|
|
115
|
+
const onMouseMove = (event) => {
|
|
116
|
+
if (enableScroll.value) {
|
|
117
|
+
const y = event.clientY - orginY.value;
|
|
118
|
+
scrollTop.value += y;
|
|
119
|
+
orginY.value = event.clientY;
|
|
120
|
+
if (scrollContainerRef.value) {
|
|
121
|
+
scrollContainerRef.value.scrollTop = realHeight.value * (scrollTop.value / visibleHeight.value);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
event.stopPropagation();
|
|
126
|
+
};
|
|
127
|
+
const onMouseUp = (event) => {
|
|
128
|
+
enableScroll.value = false;
|
|
129
|
+
event.preventDefault();
|
|
130
|
+
event.stopPropagation();
|
|
131
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
132
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
133
|
+
};
|
|
134
|
+
const onMouseDown = (event) => {
|
|
135
|
+
orginY.value = event.clientY;
|
|
136
|
+
enableScroll.value = true;
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
event.stopPropagation();
|
|
139
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
140
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
141
|
+
};
|
|
142
|
+
const renderScrollbar = () => {
|
|
143
|
+
return vue.createVNode("div", {
|
|
144
|
+
"class": ns.b("scroll-bar")
|
|
145
|
+
}, [vue.createVNode("div", {
|
|
146
|
+
"class": ns.be("scroll-bar", "thumb"),
|
|
147
|
+
"onMousedown": onMouseDown
|
|
148
|
+
}, null)]);
|
|
149
|
+
};
|
|
150
|
+
const onScroll = (event) => {
|
|
151
|
+
var _a, _b, _c;
|
|
152
|
+
const realTop = ((_a = event.target) == null ? void 0 : _a.scrollTop) || 0;
|
|
153
|
+
realHeight.value = (_b = event.target) == null ? void 0 : _b.scrollHeight;
|
|
154
|
+
visibleHeight.value = (_c = event.target) == null ? void 0 : _c.clientHeight;
|
|
155
|
+
const realRatio = realTop / realHeight.value;
|
|
156
|
+
scrollTop.value = realRatio * visibleHeight.value;
|
|
157
|
+
};
|
|
107
158
|
const renderWeekContent = () => {
|
|
108
159
|
return vue.createVNode("div", {
|
|
109
|
-
"class": ns.b("content")
|
|
160
|
+
"class": ns.b("content"),
|
|
161
|
+
"style": {
|
|
162
|
+
["--".concat(ns.namespace, "-calendar-user-scroll-bar-thumb-height")]: "".concat(thumbHeight.value, "px"),
|
|
163
|
+
["--".concat(ns.namespace, "-calendar-user-scroll-bar-thumb-top")]: "".concat(scrollTop.value, "px")
|
|
164
|
+
}
|
|
165
|
+
}, [vue.createVNode("div", {
|
|
166
|
+
"class": ns.be("content", "wrapping"),
|
|
167
|
+
"ref": (el) => {
|
|
168
|
+
scrollContainerRef.value = el;
|
|
169
|
+
},
|
|
170
|
+
"onScroll": onScroll
|
|
110
171
|
}, [timeList.value.map((item) => {
|
|
111
172
|
return vue.createVNode("div", {
|
|
112
173
|
"class": ns.be("content", "time-item")
|
|
@@ -117,8 +178,21 @@ const CalendarUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
117
178
|
"class": [ns.be("content", "week-item"), ns.e("cell")]
|
|
118
179
|
}, [renderEvent(day, item)]);
|
|
119
180
|
})]);
|
|
120
|
-
})]);
|
|
181
|
+
})]), isScroll.value && renderScrollbar()]);
|
|
121
182
|
};
|
|
183
|
+
vue.watch(() => scrollContainerRef.value, () => {
|
|
184
|
+
if (scrollContainerRef.value) {
|
|
185
|
+
realHeight.value = scrollContainerRef.value.scrollHeight;
|
|
186
|
+
visibleHeight.value = scrollContainerRef.value.clientHeight;
|
|
187
|
+
if (realHeight.value > visibleHeight.value) {
|
|
188
|
+
isScroll.value = true;
|
|
189
|
+
}
|
|
190
|
+
thumbHeight.value = visibleHeight.value * (visibleHeight.value / realHeight.value);
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
immediate: true,
|
|
194
|
+
deep: true
|
|
195
|
+
});
|
|
122
196
|
return {
|
|
123
197
|
ns,
|
|
124
198
|
renderWeekHeader,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-calendar-user{--ibiz-calendar-user-cell-min-height:60px;display:flex;flex-direction:column;width:100%;height:100%;padding:var(--ibiz-spacing-base);overflow:hidden}.ibiz-calendar-user__cell{min-height:var(--ibiz-calendar-user-cell-min-height);border-bottom:1px solid var(--ibiz-color-tertiary);border-left:1px solid var(--ibiz-color-tertiary)}.ibiz-calendar-user__cell:last-child{border-right:1px solid var(--ibiz-color-tertiary)}.ibiz-calendar-user__black{width:100%;height:100%}.ibiz-calendar-user .ibiz-calendar-user-more{flex-shrink:0;padding-left:var(--ibiz-spacing-tight);overflow:hidden;font-size:var(--ibiz-font-size-small);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:var(--ibiz-spacing-extra-tight)}.ibiz-calendar-user .ibiz-calendar-user-more:hover{background-color:var(--ibiz-control-calendar-hover-bg-color)}.ibiz-calendar-user .ibiz-calendar-user-header{flex-shrink:0
|
|
1
|
+
.ibiz-calendar-user{--ibiz-calendar-user-cell-min-height:60px;display:flex;flex-direction:column;width:100%;height:100%;padding:var(--ibiz-spacing-base);overflow:hidden}.ibiz-calendar-user__cell{min-height:var(--ibiz-calendar-user-cell-min-height);border-bottom:1px solid var(--ibiz-color-tertiary);border-left:1px solid var(--ibiz-color-tertiary)}.ibiz-calendar-user__cell:last-child{border-right:1px solid var(--ibiz-color-tertiary)}.ibiz-calendar-user__black{width:100%;height:100%}.ibiz-calendar-user .ibiz-calendar-user-more{flex-shrink:0;padding-left:var(--ibiz-spacing-tight);overflow:hidden;font-size:var(--ibiz-font-size-small);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:var(--ibiz-spacing-extra-tight)}.ibiz-calendar-user .ibiz-calendar-user-more:hover{background-color:var(--ibiz-control-calendar-hover-bg-color)}.ibiz-calendar-user .ibiz-calendar-user-header{flex-shrink:0}.ibiz-calendar-user-header__top{border-top:1px solid var(--ibiz-color-tertiary)}.ibiz-calendar-user-header__time-item{display:flex;justify-content:space-between;width:100%}.ibiz-calendar-user-header__week-day{display:flex;flex:1;align-items:center;justify-content:center;width:100%}.ibiz-calendar-user-header__week-item{display:flex;flex:1;flex-direction:column;flex-shrink:0;justify-content:center;overflow:hidden}.ibiz-calendar-user-header__time-text{display:flex;flex:1;align-items:center;justify-content:center}.ibiz-calendar-user .ibiz-calendar-user-content{position:relative;flex:1;width:100%;height:100%;overflow:hidden}.ibiz-calendar-user-content__time-item{display:flex;justify-content:space-between;width:100%}.ibiz-calendar-user-content__time-text{display:flex;flex:1;align-items:center;justify-content:center}.ibiz-calendar-user-content__week-item{display:flex;flex:1;flex-direction:column;flex-shrink:0;justify-content:center;overflow:hidden}.ibiz-calendar-user-content__wrapping{width:100%;height:100%;overflow:auto}.ibiz-calendar-user-content__wrapping::-webkit-scrollbar{display:none}.ibiz-calendar-user-scroll-bar{position:absolute;top:var(--ibiz-calendar-user-scroll-bar-thumb-top);right:0;z-index:10;width:4px;height:100%;border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-calendar-user-scroll-bar__thumb{width:4px;height:var(--ibiz-calendar-user-scroll-bar-thumb-height);cursor:pointer;background-color:#d3d3d3;border-radius:var(--ibiz-border-radius-extra-small)}
|
|
@@ -80,7 +80,13 @@ const DRBarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
80
|
});
|
|
81
81
|
c.setRouter(router);
|
|
82
82
|
const handleSelect = (key) => {
|
|
83
|
+
var _a;
|
|
83
84
|
c.handleSelectChange(key);
|
|
85
|
+
const drBarItem = (_a = c.model.dedrctrlItems) == null ? void 0 : _a.find((item) => item.id === key);
|
|
86
|
+
c.evt.emit("onTabChange", {
|
|
87
|
+
name: key,
|
|
88
|
+
item: drBarItem || c.state.drBarItems[0]
|
|
89
|
+
});
|
|
84
90
|
};
|
|
85
91
|
const route = vueRouter.useRoute();
|
|
86
92
|
let expViewRoutePath = "";
|
|
@@ -557,6 +557,14 @@ class DRBarController extends runtime.ControlController {
|
|
|
557
557
|
this.counter.destroy();
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* @description 设置激活项
|
|
562
|
+
* @param {string} name
|
|
563
|
+
* @memberof DRBarController
|
|
564
|
+
*/
|
|
565
|
+
setActive(name) {
|
|
566
|
+
this.handleSelectChange(name);
|
|
567
|
+
}
|
|
560
568
|
}
|
|
561
569
|
|
|
562
570
|
exports.DRBarController = DRBarController;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -78,12 +78,25 @@ const DRTabControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
(_a2 = c.counter) == null ? void 0 : _a2.offChange(fn);
|
|
79
79
|
});
|
|
80
80
|
c.setRouter(router);
|
|
81
|
+
const emitChange = () => {
|
|
82
|
+
var _a2;
|
|
83
|
+
const {
|
|
84
|
+
activeName
|
|
85
|
+
} = c.state;
|
|
86
|
+
const drBarItem = (_a2 = c.model.dedrtabPages) == null ? void 0 : _a2.find((item) => item.id === activeName);
|
|
87
|
+
c.evt.emit("onTabChange", {
|
|
88
|
+
name: activeName,
|
|
89
|
+
item: drBarItem || c.state.drTabPages[0]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
81
92
|
const handleTabChange = () => {
|
|
82
93
|
c.handleTabChange();
|
|
94
|
+
emitChange();
|
|
83
95
|
};
|
|
84
96
|
const onTabChange = (key) => {
|
|
85
97
|
c.state.activeName = key;
|
|
86
98
|
c.handleTabChange();
|
|
99
|
+
emitChange();
|
|
87
100
|
};
|
|
88
101
|
const route = vueRouter.useRoute();
|
|
89
102
|
let expViewRoutePath = "";
|
|
@@ -507,6 +507,15 @@ class DRTabController extends runtime.ControlController {
|
|
|
507
507
|
this.counter.destroy();
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* @description 设置激活项
|
|
512
|
+
* @param {string} name
|
|
513
|
+
* @memberof DRTabController
|
|
514
|
+
*/
|
|
515
|
+
setActive(name) {
|
|
516
|
+
this.state.activeName = name;
|
|
517
|
+
this.handleTabChange();
|
|
518
|
+
}
|
|
510
519
|
}
|
|
511
520
|
|
|
512
521
|
exports.DRTabController = DRTabController;
|
|
@@ -15,6 +15,7 @@ var index$6 = require('../form-detail/form-rawitem/index.cjs');
|
|
|
15
15
|
var index$7 = require('../form-detail/form-tab-panel/index.cjs');
|
|
16
16
|
var index$8 = require('../form-detail/form-tab-page/index.cjs');
|
|
17
17
|
var index$9 = require('../form-detail/form-button-list/index.cjs');
|
|
18
|
+
var index$a = require('../form-detail/form-iframe/index.cjs');
|
|
18
19
|
|
|
19
20
|
"use strict";
|
|
20
21
|
const IBizFormControl = vue3Util.withInstall(form.FormControl, function(v) {
|
|
@@ -29,6 +30,7 @@ const IBizFormControl = vue3Util.withInstall(form.FormControl, function(v) {
|
|
|
29
30
|
v.use(index$7.IBizFormTabPanel);
|
|
30
31
|
v.use(index$8.IBizFormTabPage);
|
|
31
32
|
v.use(index$9.IBizFormButtonList);
|
|
33
|
+
v.use(index$a.IBizFormIFrame);
|
|
32
34
|
});
|
|
33
35
|
|
|
34
36
|
exports.IBizFormControl = IBizFormControl;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var runtime = require('@ibiz-template/runtime');
|
|
8
|
+
require('./form-iframe.css');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const FormIFrame = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizFormIFrame",
|
|
13
|
+
props: {
|
|
14
|
+
modelData: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
controller: {
|
|
19
|
+
type: runtime.FormIFrameController,
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
const c = props.controller;
|
|
25
|
+
const ns = vue3Util.useNamespace("form-iframe");
|
|
26
|
+
vue3Util.useController(c);
|
|
27
|
+
const loading = vue.ref(true);
|
|
28
|
+
const url = vue.computed(() => {
|
|
29
|
+
return c.calcIFrameUrl();
|
|
30
|
+
});
|
|
31
|
+
const onLoad = () => {
|
|
32
|
+
loading.value = false;
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
ns,
|
|
36
|
+
url,
|
|
37
|
+
loading,
|
|
38
|
+
onLoad
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
render() {
|
|
42
|
+
if (!this.controller.state.visible || !this.url) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
46
|
+
"class": this.ns.b()
|
|
47
|
+
}, [vue.createVNode("iframe", {
|
|
48
|
+
"class": this.ns.e("iframe"),
|
|
49
|
+
"src": this.url,
|
|
50
|
+
"frameborder": "0",
|
|
51
|
+
"onLoad": () => this.onLoad(),
|
|
52
|
+
"onError": () => this.onLoad()
|
|
53
|
+
}, null)]), [[vue.resolveDirective("loading"), this.loading]]);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
exports.FormIFrame = FormIFrame;
|
|
58
|
+
exports.default = FormIFrame;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-form-iframe{width:100%;height:100%}.ibiz-form-iframe__iframe{width:100%;height:100%}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class FormIFrameProvider {
|
|
13
|
+
constructor() {
|
|
14
|
+
__publicField(this, "component", "IBizFormIFrame");
|
|
15
|
+
}
|
|
16
|
+
async createController(detailModel, form, parent) {
|
|
17
|
+
const c = new runtime.FormIFrameController(detailModel, form, parent);
|
|
18
|
+
await c.init();
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.FormIFrameProvider = FormIFrameProvider;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
+
var runtime = require('@ibiz-template/runtime');
|
|
7
|
+
var formIframe = require('./form-iframe.cjs');
|
|
8
|
+
var formIframe_provider = require('./form-iframe.provider.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const IBizFormIFrame = vue3Util.withInstall(formIframe.FormIFrame, function(v) {
|
|
12
|
+
v.component(formIframe.FormIFrame.name, formIframe.FormIFrame);
|
|
13
|
+
runtime.registerFormDetailProvider("IFRAME", () => new formIframe_provider.FormIFrameProvider());
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
exports.IBizFormIFrame = IBizFormIFrame;
|
|
17
|
+
exports.default = IBizFormIFrame;
|
|
@@ -68,13 +68,15 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
68
68
|
const {
|
|
69
69
|
editorItems = []
|
|
70
70
|
} = this.c.model.editor || {};
|
|
71
|
-
editor = editorItems.map((item) => {
|
|
71
|
+
editor = editorItems.map((item, index) => {
|
|
72
72
|
const controller = this.c.form.details[item.id];
|
|
73
|
-
return vue.createVNode(compositeFormItem.CompositeFormItem, {
|
|
73
|
+
return [vue.createVNode(compositeFormItem.CompositeFormItem, {
|
|
74
74
|
"modelData": controller.model,
|
|
75
75
|
"controller": controller,
|
|
76
76
|
"attrs": this.attrs
|
|
77
|
-
}, null)
|
|
77
|
+
}, null), editorItems.length - 1 > index && vue.createVNode("span", {
|
|
78
|
+
"class": this.ns.e("composite-separator")
|
|
79
|
+
}, [vue.createTextVNode("-")])];
|
|
78
80
|
});
|
|
79
81
|
} else {
|
|
80
82
|
const editMode = (_d = (_c = (_b = this.c.editor) == null ? void 0 : _b.model) == null ? void 0 : _c.editorParams) == null ? void 0 : _d.editMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-item{border-color:var(--ibiz-color-border);--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);--ibiz-form-item-hover-edit-padding:var(--ibiz-spacing-none) 11px}.ibiz-form-item.is-compositeItem{--ibiz-form-item-compositeItem-gap:var(--ibiz-spacing-tight)}.ibiz-form-item.is-compositeItem .ibiz-form-item-container__editor{display:flex;gap:var(--ibiz-form-item-compositeItem-gap)}
|
|
1
|
+
.ibiz-form-item{border-color:var(--ibiz-color-border);--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);--ibiz-form-item-hover-edit-padding:var(--ibiz-spacing-none) 11px}.ibiz-form-item.is-compositeItem{--ibiz-form-item-compositeItem-gap:var(--ibiz-spacing-tight)}.ibiz-form-item.is-compositeItem .ibiz-form-item__composite-separator{line-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item.is-compositeItem .ibiz-form-item-container__editor{display:flex;gap:var(--ibiz-form-item-compositeItem-gap)}
|
|
@@ -10,6 +10,7 @@ var index$6 = require('./form-rawitem/index.cjs');
|
|
|
10
10
|
var index$7 = require('./form-tab-panel/index.cjs');
|
|
11
11
|
var index$8 = require('./form-tab-page/index.cjs');
|
|
12
12
|
var index$9 = require('./form-button-list/index.cjs');
|
|
13
|
+
var index$a = require('./form-iframe/index.cjs');
|
|
13
14
|
var formItemContainer = require('./form-item/form-item-container/form-item-container.cjs');
|
|
14
15
|
var formPage_item = require('./form-page/form-page-item/form-page.item.cjs');
|
|
15
16
|
|
|
@@ -25,5 +26,6 @@ exports.IBizFormRawItem = index$6.IBizFormRawItem;
|
|
|
25
26
|
exports.IBizFormTabPanel = index$7.IBizFormTabPanel;
|
|
26
27
|
exports.IBizFormTabPage = index$8.IBizFormTabPage;
|
|
27
28
|
exports.IBizFormButtonList = index$9.IBizFormButtonList;
|
|
29
|
+
exports.IBizFormIFrame = index$a.IBizFormIFrame;
|
|
28
30
|
exports.IBizFormItemContainer = formItemContainer.IBizFormItemContainer;
|
|
29
31
|
exports.IBizFormPageItem = formPage_item.IBizFormPageItem;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./search-form/index.cjs');
|
|
4
4
|
require('./form-detail/index.cjs');
|
|
5
|
-
var index$
|
|
6
|
-
var index$
|
|
5
|
+
var index$c = require('./edit-form/index.cjs');
|
|
6
|
+
var index$d = require('./form/index.cjs');
|
|
7
7
|
var index$1 = require('./form-detail/form-group-panel/index.cjs');
|
|
8
8
|
var formItemContainer = require('./form-detail/form-item/form-item-container/form-item-container.cjs');
|
|
9
9
|
var index$2 = require('./form-detail/form-item/index.cjs');
|
|
@@ -16,12 +16,13 @@ var index$7 = require('./form-detail/form-rawitem/index.cjs');
|
|
|
16
16
|
var index$8 = require('./form-detail/form-tab-panel/index.cjs');
|
|
17
17
|
var index$9 = require('./form-detail/form-tab-page/index.cjs');
|
|
18
18
|
var index$a = require('./form-detail/form-button-list/index.cjs');
|
|
19
|
+
var index$b = require('./form-detail/form-iframe/index.cjs');
|
|
19
20
|
|
|
20
21
|
"use strict";
|
|
21
22
|
|
|
22
23
|
exports.IBizSearchFormControl = index.IBizSearchFormControl;
|
|
23
|
-
exports.IBizEditFormControl = index$
|
|
24
|
-
exports.IBizFormControl = index$
|
|
24
|
+
exports.IBizEditFormControl = index$c.IBizEditFormControl;
|
|
25
|
+
exports.IBizFormControl = index$d.IBizFormControl;
|
|
25
26
|
exports.IBizFormGroupPanel = index$1.IBizFormGroupPanel;
|
|
26
27
|
exports.IBizFormItemContainer = formItemContainer.IBizFormItemContainer;
|
|
27
28
|
exports.IBizFormItem = index$2.IBizFormItem;
|
|
@@ -34,3 +35,4 @@ exports.IBizFormRawItem = index$7.IBizFormRawItem;
|
|
|
34
35
|
exports.IBizFormTabPanel = index$8.IBizFormTabPanel;
|
|
35
36
|
exports.IBizFormTabPage = index$9.IBizFormTabPage;
|
|
36
37
|
exports.IBizFormButtonList = index$a.IBizFormButtonList;
|
|
38
|
+
exports.IBizFormIFrame = index$b.IBizFormIFrame;
|
|
@@ -331,7 +331,10 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
331
331
|
if (!contextMenuC.model.detoolbarItems) {
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
await contextMenuC.calcButtonState(nodeData._deData || (nodeData.srfkey ? nodeData : void 0), nodeModel.appDataEntityId
|
|
334
|
+
await contextMenuC.calcButtonState(nodeData._deData || (nodeData.srfkey ? nodeData : void 0), nodeModel.appDataEntityId, {
|
|
335
|
+
view: c.view,
|
|
336
|
+
ctrl: c
|
|
337
|
+
});
|
|
335
338
|
const menuState = contextMenuC.state.buttonsState;
|
|
336
339
|
const menus = calcContextMenuItems(contextMenuC.model.detoolbarItems, nodeData, evt, menuState);
|
|
337
340
|
if (!menus.length) {
|
|
@@ -6,6 +6,7 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
7
|
require('../grid-column/index.cjs');
|
|
8
8
|
var rowEditPopover = require('../row-edit-popover/row-edit-popover.cjs');
|
|
9
|
+
var index$6 = require('../virtualized-table/index.cjs');
|
|
9
10
|
var grid = require('./grid.cjs');
|
|
10
11
|
var grid_provider = require('./grid.provider.cjs');
|
|
11
12
|
var gridControl_util = require('./grid-control.util.cjs');
|
|
@@ -26,6 +27,7 @@ const IBizGridControl = vue3Util.withInstall(grid.GridControl, (v) => {
|
|
|
26
27
|
v.use(index$3.IBizGridFieldEditColumn);
|
|
27
28
|
v.use(index$4.IBizGridGroupColumn);
|
|
28
29
|
v.use(index$5.IBizDynamicGridFieldEditColumn);
|
|
30
|
+
v.use(index$6.IBizVirtualizedTableControl);
|
|
29
31
|
runtime.registerControlProvider(runtime.ControlType.GRID, () => new grid_provider.GridProvider());
|
|
30
32
|
});
|
|
31
33
|
|