@ts-core/angular 11.0.69 → 11.0.74
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/ts-core-angular.umd.js +31 -24
- package/bundles/ts-core-angular.umd.js.map +1 -1
- package/bundles/ts-core-angular.umd.min.js +1 -1
- package/bundles/ts-core-angular.umd.min.js.map +1 -1
- package/component/cdk-table/cdk-table-filterable/cdk-table-filterable.component.d.ts +2 -1
- package/component/cdk-table/cdk-table-paginable/cdk-table-paginable.component.d.ts +2 -1
- package/esm2015/bottomSheet/component/BottomSheetImpl.js +3 -4
- package/esm2015/component/cdk-table/cdk-table-filterable/cdk-table-filterable.component.js +9 -5
- package/esm2015/component/cdk-table/cdk-table-paginable/cdk-table-paginable.component.js +9 -5
- package/esm2015/notification/NotificationImpl.js +2 -2
- package/esm2015/service/RouterBaseService.js +9 -8
- package/esm2015/window/WindowImpl.js +3 -3
- package/esm2015/window/component/WindowBaseComponent.js +3 -3
- package/esm2015/window/component/WindowDragable.js +2 -2
- package/esm2015/window/component/WindowResizeable.js +2 -2
- package/fesm2015/ts-core-angular.js +29 -23
- package/fesm2015/ts-core-angular.js.map +1 -1
- package/package.json +1 -1
- package/service/RouterBaseService.d.ts +1 -1
- package/style/mat/bootstrap/_border.scss +2 -2
- package/style/mat/vi-mat.scss +5 -6
- package/ts-core-angular.metadata.json +1 -1
|
@@ -2036,7 +2036,7 @@
|
|
|
2036
2036
|
// --------------------------------------------------------------------------
|
|
2037
2037
|
NotificationImpl.prototype.setProperties = function () {
|
|
2038
2038
|
_super.prototype.setProperties.call(this);
|
|
2039
|
-
ViewUtil.addClass(this.container, 'notification');
|
|
2039
|
+
ViewUtil.addClass(this.container, 'vi-notification');
|
|
2040
2040
|
};
|
|
2041
2041
|
NotificationImpl.prototype.getConfig = function () {
|
|
2042
2042
|
return this.properties.config;
|
|
@@ -4823,8 +4823,8 @@
|
|
|
4823
4823
|
}
|
|
4824
4824
|
WindowImpl.prototype.setProperties = function () {
|
|
4825
4825
|
_super.prototype.setProperties.call(this);
|
|
4826
|
-
ViewUtil.addClass(this.container, 'window');
|
|
4827
|
-
ViewUtil.toggleClass(this.container, 'modal', this.config.isModal);
|
|
4826
|
+
ViewUtil.addClass(this.container, 'vi-window');
|
|
4827
|
+
ViewUtil.toggleClass(this.container, 'vi-modal', this.config.isModal);
|
|
4828
4828
|
if (!this.config.isModal) {
|
|
4829
4829
|
this.container.addEventListener('click', this.mouseClickHandlerProxy, true);
|
|
4830
4830
|
this.container.addEventListener('mousedown', this.mouseDownHandlerProxy);
|
|
@@ -5146,7 +5146,6 @@
|
|
|
5146
5146
|
_this.isBlink = !_this.isBlink;
|
|
5147
5147
|
};
|
|
5148
5148
|
_this.observer = new rxjs.Subject();
|
|
5149
|
-
console.log(_this);
|
|
5150
5149
|
_this.properties = properties;
|
|
5151
5150
|
_this.content.window = _this;
|
|
5152
5151
|
_this.setProperties();
|
|
@@ -5155,8 +5154,8 @@
|
|
|
5155
5154
|
return _this;
|
|
5156
5155
|
}
|
|
5157
5156
|
BottomSheetImpl.prototype.setProperties = function () {
|
|
5158
|
-
ViewUtil.addClass(this.container, 'bottom-sheet');
|
|
5159
|
-
ViewUtil.toggleClass(this.container, 'modal', this.config.isModal);
|
|
5157
|
+
ViewUtil.addClass(this.container, 'vi-bottom-sheet');
|
|
5158
|
+
ViewUtil.toggleClass(this.container, 'vi-modal', this.config.isModal);
|
|
5160
5159
|
};
|
|
5161
5160
|
BottomSheetImpl.prototype.commitIsBlinkProperties = function () { };
|
|
5162
5161
|
BottomSheetImpl.prototype.commitIsDisabledProperties = function () { };
|
|
@@ -5890,7 +5889,7 @@
|
|
|
5890
5889
|
if (!this.config.isResizeable) {
|
|
5891
5890
|
return;
|
|
5892
5891
|
}
|
|
5893
|
-
ViewUtil.addClass(this.container, 'resizeable');
|
|
5892
|
+
ViewUtil.addClass(this.container, 'vi-resizeable');
|
|
5894
5893
|
if (_.isNil(this.resizeMoveHandlerProxy)) {
|
|
5895
5894
|
this.resizeMoveHandlerProxy = this.resizeMoveHandler.bind(this);
|
|
5896
5895
|
}
|
|
@@ -5985,7 +5984,7 @@
|
|
|
5985
5984
|
if (this.config.isModal) {
|
|
5986
5985
|
return;
|
|
5987
5986
|
}
|
|
5988
|
-
ViewUtil.addClass(this.container, 'draggable');
|
|
5987
|
+
ViewUtil.addClass(this.container, 'vi-draggable');
|
|
5989
5988
|
if (!this.config.isContentDragable) {
|
|
5990
5989
|
return;
|
|
5991
5990
|
}
|
|
@@ -6112,14 +6111,14 @@
|
|
|
6112
6111
|
});
|
|
6113
6112
|
Object.defineProperty(WindowBaseComponent.prototype, "disabledClass", {
|
|
6114
6113
|
get: function () {
|
|
6115
|
-
return 'disabled';
|
|
6114
|
+
return 'vi-disabled';
|
|
6116
6115
|
},
|
|
6117
6116
|
enumerable: false,
|
|
6118
6117
|
configurable: true
|
|
6119
6118
|
});
|
|
6120
6119
|
Object.defineProperty(WindowBaseComponent.prototype, "minimizedClass", {
|
|
6121
6120
|
get: function () {
|
|
6122
|
-
return 'minimized';
|
|
6121
|
+
return 'vi-minimized';
|
|
6123
6122
|
},
|
|
6124
6123
|
enumerable: false,
|
|
6125
6124
|
configurable: true
|
|
@@ -8277,8 +8276,9 @@
|
|
|
8277
8276
|
// Constructor
|
|
8278
8277
|
//
|
|
8279
8278
|
// --------------------------------------------------------------------------
|
|
8280
|
-
function CdkTablePaginableComponent() {
|
|
8279
|
+
function CdkTablePaginableComponent(container) {
|
|
8281
8280
|
var _this = _super.call(this) || this;
|
|
8281
|
+
ViewUtil.addClasses(container, 'd-flex flex-column scroll-no');
|
|
8282
8282
|
_this._paginator = { pageSizes: [10, 25, 100], hidePageSize: false, showFirstLastButtons: true };
|
|
8283
8283
|
return _this;
|
|
8284
8284
|
}
|
|
@@ -8314,10 +8314,12 @@
|
|
|
8314
8314
|
CdkTablePaginableComponent.decorators = [
|
|
8315
8315
|
{ type: i0.Component, args: [{
|
|
8316
8316
|
selector: 'vi-cdk-table-paginable',
|
|
8317
|
-
template: "<mat-table matSort [dataSource]=\"table?.table?.dataSource\" [trackBy]=\"table.trackByFn\" [matSortActive]=\"sortActive\" [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\" (matSortChange)=\"table.sortEventHandler($event)\">\n \n <ng-container *ngFor=\"let column of columns;trackBy:columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell class=\"px-2\" mat-sort-header [disableClear]=\"true\" [disabled]=\"column.isDisableSort\" [ngClass]=\"column.headerClassName\" \n *matHeaderCellDef>\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n \n <mat-cell class=\"px-2\" (click)=\"cellClickHandler(row, column)\" *matCellDef=\"let row\" \n [ngClass]=\"row | viCdkTableColumnClassName: column\" [ngStyle]=\"row | viCdkTableColumnStyleName: column\" >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n \n <mat-row class=\"mat-list-item\" *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows : selectedRows\" [ngStyle]=\"row | viCdkTableRowStyleName: rows : selectedRows\"\n (click)=\"rowClicked.emit(row)\"></mat-row>\n\n</mat-table>\n\n<p class=\"p-3 text-center mouse-inactive\" *ngIf=\"table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\"\n style=\"margin-bottom: -1px;\"></mat-progress-bar>\n\n<mat-paginator class=\"justify-content-center border-sm-top\" [pageSize]=\"table?.pageSize\" [pageIndex]=\"table?.pageIndex\" [length]=\"table?.total\"
|
|
8317
|
+
template: "<mat-table class=\"flex-grow-1 vertical-scroll-only\" matSort [dataSource]=\"table?.table?.dataSource\" [trackBy]=\"table.trackByFn\" [matSortActive]=\"sortActive\" [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\" (matSortChange)=\"table.sortEventHandler($event)\">\n \n <ng-container *ngFor=\"let column of columns;trackBy:columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell class=\"px-2\" mat-sort-header [disableClear]=\"true\" [disabled]=\"column.isDisableSort\" [ngClass]=\"column.headerClassName\" \n *matHeaderCellDef>\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n \n <mat-cell class=\"px-2\" (click)=\"cellClickHandler(row, column)\" *matCellDef=\"let row\" \n [ngClass]=\"row | viCdkTableColumnClassName: column\" [ngStyle]=\"row | viCdkTableColumnStyleName: column\" >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n \n <mat-row class=\"mat-list-item\" *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows : selectedRows\" [ngStyle]=\"row | viCdkTableRowStyleName: rows : selectedRows\"\n (click)=\"rowClicked.emit(row)\"></mat-row>\n\n</mat-table>\n\n<p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" *ngIf=\"table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\"\n style=\"margin-bottom: -1px;\"></mat-progress-bar>\n\n<mat-paginator class=\"flex-shrink-0 justify-content-center border-sm-top\" [pageSize]=\"table?.pageSize\" [pageIndex]=\"table?.pageIndex\" \n [length]=\"table?.total\" (page)=\"table?.pageEventHandler($event)\"\n [pageSizeOptions]=\"paginator?.pageSizes\" [showFirstLastButtons]=\"paginator?.showFirstLastButtons\" \n [hidePageSize]=\"paginator?.hidePageSize\" *ngIf=\"paginator && table?.length > 0\"></mat-paginator>"
|
|
8318
8318
|
},] }
|
|
8319
8319
|
];
|
|
8320
|
-
CdkTablePaginableComponent.ctorParameters = function () { return [
|
|
8320
|
+
CdkTablePaginableComponent.ctorParameters = function () { return [
|
|
8321
|
+
{ type: i0.ViewContainerRef }
|
|
8322
|
+
]; };
|
|
8321
8323
|
CdkTablePaginableComponent.propDecorators = {
|
|
8322
8324
|
paginator: [{ type: i0.Input }]
|
|
8323
8325
|
};
|
|
@@ -8329,18 +8331,22 @@
|
|
|
8329
8331
|
// Constructor
|
|
8330
8332
|
//
|
|
8331
8333
|
// --------------------------------------------------------------------------
|
|
8332
|
-
function CdkTableFilterableComponent() {
|
|
8333
|
-
|
|
8334
|
+
function CdkTableFilterableComponent(container) {
|
|
8335
|
+
var _this = _super.call(this) || this;
|
|
8336
|
+
ViewUtil.addClasses(container, 'd-flex flex-column scroll-no');
|
|
8337
|
+
return _this;
|
|
8334
8338
|
}
|
|
8335
8339
|
return CdkTableFilterableComponent;
|
|
8336
8340
|
}(CdkTableBaseComponent));
|
|
8337
8341
|
CdkTableFilterableComponent.decorators = [
|
|
8338
8342
|
{ type: i0.Component, args: [{
|
|
8339
8343
|
selector: 'vi-cdk-table-filterable',
|
|
8340
|
-
template: "<mat-table matSort [dataSource]=\"table?.table?.dataSource\" [matSortActive]=\"sortActive\" [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\" (matSortChange)=\"table.sortEventHandler($event)\">\n \n <ng-container *ngFor=\"let column of columns;trackBy:columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell class=\"px-2\" mat-sort-header [disableClear]=\"true\" [disabled]=\"column.isDisableSort\" [ngClass]=\"column.headerClassName\" \n *matHeaderCellDef>\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n <mat-cell class=\"px-2\" (click)=\"cellClickHandler(row, column)\" *matCellDef=\"let row\" \n [ngClass]=\"row | viCdkTableColumnClassName: column\" [ngStyle]=\"row | viCdkTableColumnStyleName: column\" >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row class=\"mat-list-item\" *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows : selectedRows\" [ngStyle]=\"row | viCdkTableRowStyleName: rows : selectedRows\"\n (click)=\"rowClicked.emit(row)\"></mat-row>\n\n</mat-table>\n\n<p class=\"p-3 text-center mouse-inactive\" *ngIf=\"!table?.isLoading && table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\"\n style=\"margin-bottom: -1px;\"></mat-progress-bar>\n"
|
|
8344
|
+
template: "<mat-table class=\"flex-grow-1 vertical-scroll-only\" matSort [dataSource]=\"table?.table?.dataSource\" [matSortActive]=\"sortActive\" [matSortDirection]=\"sortDirection\"\n [class.mat-nav-list]=\"settings?.isInteractive\" (matSortChange)=\"table.sortEventHandler($event)\">\n \n <ng-container *ngFor=\"let column of columns;trackBy:columnTrackBy\">\n <ng-container [matColumnDef]=\"column.name\">\n <mat-header-cell class=\"px-2\" mat-sort-header [disableClear]=\"true\" [disabled]=\"column.isDisableSort\" [ngClass]=\"column.headerClassName\" \n *matHeaderCellDef>\n <span [innerHTML]=\"column.headerId | viTranslate\"></span>\n </mat-header-cell>\n <mat-cell class=\"px-2\" (click)=\"cellClickHandler(row, column)\" *matCellDef=\"let row\" \n [ngClass]=\"row | viCdkTableColumnClassName: column\" [ngStyle]=\"row | viCdkTableColumnStyleName: column\" >\n <span [ngClass]=\"column | viCdkTableCellClassName\" [vi-html-content-title]=\"row | viCdkTableColumnValue: column\"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"columnNames\"></mat-header-row>\n\n <mat-row class=\"mat-list-item\" *matRowDef=\"let row; columns: columnNames\"\n [ngClass]=\"row | viCdkTableRowClassName: rows : selectedRows\" [ngStyle]=\"row | viCdkTableRowStyleName: rows : selectedRows\"\n (click)=\"rowClicked.emit(row)\"></mat-row>\n\n</mat-table>\n\n<p class=\"p-3 flex-shrink-0 text-center mouse-inactive\" *ngIf=\"!table?.isLoading && table?.length === 0\" [innerHTML]=\"settings?.noDataId | viTranslate\"></p>\n\n<mat-progress-bar class=\"flex-shrink-0 border transparent\" mode=\"indeterminate\" *ngIf=\"table?.isLoading\"\n style=\"margin-bottom: -1px;\"></mat-progress-bar>\n"
|
|
8341
8345
|
},] }
|
|
8342
8346
|
];
|
|
8343
|
-
CdkTableFilterableComponent.ctorParameters = function () { return [
|
|
8347
|
+
CdkTableFilterableComponent.ctorParameters = function () { return [
|
|
8348
|
+
{ type: i0.ViewContainerRef }
|
|
8349
|
+
]; };
|
|
8344
8350
|
|
|
8345
8351
|
var CdkTableColumnValuePipe = /** @class */ (function () {
|
|
8346
8352
|
function CdkTableColumnValuePipe() {
|
|
@@ -10315,17 +10321,18 @@
|
|
|
10315
10321
|
// Public Methods
|
|
10316
10322
|
//
|
|
10317
10323
|
// --------------------------------------------------------------------------
|
|
10318
|
-
RouterBaseService.prototype.isUrlActive = function (
|
|
10324
|
+
RouterBaseService.prototype.isUrlActive = function (item, isExact) {
|
|
10319
10325
|
if (isExact === void 0) { isExact = false; }
|
|
10320
10326
|
if (isExact) {
|
|
10321
|
-
return this.router.isActive(
|
|
10327
|
+
return this.router.isActive(item, isExact);
|
|
10322
10328
|
}
|
|
10323
|
-
if (_.isString(
|
|
10324
|
-
|
|
10329
|
+
if (_.isString(item)) {
|
|
10330
|
+
item = this.router.parseUrl(item);
|
|
10325
10331
|
}
|
|
10326
|
-
var
|
|
10327
|
-
|
|
10328
|
-
|
|
10332
|
+
var current = this.router.parseUrl(this.urlTree.toString());
|
|
10333
|
+
item.fragment = current.fragment = null;
|
|
10334
|
+
item.queryParams = current.queryParams = {};
|
|
10335
|
+
return item.toString() === current.toString();
|
|
10329
10336
|
};
|
|
10330
10337
|
// --------------------------------------------------------------------------
|
|
10331
10338
|
//
|