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,169 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { VirtualDataSource } from "igniteui-webcomponents-core";
|
|
3
|
-
import { ODataVirtualDataSourceDataProvider } from "./ODataVirtualDataSourceDataProvider";
|
|
4
|
-
import { typeCast } from "igniteui-webcomponents-core";
|
|
5
|
-
var ODataVirtualDataSource = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
6
|
-
__extends(ODataVirtualDataSource, _super);
|
|
7
|
-
function ODataVirtualDataSource() {
|
|
8
|
-
var _this = _super.call(this) || this;
|
|
9
|
-
_this._baseUri = null;
|
|
10
|
-
_this._entitySet = null;
|
|
11
|
-
_this._timeoutMilliseconds = 10000;
|
|
12
|
-
_this._isAggregationSupportedByServer = false;
|
|
13
|
-
_this._enableJsonp = true;
|
|
14
|
-
_this.dataProvider = ((function () {
|
|
15
|
-
var $ret = new ODataVirtualDataSourceDataProvider();
|
|
16
|
-
$ret.executionContext = _this.executionContext;
|
|
17
|
-
$ret.enableJsonp = _this.enableJsonp;
|
|
18
|
-
$ret.isAggregationSupported = _this.isGroupingSupported;
|
|
19
|
-
return $ret;
|
|
20
|
-
})());
|
|
21
|
-
_this.externalDataSource = _this;
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
ODataVirtualDataSource.prototype.onBaseUriChanged = function (oldValue, newValue) {
|
|
25
|
-
if (typeCast(ODataVirtualDataSourceDataProvider.$type, this.actualDataProvider) !== null) {
|
|
26
|
-
this.actualDataProvider.baseUri = this.baseUri;
|
|
27
|
-
}
|
|
28
|
-
this.queueAutoRefresh();
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "baseUri", {
|
|
31
|
-
get: function () {
|
|
32
|
-
return this._baseUri;
|
|
33
|
-
},
|
|
34
|
-
set: function (value) {
|
|
35
|
-
var oldValue = this._baseUri;
|
|
36
|
-
this._baseUri = value;
|
|
37
|
-
if (oldValue != this._baseUri) {
|
|
38
|
-
this.onBaseUriChanged(oldValue, this._baseUri);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
enumerable: false,
|
|
42
|
-
configurable: true
|
|
43
|
-
});
|
|
44
|
-
ODataVirtualDataSource.prototype.onEntitySetChanged = function (oldValue, newValue) {
|
|
45
|
-
if (typeCast(ODataVirtualDataSourceDataProvider.$type, this.actualDataProvider) !== null) {
|
|
46
|
-
this.actualDataProvider.entitySet = this.entitySet;
|
|
47
|
-
}
|
|
48
|
-
this.queueAutoRefresh();
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "entitySet", {
|
|
51
|
-
get: function () {
|
|
52
|
-
return this._entitySet;
|
|
53
|
-
},
|
|
54
|
-
set: function (value) {
|
|
55
|
-
var oldValue = this._entitySet;
|
|
56
|
-
this._entitySet = value;
|
|
57
|
-
if (this._entitySet != oldValue) {
|
|
58
|
-
this.onEntitySetChanged(oldValue, this._entitySet);
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
ODataVirtualDataSource.prototype.onTimeoutMillisecondsChanged = function (oldValue, newValue) {
|
|
65
|
-
if (typeCast(ODataVirtualDataSourceDataProvider.$type, this.actualDataProvider) !== null) {
|
|
66
|
-
this.actualDataProvider.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "timeoutMilliseconds", {
|
|
70
|
-
get: function () {
|
|
71
|
-
return this._timeoutMilliseconds;
|
|
72
|
-
},
|
|
73
|
-
set: function (value) {
|
|
74
|
-
var oldValue = this._timeoutMilliseconds;
|
|
75
|
-
this._timeoutMilliseconds = value;
|
|
76
|
-
if (oldValue != this._timeoutMilliseconds) {
|
|
77
|
-
this.onTimeoutMillisecondsChanged(oldValue, this._timeoutMilliseconds);
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
enumerable: false,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "isSortingSupportedOverride", {
|
|
84
|
-
get: function () {
|
|
85
|
-
return true;
|
|
86
|
-
},
|
|
87
|
-
enumerable: false,
|
|
88
|
-
configurable: true
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "isFilteringSupportedOverride", {
|
|
91
|
-
get: function () {
|
|
92
|
-
return true;
|
|
93
|
-
},
|
|
94
|
-
enumerable: false,
|
|
95
|
-
configurable: true
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "isGroupingSupportedOverride", {
|
|
98
|
-
get: function () {
|
|
99
|
-
return this.isAggregationSupportedByServer;
|
|
100
|
-
},
|
|
101
|
-
enumerable: false,
|
|
102
|
-
configurable: true
|
|
103
|
-
});
|
|
104
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "isAggregationSupportedByServer", {
|
|
105
|
-
get: function () {
|
|
106
|
-
return this._isAggregationSupportedByServer;
|
|
107
|
-
},
|
|
108
|
-
set: function (isSupported) {
|
|
109
|
-
this._isAggregationSupportedByServer = isSupported;
|
|
110
|
-
if (typeCast(ODataVirtualDataSourceDataProvider.$type, this.actualDataProvider) !== null) {
|
|
111
|
-
this.actualDataProvider.isAggregationSupported = isSupported;
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
enumerable: false,
|
|
115
|
-
configurable: true
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(ODataVirtualDataSource.prototype, "enableJsonp", {
|
|
118
|
-
get: function () {
|
|
119
|
-
return this._enableJsonp;
|
|
120
|
-
},
|
|
121
|
-
set: function (isEnabled) {
|
|
122
|
-
this._enableJsonp = isEnabled;
|
|
123
|
-
if (typeCast(ODataVirtualDataSourceDataProvider.$type, this.actualDataProvider) !== null) {
|
|
124
|
-
this.actualDataProvider.enableJsonp = isEnabled;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
enumerable: false,
|
|
128
|
-
configurable: true
|
|
129
|
-
});
|
|
130
|
-
ODataVirtualDataSource.prototype.clone = function () {
|
|
131
|
-
var dataSource = new ODataVirtualDataSource();
|
|
132
|
-
dataSource.executionContext = this.executionContext;
|
|
133
|
-
dataSource.includeSummaryRowsInSection = this.includeSummaryRowsInSection;
|
|
134
|
-
dataSource.isSectionCollapsable = this.isSectionCollapsable;
|
|
135
|
-
dataSource.isSectionExpandedDefault = this.isSectionExpandedDefault;
|
|
136
|
-
//dataSource.isSectionHeaderNormalRow = this.isSectionHeaderNormalRow;
|
|
137
|
-
dataSource.isSectionSummaryRowsAtBottom = this.isSectionSummaryRowsAtBottom;
|
|
138
|
-
//dataSource.isSectionContentVisible = this.isSectionContentVisible;
|
|
139
|
-
dataSource.primaryKey = this.primaryKey;
|
|
140
|
-
dataSource.propertiesRequested = this.propertiesRequested;
|
|
141
|
-
dataSource.sectionHeaderDisplayMode = this.sectionHeaderDisplayMode;
|
|
142
|
-
dataSource.shouldEmitSectionFooters = this.shouldEmitSectionFooters;
|
|
143
|
-
dataSource.shouldEmitSectionHeaders = this.shouldEmitSectionHeaders;
|
|
144
|
-
dataSource.shouldEmitShiftedRows = this.shouldEmitShiftedRows;
|
|
145
|
-
dataSource.summaryScope = this.summaryScope;
|
|
146
|
-
for (var i = 0; i < this.groupDescriptions.size(); i++) {
|
|
147
|
-
dataSource.groupDescriptions.add(this.groupDescriptions.get(i));
|
|
148
|
-
}
|
|
149
|
-
for (var i = 0; i < this.sortDescriptions.size(); i++) {
|
|
150
|
-
dataSource.sortDescriptions.add(this.sortDescriptions.get(i));
|
|
151
|
-
}
|
|
152
|
-
for (var i = 0; i < this.filterExpressions.size(); i++) {
|
|
153
|
-
dataSource.filterExpressions.add(this.filterExpressions.get(i));
|
|
154
|
-
}
|
|
155
|
-
for (var i = 0; i < this.summaryDescriptions.size(); i++) {
|
|
156
|
-
dataSource.summaryDescriptions.add(this.summaryDescriptions.get(i));
|
|
157
|
-
}
|
|
158
|
-
dataSource.pageSizeRequested = this.pageSizeRequested;
|
|
159
|
-
dataSource.maxCachedPages = this.maxCachedPages;
|
|
160
|
-
dataSource.baseUri = this.baseUri;
|
|
161
|
-
dataSource.entitySet = this.entitySet;
|
|
162
|
-
dataSource.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
163
|
-
dataSource.isAggregationSupportedByServer = this.isAggregationSupportedByServer;
|
|
164
|
-
dataSource.enableJsonp = this.enableJsonp;
|
|
165
|
-
return dataSource;
|
|
166
|
-
};
|
|
167
|
-
return ODataVirtualDataSource;
|
|
168
|
-
}(VirtualDataSource));
|
|
169
|
-
export { ODataVirtualDataSource };
|