@ng-matero/extensions 12.4.0 → 12.5.3
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/_all-color.scss +47 -0
- package/_all-theme.scss +3 -1
- package/_index.scss +2 -0
- package/_theming.scss +2 -0
- package/alert/_alert-theme.import.scss +2 -2
- package/alert/_alert-theme.scss +33 -8
- package/alert/alert.component.d.ts +0 -2
- package/alert/mtxAlert.metadata.json +1 -1
- package/bundles/extensions.umd.js +30 -53
- package/bundles/extensions.umd.js.map +1 -1
- package/bundles/mtxAlert.umd.js +13 -5
- package/bundles/mtxAlert.umd.js.map +1 -1
- package/bundles/mtxButton.umd.js +13 -4
- package/bundles/mtxButton.umd.js.map +1 -1
- package/bundles/mtxCheckboxGroup.umd.js +14 -6
- package/bundles/mtxCheckboxGroup.umd.js.map +1 -1
- package/bundles/mtxColorPicker.umd.js +13 -4
- package/bundles/mtxColorPicker.umd.js.map +1 -1
- package/bundles/mtxColumnResize.umd.js +58 -9
- package/bundles/mtxColumnResize.umd.js.map +1 -1
- package/bundles/mtxCore.umd.js +13 -4
- package/bundles/mtxCore.umd.js.map +1 -1
- package/bundles/mtxDatetimepicker.umd.js +91 -22
- package/bundles/mtxDatetimepicker.umd.js.map +1 -1
- package/bundles/mtxDialog.umd.js +23 -8
- package/bundles/mtxDialog.umd.js.map +1 -1
- package/bundles/mtxFormGroup.umd.js +13 -4
- package/bundles/mtxFormGroup.umd.js.map +1 -1
- package/bundles/mtxGrid.umd.js +95 -17
- package/bundles/mtxGrid.umd.js.map +1 -1
- package/bundles/mtxLoader.umd.js +13 -4
- package/bundles/mtxLoader.umd.js.map +1 -1
- package/bundles/mtxPipes.umd.js +5 -3
- package/bundles/mtxPipes.umd.js.map +1 -1
- package/bundles/mtxPopover.umd.js +30 -6
- package/bundles/mtxPopover.umd.js.map +1 -1
- package/bundles/mtxProgress.umd.js +7 -4
- package/bundles/mtxProgress.umd.js.map +1 -1
- package/bundles/mtxSelect.umd.js +111 -17
- package/bundles/mtxSelect.umd.js.map +1 -1
- package/bundles/mtxSlider.umd.js +1551 -0
- package/bundles/mtxSlider.umd.js.map +1 -0
- package/bundles/mtxSplit.umd.js +39 -20
- package/bundles/mtxSplit.umd.js.map +1 -1
- package/bundles/mtxText3d.umd.js +14 -5
- package/bundles/mtxText3d.umd.js.map +1 -1
- package/bundles/mtxTooltip.umd.js +26 -7
- package/bundles/mtxTooltip.umd.js.map +1 -1
- package/checkbox-group/checkbox-group.component.d.ts +2 -4
- package/checkbox-group/mtxCheckboxGroup.metadata.json +1 -1
- package/datetimepicker/_datetimepicker-theme.import.scss +4 -2
- package/datetimepicker/_datetimepicker-theme.scss +99 -27
- package/datetimepicker/calendar-body.scss +0 -3
- package/datetimepicker/calendar.scss +3 -17
- package/datetimepicker/clock.scss +0 -2
- package/datetimepicker/mtxDatetimepicker.metadata.json +1 -1
- package/dialog/mtxDialog.metadata.json +1 -1
- package/esm2015/alert/alert.component.js +10 -3
- package/esm2015/alert/alert.module.js +2 -1
- package/esm2015/button/button-loading.directive.js +10 -2
- package/esm2015/button/button.module.js +2 -1
- package/esm2015/checkbox-group/checkbox-group.component.js +11 -4
- package/esm2015/checkbox-group/checkbox-group.module.js +2 -1
- package/esm2015/color-picker/color-picker.component.js +10 -2
- package/esm2015/color-picker/color-picker.module.js +2 -1
- package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +9 -2
- package/esm2015/column-resize/column-resize-directives/column-resize.js +9 -2
- package/esm2015/column-resize/column-resize-module.js +2 -1
- package/esm2015/column-resize/column-resize-notifier.js +10 -2
- package/esm2015/column-resize/column-resize.js +2 -1
- package/esm2015/column-resize/column-size-store.js +2 -1
- package/esm2015/column-resize/event-dispatcher.js +9 -2
- package/esm2015/column-resize/overlay-handle.js +2 -1
- package/esm2015/column-resize/resizable.js +2 -1
- package/esm2015/column-resize/resize-strategy.js +18 -3
- package/esm2015/core/datetime/datetime.module.js +3 -1
- package/esm2015/core/datetime/native-datetime-adapter.js +9 -2
- package/esm2015/datetimepicker/calendar-body.js +4 -2
- package/esm2015/datetimepicker/calendar.js +14 -6
- package/esm2015/datetimepicker/clock.js +13 -5
- package/esm2015/datetimepicker/datetimepicker-input.js +11 -3
- package/esm2015/datetimepicker/datetimepicker-toggle.js +10 -2
- package/esm2015/datetimepicker/datetimepicker.js +12 -2
- package/esm2015/datetimepicker/datetimepicker.module.js +2 -1
- package/esm2015/datetimepicker/month-view.js +10 -2
- package/esm2015/datetimepicker/multi-year-view.js +10 -2
- package/esm2015/datetimepicker/year-view.js +10 -2
- package/esm2015/dialog/dialog.component.js +10 -3
- package/esm2015/dialog/dialog.js +9 -2
- package/esm2015/dialog/dialog.module.js +2 -1
- package/esm2015/extensions-experimental.module.js +2 -1
- package/esm2015/extensions.module.js +4 -1
- package/esm2015/form-group/form-group.component.js +10 -2
- package/esm2015/form-group/form-group.module.js +2 -1
- package/esm2015/grid/cell-selection.directive.js +10 -2
- package/esm2015/grid/cell.component.js +10 -2
- package/esm2015/grid/column-menu.component.js +3 -1
- package/esm2015/grid/column-resize/column-resize-directives/column-resize-flex.js +9 -2
- package/esm2015/grid/column-resize/column-resize-directives/column-resize.js +9 -2
- package/esm2015/grid/column-resize/column-resize-module.js +3 -1
- package/esm2015/grid/column-resize/overlay-handle.js +9 -2
- package/esm2015/grid/column-resize/resizable-directives/resizable.js +10 -2
- package/esm2015/grid/column-resize/resize-strategy.js +9 -2
- package/esm2015/grid/expansion-toggle.directive.js +10 -2
- package/esm2015/grid/grid.component.js +10 -2
- package/esm2015/grid/grid.module.js +2 -1
- package/esm2015/grid/grid.service.js +9 -2
- package/esm2015/loader/loader.component.js +10 -2
- package/esm2015/loader/loader.module.js +2 -1
- package/esm2015/pipes/pipes.module.js +2 -1
- package/esm2015/pipes/to-observable.pipe.js +2 -1
- package/esm2015/popover/popover-module.js +2 -1
- package/esm2015/popover/popover-target.js +9 -2
- package/esm2015/popover/popover-trigger.js +10 -2
- package/esm2015/popover/popover.js +10 -2
- package/esm2015/progress/progress.component.js +4 -2
- package/esm2015/progress/progress.module.js +2 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/select/option.component.js +10 -2
- package/esm2015/select/select.component.js +11 -3
- package/esm2015/select/select.module.js +2 -1
- package/esm2015/select/templates.directive.js +89 -12
- package/esm2015/slider/mtxSlider.js +5 -0
- package/esm2015/slider/public-api.js +3 -0
- package/esm2015/slider/slider-module.js +15 -0
- package/esm2015/slider/slider.js +1115 -0
- package/esm2015/split/interface.js +1 -1
- package/esm2015/split/split-pane.directive.js +10 -2
- package/esm2015/split/split.component.js +22 -12
- package/esm2015/split/split.module.js +2 -1
- package/esm2015/split/utils.js +6 -6
- package/esm2015/text3d/text3d.component.js +11 -3
- package/esm2015/text3d/text3d.module.js +2 -1
- package/esm2015/tooltip/tooltip-module.js +2 -1
- package/esm2015/tooltip/tooltip.js +23 -5
- package/extensions.metadata.json +1 -1
- package/fesm2015/extensions.js +5 -0
- package/fesm2015/extensions.js.map +1 -1
- package/fesm2015/mtxAlert.js +10 -2
- package/fesm2015/mtxAlert.js.map +1 -1
- package/fesm2015/mtxButton.js +10 -1
- package/fesm2015/mtxButton.js.map +1 -1
- package/fesm2015/mtxCheckboxGroup.js +11 -3
- package/fesm2015/mtxCheckboxGroup.js.map +1 -1
- package/fesm2015/mtxColorPicker.js +10 -1
- package/fesm2015/mtxColorPicker.js.map +1 -1
- package/fesm2015/mtxColumnResize.js +55 -6
- package/fesm2015/mtxColumnResize.js.map +1 -1
- package/fesm2015/mtxCore.js +10 -1
- package/fesm2015/mtxCore.js.map +1 -1
- package/fesm2015/mtxDatetimepicker.js +86 -17
- package/fesm2015/mtxDatetimepicker.js.map +1 -1
- package/fesm2015/mtxDialog.js +18 -3
- package/fesm2015/mtxDialog.js.map +1 -1
- package/fesm2015/mtxFormGroup.js +10 -1
- package/fesm2015/mtxFormGroup.js.map +1 -1
- package/fesm2015/mtxGrid.js +90 -10
- package/fesm2015/mtxGrid.js.map +1 -1
- package/fesm2015/mtxLoader.js +10 -1
- package/fesm2015/mtxLoader.js.map +1 -1
- package/fesm2015/mtxPipes.js +2 -0
- package/fesm2015/mtxPipes.js.map +1 -1
- package/fesm2015/mtxPopover.js +27 -3
- package/fesm2015/mtxPopover.js.map +1 -1
- package/fesm2015/mtxProgress.js +4 -1
- package/fesm2015/mtxProgress.js.map +1 -1
- package/fesm2015/mtxSelect.js +108 -14
- package/fesm2015/mtxSelect.js.map +1 -1
- package/fesm2015/mtxSlider.js +1134 -0
- package/fesm2015/mtxSlider.js.map +1 -0
- package/fesm2015/mtxSplit.js +36 -17
- package/fesm2015/mtxSplit.js.map +1 -1
- package/fesm2015/mtxText3d.js +11 -2
- package/fesm2015/mtxText3d.js.map +1 -1
- package/fesm2015/mtxTooltip.js +23 -4
- package/fesm2015/mtxTooltip.js.map +1 -1
- package/form-group/_form-group-theme.import.scss +2 -2
- package/form-group/_form-group-theme.scss +46 -22
- package/grid/_grid-theme.import.scss +2 -2
- package/grid/_grid-theme.scss +45 -21
- package/grid/column-resize/_column-resize.scss +19 -13
- package/loader/_loader-theme.import.scss +2 -2
- package/loader/_loader-theme.scss +30 -6
- package/package.json +2 -2
- package/popover/_popover-theme.import.scss +2 -2
- package/popover/_popover-theme.scss +32 -8
- package/popover/popover.d.ts +3 -3
- package/progress/_progress-theme.import.scss +2 -2
- package/progress/_progress-theme.scss +33 -8
- package/progress/mtxProgress.metadata.json +1 -1
- package/public-api.d.ts +1 -0
- package/select/_select-theme.import.scss +2 -2
- package/select/_select-theme.scss +55 -31
- package/select/mtxSelect.metadata.json +1 -1
- package/select/select.component.d.ts +1 -1
- package/slider/_slider-theme.import.scss +2 -0
- package/slider/_slider-theme.scss +233 -0
- package/slider/mtxSlider.d.ts +4 -0
- package/slider/mtxSlider.metadata.json +1 -0
- package/slider/package.json +11 -0
- package/slider/public-api.d.ts +2 -0
- package/slider/slider-module.d.ts +2 -0
- package/slider/slider.d.ts +274 -0
- package/slider/slider.scss +514 -0
- package/split/_split-theme.import.scss +2 -2
- package/split/_split-theme.scss +30 -6
- package/split/interface.d.ts +1 -2
- package/split/mtxSplit.metadata.json +1 -1
- package/split/split.component.scss +3 -2
- package/text3d/_text3d-theme.import.scss +2 -2
- package/text3d/_text3d-theme.scss +32 -7
- package/text3d/mtxText3d.metadata.json +1 -1
- package/tooltip/_tooltip-theme.import.scss +2 -2
- package/tooltip/_tooltip-theme.scss +32 -15
- package/tooltip/mtxTooltip.metadata.json +1 -1
package/bundles/mtxDialog.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/dialog'), require('@angular/material/button'), require('@angular/material/icon'), require('@ng-matero/extensions/pipes')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/dialog', ['exports', '@angular/core', '@angular/common', '@angular/material/dialog', '@angular/material/button', '@angular/material/icon', '@ng-matero/extensions/pipes'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, core, common, dialog, button, icon, pipes) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-matero"] = global["ng-matero"] || {}, global["ng-matero"].extensions = global["ng-matero"].extensions || {}, global["ng-matero"].extensions.dialog = {}), global.ng.core, global.ng.common, global.ng.material.dialog, global.ng.material.button, global.ng.material.icon, global["ng-matero"].extensions.pipes));
|
|
5
|
+
})(this, (function (exports, core, common, dialog, button, icon, pipes) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var MtxDialogComponent = /** @class */ (function () {
|
|
8
8
|
function MtxDialogComponent(dialogRef, data) {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
};
|
|
21
21
|
return MtxDialogComponent;
|
|
22
22
|
}());
|
|
23
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
23
24
|
MtxDialogComponent.decorators = [
|
|
24
25
|
{ type: core.Component, args: [{
|
|
25
26
|
selector: 'mtx-dialog',
|
|
@@ -27,10 +28,16 @@
|
|
|
27
28
|
template: "<h1 class=\"mtx-dialog-title\" *ngIf=\"data.title\">{{data.title | toObservable | async}}\n <button mat-icon-button *ngIf=\"data.showCloseIcon\" (click)=\"_onClose()\">\n <mat-icon>close</mat-icon>\n </button>\n</h1>\n<div class=\"mtx-dialog-content\" *ngIf=\"data.description\">\n <p>{{data.description | toObservable | async}}</p>\n</div>\n<div class=\"mtx-dialog-actions\">\n <ng-container *ngFor=\"let btn of data.buttons\">\n <ng-container [ngSwitch]=\"btn.type\">\n <ng-container *ngSwitchCase=\"'raised'\">\n <button mat-raised-button *ngIf=\"btn.focusInitial\" cdkFocusInitial\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n <button mat-raised-button *ngIf=\"!btn.focusInitial\"\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button mat-stroked-button *ngIf=\"btn.focusInitial\" cdkFocusInitial\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n <button mat-stroked-button *ngIf=\"!btn.focusInitial\"\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'flat'\">\n <button mat-flat-button *ngIf=\"btn.focusInitial\" cdkFocusInitial\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n <button mat-flat-button *ngIf=\"!btn.focusInitial\"\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button mat-button *ngIf=\"btn.focusInitial\" cdkFocusInitial\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n <button mat-button *ngIf=\"!btn.focusInitial\"\n [color]=\"btn.color\" [ngClass]=\"btn.class!\" (click)=\"_onClick(btn.onClick!)\">\n {{btn.text | toObservable | async}}\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</div>\n",
|
|
28
29
|
encapsulation: core.ViewEncapsulation.None,
|
|
29
30
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
30
|
-
styles: [".mtx-dialog-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;font:500 20px/32px Roboto
|
|
31
|
+
styles: [".mtx-dialog-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;font:500 20px/32px Roboto,\"Helvetica Neue\",sans-serif;letter-spacing:normal}.mtx-dialog-content{display:block;max-height:65vh;padding:0 24px;margin:0 -24px;overflow:auto;-webkit-overflow-scrolling:touch}.mtx-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-height:52px;padding:8px 0;margin-bottom:-24px}\n"]
|
|
31
32
|
},] }
|
|
32
33
|
];
|
|
33
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* @type {function(): !Array<(null|{
|
|
36
|
+
* type: ?,
|
|
37
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
38
|
+
* })>}
|
|
39
|
+
* @nocollapse
|
|
40
|
+
*/
|
|
34
41
|
MtxDialogComponent.ctorParameters = function () { return [
|
|
35
42
|
{ type: dialog.MatDialogRef },
|
|
36
43
|
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
@@ -106,10 +113,17 @@
|
|
|
106
113
|
};
|
|
107
114
|
return MtxDialog;
|
|
108
115
|
}());
|
|
116
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
109
117
|
MtxDialog.decorators = [
|
|
110
118
|
{ type: core.Injectable }
|
|
111
119
|
];
|
|
112
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* @type {function(): !Array<(null|{
|
|
122
|
+
* type: ?,
|
|
123
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
124
|
+
* })>}
|
|
125
|
+
* @nocollapse
|
|
126
|
+
*/
|
|
113
127
|
MtxDialog.ctorParameters = function () { return [
|
|
114
128
|
{ type: dialog.MatDialog }
|
|
115
129
|
]; };
|
|
@@ -119,6 +133,7 @@
|
|
|
119
133
|
}
|
|
120
134
|
return MtxDialogModule;
|
|
121
135
|
}());
|
|
136
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
122
137
|
MtxDialogModule.decorators = [
|
|
123
138
|
{ type: core.NgModule, args: [{
|
|
124
139
|
imports: [common.CommonModule, dialog.MatDialogModule, button.MatButtonModule, icon.MatIconModule, pipes.MtxPipesModule],
|
|
@@ -136,10 +151,10 @@
|
|
|
136
151
|
exports.MtxDialog = MtxDialog;
|
|
137
152
|
exports.MtxDialogComponent = MtxDialogComponent;
|
|
138
153
|
exports.MtxDialogModule = MtxDialogModule;
|
|
139
|
-
exports
|
|
140
|
-
exports
|
|
154
|
+
exports["ɵ0"] = ɵ0;
|
|
155
|
+
exports["ɵ1"] = ɵ1;
|
|
141
156
|
|
|
142
157
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
143
158
|
|
|
144
|
-
}))
|
|
159
|
+
}));
|
|
145
160
|
//# sourceMappingURL=mtxDialog.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mtxDialog.umd.js","sources":["../../../projects/extensions/dialog/dialog.component.ts","../../../projects/extensions/dialog/dialog.ts","../../../projects/extensions/dialog/dialog.module.ts","../../../projects/extensions/dialog/mtxDialog.ts"],"sourcesContent":["import { Component, Inject, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\n\nimport { MtxDialogData } from './dialog.config';\n\n@Component({\n selector: 'mtx-dialog',\n exportAs: 'mtxDialog',\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MtxDialogComponent {\n constructor(\n public dialogRef: MatDialogRef<MtxDialogComponent>,\n @Inject(MAT_DIALOG_DATA) public data: MtxDialogData\n ) {}\n\n _onClick(fn: () => void) {\n if (fn) {\n fn.call(this);\n }\n this._onClose();\n }\n\n _onClose() {\n this.dialogRef.close();\n }\n}\n","import { Injectable, TemplateRef } from '@angular/core';\nimport { ComponentType } from '@angular/cdk/portal';\nimport { MatDialog } from '@angular/material/dialog';\n\nimport { MtxDialogComponent } from './dialog.component';\nimport { MtxDialogData } from './dialog.config';\nimport { Observable } from 'rxjs';\n\nconst defaults: MtxDialogData = {\n title: '',\n description: '',\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n focusInitial: true,\n onClick: () => {},\n },\n {\n text: 'CLOSE',\n onClick: () => {},\n },\n ],\n showCloseIcon: false,\n disableClose: true,\n width: '300px',\n};\n\n@Injectable()\nexport class MtxDialog {\n constructor(public dialog: MatDialog) {}\n\n originalOpen(\n componentOrTemplateRef: ComponentType<any> | TemplateRef<any> = MtxDialogComponent,\n config: any\n ) {\n return this.dialog.open(componentOrTemplateRef, config);\n }\n\n open(\n config: MtxDialogData,\n componentOrTemplateRef: ComponentType<any> | TemplateRef<any> = MtxDialogComponent\n ) {\n const data = Object.assign({}, defaults, config);\n return this.dialog.open(componentOrTemplateRef, {\n ...data,\n data,\n });\n }\n\n alert(\n title: string | Observable<string>,\n description: string | Observable<string> = '',\n onOk = () => {}\n ) {\n this.open({\n title,\n description,\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n onClick: () => onOk(),\n },\n ],\n });\n }\n\n confirm(\n title: string | Observable<string>,\n description: string | Observable<string> = '',\n onOk = () => {},\n onClose = () => {}\n ) {\n this.open({\n title,\n description,\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n onClick: () => onOk(),\n },\n {\n text: 'CLOSE',\n onClick: () => onClose(),\n },\n ],\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { MtxPipesModule } from '@ng-matero/extensions/pipes';\nimport { MtxDialogComponent } from './dialog.component';\nimport { MtxDialog } from './dialog';\n\n@NgModule({\n imports: [CommonModule, MatDialogModule, MatButtonModule, MatIconModule, MtxPipesModule],\n exports: [MtxDialogComponent],\n declarations: [MtxDialogComponent],\n providers: [MtxDialog],\n entryComponents: [MtxDialogComponent],\n})\nexport class MtxDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Component","ViewEncapsulation","ChangeDetectionStrategy","MatDialogRef","Inject","MAT_DIALOG_DATA","Injectable","MatDialog","NgModule","CommonModule","MatDialogModule","MatButtonModule","MatIconModule","MtxPipesModule"],"mappings":";;;;;;;QAcE,4BACS,SAA2C,EAClB,IAAmB;YAD5C,cAAS,GAAT,SAAS,CAAkC;YAClB,SAAI,GAAJ,IAAI,CAAe;SACjD;QAEJ,qCAAQ,GAAR,UAAS,EAAc;YACrB,IAAI,EAAE,EAAE;gBACN,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACf;YACD,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;QAED,qCAAQ,GAAR;YACE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;SACxB
|
|
1
|
+
{"version":3,"file":"mtxDialog.umd.js","sources":["../../../projects/extensions/dialog/dialog.component.ts","../../../projects/extensions/dialog/dialog.ts","../../../projects/extensions/dialog/dialog.module.ts","../../../projects/extensions/dialog/mtxDialog.ts"],"sourcesContent":["import { Component, Inject, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\n\nimport { MtxDialogData } from './dialog.config';\n\n@Component({\n selector: 'mtx-dialog',\n exportAs: 'mtxDialog',\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MtxDialogComponent {\n constructor(\n public dialogRef: MatDialogRef<MtxDialogComponent>,\n @Inject(MAT_DIALOG_DATA) public data: MtxDialogData\n ) {}\n\n _onClick(fn: () => void) {\n if (fn) {\n fn.call(this);\n }\n this._onClose();\n }\n\n _onClose() {\n this.dialogRef.close();\n }\n}\n","import { Injectable, TemplateRef } from '@angular/core';\nimport { ComponentType } from '@angular/cdk/portal';\nimport { MatDialog } from '@angular/material/dialog';\n\nimport { MtxDialogComponent } from './dialog.component';\nimport { MtxDialogData } from './dialog.config';\nimport { Observable } from 'rxjs';\n\nconst defaults: MtxDialogData = {\n title: '',\n description: '',\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n focusInitial: true,\n onClick: () => {},\n },\n {\n text: 'CLOSE',\n onClick: () => {},\n },\n ],\n showCloseIcon: false,\n disableClose: true,\n width: '300px',\n};\n\n@Injectable()\nexport class MtxDialog {\n constructor(public dialog: MatDialog) {}\n\n originalOpen(\n componentOrTemplateRef: ComponentType<any> | TemplateRef<any> = MtxDialogComponent,\n config: any\n ) {\n return this.dialog.open(componentOrTemplateRef, config);\n }\n\n open(\n config: MtxDialogData,\n componentOrTemplateRef: ComponentType<any> | TemplateRef<any> = MtxDialogComponent\n ) {\n const data = Object.assign({}, defaults, config);\n return this.dialog.open(componentOrTemplateRef, {\n ...data,\n data,\n });\n }\n\n alert(\n title: string | Observable<string>,\n description: string | Observable<string> = '',\n onOk = () => {}\n ) {\n this.open({\n title,\n description,\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n onClick: () => onOk(),\n },\n ],\n });\n }\n\n confirm(\n title: string | Observable<string>,\n description: string | Observable<string> = '',\n onOk = () => {},\n onClose = () => {}\n ) {\n this.open({\n title,\n description,\n buttons: [\n {\n color: 'warn',\n text: 'OK',\n onClick: () => onOk(),\n },\n {\n text: 'CLOSE',\n onClick: () => onClose(),\n },\n ],\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { MtxPipesModule } from '@ng-matero/extensions/pipes';\nimport { MtxDialogComponent } from './dialog.component';\nimport { MtxDialog } from './dialog';\n\n@NgModule({\n imports: [CommonModule, MatDialogModule, MatButtonModule, MatIconModule, MtxPipesModule],\n exports: [MtxDialogComponent],\n declarations: [MtxDialogComponent],\n providers: [MtxDialog],\n entryComponents: [MtxDialogComponent],\n})\nexport class MtxDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Component","ViewEncapsulation","ChangeDetectionStrategy","MatDialogRef","Inject","MAT_DIALOG_DATA","Injectable","MatDialog","NgModule","CommonModule","MatDialogModule","MatButtonModule","MatIconModule","MtxPipesModule"],"mappings":";;;;;;;QAcE,4BACS,SAA2C,EAClB,IAAmB;YAD5C,cAAS,GAAT,SAAS,CAAkC;YAClB,SAAI,GAAJ,IAAI,CAAe;SACjD;QAEJ,qCAAQ,GAAR,UAAS,EAAc;YACrB,IAAI,EAAE,EAAE;gBACN,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACf;YACD,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;QAED,qCAAQ,GAAR;YACE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;SACxB;;;;;gBAvBFA,cAAS,SAAC;oBACT,QAAQ,EAAE,YAAY;oBACtB,QAAQ,EAAE,WAAW;oBACrB,soFAAsC;oBAEtC,aAAa,EAAEC,sBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAEC,4BAAuB,CAAC,MAAM;;iBAChD;;;;;;;;;;gBAXQC,mBAAY;gDAehBC,WAAM,SAACC,sBAAe;;;aCAZ,eAAQ,OAIR;IAZf,IAAM,QAAQ,GAAkB;QAC9B,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,IAAI;gBACV,YAAY,EAAE,IAAI;gBAClB,OAAO,IAAU;aAClB;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,OAAO,IAAU;aAClB;SACF;QACD,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,OAAO;KACf,CAAC;;QAIA,mBAAmB,MAAiB;YAAjB,WAAM,GAAN,MAAM,CAAW;SAAI;QAExC,gCAAY,GAAZ,UACE,sBAAkF,EAClF,MAAW;YADX,uCAAA,EAAA,2CAAkF;YAGlF,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;SACzD;QAED,wBAAI,GAAJ,UACE,MAAqB,EACrB,sBAAkF;YAAlF,uCAAA,EAAA,2CAAkF;YAElF,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YACjD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,kCACzC,IAAI,KACP,IAAI,MAAA,IACJ,CAAC;SACJ;QAED,yBAAK,GAAL,UACE,KAAkC,EAClC,WAA6C,EAC7C,IAAe;YADf,4BAAA,EAAA,gBAA6C;YAC7C,qBAAA,EAAA,sBAAe;YAEf,IAAI,CAAC,IAAI,CAAC;gBACR,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,MAAM;wBACb,IAAI,EAAE,IAAI;wBACV,OAAO,EAAE,cAAM,OAAA,IAAI,EAAE,GAAA;qBACtB;iBACF;aACF,CAAC,CAAC;SACJ;QAED,2BAAO,GAAP,UACE,KAAkC,EAClC,WAA6C,EAC7C,IAAe,EACf,OAAkB;YAFlB,4BAAA,EAAA,gBAA6C;YAC7C,qBAAA,EAAA,sBAAe;YACf,wBAAA,EAAA,yBAAkB;YAElB,IAAI,CAAC,IAAI,CAAC;gBACR,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,MAAM;wBACb,IAAI,EAAE,IAAI;wBACV,OAAO,EAAE,cAAM,OAAA,IAAI,EAAE,GAAA;qBACtB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,OAAO,EAAE,cAAM,OAAA,OAAO,EAAE,GAAA;qBACzB;iBACF;aACF,CAAC,CAAC;SACJ;;;;;gBA7DFC,eAAU;;;;;;;;;;gBA1BFC,gBAAS;;;;QCelB;;;;;;gBAPCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,EAAEC,sBAAe,EAAEC,sBAAe,EAAEC,kBAAa,EAAEC,oBAAc,CAAC;oBACxF,OAAO,EAAE,CAAC,kBAAkB,CAAC;oBAC7B,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,SAAS,EAAE,CAAC,SAAS,CAAC;oBACtB,eAAe,EAAE,CAAC,kBAAkB,CAAC;iBACtC;;;IChBD;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/coercion'), require('@angular/material/form-field')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/form-group', ['exports', '@angular/core', '@angular/common', '@angular/cdk/coercion', '@angular/material/form-field'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, core, common, coercion, formField) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-matero"] = global["ng-matero"] || {}, global["ng-matero"].extensions = global["ng-matero"].extensions || {}, global["ng-matero"].extensions["form-group"] = {}), global.ng.core, global.ng.common, global.ng.cdk.coercion, global.ng.material.formField));
|
|
5
|
+
})(this, (function (exports, core, common, coercion, formField) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var MtxFormGroupComponent = /** @class */ (function () {
|
|
8
8
|
function MtxFormGroupComponent() {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
};
|
|
27
27
|
return MtxFormGroupComponent;
|
|
28
28
|
}());
|
|
29
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
29
30
|
MtxFormGroupComponent.decorators = [
|
|
30
31
|
{ type: core.Component, args: [{
|
|
31
32
|
selector: 'mtx-form-group',
|
|
@@ -37,8 +38,15 @@
|
|
|
37
38
|
styles: [".mtx-form-group{display:inline-block}.mtx-form-group .mtx-form-field-layout{display:inline-flex;align-items:flex-start;width:100%}.mtx-form-group .mtx-form-label{position:relative;display:inline-block;padding-top:calc(.375em + 1px);padding-bottom:calc(.375em + 1px);padding-right:1em;line-height:1.125}[dir=rtl] .mtx-form-group .mtx-form-label{padding-right:unset;padding-left:1em}.mtx-form-group .mtx-form-label.mtx-form-label-marker:after{content:\"*\";margin-left:4px}[dir=rtl] .mtx-form-group .mtx-form-label.mtx-form-label-marker:after{margin-left:auto;margin-right:4px}.mtx-form-field-appearance-fluent .mat-form-field{margin-bottom:.25em}.mtx-form-field-appearance-fluent .mat-form-field .mat-form-field-suffix .mat-datepicker-toggle{display:flex}.mtx-form-field-appearance-fluent .mat-form-field .mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mtx-form-field-appearance-fluent .mat-form-field .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{width:1em}.mtx-form-field-appearance-fluent .mat-form-field-has-label .mat-form-field-flex{margin-top:.84375em}.mtx-form-field-appearance-fluent .mat-form-field-appearance-standard .mat-form-field-flex{padding-top:0}.mtx-form-field-appearance-fluent .mat-form-field-flex{align-items:center;padding:0 .5em;border-radius:2px}.mtx-form-field-appearance-fluent .mat-form-field-infix{border-top:0;padding:.375em 0}.mtx-form-field-appearance-fluent .mat-form-field-prefix,.mtx-form-field-appearance-fluent .mat-form-field-suffix{display:inline-flex}.mtx-form-field-appearance-fluent .mat-form-field-prefix .mat-icon,.mtx-form-field-appearance-fluent .mat-form-field-suffix .mat-icon{line-height:normal}.mtx-form-field-appearance-fluent .mat-form-field-underline{display:none}.mtx-form-field-appearance-fluent .mtx-select{display:block;margin:0 -8px}.mtx-form-field-appearance-fluent .ng-select{padding-top:.4375em;padding-left:8px;padding-right:8px;margin-top:-.4375em}\n"]
|
|
38
39
|
},] }
|
|
39
40
|
];
|
|
40
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* @type {function(): !Array<(null|{
|
|
43
|
+
* type: ?,
|
|
44
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
45
|
+
* })>}
|
|
46
|
+
* @nocollapse
|
|
47
|
+
*/
|
|
41
48
|
MtxFormGroupComponent.ctorParameters = function () { return []; };
|
|
49
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
42
50
|
MtxFormGroupComponent.propDecorators = {
|
|
43
51
|
formFields: [{ type: core.ContentChildren, args: [formField.MatFormField,] }],
|
|
44
52
|
label: [{ type: core.Input }],
|
|
@@ -50,6 +58,7 @@
|
|
|
50
58
|
}
|
|
51
59
|
return MtxFormGroupModule;
|
|
52
60
|
}());
|
|
61
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
53
62
|
MtxFormGroupModule.decorators = [
|
|
54
63
|
{ type: core.NgModule, args: [{
|
|
55
64
|
imports: [common.CommonModule],
|
|
@@ -67,5 +76,5 @@
|
|
|
67
76
|
|
|
68
77
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
69
78
|
|
|
70
|
-
}))
|
|
79
|
+
}));
|
|
71
80
|
//# sourceMappingURL=mtxFormGroup.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mtxFormGroup.umd.js","sources":["../../../projects/extensions/form-group/form-group.component.ts","../../../projects/extensions/form-group/form-group.module.ts","../../../projects/extensions/form-group/mtxFormGroup.ts"],"sourcesContent":["import {\n AfterContentInit,\n Component,\n ContentChildren,\n Input,\n OnInit,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { MatFormField } from '@angular/material/form-field';\n\n@Component({\n selector: 'mtx-form-group',\n host: {\n class: 'mtx-form-group',\n },\n templateUrl: './form-group.component.html',\n styleUrls: ['./form-group.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MtxFormGroupComponent implements OnInit, AfterContentInit {\n @ContentChildren(MatFormField) formFields!: QueryList<MatFormField>;\n\n @Input() label!: string;\n @Input()\n get showRequiredMarker(): boolean {\n return this._showRequiredMarker;\n }\n set showRequiredMarker(value: boolean) {\n this._showRequiredMarker = coerceBooleanProperty(value);\n }\n private _showRequiredMarker = false;\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngAfterContentInit() {\n this.formFields.forEach(item => {\n item.appearance = 'standard';\n });\n }\n\n static ngAcceptInputType_showRequiredMarker: BooleanInput;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MtxFormGroupComponent } from './form-group.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [MtxFormGroupComponent],\n declarations: [MtxFormGroupComponent],\n})\nexport class MtxFormGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["coerceBooleanProperty","Component","ViewEncapsulation","ContentChildren","MatFormField","Input","NgModule","CommonModule"],"mappings":";;;;;;;QAkCE;YAFQ,wBAAmB,GAAG,KAAK,CAAC;SAEpB;QAThB,sBACI,qDAAkB;iBADtB;gBAEE,OAAO,IAAI,CAAC,mBAAmB,CAAC;aACjC;iBACD,UAAuB,KAAc;gBACnC,IAAI,CAAC,mBAAmB,GAAGA,8BAAqB,CAAC,KAAK,CAAC,CAAC;aACzD;;;WAHA;QAQD,wCAAQ,GAAR,eAAmB;QAEnB,kDAAkB,GAAlB;YACE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAA,IAAI;gBAC1B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;aAC9B,CAAC,CAAC;SACJ
|
|
1
|
+
{"version":3,"file":"mtxFormGroup.umd.js","sources":["../../../projects/extensions/form-group/form-group.component.ts","../../../projects/extensions/form-group/form-group.module.ts","../../../projects/extensions/form-group/mtxFormGroup.ts"],"sourcesContent":["import {\n AfterContentInit,\n Component,\n ContentChildren,\n Input,\n OnInit,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { MatFormField } from '@angular/material/form-field';\n\n@Component({\n selector: 'mtx-form-group',\n host: {\n class: 'mtx-form-group',\n },\n templateUrl: './form-group.component.html',\n styleUrls: ['./form-group.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class MtxFormGroupComponent implements OnInit, AfterContentInit {\n @ContentChildren(MatFormField) formFields!: QueryList<MatFormField>;\n\n @Input() label!: string;\n @Input()\n get showRequiredMarker(): boolean {\n return this._showRequiredMarker;\n }\n set showRequiredMarker(value: boolean) {\n this._showRequiredMarker = coerceBooleanProperty(value);\n }\n private _showRequiredMarker = false;\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngAfterContentInit() {\n this.formFields.forEach(item => {\n item.appearance = 'standard';\n });\n }\n\n static ngAcceptInputType_showRequiredMarker: BooleanInput;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MtxFormGroupComponent } from './form-group.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [MtxFormGroupComponent],\n declarations: [MtxFormGroupComponent],\n})\nexport class MtxFormGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["coerceBooleanProperty","Component","ViewEncapsulation","ContentChildren","MatFormField","Input","NgModule","CommonModule"],"mappings":";;;;;;;QAkCE;YAFQ,wBAAmB,GAAG,KAAK,CAAC;SAEpB;QAThB,sBACI,qDAAkB;iBADtB;gBAEE,OAAO,IAAI,CAAC,mBAAmB,CAAC;aACjC;iBACD,UAAuB,KAAc;gBACnC,IAAI,CAAC,mBAAmB,GAAGA,8BAAqB,CAAC,KAAK,CAAC,CAAC;aACzD;;;WAHA;QAQD,wCAAQ,GAAR,eAAmB;QAEnB,kDAAkB,GAAlB;YACE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAA,IAAI;gBAC1B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;aAC9B,CAAC,CAAC;SACJ;;;;;gBA9BFC,cAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE;wBACJ,KAAK,EAAE,gBAAgB;qBACxB;oBACD,mRAA0C;oBAE1C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBACtC;;;;;;;;;;;;6BAEEC,oBAAe,SAACC,sBAAY;wBAE5BC,UAAK;qCACLA,UAAK;;;;QCfR;;;;;;gBALCC,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,YAAY,EAAE,CAAC,qBAAqB,CAAC;iBACtC;;;ICTD;;;;;;;;;;;;;"}
|
package/bundles/mtxGrid.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/checkbox'), require('@angular/material/button'), require('@angular/material/progress-bar'), require('@angular/material/chips'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@angular/material/select'), require('@angular/material/form-field'), require('@angular/material/menu'), require('@angular/cdk/drag-drop'), require('@ng-matero/extensions/pipes'), require('@ng-matero/extensions/dialog'), require('@angular/animations'), require('@angular/cdk/collections'), require('photoviewer'), require('@angular/cdk/overlay'), require('@ng-matero/extensions/column-resize'), require('@angular/cdk/table'), require('@angular/cdk/bidi')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/grid', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/checkbox', '@angular/material/button', '@angular/material/progress-bar', '@angular/material/chips', '@angular/material/tooltip', '@angular/material/icon', '@angular/material/select', '@angular/material/form-field', '@angular/material/menu', '@angular/cdk/drag-drop', '@ng-matero/extensions/pipes', '@ng-matero/extensions/dialog', '@angular/animations', '@angular/cdk/collections', 'photoviewer', '@angular/cdk/overlay', '@ng-matero/extensions/column-resize', '@angular/cdk/table', '@angular/cdk/bidi'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, core, common, forms, table, sort, paginator, checkbox, button, progressBar, chips, tooltip, icon, select, formField, menu, dragDrop, pipes, dialog, animations, collections, PhotoViewer, overlay, columnResize, table$1, bidi) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-matero"] = global["ng-matero"] || {}, global["ng-matero"].extensions = global["ng-matero"].extensions || {}, global["ng-matero"].extensions.grid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.checkbox, global.ng.material.button, global.ng.material.progressBar, global.ng.material.chips, global.ng.material.tooltip, global.ng.material.icon, global.ng.material.select, global.ng.material.formField, global.ng.material.menu, global.ng.cdk.dragDrop, global["ng-matero"].extensions.pipes, global["ng-matero"].extensions.dialog, global.ng.animations, global.ng.cdk.collections, global.PhotoViewer, global.ng.cdk.overlay, global["ng-matero"].extensions["column-resize"], global.ng.cdk.table, global.ng.cdk.bidi));
|
|
5
|
+
})(this, (function (exports, core, common, forms, table, sort, paginator, checkbox, button, progressBar, chips, tooltip, icon, select, formField, menu, dragDrop, pipes, dialog, animations, collections, PhotoViewer, overlay, columnResize, table$1, bidi) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -365,10 +365,17 @@
|
|
|
365
365
|
};
|
|
366
366
|
return MtxGridService;
|
|
367
367
|
}());
|
|
368
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
368
369
|
MtxGridService.decorators = [
|
|
369
370
|
{ type: core.Injectable }
|
|
370
371
|
];
|
|
371
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* @type {function(): !Array<(null|{
|
|
374
|
+
* type: ?,
|
|
375
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
376
|
+
* })>}
|
|
377
|
+
* @nocollapse
|
|
378
|
+
*/
|
|
372
379
|
MtxGridService.ctorParameters = function () { return []; };
|
|
373
380
|
|
|
374
381
|
var MtxGridComponent = /** @class */ (function () {
|
|
@@ -689,6 +696,7 @@
|
|
|
689
696
|
};
|
|
690
697
|
return MtxGridComponent;
|
|
691
698
|
}());
|
|
699
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
692
700
|
MtxGridComponent.decorators = [
|
|
693
701
|
{ type: core.Component, args: [{
|
|
694
702
|
selector: 'mtx-grid',
|
|
@@ -709,11 +717,18 @@
|
|
|
709
717
|
styles: [".mtx-grid{position:relative;display:flex;flex-direction:column;width:100%}.mtx-grid .mat-table-container{overflow:auto}.mtx-grid .mat-table-container.mat-table-with-data{flex:1}.mtx-grid .mat-table:not(.mat-column-resize-table){min-width:100%;border-collapse:separate}.mtx-grid .mat-table:not(.mat-column-resize-table) .mat-header-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-table:not(.mat-column-resize-table) .mat-footer-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-table:not(.mat-column-resize-table) .mat-cell:not(.mtx-grid-checkbox-cell){min-width:80px}.mtx-grid .mat-table-sticky-left{border-right-width:1px;border-right-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-left{border-right-width:0;border-left-width:1px;border-left-style:solid}.mtx-grid .mat-table-sticky-right{border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-right{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid .mat-header-cell,.mtx-grid .mat-footer-cell,.mtx-grid .mat-cell{padding:4px 10px;box-sizing:border-box}.mtx-grid .mat-header-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-footer-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-cell:first-of-type:not(:only-of-type){padding-left:24px}.mtx-grid .mat-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}[dir=rtl] .mtx-grid .mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-footer-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-cell:first-of-type:not(:only-of-type){padding-left:10px;padding-right:24px}[dir=rtl] .mtx-grid .mat-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}.mtx-grid .mat-header-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-footer-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-cell:last-of-type:not(:only-of-type){padding-right:24px}[dir=rtl] .mtx-grid .mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-footer-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-cell:last-of-type:not(:only-of-type){padding-left:24px;padding-right:10px}.mtx-grid .mat-cell .mat-icon-button.expanded .mat-icon{transform:rotate(90deg)}.mtx-grid .mat-row.mtx-grid-expansion{height:0;overflow:hidden}.mtx-grid .mat-row.mtx-grid-expansion .mat-cell{padding-top:0;padding-bottom:0}.mtx-grid .mat-row.mtx-grid-expansion.collapsed .mat-cell{border-bottom-width:0}.mtx-grid .mat-row:last-of-type .mat-cell{border-bottom-width:0}.mtx-grid .mat-sort-header-icon{width:18px;height:18px;margin:0 4px;font-size:18px}.mtx-grid .mat-header-cell-inner{display:flex;align-items:center}.mtx-grid .mat-paginator-hidden{display:none}.mtx-grid-progress{position:absolute;top:0;z-index:120;width:100%}.mtx-grid-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:8px;box-sizing:border-box}.mtx-grid-layout{display:flex;flex:1 1 auto;overflow:auto}.mtx-grid-content{flex-direction:column;width:0}.mtx-grid-sidebar{max-width:50%;border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid-sidebar{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid-footer{position:relative;z-index:1}.mtx-grid-statusbar{display:flex;align-items:center;min-height:56px;padding:8px}.mtx-grid-no-result{display:flex;justify-content:center;align-items:center;flex:1;min-height:150px}.mtx-grid-expansion-placeholder{display:inline-block;width:40px;height:40px;vertical-align:middle}.mtx-grid-expansion-detail{display:flex;align-items:center;min-height:48px;overflow:hidden}.mtx-grid-checkbox-cell{flex:none;justify-content:center;width:56px;min-width:56px}.mtx-grid-checkbox-cell .mat-checkbox{display:flex;margin:0 10px}.mtx-grid-checkbox-cell .mat-checkbox-inner-container{margin-left:0}\n"]
|
|
710
718
|
},] }
|
|
711
719
|
];
|
|
712
|
-
/**
|
|
720
|
+
/**
|
|
721
|
+
* @type {function(): !Array<(null|{
|
|
722
|
+
* type: ?,
|
|
723
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
724
|
+
* })>}
|
|
725
|
+
* @nocollapse
|
|
726
|
+
*/
|
|
713
727
|
MtxGridComponent.ctorParameters = function () { return [
|
|
714
728
|
{ type: MtxGridService },
|
|
715
729
|
{ type: core.ChangeDetectorRef }
|
|
716
730
|
]; };
|
|
731
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
717
732
|
MtxGridComponent.propDecorators = {
|
|
718
733
|
table: [{ type: core.ViewChild, args: [table.MatTable,] }],
|
|
719
734
|
paginator: [{ type: core.ViewChild, args: [paginator.MatPaginator,] }],
|
|
@@ -886,10 +901,11 @@
|
|
|
886
901
|
title: imgs.length > 1,
|
|
887
902
|
footerToolbar: footerToolbar,
|
|
888
903
|
};
|
|
889
|
-
var viewer = new PhotoViewer__default[
|
|
904
|
+
var viewer = new PhotoViewer__default["default"](imgs, options);
|
|
890
905
|
};
|
|
891
906
|
return MtxGridCellComponent;
|
|
892
907
|
}());
|
|
908
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
893
909
|
MtxGridCellComponent.decorators = [
|
|
894
910
|
{ type: core.Component, args: [{
|
|
895
911
|
selector: 'mtx-grid-cell',
|
|
@@ -899,11 +915,18 @@
|
|
|
899
915
|
styles: [".mtx-grid-action-button .mat-icon{width:18px;height:18px;font-size:18px;line-height:18px}.mtx-grid-img{display:block;width:30px;border-radius:4px;cursor:pointer}\n"]
|
|
900
916
|
},] }
|
|
901
917
|
];
|
|
902
|
-
/**
|
|
918
|
+
/**
|
|
919
|
+
* @type {function(): !Array<(null|{
|
|
920
|
+
* type: ?,
|
|
921
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
922
|
+
* })>}
|
|
923
|
+
* @nocollapse
|
|
924
|
+
*/
|
|
903
925
|
MtxGridCellComponent.ctorParameters = function () { return [
|
|
904
926
|
{ type: dialog.MtxDialog },
|
|
905
927
|
{ type: MtxGridService }
|
|
906
928
|
]; };
|
|
929
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
907
930
|
MtxGridCellComponent.propDecorators = {
|
|
908
931
|
rowData: [{ type: core.Input }],
|
|
909
932
|
colDef: [{ type: core.Input }],
|
|
@@ -950,6 +973,7 @@
|
|
|
950
973
|
};
|
|
951
974
|
return MtxGridColumnMenuComponent;
|
|
952
975
|
}());
|
|
976
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
953
977
|
MtxGridColumnMenuComponent.decorators = [
|
|
954
978
|
{ type: core.Component, args: [{
|
|
955
979
|
selector: 'mtx-grid-column-menu',
|
|
@@ -960,6 +984,7 @@
|
|
|
960
984
|
styles: [".mtx-grid-column-menu .mat-menu-content{padding:0}.mtx-grid-column-menu-body{padding:16px}.mtx-grid-column-menu-header,.mtx-grid-column-menu-footer{position:sticky;z-index:1;padding:8px 16px}.mtx-grid-column-menu-header{top:0}.mtx-grid-column-menu-footer{bottom:0}.mtx-grid-column-menu-list{display:block;max-width:100%}.mtx-grid-column-menu-list.cdk-drop-list-dragging .mtx-grid-column-menu-item:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mtx-grid-column-menu-list.cdk-drop-list .mtx-grid-column-menu-item-label{padding:0 4px}.mtx-grid-column-menu-item{display:flex;flex-direction:row;align-items:center;padding:4px 0}.mtx-grid-column-menu-item.cdk-drag-disabled .cdk-drag-handle{opacity:.35;cursor:no-drop}.mtx-grid-column-menu-item .cdk-drag-handle{cursor:move}.mtx-grid-column-menu-item.cdk-drag-preview{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mtx-grid-column-menu-item.cdk-drag-placeholder{opacity:0}.mtx-grid-column-menu-item.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}\n"]
|
|
961
985
|
},] }
|
|
962
986
|
];
|
|
987
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
963
988
|
MtxGridColumnMenuComponent.propDecorators = {
|
|
964
989
|
menuPanel: [{ type: core.ViewChild, args: ['menu', { static: true },] }],
|
|
965
990
|
menuTrigger: [{ type: core.ViewChild, args: [menu.MatMenuTrigger,] }],
|
|
@@ -1036,13 +1061,21 @@
|
|
|
1036
1061
|
};
|
|
1037
1062
|
return MtxGridExpansionToggleDirective;
|
|
1038
1063
|
}());
|
|
1064
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1039
1065
|
MtxGridExpansionToggleDirective.decorators = [
|
|
1040
1066
|
{ type: core.Directive, args: [{
|
|
1041
1067
|
selector: '[mtx-grid-expansion-toggle]',
|
|
1042
1068
|
},] }
|
|
1043
1069
|
];
|
|
1044
|
-
/**
|
|
1070
|
+
/**
|
|
1071
|
+
* @type {function(): !Array<(null|{
|
|
1072
|
+
* type: ?,
|
|
1073
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1074
|
+
* })>}
|
|
1075
|
+
* @nocollapse
|
|
1076
|
+
*/
|
|
1045
1077
|
MtxGridExpansionToggleDirective.ctorParameters = function () { return []; };
|
|
1078
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
1046
1079
|
MtxGridExpansionToggleDirective.propDecorators = {
|
|
1047
1080
|
opened: [{ type: core.Input }],
|
|
1048
1081
|
openedChange: [{ type: core.Output }],
|
|
@@ -1098,15 +1131,23 @@
|
|
|
1098
1131
|
};
|
|
1099
1132
|
return MtxGridCellSelectionDirective;
|
|
1100
1133
|
}());
|
|
1134
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1101
1135
|
MtxGridCellSelectionDirective.decorators = [
|
|
1102
1136
|
{ type: core.Directive, args: [{
|
|
1103
1137
|
selector: '[mtx-grid-selectable-cell]',
|
|
1104
1138
|
},] }
|
|
1105
1139
|
];
|
|
1106
|
-
/**
|
|
1140
|
+
/**
|
|
1141
|
+
* @type {function(): !Array<(null|{
|
|
1142
|
+
* type: ?,
|
|
1143
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1144
|
+
* })>}
|
|
1145
|
+
* @nocollapse
|
|
1146
|
+
*/
|
|
1107
1147
|
MtxGridCellSelectionDirective.ctorParameters = function () { return [
|
|
1108
1148
|
{ type: MtxGridComponent }
|
|
1109
1149
|
]; };
|
|
1150
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
1110
1151
|
MtxGridCellSelectionDirective.propDecorators = {
|
|
1111
1152
|
selected: [{ type: core.HostBinding, args: ['class.selected',] }],
|
|
1112
1153
|
matSelectableRowData: [{ type: core.Input }],
|
|
@@ -1127,10 +1168,17 @@
|
|
|
1127
1168
|
};
|
|
1128
1169
|
return MatFlexTableResizeStrategy;
|
|
1129
1170
|
}(columnResize.CdkFlexTableResizeStrategy));
|
|
1171
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1130
1172
|
MatFlexTableResizeStrategy.decorators = [
|
|
1131
1173
|
{ type: core.Injectable }
|
|
1132
1174
|
];
|
|
1133
|
-
/**
|
|
1175
|
+
/**
|
|
1176
|
+
* @type {function(): !Array<(null|{
|
|
1177
|
+
* type: ?,
|
|
1178
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1179
|
+
* })>}
|
|
1180
|
+
* @nocollapse
|
|
1181
|
+
*/
|
|
1134
1182
|
MatFlexTableResizeStrategy.ctorParameters = function () { return [
|
|
1135
1183
|
{ type: columnResize.ColumnResize },
|
|
1136
1184
|
{ type: table$1._CoalescedStyleScheduler, decorators: [{ type: core.Inject, args: [table$1._COALESCED_STYLE_SCHEDULER,] }] },
|
|
@@ -1188,6 +1236,7 @@
|
|
|
1188
1236
|
}
|
|
1189
1237
|
return MatColumnResize;
|
|
1190
1238
|
}(AbstractMatColumnResize));
|
|
1239
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1191
1240
|
MatColumnResize.decorators = [
|
|
1192
1241
|
{ type: core.Directive, args: [{
|
|
1193
1242
|
selector: 'table[mat-table][columnResize]',
|
|
@@ -1195,7 +1244,13 @@
|
|
|
1195
1244
|
providers: __spreadArray(__spreadArray([], __read(TABLE_PROVIDERS)), [{ provide: columnResize.ColumnResize, useExisting: MatColumnResize }]),
|
|
1196
1245
|
},] }
|
|
1197
1246
|
];
|
|
1198
|
-
/**
|
|
1247
|
+
/**
|
|
1248
|
+
* @type {function(): !Array<(null|{
|
|
1249
|
+
* type: ?,
|
|
1250
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1251
|
+
* })>}
|
|
1252
|
+
* @nocollapse
|
|
1253
|
+
*/
|
|
1199
1254
|
MatColumnResize.ctorParameters = function () { return [
|
|
1200
1255
|
{ type: columnResize.ColumnResizeNotifier },
|
|
1201
1256
|
{ type: core.ElementRef },
|
|
@@ -1221,6 +1276,7 @@
|
|
|
1221
1276
|
}
|
|
1222
1277
|
return MatColumnResizeFlex;
|
|
1223
1278
|
}(AbstractMatColumnResize));
|
|
1279
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1224
1280
|
MatColumnResizeFlex.decorators = [
|
|
1225
1281
|
{ type: core.Directive, args: [{
|
|
1226
1282
|
selector: 'mat-table[columnResize]',
|
|
@@ -1228,7 +1284,13 @@
|
|
|
1228
1284
|
providers: __spreadArray(__spreadArray([], __read(FLEX_PROVIDERS)), [{ provide: columnResize.ColumnResize, useExisting: MatColumnResizeFlex }]),
|
|
1229
1285
|
},] }
|
|
1230
1286
|
];
|
|
1231
|
-
/**
|
|
1287
|
+
/**
|
|
1288
|
+
* @type {function(): !Array<(null|{
|
|
1289
|
+
* type: ?,
|
|
1290
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1291
|
+
* })>}
|
|
1292
|
+
* @nocollapse
|
|
1293
|
+
*/
|
|
1232
1294
|
MatColumnResizeFlex.ctorParameters = function () { return [
|
|
1233
1295
|
{ type: columnResize.ColumnResizeNotifier },
|
|
1234
1296
|
{ type: core.ElementRef },
|
|
@@ -1267,6 +1329,7 @@
|
|
|
1267
1329
|
};
|
|
1268
1330
|
return MatColumnResizeOverlayHandle;
|
|
1269
1331
|
}(columnResize.ResizeOverlayHandle));
|
|
1332
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1270
1333
|
MatColumnResizeOverlayHandle.decorators = [
|
|
1271
1334
|
{ type: core.Component, args: [{
|
|
1272
1335
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
@@ -1275,7 +1338,13 @@
|
|
|
1275
1338
|
template: ''
|
|
1276
1339
|
},] }
|
|
1277
1340
|
];
|
|
1278
|
-
/**
|
|
1341
|
+
/**
|
|
1342
|
+
* @type {function(): !Array<(null|{
|
|
1343
|
+
* type: ?,
|
|
1344
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1345
|
+
* })>}
|
|
1346
|
+
* @nocollapse
|
|
1347
|
+
*/
|
|
1279
1348
|
MatColumnResizeOverlayHandle.ctorParameters = function () { return [
|
|
1280
1349
|
{ type: table$1.CdkColumnDef },
|
|
1281
1350
|
{ type: columnResize.ColumnResize },
|
|
@@ -1355,13 +1424,20 @@
|
|
|
1355
1424
|
});
|
|
1356
1425
|
return MatResizable;
|
|
1357
1426
|
}(AbstractMatResizable));
|
|
1427
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1358
1428
|
MatResizable.decorators = [
|
|
1359
1429
|
{ type: core.Directive, args: [{
|
|
1360
1430
|
selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',
|
|
1361
1431
|
inputs: RESIZABLE_INPUTS,
|
|
1362
1432
|
},] }
|
|
1363
1433
|
];
|
|
1364
|
-
/**
|
|
1434
|
+
/**
|
|
1435
|
+
* @type {function(): !Array<(null|{
|
|
1436
|
+
* type: ?,
|
|
1437
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1438
|
+
* })>}
|
|
1439
|
+
* @nocollapse
|
|
1440
|
+
*/
|
|
1365
1441
|
MatResizable.ctorParameters = function () { return [
|
|
1366
1442
|
{ type: table$1.CdkColumnDef },
|
|
1367
1443
|
{ type: columnResize.ColumnResize },
|
|
@@ -1378,6 +1454,7 @@
|
|
|
1378
1454
|
{ type: core.ViewContainerRef },
|
|
1379
1455
|
{ type: core.ChangeDetectorRef }
|
|
1380
1456
|
]; };
|
|
1457
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
1381
1458
|
MatResizable.propDecorators = {
|
|
1382
1459
|
hasResizableClass: [{ type: core.HostBinding, args: ['class',] }],
|
|
1383
1460
|
resizable: [{ type: core.Input }]
|
|
@@ -1396,6 +1473,7 @@
|
|
|
1396
1473
|
}
|
|
1397
1474
|
return MatColumnResizeCommonModule;
|
|
1398
1475
|
}());
|
|
1476
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1399
1477
|
MatColumnResizeCommonModule.decorators = [
|
|
1400
1478
|
{ type: core.NgModule, args: [{
|
|
1401
1479
|
declarations: ENTRY_COMMON_COMPONENTS,
|
|
@@ -1409,6 +1487,7 @@
|
|
|
1409
1487
|
}
|
|
1410
1488
|
return MatColumnResizeModule;
|
|
1411
1489
|
}());
|
|
1490
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1412
1491
|
MatColumnResizeModule.decorators = [
|
|
1413
1492
|
{ type: core.NgModule, args: [{
|
|
1414
1493
|
imports: IMPORTS,
|
|
@@ -1422,6 +1501,7 @@
|
|
|
1422
1501
|
}
|
|
1423
1502
|
return MtxGridModule;
|
|
1424
1503
|
}());
|
|
1504
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1425
1505
|
MtxGridModule.decorators = [
|
|
1426
1506
|
{ type: core.NgModule, args: [{
|
|
1427
1507
|
imports: [
|
|
@@ -1469,9 +1549,7 @@
|
|
|
1469
1549
|
|
|
1470
1550
|
Object.defineProperty(exports, 'MAT_TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER', {
|
|
1471
1551
|
enumerable: true,
|
|
1472
|
-
get: function () {
|
|
1473
|
-
return columnResize.TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER;
|
|
1474
|
-
}
|
|
1552
|
+
get: function () { return columnResize.TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER; }
|
|
1475
1553
|
});
|
|
1476
1554
|
exports.AbstractMatColumnResize = AbstractMatColumnResize;
|
|
1477
1555
|
exports.AbstractMatResizable = AbstractMatResizable;
|
|
@@ -1499,5 +1577,5 @@
|
|
|
1499
1577
|
|
|
1500
1578
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1501
1579
|
|
|
1502
|
-
}))
|
|
1580
|
+
}));
|
|
1503
1581
|
//# sourceMappingURL=mtxGrid.umd.js.map
|