@messaia/cdk 13.3.2-rc05 → 13.3.2

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.
@@ -129,7 +129,7 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
129
129
  /**
130
130
  * Toolbar menu items
131
131
  */
132
- toolbarMenus: TableMenuItem[];
132
+ toolbarMenuItems: TableMenuItem[];
133
133
  /**
134
134
  * MatStepper ref
135
135
  */
@@ -112,11 +112,11 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
112
112
  /**
113
113
  * Toolbar menu items
114
114
  */
115
- toolbarMenus: TableMenuItem[];
115
+ toolbarMenuItems: TableMenuItem[];
116
116
  /**
117
117
  * Table row menu items
118
118
  */
119
- actionMenus: TableMenuItem[];
119
+ rowMenuItems: TableMenuItem[];
120
120
  /**
121
121
  * DataLoaded event subscription
122
122
  */
@@ -1,11 +1,29 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDrawerToggleResult, MatSidenav } from '@angular/material/sidenav';
3
3
  import { VdMediaService } from '../../media/services/media.service';
4
+ import { MenuItem } from '../../menu/models/menu-item';
4
5
  import { ILayoutTogglable } from '../layout-toggle.class';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class VdLayoutManageListComponent implements ILayoutTogglable, OnInit {
7
8
  private media;
9
+ /**
10
+ * sidenav: MatSidenav
11
+ */
8
12
  sidenav: MatSidenav;
13
+ /**
14
+ * title: string
15
+ * Content title
16
+ */
17
+ title: string;
18
+ /**
19
+ * closable: boolean
20
+ * If false, hide close button
21
+ */
22
+ closable: boolean;
23
+ /**
24
+ * menuItems: MenuItem[]
25
+ */
26
+ menuItems: MenuItem[];
9
27
  /**
10
28
  * mode?: 'side', 'push' or 'over'
11
29
  *
@@ -78,5 +96,5 @@ export declare class VdLayoutManageListComponent implements ILayoutTogglable, On
78
96
  */
79
97
  close(): Promise<MatDrawerToggleResult>;
80
98
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutManageListComponent, never>;
81
- static ɵcmp: i0.ɵɵComponentDeclaration<VdLayoutManageListComponent, "vd-layout-manage-list", never, { "mode": "mode"; "sideGt": "sideGt"; "opened": "opened"; "openedGt": "openedGt"; "sidenavWidth": "sidenavWidth"; "sidenavGtXsWidth": "sidenavGtXsWidth"; }, {}, never, ["mat-toolbar[vd-sidenav-content]", "[vd-sidenav-content]", "mat-toolbar", "*", "vd-layout-footer-inner"]>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdLayoutManageListComponent, "vd-layout-manage-list", never, { "title": "title"; "closable": "closable"; "menuItems": "menuItems"; "mode": "mode"; "sideGt": "sideGt"; "opened": "opened"; "openedGt": "openedGt"; "sidenavWidth": "sidenavWidth"; "sidenavGtXsWidth": "sidenavGtXsWidth"; }, {}, never, ["mat-toolbar[vd-sidenav-content]", "[vd-sidenav-content]", "vd-menu", "mat-toolbar", "vd-list-toolbar", "*", "vd-layout-footer-inner"]>;
82
100
  }
@@ -3,22 +3,58 @@ import { LayoutToggle } from '../layout-toggle.class';
3
3
  import { VdLayoutManageListComponent } from './layout-manage-list.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class VdLayoutManageListToggleDirective extends LayoutToggle {
6
+ /**
7
+ * Sets vdLayoutManageListToggle
8
+ */
6
9
  set vdLayoutManageListToggle(vdLayoutManageListToggle: boolean);
10
+ /**
11
+ * Constructor
12
+ * @param layout
13
+ * @param renderer
14
+ * @param elementRef
15
+ */
7
16
  constructor(layout: VdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
17
+ /**
18
+ * Opens the list
19
+ */
8
20
  onClick(): void;
9
21
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutManageListToggleDirective, never>;
10
22
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdLayoutManageListToggleDirective, "[vdLayoutManageListToggle]", never, { "vdLayoutManageListToggle": "vdLayoutManageListToggle"; }, {}, never>;
11
23
  }
