@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,18 +1,18 @@
|
|
|
1
|
-
import { QueryParams } from '@easydata/core';
|
|
2
|
-
export interface LoadValueListParams {
|
|
3
|
-
listName?: string;
|
|
4
|
-
editorId?: string;
|
|
5
|
-
queryParams?: QueryParams;
|
|
6
|
-
}
|
|
7
|
-
export interface LoadValueListOptions {
|
|
8
|
-
modelId?: string;
|
|
9
|
-
params?: LoadValueListParams;
|
|
10
|
-
}
|
|
11
|
-
export interface ValueListItem {
|
|
12
|
-
id?: string;
|
|
13
|
-
text?: string;
|
|
14
|
-
items?: ValueListItem[];
|
|
15
|
-
}
|
|
16
|
-
export interface EqValueListResolver {
|
|
17
|
-
loadValueList(options?: LoadValueListOptions): Promise<ValueListItem[]>;
|
|
18
|
-
}
|
|
1
|
+
import { QueryParams } from '@easydata/core';
|
|
2
|
+
export interface LoadValueListParams {
|
|
3
|
+
listName?: string;
|
|
4
|
+
editorId?: string;
|
|
5
|
+
queryParams?: QueryParams;
|
|
6
|
+
}
|
|
7
|
+
export interface LoadValueListOptions {
|
|
8
|
+
modelId?: string;
|
|
9
|
+
params?: LoadValueListParams;
|
|
10
|
+
}
|
|
11
|
+
export interface ValueListItem {
|
|
12
|
+
id?: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
items?: ValueListItem[];
|
|
15
|
+
}
|
|
16
|
+
export interface EqValueListResolver {
|
|
17
|
+
loadValueList(options?: LoadValueListOptions): Promise<ValueListItem[]>;
|
|
18
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { EqContext } from './context';
|
|
2
|
-
import { WidgetGroup } from '../types/widget_group';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a widget - a visual element with "knows" how to render itself.
|
|
5
|
-
* Some widgets just display some information from the context (like the generated SQL or the result set).
|
|
6
|
-
* Others - allow user to interact with them to define query conditions or columns.
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class Widget {
|
|
9
|
-
protected context: EqContext;
|
|
10
|
-
protected group: WidgetGroup;
|
|
11
|
-
protected slot: HTMLElement;
|
|
12
|
-
private _id;
|
|
13
|
-
/**
|
|
14
|
-
Initializes a new instance of the `Widget` class
|
|
15
|
-
* @param slot - an HTML element in which we should place our widget.
|
|
16
|
-
*/
|
|
17
|
-
constructor(slot: HTMLElement);
|
|
18
|
-
get id(): string;
|
|
19
|
-
abstract getWidgetType(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Initializes the widget and assign it to some context
|
|
22
|
-
* @param context
|
|
23
|
-
* @param options
|
|
24
|
-
*/
|
|
25
|
-
init(context: EqContext, options?: any): void;
|
|
26
|
-
/**
|
|
27
|
-
* Returns current context (the one this widget belongs to)
|
|
28
|
-
*/
|
|
29
|
-
getContext(): EqContext;
|
|
30
|
-
/**
|
|
31
|
-
* Refreshes the widget's content
|
|
32
|
-
*/
|
|
33
|
-
refresh(): void;
|
|
34
|
-
/**
|
|
35
|
-
* This function is called from `refresh` function.
|
|
36
|
-
* It does nothing in the base `Widget` class
|
|
37
|
-
* but can be overridden in derived classes
|
|
38
|
-
* to implement the functionality specific for a particular widget
|
|
39
|
-
*/
|
|
40
|
-
protected refreshCore(): void;
|
|
41
|
-
/**
|
|
42
|
-
* This function is called on the start of some process this widget participates in.
|
|
43
|
-
* For example, some widgets can show a spinner or a progress bar
|
|
44
|
-
* at the beginning of some long process (e.g. model loading).
|
|
45
|
-
*/
|
|
46
|
-
onProcessStart(): void;
|
|
47
|
-
/**
|
|
48
|
-
* This function is called from `onProcessStart` function.
|
|
49
|
-
* It does nothing in the base `Widget` class
|
|
50
|
-
* but can be overridden in derived classes
|
|
51
|
-
* to implement the functionality specific for a particular widget.
|
|
52
|
-
*/
|
|
53
|
-
protected onProcessStartCore(): void;
|
|
54
|
-
/**
|
|
55
|
-
* This function is called on the end of some process this widget participates in.
|
|
56
|
-
* For example, some widgets should be updated on model loading
|
|
57
|
-
* or after the execution of the current query
|
|
58
|
-
*/
|
|
59
|
-
onProcessEnd(): void;
|
|
60
|
-
/**
|
|
61
|
-
* This function is called from `onProcessEnd` function.
|
|
62
|
-
* It does nothing in the base `Widget` class
|
|
63
|
-
* but can be overridden in derived classes
|
|
64
|
-
* to implement the functionality specific for a particular widget.
|
|
65
|
-
*/
|
|
66
|
-
protected onProcessEndCore(): void;
|
|
67
|
-
/**
|
|
68
|
-
* Returns `true` if the widget belongs to one of the groups specified in the parameter
|
|
69
|
-
* @param groups
|
|
70
|
-
*/
|
|
71
|
-
belongsToGroup(groups?: WidgetGroup): boolean;
|
|
72
|
-
destroy(): void;
|
|
73
|
-
protected destroyCore(): void;
|
|
74
|
-
}
|
|
1
|
+
import { EqContext } from './context';
|
|
2
|
+
import { WidgetGroup } from '../types/widget_group';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a widget - a visual element with "knows" how to render itself.
|
|
5
|
+
* Some widgets just display some information from the context (like the generated SQL or the result set).
|
|
6
|
+
* Others - allow user to interact with them to define query conditions or columns.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class Widget {
|
|
9
|
+
protected context: EqContext;
|
|
10
|
+
protected group: WidgetGroup;
|
|
11
|
+
protected slot: HTMLElement;
|
|
12
|
+
private _id;
|
|
13
|
+
/**
|
|
14
|
+
Initializes a new instance of the `Widget` class
|
|
15
|
+
* @param slot - an HTML element in which we should place our widget.
|
|
16
|
+
*/
|
|
17
|
+
constructor(slot: HTMLElement);
|
|
18
|
+
get id(): string;
|
|
19
|
+
abstract getWidgetType(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Initializes the widget and assign it to some context
|
|
22
|
+
* @param context
|
|
23
|
+
* @param options
|
|
24
|
+
*/
|
|
25
|
+
init(context: EqContext, options?: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* Returns current context (the one this widget belongs to)
|
|
28
|
+
*/
|
|
29
|
+
getContext(): EqContext;
|
|
30
|
+
/**
|
|
31
|
+
* Refreshes the widget's content
|
|
32
|
+
*/
|
|
33
|
+
refresh(): void;
|
|
34
|
+
/**
|
|
35
|
+
* This function is called from `refresh` function.
|
|
36
|
+
* It does nothing in the base `Widget` class
|
|
37
|
+
* but can be overridden in derived classes
|
|
38
|
+
* to implement the functionality specific for a particular widget
|
|
39
|
+
*/
|
|
40
|
+
protected refreshCore(): void;
|
|
41
|
+
/**
|
|
42
|
+
* This function is called on the start of some process this widget participates in.
|
|
43
|
+
* For example, some widgets can show a spinner or a progress bar
|
|
44
|
+
* at the beginning of some long process (e.g. model loading).
|
|
45
|
+
*/
|
|
46
|
+
onProcessStart(): void;
|
|
47
|
+
/**
|
|
48
|
+
* This function is called from `onProcessStart` function.
|
|
49
|
+
* It does nothing in the base `Widget` class
|
|
50
|
+
* but can be overridden in derived classes
|
|
51
|
+
* to implement the functionality specific for a particular widget.
|
|
52
|
+
*/
|
|
53
|
+
protected onProcessStartCore(): void;
|
|
54
|
+
/**
|
|
55
|
+
* This function is called on the end of some process this widget participates in.
|
|
56
|
+
* For example, some widgets should be updated on model loading
|
|
57
|
+
* or after the execution of the current query
|
|
58
|
+
*/
|
|
59
|
+
onProcessEnd(): void;
|
|
60
|
+
/**
|
|
61
|
+
* This function is called from `onProcessEnd` function.
|
|
62
|
+
* It does nothing in the base `Widget` class
|
|
63
|
+
* but can be overridden in derived classes
|
|
64
|
+
* to implement the functionality specific for a particular widget.
|
|
65
|
+
*/
|
|
66
|
+
protected onProcessEndCore(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Returns `true` if the widget belongs to one of the groups specified in the parameter
|
|
69
|
+
* @param groups
|
|
70
|
+
*/
|
|
71
|
+
belongsToGroup(groups?: WidgetGroup): boolean;
|
|
72
|
+
destroy(): void;
|
|
73
|
+
protected destroyCore(): void;
|
|
74
|
+
}
|
package/dist/lib/main/widget.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { utils } from '@easydata/core';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a widget - a visual element with "knows" how to render itself.
|
|
4
|
-
* Some widgets just display some information from the context (like the generated SQL or the result set).
|
|
5
|
-
* Others - allow user to interact with them to define query conditions or columns.
|
|
6
|
-
*/
|
|
7
|
-
var Widget = /** @class */ (function () {
|
|
8
|
-
/**
|
|
9
|
-
Initializes a new instance of the `Widget` class
|
|
10
|
-
* @param slot - an HTML element in which we should place our widget.
|
|
11
|
-
*/
|
|
12
|
-
function Widget(slot) {
|
|
13
|
-
this.slot = slot;
|
|
14
|
-
this._id = utils.generateId(this.getWidgetType());
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(Widget.prototype, "id", {
|
|
17
|
-
get: function () {
|
|
18
|
-
return this._id;
|
|
19
|
-
},
|
|
20
|
-
enumerable:
|
|
21
|
-
configurable: true
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Initializes the widget and assign it to some context
|
|
25
|
-
* @param context
|
|
26
|
-
* @param options
|
|
27
|
-
*/
|
|
28
|
-
Widget.prototype.init = function (context, options) {
|
|
29
|
-
this.context = context;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Returns current context (the one this widget belongs to)
|
|
33
|
-
*/
|
|
34
|
-
Widget.prototype.getContext = function () {
|
|
35
|
-
return this.context;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Refreshes the widget's content
|
|
39
|
-
*/
|
|
40
|
-
Widget.prototype.refresh = function () {
|
|
41
|
-
this.refreshCore();
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* This function is called from `refresh` function.
|
|
45
|
-
* It does nothing in the base `Widget` class
|
|
46
|
-
* but can be overridden in derived classes
|
|
47
|
-
* to implement the functionality specific for a particular widget
|
|
48
|
-
*/
|
|
49
|
-
Widget.prototype.refreshCore = function () {
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* This function is called on the start of some process this widget participates in.
|
|
53
|
-
* For example, some widgets can show a spinner or a progress bar
|
|
54
|
-
* at the beginning of some long process (e.g. model loading).
|
|
55
|
-
*/
|
|
56
|
-
Widget.prototype.onProcessStart = function () {
|
|
57
|
-
this.onProcessStartCore();
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* This function is called from `onProcessStart` function.
|
|
61
|
-
* It does nothing in the base `Widget` class
|
|
62
|
-
* but can be overridden in derived classes
|
|
63
|
-
* to implement the functionality specific for a particular widget.
|
|
64
|
-
*/
|
|
65
|
-
Widget.prototype.onProcessStartCore = function () {
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* This function is called on the end of some process this widget participates in.
|
|
69
|
-
* For example, some widgets should be updated on model loading
|
|
70
|
-
* or after the execution of the current query
|
|
71
|
-
*/
|
|
72
|
-
Widget.prototype.onProcessEnd = function () {
|
|
73
|
-
this.onProcessEndCore();
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* This function is called from `onProcessEnd` function.
|
|
77
|
-
* It does nothing in the base `Widget` class
|
|
78
|
-
* but can be overridden in derived classes
|
|
79
|
-
* to implement the functionality specific for a particular widget.
|
|
80
|
-
*/
|
|
81
|
-
Widget.prototype.onProcessEndCore = function () {
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Returns `true` if the widget belongs to one of the groups specified in the parameter
|
|
85
|
-
* @param groups
|
|
86
|
-
*/
|
|
87
|
-
Widget.prototype.belongsToGroup = function (groups) {
|
|
88
|
-
if (typeof groups != 'undefined' && groups != null) {
|
|
89
|
-
if ((groups & this.group) === 0)
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
return true;
|
|
93
|
-
};
|
|
94
|
-
Widget.prototype.destroy = function () {
|
|
95
|
-
this.destroyCore();
|
|
96
|
-
};
|
|
97
|
-
Widget.prototype.destroyCore = function () {
|
|
98
|
-
};
|
|
99
|
-
return Widget;
|
|
100
|
-
}());
|
|
101
|
-
export { Widget };
|
|
1
|
+
import { utils } from '@easydata/core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a widget - a visual element with "knows" how to render itself.
|
|
4
|
+
* Some widgets just display some information from the context (like the generated SQL or the result set).
|
|
5
|
+
* Others - allow user to interact with them to define query conditions or columns.
|
|
6
|
+
*/
|
|
7
|
+
var Widget = /** @class */ (function () {
|
|
8
|
+
/**
|
|
9
|
+
Initializes a new instance of the `Widget` class
|
|
10
|
+
* @param slot - an HTML element in which we should place our widget.
|
|
11
|
+
*/
|
|
12
|
+
function Widget(slot) {
|
|
13
|
+
this.slot = slot;
|
|
14
|
+
this._id = utils.generateId(this.getWidgetType());
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(Widget.prototype, "id", {
|
|
17
|
+
get: function () {
|
|
18
|
+
return this._id;
|
|
19
|
+
},
|
|
20
|
+
enumerable: false,
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Initializes the widget and assign it to some context
|
|
25
|
+
* @param context
|
|
26
|
+
* @param options
|
|
27
|
+
*/
|
|
28
|
+
Widget.prototype.init = function (context, options) {
|
|
29
|
+
this.context = context;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Returns current context (the one this widget belongs to)
|
|
33
|
+
*/
|
|
34
|
+
Widget.prototype.getContext = function () {
|
|
35
|
+
return this.context;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Refreshes the widget's content
|
|
39
|
+
*/
|
|
40
|
+
Widget.prototype.refresh = function () {
|
|
41
|
+
this.refreshCore();
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* This function is called from `refresh` function.
|
|
45
|
+
* It does nothing in the base `Widget` class
|
|
46
|
+
* but can be overridden in derived classes
|
|
47
|
+
* to implement the functionality specific for a particular widget
|
|
48
|
+
*/
|
|
49
|
+
Widget.prototype.refreshCore = function () {
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* This function is called on the start of some process this widget participates in.
|
|
53
|
+
* For example, some widgets can show a spinner or a progress bar
|
|
54
|
+
* at the beginning of some long process (e.g. model loading).
|
|
55
|
+
*/
|
|
56
|
+
Widget.prototype.onProcessStart = function () {
|
|
57
|
+
this.onProcessStartCore();
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* This function is called from `onProcessStart` function.
|
|
61
|
+
* It does nothing in the base `Widget` class
|
|
62
|
+
* but can be overridden in derived classes
|
|
63
|
+
* to implement the functionality specific for a particular widget.
|
|
64
|
+
*/
|
|
65
|
+
Widget.prototype.onProcessStartCore = function () {
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* This function is called on the end of some process this widget participates in.
|
|
69
|
+
* For example, some widgets should be updated on model loading
|
|
70
|
+
* or after the execution of the current query
|
|
71
|
+
*/
|
|
72
|
+
Widget.prototype.onProcessEnd = function () {
|
|
73
|
+
this.onProcessEndCore();
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* This function is called from `onProcessEnd` function.
|
|
77
|
+
* It does nothing in the base `Widget` class
|
|
78
|
+
* but can be overridden in derived classes
|
|
79
|
+
* to implement the functionality specific for a particular widget.
|
|
80
|
+
*/
|
|
81
|
+
Widget.prototype.onProcessEndCore = function () {
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Returns `true` if the widget belongs to one of the groups specified in the parameter
|
|
85
|
+
* @param groups
|
|
86
|
+
*/
|
|
87
|
+
Widget.prototype.belongsToGroup = function (groups) {
|
|
88
|
+
if (typeof groups != 'undefined' && groups != null) {
|
|
89
|
+
if ((groups & this.group) === 0)
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
};
|
|
94
|
+
Widget.prototype.destroy = function () {
|
|
95
|
+
this.destroyCore();
|
|
96
|
+
};
|
|
97
|
+
Widget.prototype.destroyCore = function () {
|
|
98
|
+
};
|
|
99
|
+
return Widget;
|
|
100
|
+
}());
|
|
101
|
+
export { Widget };
|
|
102
102
|
//# sourceMappingURL=widget.js.map
|
package/dist/lib/public_api.d.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export * from './utils/utils';
|
|
2
|
-
export * from './utils/constants';
|
|
3
|
-
export * from './export/exporter';
|
|
4
|
-
export * from './common/eq_services';
|
|
5
|
-
export * from './common/tree';
|
|
6
|
-
export * from './data/eq_data_loader';
|
|
7
|
-
export * from './data/google_data_converter';
|
|
8
|
-
export * from './data/eq_aggr_container';
|
|
9
|
-
export * from './types/data_kind';
|
|
10
|
-
export * from './types/link_type';
|
|
11
|
-
export * from './types/cond_tag';
|
|
12
|
-
export * from './types/cond_part';
|
|
13
|
-
export * from './types/expr_tag';
|
|
14
|
-
export * from './types/eq_editor_tag';
|
|
15
|
-
export * from './types/widget_group';
|
|
16
|
-
export * from './dm/aggr_function';
|
|
17
|
-
export * from './dm/data_model';
|
|
18
|
-
export * from './dm/entity';
|
|
19
|
-
export * from './dm/operator';
|
|
20
|
-
export * from './dm/value_editor';
|
|
21
|
-
export * from './dm/link';
|
|
22
|
-
export * from './dm/dto/af_data';
|
|
23
|
-
export * from './dm/dto/dm_data';
|
|
24
|
-
export * from './dm/dto/entity_data';
|
|
25
|
-
export * from './dm/dto/operator_data';
|
|
26
|
-
export * from './main/eq_actions';
|
|
27
|
-
export * from './main/model_loader';
|
|
28
|
-
export * from './main/model_storage';
|
|
29
|
-
export * from './main/query_storage';
|
|
30
|
-
export * from './main/context';
|
|
31
|
-
export * from './main/list_cache';
|
|
32
|
-
export * from './main/context_options';
|
|
33
|
-
export * from './main/widget';
|
|
34
|
-
export * from './main/action';
|
|
35
|
-
export * from './main/data_fetcher';
|
|
36
|
-
export * from './main/query_synchronizer';
|
|
37
|
-
export * from './main/value_list_resolver';
|
|
38
|
-
export * from './main/query_file_loader';
|
|
39
|
-
export * from './query/query_column';
|
|
40
|
-
export * from './query/condition';
|
|
41
|
-
export * from './query/expression';
|
|
42
|
-
export * from './query/query';
|
|
43
|
-
export * from './query/descriptors';
|
|
44
|
-
export * from './query/query_events';
|
|
45
|
-
export * from './query/dto/query_data';
|
|
46
|
-
export * from './query/dto/query_column_data';
|
|
47
|
-
export * from './query/dto/condition_data';
|
|
48
|
-
export * from './query/dto/expression_data';
|
|
49
|
-
export * from './eqs/eqs_exporter';
|
|
50
|
-
export * from './eqs/eqs_model_loader';
|
|
51
|
-
export * from './eqs/eqs_data_fetcher';
|
|
52
|
-
export * from './eqs/eqs_query_synchronizer';
|
|
53
|
-
export * from './eqs/eqs_value_list_resolver';
|
|
54
|
-
export * from './eqs/eqs_query_file_loader';
|
|
55
|
-
export * from './utils/format_parser';
|
|
56
|
-
export * from './utils/version_info';
|
|
57
|
-
export { i18n } from '@easydata/core';
|
|
58
|
-
import './i18n/text_resources';
|
|
1
|
+
export * from './utils/utils';
|
|
2
|
+
export * from './utils/constants';
|
|
3
|
+
export * from './export/exporter';
|
|
4
|
+
export * from './common/eq_services';
|
|
5
|
+
export * from './common/tree';
|
|
6
|
+
export * from './data/eq_data_loader';
|
|
7
|
+
export * from './data/google_data_converter';
|
|
8
|
+
export * from './data/eq_aggr_container';
|
|
9
|
+
export * from './types/data_kind';
|
|
10
|
+
export * from './types/link_type';
|
|
11
|
+
export * from './types/cond_tag';
|
|
12
|
+
export * from './types/cond_part';
|
|
13
|
+
export * from './types/expr_tag';
|
|
14
|
+
export * from './types/eq_editor_tag';
|
|
15
|
+
export * from './types/widget_group';
|
|
16
|
+
export * from './dm/aggr_function';
|
|
17
|
+
export * from './dm/data_model';
|
|
18
|
+
export * from './dm/entity';
|
|
19
|
+
export * from './dm/operator';
|
|
20
|
+
export * from './dm/value_editor';
|
|
21
|
+
export * from './dm/link';
|
|
22
|
+
export * from './dm/dto/af_data';
|
|
23
|
+
export * from './dm/dto/dm_data';
|
|
24
|
+
export * from './dm/dto/entity_data';
|
|
25
|
+
export * from './dm/dto/operator_data';
|
|
26
|
+
export * from './main/eq_actions';
|
|
27
|
+
export * from './main/model_loader';
|
|
28
|
+
export * from './main/model_storage';
|
|
29
|
+
export * from './main/query_storage';
|
|
30
|
+
export * from './main/context';
|
|
31
|
+
export * from './main/list_cache';
|
|
32
|
+
export * from './main/context_options';
|
|
33
|
+
export * from './main/widget';
|
|
34
|
+
export * from './main/action';
|
|
35
|
+
export * from './main/data_fetcher';
|
|
36
|
+
export * from './main/query_synchronizer';
|
|
37
|
+
export * from './main/value_list_resolver';
|
|
38
|
+
export * from './main/query_file_loader';
|
|
39
|
+
export * from './query/query_column';
|
|
40
|
+
export * from './query/condition';
|
|
41
|
+
export * from './query/expression';
|
|
42
|
+
export * from './query/query';
|
|
43
|
+
export * from './query/descriptors';
|
|
44
|
+
export * from './query/query_events';
|
|
45
|
+
export * from './query/dto/query_data';
|
|
46
|
+
export * from './query/dto/query_column_data';
|
|
47
|
+
export * from './query/dto/condition_data';
|
|
48
|
+
export * from './query/dto/expression_data';
|
|
49
|
+
export * from './eqs/eqs_exporter';
|
|
50
|
+
export * from './eqs/eqs_model_loader';
|
|
51
|
+
export * from './eqs/eqs_data_fetcher';
|
|
52
|
+
export * from './eqs/eqs_query_synchronizer';
|
|
53
|
+
export * from './eqs/eqs_value_list_resolver';
|
|
54
|
+
export * from './eqs/eqs_query_file_loader';
|
|
55
|
+
export * from './utils/format_parser';
|
|
56
|
+
export * from './utils/version_info';
|
|
57
|
+
export { i18n } from '@easydata/core';
|
|
58
|
+
import './i18n/text_resources';
|
package/dist/lib/public_api.js
CHANGED
|
@@ -1,43 +1,60 @@
|
|
|
1
|
-
export * from './utils/utils';
|
|
2
|
-
export * from './utils/constants';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './common/
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './data/
|
|
7
|
-
export * from './data/
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './types/
|
|
10
|
-
export * from './types/
|
|
11
|
-
export * from './types/
|
|
12
|
-
export * from './types/
|
|
13
|
-
export * from './types/
|
|
14
|
-
export * from './types/
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './dm/
|
|
17
|
-
export * from './dm/
|
|
18
|
-
export * from './dm/
|
|
19
|
-
export * from './dm/
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './main/
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
|
|
1
|
+
export * from './utils/utils';
|
|
2
|
+
export * from './utils/constants';
|
|
3
|
+
export * from './export/exporter';
|
|
4
|
+
export * from './common/eq_services';
|
|
5
|
+
export * from './common/tree';
|
|
6
|
+
export * from './data/eq_data_loader';
|
|
7
|
+
export * from './data/google_data_converter';
|
|
8
|
+
export * from './data/eq_aggr_container';
|
|
9
|
+
export * from './types/data_kind';
|
|
10
|
+
export * from './types/link_type';
|
|
11
|
+
export * from './types/cond_tag';
|
|
12
|
+
export * from './types/cond_part';
|
|
13
|
+
export * from './types/expr_tag';
|
|
14
|
+
export * from './types/eq_editor_tag';
|
|
15
|
+
export * from './types/widget_group';
|
|
16
|
+
export * from './dm/aggr_function';
|
|
17
|
+
export * from './dm/data_model';
|
|
18
|
+
export * from './dm/entity';
|
|
19
|
+
export * from './dm/operator';
|
|
20
|
+
export * from './dm/value_editor';
|
|
21
|
+
export * from './dm/link';
|
|
22
|
+
export * from './dm/dto/af_data';
|
|
23
|
+
export * from './dm/dto/dm_data';
|
|
24
|
+
export * from './dm/dto/entity_data';
|
|
25
|
+
export * from './dm/dto/operator_data';
|
|
26
|
+
export * from './main/eq_actions';
|
|
27
|
+
export * from './main/model_loader';
|
|
28
|
+
export * from './main/model_storage';
|
|
29
|
+
export * from './main/query_storage';
|
|
30
|
+
export * from './main/context';
|
|
31
|
+
export * from './main/list_cache';
|
|
32
|
+
export * from './main/context_options';
|
|
33
|
+
export * from './main/widget';
|
|
34
|
+
export * from './main/action';
|
|
35
|
+
export * from './main/data_fetcher';
|
|
36
|
+
export * from './main/query_synchronizer';
|
|
37
|
+
export * from './main/value_list_resolver';
|
|
38
|
+
export * from './main/query_file_loader';
|
|
39
|
+
export * from './query/query_column';
|
|
40
|
+
export * from './query/condition';
|
|
41
|
+
export * from './query/expression';
|
|
42
|
+
export * from './query/query';
|
|
43
|
+
export * from './query/descriptors';
|
|
44
|
+
export * from './query/query_events';
|
|
45
|
+
export * from './query/dto/query_data';
|
|
46
|
+
export * from './query/dto/query_column_data';
|
|
47
|
+
export * from './query/dto/condition_data';
|
|
48
|
+
export * from './query/dto/expression_data';
|
|
49
|
+
export * from './eqs/eqs_exporter';
|
|
50
|
+
export * from './eqs/eqs_model_loader';
|
|
51
|
+
export * from './eqs/eqs_data_fetcher';
|
|
52
|
+
export * from './eqs/eqs_query_synchronizer';
|
|
53
|
+
export * from './eqs/eqs_value_list_resolver';
|
|
54
|
+
export * from './eqs/eqs_query_file_loader';
|
|
55
|
+
export * from './utils/format_parser';
|
|
56
|
+
export * from './utils/version_info';
|
|
57
|
+
//for backward compatibility
|
|
58
|
+
export { i18n } from '@easydata/core';
|
|
59
|
+
import './i18n/text_resources';
|
|
43
60
|
//# sourceMappingURL=public_api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AAEjC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAE7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AAExC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AAEzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AAExC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAE3C,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAE3C,cAAc,uBAAuB,CAAA;AAErC,cAAc,sBAAsB,CAAA;AAEpC,4BAA4B;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAO,gBAAgB,CAAA;AAEtC,OAAO,uBAAuB,CAAA"}
|