igniteui-webcomponents-datasources 7.1.1-beta.1 → 7.1.1-beta.3
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/esm2022/lib/ODataSchemaProvider.js +120 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProvider.js +450 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.js +710 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +83 -0
- package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +6 -0
- package/esm2022/lib/RestVirtualDataSourceDataProvider.js +535 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.js +762 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +159 -0
- package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.js +6 -0
- package/package.json +14 -10
- package/bundles/igniteui-webcomponents-datasources.umd.js +0 -4725
- package/bundles/igniteui-webcomponents-datasources.umd.min.js +0 -7
- package/esm2015/igniteui-webcomponents-datasources.js +0 -1
- package/esm2015/lib/ODataSchemaProvider.js +0 -123
- package/esm2015/lib/ODataVirtualDataSourceDataProvider.js +0 -453
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -713
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -86
- package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -9
- package/esm2015/lib/RestVirtualDataSourceDataProvider.js +0 -538
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorker.js +0 -765
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +0 -162
- package/esm2015/lib/RestVirtualDataSourceProviderTaskDataHolder.js +0 -9
- package/esm5/igniteui-webcomponents-datasources.js +0 -1
- package/esm5/lib/Entity.js +0 -79
- package/esm5/lib/EntityProperty.js +0 -41
- package/esm5/lib/EntitySet.js +0 -68
- package/esm5/lib/ODataDataSourcePage.js +0 -73
- package/esm5/lib/ODataSchemaProvider.js +0 -158
- package/esm5/lib/ODataVirtualDataSource.js +0 -169
- package/esm5/lib/ODataVirtualDataSourceDataProvider.js +0 -558
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -920
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -130
- package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -11
- package/esm5/lib/RestVirtualDataSource.js +0 -357
- package/esm5/lib/RestVirtualDataSourceDataProvider.js +0 -687
- package/esm5/lib/RestVirtualDataSourceDataProviderWorker.js +0 -967
- package/esm5/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +0 -250
- package/esm5/lib/RestVirtualDataSourcePage.js +0 -73
- package/esm5/lib/RestVirtualDataSourceProviderTaskDataHolder.js +0 -11
- package/esm5/lib/Schema.js +0 -68
- package/esm5/lib/util.js +0 -160
- package/esm5/public_api.js +0 -18
- package/fesm2015/igniteui-webcomponents-datasources.js +0 -3638
- package/fesm5/igniteui-webcomponents-datasources.js +0 -4698
- package/igniteui-webcomponents-datasources.d.ts +0 -1
- /package/{lib → esm2022/lib}/Entity.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/Entity.js +0 -0
- /package/{lib → esm2022/lib}/EntityProperty.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/EntityProperty.js +0 -0
- /package/{lib → esm2022/lib}/EntitySet.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/EntitySet.js +0 -0
- /package/{lib → esm2022/lib}/ODataDataSourcePage.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/ODataDataSourcePage.js +0 -0
- /package/{lib → esm2022/lib}/ODataSchemaProvider.d.ts +0 -0
- /package/{lib → esm2022/lib}/ODataVirtualDataSource.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/ODataVirtualDataSource.js +0 -0
- /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProvider.d.ts +0 -0
- /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProviderWorker.d.ts +0 -0
- /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProviderWorkerSettings.d.ts +0 -0
- /package/{lib → esm2022/lib}/ODataVirtualDataSourceProviderTaskDataHolder.d.ts +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSource.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/RestVirtualDataSource.js +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProvider.d.ts +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProviderWorker.d.ts +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSourcePage.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/RestVirtualDataSourcePage.js +0 -0
- /package/{lib → esm2022/lib}/RestVirtualDataSourceProviderTaskDataHolder.d.ts +0 -0
- /package/{lib → esm2022/lib}/Schema.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/Schema.js +0 -0
- /package/{lib → esm2022/lib}/util.d.ts +0 -0
- /package/{esm2015 → esm2022}/lib/util.js +0 -0
- /package/{public_api.d.ts → esm2022/public_api.d.ts} +0 -0
- /package/{esm2015 → esm2022}/public_api.js +0 -0
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
|
|
3
|
-
import { markType } from "igniteui-webcomponents-core";
|
|
4
|
-
export var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
5
|
-
__extends(ODataVirtualDataSourceDataProviderWorkerSettings, _super);
|
|
6
|
-
function ODataVirtualDataSourceDataProviderWorkerSettings() {
|
|
7
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
-
_this._baseUri = null;
|
|
9
|
-
_this._entitySet = null;
|
|
10
|
-
_this._sortDescriptions = null;
|
|
11
|
-
_this._filterExpressions = null;
|
|
12
|
-
_this._propertiesRequested = null;
|
|
13
|
-
_this._schemaIncludedProperties = null;
|
|
14
|
-
_this._groupDescriptions = null;
|
|
15
|
-
_this._summaryDescriptions = null;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "baseUri", {
|
|
19
|
-
get: function () {
|
|
20
|
-
return this._baseUri;
|
|
21
|
-
},
|
|
22
|
-
set: function (value) {
|
|
23
|
-
this._baseUri = value;
|
|
24
|
-
},
|
|
25
|
-
enumerable: false,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "entitySet", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return this._entitySet;
|
|
31
|
-
},
|
|
32
|
-
set: function (value) {
|
|
33
|
-
this._entitySet = value;
|
|
34
|
-
},
|
|
35
|
-
enumerable: false,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "sortDescriptions", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return this._sortDescriptions;
|
|
41
|
-
},
|
|
42
|
-
set: function (value) {
|
|
43
|
-
this._sortDescriptions = value;
|
|
44
|
-
},
|
|
45
|
-
enumerable: false,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "filterExpressions", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this._filterExpressions;
|
|
51
|
-
},
|
|
52
|
-
set: function (value) {
|
|
53
|
-
this._filterExpressions = value;
|
|
54
|
-
},
|
|
55
|
-
enumerable: false,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "propertiesRequested", {
|
|
59
|
-
get: function () {
|
|
60
|
-
return this._propertiesRequested;
|
|
61
|
-
},
|
|
62
|
-
set: function (value) {
|
|
63
|
-
this._propertiesRequested = value;
|
|
64
|
-
},
|
|
65
|
-
enumerable: false,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "schemaIncludedProperties", {
|
|
69
|
-
get: function () {
|
|
70
|
-
return this._schemaIncludedProperties;
|
|
71
|
-
},
|
|
72
|
-
set: function (value) {
|
|
73
|
-
this._schemaIncludedProperties = value;
|
|
74
|
-
},
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
|
|
79
|
-
get: function () {
|
|
80
|
-
return this._groupDescriptions;
|
|
81
|
-
},
|
|
82
|
-
set: function (value) {
|
|
83
|
-
this._groupDescriptions = value;
|
|
84
|
-
},
|
|
85
|
-
enumerable: false,
|
|
86
|
-
configurable: true
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryDescriptions", {
|
|
89
|
-
get: function () {
|
|
90
|
-
return this._summaryDescriptions;
|
|
91
|
-
},
|
|
92
|
-
set: function (value) {
|
|
93
|
-
this._summaryDescriptions = value;
|
|
94
|
-
},
|
|
95
|
-
enumerable: false,
|
|
96
|
-
configurable: true
|
|
97
|
-
});
|
|
98
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryScope", {
|
|
99
|
-
get: function () {
|
|
100
|
-
return this._summaryscope;
|
|
101
|
-
},
|
|
102
|
-
set: function (value) {
|
|
103
|
-
this._summaryscope = value;
|
|
104
|
-
},
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "enableJsonp", {
|
|
109
|
-
get: function () {
|
|
110
|
-
return this._enableJsonp;
|
|
111
|
-
},
|
|
112
|
-
set: function (isEnabled) {
|
|
113
|
-
this._enableJsonp = isEnabled;
|
|
114
|
-
},
|
|
115
|
-
enumerable: false,
|
|
116
|
-
configurable: true
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "isAggregationSupported", {
|
|
119
|
-
get: function () {
|
|
120
|
-
return this._isAggregationSupported;
|
|
121
|
-
},
|
|
122
|
-
set: function (isSupported) {
|
|
123
|
-
this._isAggregationSupported = isSupported;
|
|
124
|
-
},
|
|
125
|
-
enumerable: false,
|
|
126
|
-
configurable: true
|
|
127
|
-
});
|
|
128
|
-
ODataVirtualDataSourceDataProviderWorkerSettings.$t = markType(ODataVirtualDataSourceDataProviderWorkerSettings, 'ODataVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type);
|
|
129
|
-
return ODataVirtualDataSourceDataProviderWorkerSettings;
|
|
130
|
-
}(AsyncVirtualDataSourceDataProviderWorkerSettings));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
|
|
3
|
-
import { markType } from "igniteui-webcomponents-core";
|
|
4
|
-
export var ODataVirtualDataSourceProviderTaskDataHolder = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
5
|
-
__extends(ODataVirtualDataSourceProviderTaskDataHolder, _super);
|
|
6
|
-
function ODataVirtualDataSourceProviderTaskDataHolder() {
|
|
7
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
|
-
}
|
|
9
|
-
ODataVirtualDataSourceProviderTaskDataHolder.$t = markType(ODataVirtualDataSourceProviderTaskDataHolder, 'ODataVirtualDataSourceProviderTaskDataHolder', AsyncVirtualDataSourceProviderTaskDataHolder.$type);
|
|
10
|
-
return ODataVirtualDataSourceProviderTaskDataHolder;
|
|
11
|
-
}(AsyncVirtualDataSourceProviderTaskDataHolder));
|
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { VirtualDataSource } from "igniteui-webcomponents-core";
|
|
3
|
-
import { RestVirtualDataSourceDataProvider } from "./RestVirtualDataSourceDataProvider";
|
|
4
|
-
var RestVirtualDataSource = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
5
|
-
__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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
108
|
-
configurable: true
|
|
109
|
-
});
|
|
110
|
-
Object.defineProperty(RestVirtualDataSource.prototype, "isSortingSupportedOverride", {
|
|
111
|
-
get: function () {
|
|
112
|
-
return true;
|
|
113
|
-
},
|
|
114
|
-
enumerable: false,
|
|
115
|
-
configurable: true
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(RestVirtualDataSource.prototype, "isFilteringSupportedOverride", {
|
|
118
|
-
get: function () {
|
|
119
|
-
return true;
|
|
120
|
-
},
|
|
121
|
-
enumerable: false,
|
|
122
|
-
configurable: true
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(RestVirtualDataSource.prototype, "isGroupingSupportedOverride", {
|
|
125
|
-
get: function () {
|
|
126
|
-
return this.isAggregationSupportedByServer;
|
|
127
|
-
},
|
|
128
|
-
enumerable: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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: false,
|
|
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 };
|