@ibiz-template/runtime 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +112 -39
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +25 -26
- package/out/engine/md-view.engine.d.ts +2 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +4 -3
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts +15 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar-exp-bar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts +24 -0
- package/out/interface/controller/controller/control/i-calendar.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/i-calendar.controller.js +1 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +0 -10
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.d.ts +2 -0
- package/out/interface/controller/controller/control/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/index.js +2 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar-exp-bar.event.js +1 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts +11 -0
- package/out/interface/controller/event/control/i-calendar.event.d.ts.map +1 -0
- package/out/interface/controller/event/control/i-calendar.event.js +1 -0
- package/out/interface/controller/event/control/i-tree.event.d.ts +19 -1
- package/out/interface/controller/event/control/i-tree.event.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.d.ts +2 -0
- package/out/interface/controller/event/control/index.d.ts.map +1 -1
- package/out/interface/controller/event/control/index.js +2 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts +11 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-exp-view.event.js +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts +12 -0
- package/out/interface/controller/event/view/i-calendar-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-calendar-view.event.js +1 -0
- package/out/interface/controller/event/view/index.d.ts +2 -0
- package/out/interface/controller/event/view/index.d.ts.map +1 -1
- package/out/interface/controller/event/view/index.js +2 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts +11 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar-exp-bar.state.js +1 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts +162 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -0
- package/out/interface/controller/state/control/i-calendar.state.js +1 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts +52 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree.state.d.ts +9 -2
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.d.ts +2 -0
- package/out/interface/controller/state/control/index.d.ts.map +1 -1
- package/out/interface/controller/state/control/index.js +2 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-exp-view.state.js +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-calendar-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-calendar-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +2 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +2 -0
- package/out/model/layout/layout.d.ts.map +1 -1
- package/out/model/layout/layout.js +8 -2
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts +30 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/calendar-item-data.js +76 -0
- package/out/service/vo/calendar-item-data/index.d.ts +2 -0
- package/out/service/vo/calendar-item-data/index.d.ts.map +1 -0
- package/out/service/vo/calendar-item-data/index.js +1 -0
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +18 -16
- package/package.json +6 -6
- package/src/controller/common/control/md-control.controller.ts +28 -29
- package/src/engine/md-view.engine.ts +6 -3
- package/src/interface/controller/controller/control/i-calendar-exp-bar.controller.ts +19 -0
- package/src/interface/controller/controller/control/i-calendar.controller.ts +25 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +5 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +0 -11
- package/src/interface/controller/controller/control/index.ts +2 -0
- package/src/interface/controller/event/control/i-calendar-exp-bar.event.ts +10 -0
- package/src/interface/controller/event/control/i-calendar.event.ts +11 -0
- package/src/interface/controller/event/control/i-tree.event.ts +14 -1
- package/src/interface/controller/event/control/index.ts +2 -0
- package/src/interface/controller/event/view/i-calendar-exp-view.event.ts +11 -0
- package/src/interface/controller/event/view/i-calendar-view.event.ts +12 -0
- package/src/interface/controller/event/view/index.ts +2 -0
- package/src/interface/controller/state/control/i-calendar-exp-bar.state.ts +10 -0
- package/src/interface/controller/state/control/i-calendar.state.ts +172 -0
- package/src/interface/controller/state/control/i-grid.state.ts +58 -0
- package/src/interface/controller/state/control/i-tree.state.ts +10 -2
- package/src/interface/controller/state/control/index.ts +2 -0
- package/src/interface/controller/state/view/i-calendar-exp-view.state.ts +10 -0
- package/src/interface/controller/state/view/i-calendar-view.state.ts +10 -0
- package/src/interface/controller/state/view/index.ts +2 -0
- package/src/model/layout/layout.ts +6 -2
- package/src/service/vo/calendar-item-data/calendar-item-data.ts +94 -0
- package/src/service/vo/calendar-item-data/index.ts +1 -0
- package/src/service/vo/index.ts +1 -0
- package/src/utils/open-redirect-view/open-redirect-view.ts +18 -16
|
@@ -10,6 +10,28 @@ export interface IGridState extends IMDControlState {
|
|
|
10
10
|
* @type {IGridRowState[]}
|
|
11
11
|
*/
|
|
12
12
|
rows: IGridRowState[];
|
|
13
|
+
/**
|
|
14
|
+
* 表格列状态数组
|
|
15
|
+
* 顺序就是列的排序
|
|
16
|
+
* @author lxm
|
|
17
|
+
* @date 2023-08-04 07:08:16
|
|
18
|
+
* @type {IColumnState[]}
|
|
19
|
+
*/
|
|
20
|
+
columnStates: IColumnState[];
|
|
21
|
+
/**
|
|
22
|
+
* 聚合计算的结果
|
|
23
|
+
* @author lxm
|
|
24
|
+
* @date 2023-08-07 04:09:08
|
|
25
|
+
* @type {IData}
|
|
26
|
+
*/
|
|
27
|
+
aggResult: IData;
|
|
28
|
+
/**
|
|
29
|
+
* 远程聚合计算结果
|
|
30
|
+
* @author lxm
|
|
31
|
+
* @date 2023-08-07 05:36:54
|
|
32
|
+
* @type {IData}
|
|
33
|
+
*/
|
|
34
|
+
remoteAggResult?: IData;
|
|
13
35
|
}
|
|
14
36
|
export interface IGridRowState {
|
|
15
37
|
/**
|
|
@@ -78,4 +100,34 @@ export interface IGridRowState {
|
|
|
78
100
|
*/
|
|
79
101
|
processing: boolean;
|
|
80
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* 表格列状态
|
|
105
|
+
* @author lxm
|
|
106
|
+
* @date 2023-08-04 07:19:02
|
|
107
|
+
* @export
|
|
108
|
+
* @interface IColumnState
|
|
109
|
+
*/
|
|
110
|
+
export interface IColumnState {
|
|
111
|
+
/**
|
|
112
|
+
* 列标识,是列模型的codeName
|
|
113
|
+
* @author lxm
|
|
114
|
+
* @date 2023-08-04 07:16:07
|
|
115
|
+
* @type {string}
|
|
116
|
+
*/
|
|
117
|
+
key: string;
|
|
118
|
+
/**
|
|
119
|
+
* 列的中文标题
|
|
120
|
+
* @author lxm
|
|
121
|
+
* @date 2023-08-04 07:17:57
|
|
122
|
+
* @type {string}
|
|
123
|
+
*/
|
|
124
|
+
caption: string;
|
|
125
|
+
/**
|
|
126
|
+
* 显示隐藏
|
|
127
|
+
* @author lxm
|
|
128
|
+
* @date 2023-08-04 07:18:47
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
*/
|
|
131
|
+
hidden: boolean;
|
|
132
|
+
}
|
|
81
133
|
//# sourceMappingURL=i-grid.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;;;;;OAMG;IACH,YAAY,EAAE,YAAY,EAAE,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAEvC;;;;;;OAMG;IACH,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEpD;;;;;;OAMG;IACH,aAAa,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;SACnB,CAAC;KACH,CAAC;IAEF;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -15,15 +15,22 @@ export interface ITreeState extends IMDControlState {
|
|
|
15
15
|
* @type {ITreeNodeData}
|
|
16
16
|
* @memberof TreeState
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
rootNodes: ITreeNodeData[];
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 外部提供的默认展开的节点集合
|
|
21
21
|
*
|
|
22
22
|
* @author zk
|
|
23
23
|
* @date 2023-07-10 08:07:25
|
|
24
24
|
* @type {string[]}
|
|
25
25
|
* @memberof ITreeState
|
|
26
26
|
*/
|
|
27
|
+
defaultExpandedKeys: string[];
|
|
28
|
+
/**
|
|
29
|
+
* 实际默认展开节点集合
|
|
30
|
+
* @author lxm
|
|
31
|
+
* @date 2023-08-09 05:06:56
|
|
32
|
+
* @type {string[]}
|
|
33
|
+
*/
|
|
27
34
|
expandedKeys: string[];
|
|
28
35
|
/**
|
|
29
36
|
* 右键上下文菜单状态
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;OAKG;IACH,SAAS,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;;OAKG;IACH,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;CACtD;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CAGvB"}
|
|
@@ -26,4 +26,6 @@ export * from './i-chart.state';
|
|
|
26
26
|
export * from './i-drbar.state';
|
|
27
27
|
export * from './i-drtab.state';
|
|
28
28
|
export * from './i-dashboard.state';
|
|
29
|
+
export * from './i-calendar.state';
|
|
30
|
+
export * from './i-calendar-exp-bar.state';
|
|
29
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,YAAY,EACV,eAAe,EACf,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,YAAY,EACV,eAAe,EACf,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IExpViewState } from './i-exp-view.state';
|
|
2
|
+
/**
|
|
3
|
+
* 日历导航视图UI状态
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class ICalendarExpViewState
|
|
7
|
+
* @extends {IExpViewState}
|
|
8
|
+
*/
|
|
9
|
+
export interface ICalendarExpViewState extends IExpViewState {
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=i-calendar-exp-view.state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-calendar-exp-view.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/i-calendar-exp-view.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMDViewState } from './i-md-view.state';
|
|
2
|
+
/**
|
|
3
|
+
* 日历视图UI状态
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class ICalendarViewState
|
|
7
|
+
* @extends {IMDViewState}
|
|
8
|
+
*/
|
|
9
|
+
export interface ICalendarViewState extends IMDViewState {
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=i-calendar-view.state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-calendar-view.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/i-calendar-view.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,WAAW,kBAAmB,SAAQ,YAAY;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -33,4 +33,6 @@ export * from './i-portal-view.state';
|
|
|
33
33
|
export * from './i-app-portal-view.state';
|
|
34
34
|
export * from './i-de-portal-view.state';
|
|
35
35
|
export * from './i-panel-view.state';
|
|
36
|
+
export * from './i-calendar-view.state';
|
|
37
|
+
export * from './i-calendar-exp-view.state';
|
|
36
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/model/layout/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/model/layout/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CA0BA;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG,KAAK,CAuClE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,GACxB,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,CA+BrC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,CAIvE"}
|
|
@@ -14,7 +14,10 @@ export function calcLayoutHeightWidth(layoutPos) {
|
|
|
14
14
|
result.width = '100%';
|
|
15
15
|
}
|
|
16
16
|
else if (width && width > 0) {
|
|
17
|
-
if (
|
|
17
|
+
if (width > 0 && width <= 1) {
|
|
18
|
+
result.width = `${width * 100}%`;
|
|
19
|
+
}
|
|
20
|
+
else if (widthMode === 'PERCENTAGE') {
|
|
18
21
|
result.width = `${width}%`;
|
|
19
22
|
}
|
|
20
23
|
else {
|
|
@@ -25,7 +28,10 @@ export function calcLayoutHeightWidth(layoutPos) {
|
|
|
25
28
|
result.height = '100%';
|
|
26
29
|
}
|
|
27
30
|
else if (height && height > 0) {
|
|
28
|
-
if (
|
|
31
|
+
if (height > 0 && height <= 1) {
|
|
32
|
+
result.height = `${height * 100}%`;
|
|
33
|
+
}
|
|
34
|
+
else if (heightMode === 'PERCENTAGE') {
|
|
29
35
|
result.height = `${height}%`;
|
|
30
36
|
}
|
|
31
37
|
else {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ISysCalendarItem } from '@ibiz/model-core';
|
|
2
|
+
import { ICalendarItemData } from '../../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* 日历项数据
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class CalendarItemData
|
|
8
|
+
* @implements {ICalendarItemData}
|
|
9
|
+
*/
|
|
10
|
+
export declare class CalendarItemData implements ICalendarItemData {
|
|
11
|
+
private model;
|
|
12
|
+
private data;
|
|
13
|
+
constructor(model: ISysCalendarItem, data: IData);
|
|
14
|
+
get deData(): IData;
|
|
15
|
+
get navId(): string;
|
|
16
|
+
get itemType(): string;
|
|
17
|
+
get bkColor(): string;
|
|
18
|
+
get beginTime(): string;
|
|
19
|
+
get color(): string;
|
|
20
|
+
get content(): string;
|
|
21
|
+
get endTime(): string;
|
|
22
|
+
get icon(): string;
|
|
23
|
+
get id(): string;
|
|
24
|
+
get level(): string;
|
|
25
|
+
get tag2(): string;
|
|
26
|
+
get tag(): string;
|
|
27
|
+
get text(): string;
|
|
28
|
+
get tips(): string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=calendar-item-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-item-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/calendar-item-data/calendar-item-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;GAMG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB;IAEtD,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,IAAI;gBADJ,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,KAAK;IAGrB,IAAI,MAAM,IAAI,KAAK,CAElB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,IAAI,SAAS,IAAI,MAAM,CAGtB;IAED,IAAI,KAAK,IAAI,MAAM,CAKlB;IAED,IAAI,OAAO,IAAI,MAAM,CAGpB;IAED,IAAI,OAAO,IAAI,MAAM,CAGpB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,EAAE,IAAI,MAAM,CAKf;IAED,IAAI,KAAK,IAAI,MAAM,CAGlB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;IAED,IAAI,IAAI,IAAI,MAAM,CAGjB;CACF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 日历项数据
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @class CalendarItemData
|
|
6
|
+
* @implements {ICalendarItemData}
|
|
7
|
+
*/
|
|
8
|
+
export class CalendarItemData {
|
|
9
|
+
constructor(model, data) {
|
|
10
|
+
this.model = model;
|
|
11
|
+
this.data = data;
|
|
12
|
+
}
|
|
13
|
+
get deData() {
|
|
14
|
+
return this.data;
|
|
15
|
+
}
|
|
16
|
+
get navId() {
|
|
17
|
+
return `${this.itemType}@${this.id}`;
|
|
18
|
+
}
|
|
19
|
+
get itemType() {
|
|
20
|
+
return this.model.itemType;
|
|
21
|
+
}
|
|
22
|
+
get bkColor() {
|
|
23
|
+
const fieldName = this.model.bkcolorAppDEFieldId;
|
|
24
|
+
return fieldName && this.data[fieldName]
|
|
25
|
+
? this.data[fieldName]
|
|
26
|
+
: this.model.bkcolor;
|
|
27
|
+
}
|
|
28
|
+
get beginTime() {
|
|
29
|
+
const fieldName = this.model.beginTimeAppDEFieldId;
|
|
30
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
31
|
+
}
|
|
32
|
+
get color() {
|
|
33
|
+
const fieldName = this.model.colorAppDEFieldId;
|
|
34
|
+
return fieldName && this.data[fieldName]
|
|
35
|
+
? this.data[fieldName]
|
|
36
|
+
: this.model.color;
|
|
37
|
+
}
|
|
38
|
+
get content() {
|
|
39
|
+
const fieldName = this.model.contentAppDEFieldId;
|
|
40
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
41
|
+
}
|
|
42
|
+
get endTime() {
|
|
43
|
+
const fieldName = this.model.endTimeAppDEFieldId;
|
|
44
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
45
|
+
}
|
|
46
|
+
get icon() {
|
|
47
|
+
const fieldName = this.model.iconAppDEFieldId;
|
|
48
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
49
|
+
}
|
|
50
|
+
get id() {
|
|
51
|
+
const fieldName = this.model.idAppDEFieldId;
|
|
52
|
+
return fieldName && this.data[fieldName]
|
|
53
|
+
? this.data[fieldName]
|
|
54
|
+
: this.data.srfkey;
|
|
55
|
+
}
|
|
56
|
+
get level() {
|
|
57
|
+
const fieldName = this.model.levelAppDEFieldId;
|
|
58
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
59
|
+
}
|
|
60
|
+
get tag2() {
|
|
61
|
+
const fieldName = this.model.tag2AppDEFieldId;
|
|
62
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
63
|
+
}
|
|
64
|
+
get tag() {
|
|
65
|
+
const fieldName = this.model.tagAppDEFieldId;
|
|
66
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
67
|
+
}
|
|
68
|
+
get text() {
|
|
69
|
+
const fieldName = this.model.textAppDEFieldId;
|
|
70
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
71
|
+
}
|
|
72
|
+
get tips() {
|
|
73
|
+
const fieldName = this.model.tipsAppDEFieldId;
|
|
74
|
+
return fieldName ? this.data[fieldName] : undefined;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/calendar-item-data/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-item-data';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
package/out/service/vo/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAmDf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAyGrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAmDf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAyGrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,CA0CjB"}
|
|
@@ -166,7 +166,7 @@ export async function openDERedirectView(appView, context, params = {}, data = [
|
|
|
166
166
|
tag: name,
|
|
167
167
|
title: realTitle,
|
|
168
168
|
})));
|
|
169
|
-
throw new RuntimeModelError(appView, `未找到重定向标识[${rdTag}]或[${deRdTag}]
|
|
169
|
+
throw new RuntimeModelError(appView, `未找到重定向标识[${rdTag}]或[${deRdTag}]或工作流[${wfRdTag}]对应视图`);
|
|
170
170
|
}
|
|
171
171
|
return { ok: true, data: [] };
|
|
172
172
|
}
|
|
@@ -184,16 +184,6 @@ export async function openDERedirectView(appView, context, params = {}, data = [
|
|
|
184
184
|
*/
|
|
185
185
|
export async function calcDERdTag(entity, rdView, params, data) {
|
|
186
186
|
let rdTag = '';
|
|
187
|
-
// 重定向视图自定义类别属性
|
|
188
|
-
const typeFieldId = rdView.typeAppDEFieldId;
|
|
189
|
-
// 自定义重定向
|
|
190
|
-
if (typeFieldId) {
|
|
191
|
-
const { codeName } = findFieldById(entity, typeFieldId);
|
|
192
|
-
const value = data[codeName.toLowerCase()];
|
|
193
|
-
if (notNilEmpty(value)) {
|
|
194
|
-
return value;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
187
|
const defView = `${ibiz.env.isMob ? 'MOB' : ''}EDITVIEW`;
|
|
198
188
|
// 如果流程步骤存在,按照工作流优先
|
|
199
189
|
const srfWf = params.srfwf;
|
|
@@ -204,10 +194,22 @@ export async function calcDERdTag(entity, rdView, params, data) {
|
|
|
204
194
|
return `${defView}:${srfWf.toUpperCase()}`;
|
|
205
195
|
}
|
|
206
196
|
let typeValue = '';
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
197
|
+
// 重定向视图自定义类别属性
|
|
198
|
+
const typeFieldId = rdView.typeAppDEFieldId;
|
|
199
|
+
// 自定义重定向
|
|
200
|
+
if (typeFieldId) {
|
|
201
|
+
const { codeName } = findFieldById(entity, typeFieldId);
|
|
202
|
+
const value = data[codeName.toLowerCase()];
|
|
203
|
+
if (notNilEmpty(value)) {
|
|
204
|
+
typeValue = value;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (isNilOrEmpty(typeValue)) {
|
|
208
|
+
// 从索引属性获取重定向视图类型
|
|
209
|
+
if (entity.indexTypeAppDEFieldId) {
|
|
210
|
+
const { codeName } = findFieldById(entity, entity.indexTypeAppDEFieldId);
|
|
211
|
+
typeValue = data[codeName.toLowerCase()];
|
|
212
|
+
}
|
|
211
213
|
}
|
|
212
214
|
if (isNilOrEmpty(typeValue)) {
|
|
213
215
|
// 从多表单属性判断重定向视图类型
|
|
@@ -217,7 +219,7 @@ export async function calcDERdTag(entity, rdView, params, data) {
|
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
221
|
if (notNilEmpty(typeValue)) {
|
|
220
|
-
rdTag = `${defView}:${typeValue}`;
|
|
222
|
+
rdTag = `${defView}:${typeValue.toUpperCase()}`;
|
|
221
223
|
}
|
|
222
224
|
else {
|
|
223
225
|
rdTag = `${defView}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"build:rollup": "rollup -c",
|
|
22
22
|
"lint": "eslint 'src/**/*.ts'",
|
|
23
23
|
"lint:fix": "eslint --fix 'src/**/*.ts'",
|
|
24
|
-
"publish:next": "npm run build && npm publish --access public --tag=next",
|
|
25
|
-
"publish:dev": "npm run build && npm publish --access public --tag=dev",
|
|
26
|
-
"publish:beta": "npm run build && npm publish --access public --tag=beta",
|
|
24
|
+
"publish:next": "npm run build && npm publish --access public --tag=next --registry=http://npm.zhr.icu:4873/",
|
|
25
|
+
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=http://npm.zhr.icu:4873/",
|
|
26
|
+
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=http://npm.zhr.icu:4873/",
|
|
27
27
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
28
28
|
},
|
|
29
29
|
"author": "chitanda",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ibiz-template/core": "^0.1.
|
|
32
|
+
"@ibiz-template/core": "^0.1.5",
|
|
33
33
|
"@ibiz/model-core": "^0.0.14",
|
|
34
34
|
"@types/path-browserify": "^1.0.0",
|
|
35
35
|
"@types/qs": "^6.9.7",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"qx-util": "^0.4.8",
|
|
54
54
|
"ramda": "^0.29.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "76df195a7f16de6aec8c14d1315c09db06b5c3ff"
|
|
57
57
|
}
|
|
@@ -57,6 +57,7 @@ export class MDControlController<
|
|
|
57
57
|
this.state.isLoaded = false;
|
|
58
58
|
this.state.singleSelect = true;
|
|
59
59
|
this.state.mdctrlActiveMode = 0;
|
|
60
|
+
this.state.groups = [];
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
/**
|
|
@@ -114,44 +115,42 @@ export class MDControlController<
|
|
|
114
115
|
* @date 2022-08-19 14:08:50
|
|
115
116
|
*/
|
|
116
117
|
async load(args: MDCtrlLoadParams = {}): Promise<IData[]> {
|
|
117
|
-
// *初始加载需要重置分页
|
|
118
|
-
const isInitialLoad = args.isInitialLoad === true;
|
|
119
|
-
const isLoadMore = args.isLoadMore === true;
|
|
120
|
-
if (isInitialLoad) {
|
|
121
|
-
this.state.curPage = 1;
|
|
122
|
-
} else if (isLoadMore) {
|
|
123
|
-
this.state.curPage += 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// *查询参数处理
|
|
127
|
-
const { context } = this.handlerAbilityParams(args);
|
|
128
|
-
const params = await this.getFetchParams(args?.params);
|
|
129
|
-
|
|
130
|
-
// *发起请求
|
|
131
118
|
await this.startLoading();
|
|
132
|
-
let res;
|
|
133
119
|
try {
|
|
134
|
-
|
|
120
|
+
// *初始加载需要重置分页
|
|
121
|
+
const isInitialLoad = args.isInitialLoad === true;
|
|
122
|
+
const isLoadMore = args.isLoadMore === true;
|
|
123
|
+
if (isInitialLoad) {
|
|
124
|
+
this.state.curPage = 1;
|
|
125
|
+
} else if (isLoadMore) {
|
|
126
|
+
this.state.curPage += 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// *查询参数处理
|
|
130
|
+
const { context } = this.handlerAbilityParams(args);
|
|
131
|
+
const params = await this.getFetchParams(args?.params);
|
|
132
|
+
|
|
133
|
+
const res = await this.service.fetch(context, params);
|
|
135
134
|
// 更新分页数据总条数
|
|
136
135
|
if (typeof res.total === 'number') {
|
|
137
136
|
this.state.total = res.total;
|
|
138
137
|
}
|
|
139
|
-
} finally {
|
|
140
|
-
await this.endLoading();
|
|
141
|
-
}
|
|
142
138
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
139
|
+
if (isLoadMore) {
|
|
140
|
+
this.state.items.push(...res.data);
|
|
141
|
+
} else {
|
|
142
|
+
this.state.items = res.data;
|
|
143
|
+
}
|
|
148
144
|
|
|
149
|
-
|
|
145
|
+
await this.afterLoad(args, res.data);
|
|
150
146
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
this.state.isLoaded = true;
|
|
148
|
+
await this._evt.emit('onLoadSuccess', {
|
|
149
|
+
isInitialLoad,
|
|
150
|
+
});
|
|
151
|
+
} finally {
|
|
152
|
+
await this.endLoading();
|
|
153
|
+
}
|
|
155
154
|
|
|
156
155
|
return this.state.items;
|
|
157
156
|
}
|
|
@@ -192,11 +192,14 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
192
192
|
protected async openData(args: {
|
|
193
193
|
data: IData[];
|
|
194
194
|
event?: MouseEvent;
|
|
195
|
+
context?: IContext;
|
|
196
|
+
params?: IParams;
|
|
195
197
|
}): Promise<void> {
|
|
196
198
|
const { data, event } = args;
|
|
197
199
|
|
|
198
200
|
// 添加选中数据的主键
|
|
199
|
-
const context = this.view.context.clone();
|
|
201
|
+
const context = (args.context || this.view.context).clone();
|
|
202
|
+
const params = args.params || this.view.params;
|
|
200
203
|
const deName =
|
|
201
204
|
data[0].srfdecodename?.toLowerCase() ||
|
|
202
205
|
calcDeCodeNameById(this.xdataControl.model.appDataEntityId!);
|
|
@@ -204,14 +207,14 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
204
207
|
|
|
205
208
|
const result = await this.view.scheduler?.triggerCustom('opendata', {
|
|
206
209
|
context,
|
|
207
|
-
params
|
|
210
|
+
params,
|
|
208
211
|
data,
|
|
209
212
|
event,
|
|
210
213
|
view: this.view,
|
|
211
214
|
});
|
|
212
215
|
|
|
213
216
|
if (result === -1) {
|
|
214
|
-
|
|
217
|
+
ibiz.log.warn(`视图[${this.view.model.codeName}],未配置编辑打开视图`);
|
|
215
218
|
}
|
|
216
219
|
}
|
|
217
220
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ITreeExpBar } from '@ibiz/model-core';
|
|
2
|
+
import { ITreeExpBarEvent } from '../../event';
|
|
3
|
+
import { ITreeExpBarState } from '../../state';
|
|
4
|
+
import { IExpBarControlController } from './i-exp-bar-control.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 日历部件控制器
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2023-05-04 01:47:16
|
|
10
|
+
* @export
|
|
11
|
+
* @interface ICalendarController
|
|
12
|
+
* @extends {IMDControlController}
|
|
13
|
+
*/
|
|
14
|
+
export interface ICalendarExpBarController
|
|
15
|
+
extends IExpBarControlController<
|
|
16
|
+
ITreeExpBar,
|
|
17
|
+
ITreeExpBarState,
|
|
18
|
+
ITreeExpBarEvent
|
|
19
|
+
> {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IDECalendar } from '@ibiz/model-core';
|
|
2
|
+
import { ICalendarEvent } from '../../event';
|
|
3
|
+
import { ICalendarState } from '../../state';
|
|
4
|
+
import { IMDControlController } from './i-md-control.controller';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 日历部件控制器
|
|
8
|
+
* @author lxm
|
|
9
|
+
* @date 2023-05-04 01:47:16
|
|
10
|
+
* @export
|
|
11
|
+
* @interface ICalendarController
|
|
12
|
+
* @extends {IMDControlController}
|
|
13
|
+
*/
|
|
14
|
+
export interface ICalendarController
|
|
15
|
+
extends IMDControlController<IDECalendar, ICalendarState, ICalendarEvent> {
|
|
16
|
+
/**
|
|
17
|
+
* 设置选中日期
|
|
18
|
+
*
|
|
19
|
+
* @author zk
|
|
20
|
+
* @date 2023-08-08 11:08:24
|
|
21
|
+
* @param {Date} date
|
|
22
|
+
* @memberof ICalendarController
|
|
23
|
+
*/
|
|
24
|
+
setSelectDate(date: Date): void;
|
|
25
|
+
}
|
|
@@ -26,5 +26,9 @@ export interface ITreeExpBarController
|
|
|
26
26
|
* @return {*} {(INavViewMsg | undefined)}
|
|
27
27
|
* @memberof ITreeExpBarController
|
|
28
28
|
*/
|
|
29
|
-
getNavViewMsg(
|
|
29
|
+
getNavViewMsg(
|
|
30
|
+
data: IData[],
|
|
31
|
+
context: IContext,
|
|
32
|
+
params: IParams,
|
|
33
|
+
): INavViewMsg | undefined;
|
|
30
34
|
}
|