igniteui-webcomponents-datasources 7.1.1-beta.2 → 7.1.1-beta.4
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/Entity.d.ts +14 -0
- package/esm2022/lib/Entity.js +65 -0
- package/esm2022/lib/EntityProperty.d.ts +12 -0
- package/esm2022/lib/EntityProperty.js +27 -0
- package/esm2022/lib/EntitySet.d.ts +15 -0
- package/esm2022/lib/EntitySet.js +50 -0
- package/esm2022/lib/ODataDataSourcePage.d.ts +19 -0
- package/esm2022/lib/ODataDataSourcePage.js +67 -0
- package/esm2022/lib/ODataSchemaProvider.d.ts +12 -0
- package/esm2022/lib/ODataSchemaProvider.js +120 -0
- package/esm2022/lib/ODataVirtualDataSource.d.ts +28 -0
- package/esm2022/lib/ODataVirtualDataSource.js +132 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProvider.d.ts +120 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProvider.js +450 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.d.ts +57 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorker.js +710 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.d.ts +42 -0
- package/esm2022/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +83 -0
- package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
- package/esm2022/lib/ODataVirtualDataSourceProviderTaskDataHolder.js +6 -0
- package/esm2022/lib/RestVirtualDataSource.d.ts +86 -0
- package/esm2022/lib/RestVirtualDataSource.js +272 -0
- package/esm2022/lib/RestVirtualDataSourceDataProvider.d.ts +171 -0
- package/esm2022/lib/RestVirtualDataSourceDataProvider.js +535 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.d.ts +70 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorker.js +762 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +93 -0
- package/esm2022/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +159 -0
- package/esm2022/lib/RestVirtualDataSourcePage.d.ts +19 -0
- package/esm2022/lib/RestVirtualDataSourcePage.js +67 -0
- package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.d.ts +5 -0
- package/esm2022/lib/RestVirtualDataSourceProviderTaskDataHolder.js +6 -0
- package/esm2022/lib/Schema.d.ts +15 -0
- package/esm2022/lib/Schema.js +54 -0
- package/esm2022/lib/util.d.ts +27 -0
- package/esm2022/lib/util.js +116 -0
- package/esm2022/public_api.d.ts +18 -0
- package/esm2022/public_api.js +18 -0
- package/package.json +7 -7
- package/fesm2022/igniteui-webcomponents-datasources.mjs +0 -3611
- package/igniteui-webcomponents-datasources.d.ts +0 -754
|
@@ -0,0 +1,42 @@
|
|
|
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 ODataVirtualDataSourceDataProviderWorkerSettings 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
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AsyncVirtualDataSourceDataProviderWorkerSettings } from "igniteui-webcomponents-core";
|
|
2
|
+
import { markType } from "igniteui-webcomponents-core";
|
|
3
|
+
class ODataVirtualDataSourceDataProviderWorkerSettings 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
|
+
}
|
|
15
|
+
static { this.$t = markType(ODataVirtualDataSourceDataProviderWorkerSettings, 'ODataVirtualDataSourceDataProviderWorkerSettings', AsyncVirtualDataSourceDataProviderWorkerSettings.$type); }
|
|
16
|
+
get baseUri() {
|
|
17
|
+
return this._baseUri;
|
|
18
|
+
}
|
|
19
|
+
set baseUri(value) {
|
|
20
|
+
this._baseUri = value;
|
|
21
|
+
}
|
|
22
|
+
get entitySet() {
|
|
23
|
+
return this._entitySet;
|
|
24
|
+
}
|
|
25
|
+
set entitySet(value) {
|
|
26
|
+
this._entitySet = value;
|
|
27
|
+
}
|
|
28
|
+
get sortDescriptions() {
|
|
29
|
+
return this._sortDescriptions;
|
|
30
|
+
}
|
|
31
|
+
set sortDescriptions(value) {
|
|
32
|
+
this._sortDescriptions = value;
|
|
33
|
+
}
|
|
34
|
+
get filterExpressions() {
|
|
35
|
+
return this._filterExpressions;
|
|
36
|
+
}
|
|
37
|
+
set filterExpressions(value) {
|
|
38
|
+
this._filterExpressions = value;
|
|
39
|
+
}
|
|
40
|
+
get propertiesRequested() {
|
|
41
|
+
return this._propertiesRequested;
|
|
42
|
+
}
|
|
43
|
+
set propertiesRequested(value) {
|
|
44
|
+
this._propertiesRequested = value;
|
|
45
|
+
}
|
|
46
|
+
get schemaIncludedProperties() {
|
|
47
|
+
return this._schemaIncludedProperties;
|
|
48
|
+
}
|
|
49
|
+
set schemaIncludedProperties(value) {
|
|
50
|
+
this._schemaIncludedProperties = value;
|
|
51
|
+
}
|
|
52
|
+
get groupDescriptions() {
|
|
53
|
+
return this._groupDescriptions;
|
|
54
|
+
}
|
|
55
|
+
set groupDescriptions(value) {
|
|
56
|
+
this._groupDescriptions = value;
|
|
57
|
+
}
|
|
58
|
+
get summaryDescriptions() {
|
|
59
|
+
return this._summaryDescriptions;
|
|
60
|
+
}
|
|
61
|
+
set summaryDescriptions(value) {
|
|
62
|
+
this._summaryDescriptions = value;
|
|
63
|
+
}
|
|
64
|
+
get summaryScope() {
|
|
65
|
+
return this._summaryscope;
|
|
66
|
+
}
|
|
67
|
+
set summaryScope(value) {
|
|
68
|
+
this._summaryscope = value;
|
|
69
|
+
}
|
|
70
|
+
get enableJsonp() {
|
|
71
|
+
return this._enableJsonp;
|
|
72
|
+
}
|
|
73
|
+
set enableJsonp(isEnabled) {
|
|
74
|
+
this._enableJsonp = isEnabled;
|
|
75
|
+
}
|
|
76
|
+
get isAggregationSupported() {
|
|
77
|
+
return this._isAggregationSupported;
|
|
78
|
+
}
|
|
79
|
+
set isAggregationSupported(isSupported) {
|
|
80
|
+
this._isAggregationSupported = isSupported;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export { ODataVirtualDataSourceDataProviderWorkerSettings };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AsyncVirtualDataSourceProviderTaskDataHolder } from "igniteui-webcomponents-core";
|
|
2
|
+
import { Type } from "igniteui-webcomponents-core";
|
|
3
|
+
export declare class ODataVirtualDataSourceProviderTaskDataHolder 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 ODataVirtualDataSourceProviderTaskDataHolder extends AsyncVirtualDataSourceProviderTaskDataHolder {
|
|
4
|
+
static { this.$t = markType(ODataVirtualDataSourceProviderTaskDataHolder, 'ODataVirtualDataSourceProviderTaskDataHolder', AsyncVirtualDataSourceProviderTaskDataHolder.$type); }
|
|
5
|
+
}
|
|
6
|
+
export { ODataVirtualDataSourceProviderTaskDataHolder };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { FilterExpressionCollection } from "igniteui-webcomponents-core";
|
|
2
|
+
import { SortDescriptionCollection } from "igniteui-webcomponents-core";
|
|
3
|
+
import { SummaryDescriptionCollection } from "igniteui-webcomponents-core";
|
|
4
|
+
import { VirtualDataSource } from "igniteui-webcomponents-core";
|
|
5
|
+
import { IDataSource } from "igniteui-webcomponents-core";
|
|
6
|
+
import { IExternalDataSource } from "igniteui-webcomponents-core";
|
|
7
|
+
export declare class RestVirtualDataSource extends VirtualDataSource implements IExternalDataSource {
|
|
8
|
+
constructor();
|
|
9
|
+
private onBaseUriChanged;
|
|
10
|
+
private _baseUri;
|
|
11
|
+
get baseUri(): string;
|
|
12
|
+
set baseUri(value: string);
|
|
13
|
+
private onEntitySetChanged;
|
|
14
|
+
private _isFilteringSupportedByServer;
|
|
15
|
+
set isFilteringSupportedByServer(v: boolean);
|
|
16
|
+
get isFilteringSupportedByServer(): boolean;
|
|
17
|
+
protected get_isFilteringSupported(): boolean;
|
|
18
|
+
private _entitySet;
|
|
19
|
+
get entitySet(): string;
|
|
20
|
+
set entitySet(value: string);
|
|
21
|
+
private onTimeoutMillisecondsChanged;
|
|
22
|
+
private _timeoutMilliseconds;
|
|
23
|
+
get timeoutMilliseconds(): number;
|
|
24
|
+
set timeoutMilliseconds(value: number);
|
|
25
|
+
get isSortingSupportedOverride(): boolean;
|
|
26
|
+
get isFilteringSupportedOverride(): boolean;
|
|
27
|
+
get isGroupingSupportedOverride(): boolean;
|
|
28
|
+
private _isAggregationSupportedByServer;
|
|
29
|
+
get isAggregationSupportedByServer(): boolean;
|
|
30
|
+
set isAggregationSupportedByServer(isSupported: boolean);
|
|
31
|
+
private _enableJsonp;
|
|
32
|
+
get enableJsonp(): boolean;
|
|
33
|
+
set enableJsonp(isEnabled: boolean);
|
|
34
|
+
private _fixedFullCount;
|
|
35
|
+
get fixedFullCount(): number;
|
|
36
|
+
set fixedFullCount(value: number);
|
|
37
|
+
private _provideFullCount;
|
|
38
|
+
get provideFullCount(): (page: any) => number;
|
|
39
|
+
set provideFullCount(value: (page: any) => number);
|
|
40
|
+
private _provideOrderByParameter;
|
|
41
|
+
get provideOrderByParameter(): (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => void;
|
|
42
|
+
set provideOrderByParameter(value: (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => void);
|
|
43
|
+
private _provideFilterParameter;
|
|
44
|
+
get provideFilterParameter(): (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => void;
|
|
45
|
+
set provideFilterParameter(value: (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => void);
|
|
46
|
+
private _provideAggregationParameter;
|
|
47
|
+
get provideAggregationParameter(): (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => void;
|
|
48
|
+
set provideAggregationParameter(value: (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => void);
|
|
49
|
+
private _provideAggregatedCount;
|
|
50
|
+
get provideAggregatedCount(): (item: any) => number;
|
|
51
|
+
set provideAggregatedCount(value: (item: any) => number);
|
|
52
|
+
private _provideUri;
|
|
53
|
+
get provideUri(): (baseUri: string, entitySet: string, args: {
|
|
54
|
+
name: string;
|
|
55
|
+
value: any;
|
|
56
|
+
}[]) => string;
|
|
57
|
+
set provideUri(value: (baseUri: string, entitySet: string, args: {
|
|
58
|
+
name: string;
|
|
59
|
+
value: any;
|
|
60
|
+
}[]) => string);
|
|
61
|
+
private _performFetch;
|
|
62
|
+
get performFetch(): (request: {
|
|
63
|
+
requestUri: string;
|
|
64
|
+
enableJsonpCallback: boolean;
|
|
65
|
+
method: 'GET';
|
|
66
|
+
headers: any;
|
|
67
|
+
data: null;
|
|
68
|
+
}, success: (data: any, response: any) => void, failure: (err: any) => void) => void;
|
|
69
|
+
set performFetch(value: (request: {
|
|
70
|
+
requestUri: string;
|
|
71
|
+
enableJsonpCallback: boolean;
|
|
72
|
+
method: 'GET';
|
|
73
|
+
headers: any;
|
|
74
|
+
data: null;
|
|
75
|
+
}, success: (data: any, response: any) => void, failure: (err: any) => void) => void);
|
|
76
|
+
private _providePagingParameter;
|
|
77
|
+
get providePagingParameter(): (args: any[], skip: number, take: number) => void;
|
|
78
|
+
set providePagingParameter(value: (args: any[], skip: number, take: number) => void);
|
|
79
|
+
private _provideDesiredPropertiesParameter;
|
|
80
|
+
get provideDesiredPropertiesParameter(): (args: any[], selectString: string, desiredProperties: string[]) => void;
|
|
81
|
+
set provideDesiredPropertiesParameter(value: (args: any[], selectString: string, desiredProperties: string[]) => void);
|
|
82
|
+
private _provideItems;
|
|
83
|
+
get provideItems(): (result: any) => any[];
|
|
84
|
+
set provideItems(value: (result: any) => any[]);
|
|
85
|
+
clone(): IDataSource;
|
|
86
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { VirtualDataSource } from "igniteui-webcomponents-core";
|
|
2
|
+
import { RestVirtualDataSourceDataProvider } from "./RestVirtualDataSourceDataProvider";
|
|
3
|
+
export class RestVirtualDataSource extends VirtualDataSource {
|
|
4
|
+
constructor() {
|
|
5
|
+
super();
|
|
6
|
+
this._baseUri = null;
|
|
7
|
+
this._isFilteringSupportedByServer = false;
|
|
8
|
+
this._entitySet = null;
|
|
9
|
+
this._timeoutMilliseconds = 10000;
|
|
10
|
+
this._isAggregationSupportedByServer = false;
|
|
11
|
+
this._enableJsonp = true;
|
|
12
|
+
this._fixedFullCount = -1;
|
|
13
|
+
this._provideFullCount = null;
|
|
14
|
+
this._provideOrderByParameter = null;
|
|
15
|
+
this._provideFilterParameter = null;
|
|
16
|
+
this._provideAggregationParameter = null;
|
|
17
|
+
this._provideAggregatedCount = null;
|
|
18
|
+
this._provideUri = null;
|
|
19
|
+
this._performFetch = null;
|
|
20
|
+
this._providePagingParameter = null;
|
|
21
|
+
this._provideDesiredPropertiesParameter = null;
|
|
22
|
+
this.dataProvider = ((() => {
|
|
23
|
+
let $ret = new RestVirtualDataSourceDataProvider();
|
|
24
|
+
$ret.executionContext = this.executionContext;
|
|
25
|
+
$ret.enableJsonp = this.enableJsonp;
|
|
26
|
+
$ret.isAggregationSupported = this.isGroupingSupported;
|
|
27
|
+
return $ret;
|
|
28
|
+
})());
|
|
29
|
+
this.externalDataSource = this;
|
|
30
|
+
}
|
|
31
|
+
onBaseUriChanged(oldValue, newValue) {
|
|
32
|
+
if (this.actualDataProvider) {
|
|
33
|
+
this.actualDataProvider.baseUri = this.baseUri;
|
|
34
|
+
this.queueAutoRefresh();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
get baseUri() {
|
|
38
|
+
return this._baseUri;
|
|
39
|
+
}
|
|
40
|
+
set baseUri(value) {
|
|
41
|
+
let oldValue = this._baseUri;
|
|
42
|
+
this._baseUri = value;
|
|
43
|
+
if (oldValue != this._baseUri) {
|
|
44
|
+
this.onBaseUriChanged(oldValue, this._baseUri);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
onEntitySetChanged(oldValue, newValue) {
|
|
48
|
+
if (this.actualDataProvider) {
|
|
49
|
+
this.actualDataProvider.entitySet = this.entitySet;
|
|
50
|
+
this.queueAutoRefresh();
|
|
51
|
+
}
|
|
52
|
+
this.queueAutoRefresh();
|
|
53
|
+
}
|
|
54
|
+
set isFilteringSupportedByServer(v) {
|
|
55
|
+
this._isFilteringSupportedByServer = v;
|
|
56
|
+
}
|
|
57
|
+
get isFilteringSupportedByServer() {
|
|
58
|
+
return this._isFilteringSupportedByServer;
|
|
59
|
+
}
|
|
60
|
+
get_isFilteringSupported() {
|
|
61
|
+
if (this._isFilteringSupportedByServer) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
get entitySet() {
|
|
67
|
+
return this._entitySet;
|
|
68
|
+
}
|
|
69
|
+
set entitySet(value) {
|
|
70
|
+
let oldValue = this._entitySet;
|
|
71
|
+
this._entitySet = value;
|
|
72
|
+
if (this._entitySet != oldValue) {
|
|
73
|
+
this.onEntitySetChanged(oldValue, this._entitySet);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
onTimeoutMillisecondsChanged(oldValue, newValue) {
|
|
77
|
+
if (this.actualDataProvider) {
|
|
78
|
+
this.actualDataProvider.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
get timeoutMilliseconds() {
|
|
82
|
+
return this._timeoutMilliseconds;
|
|
83
|
+
}
|
|
84
|
+
set timeoutMilliseconds(value) {
|
|
85
|
+
let oldValue = this._timeoutMilliseconds;
|
|
86
|
+
this._timeoutMilliseconds = value;
|
|
87
|
+
if (oldValue != this._timeoutMilliseconds) {
|
|
88
|
+
this.onTimeoutMillisecondsChanged(oldValue, this._timeoutMilliseconds);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
get isSortingSupportedOverride() {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
get isFilteringSupportedOverride() {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
get isGroupingSupportedOverride() {
|
|
98
|
+
return this.isAggregationSupportedByServer;
|
|
99
|
+
}
|
|
100
|
+
get isAggregationSupportedByServer() {
|
|
101
|
+
return this._isAggregationSupportedByServer;
|
|
102
|
+
}
|
|
103
|
+
set isAggregationSupportedByServer(isSupported) {
|
|
104
|
+
this._isAggregationSupportedByServer = isSupported;
|
|
105
|
+
if (this.actualDataProvider) {
|
|
106
|
+
this.actualDataProvider.isAggregationSupported = this.isAggregationSupportedByServer;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
get enableJsonp() {
|
|
110
|
+
return this._enableJsonp;
|
|
111
|
+
}
|
|
112
|
+
set enableJsonp(isEnabled) {
|
|
113
|
+
this._enableJsonp = isEnabled;
|
|
114
|
+
if (this.actualDataProvider) {
|
|
115
|
+
this.actualDataProvider.enableJsonp = this.enableJsonp;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
get fixedFullCount() {
|
|
119
|
+
return this._fixedFullCount;
|
|
120
|
+
}
|
|
121
|
+
set fixedFullCount(value) {
|
|
122
|
+
this._fixedFullCount = value;
|
|
123
|
+
}
|
|
124
|
+
get provideFullCount() {
|
|
125
|
+
return this._provideFullCount;
|
|
126
|
+
}
|
|
127
|
+
set provideFullCount(value) {
|
|
128
|
+
this._provideFullCount = value;
|
|
129
|
+
if (this.actualDataProvider) {
|
|
130
|
+
this.actualDataProvider.provideFullCount = this.provideFullCount;
|
|
131
|
+
this.queueAutoRefresh();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
get provideOrderByParameter() {
|
|
135
|
+
return this._provideOrderByParameter;
|
|
136
|
+
}
|
|
137
|
+
set provideOrderByParameter(value) {
|
|
138
|
+
this._provideOrderByParameter = value;
|
|
139
|
+
if (this.actualDataProvider) {
|
|
140
|
+
this.actualDataProvider.provideOrderByParameter = this.provideOrderByParameter;
|
|
141
|
+
this.queueAutoRefresh();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
get provideFilterParameter() {
|
|
145
|
+
return this._provideFilterParameter;
|
|
146
|
+
}
|
|
147
|
+
set provideFilterParameter(value) {
|
|
148
|
+
this._provideFilterParameter = value;
|
|
149
|
+
if (this.actualDataProvider) {
|
|
150
|
+
this.actualDataProvider.provideFilterParameter = this.provideFilterParameter;
|
|
151
|
+
this.queueAutoRefresh();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
get provideAggregationParameter() {
|
|
155
|
+
return this._provideAggregationParameter;
|
|
156
|
+
}
|
|
157
|
+
set provideAggregationParameter(value) {
|
|
158
|
+
this._provideAggregationParameter = value;
|
|
159
|
+
if (this.actualDataProvider) {
|
|
160
|
+
this.actualDataProvider.provideAggregationParameter = this.provideAggregationParameter;
|
|
161
|
+
this.queueAutoRefresh();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
get provideAggregatedCount() {
|
|
165
|
+
return this._provideAggregatedCount;
|
|
166
|
+
}
|
|
167
|
+
set provideAggregatedCount(value) {
|
|
168
|
+
this._provideAggregatedCount = value;
|
|
169
|
+
if (this.actualDataProvider) {
|
|
170
|
+
this.actualDataProvider.provideAggregatedCount = this.provideAggregatedCount;
|
|
171
|
+
this.queueAutoRefresh();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
get provideUri() {
|
|
175
|
+
return this._provideUri;
|
|
176
|
+
}
|
|
177
|
+
set provideUri(value) {
|
|
178
|
+
this._provideUri = value;
|
|
179
|
+
if (this.actualDataProvider) {
|
|
180
|
+
this.actualDataProvider.provideUri = this.provideUri;
|
|
181
|
+
this.queueAutoRefresh();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
get performFetch() {
|
|
185
|
+
return this._performFetch;
|
|
186
|
+
}
|
|
187
|
+
set performFetch(value) {
|
|
188
|
+
this._performFetch = value;
|
|
189
|
+
if (this.actualDataProvider) {
|
|
190
|
+
this.actualDataProvider.performFetch = this.performFetch;
|
|
191
|
+
this.queueAutoRefresh();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
get providePagingParameter() {
|
|
195
|
+
return this._providePagingParameter;
|
|
196
|
+
}
|
|
197
|
+
set providePagingParameter(value) {
|
|
198
|
+
this._providePagingParameter = value;
|
|
199
|
+
if (this.actualDataProvider) {
|
|
200
|
+
this.actualDataProvider.providePagingParameter = this.providePagingParameter;
|
|
201
|
+
this.queueAutoRefresh();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
get provideDesiredPropertiesParameter() {
|
|
205
|
+
return this._provideDesiredPropertiesParameter;
|
|
206
|
+
}
|
|
207
|
+
set provideDesiredPropertiesParameter(value) {
|
|
208
|
+
this._provideDesiredPropertiesParameter = value;
|
|
209
|
+
if (this.actualDataProvider) {
|
|
210
|
+
this.actualDataProvider.provideDesiredPropertiesParameter = this.provideDesiredPropertiesParameter;
|
|
211
|
+
this.queueAutoRefresh();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
get provideItems() {
|
|
215
|
+
return this._provideItems;
|
|
216
|
+
}
|
|
217
|
+
set provideItems(value) {
|
|
218
|
+
this._provideItems = value;
|
|
219
|
+
if (this.actualDataProvider) {
|
|
220
|
+
this.actualDataProvider.provideItems = this.provideItems;
|
|
221
|
+
this.queueAutoRefresh();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
clone() {
|
|
225
|
+
let dataSource = new RestVirtualDataSource();
|
|
226
|
+
dataSource.executionContext = this.executionContext;
|
|
227
|
+
dataSource.includeSummaryRowsInSection = this.includeSummaryRowsInSection;
|
|
228
|
+
dataSource.isSectionCollapsable = this.isSectionCollapsable;
|
|
229
|
+
dataSource.isSectionExpandedDefault = this.isSectionExpandedDefault;
|
|
230
|
+
//dataSource.isSectionHeaderNormalRow = this.isSectionHeaderNormalRow;
|
|
231
|
+
dataSource.isSectionSummaryRowsAtBottom = this.isSectionSummaryRowsAtBottom;
|
|
232
|
+
//dataSource.isSectionContentVisible = this.isSectionContentVisible;
|
|
233
|
+
dataSource.primaryKey = this.primaryKey;
|
|
234
|
+
dataSource.propertiesRequested = this.propertiesRequested;
|
|
235
|
+
dataSource.sectionHeaderDisplayMode = this.sectionHeaderDisplayMode;
|
|
236
|
+
dataSource.shouldEmitSectionFooters = this.shouldEmitSectionFooters;
|
|
237
|
+
dataSource.shouldEmitSectionHeaders = this.shouldEmitSectionHeaders;
|
|
238
|
+
dataSource.shouldEmitShiftedRows = this.shouldEmitShiftedRows;
|
|
239
|
+
dataSource.summaryScope = this.summaryScope;
|
|
240
|
+
for (var i = 0; i < this.groupDescriptions.size(); i++) {
|
|
241
|
+
dataSource.groupDescriptions.add(this.groupDescriptions.get(i));
|
|
242
|
+
}
|
|
243
|
+
for (var i = 0; i < this.sortDescriptions.size(); i++) {
|
|
244
|
+
dataSource.sortDescriptions.add(this.sortDescriptions.get(i));
|
|
245
|
+
}
|
|
246
|
+
for (var i = 0; i < this.filterExpressions.size(); i++) {
|
|
247
|
+
dataSource.filterExpressions.add(this.filterExpressions.get(i));
|
|
248
|
+
}
|
|
249
|
+
for (var i = 0; i < this.summaryDescriptions.size(); i++) {
|
|
250
|
+
dataSource.summaryDescriptions.add(this.summaryDescriptions.get(i));
|
|
251
|
+
}
|
|
252
|
+
dataSource.pageSizeRequested = this.pageSizeRequested;
|
|
253
|
+
dataSource.maxCachedPages = this.maxCachedPages;
|
|
254
|
+
dataSource.baseUri = this.baseUri;
|
|
255
|
+
dataSource.entitySet = this.entitySet;
|
|
256
|
+
dataSource.timeoutMilliseconds = this.timeoutMilliseconds;
|
|
257
|
+
dataSource.isAggregationSupportedByServer = this.isAggregationSupportedByServer;
|
|
258
|
+
dataSource.enableJsonp = this.enableJsonp;
|
|
259
|
+
dataSource.fixedFullCount = this.fixedFullCount;
|
|
260
|
+
dataSource.provideAggregationParameter = this.provideAggregationParameter;
|
|
261
|
+
dataSource.provideAggregatedCount = this.provideAggregatedCount;
|
|
262
|
+
dataSource.provideFilterParameter = this.provideFilterParameter;
|
|
263
|
+
dataSource.provideFullCount = this.provideFullCount;
|
|
264
|
+
dataSource.provideOrderByParameter = this.provideOrderByParameter;
|
|
265
|
+
dataSource.provideUri = this.provideUri;
|
|
266
|
+
dataSource.performFetch = this.performFetch;
|
|
267
|
+
dataSource.providePagingParameter = this.providePagingParameter;
|
|
268
|
+
dataSource.provideItems = this.provideItems;
|
|
269
|
+
dataSource.provideDesiredPropertiesParameter = this.provideDesiredPropertiesParameter;
|
|
270
|
+
return dataSource;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Base, Type } from "igniteui-webcomponents-core";
|
|
2
|
+
import { IDataSourceVirtualDataProvider } from "igniteui-webcomponents-core";
|
|
3
|
+
import { IDataSourcePage } from "igniteui-webcomponents-core";
|
|
4
|
+
import { IDataSourceSchema } from "igniteui-webcomponents-core";
|
|
5
|
+
import { IDataSourceExecutionContext } from "igniteui-webcomponents-core";
|
|
6
|
+
import { IDataSourceDataProviderUpdateNotifier } from "igniteui-webcomponents-core";
|
|
7
|
+
import { SortDescriptionCollection } from "igniteui-webcomponents-core";
|
|
8
|
+
import { FilterExpressionCollection } from "igniteui-webcomponents-core";
|
|
9
|
+
import { DataSourcePageRequestPriority } from "igniteui-webcomponents-core";
|
|
10
|
+
import { DataSourceDataProviderSchemaChangedEventArgs } from "igniteui-webcomponents-core";
|
|
11
|
+
import { DataSourceSchemaPropertyType } from "igniteui-webcomponents-core";
|
|
12
|
+
import { SummaryDescriptionCollection } from "igniteui-webcomponents-core";
|
|
13
|
+
import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
|
|
14
|
+
import { TransactionState } from "igniteui-webcomponents-core";
|
|
15
|
+
export declare class RestVirtualDataSourceDataProvider extends Base implements IDataSourceVirtualDataProvider {
|
|
16
|
+
static $t: Type;
|
|
17
|
+
private _worker;
|
|
18
|
+
private _requests;
|
|
19
|
+
private _callback;
|
|
20
|
+
constructor();
|
|
21
|
+
private filterExpressions_CollectionChanged;
|
|
22
|
+
private sortDescriptions_CollectionChanged;
|
|
23
|
+
private groupDescriptions_CollectionChanged;
|
|
24
|
+
private summaryDescriptions_CollectionChanged;
|
|
25
|
+
addPageRequest(pageIndex: number, priority: DataSourcePageRequestPriority): void;
|
|
26
|
+
private createWorker;
|
|
27
|
+
private valid;
|
|
28
|
+
private getWorkerSettings;
|
|
29
|
+
removePageRequest(pageIndex: number): void;
|
|
30
|
+
removeAllPageRequests(): void;
|
|
31
|
+
close(): void;
|
|
32
|
+
private _pageLoaded;
|
|
33
|
+
get pageLoaded(): (page: IDataSourcePage, currentFullCount: number, actualPageSize: number) => void;
|
|
34
|
+
set pageLoaded(value: (page: IDataSourcePage, currentFullCount: number, actualPageSize: number) => void);
|
|
35
|
+
private raisePageLoaded;
|
|
36
|
+
private killWorker;
|
|
37
|
+
private _pageSizeRequested;
|
|
38
|
+
get pageSizeRequested(): number;
|
|
39
|
+
set pageSizeRequested(value: number);
|
|
40
|
+
private _baseUri;
|
|
41
|
+
get baseUri(): string;
|
|
42
|
+
set baseUri(value: string);
|
|
43
|
+
private _entitySet;
|
|
44
|
+
get entitySet(): string;
|
|
45
|
+
set entitySet(value: string);
|
|
46
|
+
private _timeoutMilliseconds;
|
|
47
|
+
get timeoutMilliseconds(): number;
|
|
48
|
+
set timeoutMilliseconds(value: number);
|
|
49
|
+
getItemValue(item: any, valueName: string): any;
|
|
50
|
+
schemaChanged: (sender: any, args: DataSourceDataProviderSchemaChangedEventArgs) => void;
|
|
51
|
+
private _currentFullCount;
|
|
52
|
+
private _currentSchema;
|
|
53
|
+
get actualCount(): number;
|
|
54
|
+
get actualSchema(): IDataSourceSchema;
|
|
55
|
+
private _executionContext;
|
|
56
|
+
get executionContext(): IDataSourceExecutionContext;
|
|
57
|
+
set executionContext(value: IDataSourceExecutionContext);
|
|
58
|
+
private _updateNotifier;
|
|
59
|
+
get updateNotifier(): IDataSourceDataProviderUpdateNotifier;
|
|
60
|
+
set updateNotifier(value: IDataSourceDataProviderUpdateNotifier);
|
|
61
|
+
private _deferAutoRefresh;
|
|
62
|
+
get deferAutoRefresh(): boolean;
|
|
63
|
+
set deferAutoRefresh(value: boolean);
|
|
64
|
+
get isSortingSupported(): boolean;
|
|
65
|
+
get isGroupingSupported(): boolean;
|
|
66
|
+
get isFilteringSupported(): boolean;
|
|
67
|
+
private _isAggregationSupported;
|
|
68
|
+
get isAggregationSupported(): boolean;
|
|
69
|
+
set isAggregationSupported(isSupported: boolean);
|
|
70
|
+
private _sortDescriptions;
|
|
71
|
+
get sortDescriptions(): SortDescriptionCollection;
|
|
72
|
+
private _groupDescriptions;
|
|
73
|
+
get groupDescriptions(): SortDescriptionCollection;
|
|
74
|
+
private _propertiesRequested;
|
|
75
|
+
get propertiesRequested(): string[];
|
|
76
|
+
set propertiesRequested(value: string[]);
|
|
77
|
+
private _schemaIncludedProperties;
|
|
78
|
+
get schemaIncludedProperties(): string[];
|
|
79
|
+
set schemaIncludedProperties(value: string[]);
|
|
80
|
+
private _filterExpressions;
|
|
81
|
+
get filterExpressions(): FilterExpressionCollection;
|
|
82
|
+
private _summaryDescriptions;
|
|
83
|
+
get summaryDescriptions(): SummaryDescriptionCollection;
|
|
84
|
+
private _summaryScope;
|
|
85
|
+
get summaryScope(): DataSourceSummaryScope;
|
|
86
|
+
set summaryScope(value: DataSourceSummaryScope);
|
|
87
|
+
private _enableJsonp;
|
|
88
|
+
get enableJsonp(): boolean;
|
|
89
|
+
set enableJsonp(isEnabled: boolean);
|
|
90
|
+
private _fixedFullCount;
|
|
91
|
+
get fixedFullCount(): number;
|
|
92
|
+
set fixedFullCount(value: number);
|
|
93
|
+
private _provideFullCount;
|
|
94
|
+
get provideFullCount(): (page: any) => number;
|
|
95
|
+
set provideFullCount(value: (page: any) => number);
|
|
96
|
+
private _provideOrderByParameter;
|
|
97
|
+
get provideOrderByParameter(): (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => void;
|
|
98
|
+
set provideOrderByParameter(value: (args: any[], orderByString: string, orderBy: SortDescriptionCollection) => void);
|
|
99
|
+
private _provideFilterParameter;
|
|
100
|
+
get provideFilterParameter(): (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => void;
|
|
101
|
+
set provideFilterParameter(value: (args: any[], filterString: string, filterExpressions: FilterExpressionCollection) => void);
|
|
102
|
+
private _provideAggregationParameter;
|
|
103
|
+
get provideAggregationParameter(): (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => void;
|
|
104
|
+
set provideAggregationParameter(value: (args: any[], fetchCountOnly: boolean, groupByString: string, groupBy: SortDescriptionCollection, summaryString: string, summary: SummaryDescriptionCollection) => void);
|
|
105
|
+
private _provideAggregatedCount;
|
|
106
|
+
get provideAggregatedCount(): (item: any) => number;
|
|
107
|
+
set provideAggregatedCount(value: (item: any) => number);
|
|
108
|
+
private _provideUri;
|
|
109
|
+
get provideUri(): (baseUri: string, entitySet: string, args: {
|
|
110
|
+
name: string;
|
|
111
|
+
value: any;
|
|
112
|
+
}[]) => string;
|
|
113
|
+
set provideUri(value: (baseUri: string, entitySet: string, args: {
|
|
114
|
+
name: string;
|
|
115
|
+
value: any;
|
|
116
|
+
}[]) => string);
|
|
117
|
+
private _performFetch;
|
|
118
|
+
get performFetch(): (request: {
|
|
119
|
+
requestUri: string;
|
|
120
|
+
enableJsonpCallback: boolean;
|
|
121
|
+
method: 'GET';
|
|
122
|
+
headers: any;
|
|
123
|
+
data: null;
|
|
124
|
+
}, success: (data: any, response: any) => void, failure: (err: any) => void) => void;
|
|
125
|
+
set performFetch(value: (request: {
|
|
126
|
+
requestUri: string;
|
|
127
|
+
enableJsonpCallback: boolean;
|
|
128
|
+
method: 'GET';
|
|
129
|
+
headers: any;
|
|
130
|
+
data: null;
|
|
131
|
+
}, success: (data: any, response: any) => void, failure: (err: any) => void) => void);
|
|
132
|
+
private _providePagingParameter;
|
|
133
|
+
get providePagingParameter(): (args: any[], skip: number, take: number) => void;
|
|
134
|
+
set providePagingParameter(value: (args: any[], skip: number, take: number) => void);
|
|
135
|
+
private _provideDesiredPropertiesParameter;
|
|
136
|
+
get provideDesiredPropertiesParameter(): (args: any[], selectString: string, desiredProperties: string[]) => void;
|
|
137
|
+
set provideDesiredPropertiesParameter(value: (args: any[], selectString: string, desiredProperties: string[]) => void);
|
|
138
|
+
private _provideItems;
|
|
139
|
+
get provideItems(): (result: any) => any[];
|
|
140
|
+
set provideItems(value: (result: any) => any[]);
|
|
141
|
+
get notifyUsingSourceIndexes(): boolean;
|
|
142
|
+
get isItemIndexLookupSupported(): boolean;
|
|
143
|
+
get isKeyIndexLookupSupported(): boolean;
|
|
144
|
+
notifySetItem(index: number, oldItem: any, newItem: any): void;
|
|
145
|
+
notifyClearItems(): void;
|
|
146
|
+
notifyInsertItem(index: number, newItem: any): void;
|
|
147
|
+
notifyRemoveItem(index: number, oldItem: any): void;
|
|
148
|
+
_schemaFetchQueued: boolean;
|
|
149
|
+
queueSchemaFetch(): void;
|
|
150
|
+
doSchemaFetchInternal(): void;
|
|
151
|
+
schemaFetchInternal(): void;
|
|
152
|
+
protected schemaFetchInternalOverride(): void;
|
|
153
|
+
private addSchemaRequest;
|
|
154
|
+
_autoRefreshQueued: boolean;
|
|
155
|
+
queueAutoRefresh(): void;
|
|
156
|
+
doRefreshInternal(): void;
|
|
157
|
+
refreshInternal(): void;
|
|
158
|
+
protected refreshInternalOverride(): void;
|
|
159
|
+
flushAutoRefresh(): void;
|
|
160
|
+
refresh(): void;
|
|
161
|
+
indexOfItem(item: any): number;
|
|
162
|
+
indexOfKey(key: any[]): number;
|
|
163
|
+
resolveSchemaPropertyType(propertyPath: string): DataSourceSchemaPropertyType;
|
|
164
|
+
setItemValue(item: any, valueName: string, value: any): void;
|
|
165
|
+
removeItem(item: any): void;
|
|
166
|
+
addItem(item: any): void;
|
|
167
|
+
createBatchRequest(changes: TransactionState[]): void;
|
|
168
|
+
private _batchCompleted;
|
|
169
|
+
get batchCompleted(): (success: boolean, requiresRefresh: boolean, messages: string[]) => void;
|
|
170
|
+
set batchCompleted(v: (success: boolean, requiresRefresh: boolean, messages: string[]) => void);
|
|
171
|
+
}
|