igniteui-webcomponents-datasources 1.4.1 → 1.4.2
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/bundles/igniteui-webcomponents-datasources.umd.js +2279 -1
- package/bundles/igniteui-webcomponents-datasources.umd.min.js +7 -2
- package/esm2015/igniteui-webcomponents-datasources.js +0 -1
- package/esm2015/lib/Entity.js +0 -1
- package/esm2015/lib/EntityProperty.js +0 -1
- package/esm2015/lib/EntitySet.js +0 -1
- package/esm2015/lib/ODataDataSourcePage.js +0 -1
- package/esm2015/lib/ODataSchemaProvider.js +0 -1
- package/esm2015/lib/ODataVirtualDataSource.js +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProvider.js +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -1
- package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -1
- package/esm2015/lib/RestVirtualDataSource.js +272 -0
- package/esm2015/lib/RestVirtualDataSourceDataProvider.js +528 -0
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorker.js +744 -0
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +154 -0
- package/esm2015/lib/RestVirtualDataSourcePage.js +67 -0
- package/esm2015/lib/RestVirtualDataSourceProviderTaskDataHolder.js +8 -0
- package/esm2015/lib/Schema.js +0 -1
- package/esm2015/lib/util.js +0 -1
- package/esm2015/public_api.js +6 -1
- package/esm5/igniteui-webcomponents-datasources.js +0 -1
- package/esm5/lib/Entity.js +0 -1
- package/esm5/lib/EntityProperty.js +0 -1
- package/esm5/lib/EntitySet.js +0 -1
- package/esm5/lib/ODataDataSourcePage.js +0 -1
- package/esm5/lib/ODataSchemaProvider.js +0 -1
- package/esm5/lib/ODataVirtualDataSource.js +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProvider.js +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -1
- package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -1
- package/esm5/lib/RestVirtualDataSource.js +357 -0
- package/esm5/lib/RestVirtualDataSourceDataProvider.js +675 -0
- package/esm5/lib/RestVirtualDataSourceDataProviderWorker.js +948 -0
- package/esm5/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +240 -0
- package/esm5/lib/RestVirtualDataSourcePage.js +73 -0
- package/esm5/lib/RestVirtualDataSourceProviderTaskDataHolder.js +12 -0
- package/esm5/lib/Schema.js +0 -1
- package/esm5/lib/util.js +0 -1
- package/esm5/public_api.js +6 -1
- package/fesm2015/igniteui-webcomponents-datasources.js +1754 -3
- package/fesm5/igniteui-webcomponents-datasources.js +2275 -3
- package/lib/RestVirtualDataSource.d.ts +60 -0
- package/lib/RestVirtualDataSourceDataProvider.d.ts +135 -0
- package/lib/RestVirtualDataSourceDataProviderWorker.d.ts +69 -0
- package/lib/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +60 -0
- package/lib/RestVirtualDataSourcePage.d.ts +19 -0
- package/lib/RestVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
- package/package.json +2 -2
- package/public_api.d.ts +6 -0
- package/bundles/igniteui-webcomponents-datasources.umd.js.map +0 -1
- package/bundles/igniteui-webcomponents-datasources.umd.min.js.map +0 -1
- package/esm2015/igniteui-webcomponents-datasources.js.map +0 -1
- package/esm2015/lib/Entity.js.map +0 -1
- package/esm2015/lib/EntityProperty.js.map +0 -1
- package/esm2015/lib/EntitySet.js.map +0 -1
- package/esm2015/lib/ODataDataSourcePage.js.map +0 -1
- package/esm2015/lib/ODataSchemaProvider.js.map +0 -1
- package/esm2015/lib/ODataVirtualDataSource.js.map +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProvider.js.map +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js.map +0 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js.map +0 -1
- package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js.map +0 -1
- package/esm2015/lib/Schema.js.map +0 -1
- package/esm2015/lib/util.js.map +0 -1
- package/esm2015/public_api.js.map +0 -1
- package/esm5/igniteui-webcomponents-datasources.js.map +0 -1
- package/esm5/lib/Entity.js.map +0 -1
- package/esm5/lib/EntityProperty.js.map +0 -1
- package/esm5/lib/EntitySet.js.map +0 -1
- package/esm5/lib/ODataDataSourcePage.js.map +0 -1
- package/esm5/lib/ODataSchemaProvider.js.map +0 -1
- package/esm5/lib/ODataVirtualDataSource.js.map +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProvider.js.map +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js.map +0 -1
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js.map +0 -1
- package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js.map +0 -1
- package/esm5/lib/Schema.js.map +0 -1
- package/esm5/lib/util.js.map +0 -1
- package/esm5/public_api.js.map +0 -1
- package/fesm2015/igniteui-webcomponents-datasources.js.map +0 -1
- package/fesm5/igniteui-webcomponents-datasources.js.map +0 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
|
|
2
|
+
import { markType } from "igniteui-webcomponents-core";
|
|
3
|
+
export let RestVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() => {
|
|
4
|
+
class RestVirtualDataSourceDataProviderWorkerSettings extends AsyncVirtualDataSourceDataProviderWorkerSettings {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this._baseUri = null;
|
|
8
|
+
this._entitySet = null;
|
|
9
|
+
this._sortDescriptions = null;
|
|
10
|
+
this._filterExpressions = null;
|
|
11
|
+
this._propertiesRequested = null;
|
|
12
|
+
this._groupDescriptions = null;
|
|
13
|
+
this._summaryDescriptions = null;
|
|
14
|
+
this._fixedFullCount = -1;
|
|
15
|
+
this._provideFullCount = null;
|
|
16
|
+
this._provideOrderByParameter = null;
|
|
17
|
+
this._provideFilterParameter = null;
|
|
18
|
+
this._provideAggregationParameter = null;
|
|
19
|
+
this._provideAggregatedCount = null;
|
|
20
|
+
this._provideUri = null;
|
|
21
|
+
this._providePagingParameter = null;
|
|
22
|
+
this._provideDesiredPropertiesParameter = null;
|
|
23
|
+
this._performFetch = null;
|
|
24
|
+
}
|
|
25
|
+
get baseUri() {
|
|
26
|
+
return this._baseUri;
|
|
27
|
+
}
|
|
28
|
+
set baseUri(value) {
|
|
29
|
+
this._baseUri = value;
|
|
30
|
+
}
|
|
31
|
+
get entitySet() {
|
|
32
|
+
return this._entitySet;
|
|
33
|
+
}
|
|
34
|
+
set entitySet(value) {
|
|
35
|
+
this._entitySet = value;
|
|
36
|
+
}
|
|
37
|
+
get sortDescriptions() {
|
|
38
|
+
return this._sortDescriptions;
|
|
39
|
+
}
|
|
40
|
+
set sortDescriptions(value) {
|
|
41
|
+
this._sortDescriptions = value;
|
|
42
|
+
}
|
|
43
|
+
get filterExpressions() {
|
|
44
|
+
return this._filterExpressions;
|
|
45
|
+
}
|
|
46
|
+
set filterExpressions(value) {
|
|
47
|
+
this._filterExpressions = value;
|
|
48
|
+
}
|
|
49
|
+
get propertiesRequested() {
|
|
50
|
+
return this._propertiesRequested;
|
|
51
|
+
}
|
|
52
|
+
set propertiesRequested(value) {
|
|
53
|
+
this._propertiesRequested = value;
|
|
54
|
+
}
|
|
55
|
+
get groupDescriptions() {
|
|
56
|
+
return this._groupDescriptions;
|
|
57
|
+
}
|
|
58
|
+
set groupDescriptions(value) {
|
|
59
|
+
this._groupDescriptions = value;
|
|
60
|
+
}
|
|
61
|
+
get summaryDescriptions() {
|
|
62
|
+
return this._summaryDescriptions;
|
|
63
|
+
}
|
|
64
|
+
set summaryDescriptions(value) {
|
|
65
|
+
this._summaryDescriptions = value;
|
|
66
|
+
}
|
|
67
|
+
get summaryScope() {
|
|
68
|
+
return this._summaryscope;
|
|
69
|
+
}
|
|
70
|
+
set summaryScope(value) {
|
|
71
|
+
this._summaryscope = value;
|
|
72
|
+
}
|
|
73
|
+
get enableJsonp() {
|
|
74
|
+
return this._enableJsonp;
|
|
75
|
+
}
|
|
76
|
+
set enableJsonp(isEnabled) {
|
|
77
|
+
this._enableJsonp = isEnabled;
|
|
78
|
+
}
|
|
79
|
+
get isAggregationSupported() {
|
|
80
|
+
return this._isAggregationSupported;
|
|
81
|
+
}
|
|
82
|
+
set isAggregationSupported(isSupported) {
|
|
83
|
+
this._isAggregationSupported = isSupported;
|
|
84
|
+
}
|
|
85
|
+
get fixedFullCount() {
|
|
86
|
+
return this._fixedFullCount;
|
|
87
|
+
}
|
|
88
|
+
set fixedFullCount(value) {
|
|
89
|
+
this._fixedFullCount = value;
|
|
90
|
+
}
|
|
91
|
+
get provideFullCount() {
|
|
92
|
+
return this._provideFullCount;
|
|
93
|
+
}
|
|
94
|
+
set provideFullCount(value) {
|
|
95
|
+
this._provideFullCount = value;
|
|
96
|
+
}
|
|
97
|
+
get provideOrderByParameter() {
|
|
98
|
+
return this._provideOrderByParameter;
|
|
99
|
+
}
|
|
100
|
+
set provideOrderByParameter(value) {
|
|
101
|
+
this._provideOrderByParameter = value;
|
|
102
|
+
}
|
|
103
|
+
get provideFilterParameter() {
|
|
104
|
+
return this._provideFilterParameter;
|
|
105
|
+
}
|
|
106
|
+
set provideFilterParameter(value) {
|
|
107
|
+
this._provideFilterParameter = value;
|
|
108
|
+
}
|
|
109
|
+
get provideAggregationParameter() {
|
|
110
|
+
return this._provideAggregationParameter;
|
|
111
|
+
}
|
|
112
|
+
set provideAggregationParameter(value) {
|
|
113
|
+
this._provideAggregationParameter = value;
|
|
114
|
+
}
|
|
115
|
+
get provideAggregatedCount() {
|
|
116
|
+
return this._provideAggregatedCount;
|
|
117
|
+
}
|
|
118
|
+
set provideAggregatedCount(value) {
|
|
119
|
+
this._provideAggregatedCount = value;
|
|
120
|
+
}
|
|
121
|
+
get provideUri() {
|
|
122
|
+
return this._provideUri;
|
|
123
|
+
}
|
|
124
|
+
set provideUri(value) {
|
|
125
|
+
this._provideUri = value;
|
|
126
|
+
}
|
|
127
|
+
get providePagingParameter() {
|
|
128
|
+
return this._providePagingParameter;
|
|
129
|
+
}
|
|
130
|
+
set providePagingParameter(value) {
|
|
131
|
+
this._providePagingParameter = value;
|
|
132
|
+
}
|
|
133
|
+
get provideDesiredPropertiesParameter() {
|
|
134
|
+
return this._provideDesiredPropertiesParameter;
|
|
135
|
+
}
|
|
136
|
+
set provideDesiredPropertiesParameter(value) {
|
|
137
|
+
this._provideDesiredPropertiesParameter = value;
|
|
138
|
+
}
|
|
139
|
+
get provideItems() {
|
|
140
|
+
return this._provideItems;
|
|
141
|
+
}
|
|
142
|
+
set provideItems(value) {
|
|
143
|
+
this._provideItems = value;
|
|
144
|
+
}
|
|
145
|
+
get performFetch() {
|
|
146
|
+
return this._performFetch;
|
|
147
|
+
}
|
|
148
|
+
set performFetch(value) {
|
|
149
|
+
this._performFetch = value;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
RestVirtualDataSourceDataProviderWorkerSettings.$t = /*@__PURE__*/ markType(RestVirtualDataSourceDataProviderWorkerSettings, 'RestVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type);
|
|
153
|
+
return RestVirtualDataSourceDataProviderWorkerSettings;
|
|
154
|
+
})();
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DataSourceSchemaPropertyType } from "igniteui-webcomponents-core";
|
|
2
|
+
export class RestVirtualDataSourcePage {
|
|
3
|
+
constructor(sourceData_, schema, groupInformation, summaryInformation, pageIndex) {
|
|
4
|
+
this._actualData = null;
|
|
5
|
+
this._schema = null;
|
|
6
|
+
this._pageIndex = 0;
|
|
7
|
+
this._groupInformation = null;
|
|
8
|
+
this._summaryInformation = null;
|
|
9
|
+
if (sourceData_ == null) {
|
|
10
|
+
this._actualData = null;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
let count = (sourceData_.items.length);
|
|
14
|
+
this._actualData = [];
|
|
15
|
+
let dateProps = new Set();
|
|
16
|
+
for (let i = 0; i < schema.propertyNames.length; i++) {
|
|
17
|
+
if (schema.propertyTypes[i] == DataSourceSchemaPropertyType.DateTimeValue || schema.propertyTypes[i] == DataSourceSchemaPropertyType.DateTimeOffsetValue) {
|
|
18
|
+
dateProps.add(schema.propertyNames[i]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let value_;
|
|
22
|
+
for (let i_ = 0; i_ < count; i_++) {
|
|
23
|
+
let currItem_ = sourceData_.items[i_];
|
|
24
|
+
let dict = new Map();
|
|
25
|
+
let properties = Array.from(Object.keys(currItem_));
|
|
26
|
+
let values = (properties.map((k) => currItem_[k]));
|
|
27
|
+
for (let i1 = 0; i1 < properties.length; i1++) {
|
|
28
|
+
value_ = values[i1];
|
|
29
|
+
if (dateProps.has(properties[i1])) {
|
|
30
|
+
value_ = new Date(value_);
|
|
31
|
+
}
|
|
32
|
+
dict.set(properties[i1], value_);
|
|
33
|
+
}
|
|
34
|
+
this._actualData[i_] = dict;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
this._schema = schema;
|
|
38
|
+
this._groupInformation = groupInformation;
|
|
39
|
+
this._summaryInformation = summaryInformation;
|
|
40
|
+
this._pageIndex = pageIndex;
|
|
41
|
+
}
|
|
42
|
+
count() {
|
|
43
|
+
return this._actualData.length;
|
|
44
|
+
}
|
|
45
|
+
getItemAtIndex(index) {
|
|
46
|
+
return this._actualData[index];
|
|
47
|
+
}
|
|
48
|
+
getItemValueAtIndex(index, valueName) {
|
|
49
|
+
let item = this._actualData[index];
|
|
50
|
+
if (!item.has(valueName)) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return item.get(valueName);
|
|
54
|
+
}
|
|
55
|
+
pageIndex() {
|
|
56
|
+
return this._pageIndex;
|
|
57
|
+
}
|
|
58
|
+
schema() {
|
|
59
|
+
return this._schema;
|
|
60
|
+
}
|
|
61
|
+
getGroupInformation() {
|
|
62
|
+
return this._groupInformation;
|
|
63
|
+
}
|
|
64
|
+
getSummaryInformation() {
|
|
65
|
+
return this._summaryInformation;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
|
|
2
|
+
import { markType } from "igniteui-webcomponents-core";
|
|
3
|
+
export let RestVirtualDataSourceProviderTaskDataHolder = /*@__PURE__*/ (() => {
|
|
4
|
+
class RestVirtualDataSourceProviderTaskDataHolder extends AsyncVirtualDataSourceProviderTaskDataHolder {
|
|
5
|
+
}
|
|
6
|
+
RestVirtualDataSourceProviderTaskDataHolder.$t = /*@__PURE__*/ markType(RestVirtualDataSourceProviderTaskDataHolder, 'ODataVirtualDataSourceProviderTaskDataHolder', AsyncVirtualDataSourceProviderTaskDataHolder.$type);
|
|
7
|
+
return RestVirtualDataSourceProviderTaskDataHolder;
|
|
8
|
+
})();
|
package/esm2015/lib/Schema.js
CHANGED
package/esm2015/lib/util.js
CHANGED
package/esm2015/public_api.js
CHANGED
|
@@ -8,6 +8,11 @@ export * from './lib/ODataVirtualDataSourceDataProvider';
|
|
|
8
8
|
export * from './lib/ODataVirtualDataSourceDataProviderWorker';
|
|
9
9
|
export * from './lib/ODataVirtualDataSourceDataProviderWorkerSettings';
|
|
10
10
|
export * from './lib/ODataVirtualDataSourceProviderTaskDataHolder';
|
|
11
|
+
export * from './lib/RestVirtualDataSource';
|
|
12
|
+
export * from './lib/RestVirtualDataSourceDataProvider';
|
|
13
|
+
export * from './lib/RestVirtualDataSourceDataProviderWorker';
|
|
14
|
+
export * from './lib/RestVirtualDataSourceDataProviderWorkerSettings';
|
|
15
|
+
export * from './lib/RestVirtualDataSourcePage';
|
|
16
|
+
export * from './lib/RestVirtualDataSourceProviderTaskDataHolder';
|
|
11
17
|
export * from './lib/Schema';
|
|
12
18
|
export * from './lib/util';
|
|
13
|
-
//# sourceMappingURL=public_api.js.map
|
package/esm5/lib/Entity.js
CHANGED
package/esm5/lib/EntitySet.js
CHANGED
|
@@ -899,4 +899,3 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
899
899
|
return ODataVirtualDataSourceDataProviderWorker;
|
|
900
900
|
}(AsyncVirtualDataSourceProviderWorker));
|
|
901
901
|
export { ODataVirtualDataSourceDataProviderWorker };
|
|
902
|
-
//# sourceMappingURL=ODataVirtualDataSourceDataProviderWorker.js.map
|
|
@@ -118,4 +118,3 @@ var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__
|
|
|
118
118
|
return ODataVirtualDataSourceDataProviderWorkerSettings;
|
|
119
119
|
}(AsyncVirtualDataSourceDataProviderWorkerSettings));
|
|
120
120
|
export { ODataVirtualDataSourceDataProviderWorkerSettings };
|
|
121
|
-
//# sourceMappingURL=ODataVirtualDataSourceDataProviderWorkerSettings.js.map
|
|
@@ -10,4 +10,3 @@ var ODataVirtualDataSourceProviderTaskDataHolder = /** @class */ /*@__PURE__*/ (
|
|
|
10
10
|
return ODataVirtualDataSourceProviderTaskDataHolder;
|
|
11
11
|
}(AsyncVirtualDataSourceProviderTaskDataHolder));
|
|
12
12
|
export { ODataVirtualDataSourceProviderTaskDataHolder };
|
|
13
|
-
//# sourceMappingURL=ODataVirtualDataSourceProviderTaskDataHolder.js.map
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import * as tslib_1 from "tslib";
|
|
2
|
+
import { VirtualDataSource } from "igniteui-webcomponents-core";
|
|
3
|
+
import { RestVirtualDataSourceDataProvider } from "./RestVirtualDataSourceDataProvider";
|
|
4
|
+
var RestVirtualDataSource = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
5
|
+
tslib_1.__extends(RestVirtualDataSource, _super);
|
|
6
|
+
function RestVirtualDataSource() {
|
|
7
|
+
var _this = _super.call(this) || this;
|
|
8
|
+
_this._baseUri = null;
|
|
9
|
+
_this._isFilteringSupportedByServer = false;
|
|
10
|
+
_this._entitySet = null;
|
|
11
|
+
_this._timeoutMilliseconds = 10000;
|
|
12
|
+
_this._isAggregationSupportedByServer = false;
|
|
13
|
+
_this._enableJsonp = true;
|
|
14
|
+
_this._fixedFullCount = -1;
|
|
15
|
+
_this._provideFullCount = null;
|
|
16
|
+
_this._provideOrderByParameter = null;
|
|
17
|
+
_this._provideFilterParameter = null;
|
|
18
|
+
_this._provideAggregationParameter = null;
|
|
19
|
+
_this._provideAggregatedCount = null;
|
|
20
|
+
_this._provideUri = null;
|
|
21
|
+
_this._performFetch = null;
|
|
22
|
+
_this._providePagingParameter = null;
|
|
23
|
+
_this._provideDesiredPropertiesParameter = null;
|
|
24
|
+
_this.dataProvider = ((function () {
|
|
25
|
+
var $ret = new RestVirtualDataSourceDataProvider();
|
|
26
|
+
$ret.executionContext = _this.executionContext;
|
|
27
|
+
$ret.enableJsonp = _this.enableJsonp;
|
|
28
|
+
$ret.isAggregationSupported = _this.isGroupingSupported;
|
|
29
|
+
return $ret;
|
|
30
|
+
})());
|
|
31
|
+
_this.externalDataSource = _this;
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
RestVirtualDataSource.prototype.onBaseUriChanged = function (oldValue, newValue) {
|
|
35
|
+
if (this.actualDataProvider) {
|
|
36
|
+
this.actualDataProvider.baseUri = this.baseUri;
|
|
37
|
+
this.queueAutoRefresh();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "baseUri", {
|
|
41
|
+
get: function () {
|
|
42
|
+
return this._baseUri;
|
|
43
|
+
},
|
|
44
|
+
set: function (value) {
|
|
45
|
+
var oldValue = this._baseUri;
|
|
46
|
+
this._baseUri = value;
|
|
47
|
+
if (oldValue != this._baseUri) {
|
|
48
|
+
this.onBaseUriChanged(oldValue, this._baseUri);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true
|
|
53
|
+
});
|
|
54
|
+
RestVirtualDataSource.prototype.onEntitySetChanged = function (oldValue, newValue) {
|
|
55
|
+
if (this.actualDataProvider) {
|
|
56
|
+
this.actualDataProvider.entitySet = this.entitySet;
|
|
57
|
+
this.queueAutoRefresh();
|
|
58
|
+
}
|
|
59
|
+
this.queueAutoRefresh();
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "isFilteringSupportedByServer", {
|
|
62
|
+
get: function () {
|
|
63
|
+
return this._isFilteringSupportedByServer;
|
|
64
|
+
},
|
|
65
|
+
set: function (v) {
|
|
66
|
+
this._isFilteringSupportedByServer = v;
|
|
67
|
+
},
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true
|
|
70
|
+
});
|
|
71
|
+
RestVirtualDataSource.prototype.get_isFilteringSupported = function () {
|
|
72
|
+
if (this._isFilteringSupportedByServer) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "entitySet", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._entitySet;
|
|
80
|
+
},
|
|
81
|
+
set: function (value) {
|
|
82
|
+
var oldValue = this._entitySet;
|
|
83
|
+
this._entitySet = value;
|
|
84
|
+
if (this._entitySet != oldValue) {
|
|
85
|
+
this.onEntitySetChanged(oldValue, this._entitySet);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
enumerable: true,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
RestVirtualDataSource.prototype.onTimeoutMillisecondsChanged = function (oldValue, newValue) {
|
|
92
|
+
if (this.actualDataProvider) {
|
|
93
|
+
this.actualDataProvider.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "timeoutMilliseconds", {
|
|
97
|
+
get: function () {
|
|
98
|
+
return this._timeoutMilliseconds;
|
|
99
|
+
},
|
|
100
|
+
set: function (value) {
|
|
101
|
+
var oldValue = this._timeoutMilliseconds;
|
|
102
|
+
this._timeoutMilliseconds = value;
|
|
103
|
+
if (oldValue != this._timeoutMilliseconds) {
|
|
104
|
+
this.onTimeoutMillisecondsChanged(oldValue, this._timeoutMilliseconds);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
enumerable: true,
|
|
108
|
+
configurable: true
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "isSortingSupportedOverride", {
|
|
111
|
+
get: function () {
|
|
112
|
+
return true;
|
|
113
|
+
},
|
|
114
|
+
enumerable: true,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "isFilteringSupportedOverride", {
|
|
118
|
+
get: function () {
|
|
119
|
+
return true;
|
|
120
|
+
},
|
|
121
|
+
enumerable: true,
|
|
122
|
+
configurable: true
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "isGroupingSupportedOverride", {
|
|
125
|
+
get: function () {
|
|
126
|
+
return this.isAggregationSupportedByServer;
|
|
127
|
+
},
|
|
128
|
+
enumerable: true,
|
|
129
|
+
configurable: true
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "isAggregationSupportedByServer", {
|
|
132
|
+
get: function () {
|
|
133
|
+
return this._isAggregationSupportedByServer;
|
|
134
|
+
},
|
|
135
|
+
set: function (isSupported) {
|
|
136
|
+
this._isAggregationSupportedByServer = isSupported;
|
|
137
|
+
if (this.actualDataProvider) {
|
|
138
|
+
this.actualDataProvider.isAggregationSupported = this.isAggregationSupportedByServer;
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
enumerable: true,
|
|
142
|
+
configurable: true
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "enableJsonp", {
|
|
145
|
+
get: function () {
|
|
146
|
+
return this._enableJsonp;
|
|
147
|
+
},
|
|
148
|
+
set: function (isEnabled) {
|
|
149
|
+
this._enableJsonp = isEnabled;
|
|
150
|
+
if (this.actualDataProvider) {
|
|
151
|
+
this.actualDataProvider.enableJsonp = this.enableJsonp;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
enumerable: true,
|
|
155
|
+
configurable: true
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "fixedFullCount", {
|
|
158
|
+
get: function () {
|
|
159
|
+
return this._fixedFullCount;
|
|
160
|
+
},
|
|
161
|
+
set: function (value) {
|
|
162
|
+
this._fixedFullCount = value;
|
|
163
|
+
},
|
|
164
|
+
enumerable: true,
|
|
165
|
+
configurable: true
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideFullCount", {
|
|
168
|
+
get: function () {
|
|
169
|
+
return this._provideFullCount;
|
|
170
|
+
},
|
|
171
|
+
set: function (value) {
|
|
172
|
+
this._provideFullCount = value;
|
|
173
|
+
if (this.actualDataProvider) {
|
|
174
|
+
this.actualDataProvider.provideFullCount = this.provideFullCount;
|
|
175
|
+
this.queueAutoRefresh();
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
enumerable: true,
|
|
179
|
+
configurable: true
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideOrderByParameter", {
|
|
182
|
+
get: function () {
|
|
183
|
+
return this._provideOrderByParameter;
|
|
184
|
+
},
|
|
185
|
+
set: function (value) {
|
|
186
|
+
this._provideOrderByParameter = value;
|
|
187
|
+
if (this.actualDataProvider) {
|
|
188
|
+
this.actualDataProvider.provideOrderByParameter = this.provideOrderByParameter;
|
|
189
|
+
this.queueAutoRefresh();
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
enumerable: true,
|
|
193
|
+
configurable: true
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideFilterParameter", {
|
|
196
|
+
get: function () {
|
|
197
|
+
return this._provideFilterParameter;
|
|
198
|
+
},
|
|
199
|
+
set: function (value) {
|
|
200
|
+
this._provideFilterParameter = value;
|
|
201
|
+
if (this.actualDataProvider) {
|
|
202
|
+
this.actualDataProvider.provideFilterParameter = this.provideFilterParameter;
|
|
203
|
+
this.queueAutoRefresh();
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
enumerable: true,
|
|
207
|
+
configurable: true
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideAggregationParameter", {
|
|
210
|
+
get: function () {
|
|
211
|
+
return this._provideAggregationParameter;
|
|
212
|
+
},
|
|
213
|
+
set: function (value) {
|
|
214
|
+
this._provideAggregationParameter = value;
|
|
215
|
+
if (this.actualDataProvider) {
|
|
216
|
+
this.actualDataProvider.provideAggregationParameter = this.provideAggregationParameter;
|
|
217
|
+
this.queueAutoRefresh();
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
enumerable: true,
|
|
221
|
+
configurable: true
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideAggregatedCount", {
|
|
224
|
+
get: function () {
|
|
225
|
+
return this._provideAggregatedCount;
|
|
226
|
+
},
|
|
227
|
+
set: function (value) {
|
|
228
|
+
this._provideAggregatedCount = value;
|
|
229
|
+
if (this.actualDataProvider) {
|
|
230
|
+
this.actualDataProvider.provideAggregatedCount = this.provideAggregatedCount;
|
|
231
|
+
this.queueAutoRefresh();
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
enumerable: true,
|
|
235
|
+
configurable: true
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideUri", {
|
|
238
|
+
get: function () {
|
|
239
|
+
return this._provideUri;
|
|
240
|
+
},
|
|
241
|
+
set: function (value) {
|
|
242
|
+
this._provideUri = value;
|
|
243
|
+
if (this.actualDataProvider) {
|
|
244
|
+
this.actualDataProvider.provideUri = this.provideUri;
|
|
245
|
+
this.queueAutoRefresh();
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
enumerable: true,
|
|
249
|
+
configurable: true
|
|
250
|
+
});
|
|
251
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "performFetch", {
|
|
252
|
+
get: function () {
|
|
253
|
+
return this._performFetch;
|
|
254
|
+
},
|
|
255
|
+
set: function (value) {
|
|
256
|
+
this._performFetch = value;
|
|
257
|
+
if (this.actualDataProvider) {
|
|
258
|
+
this.actualDataProvider.performFetch = this.performFetch;
|
|
259
|
+
this.queueAutoRefresh();
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
enumerable: true,
|
|
263
|
+
configurable: true
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "providePagingParameter", {
|
|
266
|
+
get: function () {
|
|
267
|
+
return this._providePagingParameter;
|
|
268
|
+
},
|
|
269
|
+
set: function (value) {
|
|
270
|
+
this._providePagingParameter = value;
|
|
271
|
+
if (this.actualDataProvider) {
|
|
272
|
+
this.actualDataProvider.providePagingParameter = this.providePagingParameter;
|
|
273
|
+
this.queueAutoRefresh();
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
enumerable: true,
|
|
277
|
+
configurable: true
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideDesiredPropertiesParameter", {
|
|
280
|
+
get: function () {
|
|
281
|
+
return this._provideDesiredPropertiesParameter;
|
|
282
|
+
},
|
|
283
|
+
set: function (value) {
|
|
284
|
+
this._provideDesiredPropertiesParameter = value;
|
|
285
|
+
if (this.actualDataProvider) {
|
|
286
|
+
this.actualDataProvider.provideDesiredPropertiesParameter = this.provideDesiredPropertiesParameter;
|
|
287
|
+
this.queueAutoRefresh();
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
enumerable: true,
|
|
291
|
+
configurable: true
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(RestVirtualDataSource.prototype, "provideItems", {
|
|
294
|
+
get: function () {
|
|
295
|
+
return this._provideItems;
|
|
296
|
+
},
|
|
297
|
+
set: function (value) {
|
|
298
|
+
this._provideItems = value;
|
|
299
|
+
if (this.actualDataProvider) {
|
|
300
|
+
this.actualDataProvider.provideItems = this.provideItems;
|
|
301
|
+
this.queueAutoRefresh();
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
enumerable: true,
|
|
305
|
+
configurable: true
|
|
306
|
+
});
|
|
307
|
+
RestVirtualDataSource.prototype.clone = function () {
|
|
308
|
+
var dataSource = new RestVirtualDataSource();
|
|
309
|
+
dataSource.executionContext = this.executionContext;
|
|
310
|
+
dataSource.includeSummaryRowsInSection = this.includeSummaryRowsInSection;
|
|
311
|
+
dataSource.isSectionCollapsable = this.isSectionCollapsable;
|
|
312
|
+
dataSource.isSectionExpandedDefault = this.isSectionExpandedDefault;
|
|
313
|
+
//dataSource.isSectionHeaderNormalRow = this.isSectionHeaderNormalRow;
|
|
314
|
+
dataSource.isSectionSummaryRowsAtBottom = this.isSectionSummaryRowsAtBottom;
|
|
315
|
+
//dataSource.isSectionContentVisible = this.isSectionContentVisible;
|
|
316
|
+
dataSource.primaryKey = this.primaryKey;
|
|
317
|
+
dataSource.propertiesRequested = this.propertiesRequested;
|
|
318
|
+
dataSource.sectionHeaderDisplayMode = this.sectionHeaderDisplayMode;
|
|
319
|
+
dataSource.shouldEmitSectionFooters = this.shouldEmitSectionFooters;
|
|
320
|
+
dataSource.shouldEmitSectionHeaders = this.shouldEmitSectionHeaders;
|
|
321
|
+
dataSource.shouldEmitShiftedRows = this.shouldEmitShiftedRows;
|
|
322
|
+
dataSource.summaryScope = this.summaryScope;
|
|
323
|
+
for (var i = 0; i < this.groupDescriptions.size(); i++) {
|
|
324
|
+
dataSource.groupDescriptions.add(this.groupDescriptions.get(i));
|
|
325
|
+
}
|
|
326
|
+
for (var i = 0; i < this.sortDescriptions.size(); i++) {
|
|
327
|
+
dataSource.sortDescriptions.add(this.sortDescriptions.get(i));
|
|
328
|
+
}
|
|
329
|
+
for (var i = 0; i < this.filterExpressions.size(); i++) {
|
|
330
|
+
dataSource.filterExpressions.add(this.filterExpressions.get(i));
|
|
331
|
+
}
|
|
332
|
+
for (var i = 0; i < this.summaryDescriptions.size(); i++) {
|
|
333
|
+
dataSource.summaryDescriptions.add(this.summaryDescriptions.get(i));
|
|
334
|
+
}
|
|
335
|
+
dataSource.pageSizeRequested = this.pageSizeRequested;
|
|
336
|
+
dataSource.maxCachedPages = this.maxCachedPages;
|
|
337
|
+
dataSource.baseUri = this.baseUri;
|
|
338
|
+
dataSource.entitySet = this.entitySet;
|
|
339
|
+
dataSource.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
340
|
+
dataSource.isAggregationSupportedByServer = this.isAggregationSupportedByServer;
|
|
341
|
+
dataSource.enableJsonp = this.enableJsonp;
|
|
342
|
+
dataSource.fixedFullCount = this.fixedFullCount;
|
|
343
|
+
dataSource.provideAggregationParameter = this.provideAggregationParameter;
|
|
344
|
+
dataSource.provideAggregatedCount = this.provideAggregatedCount;
|
|
345
|
+
dataSource.provideFilterParameter = this.provideFilterParameter;
|
|
346
|
+
dataSource.provideFullCount = this.provideFullCount;
|
|
347
|
+
dataSource.provideOrderByParameter = this.provideOrderByParameter;
|
|
348
|
+
dataSource.provideUri = this.provideUri;
|
|
349
|
+
dataSource.performFetch = this.performFetch;
|
|
350
|
+
dataSource.providePagingParameter = this.providePagingParameter;
|
|
351
|
+
dataSource.provideItems = this.provideItems;
|
|
352
|
+
dataSource.provideDesiredPropertiesParameter = this.provideDesiredPropertiesParameter;
|
|
353
|
+
return dataSource;
|
|
354
|
+
};
|
|
355
|
+
return RestVirtualDataSource;
|
|
356
|
+
}(VirtualDataSource));
|
|
357
|
+
export { RestVirtualDataSource };
|