ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1 lines • 42.7 kB
Source Map (JSON)
{"version":3,"file":"ng-zorro-antd-splitter.mjs","names":[],"sources":["../../components/splitter/splitter-bar.component.ts","../../components/splitter/splitter-panel.component.ts","../../components/splitter/utils.ts","../../components/splitter/splitter.component.ts","../../components/splitter/splitter.module.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { coerceCssPixelValue } from '@angular/cdk/coercion';\nimport { Component, computed, input, output, ViewEncapsulation } from '@angular/core';\n\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { getEventWithPoint } from 'ng-zorro-antd/resizable';\n\nimport { NzSplitterCollapseOption } from './typings';\n\n@Component({\n selector: '[nz-splitter-bar]',\n imports: [NzIconModule],\n template: `\n @if (lazy()) {\n @let preview = active() && !!this.constrainedOffset();\n <div\n class=\"ant-splitter-bar-preview\"\n [class.ant-splitter-bar-preview-active]=\"preview\"\n [style.transform]=\"preview ? previewTransform() : null\"\n ></div>\n }\n\n <div\n class=\"ant-splitter-bar-dragger\"\n [class.ant-splitter-bar-dragger-disabled]=\"!resizable()\"\n [class.ant-splitter-bar-dragger-active]=\"active()\"\n (mousedown)=\"resizeStartEvent($event)\"\n (touchstart)=\"resizeStartEvent($event)\"\n ></div>\n\n @if (collapsible()?.start) {\n <div class=\"ant-splitter-bar-collapse-bar ant-splitter-bar-collapse-bar-start\" (click)=\"collapseEvent('start')\">\n <nz-icon\n [nzType]=\"vertical() ? 'up' : 'left'\"\n class=\"ant-splitter-bar-collapse-icon ant-splitter-bar-collapse-start\"\n />\n </div>\n }\n\n @if (collapsible()?.end) {\n <div class=\"ant-splitter-bar-collapse-bar ant-splitter-bar-collapse-bar-end\" (click)=\"collapseEvent('end')\">\n <nz-icon\n [nzType]=\"vertical() ? 'down' : 'right'\"\n class=\"ant-splitter-bar-collapse-icon ant-splitter-bar-collapse-end\"\n />\n </div>\n }\n `,\n host: {\n role: 'separator',\n class: 'ant-splitter-bar',\n '[attr.aria-valuenow]': 'getValidNumber(ariaNow())',\n '[attr.aria-valuemin]': 'getValidNumber(ariaMin())',\n '[attr.aria-valuemax]': 'getValidNumber(ariaMax())'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class NzSplitterBarComponent {\n readonly ariaNow = input.required<number>();\n readonly ariaMin = input.required<number>();\n readonly ariaMax = input.required<number>();\n readonly active = input(false);\n readonly resizable = input(true);\n readonly vertical = input<boolean>();\n readonly lazy = input(false);\n readonly collapsible = input<NzSplitterCollapseOption>();\n readonly constrainedOffset = input<number>();\n\n readonly offsetStart = output<[x: number, y: number]>();\n readonly collapse = output<'start' | 'end'>();\n\n protected readonly previewTransform = computed(() => {\n const offset = coerceCssPixelValue(this.constrainedOffset());\n return this.vertical() ? `translateY(${offset})` : `translateX(${offset})`;\n });\n\n protected resizeStartEvent(event: MouseEvent | TouchEvent): void {\n if (this.resizable()) {\n const { pageX, pageY } = getEventWithPoint(event);\n this.offsetStart.emit([pageX, pageY]);\n }\n }\n\n protected collapseEvent(type: 'start' | 'end'): void {\n this.collapse.emit(type);\n }\n\n protected getValidNumber(num: number | undefined): number {\n return typeof num === 'number' && !isNaN(num) ? Math.round(num) : 0;\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { input, TemplateRef, Component, ViewEncapsulation, viewChild, booleanAttribute } from '@angular/core';\n\nimport { NzSplitterCollapsible } from './typings';\n\n@Component({\n selector: 'nz-splitter-panel',\n exportAs: 'nzSplitterPanel',\n template: `\n <ng-template #contentTemplate>\n <ng-content />\n </ng-template>\n `,\n encapsulation: ViewEncapsulation.None\n})\nexport class NzSplitterPanelComponent {\n readonly nzDefaultSize = input<number | string>();\n readonly nzMin = input<number | string>();\n readonly nzMax = input<number | string>();\n readonly nzSize = input<number | string>();\n readonly nzCollapsible = input<NzSplitterCollapsible>(false);\n readonly nzResizable = input(true, { transform: booleanAttribute });\n readonly contentTemplate = viewChild.required<TemplateRef<void>>('contentTemplate');\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { NzSplitterCollapseOption, NzSplitterCollapsible } from './typings';\n\n/**\n * Get the percentage value of the string. (e.g. '50%' => 0.5)\n * @param str\n */\nexport function getPercentValue(str: string): number {\n return Number(str.slice(0, -1)) / 100;\n}\n\n/**\n * Check if the size is percentage.\n * @param size\n */\nexport function isPercent(size: string | number | undefined): size is string {\n return typeof size === 'string' && size.endsWith('%');\n}\n\n/**\n * Coerce the panel collapsible option to the NzSplitterCollapseOption type.\n */\nexport function coerceCollapsible(collapsible: NzSplitterCollapsible): NzSplitterCollapseOption {\n if (collapsible && typeof collapsible === 'object') {\n return collapsible;\n }\n\n const mergedCollapsible = !!collapsible;\n return {\n start: mergedCollapsible,\n end: mergedCollapsible\n };\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceCssPixelValue } from '@angular/cdk/coercion';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n DOCUMENT,\n ElementRef,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n ViewEncapsulation\n} from '@angular/core';\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\nimport { merge, Subject } from 'rxjs';\nimport { map, pairwise, startWith, takeUntil } from 'rxjs/operators';\n\nimport { NzResizeObserver } from 'ng-zorro-antd/cdk/resize-observer';\nimport { fromEventOutsideAngular } from 'ng-zorro-antd/core/util';\nimport { getEventWithPoint } from 'ng-zorro-antd/resizable';\n\nimport { NzSplitterBarComponent } from './splitter-bar.component';\nimport { NzSplitterPanelComponent } from './splitter-panel.component';\nimport { NzSplitterCollapseOption, NzSplitterLayout } from './typings';\nimport { coerceCollapsible, getPercentValue, isPercent } from './utils';\n\ninterface PanelSize {\n // Calculated size of the panel in pixels, constrained by the min and max size.\n size: string | number | undefined;\n // Size in pixels\n postPxSize: number;\n // The percentage size of the panel, calculated based on the container size.\n percentage: number;\n // Original min size of the panel set by the user.\n min: string | number | undefined;\n // Original max size of the panel set by the user.\n max: string | number | undefined;\n // Post processed min size of the panel in percentage.\n postPercentMinSize: number;\n // Post processed max size of the panel in percentage.\n postPercentMaxSize: number;\n}\n\ninterface ResizableInfo {\n resizable: boolean;\n collapsible: Required<NzSplitterCollapseOption>;\n}\n\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });\n\n@Component({\n selector: 'nz-splitter',\n exportAs: 'nzSplitter',\n template: `\n @for (panel of panelProps(); track $index) {\n @let size = sizes()[$index];\n @let flexBasis = !!size.size ? size.size : 'auto';\n @let flexGrow = !!size.size ? 0 : 1;\n <div\n class=\"ant-splitter-panel\"\n [class.ant-splitter-panel-hidden]=\"size.postPxSize === 0\"\n [style.flex-basis]=\"flexBasis\"\n [style.flex-grow]=\"flexGrow\"\n >\n <ng-container *ngTemplateOutlet=\"panel.contentTemplate\" />\n </div>\n\n @if (!$last) {\n @let resizableInfo = resizableInfos()[$index];\n @let ariaInfo = ariaInfos()[$index];\n <div\n nz-splitter-bar\n [ariaNow]=\"ariaInfo.ariaNow\"\n [ariaMin]=\"ariaInfo.ariaMin\"\n [ariaMax]=\"ariaInfo.ariaMax\"\n [resizable]=\"resizableInfo.resizable\"\n [collapsible]=\"resizableInfo.collapsible\"\n [active]=\"movingIndex()?.index === $index\"\n [vertical]=\"nzLayout() === 'vertical'\"\n [lazy]=\"nzLazy()\"\n [constrainedOffset]=\"previewOffset()\"\n (offsetStart)=\"startResize($index, $event)\"\n (collapse)=\"collapse($index, $event)\"\n ></div>\n }\n }\n\n <!-- Fake mask for cursor -->\n @if (movingIndex() !== null) {\n <div\n aria-hidden\n class=\"ant-splitter-mask\"\n [class.ant-splitter-mask-horizontal]=\"nzLayout() === 'horizontal'\"\n [class.ant-splitter-mask-vertical]=\"nzLayout() === 'vertical'\"\n ></div>\n }\n `,\n imports: [NgTemplateOutlet, NzSplitterBarComponent],\n host: {\n class: 'ant-splitter',\n '[class.ant-splitter-horizontal]': 'nzLayout() === \"horizontal\"',\n '[class.ant-splitter-vertical]': 'nzLayout() === \"vertical\"',\n '[class.ant-splitter-rtl]': 'dir() === \"rtl\"'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class NzSplitterComponent {\n /** ------------------- Props ------------------- */\n readonly nzLayout = input<NzSplitterLayout>('horizontal');\n readonly nzLazy = input(false, { transform: booleanAttribute });\n readonly nzResizeStart = output<number[]>();\n readonly nzResize = output<number[]>();\n readonly nzResizeEnd = output<number[]>();\n\n private readonly destroyRef = inject(DestroyRef);\n protected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n protected readonly resizeObserver = inject(NzResizeObserver);\n protected readonly document = inject(DOCUMENT);\n\n protected readonly dir = inject(Directionality).valueSignal;\n\n /** ------------------- Panels ------------------- */\n // Get all panels from content children\n protected readonly panels = contentChildren(NzSplitterPanelComponent);\n // Subscribe to the change of properties\n protected readonly panelProps = computed(() =>\n this.panels().map(panel => ({\n defaultSize: panel.nzDefaultSize(),\n size: panel.nzSize(),\n min: panel.nzMin(),\n max: panel.nzMax(),\n resizable: panel.nzResizable(),\n collapsible: coerceCollapsible(panel.nzCollapsible()),\n contentTemplate: panel.contentTemplate()\n }))\n );\n\n /** ------------------- Sizes ------------------- */\n /**\n * Observe the size of the container.\n */\n private readonly containerBox = toSignal(\n this.resizeObserver.observe(this.elementRef).pipe(\n map(([item]) => item.target as HTMLElement),\n map(el => ({ width: el.clientWidth, height: el.clientHeight }))\n ),\n {\n initialValue: {\n width: this.elementRef.nativeElement.clientWidth || 0,\n height: this.elementRef.nativeElement.clientHeight || 0\n }\n }\n );\n /**\n * The size of the container, used to calculate the percentage size and flex basis of each panel.\n */\n protected readonly containerSize = computed(() =>\n this.nzLayout() === 'horizontal' ? this.containerBox().width : this.containerBox().height\n );\n /**\n * Derived from defaultSize of each panel.\n * After that it will be updated by the resize event with **real** size in pixels.\n */\n protected readonly innerSizes = linkedSignal({\n source: this.panelProps,\n computation: source => source.map(panel => panel.defaultSize)\n });\n /**\n * Calculate the size of each panel based on the container size and the percentage size.\n */\n protected readonly sizes = computed(() => {\n let emptyCount = 0;\n const containerSize = this.containerSize();\n const innerSizes = this.innerSizes();\n /**\n * Get the calculated size, min and max percentage of each panel\n */\n const sizes = this.panelProps().map((panel, index) => {\n const size = panel.size ?? innerSizes[index];\n\n // Calculate the percentage size of each panel.\n let percentage: number | undefined;\n if (isPercent(size)) {\n percentage = getPercentValue(size);\n } else if (size || size === 0) {\n const num = Number(size);\n if (!isNaN(num)) {\n percentage = num / containerSize;\n }\n } else {\n percentage = undefined;\n emptyCount++;\n }\n\n // Calculate the min and max percentage size of each panel.\n const minSize = panel.min;\n const maxSize = panel.max;\n const postPercentMinSize = isPercent(minSize) ? getPercentValue(minSize) : (minSize || 0) / containerSize;\n const postPercentMaxSize = isPercent(maxSize)\n ? getPercentValue(maxSize)\n : (maxSize || containerSize) / containerSize;\n\n return {\n size,\n percentage,\n min: minSize,\n max: maxSize,\n postPercentMinSize,\n postPercentMaxSize\n } as PanelSize;\n });\n\n /**\n * Normalize the percentage size of each panel if the total percentage is larger than 1 or smaller than 1.\n */\n const totalPercentage = sizes.reduce((acc, { percentage }) => acc + (percentage ?? 0), 0);\n\n for (const size of sizes) {\n if (totalPercentage > 1 && !emptyCount) {\n // If total percentage is larger than 1, we will scale it down.\n const scale = 1 / totalPercentage;\n size.percentage = size.percentage === undefined ? 0 : size.percentage * scale;\n } else {\n // If total percentage is smaller than 1, we will fill the rest.\n const averagePercentage = (1 - totalPercentage) / emptyCount;\n size.percentage = size.percentage === undefined ? averagePercentage : size.percentage;\n }\n\n size.postPxSize = size.percentage * containerSize;\n size.size = containerSize ? coerceCssPixelValue(size.postPxSize) : size.size;\n }\n\n return sizes;\n });\n\n protected readonly ariaInfos = computed(() => {\n const stackSizes: number[] = [];\n const ariaInfos: Array<{ ariaNow: number; ariaMin: number; ariaMax: number }> = [];\n const sizes = this.sizes();\n\n let stack = 0;\n for (const size of sizes) {\n stack += size.percentage;\n stackSizes.push(stack);\n }\n\n for (let i = 0; i < sizes.length - 1; i += 1) {\n const ariaMinStart = (stackSizes[i - 1] || 0) + sizes[i].postPercentMinSize;\n const ariaMinEnd = (stackSizes[i + 1] || 100) - sizes[i + 1].postPercentMaxSize;\n\n const ariaMaxStart = (stackSizes[i - 1] || 0) + sizes[i].postPercentMaxSize;\n const ariaMaxEnd = (stackSizes[i + 1] || 100) - sizes[i + 1].postPercentMinSize;\n\n ariaInfos.push({\n ariaNow: stackSizes[i] * 100,\n ariaMin: Math.max(ariaMinStart, ariaMinEnd) * 100,\n ariaMax: Math.min(ariaMaxStart, ariaMaxEnd) * 100\n });\n }\n\n return ariaInfos;\n });\n\n private getPxSizes(): number[] {\n return this.sizes().map(s => s.postPxSize);\n }\n\n /** ------------------ Resize ------------------ */\n /**\n * The index of the panel that is being resized.\n * @note Mark the moving splitter bar as activated to show the dragging effect even if the mouse is outside the\n * splitter container.\n */\n protected readonly movingIndex = signal<{ index: number; confirmed: boolean } | null>(null);\n /**\n * The offset of preview position (lazy mode) when dragging the splitter bar.\n * Constrained by the min and max size of the target panel.\n */\n protected readonly constrainedOffset = signal<number>(0);\n protected readonly previewOffset = computed(() => {\n const offset = this.constrainedOffset();\n return this.nzLayout() === 'horizontal' && this.dir() === 'rtl' ? -offset : offset;\n });\n /**\n * The resizable information of each splitter bar.\n */\n protected readonly resizableInfos = computed(() => {\n const items = this.panelProps();\n const pxSizes = this.getPxSizes();\n\n const resizeInfos: ResizableInfo[] = [];\n\n for (let i = 0; i < items.length - 1; i += 1) {\n const prevItem = items[i];\n const nextItem = items[i + 1];\n const prevSize = pxSizes[i];\n const nextSize = pxSizes[i + 1];\n\n const { resizable: prevResizable = true, min: prevMin, collapsible: prevCollapsible } = prevItem;\n const { resizable: nextResizable = true, min: nextMin, collapsible: nextCollapsible } = nextItem;\n\n const mergedResizable =\n // Both need to be resizable\n prevResizable &&\n nextResizable &&\n // Prev is not collapsed and limit min size\n (prevSize !== 0 || !prevMin) &&\n // Next is not collapsed and limit min size\n (nextSize !== 0 || !nextMin);\n\n const startCollapsible =\n // Self is collapsible\n (prevCollapsible.end && prevSize > 0) ||\n // Collapsed and can be collapsed\n (nextCollapsible.start && nextSize === 0 && prevSize > 0);\n\n const endCollapsible =\n // Self is collapsible\n (nextCollapsible.start && nextSize > 0) ||\n // Collapsed and can be collapsed\n (prevCollapsible.end && prevSize === 0 && nextSize > 0);\n\n resizeInfos[i] = {\n resizable: mergedResizable,\n collapsible: {\n start: !!(this.dir() === 'rtl' ? endCollapsible : startCollapsible),\n end: !!(this.dir() === 'rtl' ? startCollapsible : endCollapsible)\n }\n };\n }\n\n return resizeInfos;\n });\n\n /**\n * Handle the resize start event for the specified panel.\n * @param index The index of the panel.\n * @param startPos The start position of the resize event.\n */\n protected startResize(index: number, startPos: [x: number, y: number]): void {\n this.movingIndex.set({ index, confirmed: false });\n this.nzResizeStart.emit(this.getPxSizes());\n const end$ = new Subject<void>();\n\n // Updated constraint calculation\n const getConstrainedOffset = (rawOffset: number): number => {\n const { percentage, postPercentMinSize, postPercentMaxSize } = this.sizes()[index];\n const [ariaNow, ariaMin, ariaMax] = [percentage, postPercentMinSize, postPercentMaxSize].map(p => p * 100);\n\n const containerSize = this.containerSize();\n const currentPos = (containerSize * ariaNow) / 100;\n const newPos = currentPos + rawOffset;\n\n // Calculate available space\n const minAllowed = Math.max(0, (containerSize * ariaMin) / 100);\n const maxAllowed = Math.min(containerSize, (containerSize * ariaMax) / 100);\n\n // Constrain new position within bounds\n const clampedPos = Math.max(minAllowed, Math.min(maxAllowed, newPos));\n return clampedPos - currentPos;\n };\n\n const handleLazyMove = (offset: number): void => {\n this.constrainedOffset.set(getConstrainedOffset(offset));\n };\n\n const handleLazyEnd = (): void => {\n this.updateOffset(index, this.constrainedOffset());\n this.constrainedOffset.set(0);\n };\n\n // resizing\n merge(\n fromEventOutsideAngular<MouseEvent>(this.document, 'mousemove', passiveEventListenerOptions),\n fromEventOutsideAngular<TouchEvent>(this.document, 'touchmove', passiveEventListenerOptions)\n )\n .pipe(\n map(event => getEventWithPoint(event)),\n map(({ pageX, pageY }) => (this.nzLayout() === 'horizontal' ? pageX - startPos[0] : pageY - startPos[1])),\n // flip the offset if the direction is rtl\n map(offset => (this.nzLayout() === 'horizontal' && this.dir() === 'rtl' ? -offset : offset)),\n startWith(0),\n pairwise(),\n takeUntil(end$),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe(([prev, next]) => {\n if (this.nzLazy() && next !== 0) {\n handleLazyMove(next);\n } else {\n const deltaOffset = next - prev;\n // filter out the 0 delta offset\n if (deltaOffset !== 0) {\n this.updateOffset(index, deltaOffset);\n }\n }\n });\n\n // resize end\n merge(\n fromEventOutsideAngular<MouseEvent>(this.document, 'mouseup'),\n fromEventOutsideAngular<TouchEvent>(this.document, 'touchend')\n )\n .pipe(takeUntil(end$), takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (this.nzLazy()) {\n handleLazyEnd();\n }\n this.movingIndex.set(null);\n this.nzResizeEnd.emit(this.getPxSizes());\n end$.next();\n });\n }\n\n /**\n * Update the sizes of specified panels based on the move offset.\n * @param index The index of the panel.\n * @param offset The move offset in pixels.\n */\n private updateOffset(index: number, offset: number): void {\n const containerSize = this.containerSize();\n const limitSizes = this.sizes().map(p => [p.min, p.max]);\n const pxSizes = this.sizes().map(p => p.percentage * containerSize);\n\n const getLimitSize = (size: string | number | undefined, defaultLimit: number): number => {\n if (typeof size === 'string') {\n return getPercentValue(size) * containerSize;\n }\n return size ?? defaultLimit;\n };\n\n // First time trigger move index update is not sync in the state\n let confirmedIndex: number | null = null;\n const movingIndex = this.movingIndex();\n // we need to know what the real index is\n if ((!movingIndex || !movingIndex.confirmed) && offset !== 0) {\n // search for the real index\n if (offset > 0) {\n confirmedIndex = index;\n this.movingIndex.set({ index, confirmed: true });\n } else {\n for (let i = index; i >= 0; i -= 1) {\n if (pxSizes[i] > 0 && this.resizableInfos()[i].resizable) {\n confirmedIndex = i;\n this.movingIndex.set({ index: i, confirmed: true });\n break;\n }\n }\n }\n }\n\n const mergedIndex = confirmedIndex ?? index;\n const nextIndex = mergedIndex + 1;\n\n // Get boundary\n const startMinSize = getLimitSize(limitSizes[mergedIndex][0], 0);\n const endMinSize = getLimitSize(limitSizes[nextIndex][0], 0);\n const startMaxSize = getLimitSize(limitSizes[mergedIndex][1], containerSize);\n const endMaxSize = getLimitSize(limitSizes[nextIndex][1], containerSize);\n\n let mergedOffset = offset;\n\n // Align with the boundary\n if (pxSizes[mergedIndex] + mergedOffset < startMinSize) {\n mergedOffset = startMinSize - pxSizes[mergedIndex];\n }\n if (pxSizes[nextIndex] - mergedOffset < endMinSize) {\n mergedOffset = pxSizes[nextIndex] - endMinSize;\n }\n if (pxSizes[mergedIndex] + mergedOffset > startMaxSize) {\n mergedOffset = startMaxSize - pxSizes[mergedIndex];\n }\n if (pxSizes[nextIndex] - mergedOffset > endMaxSize) {\n mergedOffset = pxSizes[nextIndex] - endMaxSize;\n }\n\n // Do offset\n pxSizes[mergedIndex] += mergedOffset;\n pxSizes[nextIndex] -= mergedOffset;\n this.innerSizes.set(pxSizes);\n this.nzResize.emit(pxSizes);\n }\n\n /** ------------------ Resize ------------------ */\n /**\n * Record the original size of the collapsed panel.\n * Used to restore the size when the panel is expanded back.\n */\n private readonly cacheCollapsedSize: number[] = [];\n\n /**\n * Collapse the specified panel.\n * @param index The index of the panel to collapse.\n * @param type The type of collapse, either `start` or `end`.\n */\n protected collapse(index: number, type: 'start' | 'end'): void {\n const containerSize = this.containerSize();\n const limitSizes = this.sizes().map(p => [p.min, p.max]);\n const currentSizes = this.sizes().map(p => p.percentage * containerSize);\n const adjustedType = this.dir() === 'rtl' ? (type === 'start' ? 'end' : 'start') : type;\n\n const currentIndex = adjustedType === 'start' ? index : index + 1;\n const targetIndex = adjustedType == 'start' ? index + 1 : index;\n const currentSize = currentSizes[currentIndex];\n const targetSize = currentSizes[targetIndex];\n\n const getLimitSize = (size: string | number | undefined, defaultLimit: number): number => {\n if (typeof size === 'string') {\n return getPercentValue(size) * containerSize;\n }\n return size ?? defaultLimit;\n };\n\n if (currentSize !== 0 && targetSize !== 0) {\n // Collapse directly\n currentSizes[currentIndex] = 0;\n currentSizes[targetIndex] += currentSize;\n this.cacheCollapsedSize[index] = currentSize;\n } else {\n const totalSize = currentSize + targetSize;\n\n const currentSizeMin = getLimitSize(limitSizes[currentIndex][0], 0);\n const currentSizeMax = getLimitSize(limitSizes[currentIndex][1], containerSize);\n const targetSizeMin = getLimitSize(limitSizes[targetIndex][0], 0);\n const targetSizeMax = getLimitSize(limitSizes[targetIndex][1], containerSize);\n\n const limitStart = Math.max(currentSizeMin, totalSize - targetSizeMax);\n const limitEnd = Math.min(currentSizeMax, totalSize - targetSizeMin);\n const halfOffset = (limitEnd - limitStart) / 2;\n\n const targetCacheCollapsedSize = this.cacheCollapsedSize[index];\n const currentCacheCollapsedSize = totalSize - targetCacheCollapsedSize;\n\n const shouldUseCache =\n targetCacheCollapsedSize &&\n targetCacheCollapsedSize <= targetSizeMax &&\n targetCacheCollapsedSize >= targetSizeMin &&\n currentCacheCollapsedSize <= currentSizeMax &&\n currentCacheCollapsedSize >= currentSizeMin;\n\n if (shouldUseCache) {\n currentSizes[targetIndex] = targetCacheCollapsedSize;\n currentSizes[currentIndex] = currentCacheCollapsedSize;\n } else {\n currentSizes[currentIndex] -= halfOffset;\n currentSizes[targetIndex] += halfOffset;\n }\n }\n\n this.innerSizes.set(currentSizes);\n this.nzResize.emit(currentSizes);\n this.nzResizeEnd.emit(currentSizes);\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { NzSplitterPanelComponent } from './splitter-panel.component';\nimport { NzSplitterComponent } from './splitter.component';\n\n@NgModule({\n imports: [NzSplitterComponent, NzSplitterPanelComponent],\n exports: [NzSplitterComponent, NzSplitterPanelComponent]\n})\nexport class NzSplitterModule {}\n"],"mappings":";;;;;;;;;;;;;;AA6DA,IAAa,yBAAb,MAAa,uBAAsB;CACxB,UAAU,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,UAAU,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,UAAU,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,SAAS,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACrB,YAAY,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,WAAW,MAAgB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC3B,OAAO,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACnB,cAAc,MAAiC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAC/C,oBAAoB,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,oBAAA,CAAA,+BAAA,CAAA,CAAA;CAEnC,cAAc,OAAM;CACpB,WAAW,OAAM;CAEP,mBAA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