@ng-matero/extensions 15.1.0 → 15.1.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.
@@ -10,7 +10,7 @@
10
10
  $foreground: map.get($config, foreground);
11
11
 
12
12
  .mtx-grid {
13
- border: 1px solid rgba(theming.get-color-from-palette($foreground, secondary-text), .2);
13
+ border: 1px solid theming.get-color-from-palette($foreground, secondary-text, .2);
14
14
 
15
15
  .mat-table-sticky-left,
16
16
  .mat-table-sticky-right {
@@ -53,20 +53,20 @@
53
53
  }
54
54
 
55
55
  .mat-mdc-paginator {
56
- border-top: 1px solid rgba(theming.get-color-from-palette($foreground, secondary-text), .2);
56
+ border-top: 1px solid theming.get-color-from-palette($foreground, secondary-text, .2);
57
57
  }
58
58
  }
59
59
 
60
60
  .mtx-grid-toolbar {
61
- border-bottom: 1px solid rgba(theming.get-color-from-palette($foreground, secondary-text), .2);
61
+ border-bottom: 1px solid theming.get-color-from-palette($foreground, secondary-text, .2);
62
62
  }
63
63
 
64
64
  .mtx-grid-sidebar {
65
- border-color: rgba(theming.get-color-from-palette($foreground, secondary-text), .2);
65
+ border-color: theming.get-color-from-palette($foreground, secondary-text, .2);
66
66
  }
67
67
 
68
68
  .mtx-grid-statusbar {
69
- border-top: 1px solid rgba(theming.get-color-from-palette($foreground, secondary-text), .2);
69
+ border-top: 1px solid theming.get-color-from-palette($foreground, secondary-text, .2);
70
70
  }
71
71
 
72
72
  .mtx-grid-column-menu-item {
package/grid/cell.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, DoCheck, KeyValueDiffers, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, DoCheck, EventEmitter, KeyValueChangeRecord, KeyValueDiffers, OnInit } from '@angular/core';
2
2
  import { MtxDialog } from '@ng-matero/extensions/dialog';
3
3
  import { MtxGridUtils } from './grid-utils';
4
4
  import { MtxGridColumn, MtxGridColumnButton } from './interfaces';
@@ -18,6 +18,7 @@ export declare class MtxGridCell implements OnInit, DoCheck {
18
18
  summary: boolean;
19
19
  /** Placeholder for the empty value (`null`, `''`, `[]`) */
20
20
  placeholder: string;
21
+ rowDataChange: EventEmitter<KeyValueChangeRecord<string, any>>;
21
22
  private rowDataDiffer?;
22
23
  get _value(): string;
23
24
  constructor(_dialog: MtxDialog, _utils: MtxGridUtils, _differs: KeyValueDiffers, _changeDetectorRef: ChangeDetectorRef);
@@ -31,5 +32,5 @@ export declare class MtxGridCell implements OnInit, DoCheck {
31
32
  /** Preview enlarged image */
32
33
  _onImagePreview(urlStr: string): void;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCell, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCell, "mtx-grid-cell", ["mtxGridCell"], { "rowData": "rowData"; "colDef": "colDef"; "data": "data"; "summary": "summary"; "placeholder": "placeholder"; }, {}, never, never, false, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCell, "mtx-grid-cell", ["mtxGridCell"], { "rowData": "rowData"; "colDef": "colDef"; "data": "data"; "summary": "summary"; "placeholder": "placeholder"; }, { "rowDataChange": "rowDataChange"; }, never, never, false, never>;
35
36
  }
@@ -1,9 +1,9 @@
1
- import { PipeTransform } from '@angular/core';
1
+ import { KeyValueChangeRecord, PipeTransform } from '@angular/core';
2
2
  import { MtxGridUtils } from './grid-utils';
3
3
  import { MtxGridColumn, MtxGridColumnButton, MtxGridRowClassFormatter } from './interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MtxGridColClassPipe implements PipeTransform {
6
- transform(colDef: MtxGridColumn, rowData?: Record<string, any>): string;
6
+ transform(colDef: MtxGridColumn, rowData?: Record<string, any>, rowChangeRecord?: KeyValueChangeRecord<string, any>, currentValue?: any): string;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridColClassPipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridColClassPipe, "colClass", false>;
9
9
  }
package/grid/grid.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, TemplateRef, TrackByFunction, OnDestroy, AfterViewInit, ChangeDetectorRef, ElementRef, SimpleChanges, QueryList } from '@angular/core';
1
+ import { EventEmitter, OnChanges, TemplateRef, TrackByFunction, OnDestroy, AfterViewInit, ChangeDetectorRef, ElementRef, SimpleChanges, QueryList, KeyValueChangeRecord } from '@angular/core';
2
2
  import { SelectionModel } from '@angular/cdk/collections';
3
3
  import { MatFooterRowDef, MatHeaderRowDef, MatRowDef, MatTable, MatTableDataSource } from '@angular/material/table';
4
4
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
@@ -183,6 +183,8 @@ export declare class MtxGrid implements OnChanges, AfterViewInit, OnDestroy {
183
183
  showStatusbar: boolean;
184
184
  /** The template for the status bar. */
185
185
  statusbarTemplate: TemplateRef<any>;
186
+ /** The changed record of row data. */
187
+ rowChangeRecord?: KeyValueChangeRecord<string, any>;
186
188
  constructor(_utils: MtxGridUtils, _changeDetectorRef: ChangeDetectorRef);
187
189
  detectChanges(): void;
188
190
  _getColData(data: any[], colDef: MtxGridColumn): any[];
@@ -192,6 +194,7 @@ export declare class MtxGrid implements OnChanges, AfterViewInit, OnDestroy {
192
194
  _countPinnedPosition(): void;
193
195
  _getIndex(index: number, dataIndex: number): number;
194
196
  _onSortChange(sort: Sort): void;
197
+ _onRowDataChange(record: KeyValueChangeRecord<string, any>): void;
195
198
  /** Expansion change event */
196
199
  _onExpansionChange(expansionRef: MtxGridExpansionToggle, rowData: Record<string, any>, column: MtxGridColumn, index: number): void;
197
200
  /** Cell select event */
@@ -8,7 +8,7 @@
8
8
  $background: map.get($config, background);
9
9
 
10
10
  .mtx-loader-backdrop {
11
- background-color: rgba(theming.get-color-from-palette($background, background), .75);
11
+ background-color: theming.get-color-from-palette($background, background, .75);
12
12
  }
13
13
  }
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-matero/extensions",
3
- "version": "15.1.0",
3
+ "version": "15.1.2",
4
4
  "description": "Angular Material Extensions",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -7,7 +7,7 @@
7
7
 
8
8
  .mtx-split {
9
9
  > .mtx-split-gutter {
10
- background-color: rgba(theming.get-color-from-palette($foreground, divider), .12);
10
+ background-color: theming.get-color-from-palette($foreground, divider, .12);
11
11
 
12
12
  &:hover {
13
13
  background-color: theming.get-color-from-palette(map.get($config, primary), text);