@ts-core/angular 11.0.68 → 11.0.73
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 +34 -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/esm2015/window/component/window-close-element/window-close-element.component.js +2 -1
- package/esm2015/window/component/window-minimize-element/window-minimize-element.component.js +2 -1
- package/esm2015/window/component/window-resize-element/window-resize-element.component.js +2 -1
- package/fesm2015/ts-core-angular.js +32 -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 +9 -10
- 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 () { };
|
|
@@ -5724,6 +5723,7 @@
|
|
|
5724
5723
|
WindowCloseElementComponent.ICON_VALUE = null;
|
|
5725
5724
|
WindowCloseElementComponent.decorators = [
|
|
5726
5725
|
{ type: i0.Component, args: [{
|
|
5726
|
+
selector: 'vi-window-close-element',
|
|
5727
5727
|
template: '',
|
|
5728
5728
|
styles: [":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]
|
|
5729
5729
|
},] }
|
|
@@ -5804,6 +5804,7 @@
|
|
|
5804
5804
|
WindowMinimizeElementComponent.ICON_MAXIMIZE_VALUE = null;
|
|
5805
5805
|
WindowMinimizeElementComponent.decorators = [
|
|
5806
5806
|
{ type: i0.Component, args: [{
|
|
5807
|
+
selector: 'vi-window-minimize-element',
|
|
5807
5808
|
template: '',
|
|
5808
5809
|
styles: [":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]
|
|
5809
5810
|
},] }
|
|
@@ -5864,6 +5865,7 @@
|
|
|
5864
5865
|
WindowResizeElementComponent.ICON_VALUE = null;
|
|
5865
5866
|
WindowResizeElementComponent.decorators = [
|
|
5866
5867
|
{ type: i0.Component, args: [{
|
|
5868
|
+
selector: 'vi-window-resize-element',
|
|
5867
5869
|
template: '',
|
|
5868
5870
|
styles: [":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]
|
|
5869
5871
|
},] }
|
|
@@ -5887,7 +5889,7 @@
|
|
|
5887
5889
|
if (!this.config.isResizeable) {
|
|
5888
5890
|
return;
|
|
5889
5891
|
}
|
|
5890
|
-
ViewUtil.addClass(this.container, 'resizeable');
|
|
5892
|
+
ViewUtil.addClass(this.container, 'vi-resizeable');
|
|
5891
5893
|
if (_.isNil(this.resizeMoveHandlerProxy)) {
|
|
5892
5894
|
this.resizeMoveHandlerProxy = this.resizeMoveHandler.bind(this);
|
|
5893
5895
|
}
|
|
@@ -5982,7 +5984,7 @@
|
|
|
5982
5984
|
if (this.config.isModal) {
|
|
5983
5985
|
return;
|
|
5984
5986
|
}
|
|
5985
|
-
ViewUtil.addClass(this.container, 'draggable');
|
|
5987
|
+
ViewUtil.addClass(this.container, 'vi-draggable');
|
|
5986
5988
|
if (!this.config.isContentDragable) {
|
|
5987
5989
|
return;
|
|
5988
5990
|
}
|
|
@@ -6109,14 +6111,14 @@
|
|
|
6109
6111
|
});
|
|
6110
6112
|
Object.defineProperty(WindowBaseComponent.prototype, "disabledClass", {
|
|
6111
6113
|
get: function () {
|
|
6112
|
-
return 'disabled';
|
|
6114
|
+
return 'vi-disabled';
|
|
6113
6115
|
},
|
|
6114
6116
|
enumerable: false,
|
|
6115
6117
|
configurable: true
|
|
6116
6118
|
});
|
|
6117
6119
|
Object.defineProperty(WindowBaseComponent.prototype, "minimizedClass", {
|
|
6118
6120
|
get: function () {
|
|
6119
|
-
return 'minimized';
|
|
6121
|
+
return 'vi-minimized';
|
|
6120
6122
|
},
|
|
6121
6123
|
enumerable: false,
|
|
6122
6124
|
configurable: true
|
|
@@ -8274,8 +8276,9 @@
|
|
|
8274
8276
|
// Constructor
|
|
8275
8277
|
//
|
|
8276
8278
|
// --------------------------------------------------------------------------
|
|
8277
|
-
function CdkTablePaginableComponent() {
|
|
8279
|
+
function CdkTablePaginableComponent(container) {
|
|
8278
8280
|
var _this = _super.call(this) || this;
|
|
8281
|
+
ViewUtil.addClasses(container, 'd-flex flex-column scroll-no');
|
|
8279
8282
|
_this._paginator = { pageSizes: [10, 25, 100], hidePageSize: false, showFirstLastButtons: true };
|
|
8280
8283
|
return _this;
|
|
8281
8284
|
}
|
|
@@ -8311,10 +8314,12 @@
|
|
|
8311
8314
|
CdkTablePaginableComponent.decorators = [
|
|
8312
8315
|
{ type: i0.Component, args: [{
|
|
8313
8316
|
selector: 'vi-cdk-table-paginable',
|
|
8314
|
-
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>"
|
|
8315
8318
|
},] }
|
|
8316
8319
|
];
|
|
8317
|
-
CdkTablePaginableComponent.ctorParameters = function () { return [
|
|
8320
|
+
CdkTablePaginableComponent.ctorParameters = function () { return [
|
|
8321
|
+
{ type: i0.ViewContainerRef }
|
|
8322
|
+
]; };
|
|
8318
8323
|
CdkTablePaginableComponent.propDecorators = {
|
|
8319
8324
|
paginator: [{ type: i0.Input }]
|
|
8320
8325
|
};
|
|
@@ -8326,18 +8331,22 @@
|
|
|
8326
8331
|
// Constructor
|
|
8327
8332
|
//
|
|
8328
8333
|
// --------------------------------------------------------------------------
|
|
8329
|
-
function CdkTableFilterableComponent() {
|
|
8330
|
-
|
|
8334
|
+
function CdkTableFilterableComponent(container) {
|
|
8335
|
+
var _this = _super.call(this) || this;
|
|
8336
|
+
ViewUtil.addClasses(container, 'd-flex flex-column scroll-no');
|
|
8337
|
+
return _this;
|
|
8331
8338
|
}
|
|
8332
8339
|
return CdkTableFilterableComponent;
|
|
8333
8340
|
}(CdkTableBaseComponent));
|
|
8334
8341
|
CdkTableFilterableComponent.decorators = [
|
|
8335
8342
|
{ type: i0.Component, args: [{
|
|
8336
8343
|
selector: 'vi-cdk-table-filterable',
|
|
8337
|
-
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"
|
|
8338
8345
|
},] }
|
|
8339
8346
|
];
|
|
8340
|
-
CdkTableFilterableComponent.ctorParameters = function () { return [
|
|
8347
|
+
CdkTableFilterableComponent.ctorParameters = function () { return [
|
|
8348
|
+
{ type: i0.ViewContainerRef }
|
|
8349
|
+
]; };
|
|
8341
8350
|
|
|
8342
8351
|
var CdkTableColumnValuePipe = /** @class */ (function () {
|
|
8343
8352
|
function CdkTableColumnValuePipe() {
|
|
@@ -10312,17 +10321,18 @@
|
|
|
10312
10321
|
// Public Methods
|
|
10313
10322
|
//
|
|
10314
10323
|
// --------------------------------------------------------------------------
|
|
10315
|
-
RouterBaseService.prototype.isUrlActive = function (
|
|
10324
|
+
RouterBaseService.prototype.isUrlActive = function (item, isExact) {
|
|
10316
10325
|
if (isExact === void 0) { isExact = false; }
|
|
10317
10326
|
if (isExact) {
|
|
10318
|
-
return this.router.isActive(
|
|
10327
|
+
return this.router.isActive(item, isExact);
|
|
10319
10328
|
}
|
|
10320
|
-
if (_.isString(
|
|
10321
|
-
|
|
10329
|
+
if (_.isString(item)) {
|
|
10330
|
+
item = this.router.parseUrl(item);
|
|
10322
10331
|
}
|
|
10323
|
-
var
|
|
10324
|
-
|
|
10325
|
-
|
|
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();
|
|
10326
10336
|
};
|
|
10327
10337
|
// --------------------------------------------------------------------------
|
|
10328
10338
|
//
|