@sd-angular/core 1.1.49 → 1.1.52
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/sd-angular-core-grid-material.umd.js +20 -14
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-notify.umd.js +19 -8
- package/bundles/sd-angular-core-notify.umd.js.map +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js +2 -2
- package/bundles/sd-angular-core-notify.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +2 -2
- package/esm2015/grid-material/src/lib/grid-material.component.js +4 -3
- package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +7 -2
- package/esm2015/grid-material/src/lib/pipes/selection-visible-select-all.pipe.js +3 -3
- package/esm2015/notify/src/lib/notify.service.js +20 -9
- package/esm2015/tab-router/src/lib/components/tab-router-item/tab-router-item.component.js +2 -2
- package/fesm2015/sd-angular-core-grid-material.js +12 -6
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-notify.js +19 -8
- package/fesm2015/sd-angular-core-notify.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js +1 -1
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.1.49.tgz → sd-angular-core-1.1.52.tgz} +0 -0
- package/tab-router/sd-angular-core-tab-router.metadata.json +1 -1
|
@@ -2212,7 +2212,7 @@
|
|
|
2212
2212
|
if (item[column.field]) {
|
|
2213
2213
|
obj[column.field] = ((_q = column.option) === null || _q === void 0 ? void 0 : _q.displayOnTrue) || 'True';
|
|
2214
2214
|
}
|
|
2215
|
-
else {
|
|
2215
|
+
else if (obj[column.field] !== undefined && obj[column.field] !== null) {
|
|
2216
2216
|
obj[column.field] = ((_r = column.option) === null || _r === void 0 ? void 0 : _r.displayOnFalse) || 'False';
|
|
2217
2217
|
}
|
|
2218
2218
|
return [3 /*break*/, 10];
|
|
@@ -2490,7 +2490,8 @@
|
|
|
2490
2490
|
this.onSelectAll = function () {
|
|
2491
2491
|
var _a, _b, _c;
|
|
2492
2492
|
(_a = _this.items) === null || _a === void 0 ? void 0 : _a.forEach(function (e) {
|
|
2493
|
-
|
|
2493
|
+
var _a;
|
|
2494
|
+
if (e.selectable && ((_a = e.actions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
2494
2495
|
e.isSelected = _this.isSelectAll;
|
|
2495
2496
|
}
|
|
2496
2497
|
});
|
|
@@ -3082,7 +3083,7 @@
|
|
|
3082
3083
|
SdDesktopCellView.decorators = [
|
|
3083
3084
|
{ type: core.Component, args: [{
|
|
3084
3085
|
selector: 'sd-desktop-cell-view',
|
|
3085
|
-
template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <ng-container *ngIf=\"view.display.hasHtml;else useValue\">\r\n <div *ngIf=\"view.click\" (click)=\"view.click()\" class=\"text-break cursor-pointer\" [matTooltip]=\"view.tooltip\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n <div *ngIf=\"!view.click\" class=\"text-break\" [matTooltip]=\"view.tooltip\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n </ng-container>\r\n <ng-template #useValue>\r\n <ng-container *ngIf=\"!!view.badge; else noBadge\">\r\n <sd-badge [type]=\"view.badge.type\" [title]=\"view.display.value\" [color]=\"view.badge.color\"\r\n [icon]=\"view.badge.icon\" [tooltip]=\"view.tooltip\" (sdClick)=\"!!view.click && view.click()\"></sd-badge>\r\n </ng-container>\r\n <ng-template #noBadge>\r\n <ng-container *ngIf=\"column.type !== 'children'; else childrenView\">\r\n <div *ngIf=\"column.type !== 'image'\" class=\"text-break\" [class.text-center]=\"view.display.align === 'center'\"\r\n [class.text-right]=\"view.display.align === 'right'\" [matTooltip]=\"view.tooltip\">\r\n <a *ngIf=\"!!view.click\" href=\"javascript:;\" (click)=\"view.click()\">{{view.display.value}}</a>\r\n <ng-container *ngIf=\"!view.click\">{{view.display.value}}\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"column.type === 'image'\" class=\"align-middle text-center\">\r\n <img *ngIf=\"view.display.value\" [src]=\"view.display.value\" [width]=\"column.option?.width\"\r\n [height]=\"column.option?.height\" class=\"c-image\" (click)=\"!!view.click && view.click()\"\r\n [class.cursor-pointer]=\"!!view.click\">\r\n <mat-icon *ngIf=\"!view.display.value\" class=\"c-img\" [class.cursor-pointer]=\"!!view.click\"\r\n (click)=\"!!view.click && view.click()\">\r\n image</mat-icon>\r\n </div>\r\n </ng-container>\r\n <ng-template #childrenView>\r\n <sd-desktop-cell-children-view [key]=\"key\" [item]=\"item\" [column]=\"column\">\r\n </sd-desktop-cell-children-view>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-container>",
|
|
3086
|
+
template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <ng-container *ngIf=\"view.display.hasHtml;else useValue\">\r\n <div *ngIf=\"view.click\" (click)=\"view.click()\" class=\"text-break cursor-pointer\" [matTooltip]=\"view.tooltip\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n <div *ngIf=\"!view.click\" class=\"text-break\" [matTooltip]=\"view.tooltip\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n </ng-container>\r\n <ng-template #useValue>\r\n <ng-container *ngIf=\"!!view.badge; else noBadge\">\r\n <sd-badge *ngIf=\"view.display.value\" [type]=\"view.badge.type\" [title]=\"view.display.value\" [color]=\"view.badge.color\"\r\n [icon]=\"view.badge.icon\" [tooltip]=\"view.tooltip\" (sdClick)=\"!!view.click && view.click()\"></sd-badge>\r\n </ng-container>\r\n <ng-template #noBadge>\r\n <ng-container *ngIf=\"column.type !== 'children'; else childrenView\">\r\n <div *ngIf=\"column.type !== 'image'\" class=\"text-break\" [class.text-center]=\"view.display.align === 'center'\"\r\n [class.text-right]=\"view.display.align === 'right'\" [matTooltip]=\"view.tooltip\">\r\n <a *ngIf=\"!!view.click\" href=\"javascript:;\" (click)=\"view.click()\">{{view.display.value}}</a>\r\n <ng-container *ngIf=\"!view.click\">{{view.display.value}}\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"column.type === 'image'\" class=\"align-middle text-center\">\r\n <img *ngIf=\"view.display.value\" [src]=\"view.display.value\" [width]=\"column.option?.width\"\r\n [height]=\"column.option?.height\" class=\"c-image\" (click)=\"!!view.click && view.click()\"\r\n [class.cursor-pointer]=\"!!view.click\">\r\n <mat-icon *ngIf=\"!view.display.value\" class=\"c-img\" [class.cursor-pointer]=\"!!view.click\"\r\n (click)=\"!!view.click && view.click()\">\r\n image</mat-icon>\r\n </div>\r\n </ng-container>\r\n <ng-template #childrenView>\r\n <sd-desktop-cell-children-view [key]=\"key\" [item]=\"item\" [column]=\"column\">\r\n </sd-desktop-cell-children-view>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-container>",
|
|
3086
3087
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3087
3088
|
styles: [".text-black400{color:#757575}.c-color-success{color:#4caf50}.c-color-danger{color:#f82c13}.c-image{-o-object-fit:contain;margin:5px 0;object-fit:contain}.c-img{font-size:30px;opacity:.5}.c-img.pointer:hover{opacity:.9}"]
|
|
3088
3089
|
},] }
|
|
@@ -3711,10 +3712,10 @@
|
|
|
3711
3712
|
function SdSelectionVisibleSelectAllPipe() {
|
|
3712
3713
|
var _this = this;
|
|
3713
3714
|
this.transform = function (items, selection) { return __awaiter(_this, void 0, void 0, function () {
|
|
3714
|
-
var actions, first, _loop_1,
|
|
3715
|
-
var e_1,
|
|
3716
|
-
return __generator(this, function (
|
|
3717
|
-
switch (
|
|
3715
|
+
var actions, first, _loop_1, _b, _c, action, state_1;
|
|
3716
|
+
var e_1, _d;
|
|
3717
|
+
return __generator(this, function (_e) {
|
|
3718
|
+
switch (_e.label) {
|
|
3718
3719
|
case 0:
|
|
3719
3720
|
actions = selection.actions;
|
|
3720
3721
|
if (!(actions === null || actions === void 0 ? void 0 : actions.length)) {
|
|
@@ -3728,16 +3729,16 @@
|
|
|
3728
3729
|
}
|
|
3729
3730
|
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 500); })];
|
|
3730
3731
|
case 1:
|
|
3731
|
-
|
|
3732
|
-
first = items
|
|
3732
|
+
_e.sent();
|
|
3733
|
+
first = items.find(function (t) { var _a; return (_a = t.actions) === null || _a === void 0 ? void 0 : _a.length; });
|
|
3733
3734
|
_loop_1 = function (action) {
|
|
3734
|
-
if (items.every(function (e) { return e.actions.includes(action); })) {
|
|
3735
|
+
if (items.filter(function (t) { var _a; return (_a = t.actions) === null || _a === void 0 ? void 0 : _a.length; }).every(function (e) { return e.actions.includes(action); })) {
|
|
3735
3736
|
return { value: true };
|
|
3736
3737
|
}
|
|
3737
3738
|
};
|
|
3738
3739
|
try {
|
|
3739
|
-
for (
|
|
3740
|
-
action =
|
|
3740
|
+
for (_b = __values(first.actions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3741
|
+
action = _c.value;
|
|
3741
3742
|
state_1 = _loop_1(action);
|
|
3742
3743
|
if (typeof state_1 === "object")
|
|
3743
3744
|
return [2 /*return*/, state_1.value];
|
|
@@ -3746,7 +3747,7 @@
|
|
|
3746
3747
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3747
3748
|
finally {
|
|
3748
3749
|
try {
|
|
3749
|
-
if (
|
|
3750
|
+
if (_c && !_c.done && (_d = _b.return)) _d.call(_b);
|
|
3750
3751
|
}
|
|
3751
3752
|
finally { if (e_1) throw e_1.error; }
|
|
3752
3753
|
}
|
|
@@ -4502,7 +4503,12 @@
|
|
|
4502
4503
|
case 8:
|
|
4503
4504
|
if (column.type === 'bool') {
|
|
4504
4505
|
option = column.option;
|
|
4505
|
-
|
|
4506
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
4507
|
+
result.display.value = value === true ? ((option === null || option === void 0 ? void 0 : option.displayOnTrue) || 'True') : ((option === null || option === void 0 ? void 0 : option.displayOnFalse) || 'False');
|
|
4508
|
+
}
|
|
4509
|
+
else {
|
|
4510
|
+
result.display.value = null;
|
|
4511
|
+
}
|
|
4506
4512
|
}
|
|
4507
4513
|
_d.label = 9;
|
|
4508
4514
|
case 9:
|