@ng-matero/extensions 14.1.0 → 14.2.0

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.
@@ -6,13 +6,15 @@ export declare class MtxGridCellComponent {
6
6
  private _dialog;
7
7
  private _dataGridSrv;
8
8
  /** Row data */
9
- rowData: {};
9
+ rowData: any;
10
10
  /** Column definition */
11
11
  colDef: MtxGridColumn;
12
- /** All data */
12
+ /** Table data */
13
13
  data: any[];
14
14
  /** Whether show summary */
15
15
  summary: boolean;
16
+ /** Placeholder for the empty value (`null`, `''`, `[]`) */
17
+ placeholder: string;
16
18
  get _colValue(): string;
17
19
  _isEmptyValue(value: any): boolean;
18
20
  _isContainHTML(value: string): boolean;
@@ -27,5 +29,5 @@ export declare class MtxGridCellComponent {
27
29
  /** Preview enlarged image */
28
30
  _onImagePreview(urlStr: string): void;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCellComponent, "mtx-grid-cell", ["mtxGridCell"], { "rowData": "rowData"; "colDef": "colDef"; "data": "data"; "summary": "summary"; }, {}, never, never, false>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCellComponent, "mtx-grid-cell", ["mtxGridCell"], { "rowData": "rowData"; "colDef": "colDef"; "data": "data"; "summary": "summary"; "placeholder": "placeholder"; }, {}, never, never, false>;
31
33
  }
@@ -27,6 +27,8 @@ export declare class MtxGridComponent implements OnChanges, AfterViewInit, OnDes
27
27
  loading: boolean;
28
28
  trackBy: TrackByFunction<any>;
29
29
  columnResizable: boolean;
30
+ /** Placeholder for the empty value (`null`, `''`, `[]`) */
31
+ emptyValuePlaceholder: string;
30
32
  pageOnFront: boolean;
31
33
  showPaginator: boolean;
32
34
  pageDisabled: boolean;
@@ -112,9 +114,9 @@ export declare class MtxGridComponent implements OnChanges, AfterViewInit, OnDes
112
114
  ngOnDestroy(): void;
113
115
  _countPinnedPosition(): void;
114
116
  _getIndex(index: number, dataIndex: number): number;
115
- _handleSortChange(sort: Sort): void;
117
+ _onSortChange(sort: Sort): void;
116
118
  /** Expansion change event */
117
- _handleExpansionChange(expansionRef: MtxGridExpansionToggleDirective, rowData: any, column: any, index: number): void;
119
+ _onExpansionChange(expansionRef: MtxGridExpansionToggleDirective, rowData: any, column: any, index: number): void;
118
120
  /** Cell select event */
119
121
  _selectCell(cellRef: MtxGridCellSelectionDirective, rowData: any, colDef: any): void;
120
122
  /** Row select event */
@@ -126,16 +128,16 @@ export declare class MtxGridComponent implements OnChanges, AfterViewInit, OnDes
126
128
  /** Select normal row */
127
129
  _toggleNormalCheckbox(row: any): void;
128
130
  /** Column change event */
129
- _handleColumnChange(columns: any[]): void;
131
+ _onColumnChange(columns: any[]): void;
130
132
  getDisplayedColumnFields(columns: MtxGridColumn[]): string[];
131
133
  /** Customize expansion event */
132
134
  toggleExpansion(index: number): any;
133
135
  /** Scroll to top when turn to the next page. */
134
- _handlePage(e: PageEvent): void;
136
+ _onPage(e: PageEvent): void;
135
137
  scrollTop(value?: number): number | void;
136
138
  scrollLeft(value?: number): number | void;
137
139
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridComponent, never>;
138
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridComponent, "mtx-grid", ["mtxGrid"], { "displayedColumns": "displayedColumns"; "columns": "columns"; "data": "data"; "length": "length"; "loading": "loading"; "trackBy": "trackBy"; "columnResizable": "columnResizable"; "pageOnFront": "pageOnFront"; "showPaginator": "showPaginator"; "pageDisabled": "pageDisabled"; "showFirstLastButtons": "showFirstLastButtons"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hidePageSize": "hidePageSize"; "paginationTemplate": "paginationTemplate"; "sortOnFront": "sortOnFront"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "sortDisableClear": "sortDisableClear"; "sortDisabled": "sortDisabled"; "sortStart": "sortStart"; "rowHover": "rowHover"; "rowStriped": "rowStriped"; "expandable": "expandable"; "expansionTemplate": "expansionTemplate"; "multiSelectable": "multiSelectable"; "multiSelectionWithClick": "multiSelectionWithClick"; "rowSelected": "rowSelected"; "rowSelectable": "rowSelectable"; "hideRowSelectionCheckbox": "hideRowSelectionCheckbox"; "rowSelectionFormatter": "rowSelectionFormatter"; "rowClassFormatter": "rowClassFormatter"; "cellSelectable": "cellSelectable"; "showToolbar": "showToolbar"; "toolbarTitle": "toolbarTitle"; "toolbarTemplate": "toolbarTemplate"; "showColumnMenuButton": "showColumnMenuButton"; "columnMenuButtonText": "columnMenuButtonText"; "columnMenuButtonType": "columnMenuButtonType"; "columnMenuButtonColor": "columnMenuButtonColor"; "columnMenuButtonClass": "columnMenuButtonClass"; "columnMenuButtonIcon": "columnMenuButtonIcon"; "columnHideable": "columnHideable"; "columnHideableChecked": "columnHideableChecked"; "columnSortable": "columnSortable"; "columnPinnable": "columnPinnable"; "showColumnMenuHeader": "showColumnMenuHeader"; "columnMenuHeaderText": "columnMenuHeaderText"; "columnMenuHeaderTemplate": "columnMenuHeaderTemplate"; "showColumnMenuFooter": "showColumnMenuFooter"; "columnMenuFooterText": "columnMenuFooterText"; "columnMenuFooterTemplate": "columnMenuFooterTemplate"; "columnPinOptions": "columnPinOptions"; "noResultText": "noResultText"; "noResultTemplate": "noResultTemplate"; "headerTemplate": "headerTemplate"; "headerExtraTemplate": "headerExtraTemplate"; "cellTemplate": "cellTemplate"; "useContentRowTemplate": "useContentRowTemplate"; "useContentHeaderRowTemplate": "useContentHeaderRowTemplate"; "useContentFooterRowTemplate": "useContentFooterRowTemplate"; "showSummary": "showSummary"; "summaryTemplate": "summaryTemplate"; "showSidebar": "showSidebar"; "sidebarTemplate": "sidebarTemplate"; "showStatusbar": "showStatusbar"; "statusbarTemplate": "statusbarTemplate"; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "expansionChange": "expansionChange"; "rowSelectionChange": "rowSelectionChange"; "cellSelectionChange": "cellSelectionChange"; "columnChange": "columnChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, false>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridComponent, "mtx-grid", ["mtxGrid"], { "displayedColumns": "displayedColumns"; "columns": "columns"; "data": "data"; "length": "length"; "loading": "loading"; "trackBy": "trackBy"; "columnResizable": "columnResizable"; "emptyValuePlaceholder": "emptyValuePlaceholder"; "pageOnFront": "pageOnFront"; "showPaginator": "showPaginator"; "pageDisabled": "pageDisabled"; "showFirstLastButtons": "showFirstLastButtons"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "pageSizeOptions": "pageSizeOptions"; "hidePageSize": "hidePageSize"; "paginationTemplate": "paginationTemplate"; "sortOnFront": "sortOnFront"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "sortDisableClear": "sortDisableClear"; "sortDisabled": "sortDisabled"; "sortStart": "sortStart"; "rowHover": "rowHover"; "rowStriped": "rowStriped"; "expandable": "expandable"; "expansionTemplate": "expansionTemplate"; "multiSelectable": "multiSelectable"; "multiSelectionWithClick": "multiSelectionWithClick"; "rowSelected": "rowSelected"; "rowSelectable": "rowSelectable"; "hideRowSelectionCheckbox": "hideRowSelectionCheckbox"; "rowSelectionFormatter": "rowSelectionFormatter"; "rowClassFormatter": "rowClassFormatter"; "cellSelectable": "cellSelectable"; "showToolbar": "showToolbar"; "toolbarTitle": "toolbarTitle"; "toolbarTemplate": "toolbarTemplate"; "showColumnMenuButton": "showColumnMenuButton"; "columnMenuButtonText": "columnMenuButtonText"; "columnMenuButtonType": "columnMenuButtonType"; "columnMenuButtonColor": "columnMenuButtonColor"; "columnMenuButtonClass": "columnMenuButtonClass"; "columnMenuButtonIcon": "columnMenuButtonIcon"; "columnHideable": "columnHideable"; "columnHideableChecked": "columnHideableChecked"; "columnSortable": "columnSortable"; "columnPinnable": "columnPinnable"; "showColumnMenuHeader": "showColumnMenuHeader"; "columnMenuHeaderText": "columnMenuHeaderText"; "columnMenuHeaderTemplate": "columnMenuHeaderTemplate"; "showColumnMenuFooter": "showColumnMenuFooter"; "columnMenuFooterText": "columnMenuFooterText"; "columnMenuFooterTemplate": "columnMenuFooterTemplate"; "columnPinOptions": "columnPinOptions"; "noResultText": "noResultText"; "noResultTemplate": "noResultTemplate"; "headerTemplate": "headerTemplate"; "headerExtraTemplate": "headerExtraTemplate"; "cellTemplate": "cellTemplate"; "useContentRowTemplate": "useContentRowTemplate"; "useContentHeaderRowTemplate": "useContentHeaderRowTemplate"; "useContentFooterRowTemplate": "useContentFooterRowTemplate"; "showSummary": "showSummary"; "summaryTemplate": "summaryTemplate"; "showSidebar": "showSidebar"; "sidebarTemplate": "sidebarTemplate"; "showStatusbar": "showStatusbar"; "statusbarTemplate": "statusbarTemplate"; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "expansionChange": "expansionChange"; "rowSelectionChange": "rowSelectionChange"; "cellSelectionChange": "cellSelectionChange"; "columnChange": "columnChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, false>;
139
141
  }
140
142
  export declare class MtxGridCellSelectionDirective {
141
143
  private _dataGrid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-matero/extensions",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
4
4
  "description": "Angular Material Extensions",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -209,7 +209,7 @@
209
209
  "dependencies": {
210
210
  "@ng-select/ng-select": "^9.0.0",
211
211
  "ngx-color": "^8.0.0",
212
- "photoviewer": "^3.6.4",
212
+ "photoviewer": "^3.6.0",
213
213
  "tslib": "^2.3.0"
214
214
  },
215
215
  "peerDependencies": {