igniteui-webcomponents-datasources 4.8.1 → 5.0.0-beta.0
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
|
@@ -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, markType, AsyncVirtualDataSourceProviderTaskDataHolder, SortDescriptionCollection, ListSortDirection, DataSourceSummaryScope, stringIsNullOrEmpty, Convert, DefaultSectionInformation, DataSourceSummaryOperand, DefaultSummaryResult, AsyncVirtualDataTask, AsyncDataSourcePageTaskHolder, ODataDataSourceFilterExpressionVisitor, TransactionType, AsyncVirtualDataSourceProviderWorker, AsyncVirtualDataSourceDataProviderWorkerSettings, FilterExpressionCollection, SummaryDescriptionCollection, DataSourcePageRequestPriority, runOn, DataSourceDataProviderSchemaChangedEventArgs, stringContains, Base, IDataSourceVirtualDataProvider_$type, VirtualDataSource, LocalDataSource } from 'igniteui-webcomponents-core';
|
|
8
|
+
import { fromEnum, XName, DataSourceSchemaPropertyType, XDocument, XmlNodeType, typeCast, XElement, ODataDataSourceSchema, XNamespace, markType, AsyncVirtualDataSourceProviderTaskDataHolder, SortDescriptionCollection, ListSortDirection, DataSourceSummaryScope, stringIsNullOrEmpty, Convert, DefaultSectionInformation, DataSourceSummaryOperand, DefaultSummaryResult, AsyncVirtualDataTask, AsyncDataSourcePageTaskHolder, ODataDataSourceFilterExpressionVisitor, TransactionType, AsyncVirtualDataSourceProviderWorker, AsyncVirtualDataSourceDataProviderWorkerSettings, FilterExpressionCollection, SummaryDescriptionCollection, DataSourcePageRequestPriority, runOn, DataSourceDataProviderSchemaChangedEventArgs, stringContains, Base, IDataSourceVirtualDataProvider_$type, VirtualDataSource, LocalDataSource, DefaultDataSourceSchema } from 'igniteui-webcomponents-core';
|
|
9
9
|
import { __values, __extends, __generator } from 'tslib';
|
|
10
10
|
|
|
11
11
|
var EntityProperty = /** @class */ /*@__PURE__*/ (function () {
|
|
@@ -656,6 +656,7 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
656
656
|
_this._filterExpressions = null;
|
|
657
657
|
_this._summaryDescriptions = null;
|
|
658
658
|
_this._desiredPropeties = null;
|
|
659
|
+
_this._schemaIncludedProperties = null;
|
|
659
660
|
_this._enableJsonp = true;
|
|
660
661
|
_this._isAggregationSupported = false;
|
|
661
662
|
_this._groupInformation = null;
|
|
@@ -694,6 +695,12 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
694
695
|
}
|
|
695
696
|
_this._filterExpressions = settings.filterExpressions;
|
|
696
697
|
_this._desiredPropeties = settings.propertiesRequested;
|
|
698
|
+
if (settings.schemaIncludedProperties != null) {
|
|
699
|
+
_this._schemaIncludedProperties = new Set();
|
|
700
|
+
for (var i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
701
|
+
_this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
697
704
|
_this._summaryDescriptions = settings.summaryDescriptions;
|
|
698
705
|
_this._summaryScope = settings.summaryScope;
|
|
699
706
|
_this._enableJsonp = settings.enableJsonp;
|
|
@@ -1232,6 +1239,18 @@ var ODataVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (func
|
|
|
1232
1239
|
var success_ = function (res) {
|
|
1233
1240
|
var sp = new ODataSchemaProvider(res);
|
|
1234
1241
|
var schema = sp.getODataDataSourceSchema(_this._entitySet);
|
|
1242
|
+
if (_this._schemaIncludedProperties != null) {
|
|
1243
|
+
var propertyNames = [];
|
|
1244
|
+
var propertyTypes = [];
|
|
1245
|
+
for (var i = 0; i < schema.propertyNames.length; i++) {
|
|
1246
|
+
if (!_this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
1247
|
+
continue;
|
|
1248
|
+
}
|
|
1249
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
1250
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
1251
|
+
}
|
|
1252
|
+
schema = new ODataDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey);
|
|
1253
|
+
}
|
|
1235
1254
|
finishAction(schema);
|
|
1236
1255
|
};
|
|
1237
1256
|
var failure_ = function () { return failureAction(); };
|
|
@@ -1537,6 +1556,7 @@ var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__
|
|
|
1537
1556
|
_this._sortDescriptions = null;
|
|
1538
1557
|
_this._filterExpressions = null;
|
|
1539
1558
|
_this._propertiesRequested = null;
|
|
1559
|
+
_this._schemaIncludedProperties = null;
|
|
1540
1560
|
_this._groupDescriptions = null;
|
|
1541
1561
|
_this._summaryDescriptions = null;
|
|
1542
1562
|
return _this;
|
|
@@ -1591,6 +1611,16 @@ var ODataVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__
|
|
|
1591
1611
|
enumerable: false,
|
|
1592
1612
|
configurable: true
|
|
1593
1613
|
});
|
|
1614
|
+
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "schemaIncludedProperties", {
|
|
1615
|
+
get: function () {
|
|
1616
|
+
return this._schemaIncludedProperties;
|
|
1617
|
+
},
|
|
1618
|
+
set: function (value) {
|
|
1619
|
+
this._schemaIncludedProperties = value;
|
|
1620
|
+
},
|
|
1621
|
+
enumerable: false,
|
|
1622
|
+
configurable: true
|
|
1623
|
+
});
|
|
1594
1624
|
Object.defineProperty(ODataVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
|
|
1595
1625
|
get: function () {
|
|
1596
1626
|
return this._groupDescriptions;
|
|
@@ -1666,6 +1696,7 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
1666
1696
|
_this._sortDescriptions = null;
|
|
1667
1697
|
_this._groupDescriptions = null;
|
|
1668
1698
|
_this._propertiesRequested = null;
|
|
1699
|
+
_this._schemaIncludedProperties = null;
|
|
1669
1700
|
_this._filterExpressions = null;
|
|
1670
1701
|
_this._summaryDescriptions = null;
|
|
1671
1702
|
_this._enableJsonp = true;
|
|
@@ -1743,6 +1774,7 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
1743
1774
|
$ret.groupDescriptions = _this._groupDescriptions;
|
|
1744
1775
|
$ret.filterExpressions = _this._filterExpressions;
|
|
1745
1776
|
$ret.propertiesRequested = _this._propertiesRequested;
|
|
1777
|
+
$ret.schemaIncludedProperties = _this._schemaIncludedProperties;
|
|
1746
1778
|
$ret.summaryDescriptions = _this._summaryDescriptions;
|
|
1747
1779
|
$ret.summaryScope = _this._summaryScope;
|
|
1748
1780
|
$ret.enableJsonp = _this._enableJsonp;
|
|
@@ -1994,6 +2026,17 @@ var ODataVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (
|
|
|
1994
2026
|
enumerable: false,
|
|
1995
2027
|
configurable: true
|
|
1996
2028
|
});
|
|
2029
|
+
Object.defineProperty(ODataVirtualDataSourceDataProvider.prototype, "schemaIncludedProperties", {
|
|
2030
|
+
get: function () {
|
|
2031
|
+
return this._schemaIncludedProperties;
|
|
2032
|
+
},
|
|
2033
|
+
set: function (value) {
|
|
2034
|
+
this._schemaIncludedProperties = value;
|
|
2035
|
+
this.queueAutoRefresh();
|
|
2036
|
+
},
|
|
2037
|
+
enumerable: false,
|
|
2038
|
+
configurable: true
|
|
2039
|
+
});
|
|
1997
2040
|
Object.defineProperty(ODataVirtualDataSourceDataProvider.prototype, "filterExpressions", {
|
|
1998
2041
|
get: function () {
|
|
1999
2042
|
return this._filterExpressions;
|
|
@@ -2436,6 +2479,7 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
2436
2479
|
_this._filterExpressions = null;
|
|
2437
2480
|
_this._summaryDescriptions = null;
|
|
2438
2481
|
_this._desiredPropeties = null;
|
|
2482
|
+
_this._schemaIncludedProperties = null;
|
|
2439
2483
|
_this._enableJsonp = true;
|
|
2440
2484
|
_this._isAggregationSupported = false;
|
|
2441
2485
|
_this._provideFullCount = null;
|
|
@@ -2484,6 +2528,12 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
2484
2528
|
}
|
|
2485
2529
|
_this._filterExpressions = settings.filterExpressions;
|
|
2486
2530
|
_this._desiredPropeties = settings.propertiesRequested;
|
|
2531
|
+
if (settings.schemaIncludedProperties != null) {
|
|
2532
|
+
_this._schemaIncludedProperties = new Set();
|
|
2533
|
+
for (var i = 0; i < settings.schemaIncludedProperties.length; i++) {
|
|
2534
|
+
_this._schemaIncludedProperties.add(settings.schemaIncludedProperties[i]);
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2487
2537
|
_this._summaryDescriptions = settings.summaryDescriptions;
|
|
2488
2538
|
_this._fixedFullCount = settings.fixedFullCount;
|
|
2489
2539
|
_this._summaryScope = settings.summaryScope;
|
|
@@ -3138,6 +3188,18 @@ var RestVirtualDataSourceDataProviderWorker = /** @class */ /*@__PURE__*/ (funct
|
|
|
3138
3188
|
var items = _this._provideItems(res);
|
|
3139
3189
|
if (items && items.length > 0) {
|
|
3140
3190
|
var schema = _this.resolveSchemaFromItems(items);
|
|
3191
|
+
if (_this._schemaIncludedProperties != null) {
|
|
3192
|
+
var propertyNames = [];
|
|
3193
|
+
var propertyTypes = [];
|
|
3194
|
+
for (var i = 0; i < schema.propertyNames.length; i++) {
|
|
3195
|
+
if (!_this._schemaIncludedProperties.has(schema.propertyNames[i])) {
|
|
3196
|
+
continue;
|
|
3197
|
+
}
|
|
3198
|
+
propertyNames.push(schema.propertyNames[i]);
|
|
3199
|
+
propertyTypes.push(schema.propertyTypes[i]);
|
|
3200
|
+
}
|
|
3201
|
+
schema = new DefaultDataSourceSchema(propertyNames, propertyTypes, schema.primaryKey, schema.propertyDataIntents, schema.subSchemas);
|
|
3202
|
+
}
|
|
3141
3203
|
finishAction(schema);
|
|
3142
3204
|
}
|
|
3143
3205
|
else {
|
|
@@ -3365,6 +3427,7 @@ var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*
|
|
|
3365
3427
|
_this._sortDescriptions = null;
|
|
3366
3428
|
_this._filterExpressions = null;
|
|
3367
3429
|
_this._propertiesRequested = null;
|
|
3430
|
+
_this._schemaIncludedProperties = null;
|
|
3368
3431
|
_this._groupDescriptions = null;
|
|
3369
3432
|
_this._summaryDescriptions = null;
|
|
3370
3433
|
_this._fixedFullCount = -1;
|
|
@@ -3429,6 +3492,16 @@ var RestVirtualDataSourceDataProviderWorkerSettings = /** @class */ /*@__PURE__*
|
|
|
3429
3492
|
enumerable: false,
|
|
3430
3493
|
configurable: true
|
|
3431
3494
|
});
|
|
3495
|
+
Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "schemaIncludedProperties", {
|
|
3496
|
+
get: function () {
|
|
3497
|
+
return this._schemaIncludedProperties;
|
|
3498
|
+
},
|
|
3499
|
+
set: function (value) {
|
|
3500
|
+
this._schemaIncludedProperties = value;
|
|
3501
|
+
},
|
|
3502
|
+
enumerable: false,
|
|
3503
|
+
configurable: true
|
|
3504
|
+
});
|
|
3432
3505
|
Object.defineProperty(RestVirtualDataSourceDataProviderWorkerSettings.prototype, "groupDescriptions", {
|
|
3433
3506
|
get: function () {
|
|
3434
3507
|
return this._groupDescriptions;
|
|
@@ -3614,6 +3687,7 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
3614
3687
|
_this._sortDescriptions = null;
|
|
3615
3688
|
_this._groupDescriptions = null;
|
|
3616
3689
|
_this._propertiesRequested = null;
|
|
3690
|
+
_this._schemaIncludedProperties = null;
|
|
3617
3691
|
_this._filterExpressions = null;
|
|
3618
3692
|
_this._summaryDescriptions = null;
|
|
3619
3693
|
_this._enableJsonp = true;
|
|
@@ -3699,6 +3773,7 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
3699
3773
|
$ret.groupDescriptions = _this._groupDescriptions;
|
|
3700
3774
|
$ret.filterExpressions = _this._filterExpressions;
|
|
3701
3775
|
$ret.propertiesRequested = _this._propertiesRequested;
|
|
3776
|
+
$ret.schemaIncludedProperties = _this._schemaIncludedProperties;
|
|
3702
3777
|
$ret.summaryDescriptions = _this._summaryDescriptions;
|
|
3703
3778
|
$ret.summaryScope = _this._summaryScope;
|
|
3704
3779
|
$ret.enableJsonp = _this._enableJsonp;
|
|
@@ -3952,6 +4027,17 @@ var RestVirtualDataSourceDataProvider = /** @class */ /*@__PURE__*/ (function (_
|
|
|
3952
4027
|
enumerable: false,
|
|
3953
4028
|
configurable: true
|
|
3954
4029
|
});
|
|
4030
|
+
Object.defineProperty(RestVirtualDataSourceDataProvider.prototype, "schemaIncludedProperties", {
|
|
4031
|
+
get: function () {
|
|
4032
|
+
return this._schemaIncludedProperties;
|
|
4033
|
+
},
|
|
4034
|
+
set: function (value) {
|
|
4035
|
+
this._schemaIncludedProperties = value;
|
|
4036
|
+
this.queueAutoRefresh();
|
|
4037
|
+
},
|
|
4038
|
+
enumerable: false,
|
|
4039
|
+
configurable: true
|
|
4040
|
+
});
|
|
3955
4041
|
Object.defineProperty(RestVirtualDataSourceDataProvider.prototype, "filterExpressions", {
|
|
3956
4042
|
get: function () {
|
|
3957
4043
|
return this._filterExpressions;
|
|
@@ -77,6 +77,9 @@ export declare class ODataVirtualDataSourceDataProvider extends Base implements
|
|
|
77
77
|
private _propertiesRequested;
|
|
78
78
|
get propertiesRequested(): string[];
|
|
79
79
|
set propertiesRequested(value: string[]);
|
|
80
|
+
private _schemaIncludedProperties;
|
|
81
|
+
get schemaIncludedProperties(): string[];
|
|
82
|
+
set schemaIncludedProperties(value: string[]);
|
|
80
83
|
private _filterExpressions;
|
|
81
84
|
get filterExpressions(): FilterExpressionCollection;
|
|
82
85
|
private _summaryDescriptions;
|
|
@@ -15,6 +15,7 @@ export declare class ODataVirtualDataSourceDataProviderWorker extends AsyncVirtu
|
|
|
15
15
|
private _summaryDescriptions;
|
|
16
16
|
private _summaryScope;
|
|
17
17
|
private _desiredPropeties;
|
|
18
|
+
private _schemaIncludedProperties;
|
|
18
19
|
private _enableJsonp;
|
|
19
20
|
private _isAggregationSupported;
|
|
20
21
|
protected get sortDescriptions(): SortDescriptionCollection;
|
|
@@ -21,6 +21,9 @@ export declare class ODataVirtualDataSourceDataProviderWorkerSettings extends As
|
|
|
21
21
|
private _propertiesRequested;
|
|
22
22
|
get propertiesRequested(): string[];
|
|
23
23
|
set propertiesRequested(value: string[]);
|
|
24
|
+
private _schemaIncludedProperties;
|
|
25
|
+
get schemaIncludedProperties(): string[];
|
|
26
|
+
set schemaIncludedProperties(value: string[]);
|
|
24
27
|
private _groupDescriptions;
|
|
25
28
|
get groupDescriptions(): SortDescriptionCollection;
|
|
26
29
|
set groupDescriptions(value: SortDescriptionCollection);
|
|
@@ -74,6 +74,9 @@ export declare class RestVirtualDataSourceDataProvider extends Base implements I
|
|
|
74
74
|
private _propertiesRequested;
|
|
75
75
|
get propertiesRequested(): string[];
|
|
76
76
|
set propertiesRequested(value: string[]);
|
|
77
|
+
private _schemaIncludedProperties;
|
|
78
|
+
get schemaIncludedProperties(): string[];
|
|
79
|
+
set schemaIncludedProperties(value: string[]);
|
|
77
80
|
private _filterExpressions;
|
|
78
81
|
get filterExpressions(): FilterExpressionCollection;
|
|
79
82
|
private _summaryDescriptions;
|
|
@@ -15,6 +15,7 @@ export declare class RestVirtualDataSourceDataProviderWorker extends AsyncVirtua
|
|
|
15
15
|
private _summaryDescriptions;
|
|
16
16
|
private _summaryScope;
|
|
17
17
|
private _desiredPropeties;
|
|
18
|
+
private _schemaIncludedProperties;
|
|
18
19
|
private _enableJsonp;
|
|
19
20
|
private _isAggregationSupported;
|
|
20
21
|
private _provideFullCount;
|
|
@@ -21,6 +21,9 @@ export declare class RestVirtualDataSourceDataProviderWorkerSettings extends Asy
|
|
|
21
21
|
private _propertiesRequested;
|
|
22
22
|
get propertiesRequested(): string[];
|
|
23
23
|
set propertiesRequested(value: string[]);
|
|
24
|
+
private _schemaIncludedProperties;
|
|
25
|
+
get schemaIncludedProperties(): string[];
|
|
26
|
+
set schemaIncludedProperties(value: string[]);
|
|
24
27
|
private _groupDescriptions;
|
|
25
28
|
get groupDescriptions(): SortDescriptionCollection;
|
|
26
29
|
set groupDescriptions(value: SortDescriptionCollection);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-webcomponents-datasources",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
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,7 +18,7 @@
|
|
|
18
18
|
"tslib": "^2.3.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"igniteui-webcomponents-core": "
|
|
21
|
+
"igniteui-webcomponents-core": "5.0.0-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"typings": "igniteui-webcomponents-datasources.d.ts",
|