@smartbit4all/ng-client 3.1.32 → 3.1.33
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/esm2020/lib/smart-grid/smart-grid.component.mjs +3 -1
- package/esm2020/lib/smart-table/components/default-actions-popup/default-actions-popup.component.mjs +38 -0
- package/esm2020/lib/smart-table/smarttable.model.mjs +2 -1
- package/esm2020/lib/smart-table/smarttable.module.mjs +5 -2
- package/esm2020/lib/smart-table/tables/material-table/material-table.component.mjs +6 -5
- package/esm2020/lib/smart-table/tables/table.mjs +23 -8
- package/fesm2015/smartbit4all-ng-client.mjs +75 -24
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +69 -19
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-table/components/default-actions-popup/default-actions-popup.component.d.ts +15 -0
- package/lib/smart-table/smarttable.model.d.ts +4 -0
- package/lib/smart-table/smarttable.module.d.ts +15 -14
- package/lib/smart-table/tables/table.d.ts +4 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.33.tgz +0 -0
- package/smartbit4all-ng-client-3.1.32.tgz +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
2
|
+
import { SmartTableButton, SmartTableButtonType } from '../../smarttable.model';
|
|
3
|
+
import { GridRow } from '../../../smart-grid/api/grid-api/model/models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DefaultActionsPopupComponent {
|
|
6
|
+
trigger: MatMenuTrigger;
|
|
7
|
+
readonly ACTION_SEPERATOR = SmartTableButtonType.SEPARATOR;
|
|
8
|
+
buttons: SmartTableButton[];
|
|
9
|
+
row: GridRow;
|
|
10
|
+
constructor();
|
|
11
|
+
openDefaultActionsMenu(): void;
|
|
12
|
+
defaultActionButtonClicked(button: SmartTableButton): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultActionsPopupComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultActionsPopupComponent, "lib-default-actions-popup", never, { "buttons": "buttons"; "row": "row"; }, {}, never, never>;
|
|
15
|
+
}
|
|
@@ -57,6 +57,7 @@ export interface SmartTableButton {
|
|
|
57
57
|
icon?: string;
|
|
58
58
|
label?: string;
|
|
59
59
|
color?: ThemePalette;
|
|
60
|
+
code?: string;
|
|
60
61
|
type: SmartTableButtonType;
|
|
61
62
|
menuItemButtons?: SmartTableButton[];
|
|
62
63
|
menuItemButtonsPropertyName?: string;
|
|
@@ -93,6 +94,7 @@ export interface SmartTableInterface<T> {
|
|
|
93
94
|
tableOptionButtonDirection?: SmartTableOptionButtonDirection;
|
|
94
95
|
onRowClick?: (row: T) => void;
|
|
95
96
|
onRowDoubleClick?: (row: T) => void;
|
|
97
|
+
defaultActionCodes?: string[];
|
|
96
98
|
defaultActions?: SmartTableButton[];
|
|
97
99
|
highlightOnRowClick?: boolean;
|
|
98
100
|
highlightClass?: string;
|
|
@@ -123,6 +125,7 @@ export interface SmartTableGridInterface<T> {
|
|
|
123
125
|
tableOptionButtonDirection?: SmartTableOptionButtonDirection;
|
|
124
126
|
onRowClick?: (row: T) => void;
|
|
125
127
|
onRowDoubleClick?: (row: T) => void;
|
|
128
|
+
defaultActionCodes?: string[];
|
|
126
129
|
defaultActions?: SmartTableButton[];
|
|
127
130
|
highlightOnRowClick?: boolean;
|
|
128
131
|
highlightClass?: string;
|
|
@@ -161,6 +164,7 @@ export declare class SmartTable<T> implements SmartTableInterface<T> {
|
|
|
161
164
|
tableOptionButtonDirection?: SmartTableOptionButtonDirection;
|
|
162
165
|
onRowClick?: (row: T) => void;
|
|
163
166
|
onRowDoubleClick?: (row: T) => void;
|
|
167
|
+
defaultActionCodes?: string[];
|
|
164
168
|
defaultActions?: SmartTableButton[];
|
|
165
169
|
highlightOnRowClick?: boolean;
|
|
166
170
|
highlightClass?: string;
|
|
@@ -4,21 +4,22 @@ import * as i2 from "./smarttable.date-pipe";
|
|
|
4
4
|
import * as i3 from "./components/loading/loading.component";
|
|
5
5
|
import * as i4 from "./tables/material-table/material-table.component";
|
|
6
6
|
import * as i5 from "./tables/mobile-table/mobile-table.component";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@angular/material/
|
|
13
|
-
import * as i12 from "@angular/material/
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
16
|
-
import * as i15 from "@angular/material/
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "../
|
|
19
|
-
import * as i18 from "
|
|
7
|
+
import * as i6 from "./components/default-actions-popup/default-actions-popup.component";
|
|
8
|
+
import * as i7 from "@angular/platform-browser";
|
|
9
|
+
import * as i8 from "@angular/material/core";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "@angular/material/form-field";
|
|
12
|
+
import * as i11 from "@angular/material/checkbox";
|
|
13
|
+
import * as i12 from "@angular/material/button";
|
|
14
|
+
import * as i13 from "@angular/material/table";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/material/menu";
|
|
17
|
+
import * as i16 from "@angular/material/progress-spinner";
|
|
18
|
+
import * as i17 from "../component-factory-service/component-factory-service.module";
|
|
19
|
+
import * as i18 from "../smart-icon/smart-icon.module";
|
|
20
|
+
import * as i19 from "@angular/material/divider";
|
|
20
21
|
export declare class SmarttableModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmarttableModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmarttableModule, [typeof i1.SmarttableComponent, typeof i2.SmartDatePipe, typeof i2.SmartDateTimePipe, typeof i2.SmartTimePipe, typeof i3.LoadingComponent, typeof i4.MaterialTableComponent, typeof i5.MobileTableComponent], [typeof
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmarttableModule, [typeof i1.SmarttableComponent, typeof i2.SmartDatePipe, typeof i2.SmartDateTimePipe, typeof i2.SmartTimePipe, typeof i3.LoadingComponent, typeof i4.MaterialTableComponent, typeof i5.MobileTableComponent, typeof i6.DefaultActionsPopupComponent], [typeof i7.BrowserModule, typeof i8.MatCommonModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatFormFieldModule, typeof i11.MatCheckboxModule, typeof i12.MatButtonModule, typeof i13.MatTableModule, typeof i14.MatIconModule, typeof i15.MatMenuModule, typeof i16.MatProgressSpinnerModule, typeof i17.ComponentFactoryServiceModule, typeof i18.SmartIconModule, typeof i19.MatDividerModule], [typeof i1.SmarttableComponent]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmarttableModule>;
|
|
24
25
|
}
|
|
@@ -5,14 +5,15 @@ import { SmartTable, SmartTableButton, SmartTableButtonType, SmartTableHeader, S
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { MatTable } from '@angular/material/table';
|
|
7
7
|
import { ComponentFactoryService } from '../../component-factory-service/projects';
|
|
8
|
+
import { DefaultActionsPopupComponent } from '../components/default-actions-popup/default-actions-popup.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class Table implements OnInit, OnDestroy {
|
|
10
11
|
protected cfService: ComponentFactoryService;
|
|
11
12
|
_destroy$: Subject<void>;
|
|
12
13
|
triggers: QueryList<MatMenuTrigger>;
|
|
13
|
-
trigger: MatMenuTrigger;
|
|
14
14
|
vcRef?: ViewContainerRef[];
|
|
15
15
|
componentRef?: ComponentRef<any>;
|
|
16
|
+
defaultActionMenuComponents: QueryList<DefaultActionsPopupComponent>;
|
|
16
17
|
myTableChild: MatTable<any>;
|
|
17
18
|
smartTable: SmartTable<any>;
|
|
18
19
|
tableType: typeof SmartTableType;
|
|
@@ -60,7 +61,8 @@ export declare class Table implements OnInit, OnDestroy {
|
|
|
60
61
|
isImageResource(element: any, header: string): boolean;
|
|
61
62
|
getImageResourceIcon(element: any, header: string): any;
|
|
62
63
|
getImageResourceColor(element: any, header: string): any;
|
|
63
|
-
openDefaultActionsMenu(): void;
|
|
64
|
+
openDefaultActionsMenu(row: any): void;
|
|
65
|
+
getDefaultActionsForRow(element: any): SmartTableButton[] | undefined;
|
|
64
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
65
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": "smartTable"; }, {}, never, never>;
|
|
66
68
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|