@universis/ngx-tables 6.13.9 → 6.14.2
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/README.md +1 -1
- package/bundles/universis-ngx-tables.umd.js +18 -3
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/components/advanced-list/advanced-list.component.js +2 -2
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +22 -4
- package/esm5/lib/components/advanced-list/advanced-list.component.js +2 -2
- package/esm5/lib/components/advanced-table/advanced-table.component.js +21 -4
- package/fesm2015/universis-ngx-tables.js +20 -4
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +20 -5
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-list/advanced-list.component.d.ts +3 -3
- package/lib/components/advanced-table/advanced-table.component.d.ts +3 -2
- package/package.json +1 -1
- package/universis-ngx-tables.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ and load a table configuration:
|
|
|
62
62
|
"criteria": [
|
|
63
63
|
{
|
|
64
64
|
"name": "studentName",
|
|
65
|
-
"filter": "(indexof(person/familyName, '${value}') ge 0 or indexof(person/givenName, '${value}') ge 0)",
|
|
65
|
+
"filter": "(indexof(person/familyName, '${value}') ge 0 or indexof(person/givenName, '${value}') ge 0 or indexof(concat(person/familyName, ' ', person/givenName),'${value}') ge 0)",
|
|
66
66
|
"type": "text"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
@@ -2044,7 +2044,7 @@
|
|
|
2044
2044
|
return (Number(String(Math.random()).slice(2))).toString(36);
|
|
2045
2045
|
}
|
|
2046
2046
|
var AdvancedTableComponent = /** @class */ (function () {
|
|
2047
|
-
function AdvancedTableComponent(_context, _columnFormatters, _activatedRoute, _translateService, _injector, _advancedFilterValueProvider, _element, _template, _loading, _http, _columnSelector, _configuration, _exportSpreadsheet, _modalService, _errorService, _viewContainerRef) {
|
|
2047
|
+
function AdvancedTableComponent(_context, _columnFormatters, _activatedRoute, _translateService, _injector, _advancedFilterValueProvider, _element, _template, _loading, _http, _columnSelector, _configuration, _exportSpreadsheet, _modalService, _errorService, _viewContainerRef, _errorHandler) {
|
|
2048
2048
|
var _this = this;
|
|
2049
2049
|
this._context = _context;
|
|
2050
2050
|
this._columnFormatters = _columnFormatters;
|
|
@@ -2062,6 +2062,7 @@
|
|
|
2062
2062
|
this._modalService = _modalService;
|
|
2063
2063
|
this._errorService = _errorService;
|
|
2064
2064
|
this._viewContainerRef = _viewContainerRef;
|
|
2065
|
+
this._errorHandler = _errorHandler;
|
|
2065
2066
|
this._firstLoad = true;
|
|
2066
2067
|
this._showFooter = false;
|
|
2067
2068
|
this._showHeader = true;
|
|
@@ -3628,6 +3629,19 @@
|
|
|
3628
3629
|
}
|
|
3629
3630
|
if (err) {
|
|
3630
3631
|
this.lastError = err;
|
|
3632
|
+
if (typeof err.status === 'number') {
|
|
3633
|
+
if (this._errorHandler) {
|
|
3634
|
+
// a backward compatibility assignment of rejection property
|
|
3635
|
+
// following @universis/common#ErrorsHandler.handleError contract
|
|
3636
|
+
Object.assign(err, {
|
|
3637
|
+
rejection: {
|
|
3638
|
+
status: err.status,
|
|
3639
|
+
statusText: err.statusText
|
|
3640
|
+
}
|
|
3641
|
+
});
|
|
3642
|
+
this._errorHandler.handleError(err);
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3631
3645
|
if (innerMessage) {
|
|
3632
3646
|
innerMessage.innerHTML = err.error && err.error.message ? err.error.message : err.message;
|
|
3633
3647
|
}
|
|
@@ -3988,7 +4002,8 @@
|
|
|
3988
4002
|
{ type: i2.ExportSpreadsheetService },
|
|
3989
4003
|
{ type: i2.ModalService },
|
|
3990
4004
|
{ type: i2.ErrorService },
|
|
3991
|
-
{ type: i0.ViewContainerRef }
|
|
4005
|
+
{ type: i0.ViewContainerRef },
|
|
4006
|
+
{ type: i0.ErrorHandler, decorators: [{ type: i0.Optional }] }
|
|
3992
4007
|
];
|
|
3993
4008
|
};
|
|
3994
4009
|
AdvancedTableComponent.propDecorators = {
|
|
@@ -4082,7 +4097,7 @@
|
|
|
4082
4097
|
/**
|
|
4083
4098
|
* @return {?}
|
|
4084
4099
|
*/
|
|
4085
|
-
AdvancedListComponent.prototype.
|
|
4100
|
+
AdvancedListComponent.prototype.ngAfterViewInit = /**
|
|
4086
4101
|
* @return {?}
|
|
4087
4102
|
*/
|
|
4088
4103
|
function () {
|