@farris/ui-list-filter 0.1.8 → 0.1.9
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/fesm2015/farris-ui-list-filter.js +1 -1
- package/fesm5/farris-ui-list-filter.js +1 -1
- package/lib/entity/comparetype.d.ts +29 -0
- package/lib/entity/controltype/checkbox/checkboxcontrol.d.ts +24 -0
- package/lib/entity/controltype/checkbox/checkboxvalue.d.ts +16 -0
- package/lib/entity/controltype/checkbox/ienumvalue.d.ts +20 -0
- package/lib/entity/controltype/datarange/daterangecontrol.d.ts +30 -0
- package/lib/entity/controltype/datarangetime/daterangetimecontrol.d.ts +29 -0
- package/lib/entity/controltype/date/datecontrol.d.ts +36 -0
- package/lib/entity/controltype/dropdownlist/boolenumvalue.d.ts +18 -0
- package/lib/entity/controltype/dropdownlist/dropdowncontrol.d.ts +52 -0
- package/lib/entity/controltype/dropdownlist/enumtype.d.ts +5 -0
- package/lib/entity/controltype/dropdownlist/ienumvalue.d.ts +10 -0
- package/lib/entity/controltype/dropdownlist/integerenumvalue.d.ts +18 -0
- package/lib/entity/controltype/dropdownlist/stringenumvalue.d.ts +18 -0
- package/lib/entity/controltype/help/displayType.d.ts +4 -0
- package/lib/entity/controltype/help/helpcontrol.d.ts +66 -0
- package/lib/entity/controltype/input-group/inputgroupcontrol.d.ts +56 -0
- package/lib/entity/controltype/month/monthcontrol.d.ts +36 -0
- package/lib/entity/controltype/monthrange/monthrangecontrol.d.ts +30 -0
- package/lib/entity/controltype/numberrange/numberrangecontrol.d.ts +35 -0
- package/lib/entity/controltype/radio/ienumvalue.d.ts +20 -0
- package/lib/entity/controltype/radio/radiocontrol.d.ts +24 -0
- package/lib/entity/controltype/search/searchcontrol.d.ts +23 -0
- package/lib/entity/controltype/text/textcontrol.d.ts +23 -0
- package/lib/entity/controltype/year/yearcontrol.d.ts +36 -0
- package/lib/entity/controltype/yearrange/yearrangecontrol.d.ts +30 -0
- package/lib/entity/controltype.d.ts +17 -0
- package/lib/entity/querycondition.d.ts +69 -0
- package/lib/entity/relationtype.d.ts +10 -0
- package/lib/entity/valuetype.d.ts +18 -0
- package/lib/interface/IistFilterHandler.d.ts +6 -0
- package/lib/service/convertorservice.d.ts +26 -0
- package/lib/service/list-filter.service.d.ts +49 -0
- package/lib/submithandlers/handlers/monthrage.handler.d.ts +5 -0
- package/lib/submithandlers/query-solution.service.d.ts +5 -0
- package/lib/submithandlers/querycondition.handler.factory.d.ts +9 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { FarrisFormsModule } from '@farris/ui-forms';
|
|
|
10
10
|
import { PerfectScrollbarModule } from '@farris/ui-perfect-scrollbar';
|
|
11
11
|
import { NumberSpinnerModule } from '@farris/ui-number-spinner';
|
|
12
12
|
import { LocaleModule } from '@farris/ui-locale';
|
|
13
|
-
import { EventEmitter, Injectable, NgModule, Component, Input, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy, Output, ElementRef, Renderer2, Injector, LOCALE_ID, Optional, InjectFlags,
|
|
13
|
+
import { EventEmitter, Injectable, NgModule, Pipe, Component, ViewEncapsulation, InjectionToken, Input, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy, Output, ElementRef, Renderer2, Injector, LOCALE_ID, Optional, InjectFlags, HostBinding, defineInjectable } from '@angular/core';
|
|
14
14
|
import { InputGroupModule } from '@farris/ui-input-group';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -11,7 +11,7 @@ import { FarrisFormsModule } from '@farris/ui-forms';
|
|
|
11
11
|
import { PerfectScrollbarModule } from '@farris/ui-perfect-scrollbar';
|
|
12
12
|
import { NumberSpinnerModule } from '@farris/ui-number-spinner';
|
|
13
13
|
import { LocaleModule } from '@farris/ui-locale';
|
|
14
|
-
import { EventEmitter, Injectable, NgModule, Pipe, Component, ViewEncapsulation, InjectionToken, Input, HostBinding, Output, Injector, ChangeDetectorRef, ElementRef, ViewChild, LOCALE_ID, InjectFlags, ChangeDetectionStrategy, Renderer2, Optional
|
|
14
|
+
import { EventEmitter, Injectable, NgModule, Pipe, Component, ViewEncapsulation, InjectionToken, Input, HostBinding, Output, Injector, ChangeDetectorRef, ElementRef, ViewChild, defineInjectable, LOCALE_ID, InjectFlags, ChangeDetectionStrategy, Renderer2, Optional } from '@angular/core';
|
|
15
15
|
import { InputGroupModule } from '@farris/ui-input-group';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 比较符
|
|
3
|
+
*/
|
|
4
|
+
export declare enum CompareType {
|
|
5
|
+
/**
|
|
6
|
+
* 等于
|
|
7
|
+
*/
|
|
8
|
+
Equal = 0,
|
|
9
|
+
/**
|
|
10
|
+
* 大于
|
|
11
|
+
*/
|
|
12
|
+
GreaterThan = 2,
|
|
13
|
+
/**
|
|
14
|
+
* 大于或等于
|
|
15
|
+
*/
|
|
16
|
+
GreaterThanOrEqual = 3,
|
|
17
|
+
/**
|
|
18
|
+
* 小于
|
|
19
|
+
*/
|
|
20
|
+
LessThan = 4,
|
|
21
|
+
/**
|
|
22
|
+
* 小于或等于
|
|
23
|
+
*/
|
|
24
|
+
LessThanOrEqual = 5,
|
|
25
|
+
/**
|
|
26
|
+
* 之间
|
|
27
|
+
*/
|
|
28
|
+
BetWeen = 6
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { CheckboxIEnumValue } from './ienumvalue';
|
|
4
|
+
/**
|
|
5
|
+
* 多选组控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class CheckboxGroupControl implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 获取控件类型
|
|
10
|
+
*/
|
|
11
|
+
getControlType(): ControlType;
|
|
12
|
+
/**
|
|
13
|
+
* 多选组数据源列表
|
|
14
|
+
*/
|
|
15
|
+
enumValues: Array<CheckboxIEnumValue>;
|
|
16
|
+
/**
|
|
17
|
+
* 是否是展示在扩展区域内的
|
|
18
|
+
*/
|
|
19
|
+
isExtend: boolean;
|
|
20
|
+
/**是否显示label */
|
|
21
|
+
showLabel: boolean;
|
|
22
|
+
/**是否必填 */
|
|
23
|
+
required: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CheckboxIEnumValue } from "./ienumvalue";
|
|
2
|
+
/**
|
|
3
|
+
* checboxgroup类型
|
|
4
|
+
*/
|
|
5
|
+
export declare class CheckboxValue implements CheckboxIEnumValue {
|
|
6
|
+
getEnumValueName(): string;
|
|
7
|
+
getEnumValue(): any;
|
|
8
|
+
/**
|
|
9
|
+
* 文本显示
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* 值显示
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CheckboxIEnumValue {
|
|
2
|
+
getEnumValueName(): string;
|
|
3
|
+
getEnumValue(): any;
|
|
4
|
+
/**
|
|
5
|
+
* 值显示
|
|
6
|
+
*/
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class CheckboxEnumValue implements CheckboxIEnumValue {
|
|
10
|
+
getEnumValueName(): string;
|
|
11
|
+
getEnumValue(): any;
|
|
12
|
+
/**
|
|
13
|
+
* 文本显示
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* 值显示
|
|
18
|
+
*/
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 日期区间控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class DateRangeControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
beginPlaceHolder: string;
|
|
16
|
+
endPlaceHolder: string;
|
|
17
|
+
/**
|
|
18
|
+
* 日期格式
|
|
19
|
+
*/
|
|
20
|
+
format: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否是展示在扩展区域内的
|
|
23
|
+
*/
|
|
24
|
+
isExtend: boolean;
|
|
25
|
+
/**是否显示label */
|
|
26
|
+
showLabel: boolean;
|
|
27
|
+
/**是否必填 */
|
|
28
|
+
required: boolean;
|
|
29
|
+
showType: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 日期区间带时间控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class DateRangeTimeControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
beginPlaceHolder: string;
|
|
16
|
+
endPlaceHolder: string;
|
|
17
|
+
/**
|
|
18
|
+
* 日期格式
|
|
19
|
+
*/
|
|
20
|
+
format: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否是展示在扩展区域内的
|
|
23
|
+
*/
|
|
24
|
+
isExtend: boolean;
|
|
25
|
+
/**是否显示label */
|
|
26
|
+
showLabel: boolean;
|
|
27
|
+
/**是否必填 */
|
|
28
|
+
required: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { CompareType } from '../../comparetype';
|
|
4
|
+
/**
|
|
5
|
+
* 日期控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class DateControl implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 获取控件类型
|
|
10
|
+
*/
|
|
11
|
+
getControlType(): ControlType;
|
|
12
|
+
/**
|
|
13
|
+
* 日期格式
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* 默认显示
|
|
17
|
+
*/
|
|
18
|
+
placeholder: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否是展示在扩展区域内的
|
|
21
|
+
*/
|
|
22
|
+
isExtend: boolean;
|
|
23
|
+
/**是否显示label */
|
|
24
|
+
showLabel: boolean;
|
|
25
|
+
/**是否必填 */
|
|
26
|
+
required: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 日期格式
|
|
29
|
+
*/
|
|
30
|
+
format: string;
|
|
31
|
+
/**
|
|
32
|
+
* 搜索日期类型
|
|
33
|
+
*/
|
|
34
|
+
compareType: CompareType;
|
|
35
|
+
showType: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEnumValue } from "./ienumvalue";
|
|
2
|
+
import { EnumType } from "./enumtype";
|
|
3
|
+
/**
|
|
4
|
+
* 下拉列表Bool类型
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnumBoolValue implements IEnumValue {
|
|
7
|
+
getEnumType(): EnumType;
|
|
8
|
+
getEnumValueName(): string;
|
|
9
|
+
getEnumValue(): any;
|
|
10
|
+
/**
|
|
11
|
+
* 文本显示
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* 值显示
|
|
16
|
+
*/
|
|
17
|
+
value: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { EnumType } from "./enumtype";
|
|
4
|
+
import { IEnumValue } from "./ienumvalue";
|
|
5
|
+
/**
|
|
6
|
+
* 下拉列表控件
|
|
7
|
+
*/
|
|
8
|
+
export declare class DropDownControl implements IControl {
|
|
9
|
+
/**
|
|
10
|
+
* 获取控件类型
|
|
11
|
+
*/
|
|
12
|
+
getControlType(): ControlType;
|
|
13
|
+
/**
|
|
14
|
+
* 下拉值类型
|
|
15
|
+
*/
|
|
16
|
+
valueType: EnumType;
|
|
17
|
+
/**
|
|
18
|
+
* 默认显示
|
|
19
|
+
*/
|
|
20
|
+
placeholder: string;
|
|
21
|
+
/**
|
|
22
|
+
* 下拉数据源列表
|
|
23
|
+
* 该属性为IEnumValue接口类型,具体实现类如下:
|
|
24
|
+
* 1.布尔类型:EnumBoolValue,布尔类型的控件会转成下拉列表,实现类使用EnumBoolValue
|
|
25
|
+
* 2.字符串类型:EnumStringValue
|
|
26
|
+
* 3.整型类型:EnumIntegerValue 例如Radio Button类型需要使用EnumIntegerValue实现类
|
|
27
|
+
*/
|
|
28
|
+
enumValues: Array<IEnumValue>;
|
|
29
|
+
/**
|
|
30
|
+
* 是否是展示在扩展区域内的
|
|
31
|
+
*/
|
|
32
|
+
isExtend: boolean;
|
|
33
|
+
/**是否显示label */
|
|
34
|
+
showLabel: boolean;
|
|
35
|
+
/**是否必填 */
|
|
36
|
+
required: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 下拉列表控件序列化与反序列化器
|
|
40
|
+
*/
|
|
41
|
+
export declare class DropDownListControlConvert {
|
|
42
|
+
/**
|
|
43
|
+
* 序列化
|
|
44
|
+
* @param obj 下拉列表控件实体
|
|
45
|
+
*/
|
|
46
|
+
convertToObject(obj: DropDownControl): Object;
|
|
47
|
+
/**
|
|
48
|
+
* 反序列化
|
|
49
|
+
* @param jobj 下拉列表控件实体序列化后的JSON对象
|
|
50
|
+
*/
|
|
51
|
+
initFromObject(jobj: Object): DropDownControl;
|
|
52
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EnumType } from "./enumtype";
|
|
2
|
+
export interface IEnumValue {
|
|
3
|
+
getEnumType(): EnumType;
|
|
4
|
+
getEnumValueName(): string;
|
|
5
|
+
getEnumValue(): any;
|
|
6
|
+
}
|
|
7
|
+
export declare class EnumValueConvert {
|
|
8
|
+
convertJObject(obj: IEnumValue): Object;
|
|
9
|
+
initFromJobject(jobj: Object): IEnumValue;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEnumValue } from "./ienumvalue";
|
|
2
|
+
import { EnumType } from "./enumtype";
|
|
3
|
+
/**
|
|
4
|
+
* 下拉列表Integer类型
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnumIntegerValue implements IEnumValue {
|
|
7
|
+
getEnumType(): EnumType;
|
|
8
|
+
getEnumValueName(): string;
|
|
9
|
+
getEnumValue(): any;
|
|
10
|
+
/**
|
|
11
|
+
* 文本显示
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* 值显示
|
|
16
|
+
*/
|
|
17
|
+
value: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEnumValue } from "./ienumvalue";
|
|
2
|
+
import { EnumType } from "./enumtype";
|
|
3
|
+
/**
|
|
4
|
+
* 下拉列表String类型
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnumStringValue implements IEnumValue {
|
|
7
|
+
getEnumType(): EnumType;
|
|
8
|
+
getEnumValueName(): string;
|
|
9
|
+
getEnumValue(): any;
|
|
10
|
+
/**
|
|
11
|
+
* 文本显示
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* 值显示
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IControl } from '../icontrol';
|
|
2
|
+
import { ControlType } from '../../controltype';
|
|
3
|
+
import { DisplayType } from './displayType';
|
|
4
|
+
/**
|
|
5
|
+
* 帮助控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class HelpContol implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 默认显示
|
|
10
|
+
*/
|
|
11
|
+
placeholder: string;
|
|
12
|
+
/**
|
|
13
|
+
* 帮助数据源
|
|
14
|
+
*/
|
|
15
|
+
uri: string;
|
|
16
|
+
/**
|
|
17
|
+
* 帮助的文本显示字段
|
|
18
|
+
*/
|
|
19
|
+
textField: string;
|
|
20
|
+
/**
|
|
21
|
+
* 帮助值字段
|
|
22
|
+
*/
|
|
23
|
+
valueField: string;
|
|
24
|
+
idField: string;
|
|
25
|
+
helpId: string;
|
|
26
|
+
displayType: DisplayType;
|
|
27
|
+
/**
|
|
28
|
+
* 字段映射信息
|
|
29
|
+
*/
|
|
30
|
+
mapFields: any;
|
|
31
|
+
/**
|
|
32
|
+
* 是否是展示在扩展区域内的
|
|
33
|
+
*/
|
|
34
|
+
isExtend: boolean;
|
|
35
|
+
/** 是否显示label */
|
|
36
|
+
showLabel: boolean;
|
|
37
|
+
/** 是否必填 */
|
|
38
|
+
required: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 帮助前事件
|
|
41
|
+
*/
|
|
42
|
+
preEventCmd: any;
|
|
43
|
+
title: string;
|
|
44
|
+
/**
|
|
45
|
+
* 帮助后事件
|
|
46
|
+
*/
|
|
47
|
+
postEventCmd: any;
|
|
48
|
+
/**
|
|
49
|
+
* 运行时参数配置传递
|
|
50
|
+
*/
|
|
51
|
+
context: any;
|
|
52
|
+
/** 启用构造完整树过滤 */
|
|
53
|
+
enableFullTree: boolean;
|
|
54
|
+
/** 树形帮助数据加载方式: default: 内置取数; loadall: 加载所有 layerload:分层加载 */
|
|
55
|
+
loadTreeDataType: 'default' | 'loadall' | 'layerload';
|
|
56
|
+
/** 是否支持多选 */
|
|
57
|
+
singleSelect: boolean;
|
|
58
|
+
/** 展开到指定级数 */
|
|
59
|
+
expandLevel: number;
|
|
60
|
+
/** 是否启用级联选择控制选项 */
|
|
61
|
+
enableCascade: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 获取控件类型
|
|
64
|
+
*/
|
|
65
|
+
getControlType(): ControlType;
|
|
66
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 智能输入框控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class InputGroupControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型,返回值:智能输入框控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
isRequired(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否允许输入
|
|
14
|
+
*/
|
|
15
|
+
editable: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 按钮显示文本
|
|
18
|
+
*/
|
|
19
|
+
groupText: string;
|
|
20
|
+
/**
|
|
21
|
+
* 使用模式(文本、弹出表单)
|
|
22
|
+
*/
|
|
23
|
+
usageMode: string;
|
|
24
|
+
/**
|
|
25
|
+
* 弹出表单相关配置
|
|
26
|
+
*/
|
|
27
|
+
dialogOptions: DialogConfig;
|
|
28
|
+
/**
|
|
29
|
+
* 按钮点击事件
|
|
30
|
+
*/
|
|
31
|
+
click: any;
|
|
32
|
+
/**
|
|
33
|
+
* 是否是展示在扩展区域内的
|
|
34
|
+
*/
|
|
35
|
+
isExtend: boolean;
|
|
36
|
+
/**是否显示label */
|
|
37
|
+
showLabel: boolean;
|
|
38
|
+
/**是否必填 */
|
|
39
|
+
required: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 默认显示
|
|
42
|
+
*/
|
|
43
|
+
placeholder: string;
|
|
44
|
+
}
|
|
45
|
+
export declare class DialogConfig {
|
|
46
|
+
modalId: string;
|
|
47
|
+
mapFields: any;
|
|
48
|
+
title: string;
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
}
|
|
52
|
+
export declare class DialogButtonConfig {
|
|
53
|
+
text: string;
|
|
54
|
+
cls: any;
|
|
55
|
+
handle: any;
|
|
56
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { CompareType } from '../../comparetype';
|
|
4
|
+
/**
|
|
5
|
+
* 年月控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class MonthControl implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 获取控件类型
|
|
10
|
+
*/
|
|
11
|
+
getControlType(): ControlType;
|
|
12
|
+
/**
|
|
13
|
+
* 日期格式
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* 默认显示
|
|
17
|
+
*/
|
|
18
|
+
placeholder: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否是展示在扩展区域内的
|
|
21
|
+
*/
|
|
22
|
+
isExtend: boolean;
|
|
23
|
+
/**是否显示label */
|
|
24
|
+
showLabel: boolean;
|
|
25
|
+
/**是否必填 */
|
|
26
|
+
required: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 日期格式
|
|
29
|
+
*/
|
|
30
|
+
format: string;
|
|
31
|
+
/**
|
|
32
|
+
* 搜索日期类型
|
|
33
|
+
*/
|
|
34
|
+
compareType: CompareType;
|
|
35
|
+
showType: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 年月区间控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class MonthRangeControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
beginPlaceHolder: string;
|
|
16
|
+
endPlaceHolder: string;
|
|
17
|
+
/**
|
|
18
|
+
* 日期格式
|
|
19
|
+
*/
|
|
20
|
+
format: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否是展示在扩展区域内的
|
|
23
|
+
*/
|
|
24
|
+
isExtend: boolean;
|
|
25
|
+
/**是否显示label */
|
|
26
|
+
showLabel: boolean;
|
|
27
|
+
/**是否必填 */
|
|
28
|
+
required: boolean;
|
|
29
|
+
showType: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 数字区间控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class NumberRangeControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 长度
|
|
13
|
+
*/
|
|
14
|
+
length: number;
|
|
15
|
+
/**
|
|
16
|
+
* 精度
|
|
17
|
+
*/
|
|
18
|
+
precision: number;
|
|
19
|
+
/**
|
|
20
|
+
* 默认显示
|
|
21
|
+
*/
|
|
22
|
+
placeholder: string;
|
|
23
|
+
beginPlaceHolder: string;
|
|
24
|
+
endPlaceHolder: string;
|
|
25
|
+
/**
|
|
26
|
+
* 是否是展示在扩展区域内的
|
|
27
|
+
*/
|
|
28
|
+
isExtend: boolean;
|
|
29
|
+
/**是否显示label */
|
|
30
|
+
showLabel: boolean;
|
|
31
|
+
/**是否必填 */
|
|
32
|
+
required: boolean;
|
|
33
|
+
/**是否是大数 */
|
|
34
|
+
bigNumber: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface RadioIEnumValue {
|
|
2
|
+
getEnumValueName(): string;
|
|
3
|
+
getEnumValue(): any;
|
|
4
|
+
/**
|
|
5
|
+
* 值显示
|
|
6
|
+
*/
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class RadioEnumValue implements RadioIEnumValue {
|
|
10
|
+
getEnumValueName(): string;
|
|
11
|
+
getEnumValue(): any;
|
|
12
|
+
/**
|
|
13
|
+
* 文本显示
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* 值显示
|
|
18
|
+
*/
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { RadioIEnumValue } from './ienumvalue';
|
|
4
|
+
/**
|
|
5
|
+
* 多选组控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class RadioControl implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 获取控件类型
|
|
10
|
+
*/
|
|
11
|
+
getControlType(): ControlType;
|
|
12
|
+
/**
|
|
13
|
+
* 多选组数据源列表
|
|
14
|
+
*/
|
|
15
|
+
enumValues: Array<RadioIEnumValue>;
|
|
16
|
+
/**
|
|
17
|
+
* 是否是展示在扩展区域内的
|
|
18
|
+
*/
|
|
19
|
+
isExtend: boolean;
|
|
20
|
+
/**是否显示label */
|
|
21
|
+
showLabel: boolean;
|
|
22
|
+
/**是否必填 */
|
|
23
|
+
required: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 搜索控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class SearchControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型,返回值:搜索控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 搜索框默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
/**
|
|
16
|
+
* 是否是展示在扩展区域内的
|
|
17
|
+
*/
|
|
18
|
+
isExtend: boolean;
|
|
19
|
+
/**是否显示label */
|
|
20
|
+
showLabel: boolean;
|
|
21
|
+
/**是否必填 */
|
|
22
|
+
required: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 文本控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class TextControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型,返回值:文本控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
/**
|
|
16
|
+
* 是否是展示在扩展区域内的
|
|
17
|
+
*/
|
|
18
|
+
isExtend: boolean;
|
|
19
|
+
/**是否显示label */
|
|
20
|
+
showLabel: boolean;
|
|
21
|
+
/**是否必填 */
|
|
22
|
+
required: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
import { CompareType } from '../../comparetype';
|
|
4
|
+
/**
|
|
5
|
+
* 年份控件
|
|
6
|
+
*/
|
|
7
|
+
export declare class YearControl implements IControl {
|
|
8
|
+
/**
|
|
9
|
+
* 获取控件类型
|
|
10
|
+
*/
|
|
11
|
+
getControlType(): ControlType;
|
|
12
|
+
/**
|
|
13
|
+
* 日期格式
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* 默认显示
|
|
17
|
+
*/
|
|
18
|
+
placeholder: string;
|
|
19
|
+
/**
|
|
20
|
+
* 是否是展示在扩展区域内的
|
|
21
|
+
*/
|
|
22
|
+
isExtend: boolean;
|
|
23
|
+
/**是否显示label */
|
|
24
|
+
showLabel: boolean;
|
|
25
|
+
/**是否必填 */
|
|
26
|
+
required: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 日期格式
|
|
29
|
+
*/
|
|
30
|
+
format: string;
|
|
31
|
+
/**
|
|
32
|
+
* 搜索日期类型
|
|
33
|
+
*/
|
|
34
|
+
compareType: CompareType;
|
|
35
|
+
showType: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IControl } from "../icontrol";
|
|
2
|
+
import { ControlType } from "../../controltype";
|
|
3
|
+
/**
|
|
4
|
+
* 年度区间控件
|
|
5
|
+
*/
|
|
6
|
+
export declare class YearRangeControl implements IControl {
|
|
7
|
+
/**
|
|
8
|
+
* 获取控件类型
|
|
9
|
+
*/
|
|
10
|
+
getControlType(): ControlType;
|
|
11
|
+
/**
|
|
12
|
+
* 默认显示
|
|
13
|
+
*/
|
|
14
|
+
placeholder: string;
|
|
15
|
+
beginPlaceHolder: string;
|
|
16
|
+
endPlaceHolder: string;
|
|
17
|
+
/**
|
|
18
|
+
* 日期格式
|
|
19
|
+
*/
|
|
20
|
+
format: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否是展示在扩展区域内的
|
|
23
|
+
*/
|
|
24
|
+
isExtend: boolean;
|
|
25
|
+
/**是否显示label */
|
|
26
|
+
showLabel: boolean;
|
|
27
|
+
/**是否必填 */
|
|
28
|
+
required: boolean;
|
|
29
|
+
showType: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum ControlType {
|
|
2
|
+
Text = 0,
|
|
3
|
+
Help = 1,
|
|
4
|
+
DropDown = 2,
|
|
5
|
+
DateRange = 3,
|
|
6
|
+
NumberRange = 4,
|
|
7
|
+
Search = 5,
|
|
8
|
+
Date = 6,
|
|
9
|
+
CheckboxGroup = 7,
|
|
10
|
+
DateRangeTime = 8,
|
|
11
|
+
Radio = 9,
|
|
12
|
+
Year = 10,
|
|
13
|
+
Month = 11,
|
|
14
|
+
MonthRange = 12,
|
|
15
|
+
YearRange = 13,
|
|
16
|
+
InputGroup = 14
|
|
17
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CompareType } from "./comparetype";
|
|
2
|
+
import { ValueType } from "./valuetype";
|
|
3
|
+
import { RelationType } from "./relationtype";
|
|
4
|
+
import { IControl } from "./controltype/icontrol";
|
|
5
|
+
import { IValue } from "./conditionvalue/ivalue";
|
|
6
|
+
/**
|
|
7
|
+
* 查询条件实体类
|
|
8
|
+
*/
|
|
9
|
+
export declare class QueryCondition {
|
|
10
|
+
/**
|
|
11
|
+
* 唯一性标识
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* 左括号
|
|
16
|
+
*/
|
|
17
|
+
leftBrackets: string;
|
|
18
|
+
/**
|
|
19
|
+
* 字段编号
|
|
20
|
+
*/
|
|
21
|
+
fieldCode: string;
|
|
22
|
+
/**
|
|
23
|
+
* 字段名称
|
|
24
|
+
*/
|
|
25
|
+
fieldName: string;
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* 比较符
|
|
29
|
+
*/
|
|
30
|
+
compareType: CompareType;
|
|
31
|
+
/**
|
|
32
|
+
* 值类型
|
|
33
|
+
*/
|
|
34
|
+
valueType: ValueType;
|
|
35
|
+
/**
|
|
36
|
+
* 值
|
|
37
|
+
* 该属性为IValue接口,根据不同的控件类型有不同的实现类:具体如下:
|
|
38
|
+
* 1. 文本类型:TextValue
|
|
39
|
+
* 2. 下拉列表:DropDownListValue
|
|
40
|
+
* 3. 日期区间:DateRangeValue
|
|
41
|
+
* 4. 数字区间:NumberRangeValue
|
|
42
|
+
* 5. 帮助类型:SmartHelpValue
|
|
43
|
+
*/
|
|
44
|
+
value: IValue;
|
|
45
|
+
/**
|
|
46
|
+
* 右括号
|
|
47
|
+
*/
|
|
48
|
+
rightBrackets: string;
|
|
49
|
+
/**
|
|
50
|
+
* 关系符
|
|
51
|
+
*/
|
|
52
|
+
relationType: RelationType;
|
|
53
|
+
/**
|
|
54
|
+
* 控件类型,目前包括文本类型,下拉列表,日期区间,数字区间,帮助类型
|
|
55
|
+
* 控件类型为IControl接口,根据不同的控件类型对应不同的实现类,具体如下:
|
|
56
|
+
* 1. 文本类型:TextControl
|
|
57
|
+
* 2. 下拉列表:DropDownListControl
|
|
58
|
+
* 3. 日期区间:DateRangeControl
|
|
59
|
+
* 4. 数字区间:NumberRangeControl
|
|
60
|
+
* 5. 帮助类型:SmartHelpContol
|
|
61
|
+
*/
|
|
62
|
+
control: IControl;
|
|
63
|
+
placeHolder: string;
|
|
64
|
+
beginPlaceHolder?: string;
|
|
65
|
+
endPlaceHolder?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 查询条件序列化与反序列化器
|
|
69
|
+
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { QueryCondition } from '../entity/querycondition';
|
|
3
|
+
export interface ListFilterHandler {
|
|
4
|
+
setCurrentFilterConditions(conditions: QueryCondition[]): void;
|
|
5
|
+
}
|
|
6
|
+
export declare const LISTFILTER_HANDLER_TOKEN: InjectionToken<ListFilterHandler>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FieldConfig } from '../entity/fieldconfig/fieldconfig';
|
|
2
|
+
import { QueryCondition } from '../entity/querycondition';
|
|
3
|
+
export declare class ConvertorService {
|
|
4
|
+
constructor();
|
|
5
|
+
/**
|
|
6
|
+
* 获取已选择的字段配置
|
|
7
|
+
* @param selectedConditions
|
|
8
|
+
*/
|
|
9
|
+
getFeildConfigs(selectedConditions: Array<QueryCondition>): FieldConfig[];
|
|
10
|
+
getSelectedFieldConditions(fileds: Array<FieldConfig>, selectedFieldConditions: Array<QueryCondition>): QueryCondition[];
|
|
11
|
+
private getDropListEnumValues;
|
|
12
|
+
private getCheckGroupEnumValues;
|
|
13
|
+
getNewFieldConditions(filed: FieldConfig, selectedFieldConditions: Array<QueryCondition>): QueryCondition[];
|
|
14
|
+
private getDropDownListValueFieldCondition;
|
|
15
|
+
private getCheckboxGroupValueFieldCondition;
|
|
16
|
+
private getRadioValueFieldCondition;
|
|
17
|
+
private getSmartHelpValueFieldCondition;
|
|
18
|
+
private getNumberRangeValueFieldCondition;
|
|
19
|
+
private getDateRangeValueFieldCondition;
|
|
20
|
+
private getDateRangeTimeValueFieldCondition;
|
|
21
|
+
private getTextValueFieldCondition;
|
|
22
|
+
private getInputGroupValueFieldCondition;
|
|
23
|
+
private getDateValueFieldCondition;
|
|
24
|
+
private getSearchValueFieldCondition;
|
|
25
|
+
private arrayClone;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FieldConfig } from '../entity/fieldconfig/fieldconfig';
|
|
2
|
+
import { DateRangeValue } from '../entity/conditionvalue/daterangevalue';
|
|
3
|
+
import { TextValue } from '../entity/conditionvalue/textvalue';
|
|
4
|
+
import { SearchValue } from '../entity/conditionvalue/searchvalue';
|
|
5
|
+
import { DateValue } from '../entity/conditionvalue/datevalue';
|
|
6
|
+
import { NumberRangeValue } from '../entity/conditionvalue/numberrangevaue';
|
|
7
|
+
import { DropDownListValue } from '../entity/conditionvalue/dropdownlistvalue';
|
|
8
|
+
import { HelpValue } from '../entity/conditionvalue/helpvalue';
|
|
9
|
+
import { CheckboxGroupValue } from '../entity/conditionvalue/checkboxgroupvalue';
|
|
10
|
+
import { DateRangeTimeValue } from '../entity/conditionvalue/daterangetimevalue';
|
|
11
|
+
import { RadioGroupValue } from '../entity/conditionvalue/radiovalue';
|
|
12
|
+
import { YearValue } from '../entity/conditionvalue/yearvalue';
|
|
13
|
+
import { MonthValue } from '../entity/conditionvalue/month';
|
|
14
|
+
import { YearRangeValue } from '../entity/conditionvalue/yearrange';
|
|
15
|
+
import { MonthRangeValue } from '../entity/conditionvalue/monthrange';
|
|
16
|
+
import { InputGroupValue } from '../entity/conditionvalue/inputgroup';
|
|
17
|
+
export declare class ListFilterService {
|
|
18
|
+
constructor();
|
|
19
|
+
fieldSchemasConvert(filedSchemas: Array<any>): Array<FieldConfig>;
|
|
20
|
+
private getTextControl;
|
|
21
|
+
private getInputGroupControl;
|
|
22
|
+
private getDateControl;
|
|
23
|
+
private getYearControl;
|
|
24
|
+
private getMonthControl;
|
|
25
|
+
private getNumberRangeControl;
|
|
26
|
+
private getSearchControl;
|
|
27
|
+
private getDropDownControl;
|
|
28
|
+
private getLookUpEditControl;
|
|
29
|
+
private getCheckboxGroupControl;
|
|
30
|
+
private getDateRangeControl;
|
|
31
|
+
private getYearRangeControl;
|
|
32
|
+
private getMonthRangeControl;
|
|
33
|
+
private getDateRangeTimeControl;
|
|
34
|
+
private getRadioControl;
|
|
35
|
+
setValues(controltype: any, value: any): TextValue | NumberRangeValue | DateRangeValue | HelpValue | DropDownListValue | SearchValue | DateValue | CheckboxGroupValue | DateRangeTimeValue | RadioGroupValue | YearValue | MonthValue | YearRangeValue | MonthRangeValue | InputGroupValue;
|
|
36
|
+
/**
|
|
37
|
+
* 智能输入框控件需要弹出表单时,将表单配置JSON描述转换为弹出表单命令可接收的弹窗参数
|
|
38
|
+
* @param usageMode 智能输入框控件使用模式
|
|
39
|
+
* @param modalConfigData 表单配置JSON描述
|
|
40
|
+
* @returns 弹出表单命令可接收的弹窗参数
|
|
41
|
+
*/
|
|
42
|
+
private setInputGroupDialog;
|
|
43
|
+
/**
|
|
44
|
+
* 智能输入框控件需要弹出表单时,将弹窗按钮组配置JSON描述转换为弹出表单命令可接收的弹窗按钮组参数
|
|
45
|
+
* @param buttonData 弹窗按钮组配置JSON描述
|
|
46
|
+
* @returns 弹出表单命令可接收的弹窗按钮组参数
|
|
47
|
+
*/
|
|
48
|
+
private setInputGroupDialogButtons;
|
|
49
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IQueryConditionHandler } from "./handlers/iquerycondition.handler";
|
|
2
|
+
import { ControlType } from '../entity/controltype';
|
|
3
|
+
export declare class QueryConditionHandlerFactory {
|
|
4
|
+
private static _instance;
|
|
5
|
+
private queryConditionHandlerMapping;
|
|
6
|
+
private constructor();
|
|
7
|
+
static getInstance(): QueryConditionHandlerFactory;
|
|
8
|
+
getHandler(controlType: ControlType): IQueryConditionHandler;
|
|
9
|
+
}
|