@ng-matero/extensions 14.7.0 → 14.8.1

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.
Files changed (51) hide show
  1. package/_index.scss +1 -1
  2. package/_theming.scss +1 -1
  3. package/checkbox-group/checkbox-group.component.d.ts +6 -6
  4. package/datetimepicker/public-api.d.ts +1 -0
  5. package/esm2020/checkbox-group/checkbox-group.component.mjs +11 -11
  6. package/esm2020/datetimepicker/datetimepicker-input.mjs +1 -1
  7. package/esm2020/datetimepicker/public-api.mjs +2 -1
  8. package/esm2020/grid/cell.component.mjs +5 -4
  9. package/esm2020/grid/column-menu.component.mjs +3 -3
  10. package/esm2020/grid/grid.component.mjs +65 -46
  11. package/esm2020/grid/grid.interface.mjs +1 -1
  12. package/esm2020/grid/grid.pipe.mjs +2 -2
  13. package/esm2020/select/select.component.mjs +28 -15
  14. package/esm2020/split/interface.mjs +1 -1
  15. package/esm2020/split/split.component.mjs +24 -9
  16. package/esm2020/tooltip/tooltip.mjs +23 -4
  17. package/fesm2015/mtxCheckboxGroup.mjs +8 -8
  18. package/fesm2015/mtxCheckboxGroup.mjs.map +1 -1
  19. package/fesm2015/mtxDatetimepicker.mjs +1 -1
  20. package/fesm2015/mtxDatetimepicker.mjs.map +1 -1
  21. package/fesm2015/mtxGrid.mjs +75 -52
  22. package/fesm2015/mtxGrid.mjs.map +1 -1
  23. package/fesm2015/mtxSelect.mjs +26 -12
  24. package/fesm2015/mtxSelect.mjs.map +1 -1
  25. package/fesm2015/mtxSplit.mjs +26 -8
  26. package/fesm2015/mtxSplit.mjs.map +1 -1
  27. package/fesm2015/mtxTooltip.mjs +22 -3
  28. package/fesm2015/mtxTooltip.mjs.map +1 -1
  29. package/fesm2020/mtxCheckboxGroup.mjs +8 -8
  30. package/fesm2020/mtxCheckboxGroup.mjs.map +1 -1
  31. package/fesm2020/mtxDatetimepicker.mjs +1 -1
  32. package/fesm2020/mtxDatetimepicker.mjs.map +1 -1
  33. package/fesm2020/mtxGrid.mjs +72 -52
  34. package/fesm2020/mtxGrid.mjs.map +1 -1
  35. package/fesm2020/mtxSelect.mjs +25 -12
  36. package/fesm2020/mtxSelect.mjs.map +1 -1
  37. package/fesm2020/mtxSplit.mjs +23 -8
  38. package/fesm2020/mtxSplit.mjs.map +1 -1
  39. package/fesm2020/mtxTooltip.mjs +22 -3
  40. package/fesm2020/mtxTooltip.mjs.map +1 -1
  41. package/grid/cell.component.d.ts +1 -0
  42. package/grid/cell.component.scss +1 -1
  43. package/grid/column-menu.component.d.ts +1 -1
  44. package/grid/grid.component.d.ts +11 -6
  45. package/grid/grid.interface.d.ts +63 -14
  46. package/grid/grid.pipe.d.ts +1 -1
  47. package/package.json +2 -2
  48. package/select/select.component.d.ts +28 -8
  49. package/split/interface.d.ts +12 -0
  50. package/split/split.component.d.ts +7 -4
  51. package/tooltip/tooltip.d.ts +9 -1
@@ -1,3 +1,4 @@
1
+ import { ThemePalette } from '@angular/material/core';
1
2
  import { MtxSplitPaneDirective } from './split-pane.directive';
2
3
  export interface MtxSplitPoint {
3
4
  x: number;
@@ -38,3 +39,14 @@ export interface MtxSplitOutputData {
38
39
  sizes: MtxSplitOutputAreaSizes;
39
40
  }
40
41
  export declare type MtxSplitOutputAreaSizes = Array<number | '*'>;
42
+ export interface MtxSplitDefaultOptions {
43
+ color?: ThemePalette;
44
+ dir?: 'ltr' | 'rtl';
45
+ direction?: 'horizontal' | 'vertical';
46
+ unit?: 'percent' | 'pixel';
47
+ gutterDblClickDuration?: number;
48
+ gutterSize?: number;
49
+ gutterStep?: number;
50
+ restrictMove?: boolean;
51
+ useTransition?: boolean;
52
+ }
@@ -1,9 +1,11 @@
1
- import { ChangeDetectorRef, Renderer2, AfterViewInit, OnDestroy, ElementRef, NgZone, EventEmitter } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, Renderer2 } from '@angular/core';
2
2
  import { CanColor } from '@angular/material/core';
3
3
  import { Observable } from 'rxjs';
4
- import { MtxSplitArea, MtxSplitOutputData, MtxSplitOutputAreaSizes } from './interface';
4
+ import { MtxSplitArea, MtxSplitDefaultOptions, MtxSplitOutputAreaSizes, MtxSplitOutputData } from './interface';
5
5
  import { MtxSplitPaneDirective } from './split-pane.directive';
6
6
  import * as i0 from "@angular/core";
