@acorex/cdk 22.4.62 → 22.4.64
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.
|
@@ -14,6 +14,11 @@ class AXDrawerItemDirective {
|
|
|
14
14
|
this.zIndexService = inject(AXZIndexService);
|
|
15
15
|
this.localeService = inject(AXLocaleService);
|
|
16
16
|
this.zToken = null;
|
|
17
|
+
/** Holds the stacking token until the close transition finishes. */
|
|
18
|
+
this.zIndexReleaseTimer = null;
|
|
19
|
+
/** Invalidates a queued open transition when the drawer closes or reopens. */
|
|
20
|
+
this.openAnimationId = 0;
|
|
21
|
+
this.openAnimationFrame = null;
|
|
17
22
|
this.collapseState = signal(false, /* @ts-ignore */
|
|
18
23
|
...(ngDevMode ? [{ debugName: "collapseState" }] : /* istanbul ignore next */ []));
|
|
19
24
|
// Reactive RTL flag derived from the active locale profile so the drawer
|
|
@@ -120,6 +125,9 @@ class AXDrawerItemDirective {
|
|
|
120
125
|
show() {
|
|
121
126
|
if (!this.htmlElem())
|
|
122
127
|
return;
|
|
128
|
+
// A close animation may still be holding the previous token. Cancel that
|
|
129
|
+
// release so a reopen does not clear the new stacking level mid-slide.
|
|
130
|
+
this.cancelScheduledZIndexRelease();
|
|
123
131
|
// Idempotency guard: if the drawer is already shown, do not re-acquire a
|
|
124
132
|
// new z-index. Without this guard, repeated show() calls (e.g. from effects
|
|
125
133
|
// re-evaluating on window resize or input changes) would keep incrementing
|
|
@@ -144,108 +152,180 @@ class AXDrawerItemDirective {
|
|
|
144
152
|
// Acquire z-index from service
|
|
145
153
|
this.zToken = this.zIndexService.acquire();
|
|
146
154
|
this.htmlElem().style.zIndex = String(this.zToken.zIndex);
|
|
147
|
-
this.htmlElem().style.transition = `${this.transition()}ms all ease`;
|
|
148
155
|
this.htmlElem().style.display = 'block';
|
|
156
|
+
// The closed drawer starts at display:none, so it has no off-screen box to
|
|
157
|
+
// transition from. Park it closed with transitions off, flush layout, then
|
|
158
|
+
// slide it open on the next frame. Later opens already have that offset
|
|
159
|
+
// from hide(), which is why only the first open used to jump.
|
|
160
|
+
const el = this.htmlElem();
|
|
161
|
+
el.style.transition = 'none';
|
|
162
|
+
this.applyClosedPosition();
|
|
163
|
+
el.getBoundingClientRect();
|
|
164
|
+
this.scheduleOpenAnimation();
|
|
165
|
+
if (this.backDrop() && this.mode() === 'overlay') {
|
|
166
|
+
this.addBackdrop();
|
|
167
|
+
}
|
|
168
|
+
this.collapseState.set(true);
|
|
169
|
+
this.collapsed.set(false);
|
|
170
|
+
this.collapseStateChanged.emit(this.collapsed());
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Hides the drawer by animating it out of view.
|
|
174
|
+
*
|
|
175
|
+
* @returns void - No return value. The drawer becomes hidden.
|
|
176
|
+
*/
|
|
177
|
+
hide() {
|
|
178
|
+
if (!this.htmlElem())
|
|
179
|
+
return;
|
|
180
|
+
this.cancelScheduledOpen();
|
|
181
|
+
this.applyClosedPosition();
|
|
182
|
+
if (this.backDrop() && this.mode() === 'overlay') {
|
|
183
|
+
this.removeBackdrop();
|
|
184
|
+
}
|
|
185
|
+
this.collapseState.set(false);
|
|
186
|
+
this.collapsed.set(true);
|
|
187
|
+
this.collapseStateChanged.emit(this.collapsed());
|
|
188
|
+
// Keep the acquired z-index until the slide-out finishes. Clearing it here
|
|
189
|
+
// drops the drawer behind page content for the rest of the transition.
|
|
190
|
+
this.scheduleZIndexRelease();
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Toggles the drawer state between visible and hidden.
|
|
194
|
+
*
|
|
195
|
+
* @returns void - No return value. The drawer state is toggled.
|
|
196
|
+
*/
|
|
197
|
+
toggle() {
|
|
198
|
+
if (this.collapseState()) {
|
|
199
|
+
this.hide();
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
this.show();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
applyOpenPosition() {
|
|
206
|
+
const el = this.htmlElem();
|
|
207
|
+
if (!el)
|
|
208
|
+
return;
|
|
149
209
|
if (this.mode() === 'overlay') {
|
|
150
210
|
if (this.location() === 'start') {
|
|
151
|
-
this.isRtl() ? (
|
|
211
|
+
this.isRtl() ? (el.style.right = '0px') : (el.style.left = '0px');
|
|
152
212
|
}
|
|
153
213
|
if (this.location() === 'end') {
|
|
154
|
-
this.isRtl() ? (
|
|
214
|
+
this.isRtl() ? (el.style.left = '0px') : (el.style.right = '0px');
|
|
155
215
|
}
|
|
156
216
|
if (this.location() === 'top' || this.location() === 'bottom') {
|
|
157
|
-
|
|
217
|
+
el.style.top = '0px';
|
|
158
218
|
}
|
|
159
219
|
}
|
|
160
220
|
if (this.mode() === 'push') {
|
|
161
221
|
if (this.location() === 'start') {
|
|
162
|
-
|
|
222
|
+
el.style.marginInlineStart = '0px';
|
|
163
223
|
}
|
|
164
224
|
if (this.location() === 'end') {
|
|
165
|
-
|
|
225
|
+
el.style.marginInlineEnd = '0px';
|
|
166
226
|
}
|
|
167
227
|
if (this.location() === 'bottom') {
|
|
168
|
-
|
|
228
|
+
el.style.marginBlockStart = '0px';
|
|
169
229
|
}
|
|
170
230
|
if (this.location() === 'top') {
|
|
171
|
-
|
|
231
|
+
el.style.marginBlockStart = '0px';
|
|
172
232
|
}
|
|
173
233
|
}
|
|
174
|
-
if (this.backDrop() && this.mode() === 'overlay') {
|
|
175
|
-
this.addBackdrop();
|
|
176
|
-
}
|
|
177
|
-
this.collapseState.set(true);
|
|
178
|
-
this.collapsed.set(false);
|
|
179
|
-
this.collapseStateChanged.emit(this.collapsed());
|
|
180
234
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* @returns void - No return value. The drawer becomes hidden.
|
|
185
|
-
*/
|
|
186
|
-
hide() {
|
|
187
|
-
if (!this.htmlElem())
|
|
235
|
+
applyClosedPosition() {
|
|
236
|
+
const el = this.htmlElem();
|
|
237
|
+
if (!el)
|
|
188
238
|
return;
|
|
189
|
-
|
|
190
|
-
this.zIndexService.release(this.zToken);
|
|
191
|
-
this.zToken = null;
|
|
192
|
-
this.htmlElem().style.zIndex = '';
|
|
193
|
-
const rect = this.htmlElem().getBoundingClientRect();
|
|
239
|
+
const rect = el.getBoundingClientRect();
|
|
194
240
|
if (this.mode() === 'push') {
|
|
195
241
|
if (this.location() === 'end') {
|
|
196
|
-
|
|
242
|
+
el.style.marginInlineEnd = `-${rect.width}px`;
|
|
197
243
|
}
|
|
198
244
|
if (this.location() === 'start') {
|
|
199
|
-
|
|
245
|
+
el.style.marginInlineStart = `-${rect.width}px`;
|
|
200
246
|
}
|
|
201
247
|
if (this.location() === 'bottom') {
|
|
202
|
-
|
|
248
|
+
el.style.marginBlockStart = `${rect.height}px`;
|
|
203
249
|
}
|
|
204
250
|
if (this.location() === 'top') {
|
|
205
|
-
|
|
251
|
+
el.style.marginBlockStart = `-${rect.height}px`;
|
|
206
252
|
}
|
|
207
253
|
}
|
|
208
254
|
if (this.mode() === 'overlay') {
|
|
209
255
|
if (this.location() === 'start') {
|
|
210
|
-
this.isRtl()
|
|
211
|
-
? (this.htmlElem().style.right = `-${rect.width}px`)
|
|
212
|
-
: (this.htmlElem().style.left = `-${rect.width}px`);
|
|
256
|
+
this.isRtl() ? (el.style.right = `-${rect.width}px`) : (el.style.left = `-${rect.width}px`);
|
|
213
257
|
}
|
|
214
258
|
if (this.location() === 'end') {
|
|
215
|
-
this.isRtl()
|
|
216
|
-
? (this.htmlElem().style.left = `-${rect.width}px`)
|
|
217
|
-
: (this.htmlElem().style.right = `-${rect.width}px`);
|
|
259
|
+
this.isRtl() ? (el.style.left = `-${rect.width}px`) : (el.style.right = `-${rect.width}px`);
|
|
218
260
|
}
|
|
219
261
|
if (this.location() === 'top') {
|
|
220
|
-
this.isRtl()
|
|
221
|
-
? (this.htmlElem().style.bottom = `-${rect.height}px`)
|
|
222
|
-
: (this.htmlElem().style.top = `-${rect.height}px`);
|
|
262
|
+
this.isRtl() ? (el.style.bottom = `-${rect.height}px`) : (el.style.top = `-${rect.height}px`);
|
|
223
263
|
}
|
|
224
264
|
if (this.location() === 'bottom') {
|
|
225
|
-
this.isRtl()
|
|
226
|
-
? (this.htmlElem().style.top = `${rect.height}px`)
|
|
227
|
-
: (this.htmlElem().style.bottom = `${rect.height}px`);
|
|
265
|
+
this.isRtl() ? (el.style.top = `${rect.height}px`) : (el.style.bottom = `${rect.height}px`);
|
|
228
266
|
}
|
|
229
267
|
}
|
|
230
|
-
|
|
231
|
-
|
|
268
|
+
}
|
|
269
|
+
scheduleOpenAnimation() {
|
|
270
|
+
this.cancelScheduledOpen();
|
|
271
|
+
const id = this.openAnimationId;
|
|
272
|
+
this.openAnimationFrame = requestAnimationFrame(() => {
|
|
273
|
+
if (id !== this.openAnimationId)
|
|
274
|
+
return;
|
|
275
|
+
this.openAnimationFrame = null;
|
|
276
|
+
this.commitOpenPosition();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
cancelScheduledOpen() {
|
|
280
|
+
this.openAnimationId++;
|
|
281
|
+
if (this.openAnimationFrame != null) {
|
|
282
|
+
cancelAnimationFrame(this.openAnimationFrame);
|
|
283
|
+
this.openAnimationFrame = null;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
commitOpenPosition() {
|
|
287
|
+
const el = this.htmlElem();
|
|
288
|
+
if (!el || !this.collapseState())
|
|
289
|
+
return;
|
|
290
|
+
// Flush the closed position from the previous frame, then transition.
|
|
291
|
+
el.getBoundingClientRect();
|
|
292
|
+
el.style.transition = `${this.transition()}ms all ease`;
|
|
293
|
+
this.applyOpenPosition();
|
|
294
|
+
}
|
|
295
|
+
cancelScheduledZIndexRelease() {
|
|
296
|
+
if (this.zIndexReleaseTimer != null) {
|
|
297
|
+
clearTimeout(this.zIndexReleaseTimer);
|
|
298
|
+
this.zIndexReleaseTimer = null;
|
|
232
299
|
}
|
|
233
|
-
this.collapseState.set(false);
|
|
234
|
-
this.collapsed.set(true);
|
|
235
|
-
this.collapseStateChanged.emit(this.collapsed());
|
|
236
300
|
}
|
|
237
301
|
/**
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
302
|
+
* Releases the stacking token after the close transition. Opening keeps the
|
|
303
|
+
* token for the whole animation; closing must do the same, otherwise the
|
|
304
|
+
* drawer paints behind other elements while it is still sliding out.
|
|
241
305
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
306
|
+
scheduleZIndexRelease() {
|
|
307
|
+
this.cancelScheduledZIndexRelease();
|
|
308
|
+
const token = this.zToken;
|
|
309
|
+
if (!token || !this.htmlElem()) {
|
|
310
|
+
return;
|
|
245
311
|
}
|
|
246
|
-
|
|
247
|
-
|
|
312
|
+
const duration = Number(this.transition());
|
|
313
|
+
const release = () => {
|
|
314
|
+
this.zIndexReleaseTimer = null;
|
|
315
|
+
if (this.collapseState() || this.zToken !== token) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
this.zIndexService.release(token);
|
|
319
|
+
this.zToken = null;
|
|
320
|
+
if (this.htmlElem()) {
|
|
321
|
+
this.htmlElem().style.zIndex = '';
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
if (!Number.isFinite(duration) || duration <= 0) {
|
|
325
|
+
release();
|
|
326
|
+
return;
|
|
248
327
|
}
|
|
328
|
+
this.zIndexReleaseTimer = setTimeout(release, duration);
|
|
249
329
|
}
|
|
250
330
|
addBackdrop() {
|
|
251
331
|
const backdropElem = document.createElement('div');
|
|
@@ -287,7 +367,8 @@ class AXDrawerItemDirective {
|
|
|
287
367
|
}
|
|
288
368
|
}
|
|
289
369
|
ngOnDestroy() {
|
|
290
|
-
|
|
370
|
+
this.cancelScheduledOpen();
|
|
371
|
+
this.cancelScheduledZIndexRelease();
|
|
291
372
|
this.zIndexService.release(this.zToken);
|
|
292
373
|
this.zToken = null;
|
|
293
374
|
if (this.resizeObserver && this.htmlElem()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-cdk-drawer.mjs","sources":["../../../../packages/cdk/drawer/src/lib/drawer-item.directive.ts","../../../../packages/cdk/drawer/src/lib/drawer-container.directive.ts","../../../../packages/cdk/drawer/src/lib/drawer.module.ts","../../../../packages/cdk/drawer/src/acorex-cdk-drawer.ts"],"sourcesContent":["import { AXClickEvent } from '@acorex/cdk/common';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport { AXZIndexService, AXZToken } from '@acorex/core/z-index';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n Directive,\n effect,\n ElementRef,\n inject,\n model,\n OnDestroy,\n output,\n PLATFORM_ID,\n signal,\n} from '@angular/core';\nimport { AXDrawerContainerDirective } from './drawer-container.directive';\nexport type AXDrawerMode = 'push' | 'overlay';\nexport type AXDrawerLocation = 'start' | 'end' | 'top' | 'bottom';\n\n@Directive({\n selector: '[axDrawerItem]',\n exportAs: 'axDrawerItem',\n})\nexport class AXDrawerItemDirective implements OnDestroy {\n private el = inject(ElementRef);\n private htmlElem = signal<HTMLElement>(null);\n private parent = inject(AXDrawerContainerDirective);\n private platformID = inject(PLATFORM_ID);\n private zIndexService = inject(AXZIndexService);\n private localeService = inject(AXLocaleService);\n private zToken: AXZToken | null = null;\n private collapseState = signal(false);\n private resizeObserver: ResizeObserver;\n // Reactive RTL flag derived from the active locale profile so the drawer\n // re-positions itself whenever the user switches language at runtime.\n private readonly isRtl = this.localeService.isRtl;\n collapseStateChanged = output<boolean>();\n\n location = model<AXDrawerLocation>('start');\n collapsed = model(true);\n backDrop = model(true);\n mode = model<AXDrawerMode>('overlay');\n transition = model<number>(100);\n closeOnBackdropClick = model(false);\n backdropClass = model('bg-black/45');\n onBackdropClick = output<AXClickEvent>();\n singleOpenMode = model(true);\n id = Math.random();\n\n #init = afterNextRender(() => {\n this.htmlElem.set(this.el.nativeElement as HTMLElement);\n\n if (this.collapsed()) {\n this.htmlElem().style.display = 'none';\n }\n\n this.htmlElem().style.height = '100%';\n\n window.addEventListener('resize', this.removeBackDropOnResize);\n\n this.resizeObserver = new ResizeObserver(() => {\n if (this.collapsed()) {\n this.hide();\n }\n });\n this.resizeObserver.observe(this.htmlElem());\n });\n\n #eff2 = effect(() => {\n if (this.collapsed()) {\n this.hide();\n } else {\n this.show();\n }\n });\n\n #eff3 = effect(() => {\n if (!this.htmlElem()) return;\n\n if (this.mode() === 'overlay') {\n this.htmlElem().style.position = 'absolute';\n this.htmlElem().style.marginInlineEnd = 'auto';\n this.htmlElem().style.marginInlineStart = 'auto';\n this.htmlElem().style.marginBlockStart = 'auto';\n this.htmlElem().style.marginBlockEnd = 'auto';\n }\n });\n\n #eff4 = effect(() => {\n if (!this.htmlElem()) return;\n\n if (this.mode() === 'push') {\n this.htmlElem().style.position = 'relative';\n this.htmlElem().style.top = 'auto';\n this.htmlElem().style.left = 'auto';\n this.htmlElem().style.right = 'auto';\n this.htmlElem().style.bottom = 'auto';\n\n switch (this.location()) {\n case 'end':\n this.htmlElem().style.order = '999';\n this.parent.el.nativeElement.style.justifyContent = 'space-between';\n break;\n case 'start':\n this.htmlElem().style.order = '-999';\n break;\n case 'bottom':\n this.htmlElem().style.order = '999';\n this.parent.el.nativeElement.style.flexDirection = 'column';\n break;\n case 'top':\n this.htmlElem().style.order = '-999';\n this.parent.el.nativeElement.style.flexDirection = 'column';\n break;\n }\n }\n });\n\n /**\n * Shows the drawer by animating it into view.\n *\n * @returns void - No return value. The drawer becomes visible.\n */\n public show() {\n if (!this.htmlElem()) return;\n\n // Idempotency guard: if the drawer is already shown, do not re-acquire a\n // new z-index. Without this guard, repeated show() calls (e.g. from effects\n // re-evaluating on window resize or input changes) would keep incrementing\n // the z-index via AXZIndexService, causing the drawer to jump above other\n // overlays like popup/modal that were opened later.\n if (this.collapseState() && this.zToken) {\n return;\n }\n\n if (this.singleOpenMode()) {\n this.parent.drawerItem().forEach((item) => {\n if (item.location() === this.location() && item.id !== this.id) item.hide();\n });\n }\n\n this.resizeObserver.unobserve(this.htmlElem());\n\n // Release any stale token before acquiring a new one so we never leak\n // tokens inside AXZIndexService.\n if (this.zToken) {\n this.zIndexService.release(this.zToken);\n this.zToken = null;\n }\n\n // Acquire z-index from service\n this.zToken = this.zIndexService.acquire();\n this.htmlElem().style.zIndex = String(this.zToken.zIndex);\n\n this.htmlElem().style.transition = `${this.transition()}ms all ease`;\n this.htmlElem().style.display = 'block';\n\n if (this.mode() === 'overlay') {\n if (this.location() === 'start') {\n this.isRtl() ? (this.htmlElem().style.right = `0px`) : (this.htmlElem().style.left = `0px`);\n }\n\n if (this.location() === 'end') {\n this.isRtl() ? (this.htmlElem().style.left = `0px`) : (this.htmlElem().style.right = `0px`);\n }\n\n if (this.location() === 'top' || this.location() === 'bottom') {\n this.htmlElem().style.top = `0px`;\n }\n }\n\n if (this.mode() === 'push') {\n if (this.location() === 'start') {\n this.htmlElem().style.marginInlineStart = '0px';\n }\n\n if (this.location() === 'end') {\n this.htmlElem().style.marginInlineEnd = '0px';\n }\n\n if (this.location() === 'bottom') {\n this.htmlElem().style.marginBlockStart = '0px';\n }\n\n if (this.location() === 'top') {\n this.htmlElem().style.marginBlockStart = '0px';\n }\n }\n\n if (this.backDrop() && this.mode() === 'overlay') {\n this.addBackdrop();\n }\n\n this.collapseState.set(true);\n this.collapsed.set(false);\n this.collapseStateChanged.emit(this.collapsed());\n }\n\n /**\n * Hides the drawer by animating it out of view.\n *\n * @returns void - No return value. The drawer becomes hidden.\n */\n public hide() {\n if (!this.htmlElem()) return;\n\n // Release z-index token\n this.zIndexService.release(this.zToken);\n this.zToken = null;\n this.htmlElem().style.zIndex = '';\n\n const rect = this.htmlElem().getBoundingClientRect();\n\n if (this.mode() === 'push') {\n if (this.location() === 'end') {\n this.htmlElem().style.marginInlineEnd = `-${rect.width}px`;\n }\n\n if (this.location() === 'start') {\n this.htmlElem().style.marginInlineStart = `-${rect.width}px`;\n }\n\n if (this.location() === 'bottom') {\n this.htmlElem().style.marginBlockStart = `${rect.height}px`;\n }\n\n if (this.location() === 'top') {\n this.htmlElem().style.marginBlockStart = `-${rect.height}px`;\n }\n }\n\n if (this.mode() === 'overlay') {\n if (this.location() === 'start') {\n this.isRtl()\n ? (this.htmlElem().style.right = `-${rect.width}px`)\n : (this.htmlElem().style.left = `-${rect.width}px`);\n }\n\n if (this.location() === 'end') {\n this.isRtl()\n ? (this.htmlElem().style.left = `-${rect.width}px`)\n : (this.htmlElem().style.right = `-${rect.width}px`);\n }\n\n if (this.location() === 'top') {\n this.isRtl()\n ? (this.htmlElem().style.bottom = `-${rect.height}px`)\n : (this.htmlElem().style.top = `-${rect.height}px`);\n }\n\n if (this.location() === 'bottom') {\n this.isRtl()\n ? (this.htmlElem().style.top = `${rect.height}px`)\n : (this.htmlElem().style.bottom = `${rect.height}px`);\n }\n }\n\n if (this.backDrop() && this.mode() === 'overlay') {\n this.removeBackdrop();\n }\n\n this.collapseState.set(false);\n this.collapsed.set(true);\n this.collapseStateChanged.emit(this.collapsed());\n }\n\n /**\n * Toggles the drawer state between visible and hidden.\n *\n * @returns void - No return value. The drawer state is toggled.\n */\n public toggle() {\n if (this.collapseState()) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n private addBackdrop() {\n const backdropElem = document.createElement('div');\n backdropElem.classList.add('ax-cdk-drawer-backdrop');\n backdropElem.style.position = 'absolute';\n backdropElem.style.top = '0';\n backdropElem.style.width = '100vw';\n backdropElem.style.height = '100vh';\n // Set backdrop z-index just below the drawer's z-index\n backdropElem.style.zIndex = String((this.zToken?.zIndex ?? 1001) - 1);\n backdropElem.style.opacity = '0';\n backdropElem.style.transition = `opacity ${this.transition()}ms ease`;\n backdropElem.classList.add(...this.backdropClass().split(' '));\n\n this.parent.el.nativeElement.appendChild(backdropElem);\n\n // Trigger animation after element is added to DOM\n requestAnimationFrame(() => {\n backdropElem.style.opacity = '1';\n });\n backdropElem.addEventListener('pointerdown', (event: MouseEvent) => {\n event.stopPropagation();\n if (!this.htmlElem().contains(event.target as Node) && this.collapseState()) {\n this.onBackdropClick.emit({ nativeEvent: event, component: this });\n if (this.closeOnBackdropClick()) {\n this.hide();\n }\n }\n });\n }\n\n private removeBackdrop() {\n const backdropElem = this.parent.el.nativeElement.querySelector('.ax-cdk-drawer-backdrop');\n if (backdropElem) {\n backdropElem.style.opacity = '0';\n\n // Remove element after animation completes\n setTimeout(\n () => {\n if (backdropElem.parentNode) {\n backdropElem.remove();\n }\n },\n parseFloat(String(this.transition())),\n );\n }\n }\n\n private removeBackDropOnResize = () => {\n if (this.collapseState() && this.mode() === 'overlay') {\n this.removeBackdrop();\n }\n };\n\n ngOnDestroy(): void {\n // Release z-index token on destroy\n this.zIndexService.release(this.zToken);\n this.zToken = null;\n\n if (this.resizeObserver && this.htmlElem()) {\n this.resizeObserver.unobserve(this.htmlElem());\n }\n\n if (isPlatformBrowser(this.platformID)) {\n window.removeEventListener('resize', this.removeBackDropOnResize);\n }\n }\n}\n","import { afterNextRender, contentChildren, Directive, ElementRef, inject } from '@angular/core';\nimport { AXDrawerItemDirective } from './drawer-item.directive';\n\n@Directive({\n selector: '[axDrawerContainer]',\n exportAs: 'axDrawerContainer',\n})\nexport class AXDrawerContainerDirective {\n el = inject(ElementRef);\n drawerItem = contentChildren(AXDrawerItemDirective, { descendants: true });\n\n #init = afterNextRender(() => {\n const htmlElem = this.el.nativeElement as HTMLElement;\n htmlElem.style.position = 'relative';\n htmlElem.style.overflow = 'hidden';\n htmlElem.style.display = 'flex';\n htmlElem.style.touchAction = 'none';\n htmlElem.style.width = '100%';\n });\n}\n","import { NgModule } from '@angular/core';\nimport { AXDrawerContainerDirective } from './drawer-container.directive';\nimport { AXDrawerItemDirective } from './drawer-item.directive';\n\nconst COMPONENT = [AXDrawerContainerDirective, AXDrawerItemDirective];\n\nconst MODULES = [];\n\n@NgModule({\n imports: [...MODULES, ...COMPONENT],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDrawerDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAwBa,qBAAqB,C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,CAAjD,0BAA0B,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AASvD,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAJrB,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACZD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-cdk-drawer.mjs","sources":["../../../../packages/cdk/drawer/src/lib/drawer-item.directive.ts","../../../../packages/cdk/drawer/src/lib/drawer-container.directive.ts","../../../../packages/cdk/drawer/src/lib/drawer.module.ts","../../../../packages/cdk/drawer/src/acorex-cdk-drawer.ts"],"sourcesContent":["import { AXClickEvent } from '@acorex/cdk/common';\nimport { AXLocaleService } from '@acorex/core/locale';\nimport { AXZIndexService, AXZToken } from '@acorex/core/z-index';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n Directive,\n effect,\n ElementRef,\n inject,\n model,\n OnDestroy,\n output,\n PLATFORM_ID,\n signal,\n} from '@angular/core';\nimport { AXDrawerContainerDirective } from './drawer-container.directive';\nexport type AXDrawerMode = 'push' | 'overlay';\nexport type AXDrawerLocation = 'start' | 'end' | 'top' | 'bottom';\n\n@Directive({\n selector: '[axDrawerItem]',\n exportAs: 'axDrawerItem',\n})\nexport class AXDrawerItemDirective implements OnDestroy {\n private el = inject(ElementRef);\n private htmlElem = signal<HTMLElement>(null);\n private parent = inject(AXDrawerContainerDirective);\n private platformID = inject(PLATFORM_ID);\n private zIndexService = inject(AXZIndexService);\n private localeService = inject(AXLocaleService);\n private zToken: AXZToken | null = null;\n /** Holds the stacking token until the close transition finishes. */\n private zIndexReleaseTimer: ReturnType<typeof setTimeout> | null = null;\n /** Invalidates a queued open transition when the drawer closes or reopens. */\n private openAnimationId = 0;\n private openAnimationFrame: number | null = null;\n private collapseState = signal(false);\n private resizeObserver: ResizeObserver;\n // Reactive RTL flag derived from the active locale profile so the drawer\n // re-positions itself whenever the user switches language at runtime.\n private readonly isRtl = this.localeService.isRtl;\n collapseStateChanged = output<boolean>();\n\n location = model<AXDrawerLocation>('start');\n collapsed = model(true);\n backDrop = model(true);\n mode = model<AXDrawerMode>('overlay');\n transition = model<number>(100);\n closeOnBackdropClick = model(false);\n backdropClass = model('bg-black/45');\n onBackdropClick = output<AXClickEvent>();\n singleOpenMode = model(true);\n id = Math.random();\n\n #init = afterNextRender(() => {\n this.htmlElem.set(this.el.nativeElement as HTMLElement);\n\n if (this.collapsed()) {\n this.htmlElem().style.display = 'none';\n }\n\n this.htmlElem().style.height = '100%';\n\n window.addEventListener('resize', this.removeBackDropOnResize);\n\n this.resizeObserver = new ResizeObserver(() => {\n if (this.collapsed()) {\n this.hide();\n }\n });\n this.resizeObserver.observe(this.htmlElem());\n });\n\n #eff2 = effect(() => {\n if (this.collapsed()) {\n this.hide();\n } else {\n this.show();\n }\n });\n\n #eff3 = effect(() => {\n if (!this.htmlElem()) return;\n\n if (this.mode() === 'overlay') {\n this.htmlElem().style.position = 'absolute';\n this.htmlElem().style.marginInlineEnd = 'auto';\n this.htmlElem().style.marginInlineStart = 'auto';\n this.htmlElem().style.marginBlockStart = 'auto';\n this.htmlElem().style.marginBlockEnd = 'auto';\n }\n });\n\n #eff4 = effect(() => {\n if (!this.htmlElem()) return;\n\n if (this.mode() === 'push') {\n this.htmlElem().style.position = 'relative';\n this.htmlElem().style.top = 'auto';\n this.htmlElem().style.left = 'auto';\n this.htmlElem().style.right = 'auto';\n this.htmlElem().style.bottom = 'auto';\n\n switch (this.location()) {\n case 'end':\n this.htmlElem().style.order = '999';\n this.parent.el.nativeElement.style.justifyContent = 'space-between';\n break;\n case 'start':\n this.htmlElem().style.order = '-999';\n break;\n case 'bottom':\n this.htmlElem().style.order = '999';\n this.parent.el.nativeElement.style.flexDirection = 'column';\n break;\n case 'top':\n this.htmlElem().style.order = '-999';\n this.parent.el.nativeElement.style.flexDirection = 'column';\n break;\n }\n }\n });\n\n /**\n * Shows the drawer by animating it into view.\n *\n * @returns void - No return value. The drawer becomes visible.\n */\n public show() {\n if (!this.htmlElem()) return;\n\n // A close animation may still be holding the previous token. Cancel that\n // release so a reopen does not clear the new stacking level mid-slide.\n this.cancelScheduledZIndexRelease();\n\n // Idempotency guard: if the drawer is already shown, do not re-acquire a\n // new z-index. Without this guard, repeated show() calls (e.g. from effects\n // re-evaluating on window resize or input changes) would keep incrementing\n // the z-index via AXZIndexService, causing the drawer to jump above other\n // overlays like popup/modal that were opened later.\n if (this.collapseState() && this.zToken) {\n return;\n }\n\n if (this.singleOpenMode()) {\n this.parent.drawerItem().forEach((item) => {\n if (item.location() === this.location() && item.id !== this.id) item.hide();\n });\n }\n\n this.resizeObserver.unobserve(this.htmlElem());\n\n // Release any stale token before acquiring a new one so we never leak\n // tokens inside AXZIndexService.\n if (this.zToken) {\n this.zIndexService.release(this.zToken);\n this.zToken = null;\n }\n\n // Acquire z-index from service\n this.zToken = this.zIndexService.acquire();\n this.htmlElem().style.zIndex = String(this.zToken.zIndex);\n this.htmlElem().style.display = 'block';\n\n // The closed drawer starts at display:none, so it has no off-screen box to\n // transition from. Park it closed with transitions off, flush layout, then\n // slide it open on the next frame. Later opens already have that offset\n // from hide(), which is why only the first open used to jump.\n const el = this.htmlElem();\n el.style.transition = 'none';\n this.applyClosedPosition();\n el.getBoundingClientRect();\n this.scheduleOpenAnimation();\n\n if (this.backDrop() && this.mode() === 'overlay') {\n this.addBackdrop();\n }\n\n this.collapseState.set(true);\n this.collapsed.set(false);\n this.collapseStateChanged.emit(this.collapsed());\n }\n\n /**\n * Hides the drawer by animating it out of view.\n *\n * @returns void - No return value. The drawer becomes hidden.\n */\n public hide() {\n if (!this.htmlElem()) return;\n\n this.cancelScheduledOpen();\n this.applyClosedPosition();\n\n if (this.backDrop() && this.mode() === 'overlay') {\n this.removeBackdrop();\n }\n\n this.collapseState.set(false);\n this.collapsed.set(true);\n this.collapseStateChanged.emit(this.collapsed());\n\n // Keep the acquired z-index until the slide-out finishes. Clearing it here\n // drops the drawer behind page content for the rest of the transition.\n this.scheduleZIndexRelease();\n }\n\n /**\n * Toggles the drawer state between visible and hidden.\n *\n * @returns void - No return value. The drawer state is toggled.\n */\n public toggle() {\n if (this.collapseState()) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n private applyOpenPosition(): void {\n const el = this.htmlElem();\n if (!el) return;\n\n if (this.mode() === 'overlay') {\n if (this.location() === 'start') {\n this.isRtl() ? (el.style.right = '0px') : (el.style.left = '0px');\n }\n\n if (this.location() === 'end') {\n this.isRtl() ? (el.style.left = '0px') : (el.style.right = '0px');\n }\n\n if (this.location() === 'top' || this.location() === 'bottom') {\n el.style.top = '0px';\n }\n }\n\n if (this.mode() === 'push') {\n if (this.location() === 'start') {\n el.style.marginInlineStart = '0px';\n }\n\n if (this.location() === 'end') {\n el.style.marginInlineEnd = '0px';\n }\n\n if (this.location() === 'bottom') {\n el.style.marginBlockStart = '0px';\n }\n\n if (this.location() === 'top') {\n el.style.marginBlockStart = '0px';\n }\n }\n }\n\n private applyClosedPosition(): void {\n const el = this.htmlElem();\n if (!el) return;\n\n const rect = el.getBoundingClientRect();\n\n if (this.mode() === 'push') {\n if (this.location() === 'end') {\n el.style.marginInlineEnd = `-${rect.width}px`;\n }\n\n if (this.location() === 'start') {\n el.style.marginInlineStart = `-${rect.width}px`;\n }\n\n if (this.location() === 'bottom') {\n el.style.marginBlockStart = `${rect.height}px`;\n }\n\n if (this.location() === 'top') {\n el.style.marginBlockStart = `-${rect.height}px`;\n }\n }\n\n if (this.mode() === 'overlay') {\n if (this.location() === 'start') {\n this.isRtl() ? (el.style.right = `-${rect.width}px`) : (el.style.left = `-${rect.width}px`);\n }\n\n if (this.location() === 'end') {\n this.isRtl() ? (el.style.left = `-${rect.width}px`) : (el.style.right = `-${rect.width}px`);\n }\n\n if (this.location() === 'top') {\n this.isRtl() ? (el.style.bottom = `-${rect.height}px`) : (el.style.top = `-${rect.height}px`);\n }\n\n if (this.location() === 'bottom') {\n this.isRtl() ? (el.style.top = `${rect.height}px`) : (el.style.bottom = `${rect.height}px`);\n }\n }\n }\n\n private scheduleOpenAnimation(): void {\n this.cancelScheduledOpen();\n const id = this.openAnimationId;\n this.openAnimationFrame = requestAnimationFrame(() => {\n if (id !== this.openAnimationId) return;\n this.openAnimationFrame = null;\n this.commitOpenPosition();\n });\n }\n\n private cancelScheduledOpen(): void {\n this.openAnimationId++;\n if (this.openAnimationFrame != null) {\n cancelAnimationFrame(this.openAnimationFrame);\n this.openAnimationFrame = null;\n }\n }\n\n private commitOpenPosition(): void {\n const el = this.htmlElem();\n if (!el || !this.collapseState()) return;\n\n // Flush the closed position from the previous frame, then transition.\n el.getBoundingClientRect();\n el.style.transition = `${this.transition()}ms all ease`;\n this.applyOpenPosition();\n }\n\n private cancelScheduledZIndexRelease(): void {\n if (this.zIndexReleaseTimer != null) {\n clearTimeout(this.zIndexReleaseTimer);\n this.zIndexReleaseTimer = null;\n }\n }\n\n /**\n * Releases the stacking token after the close transition. Opening keeps the\n * token for the whole animation; closing must do the same, otherwise the\n * drawer paints behind other elements while it is still sliding out.\n */\n private scheduleZIndexRelease(): void {\n this.cancelScheduledZIndexRelease();\n\n const token = this.zToken;\n if (!token || !this.htmlElem()) {\n return;\n }\n\n const duration = Number(this.transition());\n const release = () => {\n this.zIndexReleaseTimer = null;\n if (this.collapseState() || this.zToken !== token) {\n return;\n }\n\n this.zIndexService.release(token);\n this.zToken = null;\n if (this.htmlElem()) {\n this.htmlElem().style.zIndex = '';\n }\n };\n\n if (!Number.isFinite(duration) || duration <= 0) {\n release();\n return;\n }\n\n this.zIndexReleaseTimer = setTimeout(release, duration);\n }\n\n private addBackdrop() {\n const backdropElem = document.createElement('div');\n backdropElem.classList.add('ax-cdk-drawer-backdrop');\n backdropElem.style.position = 'absolute';\n backdropElem.style.top = '0';\n backdropElem.style.width = '100vw';\n backdropElem.style.height = '100vh';\n // Set backdrop z-index just below the drawer's z-index\n backdropElem.style.zIndex = String((this.zToken?.zIndex ?? 1001) - 1);\n backdropElem.style.opacity = '0';\n backdropElem.style.transition = `opacity ${this.transition()}ms ease`;\n backdropElem.classList.add(...this.backdropClass().split(' '));\n\n this.parent.el.nativeElement.appendChild(backdropElem);\n\n // Trigger animation after element is added to DOM\n requestAnimationFrame(() => {\n backdropElem.style.opacity = '1';\n });\n backdropElem.addEventListener('pointerdown', (event: MouseEvent) => {\n event.stopPropagation();\n if (!this.htmlElem().contains(event.target as Node) && this.collapseState()) {\n this.onBackdropClick.emit({ nativeEvent: event, component: this });\n if (this.closeOnBackdropClick()) {\n this.hide();\n }\n }\n });\n }\n\n private removeBackdrop() {\n const backdropElem = this.parent.el.nativeElement.querySelector('.ax-cdk-drawer-backdrop');\n if (backdropElem) {\n backdropElem.style.opacity = '0';\n\n // Remove element after animation completes\n setTimeout(\n () => {\n if (backdropElem.parentNode) {\n backdropElem.remove();\n }\n },\n parseFloat(String(this.transition())),\n );\n }\n }\n\n private removeBackDropOnResize = () => {\n if (this.collapseState() && this.mode() === 'overlay') {\n this.removeBackdrop();\n }\n };\n\n ngOnDestroy(): void {\n this.cancelScheduledOpen();\n this.cancelScheduledZIndexRelease();\n this.zIndexService.release(this.zToken);\n this.zToken = null;\n\n if (this.resizeObserver && this.htmlElem()) {\n this.resizeObserver.unobserve(this.htmlElem());\n }\n\n if (isPlatformBrowser(this.platformID)) {\n window.removeEventListener('resize', this.removeBackDropOnResize);\n }\n }\n}\n","import { afterNextRender, contentChildren, Directive, ElementRef, inject } from '@angular/core';\nimport { AXDrawerItemDirective } from './drawer-item.directive';\n\n@Directive({\n selector: '[axDrawerContainer]',\n exportAs: 'axDrawerContainer',\n})\nexport class AXDrawerContainerDirective {\n el = inject(ElementRef);\n drawerItem = contentChildren(AXDrawerItemDirective, { descendants: true });\n\n #init = afterNextRender(() => {\n const htmlElem = this.el.nativeElement as HTMLElement;\n htmlElem.style.position = 'relative';\n htmlElem.style.overflow = 'hidden';\n htmlElem.style.display = 'flex';\n htmlElem.style.touchAction = 'none';\n htmlElem.style.width = '100%';\n });\n}\n","import { NgModule } from '@angular/core';\nimport { AXDrawerContainerDirective } from './drawer-container.directive';\nimport { AXDrawerItemDirective } from './drawer-item.directive';\n\nconst COMPONENT = [AXDrawerContainerDirective, AXDrawerItemDirective];\n\nconst MODULES = [];\n\n@NgModule({\n imports: [...MODULES, ...COMPONENT],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDrawerDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAwBa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;QACvB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAc,IAAI;qFAAC;AACpC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAC3C,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;QACvC,IAAA,CAAA,MAAM,GAAoB,IAAI;;QAE9B,IAAA,CAAA,kBAAkB,GAAyC,IAAI;;QAE/D,IAAA,CAAA,eAAe,GAAG,CAAC;QACnB,IAAA,CAAA,kBAAkB,GAAkB,IAAI;QACxC,IAAA,CAAA,aA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AAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YATjB,0BAA0B,EAAE,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAAjD,0BAA0B,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AASvD,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAJrB,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACZD;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/cdk",
|
|
3
|
-
"version": "22.4.
|
|
3
|
+
"version": "22.4.64",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "22.4.
|
|
5
|
+
"@acorex/core": "22.4.64",
|
|
6
6
|
"@tiptap/core": ">=3.31.4",
|
|
7
7
|
"@tiptap/extension-color": ">=3.31.4",
|
|
8
8
|
"@tiptap/extension-highlight": ">=3.31.4",
|
|
@@ -13,6 +13,11 @@ declare class AXDrawerItemDirective implements OnDestroy {
|
|
|
13
13
|
private zIndexService;
|
|
14
14
|
private localeService;
|
|
15
15
|
private zToken;
|
|
16
|
+
/** Holds the stacking token until the close transition finishes. */
|
|
17
|
+
private zIndexReleaseTimer;
|
|
18
|
+
/** Invalidates a queued open transition when the drawer closes or reopens. */
|
|
19
|
+
private openAnimationId;
|
|
20
|
+
private openAnimationFrame;
|
|
16
21
|
private collapseState;
|
|
17
22
|
private resizeObserver;
|
|
18
23
|
private readonly isRtl;
|
|
@@ -45,6 +50,18 @@ declare class AXDrawerItemDirective implements OnDestroy {
|
|
|
45
50
|
* @returns void - No return value. The drawer state is toggled.
|
|
46
51
|
*/
|
|
47
52
|
toggle(): void;
|
|
53
|
+
private applyOpenPosition;
|
|
54
|
+
private applyClosedPosition;
|
|
55
|
+
private scheduleOpenAnimation;
|
|
56
|
+
private cancelScheduledOpen;
|
|
57
|
+
private commitOpenPosition;
|
|
58
|
+
private cancelScheduledZIndexRelease;
|
|
59
|
+
/**
|
|
60
|
+
* Releases the stacking token after the close transition. Opening keeps the
|
|
61
|
+
* token for the whole animation; closing must do the same, otherwise the
|
|
62
|
+
* drawer paints behind other elements while it is still sliding out.
|
|
63
|
+
*/
|
|
64
|
+
private scheduleZIndexRelease;
|
|
48
65
|
private addBackdrop;
|
|
49
66
|
private removeBackdrop;
|
|
50
67
|
private removeBackDropOnResize;
|