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.
Files changed (74) hide show
  1. package/esm2022/lib/ODataSchemaProvider.js +120 -0
  2. package/esm2022/lib/ODataVirtualDataSourceDataProvider.js +450 -0
  3. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.js +710 -0
  4. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +83 -0
  5. package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +6 -0
  6. package/esm2022/lib/RestVirtualDataSourceDataProvider.js +535 -0
  7. package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.js +762 -0
  8. package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +159 -0
  9. package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.js +6 -0
  10. package/package.json +14 -10
  11. package/bundles/igniteui-webcomponents-datasources.umd.js +0 -4725
  12. package/bundles/igniteui-webcomponents-datasources.umd.min.js +0 -7
  13. package/esm2015/igniteui-webcomponents-datasources.js +0 -1
  14. package/esm2015/lib/ODataSchemaProvider.js +0 -123
  15. package/esm2015/lib/ODataVirtualDataSourceDataProvider.js +0 -453
  16. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -713
  17. package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -86
  18. package/esm2015/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -9
  19. package/esm2015/lib/RestVirtualDataSourceDataProvider.js +0 -538
  20. package/esm2015/lib/RestVirtualDataSourceDataProviderWorker.js +0 -765
  21. package/esm2015/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +0 -162
  22. package/esm2015/lib/RestVirtualDataSourceProviderTaskDataHolder.js +0 -9
  23. package/esm5/igniteui-webcomponents-datasources.js +0 -1
  24. package/esm5/lib/Entity.js +0 -79
  25. package/esm5/lib/EntityProperty.js +0 -41
  26. package/esm5/lib/EntitySet.js +0 -68
  27. package/esm5/lib/ODataDataSourcePage.js +0 -73
  28. package/esm5/lib/ODataSchemaProvider.js +0 -158
  29. package/esm5/lib/ODataVirtualDataSource.js +0 -169
  30. package/esm5/lib/ODataVirtualDataSourceDataProvider.js +0 -558
  31. package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js +0 -920
  32. package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +0 -130
  33. package/esm5/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +0 -11
  34. package/esm5/lib/RestVirtualDataSource.js +0 -357
  35. package/esm5/lib/RestVirtualDataSourceDataProvider.js +0 -687
  36. package/esm5/lib/RestVirtualDataSourceDataProviderWorker.js +0 -967
  37. package/esm5/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +0 -250
  38. package/esm5/lib/RestVirtualDataSourcePage.js +0 -73
  39. package/esm5/lib/RestVirtualDataSourceProviderTaskDataHolder.js +0 -11
  40. package/esm5/lib/Schema.js +0 -68
  41. package/esm5/lib/util.js +0 -160
  42. package/esm5/public_api.js +0 -18
  43. package/fesm2015/igniteui-webcomponents-datasources.js +0 -3638
  44. package/fesm5/igniteui-webcomponents-datasources.js +0 -4698
  45. package/igniteui-webcomponents-datasources.d.ts +0 -1
  46. /package/{lib → esm2022/lib}/Entity.d.ts +0 -0
  47. /package/{esm2015 → esm2022}/lib/Entity.js +0 -0
  48. /package/{lib → esm2022/lib}/EntityProperty.d.ts +0 -0
  49. /package/{esm2015 → esm2022}/lib/EntityProperty.js +0 -0
  50. /package/{lib → esm2022/lib}/EntitySet.d.ts +0 -0
  51. /package/{esm2015 → esm2022}/lib/EntitySet.js +0 -0
  52. /package/{lib → esm2022/lib}/ODataDataSourcePage.d.ts +0 -0
  53. /package/{esm2015 → esm2022}/lib/ODataDataSourcePage.js +0 -0
  54. /package/{lib → esm2022/lib}/ODataSchemaProvider.d.ts +0 -0
  55. /package/{lib → esm2022/lib}/ODataVirtualDataSource.d.ts +0 -0
  56. /package/{esm2015 → esm2022}/lib/ODataVirtualDataSource.js +0 -0
  57. /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProvider.d.ts +0 -0
  58. /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProviderWorker.d.ts +0 -0
  59. /package/{lib → esm2022/lib}/ODataVirtualDataSourceDataProviderWorkerSettings.d.ts +0 -0
  60. /package/{lib → esm2022/lib}/ODataVirtualDataSourceProviderTaskDataHolder.d.ts +0 -0
  61. /package/{lib → esm2022/lib}/RestVirtualDataSource.d.ts +0 -0
  62. /package/{esm2015 → esm2022}/lib/RestVirtualDataSource.js +0 -0
  63. /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProvider.d.ts +0 -0
  64. /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProviderWorker.d.ts +0 -0
  65. /package/{lib → esm2022/lib}/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +0 -0
  66. /package/{lib → esm2022/lib}/RestVirtualDataSourcePage.d.ts +0 -0
  67. /package/{esm2015 → esm2022}/lib/RestVirtualDataSourcePage.js +0 -0
  68. /package/{lib → esm2022/lib}/RestVirtualDataSourceProviderTaskDataHolder.d.ts +0 -0
  69. /package/{lib → esm2022/lib}/Schema.d.ts +0 -0
  70. /package/{esm2015 → esm2022}/lib/Schema.js +0 -0
  71. /package/{lib → esm2022/lib}/util.d.ts +0 -0
  72. /package/{esm2015 → esm2022}/lib/util.js +0 -0
  73. /package/{public_api.d.ts → esm2022/public_api.d.ts} +0 -0
  74. /package/{esm2015 → esm2022}/public_api.js +0 -0
