igniteui-webcomponents-datasources 1.3.3 → 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.
Files changed (84) hide show
  1. package/bundles/igniteui-webcomponents-datasources.umd.js +2279 -1
  2. package/bundles/igniteui-webcomponents-datasources.umd.min.js +7 -2
  3. package/esm2015/igniteui-webcomponents-datasources.js +0 -1
  4. package/esm2015/lib/Entity.js +0 -1
  5. package/esm2015/lib/EntityProperty.js +0 -1
  6. package/esm2015/lib/EntitySet.js +0 -1
  7. package/esm2015/lib/ODataDataSourcePage.js +0 -1
  8. package/esm2015/lib/ODataSchemaProvider.js +0 -1
  9. package/esm2015/lib/ODataVirtualDataSource.js +0 -1
  10. package/esm2015/lib/ODataVirtualDataSourceDataProvider.js +0 -1
  11. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -1
  12. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -1
  13. package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -1
  14. package/esm2015/lib/RestVirtualDataSource.js +272 -0
  15. package/esm2015/lib/RestVirtualDataSourceDataProvider.js +528 -0
  16. package/esm2015/lib/RestVirtualDataSourceDataProviderWorker.js +744 -0
  17. package/esm2015/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +154 -0
  18. package/esm2015/lib/RestVirtualDataSourcePage.js +67 -0
  19. package/esm2015/lib/RestVirtualDataSourceProviderTaskDataHolder.js +8 -0
  20. package/esm2015/lib/Schema.js +0 -1
  21. package/esm2015/lib/util.js +0 -1
  22. package/esm2015/public_api.js +6 -1
  23. package/esm5/igniteui-webcomponents-datasources.js +0 -1
  24. package/esm5/lib/Entity.js +0 -1
  25. package/esm5/lib/EntityProperty.js +0 -1
  26. package/esm5/lib/EntitySet.js +0 -1
  27. package/esm5/lib/ODataDataSourcePage.js +0 -1
  28. package/esm5/lib/ODataSchemaProvider.js +0 -1
  29. package/esm5/lib/ODataVirtualDataSource.js +0 -1
  30. package/esm5/lib/ODataVirtualDataSourceDataProvider.js +0 -1
  31. package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -1
  32. package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -1
  33. package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -1
  34. package/esm5/lib/RestVirtualDataSource.js +357 -0
  35. package/esm5/lib/RestVirtualDataSourceDataProvider.js +675 -0
  36. package/esm5/lib/RestVirtualDataSourceDataProviderWorker.js +948 -0
  37. package/esm5/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +240 -0
  38. package/esm5/lib/RestVirtualDataSourcePage.js +73 -0
  39. package/esm5/lib/RestVirtualDataSourceProviderTaskDataHolder.js +12 -0
  40. package/esm5/lib/Schema.js +0 -1
  41. package/esm5/lib/util.js +0 -1
  42. package/esm5/public_api.js +6 -1
  43. package/fesm2015/igniteui-webcomponents-datasources.js +1754 -3
  44. package/fesm5/igniteui-webcomponents-datasources.js +2275 -3
  45. package/lib/RestVirtualDataSource.d.ts +60 -0
  46. package/lib/RestVirtualDataSourceDataProvider.d.ts +135 -0
  47. package/lib/RestVirtualDataSourceDataProviderWorker.d.ts +69 -0
  48. package/lib/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +60 -0
  49. package/lib/RestVirtualDataSourcePage.d.ts +19 -0
  50. package/lib/RestVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
  51. package/package.json +2 -2
  52. package/public_api.d.ts +6 -0
  53. package/bundles/igniteui-webcomponents-datasources.umd.js.map +0 -1
  54. package/bundles/igniteui-webcomponents-datasources.umd.min.js.map +0 -1
  55. package/esm2015/igniteui-webcomponents-datasources.js.map +0 -1
  56. package/esm2015/lib/Entity.js.map +0 -1
  57. package/esm2015/lib/EntityProperty.js.map +0 -1
  58. package/esm2015/lib/EntitySet.js.map +0 -1
  59. package/esm2015/lib/ODataDataSourcePage.js.map +0 -1
  60. package/esm2015/lib/ODataSchemaProvider.js.map +0 -1
  61. package/esm2015/lib/ODataVirtualDataSource.js.map +0 -1
  62. package/esm2015/lib/ODataVirtualDataSourceDataProvider.js.map +0 -1
  63. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js.map +0 -1
  64. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js.map +0 -1
  65. package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js.map +0 -1
  66. package/esm2015/lib/Schema.js.map +0 -1
  67. package/esm2015/lib/util.js.map +0 -1
  68. package/esm2015/public_api.js.map +0 -1
  69. package/esm5/igniteui-webcomponents-datasources.js.map +0 -1
  70. package/esm5/lib/Entity.js.map +0 -1
  71. package/esm5/lib/EntityProperty.js.map +0 -1
  72. package/esm5/lib/EntitySet.js.map +0 -1
  73. package/esm5/lib/ODataDataSourcePage.js.map +0 -1
  74. package/esm5/lib/ODataSchemaProvider.js.map +0 -1
  75. package/esm5/lib/ODataVirtualDataSource.js.map +0 -1
  76. package/esm5/lib/ODataVirtualDataSourceDataProvider.js.map +0 -1
  77. package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js.map +0 -1
  78. package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js.map +0 -1
  79. package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js.map +0 -1
  80. package/esm5/lib/Schema.js.map +0 -1
  81. package/esm5/lib/util.js.map +0 -1
  82. package/esm5/public_api.js.map +0 -1
  83. package/fesm2015/igniteui-webcomponents-datasources.js.map +0 -1
  84. package/fesm5/igniteui-webcomponents-datasources.js.map +0 -1
