@ojiepermana/angular 22.2.15 → 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/ojiepermana-angular-component-composer.mjs +68 -19
- package/fesm2022/ojiepermana-angular-component-editor.mjs +68 -12
- package/fesm2022/ojiepermana-angular-component-input.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +7 -1
- package/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs} +28 -18
- package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-CSs3QW5t.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dl7VAyfV.mjs} +3 -3
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-Cgq8iaRG.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-2Jw-868m.mjs} +3 -1
- package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-7Drr8U4O.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-QHUdqD1N.mjs} +4 -4
- package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-BrRGBBcK.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-CoX6X3C2.mjs} +3 -3
- package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-DAxMpuW_.mjs → ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs} +13 -3
- package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-Bs6dssld.mjs → ojiepermana-angular-navigation-navigation-list.component-CRRaXJz4.mjs} +1 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs +33 -12
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +2 -1
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +24 -0
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +160 -92
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +9 -17
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +15 -6
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +10 -18
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +1 -0
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +1 -1
- package/navigation/README.md +17 -0
- package/package.json +5 -5
- package/theme/page/README.md +5 -3
- package/theme/styles/css/base/components.css +90 -0
- package/theme/styles/css/base/tokens.css +13 -0
- package/types/ojiepermana-angular-component-composer.d.ts +5 -1
- package/types/ojiepermana-angular-component-editor.d.ts +4 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +6 -0
- package/types/ojiepermana-angular-navigation.d.ts +12 -2
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +11 -1
- package/types/ojiepermana-angular-theme-page-core.d.ts +8 -9
- package/types/ojiepermana-angular-theme-page-root.d.ts +1 -0
|
@@ -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 "@ojiepermana/angular/component/utils/core";
|
|
5
|
-
import { PAGE_DEFAULT_FILTER_MODE, PAGE_DEFAULT_FILTER_PLACEMENT, PAGE_DEFAULT_FILTER_WIDTH, PAGE_DEFAULT_SCROLL, PageStateService, ɵsetupOverlayFocusManagement } from "@ojiepermana/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 "@ojiepermana/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 "@ojiepermana/angular/theme/page/filter";
|
|
|
11
12
|
import { PageOverviewComponent } from "@ojiepermana/angular/theme/page/overview";
|
|
12
13
|
import { PageHeaderComponent } from "@ojiepermana/angular/theme/page/slots";
|
|
13
14
|
import { PageSideComponent } from "@ojiepermana/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 "@ojiepermana/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 "@ojiepermana/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
|
}
|
|
@@ -388,6 +393,7 @@ var PageComponent = class PageComponent {
|
|
|
388
393
|
"compact",
|
|
389
394
|
"collapse-tree",
|
|
390
395
|
"rail",
|
|
396
|
+
"badge-indicator",
|
|
391
397
|
"class",
|
|
392
398
|
"itemClass",
|
|
393
399
|
"nav-group-class",
|
|
@@ -496,9 +502,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
496
502
|
@if (showsOverlayBackdrop()) {
|
|
497
503
|
<button
|
|
498
504
|
type="button"
|
|
505
|
+
tabindex="-1"
|
|
506
|
+
aria-hidden="true"
|
|
499
507
|
[attr.aria-label]="overlayCloseLabel()"
|
|
500
508
|
data-page-overlay-backdrop
|
|
501
|
-
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()"
|
|
502
511
|
(click)="handleBackdropClick()"
|
|
503
512
|
></button>
|
|
504
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 "@ojiepermana/angular/component/utils/core";
|
|
5
|
-
import { PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_WIDTH, PageStateService, ɵsetupOverlayFocusManagement } from "@ojiepermana/angular/theme/page/core";
|
|
5
|
+
import { PAGE_DEFAULT_SCROLL, PAGE_DEFAULT_SIDE_WIDTH, PageStateService, ɵPAGE_PANEL_OVERLAY_PROVIDERS, ɵsetupOverlayFocusManagement } from "@ojiepermana/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
|
@@ -63,6 +63,22 @@ Type dipilih lewat komponen anak deklaratif (`NavigationSidebar`, `NavigationDoc
|
|
|
63
63
|
- `badge-context` on `Navigation` supplies one reactive badge registry for every navigation type, keyed by
|
|
64
64
|
`NavigationItem.badge.source` (and route `data.navigationBadge` for the dockbar header).
|
|
65
65
|
`NavigationDockbar` also accepts `badge-context`; its legacy `dockbar-badge` input remains supported.
|
|
66
|
+
- `badge-indicator` on `Navigation` accepts `chevron` (default) or `dot`. With `dot`, a collapsible
|
|
67
|
+
target that shows a visible count badge drops its chevron, the badge takes the chevron's place at
|
|
68
|
+
the end of the row, and a small dot sits on the badge's bottom-right corner: filled while closed,
|
|
69
|
+
outlined while open. It applies to sidebar and drawer items (every level), the dockbar side panel,
|
|
70
|
+
a collapsed sidebar while its hover/focus preview is expanded, flyout tabs (including descendant
|
|
71
|
+
totals), and navbar/flyout grid entries. Compact rails and the minidock render no chevron and are
|
|
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 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).
|
|
81
|
+
`LayoutWrapperDefault` forwards it to its desktop and mobile navigation as `nav-badge-indicator`.
|
|
66
82
|
- `ariaLabel` overrides the host navigation label and defaults to `Primary navigation`.
|
|
67
83
|
- `label` on `NavigationFlyout` sets the single trigger label and defaults to `Menu`.
|
|
68
84
|
- `icon` on `NavigationFlyout` renders a Lucide icon on the trigger (the name must be registered with `provideIcons()`); `icon-position` (`start`/`end`) sets its placement and `icon-only` hides the label visually while keeping it as the accessible name (compact mode is always icon-only and falls back to the `menu` icon).
|
|
@@ -131,6 +147,7 @@ Inputs pada `<Navigation>` (container):
|
|
|
131
147
|
| `ariaLabel` | `string` | Accessible label on the host navigation landmark. |
|
|
132
148
|
| `compact` | `boolean` | Compatibility alias for collapsed-rail item layout. |
|
|
133
149
|
| `rail` | `default \| rail-active` | Extent of parent to child connectors in sidebar and dockbar. |
|
|
150
|
+
| `badge-indicator` | `chevron \| dot` | Swap a collapsible's chevron for a dot on its visible count badge. |
|
|
134
151
|
| `collapse-tree` | `stairs \| straight` | Controls nested connector styling for collapsible items. |
|
|
135
152
|
| `class` | `string` | Extra classes for the host `nav`. |
|
|
136
153
|
| `itemClass` | `string` | Shared classes applied to rendered nav items. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojiepermana/angular",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.18",
|
|
4
4
|
"description": "Accessible, tree-shakable Angular 22 design system from ojiepermana: UI components, charts, navigation shells, theme tokens, and an OpenAPI SDK generator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/ojiepermana/angular.git",
|
|
30
|
+
"url": "git+https://github.com/ojiepermana/angular-ui.git",
|
|
31
31
|
"directory": "packages/angular"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://github.com/ojiepermana/angular#readme",
|
|
33
|
+
"homepage": "https://github.com/ojiepermana/angular-ui#readme",
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/ojiepermana/angular/issues",
|
|
35
|
+
"url": "https://github.com/ojiepermana/angular-ui/issues",
|
|
36
36
|
"email": "me@ojiepermana.com"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -508,5 +508,5 @@
|
|
|
508
508
|
"module": "fesm2022/ojiepermana-angular.mjs",
|
|
509
509
|
"typings": "types/ojiepermana-angular.d.ts",
|
|
510
510
|
"type": "module",
|
|
511
|
-
"gitHead": "
|
|
511
|
+
"gitHead": "dcf3ef89367ad01320ae66bca71b4031bd1015b6"
|
|
512
512
|
}
|
package/theme/page/README.md
CHANGED
|
@@ -144,9 +144,11 @@ Latar `PageFilter` memakai token neutral tema yang dilembutkan, `bg-surface/50 t
|
|
|
144
144
|
Aksesibilitas: pada mode `drawer`/`overlay`, panel menjadi `role="dialog"` (dengan `aria-modal`
|
|
145
145
|
khusus `overlay`), fokus dipindahkan ke panel saat terbuka dan dikembalikan ke pemicu saat
|
|
146
146
|
tertutup, dan saat tertutup panel diberi `inert` sehingga isinya keluar dari tab order.
|
|
147
|
-
`overlay`
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
`overlay` membatasi fokus ke modal teratas, membuat konten lain di dokumen inert, dan mengunci
|
|
148
|
+
scroll dokumen. Panel dan backdrop tetap mengikuti geometri `Page`. Saat beberapa overlay Page
|
|
149
|
+
terbuka, backdrop dan `Esc` hanya menutup overlay teratas. `PageSide` memakai pola yang sama.
|
|
150
|
+
Mode `drawer` tetap nonmodal. Jika `closeOnEsc` dimatikan, sertakan kontrol tutup yang dapat
|
|
151
|
+
diakses dengan keyboard di dalam panel, misalnya `PageFilterToggle` atau `PageSideToggle`.
|
|
150
152
|
|
|
151
153
|
### `PageFilterToggle`
|
|
152
154
|
|
|
@@ -192,6 +192,96 @@
|
|
|
192
192
|
z-index: 20;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
/* Navigation[badge-indicator='dot'] — a collapsible target that shows BOTH its
|
|
196
|
+
* chevron and a visible count badge trades the chevron for a dot on the badge.
|
|
197
|
+
* Everything is keyed on what is rendered, so a badge that drops to zero (the
|
|
198
|
+
* badge element leaves the DOM) brings the chevron straight back, and compact
|
|
199
|
+
* targets, which render no chevron, are never matched.
|
|
200
|
+
*
|
|
201
|
+
* The dot is painted by the badge's slot, not the badge, so `currentColor` is
|
|
202
|
+
* the item's own text color in every state (rest, hover accent, active
|
|
203
|
+
* primary): text that already meets contrast on the item's surface. A color
|
|
204
|
+
* captured on the trigger could not reach a pseudo-element inside the badge,
|
|
205
|
+
* because currentColor inherits as a keyword and re-resolves against the
|
|
206
|
+
* badge's own text color.
|
|
207
|
+
*
|
|
208
|
+
* The ring is not painted either: the badge's mask cuts a hole the size of the
|
|
209
|
+
* dot plus the ring, so the item's real surface (rest, hover, active, layout
|
|
210
|
+
* patterns, light or dark) shows through it. --nav-badge-dot-ring-color paints
|
|
211
|
+
* it instead when a consumer wants an explicit color. */
|
|
212
|
+
[data-navigation-badge-indicator='dot']
|
|
213
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
214
|
+
> [data-navigation-chevron]
|
|
215
|
+
):has([data-navigation-badge])
|
|
216
|
+
> [data-navigation-chevron] {
|
|
217
|
+
/* The Icon carries a display utility, and @layer utilities outranks this
|
|
218
|
+
* layer however specific the selector is. */
|
|
219
|
+
display: none !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-navigation-badge-indicator='dot']
|
|
223
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
224
|
+
> [data-navigation-chevron]
|
|
225
|
+
)
|
|
226
|
+
[data-navigation-badge-slot] {
|
|
227
|
+
--nav-badge-dot-radius: calc(var(--nav-badge-dot-size) / 2);
|
|
228
|
+
--nav-badge-dot-center: calc(var(--nav-badge-dot-offset) + var(--nav-badge-dot-radius));
|
|
229
|
+
/* The slot takes over the badge's place in the row. `contents` is a
|
|
230
|
+
* utility, so only an important declaration in this earlier layer wins. */
|
|
231
|
+
display: inline-flex !important;
|
|
232
|
+
position: relative;
|
|
233
|
+
flex-shrink: 0;
|
|
234
|
+
align-self: center;
|
|
235
|
+
margin-inline-start: auto;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[data-navigation-badge-indicator='dot']
|
|
239
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
240
|
+
> [data-navigation-chevron]
|
|
241
|
+
)
|
|
242
|
+
[data-navigation-badge] {
|
|
243
|
+
--nav-badge-dot-hole: calc(var(--nav-badge-dot-radius) + var(--nav-badge-dot-ring));
|
|
244
|
+
--nav-badge-dot-mask: radial-gradient(
|
|
245
|
+
circle at calc(100% - var(--nav-badge-dot-center)) calc(100% - var(--nav-badge-dot-center)),
|
|
246
|
+
transparent var(--nav-badge-dot-hole),
|
|
247
|
+
#000 var(--nav-badge-dot-hole)
|
|
248
|
+
);
|
|
249
|
+
-webkit-mask-image: var(--nav-badge-dot-mask);
|
|
250
|
+
mask-image: var(--nav-badge-dot-mask);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Closed: a filled dot. */
|
|
254
|
+
[data-navigation-badge-indicator='dot']
|
|
255
|
+
:is(.nav-trigger, [data-navigation-flyout-tab], [data-navigation-flyout-entry]):has(
|
|
256
|
+
> [data-navigation-chevron]
|
|
257
|
+
)
|
|
258
|
+
[data-navigation-badge-slot]::after {
|
|
259
|
+
content: '';
|
|
260
|
+
position: absolute;
|
|
261
|
+
right: var(--nav-badge-dot-offset);
|
|
262
|
+
bottom: var(--nav-badge-dot-offset);
|
|
263
|
+
box-sizing: border-box;
|
|
264
|
+
width: var(--nav-badge-dot-size);
|
|
265
|
+
height: var(--nav-badge-dot-size);
|
|
266
|
+
border-radius: 9999px;
|
|
267
|
+
border: var(--nav-badge-dot-stroke) solid var(--nav-badge-dot-color);
|
|
268
|
+
background-color: var(--nav-badge-dot-color);
|
|
269
|
+
box-shadow: 0 0 0 var(--nav-badge-dot-ring) var(--nav-badge-dot-ring-color);
|
|
270
|
+
pointer-events: none;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Open: an outlined dot. The badge's hole already spans the dot, so the
|
|
274
|
+
* hollow shows the item surface rather than the badge fill behind it. */
|
|
275
|
+
[data-navigation-badge-indicator='dot']
|
|
276
|
+
:is(
|
|
277
|
+
.nav-trigger,
|
|
278
|
+
[data-navigation-flyout-tab],
|
|
279
|
+
[data-navigation-flyout-entry]
|
|
280
|
+
)[aria-expanded='true']:has(> [data-navigation-chevron])
|
|
281
|
+
[data-navigation-badge-slot]::after {
|
|
282
|
+
background-color: transparent;
|
|
283
|
+
}
|
|
284
|
+
|
|
195
285
|
/* Modal overlay backdrop shared by Dialog, Sheet, and Drawer. The element is
|
|
196
286
|
* rendered inside the CDK overlay container (outside component view
|
|
197
287
|
* encapsulation), so its styles must live in this global layer. The default
|
|
@@ -152,6 +152,19 @@
|
|
|
152
152
|
--nav-count-padding: var(--spacing-base);
|
|
153
153
|
--nav-count-offset: calc(var(--spacing-base) * -2);
|
|
154
154
|
--nav-count-font-size: calc(var(--font-size-base) * 0.625);
|
|
155
|
+
/* Navigation[badge-indicator='dot']: the open/closed dot pinned to the count
|
|
156
|
+
* badge's bottom-right corner. Size and offset ride --spacing-base so the dot
|
|
157
|
+
* keeps its place on the badge at every density; ring and stroke are hairlines.
|
|
158
|
+
* The color is the item's own text color in its current state (currentColor
|
|
159
|
+
* resolves where the dot is painted, inside the item). The ring is a
|
|
160
|
+
* transparent cutout, so it always shows the item's own surface; a ring
|
|
161
|
+
* color paints over that cutout when a consumer sets one. */
|
|
162
|
+
--nav-badge-dot-size: calc(var(--spacing-base) * 1.75); /* 7px @ normal */
|
|
163
|
+
--nav-badge-dot-offset: calc(var(--spacing-base) * -0.5); /* -2px @ normal */
|
|
164
|
+
--nav-badge-dot-color: currentColor;
|
|
165
|
+
--nav-badge-dot-ring: 1.5px;
|
|
166
|
+
--nav-badge-dot-ring-color: transparent;
|
|
167
|
+
--nav-badge-dot-stroke: 1.5px;
|
|
155
168
|
/* Item subtitles/descriptions — a quiet 12px tier under labels. */
|
|
156
169
|
--nav-subtitle-size: calc(var(--font-size-base) * 0.75);
|
|
157
170
|
--nav-subtitle-line-height: 1.35;
|
|
@@ -137,17 +137,21 @@ export declare class ComposerInputComponent {
|
|
|
137
137
|
export declare class ComposerTextareaComponent implements AfterViewInit, ControlValueAccessor {
|
|
138
138
|
private readonly el;
|
|
139
139
|
private readonly composer;
|
|
140
|
+
private readonly destroyRef;
|
|
141
|
+
protected readonly nativeAutosize: boolean;
|
|
140
142
|
readonly rows: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
141
143
|
readonly maxRows: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
142
144
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
143
145
|
readonly invalidInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
144
146
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
147
|
+
protected readonly maxBlockSize: import("@angular/core").Signal<string | null>;
|
|
145
148
|
private readonly disabledState;
|
|
146
149
|
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
147
150
|
protected readonly invalid: import("@angular/core").Signal<boolean>;
|
|
148
151
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
149
152
|
private onChange;
|
|
150
153
|
private onTouched;
|
|
154
|
+
constructor();
|
|
151
155
|
ngAfterViewInit(): void;
|
|
152
156
|
writeValue(value: string | null): void;
|
|
153
157
|
registerOnChange(fn: (value: string) => void): void;
|
|
@@ -158,7 +162,7 @@ export declare class ComposerTextareaComponent implements AfterViewInit, Control
|
|
|
158
162
|
protected handleInput(): void;
|
|
159
163
|
protected handleBlur(): void;
|
|
160
164
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
161
|
-
private
|
|
165
|
+
private observeSize;
|
|
162
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComposerTextareaComponent, never>;
|
|
163
167
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComposerTextareaComponent, "textarea[ComposerInput]", never, {
|
|
164
168
|
"rows": {
|
|
@@ -166,6 +166,7 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
166
166
|
private readonly editor;
|
|
167
167
|
private readonly document;
|
|
168
168
|
private readonly sanitizeHtml;
|
|
169
|
+
private readonly htmlParser;
|
|
169
170
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
170
171
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
171
172
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -177,6 +178,7 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
177
178
|
protected readonly invalid: import("@angular/core").Signal<boolean>;
|
|
178
179
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
179
180
|
private lastKnownValue;
|
|
181
|
+
private pendingValue;
|
|
180
182
|
private onChange;
|
|
181
183
|
private onTouched;
|
|
182
184
|
ngAfterViewInit(): void;
|
|
@@ -189,6 +191,8 @@ export declare class EditorContentComponent implements AfterViewInit, OnDestroy,
|
|
|
189
191
|
focus(): void;
|
|
190
192
|
protected handleInput(): void;
|
|
191
193
|
private setSanitizedValue;
|
|
194
|
+
private renderHtml;
|
|
195
|
+
private serializeContent;
|
|
192
196
|
protected handleBlur(): void;
|
|
193
197
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
194
198
|
private exec;
|
|
@@ -8,6 +8,12 @@ export type NavigationType = NavigationVerticalType | NavigationHorizontalType;
|
|
|
8
8
|
export type NavigationCollapseTree = 'stairs' | 'straight';
|
|
9
9
|
/** Jangkauan konektor parent ke child, tanpa mengubah bentuk collapse tree. */
|
|
10
10
|
export type NavigationRail = 'default' | 'rail-active';
|
|
11
|
+
/**
|
|
12
|
+
* Penanda buka/tutup pada item collapsible yang sedang menampilkan count badge.
|
|
13
|
+
* `chevron` (default) mempertahankan chevron; `dot` menggantinya dengan titik kecil
|
|
14
|
+
* di sudut badge, dan chevron kembali begitu badge hilang.
|
|
15
|
+
*/
|
|
16
|
+
export type NavigationBadgeIndicator = 'chevron' | 'dot';
|
|
11
17
|
export type NavigationAppearance = 'flat' | 'border-rail';
|
|
12
18
|
export type NavigationVerticalPosition = 'left' | 'right';
|
|
13
19
|
export type NavigationHorizontalPosition = 'top' | 'bottom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirective$1 } from "@ojiepermana/angular/navigation/icon";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Signal, TemplateRef } from "@angular/core";
|
|
4
|
-
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@ojiepermana/angular/navigation/types";
|
|
4
|
+
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NavigationActionHandler, NavigationAppearance, NavigationAppearance as NavigationAppearance$1, NavigationBadgeAriaLabel, NavigationBadgeContext, NavigationBadgeContext as NavigationBadgeContext$1, NavigationBadgeCount, NavigationBadgeIndicator, NavigationBadgeIndicator as NavigationBadgeIndicator$1, NavigationBadgeSource, NavigationBadgeSource as NavigationBadgeSource$1, NavigationBadgeValueSource, NavigationCollapseTree, NavigationCollapseTree as NavigationCollapseTree$1, NavigationDockbarMode, NavigationDockbarMode as NavigationDockbarMode$1, NavigationDockbarRouteConfig, NavigationDockbarRouteContext, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationFlyoutIconPosition, NavigationFlyoutIconPosition as NavigationFlyoutIconPosition$1, NavigationFlyoutTriggerVariant, NavigationFlyoutTriggerVariant as NavigationFlyoutTriggerVariant$1, NavigationHorizontalPosition, NavigationHorizontalPosition as NavigationHorizontalPosition$1, NavigationHorizontalType, NavigationIconContext, NavigationIconContext as NavigationIconContext$1, NavigationItem, NavigationItem as NavigationItem$1, NavigationItemBadge, NavigationItemClasses, NavigationItemType, NavigationLink, NavigationNormalizedItem, NavigationNormalizedItem as NavigationNormalizedItem$1, NavigationNormalizedItemType, NavigationOrientation, NavigationOrientation as NavigationOrientation$1, NavigationPosition, NavigationPosition as NavigationPosition$1, NavigationRail, NavigationRegisterInput, NavigationResolvedRouteContext, NavigationResolvedRouteContext as NavigationResolvedRouteContext$1, NavigationRouteData, NavigationSelection, NavigationSelection as NavigationSelection$1, NavigationState, NavigationState as NavigationState$1, NavigationType, NavigationType as NavigationType$1, NavigationVerticalPosition, NavigationVerticalPosition as NavigationVerticalPosition$1, NavigationVerticalType, NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems } from "@ojiepermana/angular/navigation/types";
|
|
5
5
|
export * from "@ojiepermana/angular/navigation/core";
|
|
6
6
|
/**
|
|
7
7
|
* Konfigurasi yang didaftarkan komponen type (`<NavigationSidebar>`,
|
|
@@ -86,6 +86,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
86
86
|
readonly compact: import("@angular/core").InputSignal<boolean>;
|
|
87
87
|
readonly collapseTree: import("@angular/core").InputSignal<NavigationCollapseTree$1>;
|
|
88
88
|
readonly rail: import("@angular/core").InputSignal<NavigationRail>;
|
|
89
|
+
/**
|
|
90
|
+
* `dot` mengganti chevron item collapsible yang count badge-nya tampil dengan titik
|
|
91
|
+
* di sudut badge (penuh saat tertutup, kosong saat terbuka). Default `chevron`.
|
|
92
|
+
*/
|
|
93
|
+
readonly badgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator$1>;
|
|
89
94
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
90
95
|
readonly itemClass: import("@angular/core").InputSignal<string>;
|
|
91
96
|
/** Kelas Tailwind untuk container `<li>` group horizontal (flyout tab / navbar group). */
|
|
@@ -223,6 +228,11 @@ export declare class NavigationContainerComponent implements NavigationShellCont
|
|
|
223
228
|
"required": false;
|
|
224
229
|
"isSignal": true;
|
|
225
230
|
};
|
|
231
|
+
"badgeIndicator": {
|
|
232
|
+
"alias": "badge-indicator";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
226
236
|
"class": {
|
|
227
237
|
"alias": "class";
|
|
228
238
|
"required": false;
|
|
@@ -866,4 +876,4 @@ export declare class NavigationHeaderTitleComponent {
|
|
|
866
876
|
* memakai dua huruf pertamanya.
|
|
867
877
|
*/
|
|
868
878
|
export declare function deriveNavigationInitials(name: string): string;
|
|
869
|
-
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
879
|
+
export { NAVIGATION_DOCKBAR_FALLBACK_ICON, type NavigationActionHandler, type NavigationAppearance, type NavigationBadgeAriaLabel, type NavigationBadgeContext, type NavigationBadgeCount, type NavigationBadgeIndicator, type NavigationBadgeSource, type NavigationBadgeValueSource, type NavigationCollapseTree, type NavigationDockbarMode, type NavigationDockbarRouteConfig, type NavigationDockbarRouteContext, type NavigationFlyoutIconPosition, type NavigationFlyoutTriggerVariant, type NavigationHorizontalPosition, type NavigationHorizontalType, type NavigationIconContext, NavigationIconDirective, type NavigationItem, type NavigationItemBadge, type NavigationItemClasses, type NavigationItemType, type NavigationLink, type NavigationNormalizedItem, type NavigationNormalizedItemType, type NavigationOrientation, type NavigationPosition, type NavigationRegisterInput, type NavigationResolvedRouteContext, type NavigationRouteData, type NavigationSelection, type NavigationState, type NavigationType, type NavigationVerticalPosition, type NavigationVerticalType, type NavigationVisibilityHandler, formatNavigationBadgeCount, normalizeUiNavItems, toMinidockItems };
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { ElementRef, InjectionToken, Provider } from "@angular/core";
|
|
3
3
|
import { ThemeSettingsNavigationMode, ThemeSettingsNavigationType } from "@ojiepermana/angular/theme/component/settings";
|
|
4
4
|
import { NavigationDockbarRouteContext } from "@ojiepermana/angular/navigation";
|
|
5
|
-
import { NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@ojiepermana/angular/navigation/types";
|
|
5
|
+
import { NavigationBadgeIndicator, NavigationDockbarRouteContext as NavigationDockbarRouteContext$1, NavigationItem, NavigationRail, NavigationType } from "@ojiepermana/angular/navigation/types";
|
|
6
6
|
/**
|
|
7
7
|
* The identity shape the layout wrappers consume. The library defines the structure
|
|
8
8
|
* only; the concrete brand and user values come from the consumer as inputs.
|
|
@@ -521,6 +521,11 @@ export declare class LayoutWrapperDefault {
|
|
|
521
521
|
readonly navTypeMode: import("@angular/core").InputSignal<ThemeSettingsNavigationMode>;
|
|
522
522
|
/** Extent of parent to child rails in sidebar and dockbar menus. */
|
|
523
523
|
readonly navRail: import("@angular/core").InputSignal<NavigationRail>;
|
|
524
|
+
/**
|
|
525
|
+
* Forwarded to the desktop and mobile `<Navigation>` as `badge-indicator`. `dot` swaps a
|
|
526
|
+
* collapsible's chevron for a dot on its visible count badge; default `chevron`.
|
|
527
|
+
*/
|
|
528
|
+
readonly navBadgeIndicator: import("@angular/core").InputSignal<NavigationBadgeIndicator>;
|
|
524
529
|
/** Opt-in route-aware dockbar state; ignored by other navigation types. */
|
|
525
530
|
readonly dockbarRouteContext: import("@angular/core").InputSignal<NavigationDockbarRouteContext$1 | null>;
|
|
526
531
|
/** Registry badge untuk semua jenis navigasi desktop dan sidebar mobile. */
|
|
@@ -617,6 +622,11 @@ export declare class LayoutWrapperDefault {
|
|
|
617
622
|
"required": false;
|
|
618
623
|
"isSignal": true;
|
|
619
624
|
};
|
|
625
|
+
"navBadgeIndicator": {
|
|
626
|
+
"alias": "nav-badge-indicator";
|
|
627
|
+
"required": false;
|
|
628
|
+
"isSignal": true;
|
|
629
|
+
};
|
|
620
630
|
"dockbarRouteContext": {
|
|
621
631
|
"alias": "dockbar-route-context";
|
|
622
632
|
"required": false;
|