@ibiz-template/runtime 0.7.41-alpha.93 → 0.7.41-alpha.95
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 +217 -104
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/dashboard/dashboard.controller.d.ts +6 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +16 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +4 -8
- package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-button/form-button.controller.js +8 -0
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts +2 -2
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.d.ts +29 -40
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +35 -40
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +10 -2
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +50 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.d.ts +1 -1
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/util/i-api-app-util.d.ts +7 -0
- package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +17 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +17 -0
- package/out/locale/zh-CN/index.d.ts +17 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +17 -0
- package/out/model/utils/util.d.ts +2 -4
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +11 -1
- package/out/utils/jsonschema-util/jsonschema-util.d.ts +4 -6
- package/out/utils/jsonschema-util/jsonschema-util.d.ts.map +1 -1
- package/out/utils/jsonschema-util/jsonschema-util.js +71 -25
- package/package.json +2 -2
package/out/locale/en/index.d.ts
CHANGED
|
@@ -259,6 +259,23 @@ export declare const en: {
|
|
|
259
259
|
month: string;
|
|
260
260
|
week: string;
|
|
261
261
|
};
|
|
262
|
+
jsonSchemaUtil: {
|
|
263
|
+
eq: string;
|
|
264
|
+
not_eq: string;
|
|
265
|
+
gt: string;
|
|
266
|
+
gt_and_eq: string;
|
|
267
|
+
lt: string;
|
|
268
|
+
lt_and_eq: string;
|
|
269
|
+
is_null: string;
|
|
270
|
+
is_not_null: string;
|
|
271
|
+
IN: string;
|
|
272
|
+
not_in: string;
|
|
273
|
+
like: string;
|
|
274
|
+
lift_like: string;
|
|
275
|
+
right_like: string;
|
|
276
|
+
exists: string;
|
|
277
|
+
not_exists: string;
|
|
278
|
+
};
|
|
262
279
|
};
|
|
263
280
|
};
|
|
264
281
|
deLogic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/en/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/en/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+3Bd,CAAC"}
|
package/out/locale/en/index.js
CHANGED
|
@@ -260,6 +260,23 @@ export const en = {
|
|
|
260
260
|
month: 'Month',
|
|
261
261
|
week: 'Week',
|
|
262
262
|
},
|
|
263
|
+
jsonSchemaUtil: {
|
|
264
|
+
eq: 'Equal to (=)',
|
|
265
|
+
not_eq: 'Not equal to (<> )',
|
|
266
|
+
gt: 'Greater than (>)',
|
|
267
|
+
gt_and_eq: 'Greater than or equal to (>=)',
|
|
268
|
+
lt: 'Less than (<)',
|
|
269
|
+
lt_and_eq: 'Less than or equal to (<=)',
|
|
270
|
+
is_null: 'Value is Nil',
|
|
271
|
+
is_not_null: 'Value not null (NotNil)',
|
|
272
|
+
IN: 'Value In range (In)',
|
|
273
|
+
not_in: 'Value not in range (NotIn)',
|
|
274
|
+
like: 'Text contains (%)',
|
|
275
|
+
lift_like: 'Text left contained (%#)',
|
|
276
|
+
right_like: 'Text right included (#%)',
|
|
277
|
+
exists: 'exists(EXISTS)',
|
|
278
|
+
not_exists: 'Does not exist (NOTEXISTS)',
|
|
279
|
+
},
|
|
263
280
|
},
|
|
264
281
|
},
|
|
265
282
|
deLogic: {
|
|
@@ -259,6 +259,23 @@ export declare const zhCn: {
|
|
|
259
259
|
month: string;
|
|
260
260
|
week: string;
|
|
261
261
|
};
|
|
262
|
+
jsonSchemaUtil: {
|
|
263
|
+
eq: string;
|
|
264
|
+
not_eq: string;
|
|
265
|
+
gt: string;
|
|
266
|
+
gt_and_eq: string;
|
|
267
|
+
lt: string;
|
|
268
|
+
lt_and_eq: string;
|
|
269
|
+
is_null: string;
|
|
270
|
+
is_not_null: string;
|
|
271
|
+
IN: string;
|
|
272
|
+
not_in: string;
|
|
273
|
+
like: string;
|
|
274
|
+
lift_like: string;
|
|
275
|
+
right_like: string;
|
|
276
|
+
exists: string;
|
|
277
|
+
not_exists: string;
|
|
278
|
+
};
|
|
262
279
|
};
|
|
263
280
|
};
|
|
264
281
|
deLogic: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAguBhB,CAAC"}
|
|
@@ -260,6 +260,23 @@ export const zhCn = {
|
|
|
260
260
|
month: '月',
|
|
261
261
|
week: '周',
|
|
262
262
|
},
|
|
263
|
+
jsonSchemaUtil: {
|
|
264
|
+
eq: '等于(=)',
|
|
265
|
+
not_eq: '不等于(<>)',
|
|
266
|
+
gt: '大于(>)',
|
|
267
|
+
gt_and_eq: '大于等于(>=)',
|
|
268
|
+
lt: '小于(<)',
|
|
269
|
+
lt_and_eq: '小于等于(<=)',
|
|
270
|
+
is_null: '值为空(Nil)',
|
|
271
|
+
is_not_null: '值不为空(NotNil)',
|
|
272
|
+
IN: '值在范围中(In)',
|
|
273
|
+
not_in: '值不在范围中(NotIn)',
|
|
274
|
+
like: '文本包含(%)',
|
|
275
|
+
lift_like: '文本左包含(%#)',
|
|
276
|
+
right_like: '文本右包含(#%)',
|
|
277
|
+
exists: '存在(EXISTS)',
|
|
278
|
+
not_exists: '不存在(NOTEXISTS)',
|
|
279
|
+
},
|
|
263
280
|
},
|
|
264
281
|
},
|
|
265
282
|
deLogic: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPanel, IAppView, IControl, IAppViewRef, IModelObject, ISysPFPlugin, IAppDEMethod, IAppDataEntity,
|
|
1
|
+
import { IPanel, IAppView, IControl, IAppViewRef, IModelObject, ISysPFPlugin, IAppDEMethod, IAppDataEntity, IDEUIActionGroupDetail, IUIActionGroupDetail, IAppDEUIActionGroupDetail, IDEUIActionGroup } from '@ibiz/model-core';
|
|
2
2
|
/**
|
|
3
3
|
* 在数据模型中查找对应 id 模型
|
|
4
4
|
*
|
|
@@ -61,9 +61,7 @@ export declare function getPFPlugin(id: string, appId: string): ISysPFPlugin;
|
|
|
61
61
|
* @param {IControl} control
|
|
62
62
|
* @return {*} {(IPanel | undefined)}
|
|
63
63
|
*/
|
|
64
|
-
export declare function getControlPanel(control:
|
|
65
|
-
controlRenders?: IControlRender[];
|
|
66
|
-
}): IPanel | undefined;
|
|
64
|
+
export declare function getControlPanel(control: IControl): IPanel | undefined;
|
|
67
65
|
/**
|
|
68
66
|
* 在应用实体模型中查找对应 id 应用方法
|
|
69
67
|
* 解决应用实体方法名和行为,数据集方法不一致的问题
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/model/utils/util.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,YAAY,EAEZ,YAAY,EAEZ,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/model/utils/util.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,YAAY,EAEZ,YAAY,EAEZ,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAI1B;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EAAE,EACtB,EAAE,EAAE,MAAM,GACT,YAAY,GAAG,IAAI,CAarB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAQ5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,GAAG,EAAE,MAAM,GACV,WAAW,GAAG,SAAS,CAQzB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IACnE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;CAChB,CAyBA;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAsBnE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAgCrE;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,cAAc,EAC7B,EAAE,EAAE,MAAM,GACT,YAAY,GAAG,IAAI,CA0BrB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,QAAQ,GAAG;IACxD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;CACvB,CAQA;AAkCD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,gBAAgB,EAAE,KAAK,EACvB,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAkEtC;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,oBAAoB,EAAE,oBAAoB,EAAE,EAC5C,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,oBAAoB,EAAE,CAAC,CA4CjC;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,EAAE,EACjC,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAyBnC;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,gBAAgB,CAAC,CA2B3B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,sBAAsB,EAAO,GACrC,sBAAsB,EAAE,CAa1B"}
|
package/out/model/utils/util.js
CHANGED
|
@@ -132,8 +132,18 @@ export function getPFPlugin(id, appId) {
|
|
|
132
132
|
export function getControlPanel(control) {
|
|
133
133
|
let layoutPanel;
|
|
134
134
|
if (control.controlRenders) {
|
|
135
|
+
let { controlRenders } = control;
|
|
136
|
+
// 数据看板应排除预置门户部件绘制器(以_header、_header_caption、_header_bg、_header_action结尾)
|
|
137
|
+
if (controlRenders &&
|
|
138
|
+
controlRenders.length > 0 &&
|
|
139
|
+
control.controlType === 'DASHBOARD') {
|
|
140
|
+
controlRenders = controlRenders.filter(item => !(item.id.endsWith('_header') ||
|
|
141
|
+
item.id.endsWith('_header_caption') ||
|
|
142
|
+
item.id.endsWith('_header_bg') ||
|
|
143
|
+
item.id.endsWith('_header_action')));
|
|
144
|
+
}
|
|
135
145
|
// 排除空数据显示内容绘制器
|
|
136
|
-
const panelRender =
|
|
146
|
+
const panelRender = controlRenders.find(item => item.renderType === 'LAYOUTPANEL' &&
|
|
137
147
|
!!item.layoutPanel &&
|
|
138
148
|
!Object.values(PredefinedControlRender).includes(item.id));
|
|
139
149
|
layoutPanel = panelRender === null || panelRender === void 0 ? void 0 : panelRender.layoutPanel;
|
|
@@ -36,13 +36,11 @@ export declare enum DataType {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare class JsonSchemaUtil implements IJsonSchemaUtil {
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
42
|
-
* @date 2024-07-25 00:07:57
|
|
43
|
-
* @private
|
|
39
|
+
* @description 获取值操作数组
|
|
40
|
+
* @returns {*} {IData[]}
|
|
41
|
+
* @memberof JsonSchemaUtil
|
|
44
42
|
*/
|
|
45
|
-
|
|
43
|
+
getValueOPArray(): IData[];
|
|
46
44
|
/**
|
|
47
45
|
* 数据类型映射操作符
|
|
48
46
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonschema-util.d.ts","sourceRoot":"","sources":["../../../src/utils/jsonschema-util/jsonschema-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,QAAQ;IAClB;;OAEG;IACH,QAAQ,WAAW;IAEnB;;OAEG;IACH,QAAQ,WAAW;IAEnB;;OAEG;IACH,MAAM,SAAS;IAEf;;OAEG;IACH,UAAU,aAAa;IAEvB;;OAEG;IACH,YAAY,eAAe;IAE3B;;OAEG;IACH,OAAO,UAAU;CAClB;AAED;;;;;;;GAOG;AACH,qBAAa,cAAe,YAAW,eAAe;IACpD
|
|
1
|
+
{"version":3,"file":"jsonschema-util.d.ts","sourceRoot":"","sources":["../../../src/utils/jsonschema-util/jsonschema-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,QAAQ;IAClB;;OAEG;IACH,QAAQ,WAAW;IAEnB;;OAEG;IACH,QAAQ,WAAW;IAEnB;;OAEG;IACH,MAAM,SAAS;IAEf;;OAEG;IACH,UAAU,aAAa;IAEvB;;OAEG;IACH,YAAY,eAAe;IAE3B;;OAEG;IACH,OAAO,UAAU;CAClB;AAED;;;;;;;GAOG;AACH,qBAAa,cAAe,YAAW,eAAe;IACpD;;;;OAIG;IACH,eAAe,IAAI,KAAK,EAAE;IAuE1B;;;;;;;;;OASG;IACH,OAAO,CAAC,aAAa,CAsDnB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU,CAKhB;IAEF;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB,CAqCtB;IAEF;;;;;;;;;OASG;IACG,qBAAqB,CACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,KAAK,EAAE,CAAC;IAkEnB;;;;;;;OAOG;IACH,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAE;IAShD;;;;;;;;OAQG;IACH,aAAa,CACX,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,OAAO,CAAC,EAAE,OAAO,GAChB,KAAK,GAAG,SAAS;IAgBpB;;;;;;;;OAQG;IACH,cAAc,CACZ,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EACvB,KAAK,GAAE,KAAK,GAAG,MAAc,GAC5B,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;CAarB"}
|
|
@@ -39,30 +39,6 @@ export var DataType;
|
|
|
39
39
|
*/
|
|
40
40
|
export class JsonSchemaUtil {
|
|
41
41
|
constructor() {
|
|
42
|
-
/**
|
|
43
|
-
* 值操作数组
|
|
44
|
-
*
|
|
45
|
-
* @author tony001
|
|
46
|
-
* @date 2024-07-25 00:07:57
|
|
47
|
-
* @private
|
|
48
|
-
*/
|
|
49
|
-
this.valueOPArray = [
|
|
50
|
-
{ valueOP: ValueOP.EQ, label: '等于', sqlOP: '=' },
|
|
51
|
-
{ valueOP: ValueOP.NOT_EQ, label: '不等于', sqlOP: '<>' },
|
|
52
|
-
{ valueOP: ValueOP.GT, label: '大于', sqlOP: '>' },
|
|
53
|
-
{ valueOP: ValueOP.GT_AND_EQ, label: '大于等于', sqlOP: '>=' },
|
|
54
|
-
{ valueOP: ValueOP.LT, label: '小于', sqlOP: '<' },
|
|
55
|
-
{ valueOP: ValueOP.LT_AND_EQ, label: '小于等于', sqlOP: '<=' },
|
|
56
|
-
{ valueOP: ValueOP.IS_NULL, label: '为空', sqlOP: 'IS NULL' },
|
|
57
|
-
{ valueOP: ValueOP.IS_NOT_NULL, label: '非空', sqlOP: 'IS NOT NULL' },
|
|
58
|
-
{ valueOP: ValueOP.IN, label: '属于', sqlOP: 'IN' },
|
|
59
|
-
{ valueOP: ValueOP.NOT_IN, label: '不属于', sqlOP: 'NOT IN' },
|
|
60
|
-
{ valueOP: ValueOP.LIKE, label: '文本包含', sqlOP: 'LIKE' },
|
|
61
|
-
{ valueOP: ValueOP.LIFT_LIKE, label: '文本左包含', sqlOP: '' },
|
|
62
|
-
{ valueOP: ValueOP.RIGHT_LIKE, label: '文本右包含', sqlOP: '' },
|
|
63
|
-
{ valueOP: ValueOP.EXISTS, label: '存在', sqlOP: '' },
|
|
64
|
-
{ valueOP: ValueOP.NOT_EXISTS, label: '不存在', sqlOP: '' },
|
|
65
|
-
];
|
|
66
42
|
/**
|
|
67
43
|
* 数据类型映射操作符
|
|
68
44
|
*
|
|
@@ -187,6 +163,75 @@ export class JsonSchemaUtil {
|
|
|
187
163
|
[DataType.CHILD]: undefined,
|
|
188
164
|
};
|
|
189
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* @description 获取值操作数组
|
|
168
|
+
* @returns {*} {IData[]}
|
|
169
|
+
* @memberof JsonSchemaUtil
|
|
170
|
+
*/
|
|
171
|
+
getValueOPArray() {
|
|
172
|
+
return [
|
|
173
|
+
{
|
|
174
|
+
valueOP: ValueOP.EQ,
|
|
175
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.eq'),
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
valueOP: ValueOP.NOT_EQ,
|
|
179
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.not_eq'),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
valueOP: ValueOP.GT,
|
|
183
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.gt'),
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
valueOP: ValueOP.GT_AND_EQ,
|
|
187
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.gt_and_eq'),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
valueOP: ValueOP.LT,
|
|
191
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.lt'),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
valueOP: ValueOP.LT_AND_EQ,
|
|
195
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.lt_and_eq'),
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
valueOP: ValueOP.IS_NULL,
|
|
199
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.is_null'),
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
valueOP: ValueOP.IS_NOT_NULL,
|
|
203
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.is_not_null'),
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
valueOP: ValueOP.IN,
|
|
207
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.in'),
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
valueOP: ValueOP.NOT_IN,
|
|
211
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.not_in'),
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
valueOP: ValueOP.LIKE,
|
|
215
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.like'),
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
valueOP: ValueOP.LIFT_LIKE,
|
|
219
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.lift_like'),
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
valueOP: ValueOP.RIGHT_LIKE,
|
|
223
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.right_like'),
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
valueOP: ValueOP.EXISTS,
|
|
227
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.exists'),
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
valueOP: ValueOP.NOT_EXISTS,
|
|
231
|
+
label: ibiz.i18n.t('runtime.controller.utils.jsonSchemaUtil.not_exists'),
|
|
232
|
+
},
|
|
233
|
+
];
|
|
234
|
+
}
|
|
190
235
|
/**
|
|
191
236
|
* 获取jsonschema属性数据
|
|
192
237
|
*
|
|
@@ -274,7 +319,8 @@ export class JsonSchemaUtil {
|
|
|
274
319
|
*/
|
|
275
320
|
getValueOPsByDataType(dataType) {
|
|
276
321
|
let result = [];
|
|
277
|
-
|
|
322
|
+
const valueOPArray = this.getValueOPArray();
|
|
323
|
+
result = valueOPArray.filter(mode => this.DataTypeToOPs[dataType].includes(mode.valueOP));
|
|
278
324
|
return result;
|
|
279
325
|
}
|
|
280
326
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.95",
|
|
4
4
|
"description": "运行时逻辑库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"qx-util": "^0.4.8",
|
|
69
69
|
"ramda": "^0.29.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "93451df17b928f76b61b037c213594969101fded"
|
|
72
72
|
}
|