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,528 @@
1
+ import { Base, runOn, markType } from "igniteui-webcomponents-core";
2
+ import { IDataSourceVirtualDataProvider_$type } from "igniteui-webcomponents-core";
3
+ import { SortDescriptionCollection } from "igniteui-webcomponents-core";
4
+ import { FilterExpressionCollection } from "igniteui-webcomponents-core";
5
+ import { LinkedList } from "./util";
6
+ import { DataSourcePageRequestPriority } from "igniteui-webcomponents-core";
7
+ import { RestVirtualDataSourceDataProviderWorker } from "./RestVirtualDataSourceDataProviderWorker";
8
+ import { RestVirtualDataSourceDataProviderWorkerSettings } from "./RestVirtualDataSourceDataProviderWorkerSettings";
9
+ import { DataSourceDataProviderSchemaChangedEventArgs } from "igniteui-webcomponents-core";
10
+ import { DataSourceSchemaPropertyType } from "igniteui-webcomponents-core";
11
+ import { stringContains } from "igniteui-webcomponents-core";
12
+ import { SummaryDescriptionCollection } from "igniteui-webcomponents-core";
13
+ export let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
14
+ class RestVirtualDataSourceDataProvider extends Base {
15
+ constructor() {
16
+ super();
17
+ this._worker = null;
18
+ this._requests = new LinkedList();
19
+ this._callback = null;
20
+ this._pageLoaded = null;
21
+ this._pageSizeRequested = 50;
22
+ this._baseUri = null;
23
+ this._entitySet = null;
24
+ this._timeoutMilliseconds = 10000;
25
+ this.schemaChanged = null;
26
+ this._currentFullCount = 0;
27
+ this._currentSchema = null;
28
+ this._executionContext = null;
29
+ this._updateNotifier = null;
30
+ this._deferAutoRefresh = false;
31
+ this._sortDescriptions = null;
32
+ this._groupDescriptions = null;
33
+ this._propertiesRequested = null;
34
+ this._filterExpressions = null;
35
+ this._summaryDescriptions = null;
36
+ this._enableJsonp = true;
37
+ this._fixedFullCount = -1;
38
+ this._provideFullCount = null;
39
+ this._provideOrderByParameter = null;
40
+ this._provideFilterParameter = null;
41
+ this._provideAggregationParameter = null;
42
+ this._provideAggregatedCount = null;
43
+ this._provideUri = null;
44
+ this._performFetch = null;
45
+ this._providePagingParameter = null;
46
+ this._provideDesiredPropertiesParameter = null;
47
+ this._schemaFetchQueued = false;
48
+ this._autoRefreshQueued = false;
49
+ this._sortDescriptions = new SortDescriptionCollection();
50
+ this._sortDescriptions.onChanged = () => this.sortDescriptions_CollectionChanged(null, null);
51
+ this._groupDescriptions = new SortDescriptionCollection();
52
+ this._groupDescriptions.onChanged = () => this.groupDescriptions_CollectionChanged(null, null);
53
+ this._filterExpressions = new FilterExpressionCollection();
54
+ this._filterExpressions.onChanged = () => this.filterExpressions_CollectionChanged(null, null);
55
+ this._summaryDescriptions = new SummaryDescriptionCollection();
56
+ this._summaryDescriptions.onChanged = () => this.summaryDescriptions_CollectionChanged(null, null);
57
+ }
58
+ filterExpressions_CollectionChanged(sender, e) {
59
+ this.queueAutoRefresh();
60
+ }
61
+ sortDescriptions_CollectionChanged(sender, e) {
62
+ this.queueAutoRefresh();
63
+ }
64
+ groupDescriptions_CollectionChanged(sender, e) {
65
+ this.queueAutoRefresh();
66
+ }
67
+ summaryDescriptions_CollectionChanged(sender, e) {
68
+ this.queueAutoRefresh();
69
+ }
70
+ addPageRequest(pageIndex, priority) {
71
+ if (this.deferAutoRefresh) {
72
+ return;
73
+ }
74
+ if (this._worker != null && this._worker.isShutdown) {
75
+ this._worker = null;
76
+ this._callback = null;
77
+ }
78
+ if (this._worker == null) {
79
+ this.createWorker();
80
+ }
81
+ if (priority == DataSourcePageRequestPriority.High) {
82
+ this._requests.addFirst(pageIndex);
83
+ }
84
+ else {
85
+ this._requests.addLast(pageIndex);
86
+ }
87
+ if (!this._worker.addPageRequest(pageIndex, priority)) {
88
+ this._worker = null;
89
+ this._callback = null;
90
+ this.addPageRequest(pageIndex, priority);
91
+ }
92
+ }
93
+ createWorker() {
94
+ if (!this.valid()) {
95
+ return;
96
+ }
97
+ this._callback = runOn(this, this.raisePageLoaded);
98
+ let settings = this.getWorkerSettings();
99
+ this._worker = new RestVirtualDataSourceDataProviderWorker(settings);
100
+ }
101
+ valid() {
102
+ return this.entitySet != null && this.baseUri != null;
103
+ }
104
+ getWorkerSettings() {
105
+ return ((() => {
106
+ let $ret = new RestVirtualDataSourceDataProviderWorkerSettings();
107
+ $ret.baseUri = this._baseUri;
108
+ $ret.entitySet = this._entitySet;
109
+ $ret.pageSizeRequested = this._pageSizeRequested;
110
+ $ret.timeoutMilliseconds = this._timeoutMilliseconds;
111
+ $ret.pageLoaded = this._callback;
112
+ $ret.executionContext = this._executionContext;
113
+ $ret.sortDescriptions = this._sortDescriptions;
114
+ $ret.groupDescriptions = this._groupDescriptions;
115
+ $ret.filterExpressions = this._filterExpressions;
116
+ $ret.propertiesRequested = this._propertiesRequested;
117
+ $ret.summaryDescriptions = this._summaryDescriptions;
118
+ $ret.summaryScope = this._summaryScope;
119
+ $ret.enableJsonp = this._enableJsonp;
120
+ $ret.isAggregationSupported = this.isAggregationSupported;
121
+ $ret.performFetch = this.performFetch;
122
+ $ret.provideAggregationParameter = this.provideAggregationParameter;
123
+ $ret.provideAggregatedCount = this.provideAggregatedCount;
124
+ $ret.provideDesiredPropertiesParameter = this.provideDesiredPropertiesParameter;
125
+ $ret.provideFilterParameter = this.provideFilterParameter;
126
+ $ret.provideFullCount = this.provideFullCount;
127
+ $ret.provideItems = this.provideItems;
128
+ $ret.provideOrderByParameter = this.provideOrderByParameter;
129
+ $ret.providePagingParameter = this.providePagingParameter;
130
+ $ret.provideUri = this.provideUri;
131
+ $ret.fixedFullCount = this.fixedFullCount;
132
+ return $ret;
133
+ })());
134
+ }
135
+ removePageRequest(pageIndex) {
136
+ let current = this._requests.first;
137
+ while (current != null) {
138
+ if (current.value == pageIndex) {
139
+ this._requests.remove(current);
140
+ }
141
+ current = current.next;
142
+ }
143
+ if (this._worker == null) {
144
+ return;
145
+ }
146
+ this._worker.removePageRequest(pageIndex);
147
+ }
148
+ removeAllPageRequests() {
149
+ this._requests.clear();
150
+ if (this._worker == null) {
151
+ return;
152
+ }
153
+ this._worker.removeAllPageRequests();
154
+ }
155
+ close() {
156
+ if (this._worker != null) {
157
+ this._worker.shutdown();
158
+ this._worker = null;
159
+ this._callback = null;
160
+ }
161
+ }
162
+ get pageLoaded() {
163
+ return this._pageLoaded;
164
+ }
165
+ set pageLoaded(value) {
166
+ this._pageLoaded = value;
167
+ this.queueAutoRefresh();
168
+ }
169
+ raisePageLoaded(page, fullCount, actualPageSize) {
170
+ if (this._pageLoaded != null) {
171
+ this._currentFullCount = fullCount;
172
+ if (this._currentSchema == null) {
173
+ let currentSchema = null;
174
+ if (page != null) {
175
+ currentSchema = page.schema();
176
+ }
177
+ this._currentSchema = currentSchema;
178
+ if (this.schemaChanged != null) {
179
+ this.schemaChanged(this, new DataSourceDataProviderSchemaChangedEventArgs(this._currentSchema, this._currentFullCount));
180
+ }
181
+ }
182
+ if (page.pageIndex() != RestVirtualDataSourceDataProviderWorker.schemaRequestIndex) {
183
+ this._pageLoaded(page, fullCount, actualPageSize);
184
+ }
185
+ }
186
+ }
187
+ killWorker() {
188
+ if (this._worker != null) {
189
+ this._worker.shutdown();
190
+ this._worker = null;
191
+ this._callback = null;
192
+ }
193
+ }
194
+ get pageSizeRequested() {
195
+ return this._pageSizeRequested;
196
+ }
197
+ set pageSizeRequested(value) {
198
+ this._pageSizeRequested = value;
199
+ this.queueAutoRefresh();
200
+ }
201
+ get baseUri() {
202
+ return this._baseUri;
203
+ }
204
+ set baseUri(value) {
205
+ let oldValue = this._baseUri;
206
+ this._baseUri = value;
207
+ if (oldValue != this._baseUri) {
208
+ this.queueAutoRefresh();
209
+ if (this.valid() && this.deferAutoRefresh) {
210
+ this.queueSchemaFetch();
211
+ }
212
+ }
213
+ }
214
+ get entitySet() {
215
+ return this._entitySet;
216
+ }
217
+ set entitySet(value) {
218
+ let oldValue = this._entitySet;
219
+ this._entitySet = value;
220
+ if (oldValue != this._entitySet) {
221
+ this.queueAutoRefresh();
222
+ if (this.valid() && this.deferAutoRefresh) {
223
+ this.queueSchemaFetch();
224
+ }
225
+ }
226
+ }
227
+ get timeoutMilliseconds() {
228
+ return this._timeoutMilliseconds;
229
+ }
230
+ set timeoutMilliseconds(value) {
231
+ this._timeoutMilliseconds = value;
232
+ this.queueAutoRefresh();
233
+ }
234
+ getItemValue(item, valueName) {
235
+ let dic = item;
236
+ if (dic.has(valueName)) {
237
+ return dic.get(valueName);
238
+ }
239
+ else {
240
+ return null;
241
+ }
242
+ }
243
+ get actualCount() {
244
+ return this._currentFullCount;
245
+ }
246
+ get actualSchema() {
247
+ return this._currentSchema;
248
+ }
249
+ get executionContext() {
250
+ return this._executionContext;
251
+ }
252
+ set executionContext(value) {
253
+ this._executionContext = value;
254
+ this.queueAutoRefresh();
255
+ }
256
+ get updateNotifier() {
257
+ return this._updateNotifier;
258
+ }
259
+ set updateNotifier(value) {
260
+ this._updateNotifier = value;
261
+ }
262
+ get deferAutoRefresh() {
263
+ return this._deferAutoRefresh;
264
+ }
265
+ set deferAutoRefresh(value) {
266
+ this._deferAutoRefresh = value;
267
+ if (!this._deferAutoRefresh) {
268
+ this.queueAutoRefresh();
269
+ }
270
+ if (this._deferAutoRefresh && this.valid() && this._currentSchema == null) {
271
+ this.queueSchemaFetch();
272
+ }
273
+ }
274
+ get isSortingSupported() {
275
+ return true;
276
+ }
277
+ get isGroupingSupported() {
278
+ return this.isAggregationSupported;
279
+ }
280
+ get isFilteringSupported() {
281
+ return true;
282
+ }
283
+ get isAggregationSupported() {
284
+ return this._isAggregationSupported;
285
+ }
286
+ set isAggregationSupported(isSupported) {
287
+ this._isAggregationSupported = isSupported;
288
+ }
289
+ get sortDescriptions() {
290
+ return this._sortDescriptions;
291
+ }
292
+ get groupDescriptions() {
293
+ return this._groupDescriptions;
294
+ }
295
+ get propertiesRequested() {
296
+ return this._propertiesRequested;
297
+ }
298
+ set propertiesRequested(value) {
299
+ this._propertiesRequested = value;
300
+ this.queueAutoRefresh();
301
+ }
302
+ get filterExpressions() {
303
+ return this._filterExpressions;
304
+ }
305
+ get summaryDescriptions() {
306
+ return this._summaryDescriptions;
307
+ }
308
+ get summaryScope() {
309
+ return this._summaryScope;
310
+ }
311
+ set summaryScope(value) {
312
+ this._summaryScope = value;
313
+ }
314
+ get enableJsonp() {
315
+ return this._enableJsonp;
316
+ }
317
+ set enableJsonp(isEnabled) {
318
+ this._enableJsonp = isEnabled;
319
+ }
320
+ get fixedFullCount() {
321
+ return this._fixedFullCount;
322
+ }
323
+ set fixedFullCount(value) {
324
+ this._fixedFullCount = value;
325
+ }
326
+ get provideFullCount() {
327
+ return this._provideFullCount;
328
+ }
329
+ set provideFullCount(value) {
330
+ this._provideFullCount = value;
331
+ }
332
+ get provideOrderByParameter() {
333
+ return this._provideOrderByParameter;
334
+ }
335
+ set provideOrderByParameter(value) {
336
+ this._provideOrderByParameter = value;
337
+ }
338
+ get provideFilterParameter() {
339
+ return this._provideFilterParameter;
340
+ }
341
+ set provideFilterParameter(value) {
342
+ this._provideFilterParameter = value;
343
+ }
344
+ get provideAggregationParameter() {
345
+ return this._provideAggregationParameter;
346
+ }
347
+ set provideAggregationParameter(value) {
348
+ this._provideAggregationParameter = value;
349
+ }
350
+ get provideAggregatedCount() {
351
+ return this._provideAggregatedCount;
352
+ }
353
+ set provideAggregatedCount(value) {
354
+ this._provideAggregatedCount = value;
355
+ }
356
+ get provideUri() {
357
+ return this._provideUri;
358
+ }
359
+ set provideUri(value) {
360
+ this._provideUri = value;
361
+ }
362
+ get performFetch() {
363
+ return this._performFetch;
364
+ }
365
+ set performFetch(value) {
366
+ this._performFetch = value;
367
+ }
368
+ get providePagingParameter() {
369
+ return this._providePagingParameter;
370
+ }
371
+ set providePagingParameter(value) {
372
+ this._providePagingParameter = value;
373
+ }
374
+ get provideDesiredPropertiesParameter() {
375
+ return this._provideDesiredPropertiesParameter;
376
+ }
377
+ set provideDesiredPropertiesParameter(value) {
378
+ this._provideDesiredPropertiesParameter = value;
379
+ }
380
+ get provideItems() {
381
+ return this._provideItems;
382
+ }
383
+ set provideItems(value) {
384
+ this._provideItems = value;
385
+ }
386
+ get notifyUsingSourceIndexes() {
387
+ return true;
388
+ }
389
+ get isItemIndexLookupSupported() {
390
+ return false;
391
+ }
392
+ get isKeyIndexLookupSupported() {
393
+ return false;
394
+ }
395
+ notifySetItem(index, oldItem, newItem) {
396
+ if (this.updateNotifier != null) {
397
+ this.updateNotifier.notifySetItem(index, oldItem, newItem);
398
+ }
399
+ }
400
+ notifyClearItems() {
401
+ if (this.updateNotifier != null) {
402
+ this.updateNotifier.notifyClearItems();
403
+ }
404
+ }
405
+ notifyInsertItem(index, newItem) {
406
+ if (this.updateNotifier != null) {
407
+ this.updateNotifier.notifyInsertItem(index, newItem);
408
+ }
409
+ }
410
+ notifyRemoveItem(index, oldItem) {
411
+ if (this.updateNotifier != null) {
412
+ this.updateNotifier.notifyRemoveItem(index, oldItem);
413
+ }
414
+ }
415
+ queueSchemaFetch() {
416
+ if (this._schemaFetchQueued) {
417
+ return;
418
+ }
419
+ if (this.executionContext != null) {
420
+ this._schemaFetchQueued = true;
421
+ this.executionContext.enqueueAction(runOn(this, this.doSchemaFetchInternal));
422
+ }
423
+ }
424
+ doSchemaFetchInternal() {
425
+ if (!this._schemaFetchQueued) {
426
+ return;
427
+ }
428
+ this._schemaFetchQueued = false;
429
+ this.schemaFetchInternal();
430
+ }
431
+ schemaFetchInternal() {
432
+ this.schemaFetchInternalOverride();
433
+ }
434
+ schemaFetchInternalOverride() {
435
+ if (!this.deferAutoRefresh) {
436
+ return;
437
+ }
438
+ this.removeAllPageRequests();
439
+ this.killWorker();
440
+ this.createWorker();
441
+ this.addSchemaRequest();
442
+ }
443
+ addSchemaRequest() {
444
+ this._worker.addPageRequest(RestVirtualDataSourceDataProviderWorker.schemaRequestIndex, DataSourcePageRequestPriority.High);
445
+ }
446
+ queueAutoRefresh() {
447
+ if (this.deferAutoRefresh) {
448
+ return;
449
+ }
450
+ if (this._autoRefreshQueued) {
451
+ return;
452
+ }
453
+ if (this.executionContext != null) {
454
+ this._autoRefreshQueued = true;
455
+ this.executionContext.enqueueAction(runOn(this, this.doRefreshInternal));
456
+ }
457
+ }
458
+ doRefreshInternal() {
459
+ if (this.deferAutoRefresh) {
460
+ this._autoRefreshQueued = false;
461
+ return;
462
+ }
463
+ if (!this._autoRefreshQueued) {
464
+ return;
465
+ }
466
+ this._autoRefreshQueued = false;
467
+ this.refreshInternal();
468
+ }
469
+ refreshInternal() {
470
+ this.refreshInternalOverride();
471
+ }
472
+ refreshInternalOverride() {
473
+ this.removeAllPageRequests();
474
+ this.killWorker();
475
+ this.createWorker();
476
+ this._worker.addPageRequest(0, DataSourcePageRequestPriority.Normal);
477
+ }
478
+ flushAutoRefresh() {
479
+ this.doRefreshInternal();
480
+ }
481
+ refresh() {
482
+ this.refreshInternal();
483
+ }
484
+ indexOfItem(item) {
485
+ return -1;
486
+ }
487
+ indexOfKey(key) {
488
+ return -1;
489
+ }
490
+ resolveSchemaPropertyType(propertyPath) {
491
+ if (this.actualSchema == null) {
492
+ return DataSourceSchemaPropertyType.ObjectValue;
493
+ }
494
+ if (stringContains(propertyPath, ".")) {
495
+ return DataSourceSchemaPropertyType.ObjectValue;
496
+ }
497
+ for (let i = 0; i < this.actualSchema.propertyNames.length; i++) {
498
+ let name = this.actualSchema.propertyNames[i];
499
+ if (name == propertyPath) {
500
+ return this.actualSchema.propertyTypes[i];
501
+ }
502
+ }
503
+ return DataSourceSchemaPropertyType.ObjectValue;
504
+ }
505
+ setItemValue(item, valueName, value) {
506
+ // does nothing.
507
+ }
508
+ removeItem(item) {
509
+ // does nothing.
510
+ }
511
+ addItem(item) {
512
+ // does nothing.
513
+ }
514
+ createBatchRequest(changes) {
515
+ if (this._worker != null) {
516
+ this._worker.createBatchRequest(changes);
517
+ }
518
+ }
519
+ get batchCompleted() {
520
+ return this._batchCompleted;
521
+ }
522
+ set batchCompleted(v) {
523
+ this._batchCompleted = v;
524
+ }
525
+ }
526
+ RestVirtualDataSourceDataProvider.$t = /*@__PURE__*/ markType(RestVirtualDataSourceDataProvider, 'ODataVirtualDataSourceDataProvider', Base.$type, [IDataSourceVirtualDataProvider_$type]);
527
+ return RestVirtualDataSourceDataProvider;
528
+ })();