12
24
  export declare class VdLayoutManageListCloseDirective extends LayoutToggle {
25
+ /**
26
+ * Sets vdLayoutManageListClose
27
+ */
13
28
  set vdLayoutManageListClose(vdLayoutManageListClose: boolean);
29
+ /**
30
+ * Constructor
31
+ * @param layout
32
+ * @param renderer
33
+ * @param elementRef
34
+ */
14
35
  constructor(layout: VdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
36
+ /**
37
+ * Opens the list
38
+ */
15
39
  onClick(): void;
16
40
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutManageListCloseDirective, never>;
17
41
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdLayoutManageListCloseDirective, "[vdLayoutManageListClose]", never, { "vdLayoutManageListClose": "vdLayoutManageListClose"; }, {}, never>;
18
42
  }
19
43
  export declare class VdLayoutManageListOpenDirective extends LayoutToggle {
44
+ /**
45
+ * Sets vdLayoutManageListOpen
46
+ */
20
47
  set vdLayoutManageListOpen(vdLayoutManageListOpen: boolean);
48
+ /**
49
+ * Constructor
50
+ * @param layout
51
+ * @param renderer
52
+ * @param elementRef
53
+ */
21
54
  constructor(layout: VdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
55
+ /**
56
+ * Opens the list
57
+ */
22
58
  onClick(): void;
23
59
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutManageListOpenDirective, never>;
24
60
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdLayoutManageListOpenDirective, "[vdLayoutManageListOpen]", never, { "vdLayoutManageListOpen": "vdLayoutManageListOpen"; }, {}, never>;
@@ -30,11 +30,11 @@ export declare class VdLayoutNavComponent {
30
30
  */
31
31
  color: string;
32
32
  /**
33
- * showToggle?: boolean
33
+ * hideToggle?: boolean
34
34
  *
35
- * Shows toggle button
35
+ * Hides toggle button
36
36
  */
37
- showToggle: boolean;
37
+ hideToggle: boolean;
38
38
  /**
39
39
  * backNavigationRoute?: string
40
40
  */
@@ -67,5 +67,5 @@ export declare class VdLayoutNavComponent {
67
67
  */
68
68
  handleNavigationClick(): void;
69
69
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutNavComponent, [{ optional: true; }, { optional: true; }]>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<VdLayoutNavComponent, "vd-layout-nav", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "showToggle": "showToggle"; "backNavigationRoute": "backNavigationRoute"; "navigationRoute": "navigationRoute"; }, {}, never, ["[vd-menu-button]", "[vd-toolbar-content]", "[vd-toolbar-content-right]", "*", "vd-layout-footer"]>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdLayoutNavComponent, "vd-layout-nav", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "hideToggle": "hideToggle"; "backNavigationRoute": "backNavigationRoute"; "navigationRoute": "navigationRoute"; }, {}, never, ["[vd-menu-button]", "[vd-toolbar-content]", "[vd-toolbar-content-right]", "*", "vd-layout-footer"]>;
71
71
  }
@@ -37,9 +37,10 @@ import * as i21 from "@angular/material/card";
37
37
  import * as i22 from "@angular/material/list";
38
38
  import * as i23 from "@angular/material/menu";
39
39
  import * as i24 from "@angular/material/progress-spinner";
40
+ import * as i25 from "../menu/menu.module";
40
41
  export { VdLayoutComponent, VdLayoutToggleDirective, VdLayoutCloseDirective, VdLayoutOpenDirective, VdLayoutNavComponent, VdLayoutNavListComponent, VdLayoutNavListToggleDirective, VdLayoutNavListCloseDirective, VdLayoutNavListOpenDirective, VdLayoutCardOverComponent, VdLayoutManageListComponent, VdLayoutManageListToggleDirective, VdLayoutManageListCloseDirective, VdLayoutManageListOpenDirective, VdLayoutFooterComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdFormToolbarComponent, VdFormToolbarMenuComponent, VdListToolbarComponent, VdListToolbarMenuComponent };
41
42
  export declare class VdLayoutModule {
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<VdLayoutModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<VdLayoutModule, [typeof i1.VdLayoutComponent, typeof i2.VdLayoutToggleDirective, typeof i2.VdLayoutCloseDirective, typeof i2.VdLayoutOpenDirective, typeof i3.VdLayoutNavComponent, typeof i4.VdLayoutNavListComponent, typeof i5.VdLayoutNavListToggleDirective, typeof i5.VdLayoutNavListCloseDirective, typeof i5.VdLayoutNavListOpenDirective, typeof i6.VdLayoutCardOverComponent, typeof i7.VdLayoutManageListComponent, typeof i8.VdLayoutManageListToggleDirective, typeof i8.VdLayoutManageListCloseDirective, typeof i8.VdLayoutManageListOpenDirective, typeof i9.VdLayoutFooterComponent, typeof i10.VdNavigationDrawerComponent, typeof i10.VdNavigationDrawerMenuDirective, typeof i10.VdNavigationDrawerToolbarDirective, typeof i11.VdFormToolbarComponent, typeof i12.VdFormToolbarMenuComponent, typeof i13.VdListToolbarComponent, typeof i14.VdListToolbarMenuComponent], [typeof i15.CommonModule, typeof i16.ScrollingModule, typeof i17.MatSidenavModule, typeof i18.MatToolbarModule, typeof i19.MatButtonModule, typeof i20.MatIconModule, typeof i21.MatCardModule, typeof i22.MatListModule, typeof i23.MatMenuModule, typeof i24.MatProgressSpinnerModule], [typeof i1.VdLayoutComponent, typeof i2.VdLayoutToggleDirective, typeof i2.VdLayoutCloseDirective, typeof i2.VdLayoutOpenDirective, typeof i3.VdLayoutNavComponent, typeof i4.VdLayoutNavListComponent, typeof i5.VdLayoutNavListToggleDirective, typeof i5.VdLayoutNavListCloseDirective, typeof i5.VdLayoutNavListOpenDirective, typeof i6.VdLayoutCardOverComponent, typeof i7.VdLayoutManageListComponent, typeof i8.VdLayoutManageListToggleDirective, typeof i8.VdLayoutManageListCloseDirective, typeof i8.VdLayoutManageListOpenDirective, typeof i9.VdLayoutFooterComponent, typeof i10.VdNavigationDrawerComponent, typeof i10.VdNavigationDrawerMenuDirective, typeof i10.VdNavigationDrawerToolbarDirective, typeof i11.VdFormToolbarComponent, typeof i12.VdFormToolbarMenuComponent, typeof i13.VdListToolbarComponent, typeof i14.VdListToolbarMenuComponent]>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VdLayoutModule, [typeof i1.VdLayoutComponent, typeof i2.VdLayoutToggleDirective, typeof i2.VdLayoutCloseDirective, typeof i2.VdLayoutOpenDirective, typeof i3.VdLayoutNavComponent, typeof i4.VdLayoutNavListComponent, typeof i5.VdLayoutNavListToggleDirective, typeof i5.VdLayoutNavListCloseDirective, typeof i5.VdLayoutNavListOpenDirective, typeof i6.VdLayoutCardOverComponent, typeof i7.VdLayoutManageListComponent, typeof i8.VdLayoutManageListToggleDirective, typeof i8.VdLayoutManageListCloseDirective, typeof i8.VdLayoutManageListOpenDirective, typeof i9.VdLayoutFooterComponent, typeof i10.VdNavigationDrawerComponent, typeof i10.VdNavigationDrawerMenuDirective, typeof i10.VdNavigationDrawerToolbarDirective, typeof i11.VdFormToolbarComponent, typeof i12.VdFormToolbarMenuComponent, typeof i13.VdListToolbarComponent, typeof i14.VdListToolbarMenuComponent], [typeof i15.CommonModule, typeof i16.ScrollingModule, typeof i17.MatSidenavModule, typeof i18.MatToolbarModule, typeof i19.MatButtonModule, typeof i20.MatIconModule, typeof i21.MatCardModule, typeof i22.MatListModule, typeof i23.MatMenuModule, typeof i24.MatProgressSpinnerModule, typeof i25.VdMenuModule], [typeof i1.VdLayoutComponent, typeof i2.VdLayoutToggleDirective, typeof i2.VdLayoutCloseDirective, typeof i2.VdLayoutOpenDirective, typeof i3.VdLayoutNavComponent, typeof i4.VdLayoutNavListComponent, typeof i5.VdLayoutNavListToggleDirective, typeof i5.VdLayoutNavListCloseDirective, typeof i5.VdLayoutNavListOpenDirective, typeof i6.VdLayoutCardOverComponent, typeof i7.VdLayoutManageListComponent, typeof i8.VdLayoutManageListToggleDirective, typeof i8.VdLayoutManageListCloseDirective, typeof i8.VdLayoutManageListOpenDirective, typeof i9.VdLayoutFooterComponent, typeof i10.VdNavigationDrawerComponent, typeof i10.VdNavigationDrawerMenuDirective, typeof i10.VdNavigationDrawerToolbarDirective, typeof i11.VdFormToolbarComponent, typeof i12.VdFormToolbarMenuComponent, typeof i13.VdListToolbarComponent, typeof i14.VdListToolbarMenuComponent]>;
44
45
  static ɵinj: i0.ɵɵInjectorDeclaration<VdLayoutModule>;
45
46
  }
@@ -112,7 +112,7 @@ export declare class VdDynamicTableComponent implements OnInit {
112
112
  /**
113
113
  * Table row menu items
114
114
  */
115
- actionMenus: TableMenuItem[];
115
+ rowMenuItems: TableMenuItem[];
116
116
  /**
117
117
  * Columns to exclude
118
118
  */
@@ -159,7 +159,7 @@ export declare class VdDynamicTableComponent implements OnInit {
159
159
  * @param column
160
160
  * @returns
161
161
  */
162
- hasVisibleActionMenus(row: any, column: TableColumn): boolean;
162
+ hasVisibleRowMenuItems(row: any, column: TableColumn): boolean;
163
163
  /**
164
164
  * A function to to compute the identity of items in an iterable.
165
165
  * @param index
@@ -198,5 +198,5 @@ export declare class VdDynamicTableComponent implements OnInit {
198
198
  */
199
199
  handleContextMenuEvent(event: PointerEvent): void;
200
200
  static ɵfac: i0.ɵɵFactoryDeclaration<VdDynamicTableComponent, never>;
201
- static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": "dataSource"; "data": "data"; "classType": "classType"; "dataSourceFilter": "dataSourceFilter"; "filterable": "filterable"; "paginable": "paginable"; "selectable": "selectable"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "stickyHeader": "stickyHeader"; "stickyFilter": "stickyFilter"; "rowNgClass": "rowNgClass"; "detailsTemplate": "detailsTemplate"; "readonly": "readonly"; "selectAllFilter": "selectAllFilter"; "columns": "columns"; "actionMenus": "actionMenus"; "excludedColumns": "excludedColumns"; }, { "rowClick": "rowClick"; }, never, never>;
201
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": "dataSource"; "data": "data"; "classType": "classType"; "dataSourceFilter": "dataSourceFilter"; "filterable": "filterable"; "paginable": "paginable"; "selectable": "selectable"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "stickyHeader": "stickyHeader"; "stickyFilter": "stickyFilter"; "rowNgClass": "rowNgClass"; "detailsTemplate": "detailsTemplate"; "readonly": "readonly"; "selectAllFilter": "selectAllFilter"; "columns": "columns"; "rowMenuItems": "rowMenuItems"; "excludedColumns": "excludedColumns"; }, { "rowClick": "rowClick"; }, never, never>;
202
202
  }
@@ -27,7 +27,7 @@ export declare class TableColumn {
27
27
  shortDate?: boolean;
28
28
  arrowBefore?: boolean;
29
29
  disabled?: boolean;
30
- actionMenus?: {
30
+ rowMenuItems?: {
31
31
  title: string;
32
32
  event?: Function;
33
33
  hide?: Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "13.3.2-rc05",
3
+ "version": "13.3.2",
4
4
  "peerDependencies": {},
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"