@kris701/ez-ui 1.4.7 → 1.4.8
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.
|
@@ -414,7 +414,7 @@ class EzUIDialog {
|
|
|
414
414
|
</tui-loader>
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
@if(!isLoading() && (showSave || showDelete)){
|
|
417
|
+
@if(!isLoading() && (showSave || showDelete || footer)){
|
|
418
418
|
<footer class="dialog-footer">
|
|
419
419
|
@if(showSave){
|
|
420
420
|
<button tuiButton iconStart="save" size="s" (click)="onSaveItem.emit()">Save</button>
|
|
@@ -459,7 +459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
459
459
|
</tui-loader>
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
@if(!isLoading() && (showSave || showDelete)){
|
|
462
|
+
@if(!isLoading() && (showSave || showDelete || footer)){
|
|
463
463
|
<footer class="dialog-footer">
|
|
464
464
|
@if(showSave){
|
|
465
465
|
<button tuiButton iconStart="save" size="s" (click)="onSaveItem.emit()">Save</button>
|
|
@@ -4835,6 +4835,7 @@ class EzUITable {
|
|
|
4835
4835
|
tableHeader;
|
|
4836
4836
|
tableRows;
|
|
4837
4837
|
tableExpandedrow;
|
|
4838
|
+
actionsHeader;
|
|
4838
4839
|
presetHeader;
|
|
4839
4840
|
disabled = false;
|
|
4840
4841
|
isLoading = signal(false, /* @ts-ignore */
|
|
@@ -4949,7 +4950,7 @@ class EzUITable {
|
|
|
4949
4950
|
this.applyFilter();
|
|
4950
4951
|
}
|
|
4951
4952
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUITable, deps: [{ token: EzUITableFilterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4952
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITable, isStandalone: true, selector: "ezui-table", inputs: { disabled: "disabled", isLoading: "isLoading", showAdd: "showAdd", showRefresh: "showRefresh", showClearFilters: "showClearFilters", expandable: "expandable", clickable: "clickable", values: "values", storageKey: "storageKey", allowPresets: "allowPresets", showContextMenu: "showContextMenu", contextMenuItems: "contextMenuItems", pageSize: "pageSize" }, outputs: { onAddItem: "onAddItem", onLoadItems: "onLoadItems", onRowExpanded: "onRowExpanded", onRowClick: "onRowClick", onPresetChange: "onPresetChange" }, host: { classAttribute: "w-full h-full" }, queries: [{ propertyName: "tableHeader", first: true, predicate: ["tableHeader"], descendants: true }, { propertyName: "tableRows", first: true, predicate: ["tableRows"], descendants: true }, { propertyName: "tableExpandedrow", first: true, predicate: ["tableExpandedrow"], descendants: true }], viewQueries: [{ propertyName: "presetHeader", first: true, predicate: ["presetHeader"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
4953
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUITable, isStandalone: true, selector: "ezui-table", inputs: { disabled: "disabled", isLoading: "isLoading", showAdd: "showAdd", showRefresh: "showRefresh", showClearFilters: "showClearFilters", expandable: "expandable", clickable: "clickable", values: "values", storageKey: "storageKey", allowPresets: "allowPresets", showContextMenu: "showContextMenu", contextMenuItems: "contextMenuItems", pageSize: "pageSize" }, outputs: { onAddItem: "onAddItem", onLoadItems: "onLoadItems", onRowExpanded: "onRowExpanded", onRowClick: "onRowClick", onPresetChange: "onPresetChange" }, host: { classAttribute: "w-full h-full" }, queries: [{ propertyName: "tableHeader", first: true, predicate: ["tableHeader"], descendants: true }, { propertyName: "tableRows", first: true, predicate: ["tableRows"], descendants: true }, { propertyName: "tableExpandedrow", first: true, predicate: ["tableExpandedrow"], descendants: true }, { propertyName: "actionsHeader", first: true, predicate: ["actionsHeader"], descendants: true }], viewQueries: [{ propertyName: "presetHeader", first: true, predicate: ["presetHeader"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
4953
4954
|
<div class="ezui-table">
|
|
4954
4955
|
<tui-loader [inheritColor]="true" [overlay]="true" size="xxl" [loading]="isLoading()">
|
|
4955
4956
|
@if(values === null || values.length == 0){
|
|
@@ -4974,7 +4975,7 @@ class EzUITable {
|
|
|
4974
4975
|
}
|
|
4975
4976
|
}
|
|
4976
4977
|
@else {
|
|
4977
|
-
@if(showAdd || showRefresh || showClearFilters){
|
|
4978
|
+
@if(showAdd || showRefresh || showClearFilters || actionsHeader || allowPresets){
|
|
4978
4979
|
<div class="ezui-table-header">
|
|
4979
4980
|
@if(showRefresh){
|
|
4980
4981
|
<button tuiButton iconStart="rotate-cw" size="s" appearance="info" (click)="onLoadItems.emit()" tuiHint="Refresh the table"></button>
|
|
@@ -4985,6 +4986,9 @@ class EzUITable {
|
|
|
4985
4986
|
@if(showClearFilters){
|
|
4986
4987
|
<button tuiButton iconStart="funnel-x" size="s" appearance="info" (click)="clearFilters()" tuiHint="Clear filters"></button>
|
|
4987
4988
|
}
|
|
4989
|
+
@if(actionsHeader){
|
|
4990
|
+
<ng-container [ngTemplateOutlet]="actionsHeader"></ng-container>
|
|
4991
|
+
}
|
|
4988
4992
|
|
|
4989
4993
|
@if(allowPresets){
|
|
4990
4994
|
<div class="seperator"></div>
|
|
@@ -5131,7 +5135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5131
5135
|
}
|
|
5132
5136
|
}
|
|
5133
5137
|
@else {
|
|
5134
|
-
@if(showAdd || showRefresh || showClearFilters){
|
|
5138
|
+
@if(showAdd || showRefresh || showClearFilters || actionsHeader || allowPresets){
|
|
5135
5139
|
<div class="ezui-table-header">
|
|
5136
5140
|
@if(showRefresh){
|
|
5137
5141
|
<button tuiButton iconStart="rotate-cw" size="s" appearance="info" (click)="onLoadItems.emit()" tuiHint="Refresh the table"></button>
|
|
@@ -5142,6 +5146,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5142
5146
|
@if(showClearFilters){
|
|
5143
5147
|
<button tuiButton iconStart="funnel-x" size="s" appearance="info" (click)="clearFilters()" tuiHint="Clear filters"></button>
|
|
5144
5148
|
}
|
|
5149
|
+
@if(actionsHeader){
|
|
5150
|
+
<ng-container [ngTemplateOutlet]="actionsHeader"></ng-container>
|
|
5151
|
+
}
|
|
5145
5152
|
|
|
5146
5153
|
@if(allowPresets){
|
|
5147
5154
|
<div class="seperator"></div>
|
|
@@ -5271,6 +5278,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
5271
5278
|
}], tableExpandedrow: [{
|
|
5272
5279
|
type: ContentChild,
|
|
5273
5280
|
args: ['tableExpandedrow', { static: false }]
|
|
5281
|
+
}], actionsHeader: [{
|
|
5282
|
+
type: ContentChild,
|
|
5283
|
+
args: ['actionsHeader', { static: false }]
|
|
5274
5284
|
}], presetHeader: [{
|
|
5275
5285
|
type: ViewChild,
|
|
5276
5286
|
args: ['presetHeader', { static: false }]
|