@split-window/angular 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +241 -2
- package/fesm2022/split-window-angular.mjs +2180 -0
- package/fesm2022/split-window-angular.mjs.map +1 -0
- package/package.json +41 -4
- package/types/split-window-angular.d.ts +813 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-window-angular.mjs","names":["CoreSplitAnimationEngineRegistry","SPLIT_CONTAINER_LAYOUTS","SplitInvalidOptionError","toClassList","computed","computed","SplitStyleStash","CoreSplitContainerRegistry","CoreSplitWindowController"],"sources":["../../src/lib/tokens.ts","../../src/lib/animation/split-animation-engine-registry.ts","../../src/lib/active-window/split-active-window.ts","../../src/lib/modes/container-mode.ts","../../src/lib/modes/mode-resolver.ts","../../src/lib/shell/split-styles.ts","../../src/lib/shell/split-tab-strip.component.ts","../../src/lib/shell/split-container.component.ts","../../src/lib/shell/split-drop-zone-layer.component.ts","../../src/lib/engine/renderer-dom-writer.ts","../../src/lib/engine/angular-split-engine.ts","../../src/lib/registry/split-container-registry.ts","../../src/lib/controller/split-window-controller.ts","../../src/lib/manager/split-window-manager.ts","../../src/lib/provide-split-windows.ts","../../src/lib/directive/split-container.directive.ts"],"sourcesContent":["import { InjectionToken, type Type } from '@angular/core';\nimport {\n mergeSplitWindowConfig,\n type SplitAnimationEngine,\n type SplitWindowConfig,\n} from '@split-window/core';\nimport type { SplitModeInput } from './modes/container-mode';\nimport type { SplitContainerDefaultsConfig } from './types';\n\n/** Default values of SplitWindow, set through `provideSplitWindows(config)`. */\nexport const SPLIT_WINDOW_CONFIG = new InjectionToken<SplitWindowConfig>('SPLIT_WINDOW_CONFIG', {\n factory: () => mergeSplitWindowConfig(),\n});\n\n/**\n * Named modes (multi provider). `provideSplitWindows({ modes })` and `provideSplitModes()`\n * add to it; a later record wins for the same name.\n */\nexport const SPLIT_WINDOW_MODES = new InjectionToken<readonly Record<string, SplitModeInput>[]>(\n 'SPLIT_WINDOW_MODES',\n);\n\n/** Display defaults of the containers, from `provideSplitWindows({ containerDefaults })`. */\nexport const SPLIT_CONTAINER_DEFAULTS = new InjectionToken<SplitContainerDefaultsConfig>(\n 'SPLIT_CONTAINER_DEFAULTS',\n { factory: () => ({}) },\n);\n\n/** A registered animation engine: an instance or a class (created with DI). */\nexport type SplitAnimationEngineEntry =\n SplitAnimationEngine<HTMLElement> | Type<SplitAnimationEngine<HTMLElement>>;\n\n/**\n * Named animation engines (multi provider), in registration order. Without a chosen\n * engine, an animated container uses the first one; the noop engine is used only when none\n * is registered or `engine: 'none'` is chosen. `provideSplitWindows({ animationEngines })`\n * and `provideSplitAnimationEngines()` add to it.\n */\nexport const SPLIT_ANIMATION_ENGINES = new InjectionToken<\n readonly Record<string, SplitAnimationEngineEntry>[]\n>('SPLIT_ANIMATION_ENGINES');\n","import { EnvironmentInjector, Injectable, Injector, inject } from '@angular/core';\nimport { SplitAnimationEngineRegistry as CoreSplitAnimationEngineRegistry } from '@split-window/core';\nimport { SPLIT_ANIMATION_ENGINES } from '../tokens';\n\n/**\n * Named animation engines, as an Angular service. Starts with the engines of\n * `provideSplitWindows({ animationEngines })` and `provideSplitAnimationEngines()`, in\n * order, and creates engine classes with dependency injection. Inject it to register more\n * engines at any time:\n *\n * ```ts\n * inject(SplitAnimationEngineRegistry).register('pop', PopAnimationEngine);\n * ```\n *\n * Engines are resolved on each transition, so a registration counts from the next\n * open/close on: a container without a chosen engine uses the first registered one, and a\n * container that names an engine uses it once it is registered.\n *\n * Registered only by `provideSplitWindows()`. Replace it with a subclass through\n * `provideSplitWindows({ animationEngineRegistry })`.\n */\n@Injectable()\nexport class SplitAnimationEngineRegistry extends CoreSplitAnimationEngineRegistry<HTMLElement> {\n constructor() {\n const injector = inject(EnvironmentInjector);\n super((type) =>\n Injector.create({ providers: [{ provide: type, useClass: type }], parent: injector }).get(\n type,\n ),\n );\n for (const record of inject(SPLIT_ANIMATION_ENGINES, { optional: true }) ?? []) {\n for (const [name, engine] of Object.entries(record)) this.register(name, engine);\n }\n }\n}\n","import { signal, type Signal } from '@angular/core';\nimport type { SplitCloseGuard, SplitWindowRef } from '@split-window/core';\n\n/**\n * Injected in the component (or template context) opened as a tab: close it, rename it and\n * follow its current container, which can change after creation.\n */\nexport class SplitActiveWindow<T = unknown> {\n private readonly _containerKey = signal<string | null>(null);\n private readonly _title = signal('');\n private readonly _label = signal('');\n private readonly _active = signal(false);\n\n /** Current container. A signal, because the tab can move after it was created. */\n readonly containerKey: Signal<string | null> = this._containerKey.asReadonly();\n readonly title: Signal<string> = this._title.asReadonly();\n /** Title with the number, as in the strip. */\n readonly label: Signal<string> = this._label.asReadonly();\n readonly isActive: Signal<boolean> = this._active.asReadonly();\n\n /** @internal Created by the engine for each tab. */\n constructor(readonly ref: SplitWindowRef<T>) {\n this.sync();\n ref.containerChanged.subscribe(() => this.sync());\n ref.titleChanged.subscribe(() => this.sync());\n ref.activated.subscribe(() => this._active.set(true));\n ref.deactivated.subscribe(() => this._active.set(false));\n ref.hidden.subscribe(() => this.sync());\n }\n\n close(result?: any, options?: { force?: boolean }): Promise<boolean> {\n return this.ref.close(result, options);\n }\n\n dismiss(reason?: any, options?: { force?: boolean }): Promise<boolean> {\n return this.ref.dismiss(reason, options);\n }\n\n setTitle(title: string): void {\n this.ref.setTitle(title);\n }\n\n setClosable(closable: boolean): void {\n this.ref.setClosable(closable);\n }\n\n setCanClose(guard: SplitCloseGuard | null): void {\n this.ref.setCanClose(guard);\n }\n\n /** @internal */\n sync(): void {\n this._containerKey.set(this.ref.containerKey);\n this._title.set(this.ref.title);\n this._label.set(this.ref.label);\n this._active.set(this.ref.isActive);\n }\n}\n","import type { Type } from '@angular/core';\nimport {\n mergeAnimation,\n type ContainerState,\n type SplitAnimationFrame,\n type SplitAnimationInput as CoreAnimationInput,\n type SplitBodySide,\n type SplitContainerLayout,\n type SplitRect,\n type SplitStyleStash,\n} from '@split-window/core';\nimport type {\n SplitAnimationInput,\n SplitAnimationOptions,\n SplitContainerElements,\n} from '../animation/animation-engine';\n\n/** One class, several separated by spaces, or a list. */\nexport type SplitClassInput = string | readonly string[];\n\n/** What a mode (or a container) can set besides the layout behavior. */\nexport interface SplitModeSettings {\n /** Edge the panel docks to (custom containers). Default: `'right'`. */\n side?: SplitBodySide;\n /** Panel size on the side axis: '360px', '30vw'. */\n size?: string;\n /** Element pushed by a body container in `push`. A string is a CSS selector. */\n pushTarget?: HTMLElement | string;\n animation?: SplitAnimationInput;\n /** Classes of the host (the app element, or the fixed host of a body container). */\n hostClass?: SplitClassInput;\n /** Classes of the `split-container` element. */\n panelClass?: SplitClassInput;\n /** Classes of the backdrop. */\n backdropClass?: SplitClassInput;\n}\n\n/** What a mode receives while it applies or removes its layout. */\nexport interface SplitModeContext {\n readonly container: ContainerState<HTMLElement>;\n readonly kind: 'custom' | 'body';\n readonly layout: SplitContainerLayout;\n readonly side: SplitBodySide;\n /** Resolved panel size, or `null` when the layout has none (inline, custom push without `size`). */\n readonly size: string | null;\n readonly elements: SplitContainerElements;\n readonly document: Document;\n /** Use it for every style or class change: it is undone after the container hides. */\n readonly styles: SplitStyleStash;\n /** Free space for the mode, kept while the container is open. */\n readonly data: Record<string, unknown>;\n}\n\n/** Passed to a mode function. */\nexport interface SplitModeResolveContext {\n readonly key: string;\n readonly kind: 'custom' | 'body';\n /** Side of a body container. */\n readonly side: SplitBodySide | null;\n readonly options: Readonly<Record<string, unknown>>;\n}\n\n/**\n * Base class of the modes. A mode decides how the open container takes space (`open`,\n * `close`), where a transition starts and ends (`frames`) and what it adds to the\n * container (`settings`). Extend a built-in mode to change a part of it:\n *\n * ```ts\n * class DrawerMode extends SplitOverlayMode {\n * override settings() { return { panelClass: 'drawer', animation: { duration: 300 } }; }\n * }\n * ```\n *\n * Classes are created with dependency injection, so they can use `inject()`.\n */\nexport abstract class SplitContainerMode {\n abstract readonly layout: SplitContainerLayout;\n\n /** Settings the mode adds over the global defaults. The container options win. */\n settings(): SplitModeSettings {\n return {};\n }\n\n /** Applies the open layout. Called before the show transition. */\n open(ctx: SplitModeContext): void {\n void ctx;\n }\n\n /** Called after the hide transition, right before `ctx.styles` is restored. */\n close(ctx: SplitModeContext): void {\n void ctx;\n }\n\n /** Called after the show transition. */\n shown(ctx: SplitModeContext): void {\n void ctx;\n }\n\n /** Called after the container is hidden. */\n hidden(ctx: SplitModeContext): void {\n void ctx;\n }\n\n /** Start and end frames, measured with the open layout applied. */\n frames(\n ctx: SplitModeContext,\n phase: 'show' | 'hide',\n ): { from: SplitAnimationFrame; to: SplitAnimationFrame } {\n const open = this.openFrame(ctx);\n const closed = this.closedFrame(ctx, open);\n return phase === 'show' ? { from: closed, to: open } : { from: open, to: closed };\n }\n\n /** The container fully open. */\n protected openFrame(ctx: SplitModeContext): SplitAnimationFrame {\n const r = ctx.elements.shell.getBoundingClientRect();\n return {\n rect: { x: r.x, y: r.y, width: r.width, height: r.height },\n opacity: 1,\n hostSize: null,\n push: null,\n };\n }\n\n /** The container fully closed: moved out by its size toward the side, or transparent inline. */\n protected closedFrame(ctx: SplitModeContext, open: SplitAnimationFrame): SplitAnimationFrame {\n if (this.layout === 'inline') return { ...open, opacity: 0 };\n return { ...open, rect: offsetRect(open.rect, ctx.side) };\n }\n}\n\n/** Moves a rectangle out by its own size toward a side. */\nexport function offsetRect(rect: SplitRect, side: SplitBodySide): SplitRect {\n switch (side) {\n case 'left':\n return { ...rect, x: rect.x - rect.width };\n case 'right':\n return { ...rect, x: rect.x + rect.width };\n case 'top':\n return { ...rect, y: rect.y - rect.height };\n case 'bottom':\n return { ...rect, y: rect.y + rect.height };\n }\n}\n\n/** `width` for left/right, `height` for top/bottom. */\nexport function axisOf(side: SplitBodySide): 'width' | 'height' {\n return side === 'left' || side === 'right' ? 'width' : 'height';\n}\n\n/** The panel fills its host (custom containers only). */\nexport class SplitInlineMode extends SplitContainerMode {\n readonly layout = 'inline' as const;\n}\n\n/**\n * The panel floats over the content. Body containers: fixed at a window edge. Custom\n * containers: the host becomes an anchor without size on the side axis and the panel is\n * placed against its `side` edge, over the neighbors.\n */\nexport class SplitOverlayMode extends SplitContainerMode {\n readonly layout = 'overlay' as const;\n}\n\n/**\n * The panel takes space and pushes the content. Body containers: adds the size to the\n * padding of the push target (`document.body` by default) and sets\n * `--split-body-offset-<side>` on `<html>`. Custom containers: the host grows from 0 to the\n * size (or its natural size) on the side axis.\n */\nexport class SplitPushMode extends SplitContainerMode {\n readonly layout = 'push' as const;\n\n override open(ctx: SplitModeContext): void {\n const { elements, side, styles, document } = ctx;\n if (ctx.kind === 'body') {\n const target = elements.pushTarget ?? document.body;\n const property = `padding-${side}`;\n const base = computed(target, property) || '0px';\n const size = ctx.size ?? '0px';\n ctx.data['pushFrom'] = base;\n styles.set(target, property, `calc(${base} + ${size})`);\n styles.set(document.documentElement, `--split-body-offset-${side}`, size);\n return;\n }\n const { host, shell } = elements;\n const axis = axisOf(side);\n let size = ctx.size;\n if (!size) {\n // Natural size of the host: measured without the inline styles that collapse it.\n // Writes go through the stash writer (Renderer2 in Angular).\n const { writer } = styles;\n const saved = [axis, `min-${axis}`, 'flex'].map((prop) => ({\n prop,\n value: host.style.getPropertyValue(prop),\n priority: host.style.getPropertyPriority(prop),\n }));\n for (const { prop } of saved) writer.removeStyle(host, prop);\n const r = host.getBoundingClientRect();\n for (const { prop, value, priority } of saved) {\n if (value) writer.setStyle(host, prop, value, priority);\n }\n size = `${axis === 'width' ? r.width : r.height}px`;\n }\n ctx.data['hostSize'] = size;\n styles.set(host, axis, size);\n styles.set(shell, '--split-size', size);\n }\n\n protected override openFrame(ctx: SplitModeContext): SplitAnimationFrame {\n const frame = super.openFrame(ctx);\n if (ctx.kind === 'body') {\n const target = ctx.elements.pushTarget ?? ctx.document.body;\n const property = `padding-${ctx.side}`;\n const value = computed(target, property) || target.style.getPropertyValue(property);\n return { ...frame, push: value || null };\n }\n return { ...frame, hostSize: (ctx.data['hostSize'] as string | undefined) ?? null };\n }\n\n protected override closedFrame(\n ctx: SplitModeContext,\n open: SplitAnimationFrame,\n ): SplitAnimationFrame {\n const frame = super.closedFrame(ctx, open);\n if (ctx.kind === 'body') {\n return { ...frame, push: (ctx.data['pushFrom'] as string | undefined) ?? '0px' };\n }\n return { ...frame, hostSize: '0px' };\n }\n}\n\nfunction computed(el: HTMLElement, property: string): string {\n const view = el.ownerDocument.defaultView;\n return view ? view.getComputedStyle(el).getPropertyValue(property).trim() : '';\n}\n\n/** Hooks of a mode given as an object. */\nexport interface SplitModeHooks {\n /** After the layout of the base mode is applied. */\n onOpen?(ctx: SplitModeContext): void;\n /** Before the layout of the base mode is removed. */\n onClose?(ctx: SplitModeContext): void;\n onShown?(ctx: SplitModeContext): void;\n onHidden?(ctx: SplitModeContext): void;\n}\n\n/**\n * A mode given as an object. Without `extends`, it builds on the built-in mode of its\n * `layout` (default: inline for custom containers, overlay for body containers).\n */\nexport interface SplitModeDefinition extends SplitModeSettings, SplitModeHooks {\n /** Mode to build on: a name, a definition, a class, an instance or a function. */\n extends?: SplitModeInput;\n layout?: SplitContainerLayout;\n}\n\n/** A function that picks the mode of a container. */\nexport type SplitModeFn = (ctx: SplitModeResolveContext) => SplitModeInput;\n\n/**\n * What the `mode` option accepts: a built-in layout or a registered name, an object, a\n * class (created with DI), an instance, or a function.\n */\nexport type SplitModeInput =\n | SplitContainerLayout\n | (string & {})\n | SplitModeDefinition\n | SplitContainerMode\n | Type<SplitContainerMode>\n | SplitModeFn;\n\n/** Mode built from a `SplitModeDefinition` over a base mode. */\nexport class SplitDefinedMode extends SplitContainerMode {\n constructor(\n /** Mode whose settings are inherited. */\n readonly base: SplitContainerMode,\n /** Mode whose layout behavior is used (the base, or the built-in of `definition.layout`). */\n readonly delegate: SplitContainerMode,\n readonly definition: SplitModeDefinition,\n ) {\n super();\n }\n\n get layout(): SplitContainerLayout {\n return this.delegate.layout;\n }\n\n override settings(): SplitModeSettings {\n return mergeModeSettings(this.base.settings(), pickModeSettings(this.definition));\n }\n\n override open(ctx: SplitModeContext): void {\n this.delegate.open(ctx);\n this.definition.onOpen?.(ctx);\n }\n\n override close(ctx: SplitModeContext): void {\n this.definition.onClose?.(ctx);\n this.delegate.close(ctx);\n }\n\n override shown(ctx: SplitModeContext): void {\n this.delegate.shown(ctx);\n this.definition.onShown?.(ctx);\n }\n\n override hidden(ctx: SplitModeContext): void {\n this.delegate.hidden(ctx);\n this.definition.onHidden?.(ctx);\n }\n\n override frames(ctx: SplitModeContext, phase: 'show' | 'hide') {\n return this.delegate.frames(ctx, phase);\n }\n}\n\nconst SETTING_KEYS = [\n 'side',\n 'size',\n 'pushTarget',\n 'animation',\n 'hostClass',\n 'panelClass',\n 'backdropClass',\n] as const;\n\n/** Only the settings of an object (mode definition or container options). */\nexport function pickModeSettings(source: object | null | undefined): SplitModeSettings {\n const result: Record<string, unknown> = {};\n if (!source) return result;\n for (const key of SETTING_KEYS) {\n const value = (source as Record<string, unknown>)[key];\n if (value !== undefined) result[key] = value;\n }\n return result as SplitModeSettings;\n}\n\n/**\n * Merges settings, later layers first: scalars are replaced, classes are added and\n * animation options are merged key by key.\n */\nexport function mergeModeSettings(...layers: SplitModeSettings[]): SplitModeSettings {\n const result: SplitModeSettings = {};\n for (const layer of layers) {\n if (layer.side !== undefined) result.side = layer.side;\n if (layer.size !== undefined) result.size = layer.size;\n if (layer.pushTarget !== undefined) result.pushTarget = layer.pushTarget;\n for (const key of ['hostClass', 'panelClass', 'backdropClass'] as const) {\n const value = layer[key];\n if (value === undefined) continue;\n const previous = result[key];\n const list = (v: SplitClassInput | undefined) =>\n v === undefined ? [] : typeof v === 'string' ? [v] : [...v];\n result[key] = [...list(previous), ...list(value)];\n }\n if (layer.animation !== undefined) {\n result.animation = mergeAnimation(\n result.animation as CoreAnimationInput<HTMLElement> | undefined,\n layer.animation as CoreAnimationInput<HTMLElement>,\n ) as SplitAnimationOptions;\n }\n }\n return result;\n}\n","import { EnvironmentInjector, Injectable, Injector, inject, type Type } from '@angular/core';\nimport {\n SPLIT_CONTAINER_LAYOUTS,\n SplitInvalidOptionError,\n defaultAnimationPreset,\n normalizeAnimation,\n toClassList,\n type ContainerState,\n type SplitAnimationInput as CoreAnimationInput,\n type SplitAnimationSettings,\n type SplitBodySide,\n type SplitContainerLayout,\n} from '@split-window/core';\nimport type { SplitAnimationEngineInput } from '../animation/animation-engine';\nimport { SPLIT_CONTAINER_DEFAULTS, SPLIT_WINDOW_CONFIG, SPLIT_WINDOW_MODES } from '../tokens';\nimport type { SplitContainerDefaults } from '../types';\nimport {\n SplitContainerMode,\n SplitDefinedMode,\n SplitInlineMode,\n SplitOverlayMode,\n SplitPushMode,\n mergeModeSettings,\n pickModeSettings,\n type SplitModeDefinition,\n type SplitModeInput,\n type SplitModeResolveContext,\n} from './container-mode';\n\n/** Everything the engine needs to render a container in its mode. */\nexport interface SplitResolvedMode {\n readonly mode: SplitContainerMode;\n readonly kind: 'custom' | 'body';\n readonly layout: SplitContainerLayout;\n readonly side: SplitBodySide;\n readonly size: string | null;\n readonly pushTarget: HTMLElement | string | null;\n readonly hostClass: string[];\n readonly panelClass: string[];\n readonly backdropClass: string[];\n /** Whether the container animates its transitions. */\n readonly animated: boolean;\n /**\n * Chosen animation engine (a name, an instance, a class or a function), or `undefined`\n * for the first registered one. Resolved by `SplitAnimationEngineRegistry` on each\n * transition, so engines registered later count.\n */\n readonly engine: SplitAnimationEngineInput | undefined;\n readonly animation: SplitAnimationSettings;\n}\n\nconst isLayout = (value: unknown): value is SplitContainerLayout =>\n (SPLIT_CONTAINER_LAYOUTS as readonly unknown[]).includes(value);\n\n/**\n * @internal Resolves modes and animations: built-in layouts, registered names, objects,\n * classes (created with DI), instances and functions, merged with the global defaults.\n * The animation engine is only chosen here; `SplitAnimationEngineRegistry` resolves it.\n */\n@Injectable()\nexport class SplitModeResolver {\n private readonly injector = inject(EnvironmentInjector);\n private readonly config = inject(SPLIT_WINDOW_CONFIG);\n private readonly defaults = inject(SPLIT_CONTAINER_DEFAULTS);\n private readonly named = new Map<string, SplitModeInput>(\n (inject(SPLIT_WINDOW_MODES, { optional: true }) ?? []).flatMap((record) =>\n Object.entries(record),\n ),\n );\n private readonly instances = new Map<Type<unknown>, unknown>();\n private readonly builtins: Record<SplitContainerLayout, SplitContainerMode> = {\n inline: new SplitInlineMode(),\n push: new SplitPushMode(),\n overlay: new SplitOverlayMode(),\n };\n\n /** Names that `mode` accepts. */\n modeNames(): string[] {\n return [...SPLIT_CONTAINER_LAYOUTS, ...this.named.keys()];\n }\n\n /**\n * Early check of a container's mode, done on registration: unknown names and `inline`\n * on the body. Functions are only checked when they run.\n */\n validate(mode: unknown, kind: 'custom' | 'body', option: string): void {\n if (mode === undefined) return;\n if (typeof mode === 'string') {\n if (!isLayout(mode) && !this.named.has(mode)) this.unknown(option, mode);\n if (kind === 'body' && mode === 'inline') this.inlineOnBody(option);\n } else if (typeof mode === 'object' && mode !== null && !(mode instanceof SplitContainerMode)) {\n const layout = (mode as SplitModeDefinition).layout;\n if (layout !== undefined && !isLayout(layout)) {\n throw new SplitInvalidOptionError(\n `${option}.layout`,\n layout,\n SPLIT_CONTAINER_LAYOUTS.join(' | '),\n );\n }\n if (kind === 'body' && layout === 'inline') this.inlineOnBody(option);\n }\n }\n\n /** Resolves the mode, settings and animation of a container. */\n resolve(container: ContainerState<HTMLElement>): SplitResolvedMode {\n const options = container.options as Record<string, unknown>;\n const kind = container.kind;\n const ctx: SplitModeResolveContext = {\n key: container.key,\n kind,\n side: container.side,\n options,\n };\n const defaults: SplitContainerDefaults = mergeDefaults(this.defaults, this.defaults[kind]);\n const input =\n (options['mode'] as SplitModeInput | undefined) ??\n defaults.mode ??\n (kind === 'body' ? 'overlay' : 'inline');\n const mode = this.resolveMode(input, ctx, new Set());\n const layout = mode.layout;\n if (kind === 'body' && layout === 'inline') this.inlineOnBody(`${container.key}.mode`);\n const settings = mergeModeSettings(\n pickModeSettings(defaults),\n mode.settings(),\n pickModeSettings(options),\n );\n const side: SplitBodySide = kind === 'body' ? container.side! : (settings.side ?? 'right');\n let size: string | null = settings.size ?? null;\n if (kind === 'body' || layout === 'overlay') size ??= this.config.bodySize;\n if (layout === 'inline' && kind === 'custom') size = null;\n const animation = normalizeAnimation(\n settings.animation as CoreAnimationInput<HTMLElement> | undefined,\n );\n const settingsOut: SplitAnimationSettings = {\n preset: animation.preset ?? defaultAnimationPreset(layout, kind),\n duration: animation.duration,\n easing: animation.easing,\n delay: animation.delay,\n respectReducedMotion: animation.respectReducedMotion ?? true,\n };\n return {\n mode,\n kind,\n layout,\n side,\n size,\n pushTarget: settings.pushTarget ?? null,\n hostClass: toClassList(settings.hostClass),\n panelClass: toClassList(settings.panelClass),\n backdropClass: toClassList(settings.backdropClass),\n animated: animation.enabled === true,\n engine: animation.engine as SplitAnimationEngineInput | undefined,\n animation: settingsOut,\n };\n }\n\n /** Resolves any mode input to an instance. */\n resolveMode(\n input: SplitModeInput,\n ctx: SplitModeResolveContext,\n seen: Set<unknown>,\n ): SplitContainerMode {\n if (seen.has(input)) {\n throw new SplitInvalidOptionError('mode', input, 'um modo sem referência circular');\n }\n seen.add(input);\n if (typeof input === 'string') {\n if (isLayout(input)) return this.builtins[input]; // built-in names cannot be replaced\n const named = this.named.get(input);\n if (named === undefined) this.unknown('mode', input);\n return this.resolveMode(named, ctx, seen);\n }\n if (input instanceof SplitContainerMode) return input;\n if (typeof input === 'function') {\n if (input.prototype instanceof SplitContainerMode) {\n return this.instantiate(input as Type<SplitContainerMode>);\n }\n return this.resolveMode(\n (input as (c: SplitModeResolveContext) => SplitModeInput)(ctx),\n ctx,\n seen,\n );\n }\n if (typeof input === 'object' && input !== null) {\n const definition = input as SplitModeDefinition;\n if (definition.layout !== undefined && !isLayout(definition.layout)) {\n throw new SplitInvalidOptionError(\n 'mode.layout',\n definition.layout,\n SPLIT_CONTAINER_LAYOUTS.join(' | '),\n );\n }\n const base =\n definition.extends !== undefined\n ? this.resolveMode(definition.extends, ctx, seen)\n : this.builtins[definition.layout ?? (ctx.kind === 'body' ? 'overlay' : 'inline')];\n const delegate =\n definition.layout && definition.layout !== base.layout\n ? this.builtins[definition.layout]\n : base;\n return new SplitDefinedMode(base, delegate, definition);\n }\n throw new SplitInvalidOptionError('mode', input, 'nome de modo, objeto, classe ou função');\n }\n\n /** Creates (once) a class with dependency injection. */\n instantiate<T>(type: Type<T>): T {\n let instance = this.instances.get(type) as T | undefined;\n if (!instance) {\n instance = Injector.create({\n providers: [{ provide: type, useClass: type }],\n parent: this.injector,\n }).get(type);\n this.instances.set(type, instance);\n }\n return instance;\n }\n\n private unknown(option: string, name: string): never {\n throw new SplitInvalidOptionError(option, name, this.modeNames().join(' | '));\n }\n\n private inlineOnBody(option: string): never {\n throw new SplitInvalidOptionError(\n option,\n 'inline',\n \"'push' ou 'overlay' (inline não vale no body)\",\n );\n }\n}\n\nfunction mergeDefaults(\n base: SplitContainerDefaults,\n own: SplitContainerDefaults | undefined,\n): SplitContainerDefaults {\n if (!own) return base;\n const merged = mergeModeSettings(pickModeSettings(base), pickModeSettings(own));\n return { ...merged, mode: own.mode ?? base.mode };\n}\n","/**\n * Global styles of SplitWindow. Every color, size and layer is a CSS custom property, so an\n * application can theme the library without overriding selectors.\n */\nexport const SPLIT_WINDOW_STYLES = `\n/* Zero specificity: an app ':root' (or any selector) wins regardless of stylesheet order. */\n:where(:root) {\n --split-bg: #ffffff;\n --split-fg: #1f2328;\n --split-muted-fg: #59636e;\n --split-border: #d1d9e0;\n --split-strip-bg: #f6f8fa;\n --split-tab-bg: transparent;\n --split-tab-hover-bg: #eaeef2;\n --split-tab-active-bg: #ffffff;\n --split-tab-active-indicator: #0969da;\n --split-focus-ring: #0969da;\n --split-drop-highlight: #0969da;\n --split-drop-zone-bg: rgba(9, 105, 218, 0.08);\n --split-backdrop-bg: rgba(0, 0, 0, 0.32);\n --split-radius: 6px;\n --split-tab-height: 36px;\n --split-tab-max-width: 220px;\n --split-font: inherit;\n --split-body-z-index: 1040;\n --split-expanded-z-index: 1050;\n --split-drop-zone-z-index: 1060;\n --split-drag-preview-z-index: 1070;\n --split-overlay-z-index: 1030;\n --split-shadow: 0 8px 24px rgba(31, 35, 40, 0.18);\n}\n\nsplit-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n box-sizing: border-box;\n background: var(--split-bg);\n color: var(--split-fg);\n font: var(--split-font);\n border: 1px solid var(--split-border);\n border-radius: var(--split-radius);\n overflow: hidden;\n outline: none;\n}\nsplit-container[hidden] { display: none; }\nsplit-container.split-container--expanded {\n z-index: var(--split-expanded-z-index);\n box-shadow: var(--split-shadow);\n}\n\n.split-strip-row {\n display: flex;\n align-items: stretch;\n background: var(--split-strip-bg);\n border-bottom: 1px solid var(--split-border);\n min-height: var(--split-tab-height);\n}\n.split-strip {\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n.split-tab {\n display: flex;\n align-items: center;\n gap: 4px;\n max-width: var(--split-tab-max-width);\n padding: 0 4px 0 0;\n background: var(--split-tab-bg);\n border-right: 1px solid var(--split-border);\n color: var(--split-muted-fg);\n cursor: pointer;\n user-select: none;\n box-sizing: border-box;\n height: var(--split-tab-height);\n position: relative;\n}\n.split-tab:hover { background: var(--split-tab-hover-bg); }\n.split-tab__label:focus-visible { outline: 2px solid var(--split-focus-ring); outline-offset: -2px; border-radius: 4px; }\n.split-tab--active {\n background: var(--split-tab-active-bg);\n color: var(--split-fg);\n box-shadow: inset 0 -2px 0 var(--split-tab-active-indicator);\n}\n.split-tab__label {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 8px 0 12px;\n line-height: var(--split-tab-height);\n}\n.split-icon-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n flex: none;\n}\n.split-icon-button:hover:not(:disabled) { background: var(--split-tab-hover-bg); color: var(--split-fg); }\n.split-icon-button:focus-visible { outline: 2px solid var(--split-focus-ring); }\n.split-icon-button:disabled { opacity: 0.4; cursor: default; }\n.split-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 0 6px;\n border-left: 1px solid var(--split-border);\n color: var(--split-muted-fg);\n}\n.split-content {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n}\n.split-content:empty::before {\n content: attr(data-empty-label);\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--split-muted-fg);\n}\n.split-content .cdk-drag-placeholder { display: none; }\n.split-tab-panel { height: 100%; box-sizing: border-box; }\n.split-tab-panel[hidden] { display: none; }\n\n/* Drag and drop */\n.split-strip.cdk-drop-list-dragging .split-tab:not(.cdk-drag-placeholder) {\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);\n}\n.split-tab.cdk-drag-placeholder { opacity: 0.35; }\n.split-tab.cdk-drag-animating { transition: transform 200ms cubic-bezier(0, 0, 0.2, 1); }\n.split-drag-preview {\n z-index: var(--split-drag-preview-z-index) !important;\n background: var(--split-tab-active-bg);\n color: var(--split-fg);\n border: 1px solid var(--split-border);\n border-radius: var(--split-radius);\n box-shadow: var(--split-shadow);\n font: var(--split-font);\n}\nsplit-container.split-drop-target {\n outline: 2px solid var(--split-drop-highlight);\n outline-offset: -2px;\n}\n\n/* Body containers */\n.split-body-host {\n position: fixed;\n z-index: var(--split-body-z-index);\n box-sizing: border-box;\n --split-body-size: 420px;\n}\n.split-body-host[hidden] { display: none; }\n.split-body-host--left { top: 0; bottom: 0; left: 0; width: var(--split-body-size); }\n.split-body-host--right { top: 0; bottom: 0; right: 0; width: var(--split-body-size); }\n.split-body-host--top { top: 0; left: 0; right: 0; height: var(--split-body-size); }\n.split-body-host--bottom { bottom: 0; left: 0; right: 0; height: var(--split-body-size); }\n.split-body-host split-container { border-radius: 0; box-shadow: var(--split-shadow); }\n.split-body-backdrop {\n position: fixed;\n inset: 0;\n z-index: calc(var(--split-body-z-index) - 1);\n background: var(--split-backdrop-bg);\n}\n.split-body-backdrop[hidden] { display: none; }\n\n/* Floating drop zones of closed containers */\n.split-drop-zone {\n position: fixed;\n z-index: var(--split-drop-zone-z-index);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 8px;\n border: 2px dashed var(--split-drop-highlight);\n border-radius: var(--split-radius);\n background: var(--split-bg);\n background-image: linear-gradient(var(--split-drop-zone-bg), var(--split-drop-zone-bg));\n color: var(--split-fg);\n box-shadow: var(--split-shadow);\n font: var(--split-font);\n text-align: center;\n}\n.split-drop-zone.cdk-drop-list-dragging { border-style: solid; }\n.split-drop-zone .cdk-drag-placeholder { display: none; }\n\n.split-expand-layer { position: static; }\n\n/* Custom containers in push/overlay: the engine sets --split-inset/-w/-h per side. */\nsplit-container.split-container--custom:not(.split-layout--inline) {\n position: absolute;\n inset: var(--split-inset);\n width: var(--split-w);\n height: var(--split-h);\n}\nsplit-container.split-container--custom.split-layout--overlay {\n z-index: var(--split-overlay-z-index);\n box-shadow: var(--split-shadow);\n}\nsplit-container.split-container--leaving .split-content:empty::before { content: none; }\n\n@media (prefers-reduced-motion: reduce) {\n .split-strip.cdk-drop-list-dragging .split-tab, .split-tab.cdk-drag-animating { transition: none; }\n}\n`;\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Injector,\n ViewEncapsulation,\n afterNextRender,\n computed,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport {\n CdkDrag,\n CdkDragHandle,\n CdkDragPlaceholder,\n CdkDropList,\n type CdkDragDrop,\n} from '@angular/cdk/drag-drop';\nimport type { SplitContainerView, SplitTabView, SplitWindowRef } from '@split-window/core';\nimport { stripListId, type SplitDropListData } from '../engine/angular-split-engine';\nimport { SplitWindowController } from '../controller/split-window-controller';\nimport { AngularSplitEngine } from '../engine/angular-split-engine';\nimport { SPLIT_WINDOW_CONFIG } from '../tokens';\nimport { SPLIT_WINDOW_STYLES } from './split-styles';\n\n/** Tab strip of a container: tabs, close buttons, full screen and close all. */\n@Component({\n selector: 'split-tab-strip',\n imports: [CdkDropList, CdkDrag, CdkDragHandle, CdkDragPlaceholder],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [SPLIT_WINDOW_STYLES],\n host: { class: 'split-strip-row' },\n template: `\n <div\n class=\"split-strip\"\n role=\"tablist\"\n [attr.aria-label]=\"labels.tabList + ': ' + view().container.label\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n [id]=\"listId()\"\n [cdkDropListData]=\"listData()\"\n [cdkDropListEnterPredicate]=\"enterPredicate\"\n (cdkDropListDropped)=\"onDrop($event)\"\n >\n @for (tab of view().tabs; track tab.id) {\n <div\n class=\"split-tab\"\n cdkDrag\n [cdkDragData]=\"tab.ref\"\n cdkDragPreviewClass=\"split-drag-preview\"\n (cdkDragStarted)=\"onDragStarted(tab.ref)\"\n [attr.data-tab-id]=\"tab.id\"\n [class.split-tab--active]=\"tab.active\"\n >\n <div\n class=\"split-tab__label\"\n role=\"tab\"\n cdkDragHandle\n [id]=\"tab.id + '-tab'\"\n [attr.aria-selected]=\"tab.active\"\n [attr.aria-controls]=\"tab.id + '-panel'\"\n [attr.aria-keyshortcuts]=\"tab.closable ? 'Delete' : null\"\n [attr.tabindex]=\"tab.active ? 0 : -1\"\n [attr.title]=\"tab.label\"\n (click)=\"activate(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\"\n >\n {{ tab.label }}\n </div>\n @if (tab.closable) {\n <!-- Not a nested control of the tab: hidden from assistive technology, which closes with Delete. -->\n <button\n type=\"button\"\n class=\"split-icon-button split-tab__close\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n [attr.title]=\"labels.closeTab + ': ' + tab.label\"\n (pointerdown)=\"$event.stopPropagation()\"\n (mousedown)=\"$event.stopPropagation()\"\n (click)=\"closeTab($event, tab)\"\n >\n ×\n </button>\n }\n <div *cdkDragPlaceholder class=\"split-tab cdk-drag-placeholder\">\n <span class=\"split-tab__label\">{{ tab.label }}</span>\n </div>\n </div>\n }\n </div>\n <div class=\"split-actions\">\n @if (view().canExpand) {\n <button\n type=\"button\"\n class=\"split-icon-button split-expand-button\"\n [attr.aria-label]=\"expanded() ? labels.restore : labels.expand\"\n [attr.aria-pressed]=\"expanded()\"\n [attr.title]=\"expanded() ? labels.restore : labels.expand\"\n [disabled]=\"view().dragging\"\n (click)=\"toggleExpand()\"\n >\n {{ expanded() ? '⤡' : '⤢' }}\n </button>\n }\n <button\n type=\"button\"\n class=\"split-icon-button split-close-all-button\"\n [attr.aria-label]=\"labels.closeAll\"\n [attr.title]=\"labels.closeAll\"\n [disabled]=\"view().closingAll || !hasClosableTabs()\"\n (click)=\"closeAll()\"\n >\n ⨯\n </button>\n </div>\n `,\n})\nexport class SplitTabStripComponent {\n private readonly controller = inject(SplitWindowController);\n private readonly engine = inject(AngularSplitEngine);\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n readonly labels = inject(SPLIT_WINDOW_CONFIG).labels;\n\n readonly view = input.required<SplitContainerView<HTMLElement>>();\n readonly dropList = viewChild.required(CdkDropList);\n\n readonly listId = computed(() => stripListId(this.view().key));\n readonly listData = computed<SplitDropListData>(() => ({ key: this.view().key, kind: 'strip' }));\n readonly expanded = computed(() => this.view().container.expanded);\n readonly hasClosableTabs = computed(() => this.view().tabs.some((t) => t.closable));\n\n readonly enterPredicate = (drag: CdkDrag<SplitWindowRef>): boolean =>\n this.controller.canDrop(drag.data, this.view().key);\n\n activate(tab: SplitTabView): void {\n tab.ref.activate();\n }\n\n closeTab(event: Event, tab: SplitTabView): void {\n event.stopPropagation();\n void this.controller.requestTabClose(tab.ref);\n }\n\n toggleExpand(): void {\n const { controller } = this;\n const key = this.view().key;\n if (controller.isContainerExpanded(key)) controller.restoreContainer(key);\n else controller.expandContainer(key);\n }\n\n closeAll(): void {\n void this.controller.dismissAll({ containerKey: this.view().key, reason: 'close-all' });\n }\n\n onDragStarted(ref: SplitWindowRef): void {\n this.engine.startDrag(ref, this.dropList());\n }\n\n onDrop(event: CdkDragDrop<SplitDropListData, SplitDropListData, SplitWindowRef>): void {\n this.engine.handleDrop(event);\n }\n\n /**\n * WAI-ARIA tabs pattern with automatic activation: arrows, Home and End move between\n * tabs; Delete closes; Ctrl+Shift+arrows reorder.\n */\n onTabKeydown(event: KeyboardEvent, tab: SplitTabView): void {\n const tabs = this.view().tabs;\n const index = tabs.findIndex((t) => t.id === tab.id);\n let target: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowLeft': {\n const step = event.key === 'ArrowRight' ? 1 : -1;\n if (event.ctrlKey && event.shiftKey) {\n tab.ref.moveTo(this.view().key, Math.max(0, index + step));\n this.focusTab(tab.id);\n event.preventDefault();\n return;\n }\n target = (index + step + tabs.length) % tabs.length;\n break;\n }\n case 'Home':\n target = 0;\n break;\n case 'End':\n target = tabs.length - 1;\n break;\n case 'Delete':\n if (tab.closable) void this.controller.requestTabClose(tab.ref);\n event.preventDefault();\n return;\n case 'Enter':\n case ' ':\n tab.ref.activate();\n event.preventDefault();\n return;\n default:\n return;\n }\n event.preventDefault();\n const next = tabs[target];\n if (next) {\n next.ref.activate();\n this.focusTab(next.id);\n }\n }\n\n /** Focuses a tab after the strip re-renders (a reorder moves the element and drops focus). */\n private focusTab(id: string): void {\n const focus = () =>\n (\n this.element.nativeElement.querySelector(\n `[data-tab-id=\"${id}\"] [role=\"tab\"]`,\n ) as HTMLElement | null\n )?.focus();\n focus();\n afterNextRender(focus, { injector: this.injector });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n viewChild,\n type OnInit,\n} from '@angular/core';\nimport { CdkDropList, type CdkDrag, type CdkDragDrop } from '@angular/cdk/drag-drop';\nimport { filter } from 'rxjs';\nimport type { SplitContainerView, SplitWindowRef } from '@split-window/core';\nimport { contentListId, type SplitDropListData } from '../engine/angular-split-engine';\nimport { SplitWindowController } from '../controller/split-window-controller';\nimport { AngularSplitEngine } from '../engine/angular-split-engine';\nimport { SPLIT_WINDOW_CONFIG } from '../tokens';\nimport { SplitTabStripComponent } from './split-tab-strip.component';\nimport { SPLIT_WINDOW_STYLES } from './split-styles';\n\n/**\n * Visual shell of a container: tab strip and content area. Created by the engine in\n * `mountContainer`; tab panels are appended to the content area by the engine.\n */\n@Component({\n selector: 'split-container',\n imports: [SplitTabStripComponent, CdkDropList],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [SPLIT_WINDOW_STYLES],\n host: {\n tabindex: '-1',\n '[attr.data-container-key]': 'containerKey()',\n '[class.split-container--empty]': '!view()?.tabs?.length',\n '[class.split-drop-target]': 'highlight()',\n '(keydown)': 'onKeydown($event)',\n },\n template: `\n @if (view(); as v) {\n <split-tab-strip [view]=\"v\" />\n <div\n #content\n class=\"split-content\"\n cdkDropList\n cdkDropListSortingDisabled\n [id]=\"contentId()\"\n [cdkDropListData]=\"contentData()\"\n [cdkDropListEnterPredicate]=\"enterPredicate\"\n (cdkDropListDropped)=\"onDrop($event)\"\n (cdkDropListEntered)=\"highlight.set(true)\"\n (cdkDropListExited)=\"highlight.set(false)\"\n [attr.data-empty-label]=\"emptyLabel\"\n ></div>\n }\n `,\n})\nexport class SplitContainerComponent implements OnInit {\n private readonly controller = inject(SplitWindowController);\n private readonly engine = inject(AngularSplitEngine);\n private readonly destroyRef = inject(DestroyRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly containerKey = input.required<string>();\n readonly view = signal<SplitContainerView<HTMLElement> | null>(null);\n readonly highlight = signal(false);\n readonly emptyLabel = inject(SPLIT_WINDOW_CONFIG).labels.emptyContainer;\n private readonly content = viewChild<ElementRef<HTMLElement>>('content');\n private frozen = false;\n\n readonly contentId = computed(() => contentListId(this.containerKey()));\n readonly contentData = computed<SplitDropListData>(() => ({\n key: this.containerKey(),\n kind: 'content',\n }));\n\n readonly enterPredicate = (drag: CdkDrag<SplitWindowRef>): boolean =>\n drag.data.containerKey !== this.containerKey() &&\n this.controller.canDrop(drag.data, this.containerKey());\n\n ngOnInit(): void {\n const key = this.containerKey();\n const { controller, engine } = this;\n this.refresh();\n const subscription = controller.changes.pipe(filter((k) => k === key)).subscribe(() => {\n if (!this.frozen) this.refresh();\n const container = controller.registry._get(key);\n if (container) engine.applyContainerOptions(container);\n });\n this.destroyRef.onDestroy(() => subscription.unsubscribe());\n }\n\n /** Element that receives the tab panels. */\n contentElement(): HTMLElement | null {\n return this.content()?.nativeElement ?? null;\n }\n\n onDrop(event: CdkDragDrop<SplitDropListData, SplitDropListData, SplitWindowRef>): void {\n this.highlight.set(false);\n this.engine.handleDrop(event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n const view = this.view();\n const expand = view?.container.options.expand;\n if (!view?.container.expanded || (expand && expand.restoreOnEscape === false)) return;\n event.preventDefault();\n this.controller.restoreContainer(view.key);\n this.host.nativeElement.focus({ preventScroll: true });\n }\n\n /**\n * Stops following the container state, keeping what is on screen (used while the\n * container animates out, so its last tab does not disappear first).\n */\n freeze(): void {\n this.frozen = true;\n }\n\n /** Follows the container state again. */\n unfreeze(): void {\n if (!this.frozen) return;\n this.frozen = false;\n this.refresh();\n }\n\n private refresh(): void {\n this.view.set(this.controller.getContainerView(this.containerKey()));\n }\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, inject } from '@angular/core';\nimport { CdkDropList, type CdkDrag, type CdkDragDrop } from '@angular/cdk/drag-drop';\nimport type { SplitRect, SplitWindowRef } from '@split-window/core';\nimport { SplitWindowController } from '../controller/split-window-controller';\nimport {\n AngularSplitEngine,\n floatListId,\n type SplitDropListData,\n} from '../engine/angular-split-engine';\nimport { SPLIT_WINDOW_STYLES } from './split-styles';\n\n/** A floating drop zone of a closed container. */\nexport interface SplitFloatingZone {\n key: string;\n label: string;\n rect: SplitRect;\n}\n\n/**\n * Layer in the body with the floating drop zones of closed containers, shown during a drag.\n * The engine renders it synchronously in `cdkDragStarted`, before the CDK measures lists.\n */\n@Component({\n selector: 'split-drop-zone-layer',\n imports: [CdkDropList],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [SPLIT_WINDOW_STYLES],\n template: `\n @for (zone of zones(); track zone.key) {\n <div\n class=\"split-drop-zone\"\n cdkDropList\n cdkDropListSortingDisabled\n [id]=\"id(zone.key)\"\n [cdkDropListData]=\"data(zone.key)\"\n [cdkDropListEnterPredicate]=\"predicate(zone.key)\"\n (cdkDropListDropped)=\"onDrop($event)\"\n [attr.data-container-key]=\"zone.key\"\n [style.left.px]=\"zone.rect.x\"\n [style.top.px]=\"zone.rect.y\"\n [style.width.px]=\"zone.rect.width\"\n [style.height.px]=\"zone.rect.height\"\n >\n <span class=\"split-drop-zone__label\">{{ zone.label }}</span>\n </div>\n }\n `,\n})\nexport class SplitDropZoneLayerComponent {\n private readonly controller = inject(SplitWindowController);\n private readonly engine = inject(AngularSplitEngine);\n readonly zones = this.engine.floatingZones;\n private readonly predicates = new Map<string, (drag: CdkDrag<SplitWindowRef>) => boolean>();\n\n private readonly dataCache = new Map<string, SplitDropListData>();\n\n id(key: string): string {\n return floatListId(key);\n }\n\n data(key: string): SplitDropListData {\n let data = this.dataCache.get(key);\n if (!data) {\n data = { key, kind: 'float' };\n this.dataCache.set(key, data);\n }\n return data;\n }\n\n predicate(key: string): (drag: CdkDrag<SplitWindowRef>) => boolean {\n let fn = this.predicates.get(key);\n if (!fn) {\n fn = (drag) => this.controller.canDrop(drag.data, key);\n this.predicates.set(key, fn);\n }\n return fn;\n }\n\n onDrop(event: CdkDragDrop<SplitDropListData, SplitDropListData, SplitWindowRef>): void {\n this.engine.handleDrop(event);\n }\n}\n","import { RendererStyleFlags2, type Renderer2 } from '@angular/core';\nimport type { SplitDomWriter } from '@split-window/core';\n\n/**\n * A `SplitDomWriter` that writes through `Renderer2`, so the styles, classes and attributes\n * of the modes (and of `SplitStyleStash`) go through Angular's renderer.\n */\nexport function rendererDomWriter(renderer: Renderer2): SplitDomWriter {\n return {\n setStyle: (el, property, value, priority) =>\n renderer.setStyle(\n el,\n property,\n value,\n // DashCase: dash-case names and custom properties (`--split-size`).\n RendererStyleFlags2.DashCase |\n (priority === 'important' ? RendererStyleFlags2.Important : 0),\n ),\n removeStyle: (el, property) => renderer.removeStyle(el, property, RendererStyleFlags2.DashCase),\n addClass: (el, name) => renderer.addClass(el, name),\n removeClass: (el, name) => renderer.removeClass(el, name),\n setAttribute: (el, name, value) => renderer.setAttribute(el, name, value),\n removeAttribute: (el, name) => renderer.removeAttribute(el, name),\n };\n}\n","import {\n ApplicationRef,\n ChangeDetectorRef,\n DOCUMENT,\n EnvironmentInjector,\n Injectable,\n Injector,\n PLATFORM_ID,\n RendererFactory2,\n RendererStyleFlags2,\n TemplateRef,\n createComponent,\n inject,\n reflectComponentType,\n signal,\n type ComponentRef,\n type EmbeddedViewRef,\n type Renderer2,\n type Type,\n type ViewRef,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport type { CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';\nimport {\n BaseSplitWindowEngine,\n computeClosedDropZoneRect,\n computeExpandedRect,\n rectsMatch,\n resolveLength,\n SplitStyleStash,\n type ContainerState,\n type SplitAnimationEngine,\n type SplitRect,\n type SplitTransitionPlan,\n type SplitWindowRef,\n type TabState,\n} from '@split-window/core';\nimport { SplitActiveWindow } from '../active-window/split-active-window';\nimport { SplitAnimationEngineRegistry } from '../animation/split-animation-engine-registry';\nimport type { SplitContainerElements } from '../animation/animation-engine';\nimport { axisOf, type SplitModeContext } from '../modes/container-mode';\nimport { SplitModeResolver, type SplitResolvedMode } from '../modes/mode-resolver';\nimport { SplitContainerComponent } from '../shell/split-container.component';\nimport {\n SplitDropZoneLayerComponent,\n type SplitFloatingZone,\n} from '../shell/split-drop-zone-layer.component';\nimport { SPLIT_WINDOW_CONFIG } from '../tokens';\nimport { rendererDomWriter } from './renderer-dom-writer';\nimport type { SplitAngularTabOptions, SplitContent, SplitTemplateContext } from '../types';\n\n/** Data attached to every CDK drop list of the library. */\nexport interface SplitDropListData {\n key: string;\n kind: 'strip' | 'content' | 'float';\n}\n\n/** A rendered tab. */\nexport interface AngularTabHandle {\n ref: SplitWindowRef;\n panel: HTMLElement;\n /** Root view attached to the `ApplicationRef` for the whole life of the tab. */\n view: ViewRef | null;\n componentRef: ComponentRef<unknown> | null;\n /**\n * Change detector switched off while the tab is inactive. For components it is the\n * component's own view: `ApplicationRef.detachView()` would also remove the nodes from the\n * DOM, and the app tick ignores the attached flag of root views.\n */\n cd: ChangeDetectorRef | null;\n active: SplitActiveWindow;\n /** Container the panel is in. */\n containerKey: string | null;\n}\n\n/** Mode of a container and the static classes and styles it put on the elements. */\nexport interface SplitContainerDisplay {\n resolved: SplitResolvedMode;\n /** `container.options` the mode was resolved from: a new object means a reconfiguration. */\n options: object;\n /** Classes and styles of the mode, kept while the container exists. */\n stash: SplitStyleStash;\n}\n\n/** A mounted container. */\nexport interface SplitShellEntry {\n componentRef: ComponentRef<SplitContainerComponent>;\n /** The `split-container` element. */\n shell: HTMLElement;\n /** Element that holds the shell when not expanded (the app host or the body host). */\n home: HTMLElement;\n bodyHost: HTMLElement | null;\n backdrop: HTMLElement | null;\n expandCleanup: (() => void) | null;\n display: SplitContainerDisplay;\n /** Open layout of the mode, undone after the container hides. */\n layout: SplitStyleStash;\n /** Context of the applied open layout; `null` while closed. */\n modeCtx: SplitModeContext | null;\n}\n\nconst hasMoveBefore =\n typeof Element !== 'undefined' && typeof (Element.prototype as any).moveBefore === 'function';\n\n/**\n * Moves a node keeping its state where the browser supports `moveBefore()` (iframes do not\n * reload, videos keep playing, focus is kept). Falls back to `insertBefore`, through the\n * renderer when one is given (`Renderer2` has no `moveBefore`).\n */\nexport function moveNode(\n parent: Element,\n node: Element,\n before: Node | null = null,\n renderer?: Renderer2,\n): void {\n if (node.parentNode === parent && node.nextSibling === before) return;\n if (hasMoveBefore && node.isConnected && parent.isConnected) {\n try {\n (parent as any).moveBefore(node, before);\n return;\n } catch {\n // different documents or a disconnected node: fall back\n }\n }\n if (renderer) renderer.insertBefore(parent, node, before);\n else parent.insertBefore(node, before);\n}\n\nfunction toRect(rect: DOMRect | SplitRect): SplitRect {\n return { x: rect.x, y: rect.y, width: rect.width, height: rect.height };\n}\n\n/** Position of a floating panel (custom push/overlay) inside its host: `inset` per side. */\nconst PANEL_INSET: Record<'push' | 'overlay', Record<string, string>> = {\n // overlay: against the side edge of the host\n overlay: { right: '0 0 0 auto', left: '0 auto 0 0', top: '0 0 auto 0', bottom: 'auto 0 0 0' },\n // push: against the content side, so the panel slides in as the host grows\n push: { right: '0 auto 0 0', left: '0 0 0 auto', top: 'auto 0 0 0', bottom: '0 0 auto 0' },\n};\n\n/**\n * The Angular engine: renders the shells with `createComponent`, moves tabs without\n * destroying them, applies full screen, the modes of the containers and, through\n * `BaseSplitWindowEngine`, their animated transitions. It never decides: it asks the core.\n * Every write to the DOM goes through `Renderer2` (also the styles of the modes, through a\n * renderer-backed `SplitStyleStash`); only reads, focus, `moveBefore` and the synthetic\n * events of `cancelDrag` use the DOM directly.\n *\n * Replace it with a subclass through dependency injection:\n *\n * ```ts\n * @Injectable()\n * class MyEngine extends AngularSplitEngine {\n * protected override enter(container: ContainerState<HTMLElement>) {\n * super.enter(container);\n * // ...\n * }\n * }\n * provideSplitWindows({ engine: MyEngine });\n * ```\n */\n@Injectable()\nexport class AngularSplitEngine extends BaseSplitWindowEngine<\n SplitContent,\n HTMLElement,\n SplitAngularTabOptions,\n HTMLElement\n> {\n protected readonly appRef = inject(ApplicationRef);\n protected readonly environmentInjector = inject(EnvironmentInjector);\n protected readonly document = inject(DOCUMENT);\n protected readonly resolver = inject(SplitModeResolver);\n protected readonly config = inject(SPLIT_WINDOW_CONFIG);\n /** Named animation engines, resolved on each transition. */\n protected readonly animationEngines = inject(SplitAnimationEngineRegistry);\n /** Renderer for every DOM write of the engine. */\n protected readonly renderer: Renderer2 = inject(RendererFactory2).createRenderer(null, null);\n /** Writer of the style stashes (modes included), backed by the renderer. */\n protected readonly domWriter = rendererDomWriter(this.renderer);\n readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n protected readonly shells = new Map<string, SplitShellEntry>();\n /** Modes of custom containers prepared on registration, before their first tab. */\n protected readonly prepared = new Map<string, SplitContainerDisplay>();\n private layerRef: ComponentRef<SplitDropZoneLayerComponent> | null = null;\n private expandLayer: HTMLElement | null = null;\n private readonly lastKnownRects = new WeakMap<HTMLElement, SplitRect>();\n private readonly hostObserver: ResizeObserver | null =\n this.isBrowser && typeof ResizeObserver !== 'undefined'\n ? new ResizeObserver((entries) =>\n entries.forEach((e) => this.remember(e.target as HTMLElement)),\n )\n : null;\n\n /** Floating drop zones shown during a drag. */\n readonly floatingZones = signal<SplitFloatingZone[]>([]);\n\n override disconnect(): void {\n for (const key of [...this.shells.keys()]) this.destroyShell(key);\n for (const display of this.prepared.values()) display.stash.restore();\n this.prepared.clear();\n this.layerRef?.destroy();\n this.layerRef = null;\n if (this.expandLayer) this.detach(this.expandLayer);\n this.hostObserver?.disconnect();\n super.disconnect();\n }\n\n // ------------------------------------------------------------ containers\n\n /**\n * Resolves the mode of a custom container on registration and styles its host, so a\n * `push`/`overlay` host is collapsed before the first tab.\n */\n prepareContainer(container: ContainerState<HTMLElement>): void {\n if (!this.isBrowser || container.kind !== 'custom' || !container.host) return;\n if (this.shells.has(container.key)) return;\n this.prepared.get(container.key)?.stash.restore();\n const display = this.createDisplay(container);\n this.prepared.set(container.key, display);\n this.applyStatic(display, { host: container.host, shell: null, backdrop: null });\n }\n\n /** Undoes `prepareContainer`. */\n releaseContainer(container: ContainerState<HTMLElement>): void {\n this.prepared.get(container.key)?.stash.restore();\n this.prepared.delete(container.key);\n }\n\n mountContainer(container: ContainerState<HTMLElement>): void {\n if (!this.isBrowser || this.shells.has(container.key)) return;\n const prepared = this.prepared.get(container.key);\n this.prepared.delete(container.key);\n let display: SplitContainerDisplay;\n if (prepared && prepared.options === container.options) {\n display = prepared;\n } else {\n prepared?.stash.restore();\n display = this.createDisplay(container);\n }\n let home: HTMLElement;\n let bodyHost: HTMLElement | null = null;\n if (container.kind === 'body') {\n bodyHost = this.createElement('div', 'split-body-host', `split-body-host--${container.side}`);\n this.setHidden(bodyHost, true);\n this.renderer.appendChild(this.document.body, bodyHost);\n home = bodyHost;\n } else {\n home = container.host!;\n this.remember(home);\n this.hostObserver?.observe(home);\n }\n const componentRef = createComponent(SplitContainerComponent, {\n environmentInjector: this.environmentInjector,\n });\n componentRef.setInput('containerKey', container.key);\n const shell = componentRef.location.nativeElement as HTMLElement;\n this.setHidden(shell, true);\n this.renderer.appendChild(home, shell);\n this.appRef.attachView(componentRef.hostView);\n componentRef.changeDetectorRef.detectChanges();\n const entry: SplitShellEntry = {\n componentRef,\n shell,\n home,\n bodyHost,\n backdrop: null,\n expandCleanup: null,\n display,\n layout: new SplitStyleStash(this.domWriter),\n modeCtx: null,\n };\n this.shells.set(container.key, entry);\n this.syncBackdrop(entry, container);\n this.applyStatic(display, this.staticElements(entry));\n this.ensureLayer();\n }\n\n unmountContainer(container: ContainerState<HTMLElement>): void {\n this.destroyShell(container.key);\n }\n\n /**\n * Re-applies the options of a container after a change: backdrop, and the mode when\n * `container.options` was replaced (reconfiguration).\n */\n applyContainerOptions(container: ContainerState<HTMLElement>): void {\n const entry = this.shells.get(container.key);\n if (!entry) return;\n const backdropChanged = this.syncBackdrop(entry, container);\n if (entry.display.options !== container.options) {\n this.completeTransition(container.key, true);\n const wasOpen = entry.modeCtx !== null;\n if (wasOpen) this.removeLayout(entry);\n entry.display.stash.restore();\n entry.display = this.createDisplay(container);\n this.applyStatic(entry.display, this.staticElements(entry));\n if (wasOpen) this.applyLayout(entry, container);\n } else if (backdropChanged) {\n this.applyStatic(entry.display, this.staticElements(entry));\n }\n }\n\n /** Content element of a mounted container. */\n contentElement(key: string): HTMLElement | null {\n return this.shells.get(key)?.componentRef.instance.contentElement() ?? null;\n }\n\n /** Shell element of a mounted container. */\n shellElement(key: string): HTMLElement | null {\n return this.shells.get(key)?.shell ?? null;\n }\n\n /** Resolved mode of a mounted (or prepared) container. */\n resolvedMode(key: string): SplitResolvedMode | null {\n return (this.shells.get(key)?.display ?? this.prepared.get(key))?.resolved ?? null;\n }\n\n protected destroyShell(key: string): void {\n const entry = this.shells.get(key);\n if (!entry) return;\n this.cancelTransition(key);\n this.removeLayout(entry);\n entry.expandCleanup?.();\n this.hostObserver?.unobserve(entry.home);\n entry.display.stash.restore();\n entry.componentRef.destroy();\n this.detach(entry.shell);\n if (entry.bodyHost) this.detach(entry.bodyHost);\n if (entry.backdrop) this.detach(entry.backdrop);\n this.shells.delete(key);\n }\n\n // ------------------------------------------------------------ DOM writes (Renderer2)\n\n /** Creates an element with classes. */\n protected createElement(tag: string, ...classes: string[]): HTMLElement {\n const el = this.renderer.createElement(tag) as HTMLElement;\n for (const name of classes) this.renderer.addClass(el, name);\n return el;\n }\n\n /** Removes an element from its parent. */\n protected detach(el: Element): void {\n const parent = this.renderer.parentNode(el);\n if (parent) this.renderer.removeChild(parent, el);\n }\n\n protected setHidden(el: HTMLElement, hidden: boolean): void {\n this.renderer.setProperty(el, 'hidden', hidden);\n }\n\n protected toggleClass(el: Element, name: string, on: boolean): void {\n if (on) this.renderer.addClass(el, name);\n else this.renderer.removeClass(el, name);\n }\n\n private ensureLayer(): void {\n if (this.layerRef) return;\n this.layerRef = createComponent(SplitDropZoneLayerComponent, {\n environmentInjector: this.environmentInjector,\n });\n this.renderer.appendChild(this.document.body, this.layerRef.location.nativeElement);\n this.appRef.attachView(this.layerRef.hostView);\n }\n\n // ------------------------------------------------------------ modes\n\n protected createDisplay(container: ContainerState<HTMLElement>): SplitContainerDisplay {\n return {\n resolved: this.resolver.resolve(container),\n options: container.options,\n stash: new SplitStyleStash(this.domWriter),\n };\n }\n\n private staticElements(entry: SplitShellEntry) {\n return { host: entry.home, shell: entry.shell, backdrop: entry.backdrop };\n }\n\n /** Classes and styles of the mode that stay while the container exists. */\n protected applyStatic(\n display: SplitContainerDisplay,\n els: { host: HTMLElement; shell: HTMLElement | null; backdrop: HTMLElement | null },\n ): void {\n const { stash, resolved } = display;\n const { kind, layout, side, size } = resolved;\n const { host, shell, backdrop } = els;\n stash.restore();\n stash.addClass(\n host,\n kind === 'custom' && 'split-host',\n `split-layout--${layout}`,\n `split-side--${side}`,\n ...resolved.hostClass,\n );\n if (kind === 'body') stash.set(host, '--split-body-size', size ?? this.config.bodySize);\n const floating = kind === 'custom' && layout !== 'inline';\n if (floating) {\n // The host does not take space while closed (push) or never does (overlay).\n const axis = axisOf(side);\n stash.set(host, 'flex', '0 0 auto');\n stash.set(host, axis, '0px');\n stash.set(host, `min-${axis}`, '0px');\n stash.set(host, 'overflow', layout === 'push' ? 'hidden' : 'visible');\n const view = this.document.defaultView;\n if (view && ['', 'static'].includes(view.getComputedStyle(host).position)) {\n stash.set(host, 'position', 'relative');\n }\n }\n if (shell) {\n stash.addClass(\n shell,\n `split-container--${kind}`,\n `split-layout--${layout}`,\n `split-side--${side}`,\n ...resolved.panelClass,\n );\n if (floating) {\n const horizontal = axisOf(side) === 'width';\n stash.set(shell, '--split-inset', PANEL_INSET[layout as 'push' | 'overlay'][side]!);\n stash.set(shell, '--split-w', horizontal ? 'var(--split-size)' : 'auto');\n stash.set(shell, '--split-h', horizontal ? 'auto' : 'var(--split-size)');\n if (layout === 'overlay' && size) stash.set(shell, '--split-size', size);\n }\n }\n if (backdrop) stash.addClass(backdrop, ...resolved.backdropClass);\n }\n\n /** Creates or removes the backdrop of a body container. Returns whether it changed. */\n private syncBackdrop(entry: SplitShellEntry, container: ContainerState<HTMLElement>): boolean {\n if (!entry.bodyHost) return false;\n const wanted = !!container.options.backdrop;\n if (wanted === !!entry.backdrop) return false;\n if (wanted) {\n entry.backdrop = this.createElement('div', 'split-body-backdrop');\n this.setHidden(entry.backdrop, !!entry.shell.hidden);\n this.renderer.insertBefore(this.document.body, entry.backdrop, entry.bodyHost);\n } else {\n this.detach(entry.backdrop!);\n entry.backdrop = null;\n }\n if (entry.modeCtx) entry.modeCtx = { ...entry.modeCtx, elements: this.elements(entry) };\n return true;\n }\n\n protected elements(entry: SplitShellEntry): SplitContainerElements {\n const { resolved } = entry.display;\n let pushTarget: HTMLElement | null = null;\n if (resolved.kind === 'body' && resolved.layout === 'push') {\n const target = resolved.pushTarget;\n pushTarget =\n typeof target === 'string'\n ? this.document.querySelector<HTMLElement>(target)\n : (target ?? null);\n if (!pushTarget) {\n if (target) console.warn(`[split-window] pushTarget not found: ${String(target)}`);\n pushTarget = this.document.body;\n }\n }\n return { shell: entry.shell, host: entry.home, backdrop: entry.backdrop, pushTarget };\n }\n\n /** Applies the open layout of the mode. */\n protected applyLayout(entry: SplitShellEntry, container: ContainerState<HTMLElement>): void {\n const { resolved } = entry.display;\n const ctx: SplitModeContext = {\n container,\n kind: resolved.kind,\n layout: resolved.layout,\n side: resolved.side,\n size: resolved.size,\n elements: this.elements(entry),\n document: this.document,\n styles: entry.layout,\n data: {},\n };\n entry.modeCtx = ctx;\n entry.layout.addClass(entry.home, 'split-host--open');\n resolved.mode.open(ctx);\n }\n\n /** Removes the open layout of the mode. */\n protected removeLayout(entry: SplitShellEntry): void {\n const ctx = entry.modeCtx;\n if (!ctx) return;\n try {\n entry.display.resolved.mode.close(ctx);\n } finally {\n entry.layout.restore();\n entry.modeCtx = null;\n }\n }\n\n private setVisible(entry: SplitShellEntry, visible: boolean): void {\n this.setHidden(entry.shell, !visible);\n if (entry.bodyHost) this.setHidden(entry.bodyHost, !visible);\n if (entry.backdrop) this.setHidden(entry.backdrop, !visible);\n }\n\n // ------------------------------------------------------------ transition hooks\n\n protected isMounted(container: ContainerState<HTMLElement>): boolean {\n return this.shells.has(container.key);\n }\n\n protected isEntered(container: ContainerState<HTMLElement>): boolean {\n return !!this.shells.get(container.key)?.modeCtx;\n }\n\n protected enter(container: ContainerState<HTMLElement>): void {\n const entry = this.shells.get(container.key);\n if (!entry) return;\n this.setVisible(entry, true);\n this.applyLayout(entry, container);\n }\n\n protected leave(container: ContainerState<HTMLElement>): void {\n const entry = this.shells.get(container.key);\n if (!entry) return;\n const ctx = entry.modeCtx;\n this.removeLayout(entry);\n this.setVisible(entry, false);\n if (ctx) entry.display.resolved.mode.hidden(ctx);\n }\n\n protected override beforeTransition(container: ContainerState<HTMLElement>): void {\n this.applyContainerOptions(container);\n }\n\n /** Keeps the last tab and the strip on screen, without interaction, while hiding. */\n protected override setLeaving(container: ContainerState<HTMLElement>, leaving: boolean): void {\n const entry = this.shells.get(container.key);\n if (!entry) return;\n this.toggleClass(entry.shell, 'split-container--leaving', leaving);\n if (leaving) {\n entry.componentRef.instance.freeze();\n this.renderer.setAttribute(entry.shell, 'inert', '');\n } else {\n this.renderer.removeAttribute(entry.shell, 'inert');\n entry.componentRef.instance.unfreeze();\n }\n }\n\n protected override setAnimating(container: ContainerState<HTMLElement>, on: boolean): void {\n const shell = this.shells.get(container.key)?.shell;\n if (shell) this.toggleClass(shell, 'split-animating', on);\n }\n\n protected override afterShown(container: ContainerState<HTMLElement>): void {\n const ctx = this.shells.get(container.key)?.modeCtx;\n if (ctx) this.shells.get(container.key)!.display.resolved.mode.shown(ctx);\n }\n\n protected override prefersReducedMotion(): boolean {\n return !!this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n protected transitionPlan(\n container: ContainerState<HTMLElement>,\n phase: 'show' | 'hide',\n ): SplitTransitionPlan<HTMLElement> | null {\n const entry = this.shells.get(container.key);\n const ctx = entry?.modeCtx;\n if (!entry || !ctx) return null;\n const { resolved } = entry.display;\n const engine = this.animationEngineFor(resolved);\n if (!engine) return null;\n const { from, to } = resolved.mode.frames(ctx, phase);\n const push = resolved.layout === 'push';\n return {\n engine,\n context: {\n layout: resolved.layout,\n side: resolved.side,\n size: resolved.size,\n elements: ctx.elements,\n from,\n to,\n properties: {\n host: push && resolved.kind === 'custom' ? axisOf(resolved.side) : null,\n push: push && resolved.kind === 'body' ? `padding-${resolved.side}` : null,\n },\n options: resolved.animation,\n },\n };\n }\n\n /**\n * Engine of a transition, resolved now: engines registered after the container was set up\n * count. `null` when the container does not animate. An unknown engine name is reported\n * and the transition uses the noop engine.\n */\n protected animationEngineFor(\n resolved: SplitResolvedMode,\n ): SplitAnimationEngine<HTMLElement> | null {\n if (!resolved.animated) return null;\n try {\n return this.animationEngines.resolve(resolved.engine);\n } catch (error) {\n this.reportError(error);\n return this.animationEngines.resolve('none');\n }\n }\n\n protected destroyTab(handle: unknown): void {\n const h = handle as AngularTabHandle;\n h.view?.destroy(); // also detaches it from the ApplicationRef\n this.detach(h.panel);\n h.containerKey = null;\n }\n\n protected containerOfTab(handle: unknown): string | null {\n return (handle as AngularTabHandle).containerKey;\n }\n\n // ------------------------------------------------------------ tabs\n\n createTab(\n content: SplitContent,\n tab: TabState,\n ref: SplitWindowRef,\n options: SplitAngularTabOptions | undefined,\n ): AngularTabHandle {\n const active = new SplitActiveWindow(ref);\n const panel = this.createElement('div', 'split-tab-panel');\n this.renderer.setAttribute(panel, 'id', `${tab.id}-panel`);\n this.renderer.setAttribute(panel, 'role', 'tabpanel');\n this.renderer.setAttribute(panel, 'aria-labelledby', `${tab.id}-tab`);\n this.setHidden(panel, true);\n const handle: AngularTabHandle = {\n ref,\n panel,\n view: null,\n componentRef: null,\n cd: null,\n active,\n containerKey: null,\n };\n if (!this.isBrowser) return handle;\n\n const parent = options?.injector ?? this.environmentInjector;\n const environmentInjector = parent.get(EnvironmentInjector, this.environmentInjector);\n const elementInjector = Injector.create({\n providers: [{ provide: SplitActiveWindow, useValue: active }],\n parent,\n });\n if (content instanceof TemplateRef) {\n const context: SplitTemplateContext = { $implicit: active, window: active };\n const view: EmbeddedViewRef<SplitTemplateContext> = content.createEmbeddedView(\n context,\n elementInjector,\n );\n for (const node of view.rootNodes) this.renderer.appendChild(panel, node);\n handle.view = view;\n handle.cd = view;\n } else {\n const componentRef = createComponent(content, { environmentInjector, elementInjector });\n for (const [name, value] of Object.entries(options?.inputs ?? {}))\n componentRef.setInput(name, value);\n this.renderer.appendChild(panel, componentRef.location.nativeElement);\n handle.componentRef = componentRef;\n handle.view = componentRef.hostView;\n handle.cd = componentRef.injector.get(ChangeDetectorRef);\n ref._setComponentInstance(componentRef.instance);\n }\n this.appRef.attachView(handle.view);\n // Inactive until the core activates it.\n handle.cd.detach();\n return handle;\n }\n\n attach(handle: unknown, container: ContainerState<HTMLElement>): void {\n const h = handle as AngularTabHandle;\n h.containerKey = container.key;\n const content = this.contentElement(container.key);\n if (content) this.renderer.appendChild(content, h.panel);\n h.active.sync();\n }\n\n move(handle: unknown, to: ContainerState<HTMLElement>): void {\n const h = handle as AngularTabHandle;\n h.containerKey = to.key;\n const content = this.contentElement(to.key);\n if (content) moveNode(content, h.panel, null, this.renderer);\n h.active.sync();\n }\n\n activate(handle: unknown): void {\n const h = handle as AngularTabHandle;\n this.setHidden(h.panel, false);\n if (!h.cd) return;\n h.cd.reattach();\n h.cd.markForCheck();\n try {\n h.cd.detectChanges();\n } catch (error) {\n console.error('[split-window] erro ao renderizar a aba', error);\n }\n }\n\n deactivate(handle: unknown): void {\n const h = handle as AngularTabHandle;\n this.setHidden(h.panel, true);\n h.cd?.detach();\n }\n\n /**\n * `SplitWindowRef.setInputData`: `setInput` for each input the component declares. An\n * inactive tab gets the values when it is activated again.\n */\n setInputs(handle: unknown, inputs: Readonly<Record<string, unknown>>): void {\n const { componentRef } = handle as AngularTabHandle;\n if (!componentRef) return; // template or server\n for (const [name, value] of this.resolveInputParams(inputs, componentRef.componentType)) {\n componentRef.setInput(name, value);\n }\n }\n\n /**\n * Entries of `data` that are inputs of `componentType`, skipping `undefined` values. Keys\n * may be the property or the template name (alias); the yielded name is always the\n * template name, the one `ComponentRef.setInput` expects.\n */\n protected *resolveInputParams(\n data: Readonly<Record<string, unknown>>,\n componentType: Type<unknown>,\n ): Generator<[name: string, value: unknown]> {\n const names = new Map<string, string>();\n for (const { propName, templateName } of reflectComponentType(componentType)?.inputs ?? []) {\n names.set(propName, templateName);\n names.set(templateName, templateName);\n }\n for (const [key, value] of Object.entries(data)) {\n const name = names.get(key);\n if (value !== undefined && name !== undefined) yield [name, value];\n }\n }\n\n // ------------------------------------------------------------ full screen\n\n setExpanded(container: ContainerState<HTMLElement>, expanded: boolean): void {\n const entry = this.shells.get(container.key);\n if (!entry) return;\n entry.expandCleanup?.();\n entry.expandCleanup = null;\n if (expanded) entry.expandCleanup = this.expand(container, entry);\n }\n\n protected expand(container: ContainerState<HTMLElement>, entry: SplitShellEntry): () => void {\n const win = this.document.defaultView!;\n const options = container.options.expand === false ? {} : (container.options.expand ?? {});\n const { shell } = entry;\n const originalNext = shell.nextSibling;\n let movedToLayer = false;\n\n const boundsRect = (): SplitRect => {\n const viewport = { x: 0, y: 0, width: win.innerWidth, height: win.innerHeight };\n const bounds = options.bounds ?? 'viewport';\n if (bounds === 'viewport') return viewport;\n if (typeof bounds === 'function') return toRect(bounds());\n const element = typeof bounds === 'string' ? this.document.querySelector(bounds) : bounds;\n return element ? toRect(element.getBoundingClientRect()) : viewport;\n };\n const apply = () => {\n const area = boundsRect();\n const viewport = { width: win.innerWidth, height: win.innerHeight };\n const rect = computeExpandedRect(area, {\n maxWidth: resolveLength(options.maxWidth, 'x', viewport, area),\n maxHeight: resolveLength(options.maxHeight, 'y', viewport, area),\n margin: options.margin,\n align: options.align,\n });\n const styles: Record<string, string> = {\n position: 'fixed',\n left: `${rect.x}px`,\n top: `${rect.y}px`,\n width: `${rect.width}px`,\n height: `${rect.height}px`,\n };\n for (const [prop, value] of Object.entries(styles)) {\n this.renderer.setStyle(shell, prop, value, RendererStyleFlags2.DashCase);\n }\n // An ancestor with transform/filter/contain/... makes `fixed` relative to it.\n if (!movedToLayer && !rectsMatch(toRect(shell.getBoundingClientRect()), rect)) {\n moveNode(this.getExpandLayer(), shell, null, this.renderer);\n movedToLayer = true;\n }\n };\n\n this.renderer.addClass(shell, 'split-container--expanded');\n this.renderer.addClass(entry.home, 'split-host--expanded');\n apply();\n if (!shell.contains(this.document.activeElement)) shell.focus({ preventScroll: true });\n\n const onResize = () => apply();\n const unlistenResize = this.renderer.listen('window', 'resize', onResize);\n const bounds = options.bounds;\n const boundsElement =\n typeof bounds === 'string' && bounds !== 'viewport'\n ? this.document.querySelector(bounds)\n : bounds instanceof HTMLElement\n ? bounds\n : null;\n const observer =\n boundsElement && typeof ResizeObserver !== 'undefined' ? new ResizeObserver(onResize) : null;\n if (boundsElement) observer?.observe(boundsElement);\n\n return () => {\n unlistenResize();\n observer?.disconnect();\n this.renderer.removeClass(shell, 'split-container--expanded');\n this.renderer.removeClass(entry.home, 'split-host--expanded');\n for (const prop of ['position', 'left', 'top', 'width', 'height']) {\n this.renderer.removeStyle(shell, prop, RendererStyleFlags2.DashCase);\n }\n if (movedToLayer) {\n moveNode(\n entry.home,\n shell,\n originalNext && originalNext.parentNode === entry.home ? originalNext : null,\n this.renderer,\n );\n }\n };\n }\n\n private getExpandLayer(): HTMLElement {\n if (!this.expandLayer) {\n this.expandLayer = this.createElement('div', 'split-expand-layer');\n this.renderer.appendChild(this.document.body, this.expandLayer);\n }\n return this.expandLayer;\n }\n\n // ------------------------------------------------------------ drag and drop\n\n /**\n * Called from `cdkDragStarted`, which the CDK emits before measuring connected lists:\n * shows the floating zones and connects the source strip to the valid targets.\n */\n startDrag(ref: SplitWindowRef, sourceList: CdkDropList<SplitDropListData>): void {\n const controller = this.controller;\n controller.beginDrag(ref);\n if (controller.getExpandedContainer() !== null) {\n sourceList.connectedTo = [];\n return;\n }\n const targets = controller.getDropTargets(ref);\n const zones = targets\n .filter((t) => !t.container.open)\n .map((t) => this.floatingZone(t.container))\n .filter((z): z is SplitFloatingZone => z !== null);\n this.floatingZones.set(zones);\n this.layerRef?.changeDetectorRef.detectChanges();\n\n const ids: string[] = [];\n for (const t of targets) {\n if (!t.container.open || !this.shells.has(t.key)) continue;\n ids.push(stripListId(t.key), contentListId(t.key));\n }\n for (const zone of zones) ids.push(floatListId(zone.key));\n sourceList.connectedTo = ids;\n }\n\n /** Handles a drop on any list of the library and ends the drag. */\n handleDrop(event: CdkDragDrop<SplitDropListData, SplitDropListData, SplitWindowRef>): void {\n const controller = this.controller;\n const ref = event.item.data;\n const target = event.container.data;\n let moved = false;\n if (event.isPointerOverContainer && ref.isOpen) {\n if (target.kind === 'strip') {\n moved = controller.moveTab(ref, target.key, event.currentIndex, 'drag');\n } else if (target.key !== ref.containerKey) {\n moved = controller.moveTab(ref, target.key, undefined, 'drag');\n }\n }\n controller.endDrag(ref, moved);\n this.floatingZones.set([]);\n }\n\n cancelDrag(): void {\n if (!this.isBrowser) return;\n // Synthetic pointer-up events have no Renderer2 equivalent: dispatched on the document.\n const init = { bubbles: true, cancelable: true, clientX: -10000, clientY: -10000 };\n this.document.dispatchEvent(new MouseEvent('mouseup', init));\n try {\n const touch = new Touch({\n identifier: 0,\n target: this.document.body,\n clientX: -10000,\n clientY: -10000,\n });\n this.document.dispatchEvent(\n new TouchEvent('touchend', { bubbles: true, changedTouches: [touch] }),\n );\n } catch {\n // Touch events are not constructible in this browser\n }\n }\n\n private floatingZone(container: ContainerState<HTMLElement>): SplitFloatingZone | null {\n const config = this.config;\n const win = this.document.defaultView!;\n const size = {\n width: container.options.closedDropZone?.width ?? config.closedDropZone.width,\n height: container.options.closedDropZone?.height ?? config.closedDropZone.height,\n };\n const host = container.host;\n let hostInfo: { rect: SplitRect; displayed: boolean } | null = null;\n if (host && host.isConnected) {\n const rect = toRect(host.getBoundingClientRect());\n // A collapsed host (push/overlay layouts) counts as not displayed.\n const displayed = host.getClientRects().length > 0 && rect.width > 0 && rect.height > 0;\n if (displayed) this.remember(host);\n hostInfo = { rect, displayed };\n }\n const anchor = container.options.closedDropZoneAnchor;\n const rect = computeClosedDropZoneRect({\n size,\n viewport: { x: 0, y: 0, width: win.innerWidth, height: win.innerHeight },\n bodySide: container.side,\n host: hostInfo,\n lastKnownRect: host ? (this.lastKnownRects.get(host) ?? null) : null,\n anchorRect: anchor?.isConnected ? toRect(anchor.getBoundingClientRect()) : null,\n });\n return rect ? { key: container.key, label: container.label, rect } : null;\n }\n\n private remember(host: HTMLElement): void {\n if (!host.isConnected || host.getClientRects().length === 0) return;\n const rect = host.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return; // collapsed host\n this.lastKnownRects.set(host, toRect(rect));\n }\n}\n\nexport const stripListId = (key: string) => `split-strip-${key}`;\nexport const contentListId = (key: string) => `split-content-${key}`;\nexport const floatListId = (key: string) => `split-float-${key}`;\n","import { Injectable, inject, type OnDestroy } from '@angular/core';\nimport {\n SPLIT_BODY_SIDES,\n SplitContainerRegistry as CoreSplitContainerRegistry,\n} from '@split-window/core';\nimport { SplitModeResolver } from '../modes/mode-resolver';\nimport type { SplitBodyContainersConfig, SplitContainerOptions } from '../types';\n\n/**\n * Configuration of the containers: registered containers, body containers and the default\n * container. It only stores: opening, closing and full screen are done by the controller\n * (`SplitWindowManager`). Injectable on its own, for example in a `provideAppInitializer`.\n *\n * Registered only by `provideSplitWindows()`.\n */\n@Injectable()\nexport class SplitContainerRegistry\n extends CoreSplitContainerRegistry<HTMLElement>\n implements OnDestroy\n{\n private readonly resolver = inject(SplitModeResolver);\n\n /**\n * Registers a container on a host. Besides the core options, accepts `mode`, `animation`\n * and the `*Class` options. Unknown mode names throw here; animation engines may be\n * registered later, so their names are checked on each transition.\n */\n override registerContainer(\n key: string,\n host: HTMLElement,\n options?: SplitContainerOptions,\n ): void {\n this.resolver.validate(options?.mode, 'custom', 'mode');\n super.registerContainer(key, host, options);\n }\n\n override useBodyContainers(config?: SplitBodyContainersConfig): void {\n if (config && typeof config === 'object') {\n const { defaults } = config;\n this.resolver.validate(defaults?.mode, 'body', 'defaults.mode');\n for (const side of SPLIT_BODY_SIDES) {\n const value = config[side];\n if (value && typeof value === 'object') {\n this.resolver.validate(value.mode, 'body', `${side}.mode`);\n }\n }\n }\n super.useBodyContainers(config);\n }\n\n ngOnDestroy(): void {\n this.destroy();\n }\n}\n","import { Injectable, inject, type OnDestroy } from '@angular/core';\nimport { SplitWindowController as CoreSplitWindowController } from '@split-window/core';\nimport { AngularSplitEngine } from '../engine/angular-split-engine';\nimport { SplitContainerRegistry } from '../registry/split-container-registry';\nimport { SPLIT_WINDOW_CONFIG } from '../tokens';\nimport type { SplitAngularTabOptions, SplitContent } from '../types';\n\n/**\n * The core controller as an Angular service: opening, rules, numbering, limits, closing,\n * moving and the state of the containers (open, expanded). It connects itself to the\n * engine. Replace it with a subclass through `provideSplitWindows({ controller })`.\n *\n * Registered only by `provideSplitWindows()`.\n */\n@Injectable()\nexport class SplitWindowController\n extends CoreSplitWindowController<SplitContent, HTMLElement, SplitAngularTabOptions>\n implements OnDestroy\n{\n constructor() {\n super(inject(SplitContainerRegistry), inject(AngularSplitEngine), inject(SPLIT_WINDOW_CONFIG));\n }\n\n /** The engine, typed as the Angular engine (or the subclass provided in its place). */\n declare readonly engine: AngularSplitEngine;\n\n ngOnDestroy(): void {\n this.destroy();\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport type {\n SplitCloseAllResult,\n SplitContainerStateChange,\n SplitContainerTransitionEvent,\n SplitDismissAllOptions,\n SplitTabMovedEvent,\n SplitTabRejectedEvent,\n SplitWindowRef,\n} from '@split-window/core';\nimport type { Observable } from 'rxjs';\nimport { SplitWindowController } from '../controller/split-window-controller';\nimport { SplitContainerRegistry } from '../registry/split-container-registry';\nimport type { SplitContent, SplitWindowOptions } from '../types';\n\n/**\n * Public API to open tabs, in the format of `NgbOffcanvas` and `NgbModal`:\n * `open(content, options)` returns a reference that controls the tab. Also controls the\n * containers (full screen, state) through the controller.\n *\n * Registered only by `provideSplitWindows()`.\n */\n@Injectable()\nexport class SplitWindowManager {\n private readonly controller = inject(SplitWindowController);\n\n /** The registry singleton: configuration of the containers. */\n readonly registry = inject(SplitContainerRegistry);\n\n /** Any reorder or container change of any tab. */\n readonly tabMoved: Observable<SplitTabMovedEvent> = this.controller.tabMoved;\n\n /** A tab refused by the tab limit, with the resolution applied. */\n readonly tabRejected: Observable<SplitTabRejectedEvent> = this.controller.tabRejected;\n\n /** Container opened, closed, expanded or restored. */\n readonly containerStateChanged: Observable<SplitContainerStateChange> =\n this.controller.containerStateChanged;\n\n /** Show/hide transitions of the containers: start, progress, end or cancel. */\n readonly containerTransitions: Observable<SplitContainerTransitionEvent> =\n this.controller.engine.transitions;\n\n /**\n * Opens a component or template as a tab. The container comes from `options.containerKey`\n * or the default container.\n */\n open<T = any>(content: SplitContent<T>, options: SplitWindowOptions = {}): SplitWindowRef<T> {\n const { inputs, injector, ...coreOptions } = options ?? {};\n return this.controller.open(content as SplitContent, coreOptions, {\n inputs,\n injector,\n }) as SplitWindowRef<T>;\n }\n\n /**\n * Closes the tabs of a container (or of all containers) in sequence, waiting for each\n * `canClose`. Tabs with `closable: false` are kept.\n */\n dismissAll(options?: SplitDismissAllOptions): Promise<SplitCloseAllResult> {\n return this.controller.dismissAll(options);\n }\n\n hasOpenWindows(containerKey?: string): boolean {\n return this.controller.hasOpenWindows(containerKey);\n }\n\n /** Open tabs of a container, in strip order. */\n getTabs(containerKey: string): readonly SplitWindowRef[] {\n return this.controller.getTabs(containerKey);\n }\n\n /**\n * Expands a container, restoring the one that was expanded. Ignored when the container\n * is closed or has `expand: false`.\n */\n expandContainer(key: string): void {\n this.controller.expandContainer(key);\n }\n\n restoreContainer(key: string): void {\n this.controller.restoreContainer(key);\n }\n\n isContainerOpen(key: string): boolean {\n return this.controller.isContainerOpen(key);\n }\n\n isContainerExpanded(key: string): boolean {\n return this.controller.isContainerExpanded(key);\n }\n\n /** Key of the expanded container, if any. */\n getExpandedContainer(): string | null {\n return this.controller.getExpandedContainer();\n }\n}\n","import { makeEnvironmentProviders, type EnvironmentProviders, type Provider } from '@angular/core';\nimport { mergeSplitWindowConfig } from '@split-window/core';\nimport { SplitAnimationEngineRegistry } from './animation/split-animation-engine-registry';\nimport { SplitWindowController } from './controller/split-window-controller';\nimport { AngularSplitEngine } from './engine/angular-split-engine';\nimport { SplitWindowManager } from './manager/split-window-manager';\nimport type { SplitModeInput } from './modes/container-mode';\nimport { SplitModeResolver } from './modes/mode-resolver';\nimport { SplitContainerRegistry } from './registry/split-container-registry';\nimport {\n SPLIT_ANIMATION_ENGINES,\n SPLIT_CONTAINER_DEFAULTS,\n SPLIT_WINDOW_CONFIG,\n SPLIT_WINDOW_MODES,\n type SplitAnimationEngineEntry,\n} from './tokens';\nimport type { SplitWindowAngularConfig } from './types';\n\n/**\n * Registers SplitWindow. Every piece is a provider, so it can be replaced with a subclass:\n * the engine (`engine`), the controller (`controller`), or any of them with your own\n * provider for the same class. The services are created the first time something injects\n * them, so an app can inject only the registry in a `provideAppInitializer`.\n *\n * ```ts\n * providers: [\n * provideSplitWindows({\n * labels: { defaultTitle: 'New tab' },\n * animationEngines: { css: SplitCssAnimationEngine },\n * modes: { drawer: { extends: 'overlay', panelClass: 'drawer', animation: 'slide' } },\n * containerDefaults: { animation: true },\n * }),\n * ]\n * ```\n */\nexport function provideSplitWindows(config?: SplitWindowAngularConfig): EnvironmentProviders {\n const {\n modes,\n containerDefaults,\n animationEngines,\n animationEngineRegistry,\n engine,\n controller,\n ...core\n } = config ?? {};\n const providers: Provider[] = [\n SplitContainerRegistry,\n SplitModeResolver,\n animationEngineRegistry\n ? { provide: SplitAnimationEngineRegistry, useClass: animationEngineRegistry }\n : SplitAnimationEngineRegistry,\n engine ? { provide: AngularSplitEngine, useClass: engine } : AngularSplitEngine,\n controller ? { provide: SplitWindowController, useClass: controller } : SplitWindowController,\n SplitWindowManager,\n { provide: SPLIT_WINDOW_CONFIG, useValue: mergeSplitWindowConfig(core) },\n { provide: SPLIT_CONTAINER_DEFAULTS, useValue: containerDefaults ?? {} },\n ];\n if (modes) providers.push({ provide: SPLIT_WINDOW_MODES, useValue: modes, multi: true });\n if (animationEngines) {\n providers.push({ provide: SPLIT_ANIMATION_ENGINES, useValue: animationEngines, multi: true });\n }\n return makeEnvironmentProviders(providers);\n}\n\n/**\n * Registers named modes, for libraries or feature areas. Must be in the same environment\n * injector as `provideSplitWindows()`.\n */\nexport function provideSplitModes(modes: Record<string, SplitModeInput>): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: SPLIT_WINDOW_MODES, useValue: modes, multi: true }]);\n}\n\n/**\n * Registers named animation engines (instances or classes created with DI), after the ones\n * of `provideSplitWindows()`. Must be in the same environment injector. To register at run\n * time, inject `SplitAnimationEngineRegistry` and call `register()`.\n *\n * ```ts\n * provideSplitAnimationEngines({\n * css: SplitCssAnimationEngine,\n * pop: new SplitKeyframesAnimationEngine({ show: [{ transform: 'scale(.9)' }, { transform: 'none' }] }),\n * })\n * ```\n */\nexport function provideSplitAnimationEngines(\n engines: Record<string, SplitAnimationEngineEntry>,\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: SPLIT_ANIMATION_ENGINES, useValue: engines, multi: true },\n ]);\n}\n","import {\n Directive,\n ElementRef,\n booleanAttribute,\n inject,\n input,\n type OnChanges,\n type OnDestroy,\n type OnInit,\n type SimpleChanges,\n} from '@angular/core';\nimport { SplitContainerRegistry } from '../registry/split-container-registry';\nimport type { SplitContainerOptions } from '../types';\n\n/**\n * Registers the host element as a container. Registers in `ngOnInit` (so an `open()` in the\n * `ngOnInit` of a later component already finds it) and unregisters on destroy, which\n * dismisses its tabs with `'container-removed'`.\n *\n * ```html\n * <div splitContainer=\"right\" [splitContainerDefault]=\"true\" [splitContainerOptions]=\"{ maxTabs: 5 }\"></div>\n * ```\n */\n@Directive({\n selector: '[splitContainer]',\n exportAs: 'splitContainer',\n})\nexport class SplitContainerDirective implements OnInit, OnChanges, OnDestroy {\n private readonly registry = inject(SplitContainerRegistry);\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Container key. Changing it unregisters the old key and registers the new one. */\n readonly splitContainer = input.required<string>();\n /** Makes this container the default one. */\n readonly splitContainerDefault = input(false, { transform: booleanAttribute });\n /** Options read on registration. */\n readonly splitContainerOptions = input<SplitContainerOptions | undefined>(undefined);\n\n private registeredKey: string | null = null;\n\n ngOnInit(): void {\n this.register();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (this.registeredKey === null) return;\n if (changes['splitContainer'] && this.splitContainer() !== this.registeredKey) {\n this.unregister();\n this.register();\n } else if (changes['splitContainerDefault']) {\n this.applyDefault();\n }\n }\n\n ngOnDestroy(): void {\n this.unregister();\n }\n\n private register(): void {\n const key = this.splitContainer();\n this.registry.registerContainer(key, this.element.nativeElement, this.splitContainerOptions());\n this.registeredKey = key;\n this.applyDefault();\n }\n\n private applyDefault(): void {\n const key = this.registeredKey;\n if (key === null) return;\n if (this.splitContainerDefault()) this.registry.setDefaultContainer(key);\n else if (this.registry.getDefaultContainer() === key) this.registry.setDefaultContainer(null);\n }\n\n private unregister(): void {\n if (this.registeredKey !== null && this.registry.hasContainer(this.registeredKey)) {\n this.registry.unregisterContainer(this.registeredKey);\n }\n this.registeredKey = null;\n }\n}\n"],"mappings":";;;;;;AAUA,MAAa,sBAAsB,IAAI,eAAkC,uBAAuB,EAC9F,eAAe,uBAAsB,EACtC,CAAA;AAMD,MAAa,qBAAqB,IAAI,eACpC,oBAAoB;AAItB,MAAa,2BAA2B,IAAI,eAC1C,4BACA,EAAE,gBAAgB,CAAA,GAAG,CAAE;AAazB,MAAa,0BAA0B,IAAI,eAEzC,yBAAyB;AClB3B,IAAa,+BAAb,MAAa,qCAAqCA,+BAA6C;CAC7F,cAAA;EACE,MAAM,WAAW,OAAO,mBAAmB;EAC3C,OAAO,SACL,SAAS,OAAO;GAAE,WAAW,CAAC;IAAE,SAAS;IAAM,UAAU;GAAI,CAAE;GAAG,QAAQ;EAAQ,CAAE,CAAC,CAAC,IACpF,IAAI,CACL;EAEH,KAAK,MA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AAA;EAAA,UAAA;EAAA,QAAA;GAAA,gBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,uBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,uBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,UAAA,CAAA,gBAAA;EAAA,eAAA;EAAA,UAAA;CAAA,CAAA;;AAAvB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAuB,YAAA,CAAA;EAJnC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;EACX,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "Angular adapter of SplitWindow: tabbed split containers with an NgbOffcanvas-like API.",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/cdk": "^22.0.0",
|
|
7
|
+
"@angular/common": "^22.0.0",
|
|
8
|
+
"@angular/core": "^22.0.0",
|
|
9
|
+
"rxjs": "^7.8.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@split-window/core": "0.2.0",
|
|
13
|
+
"tslib": "^2.3.0"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/lucasdornelasv/split-window-js.git",
|
|
21
|
+
"directory": "packages/angular"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/lucasdornelasv/split-window-js/tree/main/packages/angular#readme",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/lucasdornelasv/split-window-js/issues"
|
|
26
|
+
},
|
|
2
27
|
"name": "@split-window/angular",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "./fesm2022/split-window-angular.mjs",
|
|
30
|
+
"module": "./fesm2022/split-window-angular.mjs",
|
|
31
|
+
"typings": "./types/split-window-angular.d.ts",
|
|
32
|
+
"types": "./types/split-window-angular.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./types/split-window-angular.d.ts",
|
|
36
|
+
"default": "./fesm2022/split-window-angular.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": {
|
|
39
|
+
"default": "./package.json"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"version": "0.2.0"
|
|
43
|
+
}
|