igniteui-webcomponents-datasources 4.8.1 → 5.0.0-beta.1
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/bundles/igniteui-webcomponents-datasources.umd.js +86 -0
- package/bundles/igniteui-webcomponents-datasources.umd.min.js +1 -1
- package/esm2015/lib/ODataVirtualDataSourceDataProvider.js +9 -0
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorker.js +20 -0
- package/esm2015/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +7 -0
- package/esm2015/lib/RestVirtualDataSourceDataProvider.js +9 -0
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorker.js +20 -0
- package/esm2015/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +7 -0
- package/esm5/lib/ODataVirtualDataSourceDataProvider.js +13 -0
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorker.js +20 -0
- package/esm5/lib/ODataVirtualDataSourceDataProviderWorkerSettings.js +11 -0
- package/esm5/lib/RestVirtualDataSourceDataProvider.js +13 -0
- package/esm5/lib/RestVirtualDataSourceDataProviderWorker.js +20 -0
- package/esm5/lib/RestVirtualDataSourceDataProviderWorkerSettings.js +11 -0
- package/fesm2015/igniteui-webcomponents-datasources.js +71 -1
- package/fesm5/igniteui-webcomponents-datasources.js +87 -1
- package/lib/ODataVirtualDataSourceDataProvider.d.ts +3 -0
- package/lib/ODataVirtualDataSourceDataProviderWorker.d.ts +1 -0
- package/lib/ODataVirtualDataSourceDataProviderWorkerSettings.d.ts +3 -0
- package/lib/RestVirtualDataSourceDataProvider.d.ts +3 -0
- package/lib/RestVirtualDataSourceDataProviderWorker.d.ts +1 -0
- package/lib/RestVirtualDataSourceDataProviderWorkerSettings.d.ts +3 -0
- package/package.json +2 -2
|
@@ -31,6 +31,7 @@ export let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
31
31
|
this._sortDescriptions = null;
|
|
32
32
|
this._groupDescriptions = null;
|
|
33
33
|
this._propertiesRequested = null;
|
|
34
|
+
this._schemaIncludedProperties = null;
|
|
34
35
|
this._filterExpressions = null;
|
|
35
36
|
this._summaryDescriptions = null;
|
|
36
37
|
this._enableJsonp = true;
|
|
@@ -106,6 +107,7 @@ export let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
106
107
|
$ret.groupDescriptions = this._groupDescriptions;
|
|
107
108
|
$ret.filterExpressions = this._filterExpressions;
|
|
108
109
|
$ret.propertiesRequested = this._propertiesRequested;
|
|
110
|
+
$ret.schemaIncludedProperties = this._schemaIncludedProperties;
|
|
109
111
|
$ret.summaryDescriptions = this._summaryDescriptions;
|
|
110
112
|
$ret.summaryScope = this._summaryScope;
|
|
111
113
|
$ret.enableJsonp = this._enableJsonp;
|
|
@@ -289,6 +291,13 @@ export let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
289
291
|
this._propertiesRequested = value;
|
|
290
292
|
this.queueAutoRefresh();
|
|
291
293
|
}
|
|
294
|
+
get schemaIncludedProperties() {
|
|
295
|
+
return this._schemaIncludedProperties;
|
|
296
|
+
}
|
|
297
|
+
set schemaIncludedProperties(value) {
|
|
298
|
+
this._schemaIncludedProperties = value;
|
|
299
|
+
this.queueAutoRefresh();
|
|
300
|
+
}
|
|
292
301
|
get filterExpressions() {
|
|
293
302
|
return this._filterExpressions;
|
|
294
303
|
}
|
|
@@ -14,6 +14,7 @@ import { DataSourceSummaryOperand } from "igniteui-webcomponents-core";
|
|
|
14
14
|
import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
|
|
15
15
|
import { DefaultSummaryResult } from "igniteui-webcomponents-core";
|
|
16
16
|
import { TransactionType } from "igniteui-webcomponents-core";
|
|
17
|
+
import { ODataDataSourceSchema } from "igniteui-webcomponents-core";
|
|
17
18
|
export let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
18
19
|
class ODataVirtualDataSourceDataProviderWorker extends AsyncVirtualDataSourceProviderWorker {
|
|
19
20
|
get sortDescriptions() {
|
|
@@ -65,6 +66,7 @@ export let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
65
66
|
this._filterExpressions = null;
|
|
66
67
|
this._summaryDescriptions = null;
|
|
67
68
|
this._desiredPropeties = null;
|
|
69
|
+
this._schemaIncludedProperties = null;
|
|
68
70
|
this._enableJsonp = true;
|
|
69
71
|
this._isAggregationSupported = false;
|
|
70
72
|
this._groupInformation = null;
|
|
@@ -87,6 +89,12 @@ export let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
87
89
|
}
|
|
88
90
|
this._filterExpressions = settings.filterExpressions;
|
|
89
91
|
this._desiredPropeties = settings.propertiesRequested;
|
|
92
|
+
if (settings.schemaIncludedProperties != null) {
|
|
93
|
+
this._schemaIncludedProperties = new Set();
|
|
94
|
+
for (let i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
95
|
+
this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
90
98
|
this._summaryDescriptions = settings.summaryDescriptions;
|
|
91
99
|
this._summaryScope = settings.summaryScope;
|
|
92
100
|
this._enableJsonp = settings.enableJsonp;
|
|
@@ -434,6 +442,18 @@ export let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
434
442
|
let success_ = (res) => {
|
|
435
443
|
let sp = new ODataSchemaProvider(res);
|
|
436
444
|
let schema = sp.getODataDataSourceSchema(this._entitySet);
|
|
445
|
+
if (this._schemaIncludedProperties != null) {
|
|
446
|
+
let propertyNames = [];
|
|
447
|
+
let propertyTypes = [];
|
|
448
|
+
for (let i = 0; i < schema.propertyNames.length; i++) {
|
|
449
|
+
if (!this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
452
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
453
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
454
|
+
}
|
|
455
|
+
schema = new ODataDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey);
|
|
456
|
+
}
|
|
437
457
|
finishAction(schema);
|
|
438
458
|
};
|
|
439
459
|
let failure_ = () => failureAction();
|
|
@@ -9,6 +9,7 @@ export let ODataVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (()
|
|
|
9
9
|
this._sortDescriptions = null;
|
|
10
10
|
this._filterExpressions = null;
|
|
11
11
|
this._propertiesRequested = null;
|
|
12
|
+
this._schemaIncludedProperties = null;
|
|
12
13
|
this._groupDescriptions = null;
|
|
13
14
|
this._summaryDescriptions = null;
|
|
14
15
|
}
|
|
@@ -42,6 +43,12 @@ export let ODataVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (()
|
|
|
42
43
|
set propertiesRequested(value) {
|
|
43
44
|
this._propertiesRequested = value;
|
|
44
45
|
}
|
|
46
|
+
get schemaIncludedProperties() {
|
|
47
|
+
return this._schemaIncludedProperties;
|
|
48
|
+
}
|
|
49
|
+
set schemaIncludedProperties(value) {
|
|
50
|
+
this._schemaIncludedProperties = value;
|
|
51
|
+
}
|
|
45
52
|
get groupDescriptions() {
|
|
46
53
|
return this._groupDescriptions;
|
|
47
54
|
}
|
|
@@ -31,6 +31,7 @@ export let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
31
31
|
this._sortDescriptions = null;
|
|
32
32
|
this._groupDescriptions = null;
|
|
33
33
|
this._propertiesRequested = null;
|
|
34
|
+
this._schemaIncludedProperties = null;
|
|
34
35
|
this._filterExpressions = null;
|
|
35
36
|
this._summaryDescriptions = null;
|
|
36
37
|
this._enableJsonp = true;
|
|
@@ -114,6 +115,7 @@ export let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
114
115
|
$ret.groupDescriptions = this._groupDescriptions;
|
|
115
116
|
$ret.filterExpressions = this._filterExpressions;
|
|
116
117
|
$ret.propertiesRequested = this._propertiesRequested;
|
|
118
|
+
$ret.schemaIncludedProperties = this._schemaIncludedProperties;
|
|
117
119
|
$ret.summaryDescriptions = this._summaryDescriptions;
|
|
118
120
|
$ret.summaryScope = this._summaryScope;
|
|
119
121
|
$ret.enableJsonp = this._enableJsonp;
|
|
@@ -299,6 +301,13 @@ export let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
299
301
|
this._propertiesRequested = value;
|
|
300
302
|
this.queueAutoRefresh();
|
|
301
303
|
}
|
|
304
|
+
get schemaIncludedProperties() {
|
|
305
|
+
return this._schemaIncludedProperties;
|
|
306
|
+
}
|
|
307
|
+
set schemaIncludedProperties(value) {
|
|
308
|
+
this._schemaIncludedProperties = value;
|
|
309
|
+
this.queueAutoRefresh();
|
|
310
|
+
}
|
|
302
311
|
get filterExpressions() {
|
|
303
312
|
return this._filterExpressions;
|
|
304
313
|
}
|
|
@@ -13,6 +13,7 @@ import { DataSourceSummaryOperand } from "igniteui-webcomponents-core";
|
|
|
13
13
|
import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
|
|
14
14
|
import { DefaultSummaryResult } from "igniteui-webcomponents-core";
|
|
15
15
|
import { LocalDataSource } from "igniteui-webcomponents-core";
|
|
16
|
+
import { DefaultDataSourceSchema } from "igniteui-webcomponents-core";
|
|
16
17
|
export let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
17
18
|
class RestVirtualDataSourceDataProviderWorker extends AsyncVirtualDataSourceProviderWorker {
|
|
18
19
|
get sortDescriptions() {
|
|
@@ -64,6 +65,7 @@ export let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
64
65
|
this._filterExpressions = null;
|
|
65
66
|
this._summaryDescriptions = null;
|
|
66
67
|
this._desiredPropeties = null;
|
|
68
|
+
this._schemaIncludedProperties = null;
|
|
67
69
|
this._enableJsonp = true;
|
|
68
70
|
this._isAggregationSupported = false;
|
|
69
71
|
this._provideFullCount = null;
|
|
@@ -96,6 +98,12 @@ export let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
96
98
|
}
|
|
97
99
|
this._filterExpressions = settings.filterExpressions;
|
|
98
100
|
this._desiredPropeties = settings.propertiesRequested;
|
|
101
|
+
if (settings.schemaIncludedProperties != null) {
|
|
102
|
+
this._schemaIncludedProperties = new Set();
|
|
103
|
+
for (let i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
104
|
+
this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
99
107
|
this._summaryDescriptions = settings.summaryDescriptions;
|
|
100
108
|
this._fixedFullCount = settings.fixedFullCount;
|
|
101
109
|
this._summaryScope = settings.summaryScope;
|
|
@@ -559,6 +567,18 @@ export let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
559
567
|
let items = this._provideItems(res);
|
|
560
568
|
if (items && items.length > 0) {
|
|
561
569
|
let schema = this.resolveSchemaFromItems(items);
|
|
570
|
+
if (this._schemaIncludedProperties != null) {
|
|
571
|
+
let propertyNames = [];
|
|
572
|
+
let propertyTypes = [];
|
|
573
|
+
for (let i = 0; i < schema.propertyNames.length; i++) {
|
|
574
|
+
if (!this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
578
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
579
|
+
}
|
|
580
|
+
schema = new DefaultDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey, schema.propertyDataIntents, schema.subSchemas);
|
|
581
|
+
}
|
|
562
582
|
finishAction(schema);
|
|
563
583
|
}
|
|
564
584
|
else {
|
|
@@ -9,6 +9,7 @@ export let RestVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() =
|
|
|
9
9
|
this._sortDescriptions = null;
|
|
10
10
|
this._filterExpressions = null;
|
|
11
11
|
this._propertiesRequested = null;
|
|
12
|
+
this._schemaIncludedProperties = null;
|
|
12
13
|
this._groupDescriptions = null;
|
|
13
14
|
this._summaryDescriptions = null;
|
|
14
15
|
this._fixedFullCount = -1;
|
|
@@ -52,6 +53,12 @@ export let RestVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() =
|
|
|
52
53
|
set propertiesRequested(value) {
|
|
53
54
|
this._propertiesRequested = value;
|
|
54
55
|
}
|
|
56
|
+
get schemaIncludedProperties() {
|
|
57
|
+
return this._schemaIncludedProperties;
|
|
58
|
+
}
|
|
59
|
+
set schemaIncludedProperties(value) {
|
|
60
|
+
this._schemaIncludedProperties = value;
|
|
61
|
+
}
|
|
55
62
|
get groupDescriptions() {
|
|
56
63
|
return this._groupDescriptions;
|
|
57
64
|
}
|
|
@@ -32,6 +32,7 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
32
32
|
_this._sortDescriptions = null;
|
|
33
33
|
_this._groupDescriptions = null;
|
|
34
34
|
_this._propertiesRequested = null;
|
|
35
|
+
_this._schemaIncludedProperties = null;
|
|
35
36
|
_this._filterExpressions = null;
|
|
36
37
|
_this._summaryDescriptions = null;
|
|
37
38
|
_this._enableJsonp = true;
|
|
@@ -109,6 +110,7 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
109
110
|
$ret.groupDescriptions = _this._groupDescriptions;
|
|
110
111
|
$ret.filterExpressions = _this._filterExpressions;
|
|
111
112
|
$ret.propertiesRequested = _this._propertiesRequested;
|
|
113
|
+
$ret.schemaIncludedProperties = _this._schemaIncludedProperties;
|
|
112
114
|
$ret.summaryDescriptions = _this._summaryDescriptions;
|
|
113
115
|
$ret.summaryScope = _this._summaryScope;
|
|
114
116
|
$ret.enableJsonp = _this._enableJsonp;
|
|
@@ -360,6 +362,17 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
360
362
|
enumerable: false,
|
|
361
363
|
configurable: true
|
|
362
364
|
});
|
|
365
|
+
Object.defineProperty(ODataVirtualDataSourceDataProvider.prototype, "schemaIncludedProperties", {
|
|
366
|
+
get: function () {
|
|
367
|
+
return this._schemaIncludedProperties;
|
|
368
|
+
},
|
|
369
|
+
set: function (value) {
|
|
370
|
+
this._schemaIncludedProperties = value;
|
|
371
|
+
this.queueAutoRefresh();
|
|
372
|
+
},
|
|
373
|
+
enumerable: false,
|
|
374
|
+
configurable: true
|
|
375
|
+
});
|
|
363
376
|
Object.defineProperty(ODataVirtualDataSourceDataProvider.prototype, "filterExpressions", {
|
|
364
377
|
get: function () {
|
|
365
378
|
return this._filterExpressions;
|
|
@@ -15,6 +15,7 @@ import { DataSourceSummaryOperand } from "igniteui-webcomponents-core";
|
|
|
15
15
|
import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
|
|
16
16
|
import { DefaultSummaryResult } from "igniteui-webcomponents-core";
|
|
17
17
|
import { TransactionType } from "igniteui-webcomponents-core";
|
|
18
|
+
import { ODataDataSourceSchema } from "igniteui-webcomponents-core";
|
|
18
19
|
var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
19
20
|
__extends(ODataVirtualDataSourceDataProviderWorker, _super);
|
|
20
21
|
function ODataVirtualDataSourceDataProviderWorker(settings) {
|
|
@@ -27,6 +28,7 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
27
28
|
_this._filterExpressions = null;
|
|
28
29
|
_this._summaryDescriptions = null;
|
|
29
30
|
_this._desiredPropeties = null;
|
|
31
|
+
_this._schemaIncludedProperties = null;
|
|
30
32
|
_this._enableJsonp = true;
|
|
31
33
|
_this._isAggregationSupported = false;
|
|
32
34
|
_this._groupInformation = null;
|
|
@@ -65,6 +67,12 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
65
67
|
}
|
|
66
68
|
_this._filterExpressions = settings.filterExpressions;
|
|
67
69
|
_this._desiredPropeties = settings.propertiesRequested;
|
|
70
|
+
if (settings.schemaIncludedProperties != null) {
|
|
71
|
+
_this._schemaIncludedProperties = new Set();
|
|
72
|
+
for (var i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
73
|
+
_this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
68
76
|
_this._summaryDescriptions = settings.summaryDescriptions;
|
|
69
77
|
_this._summaryScope = settings.summaryScope;
|
|
70
78
|
_this._enableJsonp = settings.enableJsonp;
|
|
@@ -603,6 +611,18 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
603
611
|
var success_ = function (res) {
|
|
604
612
|
var sp = new ODataSchemaProvider(res);
|
|
605
613
|
var schema = sp.getODataDataSourceSchema(_this._entitySet);
|
|
614
|
+
if (_this._schemaIncludedProperties != null) {
|
|
615
|
+
var propertyNames = [];
|
|
616
|
+
var propertyTypes = [];
|
|
617
|
+
for (var i = 0; i < schema.propertyNames.length; i++) {
|
|
618
|
+
if (!_this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
619
|
+
continue;
|
|
620
|
+
}
|
|
621
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
622
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
623
|
+
}
|
|
624
|
+
schema = new ODataDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey);
|
|
625
|
+
}
|
|
606
626
|
finishAction(schema);
|
|
607
627
|
};
|
|
608
628
|
var failure_ = function () { return failureAction(); };
|
|
@@ -10,6 +10,7 @@ var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__
|
|
|
10
10
|
_this._sortDescriptions = null;
|
|
11
11
|
_this._filterExpressions = null;
|
|
12
12
|
_this._propertiesRequested = null;
|
|
13
|
+
_this._schemaIncludedProperties = null;
|
|
13
14
|
_this._groupDescriptions = null;
|
|
14
15
|
_this._summaryDescriptions = null;
|
|
15
16
|
return _this;
|
|
@@ -64,6 +65,16 @@ var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__
|
|
|
64
65
|
enumerable: false,
|
|
65
66
|
configurable: true
|
|
66
67
|
});
|
|
68
|
+
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "schemaIncludedProperties", {
|
|
69
|
+
get: function () {
|
|
70
|
+
return this._schemaIncludedProperties;
|
|
71
|
+
},
|
|
72
|
+
set: function (value) {
|
|
73
|
+
this._schemaIncludedProperties = value;
|
|
74
|
+
},
|
|
75
|
+
enumerable: false,
|
|
76
|
+
configurable: true
|
|
77
|
+
});
|
|
67
78
|
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
|
|
68
79
|
get: function () {
|
|
69
80
|
return this._groupDescriptions;
|
|
@@ -32,6 +32,7 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
32
32
|
_this._sortDescriptions = null;
|
|
33
33
|
_this._groupDescriptions = null;
|
|
34
34
|
_this._propertiesRequested = null;
|
|
35
|
+
_this._schemaIncludedProperties = null;
|
|
35
36
|
_this._filterExpressions = null;
|
|
36
37
|
_this._summaryDescriptions = null;
|
|
37
38
|
_this._enableJsonp = true;
|
|
@@ -117,6 +118,7 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
117
118
|
$ret.groupDescriptions = _this._groupDescriptions;
|
|
118
119
|
$ret.filterExpressions = _this._filterExpressions;
|
|
119
120
|
$ret.propertiesRequested = _this._propertiesRequested;
|
|
121
|
+
$ret.schemaIncludedProperties = _this._schemaIncludedProperties;
|
|
120
122
|
$ret.summaryDescriptions = _this._summaryDescriptions;
|
|
121
123
|
$ret.summaryScope = _this._summaryScope;
|
|
122
124
|
$ret.enableJsonp = _this._enableJsonp;
|
|
@@ -370,6 +372,17 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
370
372
|
enumerable: false,
|
|
371
373
|
configurable: true
|
|
372
374
|
});
|
|
375
|
+
Object.defineProperty(RestVirtualDataSourceDataProvider.prototype, "schemaIncludedProperties", {
|
|
376
|
+
get: function () {
|
|
377
|
+
return this._schemaIncludedProperties;
|
|
378
|
+
},
|
|
379
|
+
set: function (value) {
|
|
380
|
+
this._schemaIncludedProperties = value;
|
|
381
|
+
this.queueAutoRefresh();
|
|
382
|
+
},
|
|
383
|
+
enumerable: false,
|
|
384
|
+
configurable: true
|
|
385
|
+
});
|
|
373
386
|
Object.defineProperty(RestVirtualDataSourceDataProvider.prototype, "filterExpressions", {
|
|
374
387
|
get: function () {
|
|
375
388
|
return this._filterExpressions;
|
|
@@ -14,6 +14,7 @@ import { DataSourceSummaryOperand } from "igniteui-webcomponents-core";
|
|
|
14
14
|
import { DataSourceSummaryScope } from "igniteui-webcomponents-core";
|
|
15
15
|
import { DefaultSummaryResult } from "igniteui-webcomponents-core";
|
|
16
16
|
import { LocalDataSource } from "igniteui-webcomponents-core";
|
|
17
|
+
import { DefaultDataSourceSchema } from "igniteui-webcomponents-core";
|
|
17
18
|
var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
18
19
|
__extends(RestVirtualDataSourceDataProviderWorker, _super);
|
|
19
20
|
function RestVirtualDataSourceDataProviderWorker(settings) {
|
|
@@ -26,6 +27,7 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
26
27
|
_this._filterExpressions = null;
|
|
27
28
|
_this._summaryDescriptions = null;
|
|
28
29
|
_this._desiredPropeties = null;
|
|
30
|
+
_this._schemaIncludedProperties = null;
|
|
29
31
|
_this._enableJsonp = true;
|
|
30
32
|
_this._isAggregationSupported = false;
|
|
31
33
|
_this._provideFullCount = null;
|
|
@@ -74,6 +76,12 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
74
76
|
}
|
|
75
77
|
_this._filterExpressions = settings.filterExpressions;
|
|
76
78
|
_this._desiredPropeties = settings.propertiesRequested;
|
|
79
|
+
if (settings.schemaIncludedProperties != null) {
|
|
80
|
+
_this._schemaIncludedProperties = new Set();
|
|
81
|
+
for (var i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
82
|
+
_this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
77
85
|
_this._summaryDescriptions = settings.summaryDescriptions;
|
|
78
86
|
_this._fixedFullCount = settings.fixedFullCount;
|
|
79
87
|
_this._summaryScope = settings.summaryScope;
|
|
@@ -728,6 +736,18 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
728
736
|
var items = _this._provideItems(res);
|
|
729
737
|
if (items && items.length > 0) {
|
|
730
738
|
var schema = _this.resolveSchemaFromItems(items);
|
|
739
|
+
if (_this._schemaIncludedProperties != null) {
|
|
740
|
+
var propertyNames = [];
|
|
741
|
+
var propertyTypes = [];
|
|
742
|
+
for (var i = 0; i < schema.propertyNames.length; i++) {
|
|
743
|
+
if (!_this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
744
|
+
continue;
|
|
745
|
+
}
|
|
746
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
747
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
748
|
+
}
|
|
749
|
+
schema = new DefaultDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey, schema.propertyDataIntents, schema.subSchemas);
|
|
750
|
+
}
|
|
731
751
|
finishAction(schema);
|
|
732
752
|
}
|
|
733
753
|
else {
|
|
@@ -10,6 +10,7 @@ var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*
|
|
|
10
10
|
_this._sortDescriptions = null;
|
|
11
11
|
_this._filterExpressions = null;
|
|
12
12
|
_this._propertiesRequested = null;
|
|
13
|
+
_this._schemaIncludedProperties = null;
|
|
13
14
|
_this._groupDescriptions = null;
|
|
14
15
|
_this._summaryDescriptions = null;
|
|
15
16
|
_this._fixedFullCount = -1;
|
|
@@ -74,6 +75,16 @@ var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*
|
|
|
74
75
|
enumerable: false,
|
|
75
76
|
configurable: true
|
|
76
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
|
+
});
|
|
77
88
|
Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
|
|
78
89
|
get: function () {
|
|
79
90
|
return this._groupDescriptions;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { fromEnum, XName, DataSourceSchemaPropertyType, XDocument, XmlNodeType, typeCast, XElement, ODataDataSourceSchema, XNamespace, AsyncVirtualDataSourceProviderTaskDataHolder, markType, AsyncVirtualDataSourceProviderWorker, SortDescriptionCollection, ListSortDirection, DataSourceSummaryScope, stringIsNullOrEmpty, Convert, DefaultSectionInformation, DataSourceSummaryOperand, DefaultSummaryResult, AsyncVirtualDataTask, AsyncDataSourcePageTaskHolder, ODataDataSourceFilterExpressionVisitor, TransactionType, AsyncVirtualDataSourceDataProviderWorkerSettings, Base, FilterExpressionCollection, SummaryDescriptionCollection, DataSourcePageRequestPriority, runOn, DataSourceDataProviderSchemaChangedEventArgs, stringContains, IDataSourceVirtualDataProvider_$type, VirtualDataSource, LocalDataSource } from 'igniteui-webcomponents-core';
|
|
8
|
+
import { fromEnum, XName, DataSourceSchemaPropertyType, XDocument, XmlNodeType, typeCast, XElement, ODataDataSourceSchema, XNamespace, AsyncVirtualDataSourceProviderTaskDataHolder, markType, AsyncVirtualDataSourceProviderWorker, SortDescriptionCollection, ListSortDirection, DataSourceSummaryScope, stringIsNullOrEmpty, Convert, DefaultSectionInformation, DataSourceSummaryOperand, DefaultSummaryResult, AsyncVirtualDataTask, AsyncDataSourcePageTaskHolder, ODataDataSourceFilterExpressionVisitor, TransactionType, AsyncVirtualDataSourceDataProviderWorkerSettings, Base, FilterExpressionCollection, SummaryDescriptionCollection, DataSourcePageRequestPriority, runOn, DataSourceDataProviderSchemaChangedEventArgs, stringContains, IDataSourceVirtualDataProvider_$type, VirtualDataSource, LocalDataSource, DefaultDataSourceSchema } from 'igniteui-webcomponents-core';
|
|
9
9
|
|
|
10
10
|
class EntityProperty {
|
|
11
11
|
constructor(name, schemaType) {
|
|
@@ -555,6 +555,7 @@ let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
555
555
|
this._filterExpressions = null;
|
|
556
556
|
this._summaryDescriptions = null;
|
|
557
557
|
this._desiredPropeties = null;
|
|
558
|
+
this._schemaIncludedProperties = null;
|
|
558
559
|
this._enableJsonp = true;
|
|
559
560
|
this._isAggregationSupported = false;
|
|
560
561
|
this._groupInformation = null;
|
|
@@ -577,6 +578,12 @@ let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
577
578
|
}
|
|
578
579
|
this._filterExpressions = settings.filterExpressions;
|
|
579
580
|
this._desiredPropeties = settings.propertiesRequested;
|
|
581
|
+
if (settings.schemaIncludedProperties != null) {
|
|
582
|
+
this._schemaIncludedProperties = new Set();
|
|
583
|
+
for (let i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
584
|
+
this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
580
587
|
this._summaryDescriptions = settings.summaryDescriptions;
|
|
581
588
|
this._summaryScope = settings.summaryScope;
|
|
582
589
|
this._enableJsonp = settings.enableJsonp;
|
|
@@ -924,6 +931,18 @@ let ODataVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
924
931
|
let success_ = (res) => {
|
|
925
932
|
let sp = new ODataSchemaProvider(res);
|
|
926
933
|
let schema = sp.getODataDataSourceSchema(this._entitySet);
|
|
934
|
+
if (this._schemaIncludedProperties != null) {
|
|
935
|
+
let propertyNames = [];
|
|
936
|
+
let propertyTypes = [];
|
|
937
|
+
for (let i = 0; i < schema.propertyNames.length; i++) {
|
|
938
|
+
if (!this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
942
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
943
|
+
}
|
|
944
|
+
schema = new ODataDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey);
|
|
945
|
+
}
|
|
927
946
|
finishAction(schema);
|
|
928
947
|
};
|
|
929
948
|
let failure_ = () => failureAction();
|
|
@@ -1190,6 +1209,7 @@ let ODataVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() => {
|
|
|
1190
1209
|
this._sortDescriptions = null;
|
|
1191
1210
|
this._filterExpressions = null;
|
|
1192
1211
|
this._propertiesRequested = null;
|
|
1212
|
+
this._schemaIncludedProperties = null;
|
|
1193
1213
|
this._groupDescriptions = null;
|
|
1194
1214
|
this._summaryDescriptions = null;
|
|
1195
1215
|
}
|
|
@@ -1223,6 +1243,12 @@ let ODataVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() => {
|
|
|
1223
1243
|
set propertiesRequested(value) {
|
|
1224
1244
|
this._propertiesRequested = value;
|
|
1225
1245
|
}
|
|
1246
|
+
get schemaIncludedProperties() {
|
|
1247
|
+
return this._schemaIncludedProperties;
|
|
1248
|
+
}
|
|
1249
|
+
set schemaIncludedProperties(value) {
|
|
1250
|
+
this._schemaIncludedProperties = value;
|
|
1251
|
+
}
|
|
1226
1252
|
get groupDescriptions() {
|
|
1227
1253
|
return this._groupDescriptions;
|
|
1228
1254
|
}
|
|
@@ -1279,6 +1305,7 @@ let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
1279
1305
|
this._sortDescriptions = null;
|
|
1280
1306
|
this._groupDescriptions = null;
|
|
1281
1307
|
this._propertiesRequested = null;
|
|
1308
|
+
this._schemaIncludedProperties = null;
|
|
1282
1309
|
this._filterExpressions = null;
|
|
1283
1310
|
this._summaryDescriptions = null;
|
|
1284
1311
|
this._enableJsonp = true;
|
|
@@ -1354,6 +1381,7 @@ let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
1354
1381
|
$ret.groupDescriptions = this._groupDescriptions;
|
|
1355
1382
|
$ret.filterExpressions = this._filterExpressions;
|
|
1356
1383
|
$ret.propertiesRequested = this._propertiesRequested;
|
|
1384
|
+
$ret.schemaIncludedProperties = this._schemaIncludedProperties;
|
|
1357
1385
|
$ret.summaryDescriptions = this._summaryDescriptions;
|
|
1358
1386
|
$ret.summaryScope = this._summaryScope;
|
|
1359
1387
|
$ret.enableJsonp = this._enableJsonp;
|
|
@@ -1537,6 +1565,13 @@ let ODataVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
1537
1565
|
this._propertiesRequested = value;
|
|
1538
1566
|
this.queueAutoRefresh();
|
|
1539
1567
|
}
|
|
1568
|
+
get schemaIncludedProperties() {
|
|
1569
|
+
return this._schemaIncludedProperties;
|
|
1570
|
+
}
|
|
1571
|
+
set schemaIncludedProperties(value) {
|
|
1572
|
+
this._schemaIncludedProperties = value;
|
|
1573
|
+
this.queueAutoRefresh();
|
|
1574
|
+
}
|
|
1540
1575
|
get filterExpressions() {
|
|
1541
1576
|
return this._filterExpressions;
|
|
1542
1577
|
}
|
|
@@ -1945,6 +1980,7 @@ let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
1945
1980
|
this._filterExpressions = null;
|
|
1946
1981
|
this._summaryDescriptions = null;
|
|
1947
1982
|
this._desiredPropeties = null;
|
|
1983
|
+
this._schemaIncludedProperties = null;
|
|
1948
1984
|
this._enableJsonp = true;
|
|
1949
1985
|
this._isAggregationSupported = false;
|
|
1950
1986
|
this._provideFullCount = null;
|
|
@@ -1977,6 +2013,12 @@ let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
1977
2013
|
}
|
|
1978
2014
|
this._filterExpressions = settings.filterExpressions;
|
|
1979
2015
|
this._desiredPropeties = settings.propertiesRequested;
|
|
2016
|
+
if (settings.schemaIncludedProperties != null) {
|
|
2017
|
+
this._schemaIncludedProperties = new Set();
|
|
2018
|
+
for (let i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
2019
|
+
this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
1980
2022
|
this._summaryDescriptions = settings.summaryDescriptions;
|
|
1981
2023
|
this._fixedFullCount = settings.fixedFullCount;
|
|
1982
2024
|
this._summaryScope = settings.summaryScope;
|
|
@@ -2440,6 +2482,18 @@ let RestVirtualDataSourceDataProviderWorker = /*@__PURE__*/ (() => {
|
|
|
2440
2482
|
let items = this._provideItems(res);
|
|
2441
2483
|
if (items && items.length > 0) {
|
|
2442
2484
|
let schema = this.resolveSchemaFromItems(items);
|
|
2485
|
+
if (this._schemaIncludedProperties != null) {
|
|
2486
|
+
let propertyNames = [];
|
|
2487
|
+
let propertyTypes = [];
|
|
2488
|
+
for (let i = 0; i < schema.propertyNames.length; i++) {
|
|
2489
|
+
if (!this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
2490
|
+
continue;
|
|
2491
|
+
}
|
|
2492
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
2493
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
2494
|
+
}
|
|
2495
|
+
schema = new DefaultDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey, schema.propertyDataIntents, schema.subSchemas);
|
|
2496
|
+
}
|
|
2443
2497
|
finishAction(schema);
|
|
2444
2498
|
}
|
|
2445
2499
|
else {
|
|
@@ -2633,6 +2687,7 @@ let RestVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() => {
|
|
|
2633
2687
|
this._sortDescriptions = null;
|
|
2634
2688
|
this._filterExpressions = null;
|
|
2635
2689
|
this._propertiesRequested = null;
|
|
2690
|
+
this._schemaIncludedProperties = null;
|
|
2636
2691
|
this._groupDescriptions = null;
|
|
2637
2692
|
this._summaryDescriptions = null;
|
|
2638
2693
|
this._fixedFullCount = -1;
|
|
@@ -2676,6 +2731,12 @@ let RestVirtualDataSourceDataProviderWorkerSettings = /*@__PURE__*/ (() => {
|
|
|
2676
2731
|
set propertiesRequested(value) {
|
|
2677
2732
|
this._propertiesRequested = value;
|
|
2678
2733
|
}
|
|
2734
|
+
get schemaIncludedProperties() {
|
|
2735
|
+
return this._schemaIncludedProperties;
|
|
2736
|
+
}
|
|
2737
|
+
set schemaIncludedProperties(value) {
|
|
2738
|
+
this._schemaIncludedProperties = value;
|
|
2739
|
+
}
|
|
2679
2740
|
get groupDescriptions() {
|
|
2680
2741
|
return this._groupDescriptions;
|
|
2681
2742
|
}
|
|
@@ -2798,6 +2859,7 @@ let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
2798
2859
|
this._sortDescriptions = null;
|
|
2799
2860
|
this._groupDescriptions = null;
|
|
2800
2861
|
this._propertiesRequested = null;
|
|
2862
|
+
this._schemaIncludedProperties = null;
|
|
2801
2863
|
this._filterExpressions = null;
|
|
2802
2864
|
this._summaryDescriptions = null;
|
|
2803
2865
|
this._enableJsonp = true;
|
|
@@ -2881,6 +2943,7 @@ let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
2881
2943
|
$ret.groupDescriptions = this._groupDescriptions;
|
|
2882
2944
|
$ret.filterExpressions = this._filterExpressions;
|
|
2883
2945
|
$ret.propertiesRequested = this._propertiesRequested;
|
|
2946
|
+
$ret.schemaIncludedProperties = this._schemaIncludedProperties;
|
|
2884
2947
|
$ret.summaryDescriptions = this._summaryDescriptions;
|
|
2885
2948
|
$ret.summaryScope = this._summaryScope;
|
|
2886
2949
|
$ret.enableJsonp = this._enableJsonp;
|
|
@@ -3066,6 +3129,13 @@ let RestVirtualDataSourceDataProvider = /*@__PURE__*/ (() => {
|
|
|
3066
3129
|
this._propertiesRequested = value;
|
|
3067
3130
|
this.queueAutoRefresh();
|
|
3068
3131
|
}
|
|
3132
|
+
get schemaIncludedProperties() {
|
|
3133
|
+
return this._schemaIncludedProperties;
|
|
3134
|
+
}
|
|
3135
|
+
set schemaIncludedProperties(value) {
|
|
3136
|
+
this._schemaIncludedProperties = value;
|
|
3137
|
+
this.queueAutoRefresh();
|
|
3138
|
+
}
|
|
3069
3139
|
get filterExpressions() {
|
|
3070
3140
|
return this._filterExpressions;
|
|
3071
3141
|
}
|