@@ -1,250 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
3
- import { markType } from "igniteui-webcomponents-core";
4
- export var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*/ (function (_super) {
5
- __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._schemaIncludedProperties = null;
14
- _this._groupDescriptions = null;
15
- _this._summaryDescriptions = null;
16
- _this._fixedFullCount = -1;
17
- _this._provideFullCount = null;
18
- _this._provideOrderByParameter = null;
19
- _this._provideFilterParameter = null;
20
- _this._provideAggregationParameter = null;
21
- _this._provideAggregatedCount = null;
22
- _this._provideUri = null;
23
- _this._providePagingParameter = null;
24
- _this._provideDesiredPropertiesParameter = null;
25
- _this._performFetch = null;
26
- return _this;
27
- }
28
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "baseUri", {
29
- get: function () {
30
- return this._baseUri;
31
- },
32
- set: function (value) {
33
- this._baseUri = value;
34
- },
35
- enumerable: false,
36
- configurable: true
37
- });
38
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "entitySet", {
39
- get: function () {
40
- return this._entitySet;
41
- },
42
- set: function (value) {
43
- this._entitySet = value;
44
- },
45
- enumerable: false,
46
- configurable: true
47
- });
48
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "sortDescriptions", {
49
- get: function () {
50
- return this._sortDescriptions;
51
- },
52
- set: function (value) {
53
- this._sortDescriptions = value;
54
- },
55
- enumerable: false,
56
- configurable: true
57
- });
58
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "filterExpressions", {
59
- get: function () {
60
- return this._filterExpressions;
61
- },
62
- set: function (value) {
63
- this._filterExpressions = value;
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "propertiesRequested", {
69
- get: function () {
70
- return this._propertiesRequested;
71
- },
72
- set: function (value) {
73
- this._propertiesRequested = value;
74
- },
75
- enumerable: false,
76
- configurable: true
77
- });
78
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "schemaIncludedProperties", {
79
- get: function () {
80
- return this._schemaIncludedProperties;
81
- },
82
- set: function (value) {
83
- this._schemaIncludedProperties = value;
84
- },
85
- enumerable: false,
86
- configurable: true
87
- });
88
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
89
- get: function () {
90
- return this._groupDescriptions;
91
- },
92
- set: function (value) {
93
- this._groupDescriptions = value;
94
- },
95
- enumerable: false,
96
- configurable: true
97
- });
98
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryDescriptions", {
99
- get: function () {
100
- return this._summaryDescriptions;
101
- },
102
- set: function (value) {
103
- this._summaryDescriptions = value;
104
- },
105
- enumerable: false,
106
- configurable: true
107
- });
108
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "summaryScope", {
109
- get: function () {
110
- return this._summaryscope;
111
- },
112
- set: function (value) {
113
- this._summaryscope = value;
114
- },
115
- enumerable: false,
116
- configurable: true
117
- });
118
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "enableJsonp", {
119
- get: function () {
120
- return this._enableJsonp;
121
- },
122
- set: function (isEnabled) {
123
- this._enableJsonp = isEnabled;
124
- },
125
- enumerable: false,
126
- configurable: true
127
- });
128
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "isAggregationSupported", {
129
- get: function () {
130
- return this._isAggregationSupported;
131
- },
132
- set: function (isSupported) {
133
- this._isAggregationSupported = isSupported;
134
- },
135
- enumerable: false,
136
- configurable: true
137
- });
138
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "fixedFullCount", {
139
- get: function () {
140
- return this._fixedFullCount;
141
- },
142
- set: function (value) {
143
- this._fixedFullCount = value;
144
- },
145
- enumerable: false,
146
- configurable: true
147
- });
148
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideFullCount", {
149
- get: function () {
150
- return this._provideFullCount;
151
- },
152
- set: function (value) {
153
- this._provideFullCount = value;
154
- },
155
- enumerable: false,
156
- configurable: true
157
- });
158
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideOrderByParameter", {
159
- get: function () {
160
- return this._provideOrderByParameter;
161
- },
162
- set: function (value) {
163
- this._provideOrderByParameter = value;
164
- },
165
- enumerable: false,
166
- configurable: true
167
- });
168
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideFilterParameter", {
169
- get: function () {
170
- return this._provideFilterParameter;
171
- },
172
- set: function (value) {
173
- this._provideFilterParameter = value;
174
- },
175
- enumerable: false,
176
- configurable: true
177
- });
178
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideAggregationParameter", {
179
- get: function () {
180
- return this._provideAggregationParameter;
181
- },
182
- set: function (value) {
183
- this._provideAggregationParameter = value;
184
- },
185
- enumerable: false,
186
- configurable: true
187
- });
188
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideAggregatedCount", {
189
- get: function () {
190
- return this._provideAggregatedCount;
191
- },
192
- set: function (value) {
193
- this._provideAggregatedCount = value;
194
- },
195
- enumerable: false,
196
- configurable: true
197
- });
198
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideUri", {
199
- get: function () {
200
- return this._provideUri;
201
- },
202
- set: function (value) {
203
- this._provideUri = value;
204
- },
205
- enumerable: false,
206
- configurable: true
207
- });
208
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "providePagingParameter", {
209
- get: function () {
210
- return this._providePagingParameter;
211
- },
212
- set: function (value) {
213
- this._providePagingParameter = value;
214
- },
215
- enumerable: false,
216
- configurable: true
217
- });
218
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideDesiredPropertiesParameter", {
219
- get: function () {
220
- return this._provideDesiredPropertiesParameter;
221
- },
222
- set: function (value) {
223
- this._provideDesiredPropertiesParameter = value;
224
- },
225
- enumerable: false,
226
- configurable: true
227
- });
228
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "provideItems", {
229
- get: function () {
230
- return this._provideItems;
231
- },
232
- set: function (value) {
233
- this._provideItems = value;
234
- },
235
- enumerable: false,
236
- configurable: true
237
- });
238
- Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "performFetch", {
239
- get: function () {
240
- return this._performFetch;
241
- },
242
- set: function (value) {
243
- this._performFetch = value;
244
- },
245
- enumerable: false,
246
- configurable: true
247
- });
248
- RestVirtualDataSourceDataProviderWorkerSettings.$t = markType(RestVirtualDataSourceDataProviderWorkerSettings, 'RestVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type);
249
- return RestVirtualDataSourceDataProviderWorkerSettings;
250
- }(AsyncVirtualDataSourceDataProviderWorkerSettings));
@@ -1,73 +0,0 @@
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 };
@@ -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 RestVirtualDataSourceProviderTaskDataHolder = /** @class */ /*@__PURE__*/ (function (_super) {
5
- __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));
@@ -1,68 +0,0 @@
1
- import { Entity } from "./Entity";
2
- import { EntitySet } from "./EntitySet";
3
- import { XName } from "igniteui-webcomponents-core";
4
- var Schema = /** @class */ /*@__PURE__*/ (function () {
5
- function Schema(namespace, entityTypeElements, entitySetElements) {
6
- this._entities = null;
7
- this._entitySets = null;
8
- this._namespace = null;
9
- this.namespace = namespace;
10
- this.loadEntities(entityTypeElements);
11
- this.loadEntitySets(entitySetElements);
12
- }
13
- Object.defineProperty(Schema.prototype, "entities", {
14
- get: function () {
15
- if (null == this._entities) {
16
- this._entities = new Map();
17
- }
18
- return this._entities;
19
- },
20
- enumerable: false,
21
- configurable: true
22
- });
23
- Object.defineProperty(Schema.prototype, "entitySets", {
24
- get: function () {
25
- if (null == this._entitySets) {
26
- this._entitySets = new Map();
27
- }
28
- return this._entitySets;
29
- },
30
- enumerable: false,
31
- configurable: true
32
- });
33
- Object.defineProperty(Schema.prototype, "namespace", {
34
- get: function () {
35
- return this._namespace;
36
- },
37
- set: function (value) {
38
- this._namespace = value;
39
- },
40
- enumerable: false,
41
- configurable: true
42
- });
43
- Schema.prototype.loadEntities = function (entityTypeElements) {
44
- var list = entityTypeElements;
45
- var elementCount = list.length;
46
- var name = XName.get("Name", "");
47
- for (var i = 0; i < elementCount; i++) {
48
- var node = list[i];
49
- var entity = new Entity(node.attribute(name).value, node);
50
- this.entities.set(entity.name, entity);
51
- }
52
- ;
53
- };
54
- Schema.prototype.loadEntitySets = function (entitySetElements) {
55
- var list = entitySetElements;
56
- var elementCount = list.length;
57
- var nameAttr = XName.get("Name", "");
58
- var entityType = XName.get("EntityType", "");
59
- for (var i = 0; i < elementCount; i++) {
60
- var node = list[i];
61
- var entitySet = new EntitySet(node.attribute(nameAttr).value, node.attribute(entityType).value);
62
- this.entitySets.set(entitySet.name, entitySet);
63
- }
64
- ;
65
- };
66
- return Schema;
67
- }());
68
- export { Schema };
package/esm5/lib/util.js DELETED
@@ -1,160 +0,0 @@
1
- import { __values } from "tslib";
2
- import { fromEnum } from "igniteui-webcomponents-core";
3
- export function toArray(en) {
4
- return Array.from(fromEnum(en));
5
- }
6
- export function first(iter) {
7
- var e_1, _a;
8
- try {
9
- for (var iter_1 = __values(iter), iter_1_1 = iter_1.next(); !iter_1_1.done; iter_1_1 = iter_1.next()) {
10
- var v = iter_1_1.value;
11
- return v;
12
- }
13
- }
14
- catch (e_1_1) {
15
- e_1 = { error: e_1_1 };
16
- }
17
- finally {
18
- try {
19
- if (iter_1_1 && !iter_1_1.done && (_a = iter_1.return))
20
- _a.call(iter_1);
21
- }
22
- finally {
23
- if (e_1)
24
- throw e_1.error;
25
- }
26
- }
27
- throw new Error("Iterable contained no elements, expected at least one");
28
- }
29
- var LinkedList = /** @class */ /*@__PURE__*/ (function () {
30
- function LinkedList() {
31
- }
32
- Object.defineProperty(LinkedList.prototype, "first", {
33
- get: function () {
34
- return this._first;
35
- },
36
- enumerable: false,
37
- configurable: true
38
- });
39
- Object.defineProperty(LinkedList.prototype, "last", {
40
- get: function () {
41
- return this._last;
42
- },
43
- enumerable: false,
44
- configurable: true
45
- });
46
- LinkedList.prototype.addFirst = function (item) {
47
- if (this._first == null) {
48
- this._first = new LinkedListNode(item);
49
- this._last = this._first;
50
- }
51
- else {
52
- var oldFirst = this._first;
53
- this._first = new LinkedListNode(item);
54
- this._first.next = oldFirst;
55
- oldFirst.prev = this._first;
56
- }
57
- };
58
- LinkedList.prototype.addLast = function (item) {
59
- if (this._last == null) {
60
- this._first = new LinkedListNode(item);
61
- this._last = this._first;
62
- }
63
- else {
64
- var oldLast = this._last;
65
- this._last = new LinkedListNode(item);
66
- this._last.prev = oldLast;
67
- oldLast.next = this._last;
68
- }
69
- };
70
- LinkedList.prototype.removeFirst = function () {
71
- this.remove(this.first);
72
- };
73
- LinkedList.prototype.clear = function () {
74
- this._first = null;
75
- this._last = null;
76
- };
77
- LinkedList.prototype.contains = function (value) {
78
- var curr = this.first;
79
- while (curr != null) {
80
- if (curr.value === value) {
81
- return true;
82
- }
83
- curr = curr.next;
84
- }
85
- return false;
86
- };
87
- LinkedList.prototype.removeValue = function (value) {
88
- var curr = this.first;
89
- while (curr != null) {
90
- if (curr.value === value) {
91
- this.remove(curr);
92
- return;
93
- }
94
- curr = curr.next;
95
- }
96
- };
97
- LinkedList.prototype.remove = function (node) {
98
- if (this._first == node) {
99
- this._first = node.next;
100
- if (node.next != null) {
101
- node.next.prev = null;
102
- }
103
- }
104
- if (this._last == node) {
105
- this._last = node.prev;
106
- if (node.prev != null) {
107
- node.prev.next = null;
108
- }
109
- }
110
- if (node.prev != null) {
111
- node.prev.next = node.next;
112
- }
113
- if (node.next != null) {
114
- node.next.prev = node.prev;
115
- }
116
- node.next = null;
117
- node.prev = null;
118
- };
119
- return LinkedList;
120
- }());
121
- export { LinkedList };
122
- var LinkedListNode = /** @class */ /*@__PURE__*/ (function () {
123
- function LinkedListNode(item) {
124
- if (item !== undefined) {
125
- this.value = item;
126
- }
127
- }
128
- Object.defineProperty(LinkedListNode.prototype, "value", {
129
- get: function () {
130
- return this._value;
131
- },
132
- set: function (value) {
133
- this._value = value;
134
- },
135
- enumerable: false,
136
- configurable: true
137
- });
138
- Object.defineProperty(LinkedListNode.prototype, "prev", {
139
- get: function () {
140
- return this._prev;
141
- },
142
- set: function (value) {
143
- this._prev = value;
144
- },
145
- enumerable: false,
146
- configurable: true
147
- });
148
- Object.defineProperty(LinkedListNode.prototype, "next", {
149
- get: function () {
150
- return this._next;
151
- },
152
- set: function (value) {
153
- this._next = value;
154
- },
155
- enumerable: false,
156
- configurable: true
157
- });
158
- return LinkedListNode;
159
- }());
160
- export { LinkedListNode };
@@ -1,18 +0,0 @@
1
- export * from './lib/Entity';
2
- export * from './lib/EntityProperty';
3
- export * from './lib/EntitySet';
4
- export * from './lib/ODataDataSourcePage';
5
- export * from './lib/ODataSchemaProvider';
6
- export * from './lib/ODataVirtualDataSource';
7
- export * from './lib/ODataVirtualDataSourceDataProvider';
8
- export * from './lib/ODataVirtualDataSourceDataProviderWorker';
9
- export * from './lib/ODataVirtualDataSourceDataProviderWorkerSettings';
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';
17
- export * from './lib/Schema';
18
- export * from './lib/util';