[59329aa] | 1 | {"version":3,"file":"primeng-splitter.mjs","sources":["../../src/app/components/splitter/splitter.ts","../../src/app/components/splitter/primeng-splitter.ts"],"sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, QueryList, ElementRef, ChangeDetectorRef, TemplateRef, ViewChild, Output, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomHandler } from 'primeng/dom';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\n\n@Component({\n selector: 'p-splitter',\n template: `\n <div #container [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-template ngFor let-panel let-i=\"index\" [ngForOf]=\"panels\">\n <div [ngClass]=\"panelContainerClass()\" [class]=\"panelStyleClass\" [ngStyle]=\"panelStyle\">\n <ng-container *ngTemplateOutlet=\"panel\"></ng-container>\n </div>\n <div class=\"p-splitter-gutter\" *ngIf=\"i !== (panels.length - 1)\" [ngStyle]=\"gutterStyle()\"\n (mousedown)=\"onGutterMouseDown($event, i)\" (touchstart)=\"onGutterTouchStart($event, i)\">\n <div class=\"p-splitter-gutter-handle\"></div>\n </div>\n </ng-template>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./splitter.css'],\n host: {\n 'class': 'p-element',\n '[class.p-splitter-panel-nested]': 'nested'\n }\n})\nexport class Splitter {\n\n @Input() styleClass: string;\n\n @Input() panelStyleClass: string;\n\n @Input() style: any;\n\n @Input() panelStyle: any;\n\n @Input() stateStorage: string = \"session\";\n\n @Input() stateKey: string = null;\n\n @Input() layout: string = \"horizontal\";\n\n @Input() gutterSize: number = 4;\n\n @Input() panelSizes: number[] = [];\n\n @Input() minSizes: number[] = [];\n\n @Output() onResizeEnd: EventEmitter<any> = new EventEmitter();\n\n @Output() onResizeStart: EventEmitter<any> = new EventEmitter();\n\n @ContentChildren(PrimeTemplate) templates: QueryList<any>;\n\n @ViewChild('container', { static: false }) containerViewChild: ElementRef;\n\n nested = false;\n\n panels = [];\n\n dragging = false;\n\n mouseMoveListener = null;\n\n mouseUpListener = null;\n\n touchMoveListener = null;\n\n touchEndListener = null;\n\n size = null;\n\n gutterElement = null;\n\n startPos = null;\n\n prevPanelElement = null;\n\n nextPanelElement = null;\n\n nextPanelSize = null;\n\n prevPanelSize = null;\n\n _panelSizes = null;\n\n prevPanelIndex = null;\n\n constructor(public cd: ChangeDetectorRef, private el: ElementRef) { }\n\n ngOnInit() {\n this.nested = this.isNested();\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'panel':\n this.panels.push(item.template);\n break;\n default:\n this.panels.push(item.template);\n break;\n }\n })\n }\n\n ngAfterViewInit() {\n if (this.panels && this.panels.length) {\n let initialized = false;\n if (this.isStateful()) {\n initialized = this.restoreState();\n }\n\n if (!initialized) {\n let children = [...this.el.nativeElement.children[0].children].filter(child => DomHandler.hasClass(child, 'p-splitter-panel'));\n let _panelSizes = [];\n\n this.panels.map((panel, i) => {\n let panelInitialSize = this.panelSizes.length -1 >= i ? this.panelSizes[i]: null;\n let panelSize = panelInitialSize || (100 / this.panels.length);\n _panelSizes[i] = panelSize;\n children[i].style.flexBasis = 'calc(' + panelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';\n });\n\n this._panelSizes = _panelSizes;\n }\n }\n }\n\n resizeStart(event, index) {\n this.gutterElement = event.currentTarget;\n this.size = this.horizontal() ? DomHandler.getWidth(this.containerViewChild.nativeElement) : DomHandler.getHeight(this.containerViewChild.nativeElement);\n this.dragging = true;\n this.startPos = this.horizontal() ? (event.pageX || event.changedTouches[0].pageX) : (event.pageY || event.changedTouches[0].pageY);\n this.prevPanelElement = this.gutterElement.previousElementSibling;\n this.nextPanelElement = this.gutterElement.nextElementSibling;\n this.prevPanelSize = 100 * (this.horizontal() ? DomHandler.getOuterWidth(this.prevPanelElement, true): DomHandler.getOuterHeight(this.prevPanelElement, true)) / this.size;\n this.nextPanelSize = 100 * (this.horizontal() ? DomHandler.getOuterWidth(this.nextPanelElement, true): DomHandler.getOuterHeight(this.nextPanelElement, true)) / this.size;\n this.prevPanelIndex = index;\n DomHandler.addClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.addClass(this.containerViewChild.nativeElement, 'p-splitter-resizing');\n this.onResizeStart.emit({originalEvent: event, sizes: this._panelSizes});\n }\n\n onResize(event) {\n let newPos;\n if (this.horizontal())\n newPos = (event.pageX * 100 / this.size) - (this.startPos * 100 / this.size);\n else\n newPos = (event.pageY * 100 / this.size) - (this.startPos * 100 / this.size);\n\n let newPrevPanelSize = this.prevPanelSize + newPos;\n let newNextPanelSize = this.nextPanelSize - newPos;\n\n if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {\n this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';\n this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';\n this._panelSizes[this.prevPanelIndex] = newPrevPanelSize;\n this._panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;\n }\n }\n\n resizeEnd(event) {\n if (this.isStateful()) {\n this.saveState();\n }\n\n this.onResizeEnd.emit({originalEvent: event, sizes: this._panelSizes});\n DomHandler.removeClass(this.gutterElement, 'p-splitter-gutter-resizing');\n DomHandler.removeClass(this.containerViewChild.nativeElement, 'p-splitter-resizing');\n this.clear();\n }\n\n onGutterMouseDown(event, index) {\n this.resizeStart(event, index);\n this.bindMouseListeners();\n }\n\n onGutterTouchStart(event, index) {\n if (event.cancelable){\n this.resizeStart(event, index);\n this.bindTouchListeners();\n\n event.preventDefault();\n }\n }\n\n onGutterTouchEnd(event) {\n this.resizeEnd(event);\n this.unbindTouchListeners();\n\n if (event.cancelable)\n event.preventDefault();\n }\n\n validateResize(newPrevPanelSize, newNextPanelSize) {\n if (this.minSizes.length >= 1 && this.minSizes[0] && this.minSizes[0] > newPrevPanelSize) {\n return false;\n }\n\n if (this.minSizes.length > 1 && this.minSizes[1] && this.minSizes[1] > newNextPanelSize) {\n return false;\n }\n\n return true;\n }\n\n bindMouseListeners() {\n if (!this.mouseMoveListener) {\n this.mouseMoveListener = event => this.onResize(event)\n document.addEventListener('mousemove', this.mouseMoveListener);\n }\n\n if (!this.mouseUpListener) {\n this.mouseUpListener = event => {\n this.resizeEnd(event);\n this.unbindMouseListeners();\n }\n document.addEventListener('mouseup', this.mouseUpListener);\n }\n }\n\n bindTouchListeners() {\n if (!this.touchMoveListener) {\n this.touchMoveListener = event => this.onResize(event.changedTouches[0])\n document.addEventListener('touchmove', this.touchMoveListener);\n }\n\n if (!this.touchEndListener) {\n this.touchEndListener = event => {\n this.resizeEnd(event);\n this.unbindTouchListeners();\n }\n document.addEventListener('touchend', this.touchEndListener);\n }\n }\n\n unbindMouseListeners() {\n if (this.mouseMoveListener) {\n document.removeEventListener('mousemove', this.mouseMoveListener);\n this.mouseMoveListener = null;\n }\n\n if (this.mouseUpListener) {\n document.removeEventListener('mouseup', this.mouseUpListener);\n this.mouseUpListener = null;\n }\n }\n\n unbindTouchListeners() {\n if (this.touchMoveListener) {\n document.removeEventListener('touchmove', this.touchMoveListener);\n this.touchMoveListener = null;\n }\n\n if (this.touchEndListener) {\n document.removeEventListener('touchend', this.touchEndListener);\n this.touchEndListener = null;\n }\n }\n\n clear() {\n this.dragging = false;\n this.size = null;\n this.startPos = null;\n this.prevPanelElement = null;\n this.nextPanelElement = null;\n this.prevPanelSize = null;\n this.nextPanelSize = null;\n this.gutterElement = null;\n this.prevPanelIndex = null;\n }\n\n isNested() {\n if (this.el.nativeElement) {\n let parent = this.el.nativeElement.parentElement;\n while (parent && !DomHandler.hasClass(parent, 'p-splitter')) {\n parent = parent.parentElement;\n }\n\n return parent !== null;\n }\n else {\n return false;\n }\n }\n\n isStateful() {\n return this.stateKey != null;\n }\n\n getStorage() {\n switch(this.stateStorage) {\n case 'local':\n return window.localStorage;\n\n case 'session':\n return window.sessionStorage;\n\n default:\n throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are \"local\" and \"session\".');\n }\n }\n\n saveState() {\n this.getStorage().setItem(this.stateKey, JSON.stringify(this._panelSizes));\n }\n\n restoreState() {\n const storage = this.getStorage();\n const stateString = storage.getItem(this.stateKey);\n\n if (stateString) {\n this._panelSizes = JSON.parse(stateString);\n let children = [...this.containerViewChild.nativeElement.children].filter(child => DomHandler.hasClass(child, 'p-splitter-panel'));\n children.forEach((child, i) => {\n child.style.flexBasis = 'calc(' + this._panelSizes[i] + '% - ' + ((this.panels.length - 1) * this.gutterSize) + 'px)';\n });\n\n return true;\n }\n\n return false;\n }\n\n containerClass() {\n return {\n 'p-splitter p-component': true,\n 'p-splitter-horizontal': this.layout === \"horizontal\",\n 'p-splitter-vertical': this.layout === \"vertical\"\n };\n }\n\n panelContainerClass() {\n return {\n 'p-splitter-panel': true,\n 'p-splitter-panel-nested': true\n };\n }\n\n gutterStyle() {\n if (this.horizontal())\n return {width: this.gutterSize + 'px'};\n else\n return {height: this.gutterSize + 'px'};\n }\n\n horizontal() {\n return this.layout === 'horizontal';\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Splitter, SharedModule],\n declarations: [Splitter]\n})\nexport class SplitterModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA4Ba,QAAQ;IA8DjB,YAAmB,EAAqB,EAAU,EAAc;QAA7C,OAAE,GAAF,EAAE,CAAmB;QAAU,OAAE,GAAF,EAAE,CAAY;QApDvD,iBAAY,GAAW,SAAS,CAAC;QAEjC,aAAQ,GAAW,IAAI,CAAC;QAExB,WAAM,GAAW,YAAY,CAAC;QAE9B,eAAU,GAAW,CAAC,CAAC;QAEvB,eAAU,GAAa,EAAE,CAAC;QAE1B,aAAQ,GAAa,EAAE,CAAC;QAEvB,gBAAW,GAAsB,IAAI,YAAY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