@ng-matero/extensions 12.5.1 → 12.7.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/_all-theme.scss +2 -0
- package/_index.scss +2 -0
- package/_theming.scss +2 -0
- package/bundles/extensions.umd.js +24 -58
- package/bundles/extensions.umd.js.map +1 -1
- package/bundles/mtxAlert.umd.js +3 -3
- package/bundles/mtxButton.umd.js +3 -3
- package/bundles/mtxCheckboxGroup.umd.js +4 -5
- package/bundles/mtxCheckboxGroup.umd.js.map +1 -1
- package/bundles/mtxColorpicker.umd.js +1123 -0
- package/bundles/mtxColorpicker.umd.js.map +1 -0
- package/bundles/mtxColumnResize.umd.js +3 -3
- package/bundles/mtxColumnResize.umd.js.map +1 -1
- package/bundles/mtxCore.umd.js +3 -3
- package/bundles/mtxDatetimepicker.umd.js +611 -156
- package/bundles/mtxDatetimepicker.umd.js.map +1 -1
- package/bundles/mtxDialog.umd.js +4 -6
- package/bundles/mtxDialog.umd.js.map +1 -1
- package/bundles/mtxFormGroup.umd.js +5 -12
- package/bundles/mtxFormGroup.umd.js.map +1 -1
- package/bundles/mtxGrid.umd.js +5 -7
- package/bundles/mtxGrid.umd.js.map +1 -1
- package/bundles/mtxLoader.umd.js +10 -7
- package/bundles/mtxLoader.umd.js.map +1 -1
- package/bundles/mtxPipes.umd.js +3 -3
- package/bundles/mtxPopover.umd.js +3 -3
- package/bundles/mtxPopover.umd.js.map +1 -1
- package/bundles/mtxProgress.umd.js +4 -4
- package/bundles/mtxSelect.umd.js +4 -4
- package/bundles/mtxSelect.umd.js.map +1 -1
- package/bundles/mtxSlider.umd.js +4 -4
- package/bundles/mtxSplit.umd.js +83 -82
- package/bundles/mtxSplit.umd.js.map +1 -1
- package/bundles/mtxText3d.umd.js +4 -12
- package/bundles/mtxText3d.umd.js.map +1 -1
- package/bundles/mtxTooltip.umd.js +10 -5
- 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/colorpicker/_colorpicker-theme.import.scss +2 -0
- package/colorpicker/_colorpicker-theme.scss +43 -0
- package/colorpicker/colorpicker-animations.d.ts +8 -0
- package/colorpicker/colorpicker-content.scss +4 -0
- package/colorpicker/colorpicker-input.d.ts +89 -0
- package/colorpicker/colorpicker-module.d.ts +2 -0
- package/colorpicker/colorpicker-toggle.d.ts +33 -0
- package/colorpicker/colorpicker-toggle.scss +23 -0
- package/colorpicker/colorpicker.d.ts +126 -0
- package/{color-picker/mtxColorPicker.d.ts → colorpicker/mtxColorpicker.d.ts} +0 -0
- package/colorpicker/mtxColorpicker.metadata.json +1 -0
- package/colorpicker/package.json +11 -0
- package/colorpicker/public-api.d.ts +5 -0
- package/datetimepicker/_datetimepicker-theme.scss +12 -0
- package/datetimepicker/calendar.d.ts +2 -10
- package/datetimepicker/clock.d.ts +10 -9
- package/datetimepicker/datetimepicker-animations.d.ts +7 -5
- package/datetimepicker/datetimepicker-input.d.ts +4 -2
- package/datetimepicker/{datetimepicker.module.d.ts → datetimepicker-module.d.ts} +0 -0
- package/datetimepicker/datetimepicker-toggle.d.ts +15 -2
- package/datetimepicker/datetimepicker-toggle.scss +23 -0
- package/datetimepicker/datetimepicker.d.ts +67 -24
- package/datetimepicker/month-view.d.ts +3 -3
- package/datetimepicker/mtxDatetimepicker.d.ts +0 -2
- package/datetimepicker/mtxDatetimepicker.metadata.json +1 -1
- package/datetimepicker/multi-year-view.d.ts +3 -3
- package/datetimepicker/public-api.d.ts +3 -1
- package/datetimepicker/year-view.d.ts +3 -3
- package/dialog/{dialog.config.d.ts → dialog-config.d.ts} +0 -0
- package/dialog/dialog.component.d.ts +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/mtxDialog.metadata.json +1 -1
- package/dialog/public-api.d.ts +2 -2
- package/esm2015/checkbox-group/checkbox-group.component.js +2 -3
- package/esm2015/colorpicker/colorpicker-animations.js +16 -0
- package/esm2015/colorpicker/colorpicker-input.js +228 -0
- package/esm2015/colorpicker/colorpicker-module.js +41 -0
- package/esm2015/colorpicker/colorpicker-toggle.js +97 -0
- package/esm2015/colorpicker/colorpicker.js +372 -0
- package/esm2015/colorpicker/mtxColorpicker.js +5 -0
- package/esm2015/colorpicker/public-api.js +6 -0
- package/esm2015/column-resize/event-dispatcher.js +1 -1
- package/esm2015/datetimepicker/calendar-body.js +2 -1
- package/esm2015/datetimepicker/calendar.js +17 -32
- package/esm2015/datetimepicker/clock.js +10 -10
- package/esm2015/datetimepicker/datetimepicker-animations.js +38 -24
- package/esm2015/datetimepicker/datetimepicker-input.js +7 -4
- package/esm2015/datetimepicker/datetimepicker-module.js +52 -0
- package/esm2015/datetimepicker/datetimepicker-toggle.js +30 -8
- package/esm2015/datetimepicker/datetimepicker.js +150 -71
- package/esm2015/datetimepicker/month-view.js +8 -7
- package/esm2015/datetimepicker/mtxDatetimepicker.js +1 -3
- package/esm2015/datetimepicker/multi-year-view.js +8 -7
- package/esm2015/datetimepicker/public-api.js +4 -2
- package/esm2015/datetimepicker/year-view.js +8 -7
- package/esm2015/dialog/{dialog.config.js → dialog-config.js} +1 -1
- package/esm2015/dialog/dialog.component.js +2 -2
- package/esm2015/dialog/dialog.js +1 -1
- package/esm2015/dialog/public-api.js +3 -3
- package/esm2015/extensions.module.js +3 -3
- package/esm2015/form-group/form-group.component.js +4 -11
- package/esm2015/loader/loader.component.js +8 -5
- package/esm2015/popover/popover.js +1 -1
- package/esm2015/progress/progress.component.js +1 -1
- package/esm2015/public-api.js +2 -2
- package/esm2015/select/select.component.js +2 -2
- package/esm2015/slider/slider.js +1 -1
- package/esm2015/split/interface.js +1 -1
- package/esm2015/split/split.component.js +15 -11
- package/esm2015/split/utils.js +1 -6
- package/esm2015/text3d/text3d.component.js +2 -10
- package/esm2015/tooltip/tooltip.js +8 -3
- package/extensions.metadata.json +1 -1
- package/fesm2015/extensions.js +3 -3
- package/fesm2015/extensions.js.map +1 -1
- package/fesm2015/mtxCheckboxGroup.js +1 -2
- package/fesm2015/mtxCheckboxGroup.js.map +1 -1
- package/fesm2015/mtxColorpicker.js +743 -0
- package/fesm2015/mtxColorpicker.js.map +1 -0
- package/fesm2015/mtxColumnResize.js.map +1 -1
- package/fesm2015/mtxDatetimepicker.js +266 -153
- package/fesm2015/mtxDatetimepicker.js.map +1 -1
- package/fesm2015/mtxDialog.js +2 -2
- package/fesm2015/mtxDialog.js.map +1 -1
- package/fesm2015/mtxFormGroup.js +3 -10
- package/fesm2015/mtxFormGroup.js.map +1 -1
- package/fesm2015/mtxLoader.js +7 -4
- package/fesm2015/mtxLoader.js.map +1 -1
- package/fesm2015/mtxPopover.js.map +1 -1
- package/fesm2015/mtxProgress.js +1 -1
- package/fesm2015/mtxSelect.js +1 -1
- package/fesm2015/mtxSelect.js.map +1 -1
- package/fesm2015/mtxSlider.js +1 -1
- package/fesm2015/mtxSplit.js +14 -15
- package/fesm2015/mtxSplit.js.map +1 -1
- package/fesm2015/mtxText3d.js +1 -9
- package/fesm2015/mtxText3d.js.map +1 -1
- package/fesm2015/mtxTooltip.js +7 -2
- package/fesm2015/mtxTooltip.js.map +1 -1
- package/form-group/form-group.component.d.ts +2 -4
- package/form-group/mtxFormGroup.metadata.json +1 -1
- package/loader/loader.component.d.ts +4 -1
- package/loader/mtxLoader.metadata.json +1 -1
- package/package.json +2 -2
- package/popover/popover.d.ts +3 -3
- package/progress/mtxProgress.metadata.json +1 -1
- package/public-api.d.ts +1 -1
- package/select/mtxSelect.metadata.json +1 -1
- package/select/select.component.d.ts +1 -1
- package/slider/_slider-theme.scss +1 -1
- package/slider/mtxSlider.metadata.json +1 -1
- package/slider/slider.scss +1 -0
- package/split/_split-theme.scss +9 -2
- package/split/interface.d.ts +1 -2
- package/split/mtxSplit.metadata.json +1 -1
- package/split/split.component.d.ts +9 -1
- package/text3d/mtxText3d.metadata.json +1 -1
- package/text3d/text3d.component.d.ts +0 -1
- package/tooltip/mtxTooltip.metadata.json +1 -1
- package/bundles/mtxColorPicker.umd.js +0 -337
- package/bundles/mtxColorPicker.umd.js.map +0 -1
- package/color-picker/color-picker.component.d.ts +0 -120
- package/color-picker/color-picker.module.d.ts +0 -2
- package/color-picker/mtxColorPicker.metadata.json +0 -1
- package/color-picker/package.json +0 -11
- package/color-picker/public-api.d.ts +0 -2
- package/esm2015/color-picker/color-picker.component.js +0 -268
- package/esm2015/color-picker/color-picker.module.js +0 -26
- package/esm2015/color-picker/mtxColorPicker.js +0 -5
- package/esm2015/color-picker/public-api.js +0 -3
- package/esm2015/datetimepicker/datetimepicker.module.js +0 -49
- package/fesm2015/mtxColorPicker.js +0 -295
- package/fesm2015/mtxColorPicker.js.map +0 -1
package/bundles/mtxSplit.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/split', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, core, common, rxjs, operators) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/core'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ng-matero/extensions/split', ['exports', '@angular/core', '@angular/common', '@angular/material/core', 'rxjs', 'rxjs/operators'], factory) :
|
|
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.split = {}), global.ng.core, global.ng.common, global.ng.material.core, global.rxjs, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, core$1, common, core, rxjs, operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function getPointFromEvent(event) {
|
|
8
8
|
// TouchEvent
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
// MouseEvent
|
|
17
|
-
// tslint:disable-next-line: one-line
|
|
18
17
|
else if (event.clientX !== undefined &&
|
|
19
18
|
event.clientY !== undefined) {
|
|
20
19
|
return {
|
|
@@ -137,7 +136,6 @@
|
|
|
137
136
|
};
|
|
138
137
|
}
|
|
139
138
|
// REDUCE AREA
|
|
140
|
-
// tslint:disable-next-line: one-line
|
|
141
139
|
else if (pixels < 0) {
|
|
142
140
|
// If minSize & newSize smaller than it > absorb to min and return remaining pixels
|
|
143
141
|
if (areaSnapshot.area.minSize !== null && tempPercentSize < areaSnapshot.area.minSize) {
|
|
@@ -151,7 +149,6 @@
|
|
|
151
149
|
};
|
|
152
150
|
}
|
|
153
151
|
// If reduced under zero > return remaining pixels
|
|
154
|
-
// tslint:disable-next-line: one-line
|
|
155
152
|
else if (tempPercentSize < 0) {
|
|
156
153
|
// Use 0 as newPercentSize and return calculate pixels remaining
|
|
157
154
|
return {
|
|
@@ -190,7 +187,6 @@
|
|
|
190
187
|
};
|
|
191
188
|
}
|
|
192
189
|
// REDUCE AREA
|
|
193
|
-
// tslint:disable-next-line: one-line
|
|
194
190
|
else if (pixels < 0) {
|
|
195
191
|
// If minSize & newSize smaller than it > absorb to min and return remaining pixels
|
|
196
192
|
if (areaSnapshot.area.minSize !== null && tempPixelSize < areaSnapshot.area.minSize) {
|
|
@@ -202,7 +198,6 @@
|
|
|
202
198
|
};
|
|
203
199
|
}
|
|
204
200
|
// If reduced under zero > return remaining pixels
|
|
205
|
-
// tslint:disable-next-line: one-line
|
|
206
201
|
else if (tempPixelSize < 0) {
|
|
207
202
|
return {
|
|
208
203
|
areaSnapshot: areaSnapshot,
|
|
@@ -549,6 +544,14 @@
|
|
|
549
544
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
550
545
|
}
|
|
551
546
|
|
|
547
|
+
// Boilerplate for applying mixins to _MtxSplitComponentBase.
|
|
548
|
+
/** @docs-private */
|
|
549
|
+
var _MtxSplitComponentBase = core.mixinColor(/** @class */ (function () {
|
|
550
|
+
function class_1(_elementRef) {
|
|
551
|
+
this._elementRef = _elementRef;
|
|
552
|
+
}
|
|
553
|
+
return class_1;
|
|
554
|
+
}()));
|
|
552
555
|
/**
|
|
553
556
|
* mtx-split
|
|
554
557
|
*
|
|
@@ -578,47 +581,50 @@
|
|
|
578
581
|
* 800px <-- el.getBoundingClientRect().width
|
|
579
582
|
*
|
|
580
583
|
*/
|
|
581
|
-
var MtxSplitComponent = /** @class */ (function () {
|
|
584
|
+
var MtxSplitComponent = /** @class */ (function (_super) {
|
|
585
|
+
__extends(MtxSplitComponent, _super);
|
|
582
586
|
function MtxSplitComponent(ngZone, elRef, cdRef, renderer) {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
587
|
+
var _this = _super.call(this, elRef) || this;
|
|
588
|
+
_this.ngZone = ngZone;
|
|
589
|
+
_this.elRef = elRef;
|
|
590
|
+
_this.cdRef = cdRef;
|
|
591
|
+
_this.renderer = renderer;
|
|
592
|
+
_this._direction = 'horizontal';
|
|
588
593
|
////
|
|
589
|
-
|
|
594
|
+
_this._unit = 'percent';
|
|
590
595
|
////
|
|
591
|
-
|
|
596
|
+
_this._gutterSize = 4;
|
|
592
597
|
////
|
|
593
|
-
|
|
598
|
+
_this._gutterStep = 1;
|
|
594
599
|
////
|
|
595
|
-
|
|
600
|
+
_this._restrictMove = false;
|
|
596
601
|
////
|
|
597
|
-
|
|
602
|
+
_this._useTransition = false;
|
|
598
603
|
////
|
|
599
|
-
|
|
604
|
+
_this._disabled = false;
|
|
600
605
|
////
|
|
601
|
-
|
|
606
|
+
_this._dir = 'ltr';
|
|
602
607
|
////
|
|
603
|
-
|
|
608
|
+
_this._gutterDblClickDuration = 0;
|
|
604
609
|
////
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
610
|
+
_this.dragStart = new core$1.EventEmitter(false);
|
|
611
|
+
_this.dragEnd = new core$1.EventEmitter(false);
|
|
612
|
+
_this.gutterClick = new core$1.EventEmitter(false);
|
|
613
|
+
_this.gutterDblClick = new core$1.EventEmitter(false);
|
|
614
|
+
_this.dragProgressSubject = new rxjs.Subject();
|
|
615
|
+
_this.dragProgress$ = _this.dragProgressSubject.asObservable();
|
|
611
616
|
////
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
617
|
+
_this.isDragging = false;
|
|
618
|
+
_this.dragListeners = [];
|
|
619
|
+
_this.snapshot = null;
|
|
620
|
+
_this.startPoint = null;
|
|
621
|
+
_this.endPoint = null;
|
|
622
|
+
_this.displayedAreas = [];
|
|
623
|
+
_this.hidedAreas = [];
|
|
624
|
+
_this._clickTimeout = null;
|
|
620
625
|
// To force adding default class, could be override by user @Input() or not
|
|
621
|
-
|
|
626
|
+
_this.direction = _this._direction;
|
|
627
|
+
return _this;
|
|
622
628
|
}
|
|
623
629
|
Object.defineProperty(MtxSplitComponent.prototype, "direction", {
|
|
624
630
|
get: function () {
|
|
@@ -816,6 +822,7 @@
|
|
|
816
822
|
if (isValid === false) {
|
|
817
823
|
return false;
|
|
818
824
|
}
|
|
825
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
819
826
|
// @ts-ignore
|
|
820
827
|
this.displayedAreas.forEach(function (area, i) { return (area.component._size = formatedSizes[i]); });
|
|
821
828
|
this.build(false, true);
|
|
@@ -867,7 +874,6 @@
|
|
|
867
874
|
});
|
|
868
875
|
}
|
|
869
876
|
// More than one wildcard area > Need to keep only one arbitrarly > first
|
|
870
|
-
// tslint:disable-next-line: one-line
|
|
871
877
|
else if (wildcardSizeAreas.length > 1) {
|
|
872
878
|
var alreadyGotOne_1 = false;
|
|
873
879
|
this.displayedAreas.forEach(function (area) {
|
|
@@ -909,7 +915,6 @@
|
|
|
909
915
|
this.displayedAreas[0].component.setStyleFlex(0, 0, "100%", false, false);
|
|
910
916
|
}
|
|
911
917
|
// Multiple areas > use each percent basis
|
|
912
|
-
// tslint:disable-next-line: one-line
|
|
913
918
|
else {
|
|
914
919
|
var sumGutterSize_1 = this.getNbGutters() * this.gutterSize;
|
|
915
920
|
this.displayedAreas.forEach(function (area) {
|
|
@@ -919,7 +924,6 @@
|
|
|
919
924
|
}
|
|
920
925
|
///////////////////////////////////////////
|
|
921
926
|
// PIXEL MODE
|
|
922
|
-
// tslint:disable-next-line: one-line
|
|
923
927
|
else if (this.unit === 'pixel') {
|
|
924
928
|
this.displayedAreas.forEach(function (area) {
|
|
925
929
|
// Area with wildcard size
|
|
@@ -932,14 +936,12 @@
|
|
|
932
936
|
}
|
|
933
937
|
}
|
|
934
938
|
// Area with pixel size
|
|
935
|
-
// tslint:disable-next-line: one-line
|
|
936
939
|
else {
|
|
937
940
|
// Only one area > flex-basis 100%
|
|
938
941
|
if (_this.displayedAreas.length === 1) {
|
|
939
942
|
area.component.setStyleFlex(0, 0, "100%", false, false);
|
|
940
943
|
}
|
|
941
944
|
// Multiple areas > use each pixel basis
|
|
942
|
-
// tslint:disable-next-line: one-line
|
|
943
945
|
else {
|
|
944
946
|
area.component.setStyleFlex(0, 0, area.size + "px", area.minSize !== null && area.minSize === area.size ? true : false, area.maxSize !== null && area.maxSize === area.size ? true : false);
|
|
945
947
|
}
|
|
@@ -960,7 +962,6 @@
|
|
|
960
962
|
this.stopDragging();
|
|
961
963
|
}
|
|
962
964
|
// Else start timeout to call clickEvent at end
|
|
963
|
-
// tslint:disable-next-line: one-line
|
|
964
965
|
else {
|
|
965
966
|
this._clickTimeout = window.setTimeout(function () {
|
|
966
967
|
_this._clickTimeout = null;
|
|
@@ -1062,6 +1063,7 @@
|
|
|
1062
1063
|
// Each gutter side areas can't absorb all offset
|
|
1063
1064
|
if (areasBefore.remain !== 0 && areasAfter.remain !== 0) {
|
|
1064
1065
|
if (Math.abs(areasBefore.remain) === Math.abs(areasAfter.remain)) {
|
|
1066
|
+
/** */
|
|
1065
1067
|
}
|
|
1066
1068
|
else if (Math.abs(areasBefore.remain) > Math.abs(areasAfter.remain)) {
|
|
1067
1069
|
areasAfter = getGutterSideAbsorptionCapacity(this.unit, this.snapshot.areasAfterGutter, steppedOffset + areasBefore.remain, this.snapshot.allAreasSizePixel);
|
|
@@ -1071,12 +1073,10 @@
|
|
|
1071
1073
|
}
|
|
1072
1074
|
}
|
|
1073
1075
|
// Areas before gutter can't absorbs all offset > need to recalculate sizes for areas after gutter.
|
|
1074
|
-
// tslint:disable-next-line: one-line
|
|
1075
1076
|
else if (areasBefore.remain !== 0) {
|
|
1076
1077
|
areasAfter = getGutterSideAbsorptionCapacity(this.unit, this.snapshot.areasAfterGutter, steppedOffset + areasBefore.remain, this.snapshot.allAreasSizePixel);
|
|
1077
1078
|
}
|
|
1078
1079
|
// Areas after gutter can't absorbs all offset > need to recalculate sizes for areas before gutter.
|
|
1079
|
-
// tslint:disable-next-line: one-line
|
|
1080
1080
|
else if (areasAfter.remain !== 0) {
|
|
1081
1081
|
areasBefore = getGutterSideAbsorptionCapacity(this.unit, this.snapshot.areasBeforeGutter, -(steppedOffset - areasAfter.remain), this.snapshot.allAreasSizePixel);
|
|
1082
1082
|
}
|
|
@@ -1166,18 +1166,19 @@
|
|
|
1166
1166
|
this.stopDragging();
|
|
1167
1167
|
};
|
|
1168
1168
|
return MtxSplitComponent;
|
|
1169
|
-
}());
|
|
1169
|
+
}(_MtxSplitComponentBase));
|
|
1170
1170
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1171
1171
|
MtxSplitComponent.decorators = [
|
|
1172
|
-
{ type: core.Component, args: [{
|
|
1172
|
+
{ type: core$1.Component, args: [{
|
|
1173
1173
|
selector: 'mtx-split',
|
|
1174
1174
|
exportAs: 'mtxSplit',
|
|
1175
1175
|
host: {
|
|
1176
1176
|
class: 'mtx-split',
|
|
1177
1177
|
},
|
|
1178
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1179
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1180
|
-
template: "<ng-content></ng-content>\r\n<ng-template ngFor [ngForOf]=\"displayedAreas\" let-index=\"index\" let-last=\"last\">\r\n <div #gutterEls class=\"mtx-split-gutter\"\r\n *ngIf=\"last === false\"\r\n [style.flex-basis.px]=\"gutterSize\"\r\n [style.order]=\"index * 2 + 1\"\r\n (mousedown)=\"startDragging($event, index * 2 + 1, index + 1)\"\r\n (touchstart)=\"startDragging($event, index * 2 + 1, index + 1)\"\r\n (mouseup)=\"clickGutter($event, index + 1)\"\r\n (touchend)=\"clickGutter($event, index + 1)\">\r\n <div class=\"mtx-split-gutter-handle\"></div>\r\n </div>\r\n</ng-template>\r\n",
|
|
1178
|
+
encapsulation: core$1.ViewEncapsulation.None,
|
|
1179
|
+
changeDetection: core$1.ChangeDetectionStrategy.OnPush,
|
|
1180
|
+
template: "<ng-content></ng-content>\r\n<ng-template ngFor [ngForOf]=\"displayedAreas\" let-index=\"index\" let-last=\"last\">\r\n <div #gutterEls class=\"mtx-split-gutter\" [ngClass]=\"['mat-' + color]\"\r\n *ngIf=\"last === false\"\r\n [style.flex-basis.px]=\"gutterSize\"\r\n [style.order]=\"index * 2 + 1\"\r\n (mousedown)=\"startDragging($event, index * 2 + 1, index + 1)\"\r\n (touchstart)=\"startDragging($event, index * 2 + 1, index + 1)\"\r\n (mouseup)=\"clickGutter($event, index + 1)\"\r\n (touchend)=\"clickGutter($event, index + 1)\">\r\n <div class=\"mtx-split-gutter-handle\"></div>\r\n </div>\r\n</ng-template>\r\n",
|
|
1181
|
+
inputs: ['color'],
|
|
1181
1182
|
styles: [".mtx-split{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}.mtx-split>.mtx-split-gutter{position:relative;display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center}.mtx-split>.mtx-split-gutter>.mtx-split-gutter-handle{position:absolute;opacity:0}.mtx-split>.mtx-split-pane{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}.mtx-split>.mtx-split-pane.mtx-split-pane-hidden{flex:0 1 0!important;overflow-x:hidden;overflow-y:hidden}.mtx-split.mtx-split-horizontal{flex-direction:row}.mtx-split.mtx-split-horizontal>.mtx-split-gutter{flex-direction:row;height:100%;cursor:col-resize}.mtx-split.mtx-split-horizontal>.mtx-split-gutter>.mtx-split-gutter-handle{width:8px;height:100%;left:-2px;right:2px}.mtx-split.mtx-split-horizontal>.mtx-split-pane{height:100%}.mtx-split.mtx-split-vertical{flex-direction:column}.mtx-split.mtx-split-vertical>.mtx-split-gutter{flex-direction:column;width:100%;cursor:row-resize}.mtx-split.mtx-split-vertical>.mtx-split-gutter>.mtx-split-gutter-handle{width:100%;height:8px;top:-2px;bottom:2px}.mtx-split.mtx-split-vertical>.mtx-split-pane{width:100%}.mtx-split.mtx-split-vertical>.mtx-split-pane.mtx-split-pane-hidden{max-width:0}.mtx-split.mtx-split-disabled>.mtx-split-gutter{cursor:default}.mtx-split.mtx-split-disabled>.mtx-split-gutter .mtx-split-gutter-handle{background-image:none}.mtx-split.mtx-split-transition.mtx-split-init:not(.mtx-dragging)>.mtx-split-gutter,.mtx-split.mtx-split-transition.mtx-split-init:not(.mtx-dragging)>.mtx-split-pane{transition:flex-basis .3s}\n"]
|
|
1182
1183
|
},] }
|
|
1183
1184
|
];
|
|
@@ -1189,28 +1190,28 @@
|
|
|
1189
1190
|
* @nocollapse
|
|
1190
1191
|
*/
|
|
1191
1192
|
MtxSplitComponent.ctorParameters = function () { return [
|
|
1192
|
-
{ type: core.NgZone },
|
|
1193
|
-
{ type: core.ElementRef },
|
|
1194
|
-
{ type: core.ChangeDetectorRef },
|
|
1195
|
-
{ type: core.Renderer2 }
|
|
1193
|
+
{ type: core$1.NgZone },
|
|
1194
|
+
{ type: core$1.ElementRef },
|
|
1195
|
+
{ type: core$1.ChangeDetectorRef },
|
|
1196
|
+
{ type: core$1.Renderer2 }
|
|
1196
1197
|
]; };
|
|
1197
1198
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
1198
1199
|
MtxSplitComponent.propDecorators = {
|
|
1199
|
-
direction: [{ type: core.Input }],
|
|
1200
|
-
unit: [{ type: core.Input }],
|
|
1201
|
-
gutterSize: [{ type: core.Input }],
|
|
1202
|
-
gutterStep: [{ type: core.Input }],
|
|
1203
|
-
restrictMove: [{ type: core.Input }],
|
|
1204
|
-
useTransition: [{ type: core.Input }],
|
|
1205
|
-
disabled: [{ type: core.Input }],
|
|
1206
|
-
dir: [{ type: core.Input }],
|
|
1207
|
-
gutterDblClickDuration: [{ type: core.Input }],
|
|
1208
|
-
dragStart: [{ type: core.Output }],
|
|
1209
|
-
dragEnd: [{ type: core.Output }],
|
|
1210
|
-
gutterClick: [{ type: core.Output }],
|
|
1211
|
-
gutterDblClick: [{ type: core.Output }],
|
|
1212
|
-
transitionEnd: [{ type: core.Output }],
|
|
1213
|
-
gutterEls: [{ type: core.ViewChildren, args: ['gutterEls',] }]
|
|
1200
|
+
direction: [{ type: core$1.Input }],
|
|
1201
|
+
unit: [{ type: core$1.Input }],
|
|
1202
|
+
gutterSize: [{ type: core$1.Input }],
|
|
1203
|
+
gutterStep: [{ type: core$1.Input }],
|
|
1204
|
+
restrictMove: [{ type: core$1.Input }],
|
|
1205
|
+
useTransition: [{ type: core$1.Input }],
|
|
1206
|
+
disabled: [{ type: core$1.Input }],
|
|
1207
|
+
dir: [{ type: core$1.Input }],
|
|
1208
|
+
gutterDblClickDuration: [{ type: core$1.Input }],
|
|
1209
|
+
dragStart: [{ type: core$1.Output }],
|
|
1210
|
+
dragEnd: [{ type: core$1.Output }],
|
|
1211
|
+
gutterClick: [{ type: core$1.Output }],
|
|
1212
|
+
gutterDblClick: [{ type: core$1.Output }],
|
|
1213
|
+
transitionEnd: [{ type: core$1.Output }],
|
|
1214
|
+
gutterEls: [{ type: core$1.ViewChildren, args: ['gutterEls',] }]
|
|
1214
1215
|
};
|
|
1215
1216
|
|
|
1216
1217
|
var MtxSplitPaneDirective = /** @class */ (function () {
|
|
@@ -1365,7 +1366,7 @@
|
|
|
1365
1366
|
}());
|
|
1366
1367
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1367
1368
|
MtxSplitPaneDirective.decorators = [
|
|
1368
|
-
{ type: core.Directive, args: [{
|
|
1369
|
+
{ type: core$1.Directive, args: [{
|
|
1369
1370
|
selector: 'mtx-split-pane, [mtx-split-pane]',
|
|
1370
1371
|
exportAs: 'mtxSplitPane',
|
|
1371
1372
|
},] }
|
|
@@ -1378,19 +1379,19 @@
|
|
|
1378
1379
|
* @nocollapse
|
|
1379
1380
|
*/
|
|
1380
1381
|
MtxSplitPaneDirective.ctorParameters = function () { return [
|
|
1381
|
-
{ type: core.NgZone },
|
|
1382
|
-
{ type: core.ElementRef },
|
|
1383
|
-
{ type: core.Renderer2 },
|
|
1382
|
+
{ type: core$1.NgZone },
|
|
1383
|
+
{ type: core$1.ElementRef },
|
|
1384
|
+
{ type: core$1.Renderer2 },
|
|
1384
1385
|
{ type: MtxSplitComponent }
|
|
1385
1386
|
]; };
|
|
1386
1387
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
1387
1388
|
MtxSplitPaneDirective.propDecorators = {
|
|
1388
|
-
order: [{ type: core.Input }],
|
|
1389
|
-
size: [{ type: core.Input }],
|
|
1390
|
-
minSize: [{ type: core.Input }],
|
|
1391
|
-
maxSize: [{ type: core.Input }],
|
|
1392
|
-
lockSize: [{ type: core.Input }],
|
|
1393
|
-
visible: [{ type: core.Input }]
|
|
1389
|
+
order: [{ type: core$1.Input }],
|
|
1390
|
+
size: [{ type: core$1.Input }],
|
|
1391
|
+
minSize: [{ type: core$1.Input }],
|
|
1392
|
+
maxSize: [{ type: core$1.Input }],
|
|
1393
|
+
lockSize: [{ type: core$1.Input }],
|
|
1394
|
+
visible: [{ type: core$1.Input }]
|
|
1394
1395
|
};
|
|
1395
1396
|
|
|
1396
1397
|
var MtxSplitModule = /** @class */ (function () {
|
|
@@ -1400,7 +1401,7 @@
|
|
|
1400
1401
|
}());
|
|
1401
1402
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1402
1403
|
MtxSplitModule.decorators = [
|
|
1403
|
-
{ type: core.NgModule, args: [{
|
|
1404
|
+
{ type: core$1.NgModule, args: [{
|
|
1404
1405
|
imports: [common.CommonModule],
|
|
1405
1406
|
declarations: [MtxSplitComponent, MtxSplitPaneDirective],
|
|
1406
1407
|
exports: [MtxSplitComponent, MtxSplitPaneDirective],
|
|
@@ -1426,5 +1427,5 @@
|
|
|
1426
1427
|
|
|
1427
1428
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1428
1429
|
|
|
1429
|
-
}))
|
|
1430
|
+
}));
|
|
1430
1431
|
//# sourceMappingURL=mtxSplit.umd.js.map
|