7
+ /** Injection token that can be used to specify default split options. */
8
+ export declare const MTX_SPLIT_DEFAULT_OPTIONS: InjectionToken<MtxSplitDefaultOptions>;
7
9
  /** @docs-private */
8
10
  declare const _MtxSplitComponentBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & {
9
11
  new (_elementRef: ElementRef): {
@@ -44,6 +46,7 @@ export declare class MtxSplitComponent extends _MtxSplitComponentBase implements
44
46
  private elRef;
45
47
  private cdRef;
46
48
  private renderer;
49
+ protected _defaultOptions?: MtxSplitDefaultOptions | undefined;
47
50
  private _direction;
48
51
  set direction(v: 'horizontal' | 'vertical');
49
52
  get direction(): 'horizontal' | 'vertical';
@@ -87,7 +90,7 @@ export declare class MtxSplitComponent extends _MtxSplitComponentBase implements
87
90
  readonly displayedAreas: Array<MtxSplitArea>;
88
91
  private readonly hidedAreas;
89
92
  private gutterEls;
90
- constructor(ngZone: NgZone, elRef: ElementRef, cdRef: ChangeDetectorRef, renderer: Renderer2);
93
+ constructor(ngZone: NgZone, elRef: ElementRef, cdRef: ChangeDetectorRef, renderer: Renderer2, _defaultOptions?: MtxSplitDefaultOptions | undefined);
91
94
  ngAfterViewInit(): void;
92
95
  private getNbGutters;
93
96
  addArea(component: MtxSplitPaneDirective): void;
@@ -106,7 +109,7 @@ export declare class MtxSplitComponent extends _MtxSplitComponentBase implements
106
109
  private stopDragging;
107
110
  notify(type: 'start' | 'progress' | 'end' | 'click' | 'dblclick' | 'transitionEnd', gutterNum: number): void;
108
111
  ngOnDestroy(): void;
109
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxSplitComponent, never>;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxSplitComponent, [null, null, null, null, { optional: true; }]>;
110
113
  static ɵcmp: i0.ɵɵComponentDeclaration<MtxSplitComponent, "mtx-split", ["mtxSplit"], { "color": "color"; "direction": "direction"; "unit": "unit"; "gutterSize": "gutterSize"; "gutterStep": "gutterStep"; "restrictMove": "restrictMove"; "useTransition": "useTransition"; "disabled": "disabled"; "dir": "dir"; "gutterDblClickDuration": "gutterDblClickDuration"; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "gutterClick": "gutterClick"; "gutterDblClick": "gutterDblClick"; "transitionEnd": "transitionEnd"; }, never, ["*"], false>;
111
114
  }
112
115
  export {};
@@ -104,6 +104,10 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
104
104
  get message(): string | TemplateRef<any>;
105
105
  set message(value: string | TemplateRef<any>);
106
106
  private _message;
107
+ /** Context to be passed to the tooltip. */
108
+ get tooltipContext(): any;
109
+ set tooltipContext(value: any);
110
+ private _tooltipContext;
107
111
  /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
108
112
  get tooltipClass(): string | string[] | Set<string> | {
109
113
  [key: string]: any;
@@ -157,6 +161,8 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
157
161
  };
158
162
  /** Updates the tooltip message and repositions the overlay according to the new message length */
159
163
  private _updateTooltipMessage;
164
+ /** Updates the tooltip context */
165
+ private _setTooltipContext;
160
166
  /** Updates the tooltip class */
161
167
  private _setTooltipClass;
162
168
  /** Inverts an overlay position. */
@@ -172,7 +178,7 @@ export declare class MtxTooltip implements OnDestroy, AfterViewInit {
172
178
  static ngAcceptInputType_hideDelay: NumberInput;
173
179
  static ngAcceptInputType_showDelay: NumberInput;
174
180
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxTooltip, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
175
- static ɵdir: i0.ɵɵDirectiveDeclaration<MtxTooltip, "[mtxTooltip]", ["mtxTooltip"], { "position": "mtxTooltipPosition"; "disabled": "mtxTooltipDisabled"; "showDelay": "mtxTooltipShowDelay"; "hideDelay": "mtxTooltipHideDelay"; "touchGestures": "mtxTooltipTouchGestures"; "message": "mtxTooltip"; "tooltipClass": "mtxTooltipClass"; }, {}, never, never, false>;
181
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxTooltip, "[mtxTooltip]", ["mtxTooltip"], { "position": "mtxTooltipPosition"; "disabled": "mtxTooltipDisabled"; "showDelay": "mtxTooltipShowDelay"; "hideDelay": "mtxTooltipHideDelay"; "touchGestures": "mtxTooltipTouchGestures"; "message": "mtxTooltip"; "tooltipContext": "mtxTooltipContext"; "tooltipClass": "mtxTooltipClass"; }, {}, never, never, false>;
176
182
  }
177
183
  /**
178
184
  * Internal component that wraps the tooltip's content.
@@ -183,6 +189,8 @@ export declare class TooltipComponent implements OnDestroy {
183
189
  private _breakpointObserver;
184
190
  /** Message to display in the tooltip */
185
191
  message: string | TemplateRef<any>;
192
+ /** Context to be added to the tooltip */
193
+ tooltipContext: any;
186
194
  /** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
187
195
  tooltipClass: string | string[] | Set<string> | {
188
196
  [key: string]: any;