@@ -0,0 +1,240 @@
1
+ import * as tslib_1 from "tslib";
2
+ import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
3
+ import { markType } from "igniteui-webcomponents-core";
4
+ var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*/ (function (_super) {
5
+ tslib_1.__extends(RestVirtualDataSourceDataProviderWorkerSettings, _super);
6
+ function RestVirtualDataSourceDataProviderWorkerSettings() {
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._groupDescriptions = null;
14
+ _this._summaryDescriptions = null;
15
+ _this._fixedFullCount = -1;
16
+ _this._provideFullCount = null;
17
+ _this._provideOrderByParameter = null;
18
+ _this._provideFilterParameter = null;
19
+ _this._provideAggregationParameter = null;
20
+ _this._provideAggregatedCount = null;
21
+ _this._provideUri = null;
22
+ _this._providePagingParameter = null;
23
+ _this._provideDesiredPropertiesParameter = null;
24
+ _this._performFetch = null;
25
+ return _this;
26
+ }
27
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "baseUri", {
28
+ get: function () {
29
+ return this._baseUri;
30
+ },
31
+ set: function (value) {
32
+ this._baseUri = value;
33
+ },
34
+ enumerable: true,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "entitySet", {
38
+ get: function () {
39
+ return this._entitySet;
40
+ },
41
+ set: function (value) {
42
+ this._entitySet = value;
43
+ },
44
+ enumerable: true,
45
+ configurable: true
46
+ });
47
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "sortDescriptions", {
48
+ get: function () {
49
+ return this._sortDescriptions;
50
+ },
51
+ set: function (value) {
52
+ this._sortDescriptions = value;
53
+ },
54
+ enumerable: true,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "filterExpressions", {
58
+ get: function () {
59
+ return this._filterExpressions;
60
+ },
61
+ set: function (value) {
62
+ this._filterExpressions = value;
63
+ },
64
+ enumerable: true,
65
+ configurable: true
66
+ });
67
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "propertiesRequested", {
68
+ get: function () {
69
+ return this._propertiesRequested;
70
+ },
71
+ set: function (value) {
72
+ this._propertiesRequested = value;
73
+ },
74
+ enumerable: true,
75
+ configurable: true
76
+ });
77
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
78
+ get: function () {
79
+ return this._groupDescriptions;
80
+ },
81
+ set: function (value) {
82
+ this._groupDescriptions = value;
83
+ },
84
+ enumerable: true,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryDescriptions", {
88
+ get: function () {
89
+ return this._summaryDescriptions;
90
+ },
91
+ set: function (value) {
92
+ this._summaryDescriptions = value;
93
+ },
94
+ enumerable: true,
95
+ configurable: true
96
+ });
97
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryScope", {
98
+ get: function () {
99
+ return this._summaryscope;
100
+ },
101
+ set: function (value) {
102
+ this._summaryscope = value;
103
+ },
104
+ enumerable: true,
105
+ configurable: true
106
+ });
107
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "enableJsonp", {
108
+ get: function () {
109
+ return this._enableJsonp;
110
+ },
111
+ set: function (isEnabled) {
112
+ this._enableJsonp = isEnabled;
113
+ },
114
+ enumerable: true,
115
+ configurable: true
116
+ });
117
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "isAggregationSupported", {
118
+ get: function () {
119
+ return this._isAggregationSupported;
120
+ },
121
+ set: function (isSupported) {
122
+ this._isAggregationSupported = isSupported;
123
+ },
124
+ enumerable: true,
125
+ configurable: true
126
+ });
127
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "fixedFullCount", {
128
+ get: function () {
129
+ return this._fixedFullCount;
130
+ },
131
+ set: function (value) {
132
+ this._fixedFullCount = value;
133
+ },
134
+ enumerable: true,
135
+ configurable: true
136
+ });
137
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideFullCount", {
138
+ get: function () {
139
+ return this._provideFullCount;
140
+ },
141
+ set: function (value) {
142
+ this._provideFullCount = value;
143
+ },
144
+ enumerable: true,
145
+ configurable: true
146
+ });
147
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideOrderByParameter", {
148
+ get: function () {
149
+ return this._provideOrderByParameter;
150
+ },
151
+ set: function (value) {
152
+ this._provideOrderByParameter = value;
153
+ },
154
+ enumerable: true,
155
+ configurable: true
156
+ });
157
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideFilterParameter", {
158
+ get: function () {
159
+ return this._provideFilterParameter;
160
+ },
161
+ set: function (value) {
162
+ this._provideFilterParameter = value;
163
+ },
164
+ enumerable: true,
165
+ configurable: true
166
+ });
167
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideAggregationParameter", {
168
+ get: function () {
169
+ return this._provideAggregationParameter;
170
+ },
171
+ set: function (value) {
172
+ this._provideAggregationParameter = value;
173
+ },
174
+ enumerable: true,
175
+ configurable: true
176
+ });
177
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideAggregatedCount", {
178
+ get: function () {
179
+ return this._provideAggregatedCount;
180
+ },
181
+ set: function (value) {
182
+ this._provideAggregatedCount = value;
183
+ },
184
+ enumerable: true,
185
+ configurable: true
186
+ });
187
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideUri", {
188
+ get: function () {
189
+ return this._provideUri;
190
+ },
191
+ set: function (value) {
192
+ this._provideUri = value;
193
+ },
194
+ enumerable: true,
195
+ configurable: true
196
+ });
197
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "providePagingParameter", {
198
+ get: function () {
199
+ return this._providePagingParameter;
200
+ },
201
+ set: function (value) {
202
+ this._providePagingParameter = value;
203
+ },
204
+ enumerable: true,
205
+ configurable: true
206
+ });
207
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideDesiredPropertiesParameter", {
208
+ get: function () {
209
+ return this._provideDesiredPropertiesParameter;
210
+ },
211
+ set: function (value) {
212
+ this._provideDesiredPropertiesParameter = value;
213
+ },
214
+ enumerable: true,
215
+ configurable: true
216
+ });
217
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideItems", {
218
+ get: function () {
219
+ return this._provideItems;
220
+ },
221
+ set: function (value) {
222
+ this._provideItems = value;
223
+ },
224
+ enumerable: true,
225
+ configurable: true
226
+ });
227
+ Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "performFetch", {
228
+ get: function () {
229
+ return this._performFetch;
230
+ },
231
+ set: function (value) {
232
+ this._performFetch = value;
233
+ },
234
+ enumerable: true,
235
+ configurable: true
236
+ });
237
+ RestVirtualDataSourceDataProviderWorkerSettings.$t = markType(RestVirtualDataSourceDataProviderWorkerSettings, 'RestVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type);
238
+ return RestVirtualDataSourceDataProviderWorkerSettings;
239
+ }(AsyncVirtualDataSourceDataProviderWorkerSettings));
240
+ export { RestVirtualDataSourceDataProviderWorkerSettings };
@@ -0,0 +1,73 @@
1
+ import { DataSourceSchemaPropertyType } from "igniteui-webcomponents-core";
2
+ var RestVirtualDataSourcePage = /** @class */ /*@__PURE__*/ (function () {
3
+ function RestVirtualDataSourcePage(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
+ var count = (sourceData_.items.length);
14
+ this._actualData = [];
15
+ var dateProps = new Set();
16
+ for (var 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
+ var value_ = void 0;
22
+ var _loop_1 = function (i_) {
23
+ var currItem_ = sourceData_.items[i_];
24
+ var dict = new Map();
25
+ var properties = Array.from(Object.keys(currItem_));
26
+ var values = (properties.map(function (k) { return currItem_[k]; }));
27
+ for (var 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_1._actualData[i_] = dict;
35
+ };
36
+ var this_1 = this;
37
+ for (var i_ = 0; i_ < count; i_++) {
38
+ _loop_1(i_);
39
+ }
40
+ }
41
+ this._schema = schema;
42
+ this._groupInformation = groupInformation;
43
+ this._summaryInformation = summaryInformation;
44
+ this._pageIndex = pageIndex;
45
+ }
46
+ RestVirtualDataSourcePage.prototype.count = function () {
47
+ return this._actualData.length;
48
+ };
49
+ RestVirtualDataSourcePage.prototype.getItemAtIndex = function (index) {
50
+ return this._actualData[index];
51
+ };
52
+ RestVirtualDataSourcePage.prototype.getItemValueAtIndex = function (index, valueName) {
53
+ var item = this._actualData[index];
54
+ if (!item.has(valueName)) {
55
+ return null;
56
+ }
57
+ return item.get(valueName);
58
+ };
59
+ RestVirtualDataSourcePage.prototype.pageIndex = function () {
60
+ return this._pageIndex;
61
+ };
62
+ RestVirtualDataSourcePage.prototype.schema = function () {
63
+ return this._schema;
64
+ };
65
+ RestVirtualDataSourcePage.prototype.getGroupInformation = function () {
66
+ return this._groupInformation;
67
+ };
68
+ RestVirtualDataSourcePage.prototype.getSummaryInformation = function () {
69
+ return this._summaryInformation;
70
+ };
71
+ return RestVirtualDataSourcePage;
72
+ }());
73
+ export { RestVirtualDataSourcePage };
@@ -0,0 +1,12 @@
1
+ import * as tslib_1 from "tslib";
2
+ import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
3
+ import { markType } from "igniteui-webcomponents-core";
4
+ var RestVirtualDataSourceProviderTaskDataHolder = /** @class */ /*@__PURE__*/ (function (_super) {
5
+ tslib_1.__extends(RestVirtualDataSourceProviderTaskDataHolder, _super);
6
+ function RestVirtualDataSourceProviderTaskDataHolder() {
7
+ return _super !== null && _super.apply(this, arguments) || this;
8
+ }
9
+ RestVirtualDataSourceProviderTaskDataHolder.$t = markType(RestVirtualDataSourceProviderTaskDataHolder, 'ODataVirtualDataSourceProviderTaskDataHolder', AsyncVirtualDataSourceProviderTaskDataHolder.$type);
10
+ return RestVirtualDataSourceProviderTaskDataHolder;
11
+ }(AsyncVirtualDataSourceProviderTaskDataHolder));
12
+ export { RestVirtualDataSourceProviderTaskDataHolder };
@@ -66,4 +66,3 @@ var Schema = /** @class */ /*@__PURE__*/ (function () {
66
66
  return Schema;
67
67
  }());
68
68
  export { Schema };
69
- //# sourceMappingURL=Schema.js.map
package/esm5/lib/util.js CHANGED
@@ -158,4 +158,3 @@ var LinkedListNode = /** @class */ /*@__PURE__*/ (function () {
158
158
  return LinkedListNode;
159
159
  }());
160
160
  export { LinkedListNode };
161
- //# sourceMappingURL=util.js.map
@@ -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