@edsis/angular 22.2.16 → 22.2.18
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/README.md +2 -2
- package/SUPPORT.md +23 -9
- package/component/composer/README.md +3 -0
- package/component/editor/README.md +3 -0
- package/fesm2022/edsis-angular-component-composer.mjs +68 -19
- package/fesm2022/edsis-angular-component-editor.mjs +68 -12
- package/fesm2022/edsis-angular-component-input.mjs +1 -1
- package/fesm2022/edsis-angular-component-native-select.mjs +1 -1
- package/fesm2022/edsis-angular-component-select.mjs +2 -2
- package/fesm2022/edsis-angular-component-textarea.mjs +1 -1
- package/fesm2022/edsis-angular-component-utils-core.mjs +7 -1
- package/fesm2022/{edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs → edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs} +28 -18
- package/fesm2022/{edsis-angular-navigation-navigation-dockbar-menu.component-CGhXbIuj.mjs → edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-CsqylYHO.mjs → edsis-angular-navigation-navigation-entry-grid.component-CSqoookZ.mjs} +1 -1
- package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-BpXO-_Nf.mjs → edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs} +2 -2
- package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-BFoX9Xrj.mjs → edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-item.component-Brw7rLqf.mjs → edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs} +1 -1
- package/fesm2022/{edsis-angular-navigation-navigation-list.component-xl6AmBSy.mjs → edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs} +1 -1
- package/fesm2022/edsis-angular-navigation.mjs +12 -12
- package/fesm2022/edsis-angular-theme-component-settings.mjs +2 -1
- package/fesm2022/edsis-angular-theme-page-core.mjs +160 -92
- package/fesm2022/edsis-angular-theme-page-filter.mjs +9 -17
- package/fesm2022/edsis-angular-theme-page-root.mjs +14 -6
- package/fesm2022/edsis-angular-theme-page-side.mjs +10 -18
- package/fesm2022/edsis-angular-theme-styles.mjs +1 -1
- package/navigation/README.md +8 -4
- package/package.json +5 -5
- package/theme/page/README.md +5 -3
- package/theme/styles/css/base/components.css +34 -41
- package/theme/styles/css/base/tokens.css +6 -1
- package/types/edsis-angular-component-card.d.ts +1 -1
- package/types/edsis-angular-component-command.d.ts +1 -1
- package/types/edsis-angular-component-composer.d.ts +5 -1
- package/types/edsis-angular-component-editor.d.ts +4 -0
- package/types/edsis-angular-theme-layout-wrapper.d.ts +1 -1
- package/types/edsis-angular-theme-page-core.d.ts +8 -9
- package/types/edsis-angular-theme-page-root.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
1
|
+
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, InjectionToken, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { s as NAVIGATION_SHELL } from "./edsis-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-
|
|
1
|
+
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs";
|
|
2
|
+
import { s as NAVIGATION_SHELL } from "./edsis-angular-navigation-navigation-item.component-ByWQIgH4.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-bdr5gai8.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
|
|
6
6
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -841,9 +841,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
841
841
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
842
842
|
}],
|
|
843
843
|
deferBlockDependencies: [
|
|
844
|
-
() => [import("./edsis-angular-navigation-navigation-flyout-menu.component-
|
|
845
|
-
() => [import("./edsis-angular-navigation-navigation-horizontal.component-
|
|
846
|
-
() => [import("./edsis-angular-navigation-navigation-dockbar-menu.component-
|
|
844
|
+
() => [import("./edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
|
|
845
|
+
() => [import("./edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs").then((m) => m.NavigationHorizontalComponent)],
|
|
846
|
+
() => [import("./edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs").then((m) => m.NavigationDockbarMenuComponent)]
|
|
847
847
|
]
|
|
848
848
|
});
|
|
849
849
|
};
|
|
@@ -853,9 +853,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
853
853
|
ngImport: i0,
|
|
854
854
|
type: NavigationContentComponent,
|
|
855
855
|
resolveDeferredDeps: () => [
|
|
856
|
-
import("./edsis-angular-navigation-navigation-flyout-menu.component-
|
|
857
|
-
import("./edsis-angular-navigation-navigation-horizontal.component-
|
|
858
|
-
import("./edsis-angular-navigation-navigation-dockbar-menu.component-
|
|
856
|
+
import("./edsis-angular-navigation-navigation-flyout-menu.component-DVrwb851.mjs").then((m) => m.NavigationFlyoutMenuComponent),
|
|
857
|
+
import("./edsis-angular-navigation-navigation-horizontal.component-Dgwp5Ti1.mjs").then((m) => m.NavigationHorizontalComponent),
|
|
858
|
+
import("./edsis-angular-navigation-navigation-dockbar-menu.component-BzrCl-F7.mjs").then((m) => m.NavigationDockbarMenuComponent)
|
|
859
859
|
],
|
|
860
860
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
861
861
|
decorators: [{
|
|
@@ -1794,7 +1794,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1794
1794
|
exportAs: ["Tooltip"]
|
|
1795
1795
|
}
|
|
1796
1796
|
],
|
|
1797
|
-
deferBlockDependencies: [() => [import("./edsis-angular-navigation-navigation-badge-count.component-
|
|
1797
|
+
deferBlockDependencies: [() => [import("./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)]]
|
|
1798
1798
|
});
|
|
1799
1799
|
};
|
|
1800
1800
|
i0.ɵɵngDeclareClassMetadataAsync({
|
|
@@ -1802,7 +1802,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1802
1802
|
version: "22.2.6",
|
|
1803
1803
|
ngImport: i0,
|
|
1804
1804
|
type: NavigationDockbarComponent,
|
|
1805
|
-
resolveDeferredDeps: () => [import("./edsis-angular-navigation-navigation-badge-count.component-
|
|
1805
|
+
resolveDeferredDeps: () => [import("./edsis-angular-navigation-navigation-badge-count.component-lHrJyEdh.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)],
|
|
1806
1806
|
resolveMetadata: (NavigationBadgeCountComponent) => ({
|
|
1807
1807
|
decorators: [{
|
|
1808
1808
|
type: Component,
|
|
@@ -2799,7 +2799,7 @@ function deriveNavigationInitials(name) {
|
|
|
2799
2799
|
const last = parts[parts.length - 1] ?? "";
|
|
2800
2800
|
return (first.charAt(0) + last.charAt(0)).toUpperCase();
|
|
2801
2801
|
}
|
|
2802
|
-
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary
|
|
2802
|
+
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary text-primary-foreground";
|
|
2803
2803
|
function setupNavigationInitial(sources) {
|
|
2804
2804
|
return {
|
|
2805
2805
|
resolvedInitials: computed(() => sources.initials()?.slice(0, 2).toUpperCase() || deriveNavigationInitials(sources.name())),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Service, computed,
|
|
2
|
+
import { ElementRef, Injectable, Service, afterRenderEffect, computed, inject, signal } from "@angular/core";
|
|
3
|
+
import { Overlay, OverlayContainer } from "@angular/cdk/overlay";
|
|
3
4
|
const PAGE_VARIANTS = ["stacked", "side"];
|
|
4
5
|
const PAGE_SIDE_POSITIONS = ["left", "right"];
|
|
5
6
|
const PAGE_SIDE_MODES = [
|
|
@@ -203,113 +204,180 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
203
204
|
args: [{ autoProvided: false }]
|
|
204
205
|
}]
|
|
205
206
|
});
|
|
206
|
-
const FOCUSABLE_SELECTOR = [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
"textarea:not([disabled])",
|
|
212
|
-
"[tabindex]:not([tabindex=\"-1\"])"
|
|
213
|
-
].join(",");
|
|
214
|
-
const inertLocks = /* @__PURE__ */ new WeakMap();
|
|
215
|
-
const scrollLocks = /* @__PURE__ */ new WeakMap();
|
|
207
|
+
const FOCUSABLE_SELECTOR = "a[href], button, input, select, textarea, summary, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]";
|
|
208
|
+
const modalStacks = /* @__PURE__ */ new WeakMap();
|
|
209
|
+
function ɵisActivePageOverlay(document, id) {
|
|
210
|
+
return id !== null && modalStacks.get(document)?.active?.id === id;
|
|
211
|
+
}
|
|
216
212
|
function ɵsetupOverlayFocusManagement(config) {
|
|
217
|
-
|
|
213
|
+
afterRenderEffect({ mixedReadWrite: (onCleanup) => {
|
|
218
214
|
if (!config.isInteractive() || !config.isOpen()) return;
|
|
219
|
-
const document = config
|
|
215
|
+
const { document, host } = config;
|
|
220
216
|
const view = document?.defaultView;
|
|
221
|
-
if (!document || !view) return;
|
|
217
|
+
if (!document || !view || !host.isConnected) return;
|
|
222
218
|
const returnFocus = config.takeReturnFocus?.() ?? document.activeElement;
|
|
223
219
|
const modal = config.isModal();
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (focusable.length === 0) {
|
|
230
|
-
event.preventDefault();
|
|
231
|
-
config.host.focus();
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
const active = document.activeElement;
|
|
235
|
-
const first = focusable[0];
|
|
236
|
-
const last = focusable.at(-1);
|
|
237
|
-
const activeIndex = focusable.indexOf(active);
|
|
238
|
-
if (event.shiftKey && activeIndex <= 0) {
|
|
239
|
-
event.preventDefault();
|
|
240
|
-
last.focus();
|
|
241
|
-
} else if (!event.shiftKey && (activeIndex === -1 || active === last)) {
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
first.focus();
|
|
244
|
-
}
|
|
220
|
+
const stack = modal ? getModalStack(document) : void 0;
|
|
221
|
+
stack?.open(host);
|
|
222
|
+
let childEscape;
|
|
223
|
+
const onKeydownCapture = (event) => {
|
|
224
|
+
if (event.key === "Escape" && host.querySelector(".cdk-overlay-pane:not(:empty)")) childEscape = event;
|
|
245
225
|
};
|
|
246
|
-
|
|
226
|
+
const onKeydown = (event) => {
|
|
227
|
+
const activeModal = modalStacks.get(document)?.active;
|
|
228
|
+
if (event.defaultPrevented || activeModal && activeModal !== host) return;
|
|
229
|
+
if (event.key === "Escape" && config.closeOnEsc?.() && childEscape !== event) {
|
|
230
|
+
if (modal) event.preventDefault();
|
|
231
|
+
config.close?.();
|
|
232
|
+
} else if (modal && event.key === "Tab") trapTab(host, event);
|
|
233
|
+
};
|
|
234
|
+
view.addEventListener("keydown", onKeydownCapture, true);
|
|
235
|
+
view.addEventListener("keydown", onKeydown);
|
|
247
236
|
const animationFrame = view.requestAnimationFrame(() => {
|
|
248
|
-
|
|
237
|
+
const activeModal = modalStacks.get(document)?.active;
|
|
238
|
+
if (!activeModal || activeModal === host) focusPanel(host);
|
|
249
239
|
});
|
|
250
240
|
onCleanup(() => {
|
|
251
241
|
view.cancelAnimationFrame(animationFrame);
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
242
|
+
view.removeEventListener("keydown", onKeydownCapture, true);
|
|
243
|
+
view.removeEventListener("keydown", onKeydown);
|
|
244
|
+
const wasTop = !stack || stack.active === host;
|
|
245
|
+
stack?.close(host);
|
|
246
|
+
if (wasTop) view.requestAnimationFrame(() => {
|
|
247
|
+
const active = modalStacks.get(document)?.active;
|
|
248
|
+
if (returnFocus instanceof HTMLElement && returnFocus.isConnected && !returnFocus.closest("[inert]") && (!active || active.contains(returnFocus))) returnFocus.focus({ preventScroll: true });
|
|
249
|
+
else if (active && !active.contains(document.activeElement)) focusPanel(active);
|
|
250
|
+
});
|
|
256
251
|
});
|
|
257
|
-
});
|
|
252
|
+
} });
|
|
253
|
+
}
|
|
254
|
+
function trapTab(host, event) {
|
|
255
|
+
const focusable = getFocusableElements(host);
|
|
256
|
+
const index = focusable.indexOf(host.ownerDocument.activeElement);
|
|
257
|
+
if (index < 0 || (event.shiftKey ? index === 0 : index === focusable.length - 1)) {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
((event.shiftKey ? focusable.at(-1) : focusable[0]) ?? host).focus({ preventScroll: true });
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function focusPanel(host) {
|
|
263
|
+
(host.querySelector("[data-page-initial-focus], [autofocus]") ?? getFocusableElements(host)[0] ?? host).focus({ preventScroll: true });
|
|
264
|
+
if (!host.contains(host.ownerDocument.activeElement)) (getFocusableElements(host)[0] ?? host).focus({ preventScroll: true });
|
|
258
265
|
}
|
|
259
266
|
function getFocusableElements(host) {
|
|
260
|
-
return Array.from(host.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.hidden && !element.inert && element.
|
|
267
|
+
return Array.from(host.querySelectorAll(FOCUSABLE_SELECTOR)).filter((element) => !element.matches(":disabled, [tabindex=\"-1\"], input[type=\"hidden\"]") && !element.closest("[hidden], [inert], [aria-hidden=\"true\"]") && (element.checkVisibility?.({ visibilityProperty: true }) ?? host.ownerDocument.defaultView?.getComputedStyle(element).visibility !== "hidden"));
|
|
261
268
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
let parent = branch.parentElement;
|
|
268
|
-
while (parent) {
|
|
269
|
-
for (const sibling of Array.from(parent.children)) {
|
|
270
|
-
if (sibling === branch || !(sibling instanceof HTMLElement) || sibling.hasAttribute("data-page-overlay-backdrop")) continue;
|
|
271
|
-
const lock = inertLocks.get(sibling);
|
|
272
|
-
if (lock) lock.count += 1;
|
|
273
|
-
else inertLocks.set(sibling, {
|
|
274
|
-
count: 1,
|
|
275
|
-
initial: sibling.inert === true
|
|
276
|
-
});
|
|
277
|
-
snapshots.push({ element: sibling });
|
|
278
|
-
sibling.inert = true;
|
|
279
|
-
}
|
|
280
|
-
if (parent === pageRoot) break;
|
|
281
|
-
branch = parent;
|
|
282
|
-
parent = parent.parentElement;
|
|
269
|
+
function getModalStack(document) {
|
|
270
|
+
let stack = modalStacks.get(document);
|
|
271
|
+
if (!stack) {
|
|
272
|
+
stack = new PageModalStack(document);
|
|
273
|
+
modalStacks.set(document, stack);
|
|
283
274
|
}
|
|
284
|
-
return
|
|
275
|
+
return stack;
|
|
285
276
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
277
|
+
var PageModalStack = class {
|
|
278
|
+
document;
|
|
279
|
+
panels = [];
|
|
280
|
+
background = /* @__PURE__ */ new Set();
|
|
281
|
+
ancestorOverflow = /* @__PURE__ */ new Map();
|
|
282
|
+
observer = new MutationObserver(() => this.isolate());
|
|
283
|
+
constructor(document) {
|
|
284
|
+
this.document = document;
|
|
285
|
+
}
|
|
286
|
+
get active() {
|
|
287
|
+
return this.panels.at(-1);
|
|
288
|
+
}
|
|
289
|
+
open(panel) {
|
|
290
|
+
this.panels.push(panel);
|
|
291
|
+
this.isolate();
|
|
292
|
+
}
|
|
293
|
+
close(panel) {
|
|
294
|
+
this.panels.splice(this.panels.indexOf(panel), 1);
|
|
295
|
+
this.isolate();
|
|
296
|
+
if (!this.active) modalStacks.delete(this.document);
|
|
297
|
+
}
|
|
298
|
+
isolate() {
|
|
299
|
+
this.observer.disconnect();
|
|
300
|
+
const keep = /* @__PURE__ */ new Set();
|
|
301
|
+
const host = this.active;
|
|
302
|
+
if (host?.isConnected) {
|
|
303
|
+
const backdrop = host.closest("[data-page-root]")?.querySelector(":scope > [data-page-overlay-backdrop]");
|
|
304
|
+
for (const node of [host, backdrop]) for (let branch = node; branch && branch !== this.document.body; branch = branch.parentElement) keep.add(branch);
|
|
305
|
+
}
|
|
306
|
+
this.lockAncestorScroll(host);
|
|
307
|
+
const blocked = /* @__PURE__ */ new Set();
|
|
308
|
+
for (const branch of keep) {
|
|
309
|
+
const parent = branch.parentElement;
|
|
310
|
+
if (parent) {
|
|
311
|
+
this.observer.observe(parent, { childList: true });
|
|
312
|
+
for (const sibling of parent.children) if (!keep.has(sibling)) blocked.add(sibling);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
for (const element of this.background) if (!blocked.has(element)) {
|
|
316
|
+
if (!element.matches("[data-page-slot]:is([data-page-side-mode], [data-page-filter-mode])[aria-hidden=\"true\"]")) element.removeAttribute("inert");
|
|
317
|
+
this.background.delete(element);
|
|
318
|
+
}
|
|
319
|
+
for (const element of blocked) if (!element.hasAttribute("inert")) {
|
|
320
|
+
element.setAttribute("inert", "");
|
|
321
|
+
this.background.add(element);
|
|
294
322
|
}
|
|
295
323
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
324
|
+
lockAncestorScroll(host) {
|
|
325
|
+
for (const [element, previous] of this.ancestorOverflow) if (!host?.isConnected || !element.contains(host) || element === host) {
|
|
326
|
+
element.style.overflow = previous.value;
|
|
327
|
+
element.style.overflowX = previous.x;
|
|
328
|
+
element.style.overflowY = previous.y;
|
|
329
|
+
this.ancestorOverflow.delete(element);
|
|
330
|
+
}
|
|
331
|
+
for (let element = host?.isConnected ? host.parentElement : null; element && element !== this.document.documentElement; element = element.parentElement) {
|
|
332
|
+
if (this.ancestorOverflow.has(element)) continue;
|
|
333
|
+
const style = this.document.defaultView?.getComputedStyle(element);
|
|
334
|
+
if (element === this.document.body || style && /auto|scroll/.test(`${style.overflowX} ${style.overflowY}`)) {
|
|
335
|
+
this.ancestorOverflow.set(element, {
|
|
336
|
+
value: element.style.overflow,
|
|
337
|
+
x: element.style.overflowX,
|
|
338
|
+
y: element.style.overflowY
|
|
339
|
+
});
|
|
340
|
+
element.style.overflow = "hidden";
|
|
341
|
+
}
|
|
342
|
+
}
|
|
313
343
|
}
|
|
314
|
-
}
|
|
315
|
-
|
|
344
|
+
};
|
|
345
|
+
var PagePanelOverlayContainer = class PagePanelOverlayContainer extends OverlayContainer {
|
|
346
|
+
panel = inject(ElementRef).nativeElement;
|
|
347
|
+
parent = inject(OverlayContainer, { skipSelf: true });
|
|
348
|
+
getContainerElement() {
|
|
349
|
+
return this.panel.getAttribute("aria-modal") === "true" ? super.getContainerElement() : this.parent.getContainerElement();
|
|
350
|
+
}
|
|
351
|
+
_createContainer() {
|
|
352
|
+
const container = this.panel.ownerDocument.createElement("div");
|
|
353
|
+
container.classList.add("cdk-overlay-container");
|
|
354
|
+
this.panel.append(container);
|
|
355
|
+
this._containerElement = container;
|
|
356
|
+
}
|
|
357
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
358
|
+
minVersion: "12.0.0",
|
|
359
|
+
version: "22.2.6",
|
|
360
|
+
ngImport: i0,
|
|
361
|
+
type: PagePanelOverlayContainer,
|
|
362
|
+
deps: null,
|
|
363
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
364
|
+
});
|
|
365
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
366
|
+
minVersion: "12.0.0",
|
|
367
|
+
version: "22.2.6",
|
|
368
|
+
ngImport: i0,
|
|
369
|
+
type: PagePanelOverlayContainer
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
373
|
+
minVersion: "12.0.0",
|
|
374
|
+
version: "22.2.6",
|
|
375
|
+
ngImport: i0,
|
|
376
|
+
type: PagePanelOverlayContainer,
|
|
377
|
+
decorators: [{ type: Injectable }]
|
|
378
|
+
});
|
|
379
|
+
const ɵPAGE_PANEL_OVERLAY_PROVIDERS = [Overlay, {
|
|
380
|
+
provide: OverlayContainer,
|
|
381
|
+
useClass: PagePanelOverlayContainer
|
|
382
|
+
}];
|
|
383
|
+
export { PAGE_APPEARANCES, PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_POSITION, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PAGE_FILTER_PLACEMENTS, PAGE_HEIGHT_VALUES, PAGE_SCROLL_VALUES, PAGE_SIDE_MODES, PAGE_SIDE_POSITIONS, PAGE_VARIANTS, PageStateService, isUiPageAppearance, isUiPageFilterPlacement, isUiPageHeight, isUiPageScroll, isUiPageSideMode, isUiPageSidePosition, isUiPageVariant, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵisActivePageOverlay, ɵsetupOverlayFocusManagement };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DOCUMENT } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { Component, ElementRef, booleanAttribute, computed, effect, inject, input, output
|
|
3
|
+
import { Component, ElementRef, booleanAttribute, computed, effect, inject, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
5
|
-
import { PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_SCROLL, PageStateService, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
|
|
5
|
+
import { PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_SCROLL, PageStateService, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
|
|
6
6
|
let nextPageFilterId = 0;
|
|
7
7
|
const FILTER_BG = "bg-surface/50";
|
|
8
8
|
const FILTER_BG_OPAQUE = "bg-[color-mix(in_srgb,var(--color-surface)_50%,var(--color-background))]";
|
|
@@ -44,7 +44,7 @@ var PageFilterComponent = class PageFilterComponent {
|
|
|
44
44
|
const scroll = this.resolvedScroll();
|
|
45
45
|
const open = this.page.filterOpen();
|
|
46
46
|
if (this.isStacked()) return cn("block shrink-0 border-b border-border text-surface-foreground", scroll === "page" ? `sticky top-0 z-10 ${FILTER_BG_OPAQUE}` : FILTER_BG, this.class(), this.isCollapsedStacked() && "hidden");
|
|
47
|
-
return cn("block min-h-0 border-border text-surface-foreground", this.isSticky() ? FILTER_BG : FILTER_BG_OPAQUE, scroll === "content" && "h-full overflow-auto", scroll === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-filter-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-filter-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-filter-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
|
|
47
|
+
return cn("block min-h-0 border-border text-surface-foreground", this.isSticky() ? FILTER_BG : FILTER_BG_OPAQUE, scroll === "content" && "h-full overflow-auto", scroll === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-filter-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-filter-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "overflow-auto overscroll-contain [&:not([inert])]:z-40 [&[inert]>.cdk-overlay-container]:hidden", this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-filter-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (open ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (open ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
|
|
48
48
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
49
49
|
constructor() {
|
|
50
50
|
ɵsetupOverlayFocusManagement({
|
|
@@ -53,6 +53,8 @@ var PageFilterComponent = class PageFilterComponent {
|
|
|
53
53
|
isOpen: this.page.filterOpen,
|
|
54
54
|
isInteractive: this.isInteractive,
|
|
55
55
|
isModal: this.isOverlay,
|
|
56
|
+
closeOnEsc: this.closeOnEsc,
|
|
57
|
+
close: () => this.page.closeFilter(),
|
|
56
58
|
takeReturnFocus: () => this.page.takeFilterReturnFocus()
|
|
57
59
|
});
|
|
58
60
|
effect(() => {
|
|
@@ -64,20 +66,6 @@ var PageFilterComponent = class PageFilterComponent {
|
|
|
64
66
|
id: this.resolvedId
|
|
65
67
|
});
|
|
66
68
|
});
|
|
67
|
-
effect((onCleanup) => {
|
|
68
|
-
if (!this.closeOnEsc() || this.isSticky()) return;
|
|
69
|
-
const defaultView = this.document?.defaultView;
|
|
70
|
-
if (!defaultView) return;
|
|
71
|
-
const handler = (event) => {
|
|
72
|
-
if (event.key !== "Escape") return;
|
|
73
|
-
if (!untracked(() => this.page.filterOpen())) return;
|
|
74
|
-
untracked(() => {
|
|
75
|
-
this.page.closeFilter();
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
defaultView.addEventListener("keydown", handler);
|
|
79
|
-
onCleanup(() => defaultView.removeEventListener("keydown", handler));
|
|
80
|
-
});
|
|
81
69
|
}
|
|
82
70
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
83
71
|
minVersion: "12.0.0",
|
|
@@ -165,8 +153,10 @@ var PageFilterComponent = class PageFilterComponent {
|
|
|
165
153
|
"attr.aria-modal": "ariaModal()",
|
|
166
154
|
"attr.aria-label": "dialogLabel()",
|
|
167
155
|
"attr.tabindex": "dialogTabindex()",
|
|
156
|
+
"style.translate": "isOverlay() && page.filterOpen() ? \"none\" : null",
|
|
168
157
|
"style.--page-filter-width": "resolvedWidth()"
|
|
169
158
|
} },
|
|
159
|
+
providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
|
|
170
160
|
ngImport: i0,
|
|
171
161
|
template: `<ng-content />`,
|
|
172
162
|
isInline: true
|
|
@@ -181,6 +171,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
181
171
|
type: Component,
|
|
182
172
|
args: [{
|
|
183
173
|
selector: "PageFilter",
|
|
174
|
+
providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
|
|
184
175
|
host: {
|
|
185
176
|
"[class]": "classes()",
|
|
186
177
|
"[attr.id]": "resolvedId",
|
|
@@ -195,6 +186,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
195
186
|
"[attr.aria-modal]": "ariaModal()",
|
|
196
187
|
"[attr.aria-label]": "dialogLabel()",
|
|
197
188
|
"[attr.tabindex]": "dialogTabindex()",
|
|
189
|
+
"[style.translate]": "isOverlay() && page.filterOpen() ? \"none\" : null",
|
|
198
190
|
"[style.--page-filter-width]": "resolvedWidth()"
|
|
199
191
|
},
|
|
200
192
|
template: `<ng-content />`
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DOCUMENT } from "@angular/common";
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import { Component, booleanAttribute, computed, contentChild, effect, inject, input, output } from "@angular/core";
|
|
3
4
|
import { Grip } from "lucide";
|
|
@@ -11,7 +12,7 @@ import { PageFilterComponent } from "@edsis/angular/theme/page/filter";
|
|
|
11
12
|
import { PageOverviewComponent } from "@edsis/angular/theme/page/overview";
|
|
12
13
|
import { PageHeaderComponent } from "@edsis/angular/theme/page/slots";
|
|
13
14
|
import { PageSideComponent } from "@edsis/angular/theme/page/side";
|
|
14
|
-
import { PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PageStateService } from "@edsis/angular/theme/page/core";
|
|
15
|
+
import { PAGE_DEFAULT_APPEARANCE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_HEIGHT, PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_MODE, PAGE_DEFAULT_SIDE_POSITION, PAGE_DEFAULT_SIDE_WIDTH, PAGE_DEFAULT_VARIANT, PageStateService, ɵisActivePageOverlay } from "@edsis/angular/theme/page/core";
|
|
15
16
|
const OVERVIEW_STACKED_ROWS = [
|
|
16
17
|
"grid-rows-[auto_auto_minmax(0,1fr)]",
|
|
17
18
|
"[&>[data-page-slot=filter]]:row-start-1",
|
|
@@ -28,6 +29,7 @@ const OVERVIEW_ROWS = [
|
|
|
28
29
|
let pageAppsLauncherInstanceId = 0;
|
|
29
30
|
var PageComponent = class PageComponent {
|
|
30
31
|
page = inject(PageStateService);
|
|
32
|
+
document = inject(DOCUMENT);
|
|
31
33
|
layout = inject(LayoutService, { optional: true });
|
|
32
34
|
navigation = inject(NAVIGATION_ADAPTER, { optional: true });
|
|
33
35
|
identity = inject(LayoutIdentityService, { optional: true });
|
|
@@ -77,7 +79,7 @@ var PageComponent = class PageComponent {
|
|
|
77
79
|
appsBrand = computed(() => this.identity?.brand() ?? null, ...ngDevMode ? [{ debugName: "appsBrand" }] : /* istanbul ignore next */ []);
|
|
78
80
|
appsUser = computed(() => this.identity?.user() ?? null, ...ngDevMode ? [{ debugName: "appsUser" }] : /* istanbul ignore next */ []);
|
|
79
81
|
hostClasses = computed(() => cn("relative block h-full min-h-0 w-full min-w-0 overflow-hidden text-foreground", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
80
|
-
shellClasses = computed(() => cn("relative
|
|
82
|
+
shellClasses = computed(() => cn("relative h-full min-h-0 w-full min-w-0", !this.showsOverlayBackdrop() && "z-10", this.scroll() === "content" && "grid grid-rows-[auto_minmax(0,1fr)_auto]", this.scroll() === "page" && "overflow-auto"), ...ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []);
|
|
81
83
|
bodyClasses = computed(() => {
|
|
82
84
|
if (this.variant() !== "side") return cn("relative min-w-0", this.scroll() === "content" && "min-h-0");
|
|
83
85
|
const sideMode = this.resolvedSideMode();
|
|
@@ -132,8 +134,8 @@ var PageComponent = class PageComponent {
|
|
|
132
134
|
});
|
|
133
135
|
}
|
|
134
136
|
handleBackdropClick() {
|
|
135
|
-
if (this.
|
|
136
|
-
if (this.
|
|
137
|
+
if (ɵisActivePageOverlay(this.document, this.page.sideId())) this.page.closeSide();
|
|
138
|
+
else if (ɵisActivePageOverlay(this.document, this.page.filterId())) this.page.closeFilter();
|
|
137
139
|
}
|
|
138
140
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
139
141
|
minVersion: "12.0.0",
|
|
@@ -319,9 +321,12 @@ var PageComponent = class PageComponent {
|
|
|
319
321
|
@if (showsOverlayBackdrop()) {
|
|
320
322
|
<button
|
|
321
323
|
type="button"
|
|
324
|
+
tabindex="-1"
|
|
325
|
+
aria-hidden="true"
|
|
322
326
|
[attr.aria-label]="overlayCloseLabel()"
|
|
323
327
|
data-page-overlay-backdrop
|
|
324
|
-
class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
|
|
328
|
+
class="absolute inset-0 z-20 overflow-hidden overscroll-contain bg-[hsl(var(--overlay-backdrop))]"
|
|
329
|
+
(mousedown)="$event.preventDefault()"
|
|
325
330
|
(click)="handleBackdropClick()"
|
|
326
331
|
></button>
|
|
327
332
|
}
|
|
@@ -497,9 +502,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
497
502
|
@if (showsOverlayBackdrop()) {
|
|
498
503
|
<button
|
|
499
504
|
type="button"
|
|
505
|
+
tabindex="-1"
|
|
506
|
+
aria-hidden="true"
|
|
500
507
|
[attr.aria-label]="overlayCloseLabel()"
|
|
501
508
|
data-page-overlay-backdrop
|
|
502
|
-
class="absolute inset-0 z-20 bg-[hsl(var(--overlay-backdrop))]"
|
|
509
|
+
class="absolute inset-0 z-20 overflow-hidden overscroll-contain bg-[hsl(var(--overlay-backdrop))]"
|
|
510
|
+
(mousedown)="$event.preventDefault()"
|
|
503
511
|
(click)="handleBackdropClick()"
|
|
504
512
|
></button>
|
|
505
513
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DOCUMENT } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { Component, ElementRef, computed, effect, inject, input, output
|
|
3
|
+
import { Component, ElementRef, computed, effect, inject, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
5
|
-
import { PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_WIDTH, PageStateService, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
|
|
5
|
+
import { PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_WIDTH, PageStateService, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵsetupOverlayFocusManagement } from "@edsis/angular/theme/page/core";
|
|
6
6
|
let nextPageSideId = 0;
|
|
7
7
|
var PageSideComponent = class PageSideComponent {
|
|
8
8
|
document = inject(DOCUMENT, { optional: true });
|
|
@@ -32,15 +32,17 @@ var PageSideComponent = class PageSideComponent {
|
|
|
32
32
|
classes = computed(() => {
|
|
33
33
|
const position = this.resolvedPosition();
|
|
34
34
|
const sideOpen = this.page.sideOpen();
|
|
35
|
-
return cn("block min-h-0 border-border bg-background", this.resolvedScroll() === "content" && "h-full overflow-auto", this.resolvedScroll() === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-side-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-side-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (sideOpen ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (sideOpen ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-side-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (sideOpen ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (sideOpen ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
|
|
35
|
+
return cn("block min-h-0 border-border bg-background", this.resolvedScroll() === "content" && "h-full overflow-auto", this.resolvedScroll() === "page" && "overflow-visible", this.isSticky() && "shrink-0 w-[var(--page-side-width)]", this.isSticky() && position === "left" && "border-r", this.isSticky() && position === "right" && "order-last border-l", this.isDrawer() && "absolute inset-y-0 z-20 w-[var(--page-side-width)] border shadow-sm transition-transform duration-normal ease-out motion-reduce:transition-none", this.isDrawer() && position === "left" && (sideOpen ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isDrawer() && position === "right" && (sideOpen ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.isOverlay() && "overflow-auto overscroll-contain [&:not([inert])]:z-40 [&[inert]>.cdk-overlay-container]:hidden", this.isOverlay() && "absolute inset-y-0 z-30 w-[var(--page-side-width)] border shadow-md transition-transform duration-normal ease-out motion-reduce:transition-none", this.isOverlay() && position === "left" && (sideOpen ? "left-0 translate-x-0" : "left-0 -translate-x-full"), this.isOverlay() && position === "right" && (sideOpen ? "right-0 translate-x-0" : "right-0 translate-x-full"), this.class());
|
|
36
36
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
37
37
|
constructor() {
|
|
38
38
|
ɵsetupOverlayFocusManagement({
|
|
39
39
|
document: this.document,
|
|
40
40
|
host: this.host.nativeElement,
|
|
41
|
-
isOpen: this.page.sideOpen,
|
|
41
|
+
isOpen: computed(() => this.page.variant() === "side" && this.page.sideOpen()),
|
|
42
42
|
isInteractive: this.isInteractive,
|
|
43
43
|
isModal: this.isOverlay,
|
|
44
|
+
closeOnEsc: this.closeOnEsc,
|
|
45
|
+
close: () => this.page.closeSide(),
|
|
44
46
|
takeReturnFocus: () => this.page.takeSideReturnFocus()
|
|
45
47
|
});
|
|
46
48
|
effect(() => {
|
|
@@ -51,20 +53,6 @@ var PageSideComponent = class PageSideComponent {
|
|
|
51
53
|
id: this.resolvedId
|
|
52
54
|
});
|
|
53
55
|
});
|
|
54
|
-
effect((onCleanup) => {
|
|
55
|
-
if (!this.closeOnEsc() || this.isSticky()) return;
|
|
56
|
-
const defaultView = this.document?.defaultView;
|
|
57
|
-
if (!defaultView) return;
|
|
58
|
-
const handler = (event) => {
|
|
59
|
-
if (event.key !== "Escape") return;
|
|
60
|
-
if (!untracked(() => this.page.sideOpen())) return;
|
|
61
|
-
untracked(() => {
|
|
62
|
-
this.page.closeSide();
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
defaultView.addEventListener("keydown", handler);
|
|
66
|
-
onCleanup(() => defaultView.removeEventListener("keydown", handler));
|
|
67
|
-
});
|
|
68
56
|
}
|
|
69
57
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
70
58
|
minVersion: "12.0.0",
|
|
@@ -137,8 +125,10 @@ var PageSideComponent = class PageSideComponent {
|
|
|
137
125
|
"attr.aria-modal": "ariaModal()",
|
|
138
126
|
"attr.aria-label": "dialogLabel()",
|
|
139
127
|
"attr.tabindex": "dialogTabindex()",
|
|
128
|
+
"style.translate": "isOverlay() && page.sideOpen() ? \"none\" : null",
|
|
140
129
|
"style.--page-side-width": "resolvedWidth()"
|
|
141
130
|
} },
|
|
131
|
+
providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
|
|
142
132
|
ngImport: i0,
|
|
143
133
|
template: `<ng-content />`,
|
|
144
134
|
isInline: true
|
|
@@ -153,6 +143,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
153
143
|
type: Component,
|
|
154
144
|
args: [{
|
|
155
145
|
selector: "PageSide",
|
|
146
|
+
providers: ɵPAGE_PANEL_OVERLAY_PROVIDERS,
|
|
156
147
|
host: {
|
|
157
148
|
"[class]": "classes()",
|
|
158
149
|
"[attr.id]": "resolvedId",
|
|
@@ -166,6 +157,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
166
157
|
"[attr.aria-modal]": "ariaModal()",
|
|
167
158
|
"[attr.aria-label]": "dialogLabel()",
|
|
168
159
|
"[attr.tabindex]": "dialogTabindex()",
|
|
160
|
+
"[style.translate]": "isOverlay() && page.sideOpen() ? \"none\" : null",
|
|
169
161
|
"[style.--page-side-width]": "resolvedWidth()"
|
|
170
162
|
},
|
|
171
163
|
template: `<ng-content />`
|
|
@@ -467,7 +467,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
467
467
|
type: ThemeSpaceService,
|
|
468
468
|
decorators: [{ type: Service }]
|
|
469
469
|
});
|
|
470
|
-
const UI_THEME_RELEASE_VERSION = "22.2.
|
|
470
|
+
const UI_THEME_RELEASE_VERSION = "22.2.18";
|
|
471
471
|
const THEME_STORAGE_VERSION_KEY = "theme-storage-version";
|
|
472
472
|
function validateThemeStorageReset(options) {
|
|
473
473
|
if ("storageVersion" in options) throw new Error("storageVersion was removed. Migrate to storageReset: { preserveKeys: [] }; the package supplies the version.");
|
package/navigation/README.md
CHANGED
|
@@ -70,10 +70,14 @@ Type dipilih lewat komponen anak deklaratif (`NavigationSidebar`, `NavigationDoc
|
|
|
70
70
|
a collapsed sidebar while its hover/focus preview is expanded, flyout tabs (including descendant
|
|
71
71
|
totals), and navbar/flyout grid entries. Compact rails and the minidock render no chevron and are
|
|
72
72
|
untouched. A badge that drops to zero brings the chevron back. The dot is a decorative
|
|
73
|
-
pseudo-element; `aria-expanded` and the badge's `aria-label` are unchanged. The
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
pseudo-element; `aria-expanded` and the badge's `aria-label` are unchanged. The dot takes the
|
|
74
|
+
item's own text color in its current state (foreground at rest, accent foreground on hover,
|
|
75
|
+
primary foreground when active), so it keeps that text's contrast on every surface. The ring
|
|
76
|
+
around the dot is a transparent cutout in the badge, so it always shows the item's real surface
|
|
77
|
+
(rest, hover, active, light or dark). Tune it with `--nav-badge-dot-size`,
|
|
78
|
+
`--nav-badge-dot-offset`, `--nav-badge-dot-color` (default `currentColor`),
|
|
79
|
+
`--nav-badge-dot-ring`, `--nav-badge-dot-ring-color` (default `transparent`, which keeps the
|
|
80
|
+
cutout), and `--nav-badge-dot-stroke` (the open-state outline).
|
|
77
81
|
`LayoutWrapperDefault` forwards it to its desktop and mobile navigation as `nav-badge-indicator`.
|
|
78
82
|
- `ariaLabel` overrides the host navigation label and defaults to `Primary navigation`.
|
|
79
83
|
- `label` on `NavigationFlyout` sets the single trigger label and defaults to `Menu`.
|