@easyquery/core 7.2.3 → 7.2.4-beta03
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/bundles/easyquery.core.js +9353 -9336
- package/dist/bundles/easyquery.core.js.map +1 -1
- package/dist/bundles/easyquery.core.min.js +1 -1
- package/dist/bundles/easyquery.core.min.js.map +1 -1
- package/dist/lib/common/eq_services.d.ts +56 -56
- package/dist/lib/common/eq_services.js +159 -159
- package/dist/lib/common/query_param.d.ts +25 -25
- package/dist/lib/common/query_param.js +1 -0
- package/dist/lib/common/tree.d.ts +10 -10
- package/dist/lib/common/tree.js +57 -57
- package/dist/lib/data/eq_aggr_container.d.ts +24 -24
- package/dist/lib/data/eq_aggr_container.js +108 -108
- package/dist/lib/data/eq_aggr_container.js.map +1 -1
- package/dist/lib/data/eq_data_loader.d.ts +8 -8
- package/dist/lib/data/eq_data_loader.js +49 -49
- package/dist/lib/data/eq_data_loader.js.map +1 -1
- package/dist/lib/data/google_data_converter.d.ts +82 -82
- package/dist/lib/data/google_data_converter.js +173 -173
- package/dist/lib/data/google_data_converter.js.map +1 -1
- package/dist/lib/dm/aggr_function.d.ts +27 -27
- package/dist/lib/dm/aggr_function.js +42 -42
- package/dist/lib/dm/data_model.d.ts +330 -330
- package/dist/lib/dm/data_model.js +934 -932
- package/dist/lib/dm/data_model.js.map +1 -1
- package/dist/lib/dm/dto/af_data.d.ts +16 -16
- package/dist/lib/dm/dto/af_data.js +1 -0
- package/dist/lib/dm/dto/dm_data.d.ts +34 -34
- package/dist/lib/dm/dto/dm_data.js +1 -0
- package/dist/lib/dm/dto/entity_data.d.ts +37 -37
- package/dist/lib/dm/dto/entity_data.js +1 -0
- package/dist/lib/dm/dto/operator_data.d.ts +44 -44
- package/dist/lib/dm/dto/operator_data.js +1 -0
- package/dist/lib/dm/dto/ve_data.d.ts +10 -10
- package/dist/lib/dm/dto/ve_data.js +1 -0
- package/dist/lib/dm/entity.d.ts +71 -71
- package/dist/lib/dm/entity.js +90 -88
- package/dist/lib/dm/entity.js.map +1 -1
- package/dist/lib/dm/link.d.ts +7 -7
- package/dist/lib/dm/link.js +1 -0
- package/dist/lib/dm/operator.d.ts +80 -80
- package/dist/lib/dm/operator.js +93 -93
- package/dist/lib/dm/value_editor.d.ts +16 -16
- package/dist/lib/dm/value_editor.js +43 -41
- package/dist/lib/dm/value_editor.js.map +1 -1
- package/dist/lib/eqs/eqs_data_fetcher.d.ts +7 -7
- package/dist/lib/eqs/eqs_data_fetcher.js +36 -36
- package/dist/lib/eqs/eqs_exporter.d.ts +10 -10
- package/dist/lib/eqs/eqs_exporter.js +57 -54
- package/dist/lib/eqs/eqs_exporter.js.map +1 -1
- package/dist/lib/eqs/eqs_model_loader.d.ts +7 -7
- package/dist/lib/eqs/eqs_model_loader.js +42 -40
- package/dist/lib/eqs/eqs_model_loader.js.map +1 -1
- package/dist/lib/eqs/eqs_query_file_loader.d.ts +9 -9
- package/dist/lib/eqs/eqs_query_file_loader.js +54 -54
- package/dist/lib/eqs/eqs_query_file_loader.js.map +1 -1
- package/dist/lib/eqs/eqs_query_synchronizer.d.ts +7 -7
- package/dist/lib/eqs/eqs_query_synchronizer.js +23 -23
- package/dist/lib/eqs/eqs_value_list_resolver.d.ts +7 -7
- package/dist/lib/eqs/eqs_value_list_resolver.js +28 -28
- package/dist/lib/export/exporter.d.ts +16 -16
- package/dist/lib/export/exporter.js +1 -0
- package/dist/lib/i18n/text_resources.d.ts +1 -1
- package/dist/lib/i18n/text_resources.js +26 -26
- package/dist/lib/i18n/text_resources.js.map +1 -1
- package/dist/lib/main/action.d.ts +13 -13
- package/dist/lib/main/action.js +5 -5
- package/dist/lib/main/context.d.ts +342 -342
- package/dist/lib/main/context.js +1439 -1439
- package/dist/lib/main/context.js.map +1 -1
- package/dist/lib/main/context_options.d.ts +145 -145
- package/dist/lib/main/context_options.js +1 -0
- package/dist/lib/main/data_fetcher.d.ts +46 -46
- package/dist/lib/main/data_fetcher.js +1 -0
- package/dist/lib/main/eq_actions.d.ts +14 -14
- package/dist/lib/main/eq_actions.js +15 -15
- package/dist/lib/main/list_cache.d.ts +8 -8
- package/dist/lib/main/list_cache.js +1 -0
- package/dist/lib/main/model_loader.d.ts +21 -21
- package/dist/lib/main/model_loader.js +32 -32
- package/dist/lib/main/model_storage.d.ts +13 -13
- package/dist/lib/main/model_storage.js +17 -17
- package/dist/lib/main/query_file_loader.d.ts +15 -15
- package/dist/lib/main/query_file_loader.js +1 -0
- package/dist/lib/main/query_storage.d.ts +58 -58
- package/dist/lib/main/query_storage.js +124 -124
- package/dist/lib/main/query_synchronizer.d.ts +9 -9
- package/dist/lib/main/query_synchronizer.js +1 -0
- package/dist/lib/main/value_list_resolver.d.ts +18 -18
- package/dist/lib/main/value_list_resolver.js +1 -0
- package/dist/lib/main/widget.d.ts +74 -74
- package/dist/lib/main/widget.js +101 -101
- package/dist/lib/public_api.d.ts +58 -58
- package/dist/lib/public_api.js +59 -42
- package/dist/lib/public_api.js.map +1 -1
- package/dist/lib/query/condition.d.ts +97 -97
- package/dist/lib/query/condition.js +331 -331
- package/dist/lib/query/descriptors.d.ts +36 -36
- package/dist/lib/query/descriptors.js +1 -0
- package/dist/lib/query/dto/condition_data.d.ts +38 -38
- package/dist/lib/query/dto/condition_data.js +1 -0
- package/dist/lib/query/dto/expression_data.d.ts +32 -32
- package/dist/lib/query/dto/expression_data.js +1 -0
- package/dist/lib/query/dto/query_column_data.d.ts +28 -28
- package/dist/lib/query/dto/query_column_data.js +1 -0
- package/dist/lib/query/dto/query_data.d.ts +27 -27
- package/dist/lib/query/dto/query_data.js +1 -0
- package/dist/lib/query/expression.d.ts +69 -69
- package/dist/lib/query/expression.js +202 -202
- package/dist/lib/query/query.d.ts +410 -410
- package/dist/lib/query/query.js +1393 -1391
- package/dist/lib/query/query.js.map +1 -1
- package/dist/lib/query/query_column.d.ts +70 -70
- package/dist/lib/query/query_column.js +157 -157
- package/dist/lib/query/query_events.d.ts +29 -29
- package/dist/lib/query/query_events.js +19 -19
- package/dist/lib/types/cond_part.d.ts +6 -6
- package/dist/lib/types/cond_part.js +7 -7
- package/dist/lib/types/cond_tag.d.ts +12 -12
- package/dist/lib/types/cond_tag.js +13 -13
- package/dist/lib/types/data_kind.d.ts +15 -15
- package/dist/lib/types/data_kind.js +16 -16
- package/dist/lib/types/eq_editor_tag.d.ts +17 -17
- package/dist/lib/types/eq_editor_tag.js +20 -20
- package/dist/lib/types/expr_tag.d.ts +19 -19
- package/dist/lib/types/expr_tag.js +20 -20
- package/dist/lib/types/link_type.d.ts +17 -17
- package/dist/lib/types/link_type.js +18 -18
- package/dist/lib/types/widget_group.d.ts +17 -17
- package/dist/lib/types/widget_group.js +18 -18
- package/dist/lib/utils/constants.d.ts +36 -36
- package/dist/lib/utils/constants.js +50 -50
- package/dist/lib/utils/format_parser.d.ts +40 -40
- package/dist/lib/utils/format_parser.js +87 -87
- package/dist/lib/utils/utils.d.ts +34 -34
- package/dist/lib/utils/utils.js +102 -102
- package/dist/lib/utils/version_info.d.ts +9 -9
- package/dist/lib/utils/version_info.js +12 -12
- package/dist/lib/utils/version_info.js.map +1 -1
- package/package.json +16 -16
- package/webpack.config.js +6 -5
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { EntityAttr } from '../dm/entity';
|
|
2
|
-
import { SortDirection, QueryColumn } from './query_column';
|
|
3
|
-
import { Operator } from '../dm/operator';
|
|
4
|
-
import { Condition } from '../query/condition';
|
|
5
|
-
import { LinkType } from '../types/link_type';
|
|
6
|
-
/**
|
|
7
|
-
* The type of the parameter for addColumn method
|
|
8
|
-
*/
|
|
9
|
-
export interface ColumnDescriptor {
|
|
10
|
-
column?: QueryColumn;
|
|
11
|
-
attribute?: EntityAttr;
|
|
12
|
-
attributeId?: string;
|
|
13
|
-
sorting?: SortDirection;
|
|
14
|
-
sortIndex?: number;
|
|
15
|
-
index?: number;
|
|
16
|
-
aggrFuncId?: string;
|
|
17
|
-
caption?: string;
|
|
18
|
-
enabled?: boolean;
|
|
19
|
-
readonly?: boolean;
|
|
20
|
-
justsorted?: boolean;
|
|
21
|
-
cusomtSql?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SimpleConditionDescriptor {
|
|
24
|
-
parent?: Condition;
|
|
25
|
-
attribute?: EntityAttr;
|
|
26
|
-
attributeId?: string;
|
|
27
|
-
operator?: Operator;
|
|
28
|
-
operatorId?: string;
|
|
29
|
-
value?: string | Array<string>;
|
|
30
|
-
enabled?: boolean;
|
|
31
|
-
readonly?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface ConditionGroupDescriptor {
|
|
34
|
-
parent?: Condition;
|
|
35
|
-
linking?: LinkType;
|
|
36
|
-
}
|
|
1
|
+
import { EntityAttr } from '../dm/entity';
|
|
2
|
+
import { SortDirection, QueryColumn } from './query_column';
|
|
3
|
+
import { Operator } from '../dm/operator';
|
|
4
|
+
import { Condition } from '../query/condition';
|
|
5
|
+
import { LinkType } from '../types/link_type';
|
|
6
|
+
/**
|
|
7
|
+
* The type of the parameter for addColumn method
|
|
8
|
+
*/
|
|
9
|
+
export interface ColumnDescriptor {
|
|
10
|
+
column?: QueryColumn;
|
|
11
|
+
attribute?: EntityAttr;
|
|
12
|
+
attributeId?: string;
|
|
13
|
+
sorting?: SortDirection;
|
|
14
|
+
sortIndex?: number;
|
|
15
|
+
index?: number;
|
|
16
|
+
aggrFuncId?: string;
|
|
17
|
+
caption?: string;
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
readonly?: boolean;
|
|
20
|
+
justsorted?: boolean;
|
|
21
|
+
cusomtSql?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SimpleConditionDescriptor {
|
|
24
|
+
parent?: Condition;
|
|
25
|
+
attribute?: EntityAttr;
|
|
26
|
+
attributeId?: string;
|
|
27
|
+
operator?: Operator;
|
|
28
|
+
operatorId?: string;
|
|
29
|
+
value?: string | Array<string>;
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ConditionGroupDescriptor {
|
|
34
|
+
parent?: Condition;
|
|
35
|
+
linking?: LinkType;
|
|
36
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { CondTag } from "../../types/cond_tag";
|
|
2
|
-
import { LinkType } from "../../types/link_type";
|
|
3
|
-
import { ExpressionData } from "./expression_data";
|
|
4
|
-
/**
|
|
5
|
-
* Condition JSON representation object.
|
|
6
|
-
*/
|
|
7
|
-
export interface ConditionData {
|
|
8
|
-
/** The condition tag. */
|
|
9
|
-
tag?: CondTag;
|
|
10
|
-
/** The value indicating whether this Condition is enabled (left of backward compatibility). */
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
/** The value indicating whether this Condition is disabled. */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* The value indicating whether this condition is read-only.
|
|
16
|
-
*/
|
|
17
|
-
readOnly?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The value indicating whether this condition is parameterized.
|
|
20
|
-
*/
|
|
21
|
-
parameterized?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The value indicating whether this condition must be placed into `JOIN` clause in result `SQL`.
|
|
24
|
-
*/
|
|
25
|
-
inJoin?: boolean;
|
|
26
|
-
/** The linking. */
|
|
27
|
-
linking: LinkType;
|
|
28
|
-
/** The operator id. */
|
|
29
|
-
op: string;
|
|
30
|
-
/**
|
|
31
|
-
* The list of expressions.
|
|
32
|
-
*/
|
|
33
|
-
exprs?: ExpressionData[];
|
|
34
|
-
/**
|
|
35
|
-
* The list of conditions.
|
|
36
|
-
*/
|
|
37
|
-
conds?: ConditionData[];
|
|
38
|
-
}
|
|
1
|
+
import { CondTag } from "../../types/cond_tag";
|
|
2
|
+
import { LinkType } from "../../types/link_type";
|
|
3
|
+
import { ExpressionData } from "./expression_data";
|
|
4
|
+
/**
|
|
5
|
+
* Condition JSON representation object.
|
|
6
|
+
*/
|
|
7
|
+
export interface ConditionData {
|
|
8
|
+
/** The condition tag. */
|
|
9
|
+
tag?: CondTag;
|
|
10
|
+
/** The value indicating whether this Condition is enabled (left of backward compatibility). */
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
/** The value indicating whether this Condition is disabled. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The value indicating whether this condition is read-only.
|
|
16
|
+
*/
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The value indicating whether this condition is parameterized.
|
|
20
|
+
*/
|
|
21
|
+
parameterized?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The value indicating whether this condition must be placed into `JOIN` clause in result `SQL`.
|
|
24
|
+
*/
|
|
25
|
+
inJoin?: boolean;
|
|
26
|
+
/** The linking. */
|
|
27
|
+
linking: LinkType;
|
|
28
|
+
/** The operator id. */
|
|
29
|
+
op: string;
|
|
30
|
+
/**
|
|
31
|
+
* The list of expressions.
|
|
32
|
+
*/
|
|
33
|
+
exprs?: ExpressionData[];
|
|
34
|
+
/**
|
|
35
|
+
* The list of conditions.
|
|
36
|
+
*/
|
|
37
|
+
conds?: ConditionData[];
|
|
38
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { DataType } from '@easydata/core';
|
|
2
|
-
import { ExprTag } from "../../types/expr_tag";
|
|
3
|
-
import { DataKind } from "../../types/data_kind";
|
|
4
|
-
import { QueryData } from "./query_data";
|
|
5
|
-
/**
|
|
6
|
-
* Expression JSON representation object.
|
|
7
|
-
*/
|
|
8
|
-
export interface ExpressionData {
|
|
9
|
-
id?: string;
|
|
10
|
-
/** The tag. */
|
|
11
|
-
tag: ExprTag;
|
|
12
|
-
/** The data kind. */
|
|
13
|
-
kind?: DataKind;
|
|
14
|
-
/** The data type. */
|
|
15
|
-
dtype?: DataType;
|
|
16
|
-
/** The value. */
|
|
17
|
-
val?: string;
|
|
18
|
-
/** the text. */
|
|
19
|
-
txt?: string;
|
|
20
|
-
/**The select distinct. */
|
|
21
|
-
distinct?: boolean;
|
|
22
|
-
/** The function. */
|
|
23
|
-
func?: string;
|
|
24
|
-
/** List of arguments */
|
|
25
|
-
args?: ExpressionData[];
|
|
26
|
-
/** The sql expression. */
|
|
27
|
-
sql?: string;
|
|
28
|
-
/** The vase attribute id. */
|
|
29
|
-
baseAttrId?: string;
|
|
30
|
-
/** The uery. */
|
|
31
|
-
query?: QueryData;
|
|
32
|
-
}
|
|
1
|
+
import { DataType } from '@easydata/core';
|
|
2
|
+
import { ExprTag } from "../../types/expr_tag";
|
|
3
|
+
import { DataKind } from "../../types/data_kind";
|
|
4
|
+
import { QueryData } from "./query_data";
|
|
5
|
+
/**
|
|
6
|
+
* Expression JSON representation object.
|
|
7
|
+
*/
|
|
8
|
+
export interface ExpressionData {
|
|
9
|
+
id?: string;
|
|
10
|
+
/** The tag. */
|
|
11
|
+
tag: ExprTag;
|
|
12
|
+
/** The data kind. */
|
|
13
|
+
kind?: DataKind;
|
|
14
|
+
/** The data type. */
|
|
15
|
+
dtype?: DataType;
|
|
16
|
+
/** The value. */
|
|
17
|
+
val?: string;
|
|
18
|
+
/** the text. */
|
|
19
|
+
txt?: string;
|
|
20
|
+
/**The select distinct. */
|
|
21
|
+
distinct?: boolean;
|
|
22
|
+
/** The function. */
|
|
23
|
+
func?: string;
|
|
24
|
+
/** List of arguments */
|
|
25
|
+
args?: ExpressionData[];
|
|
26
|
+
/** The sql expression. */
|
|
27
|
+
sql?: string;
|
|
28
|
+
/** The vase attribute id. */
|
|
29
|
+
baseAttrId?: string;
|
|
30
|
+
/** The uery. */
|
|
31
|
+
query?: QueryData;
|
|
32
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { SortDirection } from "../query_column";
|
|
2
|
-
import { ExpressionData } from "./expression_data";
|
|
3
|
-
/**
|
|
4
|
-
* Column JSON representation object.
|
|
5
|
-
*/
|
|
6
|
-
export interface QueryColumnData {
|
|
7
|
-
/** The id */
|
|
8
|
-
id: string;
|
|
9
|
-
/** The caption */
|
|
10
|
-
cptn: string;
|
|
11
|
-
/** The sorting */
|
|
12
|
-
srt?: SortDirection;
|
|
13
|
-
/** The sort index. */
|
|
14
|
-
srtidx?: number;
|
|
15
|
-
/** The expression. */
|
|
16
|
-
expr?: ExpressionData;
|
|
17
|
-
/** The block ID. */
|
|
18
|
-
blockId?: string;
|
|
19
|
-
/** Column is enabled */
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
/** Indicates whether this column is read-only */
|
|
22
|
-
readOnly?: boolean;
|
|
23
|
-
hidden?: boolean;
|
|
24
|
-
/** The display format */
|
|
25
|
-
dfmt?: string;
|
|
26
|
-
/** Goup footer column template */
|
|
27
|
-
gfct?: string;
|
|
28
|
-
}
|
|
1
|
+
import { SortDirection } from "../query_column";
|
|
2
|
+
import { ExpressionData } from "./expression_data";
|
|
3
|
+
/**
|
|
4
|
+
* Column JSON representation object.
|
|
5
|
+
*/
|
|
6
|
+
export interface QueryColumnData {
|
|
7
|
+
/** The id */
|
|
8
|
+
id: string;
|
|
9
|
+
/** The caption */
|
|
10
|
+
cptn: string;
|
|
11
|
+
/** The sorting */
|
|
12
|
+
srt?: SortDirection;
|
|
13
|
+
/** The sort index. */
|
|
14
|
+
srtidx?: number;
|
|
15
|
+
/** The expression. */
|
|
16
|
+
expr?: ExpressionData;
|
|
17
|
+
/** The block ID. */
|
|
18
|
+
blockId?: string;
|
|
19
|
+
/** Column is enabled */
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
/** Indicates whether this column is read-only */
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
hidden?: boolean;
|
|
24
|
+
/** The display format */
|
|
25
|
+
dfmt?: string;
|
|
26
|
+
/** Goup footer column template */
|
|
27
|
+
gfct?: string;
|
|
28
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ConditionData } from './condition_data';
|
|
2
|
-
import { QueryColumnData } from './query_column_data';
|
|
3
|
-
/**
|
|
4
|
-
* Query JSON representation object.
|
|
5
|
-
*/
|
|
6
|
-
export interface QueryData {
|
|
7
|
-
/** The id. */
|
|
8
|
-
id: string;
|
|
9
|
-
/** The name */
|
|
10
|
-
name: string;
|
|
11
|
-
/** The description */
|
|
12
|
-
desc?: string;
|
|
13
|
-
/** The just sorted columns. */
|
|
14
|
-
justsortcols: QueryColumnData[];
|
|
15
|
-
/** The root. */
|
|
16
|
-
root: ConditionData;
|
|
17
|
-
/** The columns. */
|
|
18
|
-
cols?: QueryColumnData[];
|
|
19
|
-
/** Conatins user-defined extra data for current query.*/
|
|
20
|
-
extraData?: any;
|
|
21
|
-
innerData?: any;
|
|
22
|
-
/** Gets the current time zone */
|
|
23
|
-
timezoneOffset?: number;
|
|
24
|
-
/** Drill down queries */
|
|
25
|
-
dds?: Array<QueryData>;
|
|
26
|
-
locale?: string;
|
|
27
|
-
}
|
|
1
|
+
import { ConditionData } from './condition_data';
|
|
2
|
+
import { QueryColumnData } from './query_column_data';
|
|
3
|
+
/**
|
|
4
|
+
* Query JSON representation object.
|
|
5
|
+
*/
|
|
6
|
+
export interface QueryData {
|
|
7
|
+
/** The id. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** The name */
|
|
10
|
+
name: string;
|
|
11
|
+
/** The description */
|
|
12
|
+
desc?: string;
|
|
13
|
+
/** The just sorted columns. */
|
|
14
|
+
justsortcols: QueryColumnData[];
|
|
15
|
+
/** The root. */
|
|
16
|
+
root: ConditionData;
|
|
17
|
+
/** The columns. */
|
|
18
|
+
cols?: QueryColumnData[];
|
|
19
|
+
/** Conatins user-defined extra data for current query.*/
|
|
20
|
+
extraData?: any;
|
|
21
|
+
innerData?: any;
|
|
22
|
+
/** Gets the current time zone */
|
|
23
|
+
timezoneOffset?: number;
|
|
24
|
+
/** Drill down queries */
|
|
25
|
+
dds?: Array<QueryData>;
|
|
26
|
+
locale?: string;
|
|
27
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { DataType } from '@easydata/core';
|
|
2
|
-
import { DataKind } from '../types/data_kind';
|
|
3
|
-
import { ExprTag } from '../types/expr_tag';
|
|
4
|
-
import { ConditionPart } from '../types/cond_part';
|
|
5
|
-
import { DataModel } from '../dm/data_model';
|
|
6
|
-
import { Query } from './query';
|
|
7
|
-
import { ExpressionData } from './dto/expression_data';
|
|
8
|
-
/**
|
|
9
|
-
* Represents expression object.
|
|
10
|
-
*/
|
|
11
|
-
export declare class Expression {
|
|
12
|
-
private parent;
|
|
13
|
-
/** The tag. */
|
|
14
|
-
tag: ExprTag;
|
|
15
|
-
/** The data kind. */
|
|
16
|
-
kind: DataKind;
|
|
17
|
-
/** The data type. */
|
|
18
|
-
dataType: DataType;
|
|
19
|
-
/** The value. */
|
|
20
|
-
private _value;
|
|
21
|
-
/** The text. */
|
|
22
|
-
private text;
|
|
23
|
-
/**
|
|
24
|
-
* The distinct option. (e.g `SELECT DISTINCT`)
|
|
25
|
-
*/
|
|
26
|
-
distinct: boolean;
|
|
27
|
-
/** The query. */
|
|
28
|
-
subQuery?: Query;
|
|
29
|
-
/** The function. */
|
|
30
|
-
func?: string;
|
|
31
|
-
/** The list of arguments. */
|
|
32
|
-
args?: Expression[];
|
|
33
|
-
/** The base attribute id. */
|
|
34
|
-
baseAttrId?: string;
|
|
35
|
-
/** The sql expression.*/
|
|
36
|
-
sql?: string;
|
|
37
|
-
_isDefaultValue: boolean;
|
|
38
|
-
/** The default constructor. */
|
|
39
|
-
constructor(parent: ExpressionParent);
|
|
40
|
-
getParent(): ExpressionParent;
|
|
41
|
-
getModel(): DataModel;
|
|
42
|
-
/**
|
|
43
|
-
* Loads expression from its JSON representation object.
|
|
44
|
-
* @param model The Data Model.
|
|
45
|
-
* @param data The JSON representation object.
|
|
46
|
-
*/
|
|
47
|
-
loadFromData(model: DataModel, data: ExpressionData): void;
|
|
48
|
-
/**
|
|
49
|
-
* Saves expression from JSON representation object.
|
|
50
|
-
* @returns The JSON representation object.
|
|
51
|
-
*/
|
|
52
|
-
saveToData(): ExpressionData;
|
|
53
|
-
getIndex(): number;
|
|
54
|
-
get value(): string;
|
|
55
|
-
setValue(val: string, silent?: boolean): void;
|
|
56
|
-
getText: () => any;
|
|
57
|
-
setContent(val: string, txt?: string, silent?: boolean): void;
|
|
58
|
-
isEmpty(): boolean;
|
|
59
|
-
hasText(): boolean;
|
|
60
|
-
tryCopyValueFrom(expr: Expression): void;
|
|
61
|
-
}
|
|
62
|
-
export interface ExpressionParent {
|
|
63
|
-
getQuery(): Query;
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
isReadOnly(): boolean;
|
|
66
|
-
fireChangedEvent(condPart?: ConditionPart): void;
|
|
67
|
-
getExpressionIndex(expr: Expression): number;
|
|
68
|
-
expressionChanged(expr: Expression, oldValue: string): void;
|
|
69
|
-
}
|
|
1
|
+
import { DataType } from '@easydata/core';
|
|
2
|
+
import { DataKind } from '../types/data_kind';
|
|
3
|
+
import { ExprTag } from '../types/expr_tag';
|
|
4
|
+
import { ConditionPart } from '../types/cond_part';
|
|
5
|
+
import { DataModel } from '../dm/data_model';
|
|
6
|
+
import { Query } from './query';
|
|
7
|
+
import { ExpressionData } from './dto/expression_data';
|
|
8
|
+
/**
|
|
9
|
+
* Represents expression object.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Expression {
|
|
12
|
+
private parent;
|
|
13
|
+
/** The tag. */
|
|
14
|
+
tag: ExprTag;
|
|
15
|
+
/** The data kind. */
|
|
16
|
+
kind: DataKind;
|
|
17
|
+
/** The data type. */
|
|
18
|
+
dataType: DataType;
|
|
19
|
+
/** The value. */
|
|
20
|
+
private _value;
|
|
21
|
+
/** The text. */
|
|
22
|
+
private text;
|
|
23
|
+
/**
|
|
24
|
+
* The distinct option. (e.g `SELECT DISTINCT`)
|
|
25
|
+
*/
|
|
26
|
+
distinct: boolean;
|
|
27
|
+
/** The query. */
|
|
28
|
+
subQuery?: Query;
|
|
29
|
+
/** The function. */
|
|
30
|
+
func?: string;
|
|
31
|
+
/** The list of arguments. */
|
|
32
|
+
args?: Expression[];
|
|
33
|
+
/** The base attribute id. */
|
|
34
|
+
baseAttrId?: string;
|
|
35
|
+
/** The sql expression.*/
|
|
36
|
+
sql?: string;
|
|
37
|
+
_isDefaultValue: boolean;
|
|
38
|
+
/** The default constructor. */
|
|
39
|
+
constructor(parent: ExpressionParent);
|
|
40
|
+
getParent(): ExpressionParent;
|
|
41
|
+
getModel(): DataModel;
|
|
42
|
+
/**
|
|
43
|
+
* Loads expression from its JSON representation object.
|
|
44
|
+
* @param model The Data Model.
|
|
45
|
+
* @param data The JSON representation object.
|
|
46
|
+
*/
|
|
47
|
+
loadFromData(model: DataModel, data: ExpressionData): void;
|
|
48
|
+
/**
|
|
49
|
+
* Saves expression from JSON representation object.
|
|
50
|
+
* @returns The JSON representation object.
|
|
51
|
+
*/
|
|
52
|
+
saveToData(): ExpressionData;
|
|
53
|
+
getIndex(): number;
|
|
54
|
+
get value(): string;
|
|
55
|
+
setValue(val: string, silent?: boolean): void;
|
|
56
|
+
getText: () => any;
|
|
57
|
+
setContent(val: string, txt?: string, silent?: boolean): void;
|
|
58
|
+
isEmpty(): boolean;
|
|
59
|
+
hasText(): boolean;
|
|
60
|
+
tryCopyValueFrom(expr: Expression): void;
|
|
61
|
+
}
|
|
62
|
+
export interface ExpressionParent {
|
|
63
|
+
getQuery(): Query;
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
isReadOnly(): boolean;
|
|
66
|
+
fireChangedEvent(condPart?: ConditionPart): void;
|
|
67
|
+
getExpressionIndex(expr: Expression): number;
|
|
68
|
+
expressionChanged(expr: Expression, oldValue: string): void;
|
|
69
|
+
}
|