igniteui-webcomponents-datasources 7.1.1-beta.2 → 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 (41) hide show
  1. package/esm2022/lib/Entity.d.ts +14 -0
  2. package/esm2022/lib/Entity.js +65 -0
  3. package/esm2022/lib/EntityProperty.d.ts +12 -0
  4. package/esm2022/lib/EntityProperty.js +27 -0
  5. package/esm2022/lib/EntitySet.d.ts +15 -0
  6. package/esm2022/lib/EntitySet.js +50 -0
  7. package/esm2022/lib/ODataDataSourcePage.d.ts +19 -0
  8. package/esm2022/lib/ODataDataSourcePage.js +67 -0
  9. package/esm2022/lib/ODataSchemaProvider.d.ts +12 -0
  10. package/esm2022/lib/ODataSchemaProvider.js +120 -0
  11. package/esm2022/lib/ODataVirtualDataSource.d.ts +28 -0
  12. package/esm2022/lib/ODataVirtualDataSource.js +132 -0
  13. package/esm2022/lib/ODataVirtualDataSourceDataProvider.d.ts +120 -0
  14. package/esm2022/lib/ODataVirtualDataSourceDataProvider.js +450 -0
  15. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.d.ts +57 -0
  16. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.js +710 -0
  17. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.d.ts +42 -0
  18. package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +83 -0
  19. package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
  20. package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +6 -0
  21. package/esm2022/lib/RestVirtualDataSource.d.ts +86 -0
  22. package/esm2022/lib/RestVirtualDataSource.js +272 -0
  23. package/esm2022/lib/RestVirtualDataSourceDataProvider.d.ts +171 -0
  24. package/esm2022/lib/RestVirtualDataSourceDataProvider.js +535 -0
  25. package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.d.ts +70 -0
  26. package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.js +762 -0
  27. package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +93 -0
  28. package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +159 -0
  29. package/esm2022/lib/RestVirtualDataSourcePage.d.ts +19 -0
  30. package/esm2022/lib/RestVirtualDataSourcePage.js +67 -0
  31. package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
  32. package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.js +6 -0
  33. package/esm2022/lib/Schema.d.ts +15 -0
  34. package/esm2022/lib/Schema.js +54 -0
  35. package/esm2022/lib/util.d.ts +27 -0
  36. package/esm2022/lib/util.js +116 -0
  37. package/esm2022/public_api.d.ts +18 -0
  38. package/esm2022/public_api.js +18 -0
  39. package/package.json +7 -7
  40. package/fesm2022/igniteui-webcomponents-datasources.mjs +0 -3611
  41. package/igniteui-webcomponents-datasources.d.ts +0 -754
