@ids-group-ltd/ids-design-system 1.0.3 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +423 -3
- package/agent/INDEX.md +12 -2
- package/agent/feedback/ds-alert.md +3 -2
- package/agent/feedback/ds-attachment.md +12 -0
- package/agent/feedback/ds-chat-attachment.md +10 -0
- package/agent/feedback/ds-chat-message.md +11 -0
- package/agent/feedback/ds-chat-step.md +10 -0
- package/agent/feedback/ds-chat-steps.md +10 -0
- package/agent/feedback/ds-chat-thread.md +11 -0
- package/agent/feedback/ds-timeline-item.md +3 -1
- package/agent/feedback/ds-timeline.md +9 -0
- package/agent/feedback/ds-toast.md +1 -1
- package/agent/feedback/ds-tree.md +3 -1
- package/agent/forms/ds-chat-input.md +16 -0
- package/agent/forms/ds-inline-edit.md +14 -0
- package/agent/foundations/tokens.md +3 -3
- package/agent/navigation/ds-splitter.md +14 -0
- package/agent/platform/toast-service.md +3 -2
- package/agent/tables/ds-table.md +1 -1
- package/components.md +110 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +928 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +16 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +465 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +74 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +163 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +4 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +182 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +31 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.2.json +1 -0
- package/migrations/1.0.1.json +4 -0
- package/migrations/1.0.2.json +37 -1
- package/migrations/1.1.0.json +208 -0
- package/migrations/1.1.1.json +190 -0
- package/migrations/README.md +6 -6
- package/package.json +25 -1
- package/schematics/check-overrides/surface.json +199 -6
- package/styles/_dropdown-overlay.scss +11 -6
- package/styles/_field-box.scss +2 -2
- package/styles/_step-marker.scss +51 -0
- package/styles/_tokens.scss +5 -3
- package/themes/README.md +2 -1
- package/themes/_semantic.scss +15 -0
- package/themes/dark/_palette.scss +1 -2
- package/themes/dark/_theme.scss +32 -3
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +377 -0
- package/types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +97 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +34 -5
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +53 -4
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +87 -7
- package/types/ids-group-ltd-ids-design-system-components.d.ts +8 -4
- package/types/ids-group-ltd-ids-design-system-core.d.ts +126 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, ElementRef, NgZone, viewChild, input, model, numberAttribute, booleanAttribute, signal, computed } from '@angular/core';
|
|
4
|
+
import { nextControlId } from '@ids-group-ltd/ids-design-system/components';
|
|
5
|
+
import { DS_INTL, DS_INTL_DEFAULTS, retainStyles } from '@ids-group-ltd/ids-design-system/core';
|
|
6
|
+
|
|
7
|
+
/** @internal Never rendered: creating it once registers the page-wide drag rules globally. */
|
|
8
|
+
class SplitterDraggingStylesComponent {
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterDraggingStylesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: SplitterDraggingStylesComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}html[data-ds-splitter-dragging] :is(iframe,webview,embed,object){pointer-events:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterDraggingStylesComponent, decorators: [{
|
|
13
|
+
type: Component,
|
|
14
|
+
args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["html[data-ds-splitter-dragging],html[data-ds-splitter-dragging] *{cursor:var(--_ds-splitter-cursor)!important;-webkit-user-select:none!important;user-select:none!important}html[data-ds-splitter-dragging] :is(iframe,webview,embed,object){pointer-events:none!important}\n"] }]
|
|
15
|
+
}] });
|
|
16
|
+
|
|
17
|
+
const STEP = 16;
|
|
18
|
+
const LARGE_STEP = 64;
|
|
19
|
+
// The farthest the rubber band pulls past a limit, approached and never reached: 100px, and never more
|
|
20
|
+
// than a third of the pane it squashes, whose content would otherwise read as distorted.
|
|
21
|
+
const OVERDRAG_CAP = 100;
|
|
22
|
+
const OVERDRAG_SQUASH = 1 / 3;
|
|
23
|
+
// Fog strength is speed x distance, each 0.1..1: full from 1.2 px/ms and from 180px off the grab point.
|
|
24
|
+
const FOG_FULL_SPEED = 1.2;
|
|
25
|
+
const FOG_FULL_DISTANCE = 180;
|
|
26
|
+
const FOG_IDLE = 180;
|
|
27
|
+
/**
|
|
28
|
+
* Two panes with a handle between them that resizes one of them. Slots: `[start]` and `[end]`.
|
|
29
|
+
* Drag the handle, or focus it and use the arrow keys (Shift or PageUp / PageDown for a large step,
|
|
30
|
+
* Home / End for the limits); a double click returns to `defaultSize`. Give the splitter a size: it
|
|
31
|
+
* fills the box its parent gives it and never grows to its content.
|
|
32
|
+
*/
|
|
33
|
+
class SplitterComponent {
|
|
34
|
+
intl = inject(DS_INTL);
|
|
35
|
+
host = inject(ElementRef);
|
|
36
|
+
document = inject(DOCUMENT);
|
|
37
|
+
zone = inject(NgZone);
|
|
38
|
+
handle = viewChild.required('handle');
|
|
39
|
+
fogStart = viewChild('fogStart', ...(ngDevMode ? [{ debugName: "fogStart" }] : /* istanbul ignore next */ []));
|
|
40
|
+
fogEnd = viewChild('fogEnd', ...(ngDevMode ? [{ debugName: "fogEnd" }] : /* istanbul ignore next */ []));
|
|
41
|
+
/** `'horizontal'`: panes side by side. `'vertical'`: panes stacked. */
|
|
42
|
+
orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
43
|
+
/** The pane `size` measures; the other pane takes the rest. */
|
|
44
|
+
pane = input('start', ...(ngDevMode ? [{ debugName: "pane" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** Size of `pane` in px, two-way bound; `null` shows `defaultSize`. A drag writes it once, on release. */
|
|
46
|
+
size = model(null, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
47
|
+
/** Size in px when `size` is `null`, and what a double click on the handle returns to. */
|
|
48
|
+
defaultSize = input(320, { ...(ngDevMode ? { debugName: "defaultSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
49
|
+
/** Smallest size in px, inclusive. */
|
|
50
|
+
min = input(160, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
51
|
+
/** Largest size in px, inclusive. The pane never takes more than the splitter less the handle. */
|
|
52
|
+
max = input(640, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
53
|
+
/** Saves the size in `localStorage` under `ds-splitter:<key>` and restores it on init, over `size`. */
|
|
54
|
+
persistKey = input('', ...(ngDevMode ? [{ debugName: "persistKey" }] : /* istanbul ignore next */ []));
|
|
55
|
+
/** Accessible name of the handle; unset falls back to `DS_INTL.splitter.label`. Name what it resizes. */
|
|
56
|
+
ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
57
|
+
/** Dragged past `min` or `max`: `'elastic'` follows the pointer with growing resistance and springs
|
|
58
|
+
* back on release, `'none'` stops at the limit. Off under `prefers-reduced-motion: reduce`. */
|
|
59
|
+
overdrag = input('elastic', ...(ngDevMode ? [{ debugName: "overdrag" }] : /* istanbul ignore next */ []));
|
|
60
|
+
/** While dragging, shades the pane the handle moves towards, stronger the faster and farther the drag;
|
|
61
|
+
* the shade rides the rubber band past a limit and fades when the hand stops or lets go. Colour:
|
|
62
|
+
* `--ds-splitter-fog-color`. Off under `prefers-reduced-motion: reduce`. */
|
|
63
|
+
dragFog = input(false, { ...(ngDevMode ? { debugName: "dragFog" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
64
|
+
startId = nextControlId('ds-splitter-pane');
|
|
65
|
+
endId = nextControlId('ds-splitter-pane');
|
|
66
|
+
dragging = signal(false, ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
67
|
+
springing = signal(false, ...(ngDevMode ? [{ debugName: "springing" }] : /* istanbul ignore next */ []));
|
|
68
|
+
current = computed(() => this.clamp(this.size() ?? this.defaultSize(), this.max()), ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
69
|
+
cursor = computed(() => this.cursorFor(this.current()), ...(ngDevMode ? [{ debugName: "cursor" }] : /* istanbul ignore next */ []));
|
|
70
|
+
label = computed(() => this.ariaLabel() ||
|
|
71
|
+
this.intl().splitter?.label ||
|
|
72
|
+
DS_INTL_DEFAULTS.splitter.label, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
73
|
+
// ARIA names the orientation of the separator line, which is across the panes' axis.
|
|
74
|
+
lineOrientation = computed(() => this.orientation() === 'horizontal' ? 'vertical' : 'horizontal', ...(ngDevMode ? [{ debugName: "lineOrientation" }] : /* istanbul ignore next */ []));
|
|
75
|
+
drag = null;
|
|
76
|
+
pendingMove = null;
|
|
77
|
+
frame = 0;
|
|
78
|
+
springTimer = 0;
|
|
79
|
+
fogTimer = 0;
|
|
80
|
+
constructor() {
|
|
81
|
+
retainStyles(SplitterDraggingStylesComponent);
|
|
82
|
+
}
|
|
83
|
+
ngOnInit() {
|
|
84
|
+
const key = this.storageKey();
|
|
85
|
+
if (!key) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
const stored = Number(localStorage.getItem(key) ?? NaN);
|
|
90
|
+
if (Number.isFinite(stored)) {
|
|
91
|
+
this.size.set(stored);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
// Storage blocked or absent (SSR): keep the bound size.
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
ngOnDestroy() {
|
|
99
|
+
this.endDrag();
|
|
100
|
+
}
|
|
101
|
+
onPointerDown(event) {
|
|
102
|
+
if (event.button !== 0) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
const handle = this.handle().nativeElement;
|
|
107
|
+
handle.setPointerCapture(event.pointerId);
|
|
108
|
+
// A grab during the spring-back stops it where the layout puts the handle, before anything is measured.
|
|
109
|
+
this.stopSpring();
|
|
110
|
+
// The grab point's distance from the measured pane's edge stays fixed, so the handle never jumps.
|
|
111
|
+
const reduced = !!this.document.defaultView?.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
112
|
+
const at = this.alongAxis(event);
|
|
113
|
+
this.drag = {
|
|
114
|
+
pointerId: event.pointerId,
|
|
115
|
+
grab: this.fromPaneEdge(event, handle.getBoundingClientRect()),
|
|
116
|
+
size: this.current(),
|
|
117
|
+
box: this.panesBox(),
|
|
118
|
+
elastic: this.overdrag() === 'elastic' && !reduced,
|
|
119
|
+
pull: 0,
|
|
120
|
+
fog: this.dragFog() && !reduced,
|
|
121
|
+
start: at,
|
|
122
|
+
last: at,
|
|
123
|
+
lastTime: event.timeStamp,
|
|
124
|
+
speed: 0,
|
|
125
|
+
velocity: 0,
|
|
126
|
+
side: 0,
|
|
127
|
+
reversalSince: null,
|
|
128
|
+
};
|
|
129
|
+
this.dragging.set(true);
|
|
130
|
+
// Outside Angular: a move writes the DOM itself, so it must not start change detection per frame.
|
|
131
|
+
this.zone.runOutsideAngular(() => {
|
|
132
|
+
handle.addEventListener('pointermove', this.onPointerMove);
|
|
133
|
+
this.document.defaultView?.addEventListener('blur', this.onWindowBlur);
|
|
134
|
+
});
|
|
135
|
+
const root = this.document.documentElement;
|
|
136
|
+
root.setAttribute('data-ds-splitter-dragging', '');
|
|
137
|
+
root.style.setProperty('--_ds-splitter-cursor', this.cursor());
|
|
138
|
+
}
|
|
139
|
+
onPointerMove = (event) => {
|
|
140
|
+
if (event.pointerId !== this.drag?.pointerId) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
this.pendingMove = event;
|
|
144
|
+
if (!this.frame) {
|
|
145
|
+
this.frame = requestAnimationFrame(() => this.applyMove());
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
applyMove() {
|
|
149
|
+
this.frame = 0;
|
|
150
|
+
const event = this.pendingMove;
|
|
151
|
+
this.pendingMove = null;
|
|
152
|
+
if (!event || !this.drag) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const { box } = this.drag;
|
|
156
|
+
const raw = this.fromPaneEdge(event, box) - this.drag.grab;
|
|
157
|
+
const room = this.room(box);
|
|
158
|
+
const size = this.clamp(Math.round(raw), room);
|
|
159
|
+
if (this.drag.elastic) {
|
|
160
|
+
// Against the unrounded limit: within min and max the excess is exactly 0, not the rounding.
|
|
161
|
+
this.stretch(raw - this.clamp(raw, room));
|
|
162
|
+
}
|
|
163
|
+
if (this.drag.fog) {
|
|
164
|
+
this.shade(event);
|
|
165
|
+
}
|
|
166
|
+
if (size === this.drag.size) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
this.drag.size = size;
|
|
170
|
+
// Written straight to the DOM: no change detection per frame. `size` is set once, on release.
|
|
171
|
+
const cursor = this.cursorFor(size);
|
|
172
|
+
const handle = this.handle().nativeElement;
|
|
173
|
+
this.host.nativeElement.style.setProperty('--_splitter-size', `${size}px`);
|
|
174
|
+
handle.setAttribute('aria-valuenow', String(size));
|
|
175
|
+
handle.style.cursor = cursor;
|
|
176
|
+
this.document.documentElement.style.setProperty('--_ds-splitter-cursor', cursor);
|
|
177
|
+
}
|
|
178
|
+
// Past a limit by `excess` px of size, the pull approaches the cap and never reaches it. The handle
|
|
179
|
+
// moves by the pull, the measured pane stretches by it and the other squashes by it (the other way
|
|
180
|
+
// round past `min`), each from its outer edge, so no gap opens. Transforms only: the layout keeps
|
|
181
|
+
// the clamped size.
|
|
182
|
+
stretch(excess) {
|
|
183
|
+
const drag = this.drag;
|
|
184
|
+
const [handle, measured, other] = this.movingParts();
|
|
185
|
+
const horizontal = this.orientation() === 'horizontal';
|
|
186
|
+
const extent = (element) => horizontal ? element.offsetWidth : element.offsetHeight;
|
|
187
|
+
const squashed = excess > 0 ? other : measured;
|
|
188
|
+
const cap = Math.min(OVERDRAG_CAP, extent(squashed) * OVERDRAG_SQUASH);
|
|
189
|
+
const pull = cap > 0
|
|
190
|
+
? Math.sign(excess) * cap * (1 - 1 / (Math.abs(excess) / cap + 1))
|
|
191
|
+
: 0;
|
|
192
|
+
if (pull === drag.pull) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
drag.pull = pull;
|
|
196
|
+
if (pull === 0) {
|
|
197
|
+
this.clearTransforms();
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const scale = horizontal ? 'scaleX' : 'scaleY';
|
|
201
|
+
const shift = this.pane() === 'start' ? pull : -pull;
|
|
202
|
+
handle.style.transform = `translate${horizontal ? 'X' : 'Y'}(${shift}px)`;
|
|
203
|
+
// The line thickens on the same resistance curve; a custom property, because the line is a pseudo-element.
|
|
204
|
+
handle.style.setProperty('--_splitter-pull-ratio', String(Math.abs(pull) / cap));
|
|
205
|
+
measured.style.transform = `${scale}(${(extent(measured) + pull) / extent(measured)})`;
|
|
206
|
+
other.style.transform = `${scale}(${Math.max(0, extent(other) - pull) / extent(other)})`;
|
|
207
|
+
this.syncFogTransforms();
|
|
208
|
+
}
|
|
209
|
+
// The side is the pointer's direction, never where it stands: past a limit the pointer stays beyond
|
|
210
|
+
// the line while the hand already pulls back, and the fog has to turn with the hand.
|
|
211
|
+
shade(event) {
|
|
212
|
+
const drag = this.drag;
|
|
213
|
+
const at = this.alongAxis(event);
|
|
214
|
+
const step = at - drag.last;
|
|
215
|
+
const elapsed = Math.max(1, event.timeStamp - drag.lastTime);
|
|
216
|
+
drag.speed = drag.speed * 0.6 + (Math.abs(step) / elapsed) * 0.4;
|
|
217
|
+
drag.velocity +=
|
|
218
|
+
(1 - Math.exp(-elapsed / 100)) * (step / elapsed - drag.velocity);
|
|
219
|
+
drag.side = this.sideOf(drag, at, event.timeStamp);
|
|
220
|
+
drag.last = at;
|
|
221
|
+
drag.lastTime = event.timeStamp;
|
|
222
|
+
const start = this.fogStart()?.nativeElement;
|
|
223
|
+
const end = this.fogEnd()?.nativeElement;
|
|
224
|
+
if (step === 0 || drag.side === 0 || !start || !end) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
const factor = (value) => Math.max(0.1, Math.min(1, value));
|
|
228
|
+
const strength = factor(drag.speed / FOG_FULL_SPEED) *
|
|
229
|
+
factor(Math.abs(at - drag.start) / FOG_FULL_DISTANCE);
|
|
230
|
+
const [toward, away] = drag.side > 0 ? [end, start] : [start, end];
|
|
231
|
+
toward.style.opacity = String(strength);
|
|
232
|
+
away.style.removeProperty('opacity');
|
|
233
|
+
clearTimeout(this.fogTimer);
|
|
234
|
+
this.fogTimer = window.setTimeout(() => this.clearFog(), FOG_IDLE);
|
|
235
|
+
}
|
|
236
|
+
// Under 0.05 px/ms the side holds, and a reversal must last 100ms before it flips, so a slow or
|
|
237
|
+
// shaky hand never flickers the fog between the panes.
|
|
238
|
+
sideOf(drag, at, now) {
|
|
239
|
+
if (drag.side === 0) {
|
|
240
|
+
return Math.abs(at - drag.start) >= 2 ? Math.sign(at - drag.start) : 0;
|
|
241
|
+
}
|
|
242
|
+
const wanted = Math.abs(drag.velocity) < 0.05 ? 0 : Math.sign(drag.velocity);
|
|
243
|
+
if (wanted === 0 || wanted === drag.side) {
|
|
244
|
+
drag.reversalSince = null;
|
|
245
|
+
return drag.side;
|
|
246
|
+
}
|
|
247
|
+
drag.reversalSince ??= now;
|
|
248
|
+
if (now - drag.reversalSince < 100) {
|
|
249
|
+
return drag.side;
|
|
250
|
+
}
|
|
251
|
+
drag.reversalSince = null;
|
|
252
|
+
return wanted;
|
|
253
|
+
}
|
|
254
|
+
clearFog() {
|
|
255
|
+
clearTimeout(this.fogTimer);
|
|
256
|
+
for (const fog of [this.fogStart(), this.fogEnd()]) {
|
|
257
|
+
fog?.nativeElement.style.removeProperty('opacity');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
// Each fog layer takes its pane's rubber-band transform, so the shade stays on the pane's edge.
|
|
261
|
+
syncFogTransforms() {
|
|
262
|
+
const handle = this.handle().nativeElement;
|
|
263
|
+
const pairs = [
|
|
264
|
+
[this.fogStart()?.nativeElement, handle.previousElementSibling],
|
|
265
|
+
[this.fogEnd()?.nativeElement, handle.nextElementSibling],
|
|
266
|
+
];
|
|
267
|
+
for (const [fog, pane] of pairs) {
|
|
268
|
+
if (fog) {
|
|
269
|
+
fog.style.transform = pane.style.transform;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
// The handle, the pane `size` measures, then the other pane.
|
|
274
|
+
movingParts() {
|
|
275
|
+
const handle = this.handle().nativeElement;
|
|
276
|
+
const start = handle.previousElementSibling;
|
|
277
|
+
const end = handle.nextElementSibling;
|
|
278
|
+
return this.pane() === 'start'
|
|
279
|
+
? [handle, start, end]
|
|
280
|
+
: [handle, end, start];
|
|
281
|
+
}
|
|
282
|
+
clearTransforms() {
|
|
283
|
+
for (const element of this.movingParts()) {
|
|
284
|
+
element.style.transform = '';
|
|
285
|
+
}
|
|
286
|
+
this.handle().nativeElement.style.removeProperty('--_splitter-pull-ratio');
|
|
287
|
+
this.syncFogTransforms();
|
|
288
|
+
}
|
|
289
|
+
stopSpring() {
|
|
290
|
+
clearTimeout(this.springTimer);
|
|
291
|
+
this.springing.set(false);
|
|
292
|
+
this.clearTransforms();
|
|
293
|
+
}
|
|
294
|
+
// The class adds the transition; clearing the transforms in the next frame plays it back to rest.
|
|
295
|
+
springBack() {
|
|
296
|
+
this.springing.set(true);
|
|
297
|
+
this.zone.runOutsideAngular(() => {
|
|
298
|
+
requestAnimationFrame(() => {
|
|
299
|
+
this.clearTransforms();
|
|
300
|
+
this.springTimer = window.setTimeout(() => this.zone.run(() => this.springing.set(false)), 600);
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
onPointerUp(event) {
|
|
305
|
+
if (event.pointerId !== this.drag?.pointerId) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
this.finishDrag();
|
|
309
|
+
}
|
|
310
|
+
// A release over a document of its own (an iframe, an Electron webview) or outside the window can
|
|
311
|
+
// reach no listener here: losing capture or focus is then the only sign the drag is over.
|
|
312
|
+
finishDrag = () => {
|
|
313
|
+
if (!this.drag) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (this.frame) {
|
|
317
|
+
cancelAnimationFrame(this.frame);
|
|
318
|
+
this.applyMove();
|
|
319
|
+
}
|
|
320
|
+
const { size, pull } = this.drag;
|
|
321
|
+
this.endDrag();
|
|
322
|
+
if (pull !== 0) {
|
|
323
|
+
this.springBack();
|
|
324
|
+
}
|
|
325
|
+
if (size !== this.current()) {
|
|
326
|
+
this.commit(size);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
onWindowBlur = () => this.zone.run(this.finishDrag);
|
|
330
|
+
onKeydown(event) {
|
|
331
|
+
const horizontal = this.orientation() === 'horizontal';
|
|
332
|
+
// An arrow moves the handle; the end pane grows as the handle moves towards the start.
|
|
333
|
+
const towardsEnd = this.pane() === 'start' ? 1 : -1;
|
|
334
|
+
const step = event.shiftKey ? LARGE_STEP : STEP;
|
|
335
|
+
const now = this.current();
|
|
336
|
+
const next = {
|
|
337
|
+
[horizontal ? 'ArrowRight' : 'ArrowDown']: now + step * towardsEnd,
|
|
338
|
+
[horizontal ? 'ArrowLeft' : 'ArrowUp']: now - step * towardsEnd,
|
|
339
|
+
PageUp: now + LARGE_STEP,
|
|
340
|
+
PageDown: now - LARGE_STEP,
|
|
341
|
+
Home: this.min(),
|
|
342
|
+
End: this.max(),
|
|
343
|
+
};
|
|
344
|
+
if (!(event.key in next)) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
event.preventDefault();
|
|
348
|
+
this.commit(this.clampToBox(next[event.key]));
|
|
349
|
+
}
|
|
350
|
+
reset() {
|
|
351
|
+
this.size.set(null);
|
|
352
|
+
const key = this.storageKey();
|
|
353
|
+
if (key) {
|
|
354
|
+
try {
|
|
355
|
+
localStorage.removeItem(key);
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
// Storage blocked: the reset still applies for this session.
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
commit(size) {
|
|
363
|
+
this.size.set(size);
|
|
364
|
+
const key = this.storageKey();
|
|
365
|
+
if (key) {
|
|
366
|
+
try {
|
|
367
|
+
localStorage.setItem(key, String(size));
|
|
368
|
+
}
|
|
369
|
+
catch {
|
|
370
|
+
// Full or blocked: a lost pane size is not worth an error.
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
endDrag() {
|
|
375
|
+
if (!this.drag) {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
const handle = this.handle().nativeElement;
|
|
379
|
+
handle.removeEventListener('pointermove', this.onPointerMove);
|
|
380
|
+
this.document.defaultView?.removeEventListener('blur', this.onWindowBlur);
|
|
381
|
+
cancelAnimationFrame(this.frame);
|
|
382
|
+
this.frame = 0;
|
|
383
|
+
this.pendingMove = null;
|
|
384
|
+
try {
|
|
385
|
+
handle.releasePointerCapture(this.drag.pointerId);
|
|
386
|
+
}
|
|
387
|
+
catch {
|
|
388
|
+
// The pointer can already be gone.
|
|
389
|
+
}
|
|
390
|
+
this.drag = null;
|
|
391
|
+
this.clearFog();
|
|
392
|
+
this.dragging.set(false);
|
|
393
|
+
const root = this.document.documentElement;
|
|
394
|
+
root.removeAttribute('data-ds-splitter-dragging');
|
|
395
|
+
root.style.removeProperty('--_ds-splitter-cursor');
|
|
396
|
+
}
|
|
397
|
+
storageKey() {
|
|
398
|
+
const key = this.persistKey().trim();
|
|
399
|
+
return key ? `ds-splitter:${key}` : null;
|
|
400
|
+
}
|
|
401
|
+
alongAxis(event) {
|
|
402
|
+
return this.orientation() === 'horizontal' ? event.clientX : event.clientY;
|
|
403
|
+
}
|
|
404
|
+
// ponytail: left-to-right only; under `dir="rtl"` a horizontal start pane is measured from the left.
|
|
405
|
+
fromPaneEdge(event, box) {
|
|
406
|
+
const horizontal = this.orientation() === 'horizontal';
|
|
407
|
+
if (this.pane() === 'start') {
|
|
408
|
+
return horizontal ? event.clientX - box.left : event.clientY - box.top;
|
|
409
|
+
}
|
|
410
|
+
return horizontal ? box.right - event.clientX : box.bottom - event.clientY;
|
|
411
|
+
}
|
|
412
|
+
clamp(size, upper) {
|
|
413
|
+
return Math.max(this.min(), Math.min(upper, size));
|
|
414
|
+
}
|
|
415
|
+
clampToBox(size) {
|
|
416
|
+
return this.clamp(size, this.room(this.panesBox()));
|
|
417
|
+
}
|
|
418
|
+
room(box) {
|
|
419
|
+
const handle = this.handle().nativeElement;
|
|
420
|
+
const room = this.orientation() === 'horizontal'
|
|
421
|
+
? box.width - handle.offsetWidth
|
|
422
|
+
: box.height - handle.offsetHeight;
|
|
423
|
+
return Math.min(this.max(), room);
|
|
424
|
+
}
|
|
425
|
+
// From the start pane's leading edge to the end pane's trailing edge: the host's border and
|
|
426
|
+
// padding lie outside it.
|
|
427
|
+
panesBox() {
|
|
428
|
+
const handle = this.handle().nativeElement;
|
|
429
|
+
const start = handle.previousElementSibling.getBoundingClientRect();
|
|
430
|
+
const end = handle.nextElementSibling.getBoundingClientRect();
|
|
431
|
+
return new DOMRect(start.left, start.top, end.right - start.left, end.bottom - start.top);
|
|
432
|
+
}
|
|
433
|
+
// At a limit the cursor shows the one direction the handle can still move. `ew-resize`, not
|
|
434
|
+
// `col-resize`: Windows draws `ew`, `e` and `w-resize` alike, so the cursor keeps its shape there.
|
|
435
|
+
cursorFor(size) {
|
|
436
|
+
const horizontal = this.orientation() === 'horizontal';
|
|
437
|
+
const atMin = size <= this.min();
|
|
438
|
+
if (!atMin && size < this.max()) {
|
|
439
|
+
return horizontal ? 'ew-resize' : 'ns-resize';
|
|
440
|
+
}
|
|
441
|
+
const towardsEnd = this.pane() === 'start' ? atMin : !atMin;
|
|
442
|
+
if (horizontal) {
|
|
443
|
+
return towardsEnd ? 'e-resize' : 'w-resize';
|
|
444
|
+
}
|
|
445
|
+
return towardsEnd ? 's-resize' : 'n-resize';
|
|
446
|
+
}
|
|
447
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
448
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SplitterComponent, isStandalone: true, selector: "ds-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, pane: { classPropertyName: "pane", publicName: "pane", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, defaultSize: { classPropertyName: "defaultSize", publicName: "defaultSize", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, persistKey: { classPropertyName: "persistKey", publicName: "persistKey", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, overdrag: { classPropertyName: "overdrag", publicName: "overdrag", isSignal: true, isRequired: false, transformFunction: null }, dragFog: { classPropertyName: "dragFog", publicName: "dragFog", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-pane": "pane()", "style.--_splitter-size": "current() + \"px\"", "class.springing": "springing()" } }, viewQueries: [{ propertyName: "handle", first: true, predicate: ["handle"], descendants: true, isSignal: true }, { propertyName: "fogStart", first: true, predicate: ["fogStart"], descendants: true, isSignal: true }, { propertyName: "fogEnd", first: true, predicate: ["fogEnd"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-fog-color: var( --ds-splitter-fog-color, color-mix(in srgb, var(--text-primary) 22%, transparent) );--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{grid-area:1/1}:host([data-orientation=horizontal]) .handle{grid-area:1/2}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{grid-area:1/3}:host([data-orientation=horizontal]) .fog-start{background-image:linear-gradient(to left,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=horizontal]) .fog-end{background-image:linear-gradient(to right,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{grid-area:1/1}:host([data-orientation=vertical]) .handle{grid-area:2/1}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{grid-area:3/1}:host([data-orientation=vertical]) .fog-start{background-image:linear-gradient(to top,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]) .fog-end{background-image:linear-gradient(to bottom,var(--_splitter-fog-color),transparent 60%)}.fog{pointer-events:none;opacity:0;transition:opacity var(--duration-slow) var(--ease-standard)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}:host(.springing) .fog{transition:opacity var(--duration-slow) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] });
|
|
449
|
+
}
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitterComponent, decorators: [{
|
|
451
|
+
type: Component,
|
|
452
|
+
args: [{ selector: 'ds-splitter', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: {
|
|
453
|
+
'[attr.data-orientation]': 'orientation()',
|
|
454
|
+
'[attr.data-pane]': 'pane()',
|
|
455
|
+
'[style.--_splitter-size]': 'current() + "px"',
|
|
456
|
+
'[class.springing]': 'springing()',
|
|
457
|
+
}, template: "<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_splitter-gap: var(--ds-splitter-gap, var(--space-2));--_splitter-line-color: var(--ds-splitter-line-color, var(--border-strong));--_splitter-drag-color: var(--ds-splitter-drag-color, var(--text-muted));--_splitter-grip-color: var(--ds-splitter-grip-color, var(--text-muted));--_splitter-overdrag-line-scale: var(--ds-splitter-overdrag-line-scale, 3);--_splitter-fog-color: var( --ds-splitter-fog-color, color-mix(in srgb, var(--text-primary) 22%, transparent) );--_splitter-grip-dot: calc(var(--border-width-strong) + var(--border-width-default));--_splitter-sized: min(var(--_splitter-size), 100% - var(--_splitter-gap));--_splitter-rest: minmax(0, 1fr);display:grid;min-inline-size:0;min-block-size:0}:host([data-pane=start]){--_splitter-start: var(--_splitter-sized);--_splitter-end: var(--_splitter-rest)}:host([data-pane=end]){--_splitter-start: var(--_splitter-rest);--_splitter-end: var(--_splitter-sized)}:host([data-orientation=horizontal]){grid-template-columns:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end);grid-template-rows:minmax(0,1fr)}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{grid-area:1/1}:host([data-orientation=horizontal]) .handle{grid-area:1/2}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{grid-area:1/3}:host([data-orientation=horizontal]) .fog-start{background-image:linear-gradient(to left,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=horizontal]) .fog-end{background-image:linear-gradient(to right,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]){grid-template-columns:minmax(0,1fr);grid-template-rows:var(--_splitter-start) var(--_splitter-gap) var(--_splitter-end)}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{grid-area:1/1}:host([data-orientation=vertical]) .handle{grid-area:2/1}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{grid-area:3/1}:host([data-orientation=vertical]) .fog-start{background-image:linear-gradient(to top,var(--_splitter-fog-color),transparent 60%)}:host([data-orientation=vertical]) .fog-end{background-image:linear-gradient(to bottom,var(--_splitter-fog-color),transparent 60%)}.fog{pointer-events:none;opacity:0;transition:opacity var(--duration-slow) var(--ease-standard)}.pane{min-inline-size:0;min-block-size:0;overflow:auto}:host([data-orientation=horizontal]) .pane-start,:host([data-orientation=horizontal]) .fog-start{transform-origin:left center}:host([data-orientation=horizontal]) .pane-end,:host([data-orientation=horizontal]) .fog-end{transform-origin:right center}:host([data-orientation=vertical]) .pane-start,:host([data-orientation=vertical]) .fog-start{transform-origin:center top}:host([data-orientation=vertical]) .pane-end,:host([data-orientation=vertical]) .fog-end{transform-origin:center bottom}:host(.springing) :is(.pane,.handle){transition:transform var(--duration-slower) var(--ease-spring)}:host(.springing) .fog{transition:opacity var(--duration-slow) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{--_splitter-line-thickness: calc( 1 + (var(--_splitter-overdrag-line-scale) - 1) * var(--_splitter-pull-ratio, 0) )}:host([data-orientation=horizontal]) .handle:after{transform:scaleX(var(--_splitter-line-thickness))}:host([data-orientation=vertical]) .handle:after{transform:scaleY(var(--_splitter-line-thickness))}:host(.springing) .handle:after{transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),transform var(--duration-slower) var(--ease-spring)}.handle{position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.handle:after{position:absolute;content:\"\";background-color:var(--_splitter-line-color);border-radius:var(--radius-pill);opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.handle:before{position:absolute;inset-block-start:50%;inset-inline-start:50%;content:\"\";background-image:radial-gradient(circle closest-side,var(--_splitter-grip-color) 98%,transparent);background-position:0 0;translate:-50% -50%;transition:opacity var(--duration-fast) var(--ease-standard)}.handle:hover:after,.handle:hover:before{transition-delay:var(--duration-slow)}.handle:hover:after,.handle.dragging:after,.handle:focus-visible:after{opacity:1}.handle:hover:before,.handle.dragging:before,.handle:focus-visible:before{opacity:0}.handle.dragging:after{background-color:var(--_splitter-drag-color)}.handle.dragging:after,.handle.dragging:before{transition-delay:0s}@media not (forced-colors:active){.handle:focus-visible{outline:none}}.handle:focus-visible:after{background-color:var(--focus-ring-color)}:host([data-orientation=horizontal]) .handle:after{inset-block:0;inset-inline-start:calc(50% - var(--border-width-strong) / 2);inline-size:var(--border-width-strong)}:host([data-orientation=horizontal]) .handle:before{inline-size:var(--_splitter-grip-dot);block-size:calc(var(--_splitter-grip-dot) * 6);background-size:var(--_splitter-grip-dot) calc(var(--_splitter-grip-dot) * 2);background-repeat:repeat-y}:host([data-orientation=vertical]) .handle:after{inset-inline:0;inset-block-start:calc(50% - var(--border-width-strong) / 2);block-size:var(--border-width-strong)}:host([data-orientation=vertical]) .handle:before{inline-size:calc(var(--_splitter-grip-dot) * 6);block-size:var(--_splitter-grip-dot);background-size:calc(var(--_splitter-grip-dot) * 2) var(--_splitter-grip-dot);background-repeat:repeat-x}\n"] }]
|
|
458
|
+
}], ctorParameters: () => [], propDecorators: { handle: [{ type: i0.ViewChild, args: ['handle', { isSignal: true }] }], fogStart: [{ type: i0.ViewChild, args: ['fogStart', { isSignal: true }] }], fogEnd: [{ type: i0.ViewChild, args: ['fogEnd', { isSignal: true }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], pane: [{ type: i0.Input, args: [{ isSignal: true, alias: "pane", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], defaultSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSize", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], persistKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistKey", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], overdrag: [{ type: i0.Input, args: [{ isSignal: true, alias: "overdrag", required: false }] }], dragFog: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragFog", required: false }] }] } });
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Generated bundle index. Do not edit.
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
export { SplitterComponent };
|
|
465
|
+
//# sourceMappingURL=ids-group-ltd-ids-design-system-components-splitter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-splitter.mjs","sources":["../../../src/lib/components/splitter/splitter-dragging-styles.component.ts","../../../src/lib/components/splitter/splitter.component.ts","../../../src/lib/components/splitter/splitter.component.html","../../../src/lib/components/splitter/ids-group-ltd-ids-design-system-components-splitter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n} from '@angular/core';\n\n/** @internal Never rendered: creating it once registers the page-wide drag rules globally. */\n@Component({\n standalone: true,\n template: '',\n styleUrl: './splitter-dragging.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SplitterDraggingStylesComponent {}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n booleanAttribute,\n ElementRef,\n OnDestroy,\n NgZone,\n OnInit,\n ViewEncapsulation,\n computed,\n inject,\n input,\n model,\n numberAttribute,\n signal,\n viewChild,\n} from '@angular/core';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport {\n DS_INTL,\n DS_INTL_DEFAULTS,\n retainStyles,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { SplitterDraggingStylesComponent } from './splitter-dragging-styles.component';\nimport type {\n SplitterOrientation,\n SplitterOverdrag,\n SplitterPane,\n} from './splitter.types';\n\nconst STEP = 16;\nconst LARGE_STEP = 64;\n// The farthest the rubber band pulls past a limit, approached and never reached: 100px, and never more\n// than a third of the pane it squashes, whose content would otherwise read as distorted.\nconst OVERDRAG_CAP = 100;\nconst OVERDRAG_SQUASH = 1 / 3;\n// Fog strength is speed x distance, each 0.1..1: full from 1.2 px/ms and from 180px off the grab point.\nconst FOG_FULL_SPEED = 1.2;\nconst FOG_FULL_DISTANCE = 180;\nconst FOG_IDLE = 180;\n\n/**\n * Two panes with a handle between them that resizes one of them. Slots: `[start]` and `[end]`.\n * Drag the handle, or focus it and use the arrow keys (Shift or PageUp / PageDown for a large step,\n * Home / End for the limits); a double click returns to `defaultSize`. Give the splitter a size: it\n * fills the box its parent gives it and never grows to its content.\n */\n@Component({\n selector: 'ds-splitter',\n standalone: true,\n templateUrl: './splitter.component.html',\n styleUrl: './splitter.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-pane]': 'pane()',\n '[style.--_splitter-size]': 'current() + \"px\"',\n '[class.springing]': 'springing()',\n },\n})\nexport class SplitterComponent implements OnInit, OnDestroy {\n private readonly intl = inject(DS_INTL);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly handle =\n viewChild.required<ElementRef<HTMLElement>>('handle');\n private readonly fogStart = viewChild<ElementRef<HTMLElement>>('fogStart');\n private readonly fogEnd = viewChild<ElementRef<HTMLElement>>('fogEnd');\n\n /** `'horizontal'`: panes side by side. `'vertical'`: panes stacked. */\n readonly orientation = input<SplitterOrientation>('horizontal');\n /** The pane `size` measures; the other pane takes the rest. */\n readonly pane = input<SplitterPane>('start');\n /** Size of `pane` in px, two-way bound; `null` shows `defaultSize`. A drag writes it once, on release. */\n readonly size = model<number | null>(null);\n /** Size in px when `size` is `null`, and what a double click on the handle returns to. */\n readonly defaultSize = input(320, { transform: numberAttribute });\n /** Smallest size in px, inclusive. */\n readonly min = input(160, { transform: numberAttribute });\n /** Largest size in px, inclusive. The pane never takes more than the splitter less the handle. */\n readonly max = input(640, { transform: numberAttribute });\n /** Saves the size in `localStorage` under `ds-splitter:<key>` and restores it on init, over `size`. */\n readonly persistKey = input<string>('');\n /** Accessible name of the handle; unset falls back to `DS_INTL.splitter.label`. Name what it resizes. */\n readonly ariaLabel = input<string | null>(null);\n /** Dragged past `min` or `max`: `'elastic'` follows the pointer with growing resistance and springs\n * back on release, `'none'` stops at the limit. Off under `prefers-reduced-motion: reduce`. */\n readonly overdrag = input<SplitterOverdrag>('elastic');\n /** While dragging, shades the pane the handle moves towards, stronger the faster and farther the drag;\n * the shade rides the rubber band past a limit and fades when the hand stops or lets go. Colour:\n * `--ds-splitter-fog-color`. Off under `prefers-reduced-motion: reduce`. */\n readonly dragFog = input(false, { transform: booleanAttribute });\n\n protected readonly startId = nextControlId('ds-splitter-pane');\n protected readonly endId = nextControlId('ds-splitter-pane');\n protected readonly dragging = signal(false);\n protected readonly springing = signal(false);\n protected readonly current = computed(() =>\n this.clamp(this.size() ?? this.defaultSize(), this.max()),\n );\n protected readonly cursor = computed(() => this.cursorFor(this.current()));\n protected readonly label = computed(\n () =>\n this.ariaLabel() ||\n this.intl().splitter?.label ||\n DS_INTL_DEFAULTS.splitter.label,\n );\n // ARIA names the orientation of the separator line, which is across the panes' axis.\n protected readonly lineOrientation = computed(() =>\n this.orientation() === 'horizontal' ? 'vertical' : 'horizontal',\n );\n\n private drag: {\n pointerId: number;\n grab: number;\n size: number;\n // Measured once at the grab: the rubber band transforms the panes, so their boxes are not read mid-drag.\n box: DOMRect;\n elastic: boolean;\n pull: number;\n fog: boolean;\n // Pointer along the axis: at the grab, at the last frame, and when.\n start: number;\n last: number;\n lastTime: number;\n speed: number;\n velocity: number;\n // +1 towards the end pane, -1 towards the start pane, 0 before the first 2px of travel.\n side: number;\n reversalSince: number | null;\n } | null = null;\n private pendingMove: PointerEvent | null = null;\n private frame = 0;\n private springTimer = 0;\n private fogTimer = 0;\n\n constructor() {\n retainStyles(SplitterDraggingStylesComponent);\n }\n\n ngOnInit(): void {\n const key = this.storageKey();\n if (!key) {\n return;\n }\n try {\n const stored = Number(localStorage.getItem(key) ?? NaN);\n if (Number.isFinite(stored)) {\n this.size.set(stored);\n }\n } catch {\n // Storage blocked or absent (SSR): keep the bound size.\n }\n }\n\n ngOnDestroy(): void {\n this.endDrag();\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (event.button !== 0) {\n return;\n }\n event.preventDefault();\n const handle = this.handle().nativeElement;\n handle.setPointerCapture(event.pointerId);\n // A grab during the spring-back stops it where the layout puts the handle, before anything is measured.\n this.stopSpring();\n // The grab point's distance from the measured pane's edge stays fixed, so the handle never jumps.\n const reduced = !!this.document.defaultView?.matchMedia(\n '(prefers-reduced-motion: reduce)',\n ).matches;\n const at = this.alongAxis(event);\n this.drag = {\n pointerId: event.pointerId,\n grab: this.fromPaneEdge(event, handle.getBoundingClientRect()),\n size: this.current(),\n box: this.panesBox(),\n elastic: this.overdrag() === 'elastic' && !reduced,\n pull: 0,\n fog: this.dragFog() && !reduced,\n start: at,\n last: at,\n lastTime: event.timeStamp,\n speed: 0,\n velocity: 0,\n side: 0,\n reversalSince: null,\n };\n this.dragging.set(true);\n // Outside Angular: a move writes the DOM itself, so it must not start change detection per frame.\n this.zone.runOutsideAngular(() => {\n handle.addEventListener('pointermove', this.onPointerMove);\n this.document.defaultView?.addEventListener('blur', this.onWindowBlur);\n });\n const root = this.document.documentElement;\n root.setAttribute('data-ds-splitter-dragging', '');\n root.style.setProperty('--_ds-splitter-cursor', this.cursor());\n }\n\n private readonly onPointerMove = (event: PointerEvent): void => {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n this.pendingMove = event;\n if (!this.frame) {\n this.frame = requestAnimationFrame(() => this.applyMove());\n }\n };\n\n private applyMove(): void {\n this.frame = 0;\n const event = this.pendingMove;\n this.pendingMove = null;\n if (!event || !this.drag) {\n return;\n }\n const { box } = this.drag;\n const raw = this.fromPaneEdge(event, box) - this.drag.grab;\n const room = this.room(box);\n const size = this.clamp(Math.round(raw), room);\n if (this.drag.elastic) {\n // Against the unrounded limit: within min and max the excess is exactly 0, not the rounding.\n this.stretch(raw - this.clamp(raw, room));\n }\n if (this.drag.fog) {\n this.shade(event);\n }\n if (size === this.drag.size) {\n return;\n }\n this.drag.size = size;\n // Written straight to the DOM: no change detection per frame. `size` is set once, on release.\n const cursor = this.cursorFor(size);\n const handle = this.handle().nativeElement;\n this.host.nativeElement.style.setProperty('--_splitter-size', `${size}px`);\n handle.setAttribute('aria-valuenow', String(size));\n handle.style.cursor = cursor;\n this.document.documentElement.style.setProperty(\n '--_ds-splitter-cursor',\n cursor,\n );\n }\n\n // Past a limit by `excess` px of size, the pull approaches the cap and never reaches it. The handle\n // moves by the pull, the measured pane stretches by it and the other squashes by it (the other way\n // round past `min`), each from its outer edge, so no gap opens. Transforms only: the layout keeps\n // the clamped size.\n private stretch(excess: number): void {\n const drag = this.drag!;\n const [handle, measured, other] = this.movingParts();\n const horizontal = this.orientation() === 'horizontal';\n const extent = (element: HTMLElement) =>\n horizontal ? element.offsetWidth : element.offsetHeight;\n const squashed = excess > 0 ? other : measured;\n const cap = Math.min(OVERDRAG_CAP, extent(squashed) * OVERDRAG_SQUASH);\n const pull =\n cap > 0\n ? Math.sign(excess) * cap * (1 - 1 / (Math.abs(excess) / cap + 1))\n : 0;\n if (pull === drag.pull) {\n return;\n }\n drag.pull = pull;\n if (pull === 0) {\n this.clearTransforms();\n\n return;\n }\n const scale = horizontal ? 'scaleX' : 'scaleY';\n const shift = this.pane() === 'start' ? pull : -pull;\n handle.style.transform = `translate${horizontal ? 'X' : 'Y'}(${shift}px)`;\n // The line thickens on the same resistance curve; a custom property, because the line is a pseudo-element.\n handle.style.setProperty(\n '--_splitter-pull-ratio',\n String(Math.abs(pull) / cap),\n );\n measured.style.transform = `${scale}(${(extent(measured) + pull) / extent(measured)})`;\n other.style.transform = `${scale}(${Math.max(0, extent(other) - pull) / extent(other)})`;\n this.syncFogTransforms();\n }\n\n // The side is the pointer's direction, never where it stands: past a limit the pointer stays beyond\n // the line while the hand already pulls back, and the fog has to turn with the hand.\n private shade(event: PointerEvent): void {\n const drag = this.drag!;\n const at = this.alongAxis(event);\n const step = at - drag.last;\n const elapsed = Math.max(1, event.timeStamp - drag.lastTime);\n drag.speed = drag.speed * 0.6 + (Math.abs(step) / elapsed) * 0.4;\n drag.velocity +=\n (1 - Math.exp(-elapsed / 100)) * (step / elapsed - drag.velocity);\n drag.side = this.sideOf(drag, at, event.timeStamp);\n drag.last = at;\n drag.lastTime = event.timeStamp;\n const start = this.fogStart()?.nativeElement;\n const end = this.fogEnd()?.nativeElement;\n if (step === 0 || drag.side === 0 || !start || !end) {\n return;\n }\n const factor = (value: number) => Math.max(0.1, Math.min(1, value));\n const strength =\n factor(drag.speed / FOG_FULL_SPEED) *\n factor(Math.abs(at - drag.start) / FOG_FULL_DISTANCE);\n const [toward, away] = drag.side > 0 ? [end, start] : [start, end];\n toward.style.opacity = String(strength);\n away.style.removeProperty('opacity');\n clearTimeout(this.fogTimer);\n this.fogTimer = window.setTimeout(() => this.clearFog(), FOG_IDLE);\n }\n\n // Under 0.05 px/ms the side holds, and a reversal must last 100ms before it flips, so a slow or\n // shaky hand never flickers the fog between the panes.\n private sideOf(\n drag: NonNullable<SplitterComponent['drag']>,\n at: number,\n now: number,\n ): number {\n if (drag.side === 0) {\n return Math.abs(at - drag.start) >= 2 ? Math.sign(at - drag.start) : 0;\n }\n const wanted =\n Math.abs(drag.velocity) < 0.05 ? 0 : Math.sign(drag.velocity);\n if (wanted === 0 || wanted === drag.side) {\n drag.reversalSince = null;\n\n return drag.side;\n }\n drag.reversalSince ??= now;\n if (now - drag.reversalSince < 100) {\n return drag.side;\n }\n drag.reversalSince = null;\n\n return wanted;\n }\n\n private clearFog(): void {\n clearTimeout(this.fogTimer);\n for (const fog of [this.fogStart(), this.fogEnd()]) {\n fog?.nativeElement.style.removeProperty('opacity');\n }\n }\n\n // Each fog layer takes its pane's rubber-band transform, so the shade stays on the pane's edge.\n private syncFogTransforms(): void {\n const handle = this.handle().nativeElement;\n const pairs: [HTMLElement | undefined, Element | null][] = [\n [this.fogStart()?.nativeElement, handle.previousElementSibling],\n [this.fogEnd()?.nativeElement, handle.nextElementSibling],\n ];\n for (const [fog, pane] of pairs) {\n if (fog) {\n fog.style.transform = (pane as HTMLElement).style.transform;\n }\n }\n }\n\n // The handle, the pane `size` measures, then the other pane.\n private movingParts(): [HTMLElement, HTMLElement, HTMLElement] {\n const handle = this.handle().nativeElement;\n const start = handle.previousElementSibling as HTMLElement;\n const end = handle.nextElementSibling as HTMLElement;\n\n return this.pane() === 'start'\n ? [handle, start, end]\n : [handle, end, start];\n }\n\n private clearTransforms(): void {\n for (const element of this.movingParts()) {\n element.style.transform = '';\n }\n this.handle().nativeElement.style.removeProperty('--_splitter-pull-ratio');\n this.syncFogTransforms();\n }\n\n private stopSpring(): void {\n clearTimeout(this.springTimer);\n this.springing.set(false);\n this.clearTransforms();\n }\n\n // The class adds the transition; clearing the transforms in the next frame plays it back to rest.\n private springBack(): void {\n this.springing.set(true);\n this.zone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n this.clearTransforms();\n this.springTimer = window.setTimeout(\n () => this.zone.run(() => this.springing.set(false)),\n 600,\n );\n });\n });\n }\n\n protected onPointerUp(event: PointerEvent): void {\n if (event.pointerId !== this.drag?.pointerId) {\n return;\n }\n this.finishDrag();\n }\n\n // A release over a document of its own (an iframe, an Electron webview) or outside the window can\n // reach no listener here: losing capture or focus is then the only sign the drag is over.\n private readonly finishDrag = (): void => {\n if (!this.drag) {\n return;\n }\n if (this.frame) {\n cancelAnimationFrame(this.frame);\n this.applyMove();\n }\n const { size, pull } = this.drag;\n this.endDrag();\n if (pull !== 0) {\n this.springBack();\n }\n if (size !== this.current()) {\n this.commit(size);\n }\n };\n\n private readonly onWindowBlur = (): void => this.zone.run(this.finishDrag);\n\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n // An arrow moves the handle; the end pane grows as the handle moves towards the start.\n const towardsEnd = this.pane() === 'start' ? 1 : -1;\n const step = event.shiftKey ? LARGE_STEP : STEP;\n const now = this.current();\n const next: Record<string, number> = {\n [horizontal ? 'ArrowRight' : 'ArrowDown']: now + step * towardsEnd,\n [horizontal ? 'ArrowLeft' : 'ArrowUp']: now - step * towardsEnd,\n PageUp: now + LARGE_STEP,\n PageDown: now - LARGE_STEP,\n Home: this.min(),\n End: this.max(),\n };\n if (!(event.key in next)) {\n return;\n }\n event.preventDefault();\n this.commit(this.clampToBox(next[event.key]));\n }\n\n protected reset(): void {\n this.size.set(null);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.removeItem(key);\n } catch {\n // Storage blocked: the reset still applies for this session.\n }\n }\n }\n\n private commit(size: number): void {\n this.size.set(size);\n const key = this.storageKey();\n if (key) {\n try {\n localStorage.setItem(key, String(size));\n } catch {\n // Full or blocked: a lost pane size is not worth an error.\n }\n }\n }\n\n private endDrag(): void {\n if (!this.drag) {\n return;\n }\n const handle = this.handle().nativeElement;\n handle.removeEventListener('pointermove', this.onPointerMove);\n this.document.defaultView?.removeEventListener('blur', this.onWindowBlur);\n cancelAnimationFrame(this.frame);\n this.frame = 0;\n this.pendingMove = null;\n try {\n handle.releasePointerCapture(this.drag.pointerId);\n } catch {\n // The pointer can already be gone.\n }\n this.drag = null;\n this.clearFog();\n this.dragging.set(false);\n const root = this.document.documentElement;\n root.removeAttribute('data-ds-splitter-dragging');\n root.style.removeProperty('--_ds-splitter-cursor');\n }\n\n private storageKey(): string | null {\n const key = this.persistKey().trim();\n\n return key ? `ds-splitter:${key}` : null;\n }\n\n private alongAxis(event: PointerEvent): number {\n return this.orientation() === 'horizontal' ? event.clientX : event.clientY;\n }\n\n // ponytail: left-to-right only; under `dir=\"rtl\"` a horizontal start pane is measured from the left.\n private fromPaneEdge(event: PointerEvent, box: DOMRect): number {\n const horizontal = this.orientation() === 'horizontal';\n if (this.pane() === 'start') {\n return horizontal ? event.clientX - box.left : event.clientY - box.top;\n }\n\n return horizontal ? box.right - event.clientX : box.bottom - event.clientY;\n }\n\n private clamp(size: number, upper: number): number {\n return Math.max(this.min(), Math.min(upper, size));\n }\n\n private clampToBox(size: number): number {\n return this.clamp(size, this.room(this.panesBox()));\n }\n\n private room(box: DOMRect): number {\n const handle = this.handle().nativeElement;\n const room =\n this.orientation() === 'horizontal'\n ? box.width - handle.offsetWidth\n : box.height - handle.offsetHeight;\n\n return Math.min(this.max(), room);\n }\n\n // From the start pane's leading edge to the end pane's trailing edge: the host's border and\n // padding lie outside it.\n private panesBox(): DOMRect {\n const handle = this.handle().nativeElement;\n const start = (\n handle.previousElementSibling as HTMLElement\n ).getBoundingClientRect();\n const end = (\n handle.nextElementSibling as HTMLElement\n ).getBoundingClientRect();\n\n return new DOMRect(\n start.left,\n start.top,\n end.right - start.left,\n end.bottom - start.top,\n );\n }\n\n // At a limit the cursor shows the one direction the handle can still move. `ew-resize`, not\n // `col-resize`: Windows draws `ew`, `e` and `w-resize` alike, so the cursor keeps its shape there.\n private cursorFor(size: number): string {\n const horizontal = this.orientation() === 'horizontal';\n const atMin = size <= this.min();\n if (!atMin && size < this.max()) {\n return horizontal ? 'ew-resize' : 'ns-resize';\n }\n const towardsEnd = this.pane() === 'start' ? atMin : !atMin;\n if (horizontal) {\n return towardsEnd ? 'e-resize' : 'w-resize';\n }\n\n return towardsEnd ? 's-resize' : 'n-resize';\n }\n}\n","<div\n class=\"pane pane-start\"\n [id]=\"startId\">\n <ng-content select=\"[start]\" />\n</div>\n\n<div\n #handle\n class=\"handle\"\n role=\"separator\"\n tabindex=\"0\"\n [class.dragging]=\"dragging()\"\n [style.cursor]=\"cursor()\"\n [attr.aria-orientation]=\"lineOrientation()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-controls]=\"pane() === 'start' ? startId : endId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (lostpointercapture)=\"onPointerUp($event)\"\n (dblclick)=\"reset()\"\n (keydown)=\"onKeydown($event)\">\n</div>\n\n<div\n class=\"pane pane-end\"\n [id]=\"endId\">\n <ng-content select=\"[end]\" />\n</div>\n\n@if (dragFog()) {\n <div\n #fogStart\n class=\"fog fog-start\"\n aria-hidden=\"true\">\n </div>\n\n <div\n #fogEnd\n class=\"fog fog-end\"\n aria-hidden=\"true\">\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;MAQa,+BAA+B,CAAA;wGAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,wEALhC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+QAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MA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