@softheon/armature 10.41.1 → 10.42.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.
- package/bundles/softheon-armature.umd.js +107 -1
- package/bundles/softheon-armature.umd.js.map +1 -1
- package/bundles/softheon-armature.umd.min.js +2 -2
- package/bundles/softheon-armature.umd.min.js.map +1 -1
- package/esm2015/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.js +4 -2
- package/esm2015/lib/resize-panels/components/resize-panels/resize-panels.component.js +81 -0
- package/esm2015/lib/resize-panels/resize-panels-api.js +5 -0
- package/esm2015/lib/resize-panels/resize-panels.module.js +18 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/softheon-armature.js +101 -2
- package/fesm2015/softheon-armature.js.map +1 -1
- package/lib/resize-panels/components/resize-panels/resize-panels.component.d.ts +40 -0
- package/lib/resize-panels/resize-panels-api.d.ts +3 -0
- package/lib/resize-panels/resize-panels.module.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/softheon-armature.metadata.json +1 -1
|
@@ -4671,6 +4671,7 @@
|
|
|
4671
4671
|
* @param control The ng control
|
|
4672
4672
|
*/
|
|
4673
4673
|
function SofButtonToggleGroupComponent(control) {
|
|
4674
|
+
var _this = this;
|
|
4674
4675
|
this.control = control;
|
|
4675
4676
|
/** The label text */
|
|
4676
4677
|
this.labelText = '';
|
|
@@ -4706,7 +4707,9 @@
|
|
|
4706
4707
|
this.showErrorMessage = false;
|
|
4707
4708
|
if (this.control) {
|
|
4708
4709
|
this.control.valueAccessor = this;
|
|
4709
|
-
|
|
4710
|
+
setTimeout(function () {
|
|
4711
|
+
_this.controlName = _this.control.name;
|
|
4712
|
+
});
|
|
4710
4713
|
}
|
|
4711
4714
|
}
|
|
4712
4715
|
;
|
|
@@ -6653,6 +6656,107 @@
|
|
|
6653
6656
|
|
|
6654
6657
|
/** Public API surface for the forms */
|
|
6655
6658
|
|
|
6659
|
+
/** The Resize Panels Component */
|
|
6660
|
+
var ResizePanelsComponent = /** @class */ (function () {
|
|
6661
|
+
/**
|
|
6662
|
+
* Creates an instance of ResizePanelsComponent
|
|
6663
|
+
*/
|
|
6664
|
+
function ResizePanelsComponent() {
|
|
6665
|
+
/** The panel split direction */
|
|
6666
|
+
this.direction = 'vertical';
|
|
6667
|
+
/** The panel split position */
|
|
6668
|
+
this.splitPosition = 50;
|
|
6669
|
+
/** Whether the user is currently resizing */
|
|
6670
|
+
this.isResizing = false;
|
|
6671
|
+
}
|
|
6672
|
+
/** Initializes the component */
|
|
6673
|
+
ResizePanelsComponent.prototype.ngOnInit = function () {
|
|
6674
|
+
};
|
|
6675
|
+
/** Gets the style for the first panel */
|
|
6676
|
+
ResizePanelsComponent.prototype.getFirstPanelStyle = function () {
|
|
6677
|
+
return {
|
|
6678
|
+
flex: this.splitPosition,
|
|
6679
|
+
minWidth: this.direction === 'vertical' ? this.firstPanelMinSize : 'auto',
|
|
6680
|
+
minHeight: this.direction === 'horizontal' ? this.firstPanelMinSize : 'auto'
|
|
6681
|
+
};
|
|
6682
|
+
};
|
|
6683
|
+
/** Gets the style for the second panel */
|
|
6684
|
+
ResizePanelsComponent.prototype.getSecondPanelStyle = function () {
|
|
6685
|
+
return {
|
|
6686
|
+
flex: 100 - this.splitPosition,
|
|
6687
|
+
minWidth: this.direction === 'vertical' ? this.secondPanelMinSize : 'auto',
|
|
6688
|
+
minHeight: this.direction === 'horizontal' ? this.secondPanelMinSize : 'auto'
|
|
6689
|
+
};
|
|
6690
|
+
};
|
|
6691
|
+
/** Start resizing */
|
|
6692
|
+
ResizePanelsComponent.prototype.startResize = function () {
|
|
6693
|
+
this.isResizing = true;
|
|
6694
|
+
};
|
|
6695
|
+
/** Stop resizing on mouse up */
|
|
6696
|
+
ResizePanelsComponent.prototype.stopResize = function () {
|
|
6697
|
+
this.isResizing = false;
|
|
6698
|
+
};
|
|
6699
|
+
/**
|
|
6700
|
+
* The mouse move listener
|
|
6701
|
+
* @param event the mouse event
|
|
6702
|
+
*/
|
|
6703
|
+
ResizePanelsComponent.prototype.onMouseMove = function (event) {
|
|
6704
|
+
if (this.isResizing) {
|
|
6705
|
+
event.preventDefault();
|
|
6706
|
+
event.stopPropagation();
|
|
6707
|
+
this.resize(event);
|
|
6708
|
+
}
|
|
6709
|
+
};
|
|
6710
|
+
/**
|
|
6711
|
+
* Resize the panels based on the mouse position relative to the container
|
|
6712
|
+
* @param event the mouse event
|
|
6713
|
+
*/
|
|
6714
|
+
ResizePanelsComponent.prototype.resize = function (event) {
|
|
6715
|
+
var containerSize = this.direction === 'vertical' ? this.container.nativeElement.clientWidth : this.container.nativeElement.clientHeight;
|
|
6716
|
+
var containerPos = this.direction === 'vertical' ? this.container.nativeElement.getBoundingClientRect().x : this.container.nativeElement.getBoundingClientRect().y;
|
|
6717
|
+
var mousePos = this.direction === 'vertical' ? event.x : event.y;
|
|
6718
|
+
this.splitPosition = ((mousePos - containerPos) / containerSize) * 100;
|
|
6719
|
+
};
|
|
6720
|
+
return ResizePanelsComponent;
|
|
6721
|
+
}());
|
|
6722
|
+
ResizePanelsComponent.decorators = [
|
|
6723
|
+
{ type: i0.Component, args: [{
|
|
6724
|
+
selector: 'sof-ar-resize-panels',
|
|
6725
|
+
template: "<div #container class=\"sof-ar-resize-panels-container\"\r\n [ngClass]=\"{\r\n 'vertical': direction === 'vertical',\r\n 'horizontal': direction === 'horizontal',\r\n 'resizing': isResizing\r\n }\">\r\n\r\n <!-- First Panel -->\r\n <div [ngStyle]=\"getFirstPanelStyle()\" class=\"sof-ar-resize-panels-panel-content\">\r\n <ng-content select=\"[sof-ar-resize-panel-first]\"></ng-content>\r\n </div>\r\n\r\n <!-- Drag Handle / Border -->\r\n <div class=\"sof-ar-resize-panels-border\" [ngClass]=\"direction\">\r\n <div class=\"sof-ar-resize-panels-drag-handle\" (mousedown)=\"startResize()\" \r\n [ngClass]=\"{\r\n 'vertical': direction === 'vertical',\r\n 'horizontal': direction === 'horizontal',\r\n 'resizing': isResizing\r\n }\">\r\n </div>\r\n </div>\r\n \r\n <!-- Second Panel -->\r\n <div [ngStyle]=\"getSecondPanelStyle()\" class=\"sof-ar-resize-panels-panel-content\">\r\n <ng-content select=\"[sof-ar-resize-panel-second]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
6726
|
+
styles: [".sof-ar-resize-panels-container{display:flex;height:100%;width:100%}.sof-ar-resize-panels-container.vertical{flex-direction:row}.sof-ar-resize-panels-container.horizontal{flex-direction:column}.sof-ar-resize-panels-container.vertical.resizing{cursor:ew-resize}.sof-ar-resize-panels-container.horizontal.resizing{cursor:ns-resize}.sof-ar-resize-panels-drag-handle{background-color:transparent;position:relative;transition:background-color .1s linear;transition-delay:0s}.sof-ar-resize-panels-drag-handle.resizing,.sof-ar-resize-panels-drag-handle:hover{background-color:var(--primary-color-500-parts);transition-delay:.25s}.sof-ar-resize-panels-drag-handle.vertical:hover{cursor:ew-resize}.sof-ar-resize-panels-drag-handle.horizontal:hover{cursor:ns-resize}.sof-ar-resize-panels-drag-handle.vertical{height:100%;right:2px;width:5px}.sof-ar-resize-panels-drag-handle.horizontal{bottom:2px;height:5px;width:100%}.sof-ar-resize-panels-border{background-color:#000}.sof-ar-resize-panels-border.vertical{width:1px}.sof-ar-resize-panels-border.horizontal{height:1px}.sof-ar-resize-panels-panel-content{overflow:auto}"]
|
|
6727
|
+
},] }
|
|
6728
|
+
];
|
|
6729
|
+
ResizePanelsComponent.ctorParameters = function () { return []; };
|
|
6730
|
+
ResizePanelsComponent.propDecorators = {
|
|
6731
|
+
direction: [{ type: i0.Input }],
|
|
6732
|
+
splitPosition: [{ type: i0.Input }],
|
|
6733
|
+
firstPanelMinSize: [{ type: i0.Input }],
|
|
6734
|
+
secondPanelMinSize: [{ type: i0.Input }],
|
|
6735
|
+
container: [{ type: i0.ViewChild, args: ['container',] }],
|
|
6736
|
+
stopResize: [{ type: i0.HostListener, args: ['window:mouseup',] }],
|
|
6737
|
+
onMouseMove: [{ type: i0.HostListener, args: ['window:mousemove', ['$event'],] }]
|
|
6738
|
+
};
|
|
6739
|
+
|
|
6740
|
+
/** The Resize Panels Module */
|
|
6741
|
+
var ArmatureResizePanelsModule = /** @class */ (function () {
|
|
6742
|
+
function ArmatureResizePanelsModule() {
|
|
6743
|
+
}
|
|
6744
|
+
return ArmatureResizePanelsModule;
|
|
6745
|
+
}());
|
|
6746
|
+
ArmatureResizePanelsModule.decorators = [
|
|
6747
|
+
{ type: i0.NgModule, args: [{
|
|
6748
|
+
declarations: [ResizePanelsComponent],
|
|
6749
|
+
imports: [
|
|
6750
|
+
common.CommonModule
|
|
6751
|
+
],
|
|
6752
|
+
exports: [
|
|
6753
|
+
ResizePanelsComponent
|
|
6754
|
+
]
|
|
6755
|
+
},] }
|
|
6756
|
+
];
|
|
6757
|
+
|
|
6758
|
+
/** Public API surface for components */
|
|
6759
|
+
|
|
6656
6760
|
/** The component print service */
|
|
6657
6761
|
var ComponentSavePrintService = /** @class */ (function () {
|
|
6658
6762
|
/** Constructs the service */
|
|
@@ -6824,6 +6928,7 @@
|
|
|
6824
6928
|
exports.ArmatureHeaderModule = ArmatureHeaderModule;
|
|
6825
6929
|
exports.ArmatureModule = ArmatureModule;
|
|
6826
6930
|
exports.ArmatureNavigationComponent = ArmatureNavigationComponent;
|
|
6931
|
+
exports.ArmatureResizePanelsModule = ArmatureResizePanelsModule;
|
|
6827
6932
|
exports.Attribute = Attribute;
|
|
6828
6933
|
exports.AuthorizationService = AuthorizationService;
|
|
6829
6934
|
exports.BannerService = BannerService;
|
|
@@ -6871,6 +6976,7 @@
|
|
|
6871
6976
|
exports.RedirectSamlComponent = RedirectSamlComponent;
|
|
6872
6977
|
exports.RedirectSamlRequest = RedirectSamlRequest;
|
|
6873
6978
|
exports.RedirectSessionConfigs = RedirectSessionConfigs;
|
|
6979
|
+
exports.ResizePanelsComponent = ResizePanelsComponent;
|
|
6874
6980
|
exports.RoleAccess = RoleAccess;
|
|
6875
6981
|
exports.RoleNavService = RoleNavService;
|
|
6876
6982
|
exports.RumConfig = RumConfig;
|