@@ -0,0 +1,93 @@
1
+ import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
2
+ import { SortDescriptionCollection } from "igniteui-webcomponents-core";
3
+ import { FilterExpressionCollection } from "igniteui-webcomponents-core";
4
+ import { Type } from "igniteui-webcomponents-core";
5
+ import { SummaryDescriptionCollection } from "igniteui-webcomponents-core";
6
+ import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
7
+ export declare class RestVirtualDataSourceDataProviderWorkerSettings extends AsyncVirtualDataSourceDataProviderWorkerSettings {
8
+ static $t: Type;
9
+ private _baseUri;
10
+ get baseUri(): string;
11
+ set baseUri(value: string);
12
+ private _entitySet;
13
+ get entitySet(): string;
14
+ set entitySet(value: string);
15
+ private _sortDescriptions;
16
+ get sortDescriptions(): SortDescriptionCollection;
17
+ set sortDescriptions(value: SortDescriptionCollection);
18
+ private _filterExpressions;
19
+ get filterExpressions(): FilterExpressionCollection;
20
+ set filterExpressions(value: FilterExpressionCollection);
21
+ private _propertiesRequested;
22
+ get propertiesRequested(): string[];
23
+ set propertiesRequested(value: string[]);
24
+ private _schemaIncludedProperties;
25
+ get schemaIncludedProperties(): string[];
26
+ set schemaIncludedProperties(value: string[]);
27
+ private _groupDescriptions;
28
+ get groupDescriptions(): SortDescriptionCollection;
29
+ set groupDescriptions(value: SortDescriptionCollection);
30
+ private _summaryDescriptions;
31
+ get summaryDescriptions(): SummaryDescriptionCollection;
32
+ set summaryDescriptions(value: SummaryDescriptionCollection);
33
+ private _summaryscope;
34
+ get summaryScope(): DataSourceSummaryScope;
35
+ set summaryScope(value: DataSourceSummaryScope);
36
+ private _enableJsonp;
37
+ get enableJsonp(): boolean;
38
+ set enableJsonp(isEnabled: boolean);
39
+ private _isAggregationSupported;
40
+ get isAggregationSupported(): boolean;
41
+ set isAggregationSupported(isSupported: boolean);
42
+ private _fixedFullCount;
43
+ get fixedFullCount(): number;
44
+ set fixedFullCount(value: number);
45
+ private _provideFullCount;
46
+ get provideFullCount(): (page: any) => number;
47
+ set provideFullCount(value: (page: any) => number);
48
+ private _provideOrderByParameter;
49
+ get provideOrderByParameter(): (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => any;
50
+ set provideOrderByParameter(value: (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => any);
51
+ private _provideFilterParameter;
52
+ get provideFilterParameter(): (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => any;
53
+ set provideFilterParameter(value: (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => any);
54
+ private _provideAggregationParameter;
55
+ get provideAggregationParameter(): (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => any;
56
+ set provideAggregationParameter(value: (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => any);
57
+ private _provideAggregatedCount;
58
+ get provideAggregatedCount(): (item: any) => number;
59
+ set provideAggregatedCount(value: (item: any) => number);
60
+ private _provideUri;
61
+ get provideUri(): (baseUri: string, entitySet: string, args: {
62
+ name: string;
63
+ value: any;
64
+ }[]) => string;
65
+ set provideUri(value: (baseUri: string, entitySet: string, args: {
66
+ name: string;
67
+ value: any;
68
+ }[]) => string);
69
+ private _providePagingParameter;
70
+ get providePagingParameter(): (args: any[], skip: number, take: number) => void;
71
+ set providePagingParameter(value: (args: any[], skip: number, take: number) => void);
72
+ private _provideDesiredPropertiesParameter;
73
+ get provideDesiredPropertiesParameter(): (args: any[], selectString: string, desiredProperties: string[]) => void;
74
+ set provideDesiredPropertiesParameter(value: (args: any[], selectString: string, desiredProperties: string[]) => void);
75
+ private _provideItems;
76
+ get provideItems(): (result: any) => any[];
77
+ set provideItems(value: (result: any) => any[]);
78
+ private _performFetch;
79
+ get performFetch(): (request: {
80
+ requestUri: string;
81
+ enableJsonpCallback: boolean;
82
+ method: 'GET';
83
+ headers: any;
84
+ data: null;
85
+ }, success: (data: any, response: any) => void, failure: (err: any) => void) => void;
86
+ set performFetch(value: (request: {
87
+ requestUri: string;
88
+ enableJsonpCallback: boolean;
89
+ method: 'GET';
90
+ headers: any;
91
+ data: null;
92
+ }, success: (data: any, response: any) => void, failure: (err: any) => void) => void);
93
+ }
@@ -0,0 +1,159 @@
1
+ import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
2
+ import { markType } from "igniteui-webcomponents-core";
3
+ class RestVirtualDataSourceDataProviderWorkerSettings extends AsyncVirtualDataSourceDataProviderWorkerSettings {
4
+ constructor() {
5
+ super(...arguments);
6
+ this._baseUri = null;
7
+ this._entitySet = null;
8
+ this._sortDescriptions = null;
9
+ this._filterExpressions = null;
10
+ this._propertiesRequested = null;
11
+ this._schemaIncludedProperties = null;
12
+ this._groupDescriptions = null;
13
+ this._summaryDescriptions = null;
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._providePagingParameter = null;
22
+ this._provideDesiredPropertiesParameter = null;
23
+ this._performFetch = null;
24
+ }
25
+ static { this.$t = markType(RestVirtualDataSourceDataProviderWorkerSettings, 'RestVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type); }
26
+ get baseUri() {
27
+ return this._baseUri;
28
+ }
29
+ set baseUri(value) {
30
+ this._baseUri = value;
31
+ }
32
+ get entitySet() {
33
+ return this._entitySet;
34
+ }
35
+ set entitySet(value) {
36
+ this._entitySet = value;
37
+ }
38
+ get sortDescriptions() {
39
+ return this._sortDescriptions;
40
+ }
41
+ set sortDescriptions(value) {
42
+ this._sortDescriptions = value;
43
+ }
44
+ get filterExpressions() {
45
+ return this._filterExpressions;
46
+ }
47
+ set filterExpressions(value) {
48
+ this._filterExpressions = value;
49
+ }
50
+ get propertiesRequested() {
51
+ return this._propertiesRequested;
52
+ }
53
+ set propertiesRequested(value) {
54
+ this._propertiesRequested = value;
55
+ }
56
+ get schemaIncludedProperties() {
57
+ return this._schemaIncludedProperties;
58
+ }
59
+ set schemaIncludedProperties(value) {
60
+ this._schemaIncludedProperties = value;
61
+ }
62
+ get groupDescriptions() {
63
+ return this._groupDescriptions;
64
+ }
65
+ set groupDescriptions(value) {
66
+ this._groupDescriptions = value;
67
+ }
68
+ get summaryDescriptions() {
69
+ return this._summaryDescriptions;
70
+ }
71
+ set summaryDescriptions(value) {
72
+ this._summaryDescriptions = value;
73
+ }
74
+ get summaryScope() {
75
+ return this._summaryscope;
76
+ }
77
+ set summaryScope(value) {
78
+ this._summaryscope = value;
79
+ }
80
+ get enableJsonp() {
81
+ return this._enableJsonp;
82
+ }
83
+ set enableJsonp(isEnabled) {
84
+ this._enableJsonp = isEnabled;
85
+ }
86
+ get isAggregationSupported() {
87
+ return this._isAggregationSupported;
88
+ }
89
+ set isAggregationSupported(isSupported) {
90
+ this._isAggregationSupported = isSupported;
91
+ }
92
+ get fixedFullCount() {
93
+ return this._fixedFullCount;
94
+ }
95
+ set fixedFullCount(value) {
96
+ this._fixedFullCount = value;
97
+ }
98
+ get provideFullCount() {
99
+ return this._provideFullCount;
100
+ }
101
+ set provideFullCount(value) {
102
+ this._provideFullCount = value;
103
+ }
104
+ get provideOrderByParameter() {
105
+ return this._provideOrderByParameter;
106
+ }
107
+ set provideOrderByParameter(value) {
108
+ this._provideOrderByParameter = value;
109
+ }
110
+ get provideFilterParameter() {
111
+ return this._provideFilterParameter;
112
+ }
113
+ set provideFilterParameter(value) {
114
+ this._provideFilterParameter = value;
115
+ }
116
+ get provideAggregationParameter() {
117
+ return this._provideAggregationParameter;
118
+ }
119
+ set provideAggregationParameter(value) {
120
+ this._provideAggregationParameter = value;
121
+ }
122
+ get provideAggregatedCount() {
123
+ return this._provideAggregatedCount;
124
+ }
125
+ set provideAggregatedCount(value) {
126
+ this._provideAggregatedCount = value;
127
+ }
128
+ get provideUri() {
129
+ return this._provideUri;
130
+ }
131
+ set provideUri(value) {
132
+ this._provideUri = value;
133
+ }
134
+ get providePagingParameter() {
135
+ return this._providePagingParameter;
136
+ }
137
+ set providePagingParameter(value) {
138
+ this._providePagingParameter = value;
139
+ }
140
+ get provideDesiredPropertiesParameter() {
141
+ return this._provideDesiredPropertiesParameter;
142
+ }
143
+ set provideDesiredPropertiesParameter(value) {
144
+ this._provideDesiredPropertiesParameter = value;
145
+ }
146
+ get provideItems() {
147
+ return this._provideItems;
148
+ }
149
+ set provideItems(value) {
150
+ this._provideItems = value;
151
+ }
152
+ get performFetch() {
153
+ return this._performFetch;
154
+ }
155
+ set performFetch(value) {
156
+ this._performFetch = value;
157
+ }
158
+ }
159
+ export { RestVirtualDataSourceDataProviderWorkerSettings };
@@ -0,0 +1,19 @@
1
+ import { IDataSourcePage } from "igniteui-webcomponents-core";
2
+ import { IDataSourceSchema } from "igniteui-webcomponents-core";
3
+ import { ISectionInformation } from "igniteui-webcomponents-core";
4
+ import { ISummaryResult } from "igniteui-webcomponents-core";
5
+ export declare class RestVirtualDataSourcePage implements IDataSourcePage {
6
+ private _actualData;
7
+ private _schema;
8
+ private _pageIndex;
9
+ private _groupInformation;
10
+ private _summaryInformation;
11
+ constructor(sourceData_: any, schema: IDataSourceSchema, groupInformation: ISectionInformation[], summaryInformation: ISummaryResult[], pageIndex: number);
12
+ count(): number;
13
+ getItemAtIndex(index: number): any;
14
+ getItemValueAtIndex(index: number, valueName: string): any;
15
+ pageIndex(): number;
16
+ schema(): IDataSourceSchema;
17
+ getGroupInformation(): ISectionInformation[];
18
+ getSummaryInformation(): ISummaryResult[];
19
+ }
@@ -0,0 +1,67 @@
1
+ import { DataSourceSchemaPropertyType } from "igniteui-webcomponents-core";
2
+ export class RestVirtualDataSourcePage {
3
+ constructor(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
+ let count = (sourceData_.items.length);
14
+ this._actualData = [];
15
+ let dateProps = new Set();
16
+ for (let 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
+ let value_;
22
+ for (let i_ = 0; i_ < count; i_++) {
23
+ let currItem_ = sourceData_.items[i_];
24
+ let dict = new Map();
25
+ let properties = Array.from(Object.keys(currItem_));
26
+ let values = (properties.map((k) => currItem_[k]));
27
+ for (let 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._actualData[i_] = dict;
35
+ }
36
+ }
37
+ this._schema = schema;
38
+ this._groupInformation = groupInformation;
39
+ this._summaryInformation = summaryInformation;
40
+ this._pageIndex = pageIndex;
41
+ }
42
+ count() {
43
+ return this._actualData.length;
44
+ }
45
+ getItemAtIndex(index) {
46
+ return this._actualData[index];
47
+ }
48
+ getItemValueAtIndex(index, valueName) {
49
+ let item = this._actualData[index];
50
+ if (!item.has(valueName)) {
51
+ return null;
52
+ }
53
+ return item.get(valueName);
54
+ }
55
+ pageIndex() {
56
+ return this._pageIndex;
57
+ }
58
+ schema() {
59
+ return this._schema;
60
+ }
61
+ getGroupInformation() {
62
+ return this._groupInformation;
63
+ }
64
+ getSummaryInformation() {
65
+ return this._summaryInformation;
66
+ }
67
+ }
@@ -0,0 +1,5 @@
1
+ import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
2
+ import { Type } from "igniteui-webcomponents-core";
3
+ export declare class RestVirtualDataSourceProviderTaskDataHolder extends AsyncVirtualDataSourceProviderTaskDataHolder {
4
+ static $t: Type;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
2
+ import { markType } from "igniteui-webcomponents-core";
3
+ class RestVirtualDataSourceProviderTaskDataHolder extends AsyncVirtualDataSourceProviderTaskDataHolder {
4
+ static { this.$t = markType(RestVirtualDataSourceProviderTaskDataHolder, 'ODataVirtualDataSourceProviderTaskDataHolder', AsyncVirtualDataSourceProviderTaskDataHolder.$type); }
5
+ }
6
+ export { RestVirtualDataSourceProviderTaskDataHolder };
@@ -0,0 +1,15 @@
1
+ import { Entity } from "./Entity";
2
+ import { EntitySet } from "./EntitySet";
3
+ import { XElement } from "igniteui-webcomponents-core";
4
+ export declare class Schema {
5
+ private _entities;
6
+ private _entitySets;
7
+ constructor(namespace: string, entityTypeElements: XElement[], entitySetElements: XElement[]);
8
+ get entities(): Map<string, Entity>;
9
+ get entitySets(): Map<string, EntitySet>;
10
+ private _namespace;
11
+ get namespace(): string;
12
+ set namespace(value: string);
13
+ private loadEntities;
14
+ private loadEntitySets;
15
+ }
@@ -0,0 +1,54 @@
1
+ import { Entity } from "./Entity";
2
+ import { EntitySet } from "./EntitySet";
3
+ import { XName } from "igniteui-webcomponents-core";
4
+ export class Schema {
5
+ constructor(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
+ get entities() {
14
+ if (null == this._entities) {
15
+ this._entities = new Map();
16
+ }
17
+ return this._entities;
18
+ }
19
+ get entitySets() {
20
+ if (null == this._entitySets) {
21
+ this._entitySets = new Map();
22
+ }
23
+ return this._entitySets;
24
+ }
25
+ get namespace() {
26
+ return this._namespace;
27
+ }
28
+ set namespace(value) {
29
+ this._namespace = value;
30
+ }
31
+ loadEntities(entityTypeElements) {
32
+ let list = entityTypeElements;
33
+ let elementCount = list.length;
34
+ let name = XName.get("Name", "");
35
+ for (let i = 0; i < elementCount; i++) {
36
+ let node = list[i];
37
+ let entity = new Entity(node.attribute(name).value, node);
38
+ this.entities.set(entity.name, entity);
39
+ }
40
+ ;
41
+ }
42
+ loadEntitySets(entitySetElements) {
43
+ let list = entitySetElements;
44
+ let elementCount = list.length;
45
+ let nameAttr = XName.get("Name", "");
46
+ let entityType = XName.get("EntityType", "");
47
+ for (let i = 0; i < elementCount; i++) {
48
+ let node = list[i];
49
+ let entitySet = new EntitySet(node.attribute(nameAttr).value, node.attribute(entityType).value);
50
+ this.entitySets.set(entitySet.name, entitySet);
51
+ }
52
+ ;
53
+ }
54
+ }
@@ -0,0 +1,27 @@
1
+ export declare function toArray<T>(en: any): T[];
2
+ export declare function first<T>(iter: Iterable<T>): T;
3
+ export declare class LinkedList<T> {
4
+ private _first;
5
+ get first(): LinkedListNode<T>;
6
+ private _last;
7
+ get last(): LinkedListNode<T>;
8
+ addFirst(item: T): void;
9
+ addLast(item: T): void;
10
+ removeFirst(): void;
11
+ clear(): void;
12
+ contains(value: T): boolean;
13
+ removeValue(value: T): void;
14
+ remove(node: LinkedListNode<T>): void;
15
+ }
16
+ export declare class LinkedListNode<T> {
17
+ private _value;
18
+ get value(): T;
19
+ set value(value: T);
20
+ private _prev;
21
+ get prev(): LinkedListNode<T>;
22
+ set prev(value: LinkedListNode<T>);
23
+ private _next;
24
+ get next(): LinkedListNode<T>;
25
+ set next(value: LinkedListNode<T>);
26
+ constructor(item?: T);
27
+ }
@@ -0,0 +1,116 @@
1
+ import { fromEnum } from "igniteui-webcomponents-core";
2
+ export function toArray(en) {
3
+ return Array.from(fromEnum(en));
4
+ }
5
+ export function first(iter) {
6
+ for (let v of iter) {
7
+ return v;
8
+ }
9
+ throw new Error("Iterable contained no elements, expected at least one");
10
+ }
11
+ export class LinkedList {
12
+ get first() {
13
+ return this._first;
14
+ }
15
+ get last() {
16
+ return this._last;
17
+ }
18
+ addFirst(item) {
19
+ if (this._first == null) {
20
+ this._first = new LinkedListNode(item);
21
+ this._last = this._first;
22
+ }
23
+ else {
24
+ var oldFirst = this._first;
25
+ this._first = new LinkedListNode(item);
26
+ this._first.next = oldFirst;
27
+ oldFirst.prev = this._first;
28
+ }
29
+ }
30
+ addLast(item) {
31
+ if (this._last == null) {
32
+ this._first = new LinkedListNode(item);
33
+ this._last = this._first;
34
+ }
35
+ else {
36
+ var oldLast = this._last;
37
+ this._last = new LinkedListNode(item);
38
+ this._last.prev = oldLast;
39
+ oldLast.next = this._last;
40
+ }
41
+ }
42
+ removeFirst() {
43
+ this.remove(this.first);
44
+ }
45
+ clear() {
46
+ this._first = null;
47
+ this._last = null;
48
+ }
49
+ contains(value) {
50
+ let curr = this.first;
51
+ while (curr != null) {
52
+ if (curr.value === value) {
53
+ return true;
54
+ }
55
+ curr = curr.next;
56
+ }
57
+ return false;
58
+ }
59
+ removeValue(value) {
60
+ let curr = this.first;
61
+ while (curr != null) {
62
+ if (curr.value === value) {
63
+ this.remove(curr);
64
+ return;
65
+ }
66
+ curr = curr.next;
67
+ }
68
+ }
69
+ remove(node) {
70
+ if (this._first == node) {
71
+ this._first = node.next;
72
+ if (node.next != null) {
73
+ node.next.prev = null;
74
+ }
75
+ }
76
+ if (this._last == node) {
77
+ this._last = node.prev;
78
+ if (node.prev != null) {
79
+ node.prev.next = null;
80
+ }
81
+ }
82
+ if (node.prev != null) {
83
+ node.prev.next = node.next;
84
+ }
85
+ if (node.next != null) {
86
+ node.next.prev = node.prev;
87
+ }
88
+ node.next = null;
89
+ node.prev = null;
90
+ }
91
+ }
92
+ export class LinkedListNode {
93
+ get value() {
94
+ return this._value;
95
+ }
96
+ set value(value) {
97
+ this._value = value;
98
+ }
99
+ get prev() {
100
+ return this._prev;
101
+ }
102
+ set prev(value) {
103
+ this._prev = value;
104
+ }
105
+ get next() {
106
+ return this._next;
107
+ }
108
+ set next(value) {
109
+ this._next = value;
110
+ }
111
+ constructor(item) {
112
+ if (item !== undefined) {
113
+ this.value = item;
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,18 @@
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';
@@ -0,0 +1,18 @@
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-webcomponents-datasources",
3
- "version": "7.1.1-beta.2",
3
+ "version": "7.1.1-beta.3",
4
4
  "description": "Reference custom data providers for the Ignite UI Web Components data source.",
5
5
  "homepage": "https://github.com/IgniteUI/igniteui-webcomponents-datasources",
6
6
  "keywords": [
@@ -18,19 +18,19 @@
18
18
  "tslib": "^2.3.1"
19
19
  },
20
20
  "peerDependencies": {
21
- "igniteui-webcomponents-core": "7.1.1-beta.2"
21
+ "igniteui-webcomponents-core": "7.1.1-beta.3"
22
22
  },
23
- "type": "module",
24
23
  "sideEffects": false,
25
- "module": "fesm2022/igniteui-webcomponents-datasources.mjs",
26
- "typings": "igniteui-webcomponents-datasources.d.ts",
24
+ "main": "esm2022/public_api.js",
25
+ "module": "esm2022/public_api.js",
26
+ "typings": "esm2022/public_api.d.ts",
27
27
  "exports": {
28
28
  "./package.json": {
29
29
  "default": "./package.json"
30
30
  },
31
31
  ".": {
32
- "types": "./igniteui-webcomponents-datasources.d.ts",
33
- "default": "./fesm2022/igniteui-webcomponents-datasources.mjs"
32
+ "types": "./esm2022/public_api.d.ts",
33
+ "default": "./esm2022/public_api.js"
34
34
  }
35
35
  },
36
36
  "maintainers": [