@sd-angular/core 1.3.156 → 1.3.157
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-table.umd.js +7 -7
- package/bundles/sd-angular-core-table.umd.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.min.js +1 -1
- package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
- package/esm2015/table/src/lib/components/desktop-command/desktop-command.component.js +2 -2
- package/esm2015/table/src/lib/pipes/command-filter.pipe.js +3 -3
- package/esm2015/table/src/lib/pipes/command-icon.pipe.js +3 -3
- package/esm2015/table/src/lib/pipes/command-title.pipe.js +3 -3
- package/fesm2015/sd-angular-core-table.js +7 -7
- package/fesm2015/sd-angular-core-table.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.156.tgz → sd-angular-core-1.3.157.tgz} +0 -0
- package/table/sd-angular-core-table.metadata.json +1 -1
- package/table/src/lib/pipes/command-icon.pipe.d.ts +2 -1
- package/table/src/lib/pipes/command-title.pipe.d.ts +2 -1
|
@@ -2552,7 +2552,7 @@
|
|
|
2552
2552
|
}
|
|
2553
2553
|
return [3 /*break*/, 7];
|
|
2554
2554
|
case 4:
|
|
2555
|
-
isHidden = hidden(item);
|
|
2555
|
+
isHidden = hidden(item.data);
|
|
2556
2556
|
if (!(isHidden instanceof Promise)) return [3 /*break*/, 6];
|
|
2557
2557
|
return [4 /*yield*/, isHidden];
|
|
2558
2558
|
case 5:
|
|
@@ -2588,7 +2588,7 @@
|
|
|
2588
2588
|
}
|
|
2589
2589
|
return [3 /*break*/, 14];
|
|
2590
2590
|
case 11:
|
|
2591
|
-
isHidden = hidden_1(item);
|
|
2591
|
+
isHidden = hidden_1(item.data);
|
|
2592
2592
|
if (!(isHidden instanceof Promise)) return [3 /*break*/, 13];
|
|
2593
2593
|
return [4 /*yield*/, isHidden];
|
|
2594
2594
|
case 12:
|
|
@@ -2675,12 +2675,12 @@
|
|
|
2675
2675
|
}
|
|
2676
2676
|
SdCommandIconPipe.prototype.transform = function (command, item) {
|
|
2677
2677
|
if (!(command === null || command === void 0 ? void 0 : command.icon)) {
|
|
2678
|
-
return
|
|
2678
|
+
return undefined;
|
|
2679
2679
|
}
|
|
2680
2680
|
if (typeof (command.icon) === 'string') {
|
|
2681
2681
|
return command.icon;
|
|
2682
2682
|
}
|
|
2683
|
-
return command.icon(item);
|
|
2683
|
+
return command.icon(item.data);
|
|
2684
2684
|
};
|
|
2685
2685
|
return SdCommandIconPipe;
|
|
2686
2686
|
}());
|
|
@@ -2695,12 +2695,12 @@
|
|
|
2695
2695
|
}
|
|
2696
2696
|
SdCommandTitlePipe.prototype.transform = function (command, item) {
|
|
2697
2697
|
if (!(command === null || command === void 0 ? void 0 : command.title)) {
|
|
2698
|
-
return
|
|
2698
|
+
return undefined;
|
|
2699
2699
|
}
|
|
2700
2700
|
if (typeof (command.title) === 'string') {
|
|
2701
2701
|
return command.title;
|
|
2702
2702
|
}
|
|
2703
|
-
return command.title(item);
|
|
2703
|
+
return command.title(item.data);
|
|
2704
2704
|
};
|
|
2705
2705
|
return SdCommandTitlePipe;
|
|
2706
2706
|
}());
|
|
@@ -2826,7 +2826,7 @@
|
|
|
2826
2826
|
SdDesktopCommand.decorators = [
|
|
2827
2827
|
{ type: core.Component, args: [{
|
|
2828
2828
|
selector: 'sd-desktop-command',
|
|
2829
|
-
template: "<ng-container *ngIf=\"item | commandFilter:commands | async; $implicit as filteredCommands\">\r\n <ng-container *ngFor=\"let command of filteredCommands\">\r\n <ng-container *ngIf=\"command?.click; else elseChildren\">\r\n <button (click)=\"command.click(item)\" [matTooltip]=\"command | commandTitle:item\" aria-hidden=\"true\"\r\n [disabled]=\"item | commandDisable:command\" mat-icon-button>\r\n <mat-icon class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-template #elseChildren>\r\n <button [matMenuTriggerFor]=\"menu\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon *ngIf=\"command?.icon\" class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"!command?.icon\" class=\"c-icon\">more_vert</mat-icon>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <span>\r\n <button *ngFor=\"let childCommand of command.children\" mat-menu-item (click)=\"childCommand.click(item)\"\r\n [disabled]=\"item | commandDisable:childCommand\">\r\n <ng-container *ngIf=\"!childCommand.htmlTemplate\">\r\n <mat-icon [fontSet]=\"command.fontSet\" class=\"c-icon\">{{childCommand | commandIcon:item}}\r\n </mat-icon>\r\n <span> {{childCommand | commandTitle:item}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"childCommand.htmlTemplate\">\r\n <div [innerHTML]=\"childCommand.htmlTemplate(item)\"></div>\r\n </ng-container>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n",
|
|
2829
|
+
template: "<ng-container *ngIf=\"item | commandFilter:commands | async; $implicit as filteredCommands\">\r\n <ng-container *ngFor=\"let command of filteredCommands\">\r\n <ng-container *ngIf=\"command?.click; else elseChildren\">\r\n <button (click)=\"command.click(item.data)\" [matTooltip]=\"command | commandTitle:item\" aria-hidden=\"true\"\r\n [disabled]=\"item | commandDisable:command\" mat-icon-button>\r\n <mat-icon class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-template #elseChildren>\r\n <button [matMenuTriggerFor]=\"menu\" aria-hidden=\"true\" mat-icon-button>\r\n <mat-icon *ngIf=\"command?.icon\" class=\"c-icon\" [fontSet]=\"command.fontSet\">{{command | commandIcon:item}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"!command?.icon\" class=\"c-icon\">more_vert</mat-icon>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <span>\r\n <button *ngFor=\"let childCommand of command.children\" mat-menu-item (click)=\"childCommand.click(item.data)\"\r\n [disabled]=\"item | commandDisable:childCommand\">\r\n <ng-container *ngIf=\"!childCommand.htmlTemplate\">\r\n <mat-icon [fontSet]=\"command.fontSet\" class=\"c-icon\">{{childCommand | commandIcon:item}}\r\n </mat-icon>\r\n <span> {{childCommand | commandTitle:item}}</span>\r\n </ng-container>\r\n <ng-container *ngIf=\"childCommand.htmlTemplate\">\r\n <div [innerHTML]=\"childCommand.htmlTemplate(item.data)\"></div>\r\n </ng-container>\r\n </button>\r\n </span>\r\n </mat-menu>\r\n </ng-template>\r\n </ng-container>\r\n</ng-container>\r\n",
|
|
2830
2830
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2831
2831
|
styles: [":host{align-items:center;display:flex}mat-icon.c-icon{color:rgba(0,0,0,.54)!important}"]
|
|
2832
2832
|
},] }
|