@ng-matero/extensions 20.0.3 → 20.1.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.
- package/column-resize/index.d.ts +1 -1
- package/datetimepicker/index.d.ts +1 -1
- package/dialog/index.d.ts +2 -1
- package/fesm2022/mtxAlert.mjs +8 -8
- package/fesm2022/mtxButton.mjs +8 -8
- package/fesm2022/mtxCheckboxGroup.mjs +9 -9
- package/fesm2022/mtxColorpicker.mjs +21 -21
- package/fesm2022/mtxColumnResize.mjs +44 -44
- package/fesm2022/mtxCore.mjs +22 -22
- package/fesm2022/mtxDatetimepicker.mjs +60 -60
- package/fesm2022/mtxDialog.mjs +12 -12
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +11 -11
- package/fesm2022/mtxGrid.mjs +204 -84
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +8 -8
- package/fesm2022/mtxPhotoviewer.mjs +8 -8
- package/fesm2022/mtxPopover.mjs +20 -20
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxSelect.mjs +53 -53
- package/fesm2022/mtxSplit.mjs +11 -11
- package/fesm2022/mtxTooltip.mjs +11 -11
- package/grid/index.d.ts +28 -18
- package/package.json +12 -12
- package/popover/index.d.ts +1 -1
- package/select/index.d.ts +1 -1
- package/split/index.d.ts +1 -1
- package/tooltip/index.d.ts +2 -2
package/grid/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, NgZone,
|
|
2
|
+
import { ElementRef, NgZone, Type, Injector, ViewContainerRef, ChangeDetectorRef, TemplateRef, EventEmitter, OnChanges, AfterViewInit, OnDestroy, QueryList, TrackByFunction, KeyValueChangeRecord, SimpleChanges, InjectionToken, OnInit, DoCheck, PipeTransform, Provider } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2$1 from '@angular/forms';
|
|
5
5
|
import * as i3$1 from '@angular/material/table';
|
|
@@ -10,6 +10,7 @@ import * as i5 from '@angular/material/paginator';
|
|
|
10
10
|
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
11
11
|
import * as i6 from '@angular/material/checkbox';
|
|
12
12
|
import * as i7 from '@angular/material/button';
|
|
13
|
+
import { MatButtonAppearance } from '@angular/material/button';
|
|
13
14
|
import * as i8 from '@angular/material/progress-bar';
|
|
14
15
|
import * as i9 from '@angular/material/chips';
|
|
15
16
|
import * as i10 from '@angular/material/tooltip';
|
|
@@ -28,7 +29,7 @@ import * as i18 from '@ng-matero/extensions/core';
|
|
|
28
29
|
import { Directionality } from '@angular/cdk/bidi';
|
|
29
30
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
30
31
|
import { ResizeOverlayHandle, ColumnResize, HeaderRowEventDispatcher, ColumnResizeNotifierSource, ResizeRef, _CoalescedStyleScheduler, ColumnResizeNotifier, Resizable, ResizeStrategy, CdkFlexTableResizeStrategy } from '@ng-matero/extensions/column-resize';
|
|
31
|
-
export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER
|
|
32
|
+
export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@ng-matero/extensions/column-resize';
|
|
32
33
|
import * as i2 from '@angular/material/core';
|
|
33
34
|
import { ThemePalette } from '@angular/material/core';
|
|
34
35
|
import * as i3 from '@angular/cdk/overlay';
|
|
@@ -66,14 +67,6 @@ declare class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
|
66
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatColumnResizeOverlayHandle, "ng-component", never, {}, {}, never, never, true, never>;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
declare const TABLE_PROVIDERS: Provider[];
|
|
70
|
-
declare const FLEX_PROVIDERS: Provider[];
|
|
71
|
-
declare const TABLE_HOST_BINDINGS: {
|
|
72
|
-
class: string;
|
|
73
|
-
};
|
|
74
|
-
declare const FLEX_HOST_BINDINGS: {
|
|
75
|
-
class: string;
|
|
76
|
-
};
|
|
77
70
|
declare abstract class AbstractMatColumnResize extends ColumnResize {
|
|
78
71
|
getTableHeight(): number;
|
|
79
72
|
}
|
|
@@ -135,10 +128,6 @@ declare abstract class AbstractMatResizable extends Resizable<MatColumnResizeOve
|
|
|
135
128
|
protected getInlineHandleCssClassName(): string;
|
|
136
129
|
protected getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle>;
|
|
137
130
|
}
|
|
138
|
-
declare const RESIZABLE_HOST_BINDINGS: {
|
|
139
|
-
class: string;
|
|
140
|
-
};
|
|
141
|
-
declare const RESIZABLE_INPUTS: string[];
|
|
142
131
|
|
|
143
132
|
/**
|
|
144
133
|
* Explicitly enables column resizing for a mat-header-cell.
|
|
@@ -254,6 +243,7 @@ interface MtxGridColumnButton<T = any> {
|
|
|
254
243
|
pop?: string | Observable<string> | MtxGridColumnButtonPop;
|
|
255
244
|
tooltip?: string | Observable<string> | MtxGridColumnButtonTooltip;
|
|
256
245
|
badge?: number | string | Observable<string> | MtxGridColumnButtonBadge;
|
|
246
|
+
children?: MtxGridMenuItem<T>[];
|
|
257
247
|
}
|
|
258
248
|
/** The properties of column button pop. */
|
|
259
249
|
interface MtxGridColumnButtonPop {
|
|
@@ -300,7 +290,7 @@ interface MtxGridRowClassFormatter<T = any> {
|
|
|
300
290
|
[className: string]: (rowData: T, index: number) => boolean;
|
|
301
291
|
}
|
|
302
292
|
/** Possible button type values. */
|
|
303
|
-
type MtxGridButtonType =
|
|
293
|
+
type MtxGridButtonType = MatButtonAppearance | 'icon';
|
|
304
294
|
/**
|
|
305
295
|
* Represents the default options for the grid that can be configured
|
|
306
296
|
* using the `MTX_GRID_DEFAULT_OPTIONS` injection token.
|
|
@@ -351,6 +341,18 @@ interface MtxGridDefaultOptions {
|
|
|
351
341
|
columnMenuFooterText?: string;
|
|
352
342
|
noResultText?: string;
|
|
353
343
|
}
|
|
344
|
+
/** The properties of menu item. */
|
|
345
|
+
interface MtxGridMenuItem<T = any> {
|
|
346
|
+
text: string | Observable<string>;
|
|
347
|
+
icon?: string;
|
|
348
|
+
fontIcon?: string;
|
|
349
|
+
svgIcon?: string;
|
|
350
|
+
class?: string;
|
|
351
|
+
disabled?: boolean | ((rowData: T) => boolean);
|
|
352
|
+
click?: (rowData: T) => void;
|
|
353
|
+
iif?: (rowData: T) => boolean;
|
|
354
|
+
children?: MtxGridMenuItem[];
|
|
355
|
+
}
|
|
354
356
|
|
|
355
357
|
declare class MtxGridColumnMenu {
|
|
356
358
|
menuPanel: MatMenu;
|
|
@@ -704,6 +706,14 @@ declare class MtxGridCell implements OnInit, DoCheck {
|
|
|
704
706
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCell, "mtx-grid-cell", ["mtxGridCell"], { "rowData": { "alias": "rowData"; "required": false; }; "colDef": { "alias": "colDef"; "required": false; }; "data": { "alias": "data"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "rowDataChange": "rowDataChange"; }, never, never, true, never>;
|
|
705
707
|
}
|
|
706
708
|
|
|
709
|
+
declare class MtxGridMenu {
|
|
710
|
+
menu: MatMenu;
|
|
711
|
+
items: MtxGridMenuItem[];
|
|
712
|
+
data: Record<string, any>;
|
|
713
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridMenu, never>;
|
|
714
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridMenu, "mtx-grid-menu", ["mtxGridMenu"], { "items": { "alias": "items"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
715
|
+
}
|
|
716
|
+
|
|
707
717
|
declare class MtxGridColClassPipe implements PipeTransform {
|
|
708
718
|
transform(colDef: MtxGridColumn, rowData?: Record<string, any>, rowChangeRecord?: KeyValueChangeRecord<string, any>, currentValue?: any): string;
|
|
709
719
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridColClassPipe, never>;
|
|
@@ -743,7 +753,7 @@ declare class MtxGridCellSummaryPipe implements PipeTransform {
|
|
|
743
753
|
|
|
744
754
|
declare class MtxGridModule {
|
|
745
755
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridModule, never>;
|
|
746
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxGridModule, never, [typeof i1.CommonModule, typeof i2$1.FormsModule, typeof i3$1.MatTableModule, typeof i4.MatSortModule, typeof i5.MatPaginatorModule, typeof i6.MatCheckboxModule, typeof i7.MatButtonModule, typeof i8.MatProgressBarModule, typeof i9.MatChipsModule, typeof i10.MatTooltipModule, typeof i11.MatBadgeModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatFormFieldModule, typeof i15.MatMenuModule, typeof i16.DragDropModule, typeof i17.MtxDialogModule, typeof i18.MtxPipesModule, typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe], [typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe]>;
|
|
756
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxGridModule, never, [typeof i1.CommonModule, typeof i2$1.FormsModule, typeof i3$1.MatTableModule, typeof i4.MatSortModule, typeof i5.MatPaginatorModule, typeof i6.MatCheckboxModule, typeof i7.MatButtonModule, typeof i8.MatProgressBarModule, typeof i9.MatChipsModule, typeof i10.MatTooltipModule, typeof i11.MatBadgeModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatFormFieldModule, typeof i15.MatMenuModule, typeof i16.DragDropModule, typeof i17.MtxDialogModule, typeof i18.MtxPipesModule, typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridMenu, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe], [typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridMenu, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe]>;
|
|
747
757
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtxGridModule>;
|
|
748
758
|
}
|
|
749
759
|
|
|
@@ -797,5 +807,5 @@ declare class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
|
797
807
|
}
|
|
798
808
|
declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
|
|
799
809
|
|
|
800
|
-
export {
|
|
801
|
-
export type { MtxGridButtonType, MtxGridCellTemplate, MtxGridColumn, MtxGridColumnButton, MtxGridColumnButtonBadge, MtxGridColumnButtonPop, MtxGridColumnButtonTooltip, MtxGridColumnPinOption, MtxGridColumnPinValue, MtxGridColumnTag, MtxGridColumnTagValue, MtxGridColumnType, MtxGridColumnTypeParameter, MtxGridDefaultOptions, MtxGridRowClassFormatter, MtxGridRowSelectionFormatter, MtxGridSortProp };
|
|
810
|
+
export { FLEX_RESIZE_STRATEGY_PROVIDER, MTX_GRID_DEFAULT_OPTIONS, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatFlexTableResizeStrategy, MatResizable, MtxGrid, MtxGridCell, MtxGridCellActionBadgePipe, MtxGridCellActionDisablePipe, MtxGridCellActionTooltipPipe, MtxGridCellActionsPipe, MtxGridCellSummaryPipe, MtxGridColClassPipe, MtxGridColumnMenu, MtxGridExpansionToggle, MtxGridMenu, MtxGridModule, MtxGridRowClassPipe, MtxGridSelectableCell, MtxGridUtils };
|
|
811
|
+
export type { MtxGridButtonType, MtxGridCellTemplate, MtxGridColumn, MtxGridColumnButton, MtxGridColumnButtonBadge, MtxGridColumnButtonPop, MtxGridColumnButtonTooltip, MtxGridColumnPinOption, MtxGridColumnPinValue, MtxGridColumnTag, MtxGridColumnTagValue, MtxGridColumnType, MtxGridColumnTypeParameter, MtxGridDefaultOptions, MtxGridMenuItem, MtxGridRowClassFormatter, MtxGridRowSelectionFormatter, MtxGridSortProp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-matero/extensions",
|
|
3
|
-
"version": "20.0
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "Angular Material Extensions",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -106,29 +106,25 @@
|
|
|
106
106
|
"types": "./drawer/index.d.ts",
|
|
107
107
|
"default": "./fesm2022/mtxDrawer.mjs"
|
|
108
108
|
},
|
|
109
|
-
"./grid": {
|
|
110
|
-
"types": "./grid/index.d.ts",
|
|
111
|
-
"default": "./fesm2022/mtxGrid.mjs"
|
|
112
|
-
},
|
|
113
109
|
"./loader": {
|
|
114
110
|
"types": "./loader/index.d.ts",
|
|
115
111
|
"default": "./fesm2022/mtxLoader.mjs"
|
|
116
112
|
},
|
|
113
|
+
"./grid": {
|
|
114
|
+
"types": "./grid/index.d.ts",
|
|
115
|
+
"default": "./fesm2022/mtxGrid.mjs"
|
|
116
|
+
},
|
|
117
117
|
"./photoviewer": {
|
|
118
118
|
"types": "./photoviewer/index.d.ts",
|
|
119
119
|
"default": "./fesm2022/mtxPhotoviewer.mjs"
|
|
120
120
|
},
|
|
121
|
-
"./popover": {
|
|
122
|
-
"types": "./popover/index.d.ts",
|
|
123
|
-
"default": "./fesm2022/mtxPopover.mjs"
|
|
124
|
-
},
|
|
125
121
|
"./progress": {
|
|
126
122
|
"types": "./progress/index.d.ts",
|
|
127
123
|
"default": "./fesm2022/mtxProgress.mjs"
|
|
128
124
|
},
|
|
129
|
-
"./
|
|
130
|
-
"types": "./
|
|
131
|
-
"default": "./fesm2022/
|
|
125
|
+
"./popover": {
|
|
126
|
+
"types": "./popover/index.d.ts",
|
|
127
|
+
"default": "./fesm2022/mtxPopover.mjs"
|
|
132
128
|
},
|
|
133
129
|
"./split": {
|
|
134
130
|
"types": "./split/index.d.ts",
|
|
@@ -137,6 +133,10 @@
|
|
|
137
133
|
"./tooltip": {
|
|
138
134
|
"types": "./tooltip/index.d.ts",
|
|
139
135
|
"default": "./fesm2022/mtxTooltip.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./select": {
|
|
138
|
+
"types": "./select/index.d.ts",
|
|
139
|
+
"default": "./fesm2022/mtxSelect.mjs"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
package/popover/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OnDestroy, TemplateRef, ApplicationRef, Injector, ViewContainerRef, ChangeDetectorRef, InjectionToken, EventEmitter, OnInit, ElementRef, AfterContentInit } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/cdk/overlay';
|
|
5
5
|
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
package/select/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, AfterViewChecked, OnDestroy, ElementRef, SimpleChanges,
|
|
2
|
+
import { OnChanges, AfterViewChecked, OnDestroy, ElementRef, SimpleChanges, OnInit, DoCheck, AfterViewInit, ChangeDetectorRef, TemplateRef, QueryList, EventEmitter, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
package/split/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemePalette } from '@angular/material/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy, ElementRef,
|
|
3
|
+
import { OnInit, OnDestroy, ElementRef, AfterViewInit, EventEmitter, InjectionToken } from '@angular/core';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
|
package/tooltip/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OnDestroy, AfterViewInit, ElementRef, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/a11y';
|
|
4
4
|
import * as i2 from '@angular/common';
|
|
5
5
|
import * as i3 from '@angular/cdk/overlay';
|
|
6
|
-
import {
|
|
6
|
+
import { OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition, ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
7
7
|
import * as i4 from '@angular/material/core';
|
|
8
8
|
import * as i5 from '@ng-matero/extensions/core';
|
|
9
9
|
import { Directionality } from '@angular/cdk/bidi';
|