@ojiepermana/angular 22.2.4 → 22.2.5
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/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-4RIokl1C.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-BYN_Vxm3.mjs} +36 -5
- package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-DC8rfxS5.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dlyt6eZr.mjs} +17 -32
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-meQb_EWZ.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-DeF_s1vE.mjs} +35 -20
- package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-DRdw2G-c.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-BOGL8MY0.mjs} +23 -4
- package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-Bx1NcrWO.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-Cb4bHM58.mjs} +29 -4
- package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-ERZNpmTZ.mjs → ojiepermana-angular-navigation-navigation-item.component-DLgcJQOC.mjs} +351 -108
- package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-D-oOKwHg.mjs → ojiepermana-angular-navigation-navigation-list.component-BYc3WCt8.mjs} +20 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs +66 -15
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +48 -2
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +1 -0
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +1 -0
- package/navigation/README.md +92 -3
- package/package.json +2 -2
- package/theme/styles/css/base/components.css +20 -0
- package/theme/styles/css/base/tokens.css +6 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +3 -3
- package/types/ojiepermana-angular-navigation.d.ts +16 -0
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +17 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DLgcJQOC.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, InjectionToken, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
5
5
|
const NAVIGATION_SHELL = new InjectionToken("NAVIGATION_SHELL");
|
|
6
6
|
var NavigationListComponent = class NavigationListComponent {
|
|
7
|
+
badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
|
|
7
8
|
navId = input("default", ...ngDevMode ? [{ debugName: "navId" }] : /* istanbul ignore next */ []);
|
|
8
9
|
items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
9
10
|
collapsed = input(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
@@ -36,6 +37,13 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
36
37
|
isStandalone: true,
|
|
37
38
|
selector: "NavigationList",
|
|
38
39
|
inputs: {
|
|
40
|
+
badgeContext: {
|
|
41
|
+
classPropertyName: "badgeContext",
|
|
42
|
+
publicName: "badgeContext",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
39
47
|
navId: {
|
|
40
48
|
classPropertyName: "navId",
|
|
41
49
|
publicName: "navId",
|
|
@@ -143,6 +151,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
143
151
|
[itemClass]="itemClass()"
|
|
144
152
|
[activeIds]="activeIds()"
|
|
145
153
|
[activeUrl]="activeUrl()"
|
|
154
|
+
[badgeContext]="badgeContext()"
|
|
146
155
|
[iconTemplate]="iconTemplate()"
|
|
147
156
|
[collapseTree]="collapseTree()"
|
|
148
157
|
[openedIds]="openedIds()"
|
|
@@ -158,6 +167,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
158
167
|
type: NavigationItemComponent,
|
|
159
168
|
selector: "li[NavigationItem]",
|
|
160
169
|
inputs: [
|
|
170
|
+
"badgeContext",
|
|
161
171
|
"navId",
|
|
162
172
|
"item",
|
|
163
173
|
"level",
|
|
@@ -207,6 +217,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
207
217
|
[itemClass]="itemClass()"
|
|
208
218
|
[activeIds]="activeIds()"
|
|
209
219
|
[activeUrl]="activeUrl()"
|
|
220
|
+
[badgeContext]="badgeContext()"
|
|
210
221
|
[iconTemplate]="iconTemplate()"
|
|
211
222
|
[collapseTree]="collapseTree()"
|
|
212
223
|
[openedIds]="openedIds()"
|
|
@@ -219,6 +230,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
219
230
|
}]
|
|
220
231
|
}],
|
|
221
232
|
propDecorators: {
|
|
233
|
+
badgeContext: [{
|
|
234
|
+
type: i0.Input,
|
|
235
|
+
args: [{
|
|
236
|
+
isSignal: true,
|
|
237
|
+
alias: "badgeContext",
|
|
238
|
+
required: false
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
222
241
|
navId: [{
|
|
223
242
|
type: i0.Input,
|
|
224
243
|
args: [{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./ojiepermana-angular-navigation-navigation-badge-count.component-BYN_Vxm3.mjs";
|
|
2
|
+
import { n as NAVIGATION_SHELL, t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-BYc3WCt8.mjs";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
|
|
4
5
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -73,6 +74,10 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
73
74
|
alias: "data-id"
|
|
74
75
|
});
|
|
75
76
|
data = input([], ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
77
|
+
badgeContext = input(null, {
|
|
78
|
+
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
79
|
+
alias: "badge-context"
|
|
80
|
+
});
|
|
76
81
|
ariaLabel = input("Primary navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
77
82
|
compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
|
|
78
83
|
collapseTree = input("stairs", {
|
|
@@ -103,7 +108,8 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
103
108
|
collapsedPreference = computed(() => this.typeConfig()?.collapsed?.() ?? null, ...ngDevMode ? [{ debugName: "collapsedPreference" }] : /* istanbul ignore next */ []);
|
|
104
109
|
dockbarModePreference = computed(() => this.typeConfig()?.dockbarMode?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarModePreference" }] : /* istanbul ignore next */ []);
|
|
105
110
|
dockbarRouteContextPreference = computed(() => this.typeConfig()?.dockbarRouteContext?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarRouteContextPreference" }] : /* istanbul ignore next */ []);
|
|
106
|
-
|
|
111
|
+
resolvedBadgeContext = computed(() => this.badgeContext() ?? this.typeConfig()?.dockbarBadgeContext?.() ?? EMPTY_NAVIGATION_BADGE_CONTEXT$1, ...ngDevMode ? [{ debugName: "resolvedBadgeContext" }] : /* istanbul ignore next */ []);
|
|
112
|
+
dockbarBadgeContext = this.resolvedBadgeContext;
|
|
107
113
|
dockbarRouteHeaderVisible = computed(() => this.typeConfig()?.dockbarRouteHeaderVisible?.() ?? false, ...ngDevMode ? [{ debugName: "dockbarRouteHeaderVisible" }] : /* istanbul ignore next */ []);
|
|
108
114
|
dockbarAsideFooter = computed(() => this.typeConfig()?.dockbarAsideFooter?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarAsideFooter" }] : /* istanbul ignore next */ []);
|
|
109
115
|
sidebarCollapse = computed(() => this.typeConfig()?.sidebarCollapse?.() ?? false, ...ngDevMode ? [{ debugName: "sidebarCollapse" }] : /* istanbul ignore next */ []);
|
|
@@ -166,7 +172,8 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
166
172
|
const icon = activeEntry ? this.cleanString(activeEntry.icon) ?? fallbackIcon : route.icon ?? fallbackIcon;
|
|
167
173
|
const label = this.cleanString(activeEntry?.title) ?? route.label ?? "Current navigation route";
|
|
168
174
|
const badgeKey = activeEntry?.badge?.source ?? route.badge;
|
|
169
|
-
const
|
|
175
|
+
const badgeContext = this.resolvedBadgeContext();
|
|
176
|
+
const badge = badgeKey && Object.hasOwn(badgeContext, badgeKey) ? badgeContext[badgeKey] : null;
|
|
170
177
|
const item = activeEntry?.source ?? {
|
|
171
178
|
title: label,
|
|
172
179
|
icon
|
|
@@ -177,7 +184,7 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
177
184
|
icon,
|
|
178
185
|
label,
|
|
179
186
|
badge,
|
|
180
|
-
badgeClass: cn("
|
|
187
|
+
badgeClass: cn("nav-count-overlay top-0 right-0", activeEntry?.badge?.classes),
|
|
181
188
|
iconContext: {
|
|
182
189
|
$implicit: icon,
|
|
183
190
|
icon,
|
|
@@ -340,6 +347,13 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
340
347
|
isRequired: false,
|
|
341
348
|
transformFunction: null
|
|
342
349
|
},
|
|
350
|
+
badgeContext: {
|
|
351
|
+
classPropertyName: "badgeContext",
|
|
352
|
+
publicName: "badge-context",
|
|
353
|
+
isSignal: true,
|
|
354
|
+
isRequired: false,
|
|
355
|
+
transformFunction: null
|
|
356
|
+
},
|
|
343
357
|
ariaLabel: {
|
|
344
358
|
classPropertyName: "ariaLabel",
|
|
345
359
|
publicName: "ariaLabel",
|
|
@@ -510,6 +524,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
510
524
|
required: false
|
|
511
525
|
}]
|
|
512
526
|
}],
|
|
527
|
+
badgeContext: [{
|
|
528
|
+
type: i0.Input,
|
|
529
|
+
args: [{
|
|
530
|
+
isSignal: true,
|
|
531
|
+
alias: "badge-context",
|
|
532
|
+
required: false
|
|
533
|
+
}]
|
|
534
|
+
}],
|
|
513
535
|
ariaLabel: [{
|
|
514
536
|
type: i0.Input,
|
|
515
537
|
args: [{
|
|
@@ -650,6 +672,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
650
672
|
[groupClass]="container.groupClass()"
|
|
651
673
|
[activeIds]="container.activeIdSet()"
|
|
652
674
|
[activeUrl]="container.activeUrl()"
|
|
675
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
653
676
|
[iconTemplate]="container.iconTemplate()"
|
|
654
677
|
[collapseTree]="container.collapseTree()"
|
|
655
678
|
[openedIds]="container.openedIds()"
|
|
@@ -672,6 +695,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
672
695
|
[groupClass]="container.groupClass()"
|
|
673
696
|
[activeIds]="container.activeIdSet()"
|
|
674
697
|
[activeUrl]="container.activeUrl()"
|
|
698
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
675
699
|
[iconTemplate]="container.iconTemplate()"
|
|
676
700
|
[collapseTree]="container.collapseTree()"
|
|
677
701
|
[openedIds]="container.openedIds()"
|
|
@@ -685,7 +709,6 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
685
709
|
[navId]="navState.id"
|
|
686
710
|
[items]="container.normalizedItems()"
|
|
687
711
|
[railItems]="container.dockbarRailItems()"
|
|
688
|
-
[badgeContext]="container.dockbarBadgeContext()"
|
|
689
712
|
[mode]="navState.dockbarMode"
|
|
690
713
|
[position]="navState.position"
|
|
691
714
|
[asideFooterTemplate]="container.dockbarAsideFooter()"
|
|
@@ -697,6 +720,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
697
720
|
? container.dockbarResolvedRouteContext().url
|
|
698
721
|
: container.activeUrl()
|
|
699
722
|
"
|
|
723
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
700
724
|
[iconTemplate]="container.iconTemplate()"
|
|
701
725
|
[collapseTree]="container.collapseTree()"
|
|
702
726
|
[openedIds]="container.openedIds()"
|
|
@@ -715,6 +739,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
715
739
|
[itemClass]="container.itemClass()"
|
|
716
740
|
[activeIds]="container.activeIdSet()"
|
|
717
741
|
[activeUrl]="container.activeUrl()"
|
|
742
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
718
743
|
[iconTemplate]="container.iconTemplate()"
|
|
719
744
|
[collapseTree]="container.collapseTree()"
|
|
720
745
|
[openedIds]="container.openedIds()"
|
|
@@ -731,6 +756,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
731
756
|
[itemClass]="container.itemClass()"
|
|
732
757
|
[activeIds]="container.activeIdSet()"
|
|
733
758
|
[activeUrl]="container.activeUrl()"
|
|
759
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
734
760
|
[iconTemplate]="container.iconTemplate()"
|
|
735
761
|
[collapseTree]="container.collapseTree()"
|
|
736
762
|
[openedIds]="container.openedIds()"
|
|
@@ -745,6 +771,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
745
771
|
type: NavigationListComponent,
|
|
746
772
|
selector: "NavigationList",
|
|
747
773
|
inputs: [
|
|
774
|
+
"badgeContext",
|
|
748
775
|
"navId",
|
|
749
776
|
"items",
|
|
750
777
|
"collapsed",
|
|
@@ -761,9 +788,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
761
788
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
762
789
|
}],
|
|
763
790
|
deferBlockDependencies: [
|
|
764
|
-
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
765
|
-
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
766
|
-
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
791
|
+
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-BOGL8MY0.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
|
|
792
|
+
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-Cb4bHM58.mjs").then((m) => m.NavigationHorizontalComponent)],
|
|
793
|
+
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dlyt6eZr.mjs").then((m) => m.NavigationDockbarMenuComponent)]
|
|
767
794
|
]
|
|
768
795
|
});
|
|
769
796
|
};
|
|
@@ -773,9 +800,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
773
800
|
ngImport: i0,
|
|
774
801
|
type: NavigationContentComponent,
|
|
775
802
|
resolveDeferredDeps: () => [
|
|
776
|
-
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
777
|
-
import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
778
|
-
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
803
|
+
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-BOGL8MY0.mjs").then((m) => m.NavigationFlyoutMenuComponent),
|
|
804
|
+
import("./ojiepermana-angular-navigation-navigation-horizontal.component-Cb4bHM58.mjs").then((m) => m.NavigationHorizontalComponent),
|
|
805
|
+
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dlyt6eZr.mjs").then((m) => m.NavigationDockbarMenuComponent)
|
|
779
806
|
],
|
|
780
807
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
781
808
|
decorators: [{
|
|
@@ -814,6 +841,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
814
841
|
[groupClass]="container.groupClass()"
|
|
815
842
|
[activeIds]="container.activeIdSet()"
|
|
816
843
|
[activeUrl]="container.activeUrl()"
|
|
844
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
817
845
|
[iconTemplate]="container.iconTemplate()"
|
|
818
846
|
[collapseTree]="container.collapseTree()"
|
|
819
847
|
[openedIds]="container.openedIds()"
|
|
@@ -836,6 +864,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
836
864
|
[groupClass]="container.groupClass()"
|
|
837
865
|
[activeIds]="container.activeIdSet()"
|
|
838
866
|
[activeUrl]="container.activeUrl()"
|
|
867
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
839
868
|
[iconTemplate]="container.iconTemplate()"
|
|
840
869
|
[collapseTree]="container.collapseTree()"
|
|
841
870
|
[openedIds]="container.openedIds()"
|
|
@@ -849,7 +878,6 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
849
878
|
[navId]="navState.id"
|
|
850
879
|
[items]="container.normalizedItems()"
|
|
851
880
|
[railItems]="container.dockbarRailItems()"
|
|
852
|
-
[badgeContext]="container.dockbarBadgeContext()"
|
|
853
881
|
[mode]="navState.dockbarMode"
|
|
854
882
|
[position]="navState.position"
|
|
855
883
|
[asideFooterTemplate]="container.dockbarAsideFooter()"
|
|
@@ -861,6 +889,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
861
889
|
? container.dockbarResolvedRouteContext().url
|
|
862
890
|
: container.activeUrl()
|
|
863
891
|
"
|
|
892
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
864
893
|
[iconTemplate]="container.iconTemplate()"
|
|
865
894
|
[collapseTree]="container.collapseTree()"
|
|
866
895
|
[openedIds]="container.openedIds()"
|
|
@@ -879,6 +908,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
879
908
|
[itemClass]="container.itemClass()"
|
|
880
909
|
[activeIds]="container.activeIdSet()"
|
|
881
910
|
[activeUrl]="container.activeUrl()"
|
|
911
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
882
912
|
[iconTemplate]="container.iconTemplate()"
|
|
883
913
|
[collapseTree]="container.collapseTree()"
|
|
884
914
|
[openedIds]="container.openedIds()"
|
|
@@ -895,6 +925,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
895
925
|
[itemClass]="container.itemClass()"
|
|
896
926
|
[activeIds]="container.activeIdSet()"
|
|
897
927
|
[activeUrl]="container.activeUrl()"
|
|
928
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
898
929
|
[iconTemplate]="container.iconTemplate()"
|
|
899
930
|
[collapseTree]="container.collapseTree()"
|
|
900
931
|
[openedIds]="container.openedIds()"
|
|
@@ -1410,6 +1441,11 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1410
1441
|
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
1411
1442
|
alias: "dockbar-badge"
|
|
1412
1443
|
});
|
|
1444
|
+
badges = input(null, {
|
|
1445
|
+
...ngDevMode ? { debugName: "badges" } : /* istanbul ignore next */ {},
|
|
1446
|
+
alias: "badge-context"
|
|
1447
|
+
});
|
|
1448
|
+
resolvedBadges = computed(() => this.badges() ?? this.badgeContext(), ...ngDevMode ? [{ debugName: "resolvedBadges" }] : /* istanbul ignore next */ []);
|
|
1413
1449
|
class = input("", {
|
|
1414
1450
|
...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
|
|
1415
1451
|
alias: "class"
|
|
@@ -1430,7 +1466,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1430
1466
|
position: this.position,
|
|
1431
1467
|
dockbarMode: this.mode,
|
|
1432
1468
|
dockbarRouteContext: this.routeContext,
|
|
1433
|
-
dockbarBadgeContext: this.
|
|
1469
|
+
dockbarBadgeContext: this.resolvedBadges,
|
|
1434
1470
|
dockbarRouteHeaderVisible: computed(() => this.routeContextEnabled() && this.headerSlot() === void 0),
|
|
1435
1471
|
dockbarAsideFooter: computed(() => this.asideFooterSlot()?.templateRef ?? null)
|
|
1436
1472
|
};
|
|
@@ -1500,6 +1536,13 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1500
1536
|
isRequired: false,
|
|
1501
1537
|
transformFunction: null
|
|
1502
1538
|
},
|
|
1539
|
+
badges: {
|
|
1540
|
+
classPropertyName: "badges",
|
|
1541
|
+
publicName: "badge-context",
|
|
1542
|
+
isSignal: true,
|
|
1543
|
+
isRequired: false,
|
|
1544
|
+
transformFunction: null
|
|
1545
|
+
},
|
|
1503
1546
|
class: {
|
|
1504
1547
|
classPropertyName: "class",
|
|
1505
1548
|
publicName: "class",
|
|
@@ -1664,7 +1707,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1664
1707
|
exportAs: ["Tooltip"]
|
|
1665
1708
|
}
|
|
1666
1709
|
],
|
|
1667
|
-
deferBlockDependencies: [() => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
1710
|
+
deferBlockDependencies: [() => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-BYN_Vxm3.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)]]
|
|
1668
1711
|
});
|
|
1669
1712
|
};
|
|
1670
1713
|
i0.ɵɵngDeclareClassMetadataAsync({
|
|
@@ -1672,7 +1715,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1672
1715
|
version: "22.2.3",
|
|
1673
1716
|
ngImport: i0,
|
|
1674
1717
|
type: NavigationDockbarComponent,
|
|
1675
|
-
resolveDeferredDeps: () => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
1718
|
+
resolveDeferredDeps: () => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-BYN_Vxm3.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)],
|
|
1676
1719
|
resolveMetadata: (NavigationBadgeCountComponent) => ({
|
|
1677
1720
|
decorators: [{
|
|
1678
1721
|
type: Component,
|
|
@@ -1795,6 +1838,14 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1795
1838
|
required: false
|
|
1796
1839
|
}]
|
|
1797
1840
|
}],
|
|
1841
|
+
badges: [{
|
|
1842
|
+
type: i0.Input,
|
|
1843
|
+
args: [{
|
|
1844
|
+
isSignal: true,
|
|
1845
|
+
alias: "badge-context",
|
|
1846
|
+
required: false
|
|
1847
|
+
}]
|
|
1848
|
+
}],
|
|
1798
1849
|
class: [{
|
|
1799
1850
|
type: i0.Input,
|
|
1800
1851
|
args: [{
|
|
@@ -690,6 +690,10 @@ var LayoutNavDockbar = class LayoutNavDockbar {
|
|
|
690
690
|
...ngDevMode ? { debugName: "dockbarRouteContext" } : /* istanbul ignore next */ {},
|
|
691
691
|
alias: "dockbar-route-context"
|
|
692
692
|
});
|
|
693
|
+
badgeContext = input(null, {
|
|
694
|
+
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
695
|
+
alias: "badge-context"
|
|
696
|
+
});
|
|
693
697
|
dockbarBadgeContext = input(EMPTY_NAVIGATION_BADGE_CONTEXT$1, {
|
|
694
698
|
...ngDevMode ? { debugName: "dockbarBadgeContext" } : /* istanbul ignore next */ {},
|
|
695
699
|
alias: "dockbar-badge"
|
|
@@ -752,6 +756,13 @@ var LayoutNavDockbar = class LayoutNavDockbar {
|
|
|
752
756
|
isRequired: false,
|
|
753
757
|
transformFunction: null
|
|
754
758
|
},
|
|
759
|
+
badgeContext: {
|
|
760
|
+
classPropertyName: "badgeContext",
|
|
761
|
+
publicName: "badge-context",
|
|
762
|
+
isSignal: true,
|
|
763
|
+
isRequired: false,
|
|
764
|
+
transformFunction: null
|
|
765
|
+
},
|
|
755
766
|
dockbarBadgeContext: {
|
|
756
767
|
classPropertyName: "dockbarBadgeContext",
|
|
757
768
|
publicName: "dockbar-badge",
|
|
@@ -767,7 +778,7 @@ var LayoutNavDockbar = class LayoutNavDockbar {
|
|
|
767
778
|
<NavigationDockbar
|
|
768
779
|
[mode]="dockbarMode()"
|
|
769
780
|
[dockbar-route-context]="dockbarRouteContext()"
|
|
770
|
-
[
|
|
781
|
+
[badge-context]="badgeContext() ?? dockbarBadgeContext()"
|
|
771
782
|
[class]="shellClass()"
|
|
772
783
|
>
|
|
773
784
|
@if (!routeContextEnabled()) {
|
|
@@ -800,6 +811,7 @@ var LayoutNavDockbar = class LayoutNavDockbar {
|
|
|
800
811
|
"position",
|
|
801
812
|
"dockbar-route-context",
|
|
802
813
|
"dockbar-badge",
|
|
814
|
+
"badge-context",
|
|
803
815
|
"class"
|
|
804
816
|
]
|
|
805
817
|
},
|
|
@@ -861,7 +873,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
861
873
|
<NavigationDockbar
|
|
862
874
|
[mode]="dockbarMode()"
|
|
863
875
|
[dockbar-route-context]="dockbarRouteContext()"
|
|
864
|
-
[
|
|
876
|
+
[badge-context]="badgeContext() ?? dockbarBadgeContext()"
|
|
865
877
|
[class]="shellClass()"
|
|
866
878
|
>
|
|
867
879
|
@if (!routeContextEnabled()) {
|
|
@@ -921,6 +933,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
921
933
|
required: false
|
|
922
934
|
}]
|
|
923
935
|
}],
|
|
936
|
+
badgeContext: [{
|
|
937
|
+
type: i0.Input,
|
|
938
|
+
args: [{
|
|
939
|
+
isSignal: true,
|
|
940
|
+
alias: "badge-context",
|
|
941
|
+
required: false
|
|
942
|
+
}]
|
|
943
|
+
}],
|
|
924
944
|
dockbarBadgeContext: [{
|
|
925
945
|
type: i0.Input,
|
|
926
946
|
args: [{
|
|
@@ -1563,6 +1583,11 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1563
1583
|
...ngDevMode ? { debugName: "dockbarRouteContext" } : /* istanbul ignore next */ {},
|
|
1564
1584
|
alias: "dockbar-route-context"
|
|
1565
1585
|
});
|
|
1586
|
+
badgeContext = input(null, {
|
|
1587
|
+
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
1588
|
+
alias: "badge-context"
|
|
1589
|
+
});
|
|
1590
|
+
resolvedBadgeContext = computed(() => this.badgeContext() ?? this.dockbarBadgeContext(), ...ngDevMode ? [{ debugName: "resolvedBadgeContext" }] : /* istanbul ignore next */ []);
|
|
1566
1591
|
dockbarBadgeContext = input(EMPTY_NAVIGATION_BADGE_CONTEXT, {
|
|
1567
1592
|
...ngDevMode ? { debugName: "dockbarBadgeContext" } : /* istanbul ignore next */ {},
|
|
1568
1593
|
alias: "dockbar-badge"
|
|
@@ -1719,6 +1744,13 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1719
1744
|
isRequired: false,
|
|
1720
1745
|
transformFunction: null
|
|
1721
1746
|
},
|
|
1747
|
+
badgeContext: {
|
|
1748
|
+
classPropertyName: "badgeContext",
|
|
1749
|
+
publicName: "badge-context",
|
|
1750
|
+
isSignal: true,
|
|
1751
|
+
isRequired: false,
|
|
1752
|
+
transformFunction: null
|
|
1753
|
+
},
|
|
1722
1754
|
dockbarBadgeContext: {
|
|
1723
1755
|
classPropertyName: "dockbarBadgeContext",
|
|
1724
1756
|
publicName: "dockbar-badge",
|
|
@@ -1868,6 +1900,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1868
1900
|
id="main-mobile"
|
|
1869
1901
|
data-id="main"
|
|
1870
1902
|
[data]="data()"
|
|
1903
|
+
[badge-context]="resolvedBadgeContext()"
|
|
1871
1904
|
ariaLabel="Primary navigation"
|
|
1872
1905
|
class="h-full w-full"
|
|
1873
1906
|
(itemSelected)="mobileNavOpen.set(false)"
|
|
@@ -1894,6 +1927,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
1894
1927
|
id="main"
|
|
1895
1928
|
[data-id]="desktopDataId()"
|
|
1896
1929
|
[data]="desktopData()"
|
|
1930
|
+
[badge-context]="resolvedBadgeContext()"
|
|
1897
1931
|
[class]="navClass()"
|
|
1898
1932
|
>
|
|
1899
1933
|
@switch (navKind()) {
|
|
@@ -2060,6 +2094,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
2060
2094
|
"id",
|
|
2061
2095
|
"data-id",
|
|
2062
2096
|
"data",
|
|
2097
|
+
"badge-context",
|
|
2063
2098
|
"ariaLabel",
|
|
2064
2099
|
"compact",
|
|
2065
2100
|
"collapse-tree",
|
|
@@ -2100,6 +2135,7 @@ var LayoutWrapperDefault = class LayoutWrapperDefault {
|
|
|
2100
2135
|
"appearance",
|
|
2101
2136
|
"nav-type-mode",
|
|
2102
2137
|
"dockbar-route-context",
|
|
2138
|
+
"badge-context",
|
|
2103
2139
|
"dockbar-badge"
|
|
2104
2140
|
],
|
|
2105
2141
|
outputs: ["logout"]
|
|
@@ -2242,6 +2278,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2242
2278
|
id="main-mobile"
|
|
2243
2279
|
data-id="main"
|
|
2244
2280
|
[data]="data()"
|
|
2281
|
+
[badge-context]="resolvedBadgeContext()"
|
|
2245
2282
|
ariaLabel="Primary navigation"
|
|
2246
2283
|
class="h-full w-full"
|
|
2247
2284
|
(itemSelected)="mobileNavOpen.set(false)"
|
|
@@ -2268,6 +2305,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2268
2305
|
id="main"
|
|
2269
2306
|
[data-id]="desktopDataId()"
|
|
2270
2307
|
[data]="desktopData()"
|
|
2308
|
+
[badge-context]="resolvedBadgeContext()"
|
|
2271
2309
|
[class]="navClass()"
|
|
2272
2310
|
>
|
|
2273
2311
|
@switch (navKind()) {
|
|
@@ -2417,6 +2455,14 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
2417
2455
|
required: false
|
|
2418
2456
|
}]
|
|
2419
2457
|
}],
|
|
2458
|
+
badgeContext: [{
|
|
2459
|
+
type: i0.Input,
|
|
2460
|
+
args: [{
|
|
2461
|
+
isSignal: true,
|
|
2462
|
+
alias: "badge-context",
|
|
2463
|
+
required: false
|
|
2464
|
+
}]
|
|
2465
|
+
}],
|
|
2420
2466
|
dockbarBadgeContext: [{
|
|
2421
2467
|
type: i0.Input,
|
|
2422
2468
|
args: [{
|
package/navigation/README.md
CHANGED
|
@@ -60,8 +60,9 @@ Type dipilih lewat komponen anak deklaratif (`NavigationSidebar`, `NavigationDoc
|
|
|
60
60
|
- `dockbar-route-context` on `NavigationDockbar` opts into Router-aware header, rail deduplication,
|
|
61
61
|
and sticky-panel restore behavior. Pass `true` for the default Angular Router adapter or a
|
|
62
62
|
`NavigationDockbarRouteConfig` to override URL, metadata, or the fallback icon.
|
|
63
|
-
- `
|
|
64
|
-
`NavigationItem.badge.source`
|
|
63
|
+
- `badge-context` on `Navigation` supplies one reactive badge registry for every navigation type, keyed by
|
|
64
|
+
`NavigationItem.badge.source` (and route `data.navigationBadge` for the dockbar header).
|
|
65
|
+
`NavigationDockbar` also accepts `badge-context`; its legacy `dockbar-badge` input remains supported.
|
|
65
66
|
- `ariaLabel` overrides the host navigation label and defaults to `Primary navigation`.
|
|
66
67
|
- `label` on `NavigationFlyout` sets the single trigger label and defaults to `Menu`.
|
|
67
68
|
- `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).
|
|
@@ -91,6 +92,8 @@ Type dipilih lewat komponen anak deklaratif (`NavigationSidebar`, `NavigationDoc
|
|
|
91
92
|
|
|
92
93
|
Inputs pada `<Navigation>` (container):
|
|
93
94
|
|
|
95
|
+
`[badge-context]` accepts `NavigationBadgeContext | null` and defaults to the type registry or an empty registry.
|
|
96
|
+
|
|
94
97
|
| API | Type | Notes |
|
|
95
98
|
| ----------------- | -------------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
96
99
|
| `id` | `string` | Navigation instance id. `main` is the only id persisted to `localStorage`. |
|
|
@@ -137,7 +140,7 @@ Semua type juga menerima `class` untuk kelas tambahan pada elemen shell-nya.
|
|
|
137
140
|
| `title`, `subtitle`, `tooltip` | `string` | Primary labels and optional compact tooltip. |
|
|
138
141
|
| `active`, `disabled` | `boolean` | Explicit active and disabled flags. |
|
|
139
142
|
| `icon` | `string` | Rendered through the default icon slot unless overridden. |
|
|
140
|
-
| `badge` | `{ title?: string; classes?: string; source?: string }` | Static item label plus an optional
|
|
143
|
+
| `badge` | `{ title?: string; classes?: string; source?: string }` | Static item label plus an optional shared badge-source key. |
|
|
141
144
|
| `classes` | `{ wrapper?, container?, icon?, title?, subtitle? }` | Per-item class overrides. `container` targets the horizontal group `<li>` wrapper. |
|
|
142
145
|
| `meta` | `Record<string, unknown>` | Consumer-owned metadata bag. |
|
|
143
146
|
| `isHidden` | `(item) => boolean` | Filters items at normalization time. |
|
|
@@ -423,3 +426,89 @@ tetap sama; hanya distribusi chunk di sisi consumer yang lebih ringan.
|
|
|
423
426
|
Angular 22.2–22.x CSR/browser usage is supported; SSR, prerendering, and hydration are not. See the
|
|
424
427
|
bundled `SUPPORT.md`. Report suspected vulnerabilities privately using the instructions in the
|
|
425
428
|
bundled `SECURITY.md`. This package is MIT licensed; see the bundled `LICENSE`.
|
|
429
|
+
|
|
430
|
+
## Shared reactive badge counts
|
|
431
|
+
|
|
432
|
+
All navigation types use the same `NavigationBadgeContext`. Bind it to `[badge-context]` on
|
|
433
|
+
`Navigation`. Items only carry a source key, so updating a Signal or Observable does not rebuild
|
|
434
|
+
the navigation tree. The registry belongs to the consumer, with no global or per-type registry.
|
|
435
|
+
The library performs no fetching, polling, authentication, sockets, or business counting.
|
|
436
|
+
|
|
437
|
+
```ts
|
|
438
|
+
import { signal } from '@angular/core';
|
|
439
|
+
import { BehaviorSubject } from 'rxjs';
|
|
440
|
+
import type { NavigationBadgeContext, NavigationItem } from '@ojiepermana/angular/navigation';
|
|
441
|
+
|
|
442
|
+
// Members of the consumer component:
|
|
443
|
+
readonly taskCount = signal(3);
|
|
444
|
+
readonly reviewCount$ = new BehaviorSubject<number | null>(10);
|
|
445
|
+
readonly navigation: readonly NavigationItem[] = [
|
|
446
|
+
{ id: 'tasks', title: 'Tugas', icon: 'circle-check-big', link: '/my/tasks', badge: { source: 'tasks' } },
|
|
447
|
+
{ id: 'reviews', title: 'Review', icon: 'file', link: '/my/reviews', badge: { source: 'reviews' } },
|
|
448
|
+
{ id: 'guide', title: 'Panduan', link: '/guide', badge: { title: 'New' } },
|
|
449
|
+
];
|
|
450
|
+
readonly badgeContext: NavigationBadgeContext = {
|
|
451
|
+
tasks: { value: this.taskCount, ariaLabel: count => `${count} tugas` },
|
|
452
|
+
reviews: { value: this.reviewCount$, ariaLabel: count => `${count} review` },
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
// Run these in consumer event handlers after updating consumer data:
|
|
456
|
+
// this.taskCount.set(120);
|
|
457
|
+
// this.reviewCount$.next(99);
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
```html
|
|
461
|
+
<Navigation id="main" [data]="navigation" [badge-context]="badgeContext">
|
|
462
|
+
<NavigationSidebar />
|
|
463
|
+
</Navigation>
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Replace the type child with `NavigationMinidock`, `NavigationDockbar`, `NavigationNavbar`, or
|
|
467
|
+
`NavigationFlyout` without changing the registry. Minidock still requires flat navigation items;
|
|
468
|
+
use `toMinidockItems()` for a tree. Register icon names with `provideIcons()` as usual. Multiple
|
|
469
|
+
`Navigation` instances can bind the same registry and react together.
|
|
470
|
+
|
|
471
|
+
`NavigationBadgeSource.value` accepts `number | null | undefined`, `Signal`, `Observable`, or a
|
|
472
|
+
zero-argument reader returning that count. Reader functions are evaluated during Angular checks;
|
|
473
|
+
reading signals inside them tracks those signals. A plain external variable needs an Angular change
|
|
474
|
+
notification, so prefer Signal or Observable for asynchronous updates.
|
|
475
|
+
|
|
476
|
+
Finite numeric values are truncated toward zero before display and accessible labeling. Zero,
|
|
477
|
+
negative values, null, undefined, NaN, Infinity, and unknown source keys hide the badge. Values
|
|
478
|
+
1–99 display their number; values above 99 display `99+`. The `ariaLabel` callback receives the
|
|
479
|
+
normalized, uncapped count. A string can supply a complete accessible label; without a label the
|
|
480
|
+
fallback is `<count> items`. Keep the actual count in consumer labels, including when capped.
|
|
481
|
+
Source keys are resolved as own registry properties. When `source` is present it takes precedence
|
|
482
|
+
over `title`, even when that source is missing or hidden. Text-only `badge.title` remains supported.
|
|
483
|
+
|
|
484
|
+
Observable errors hide the badge. Source replacement unsubscribes the previous Observable and
|
|
485
|
+
never renders its cached count for the replacement. Destroying a badge view unsubscribes it.
|
|
486
|
+
Changing a sidebar between labelled, collapsed, hover, and keyboard preview layouts keeps the same
|
|
487
|
+
badge view and subscription, including the last emission from a non-replaying Observable.
|
|
488
|
+
Each visible badge owns its subscription; use `shareReplay({ bufferSize: 1, refCount: true })` in
|
|
489
|
+
the consumer when several views use a cold Observable and should share its work.
|
|
490
|
+
|
|
491
|
+
Labelled items reserve space at the right for a nonshrinking red pill. Count badges use
|
|
492
|
+
`destructive` / `destructive-foreground`, 20px minimum width and height, 10px type, and 4px inline
|
|
493
|
+
padding at normal density. Collapsed sidebar, minidock, and dockbar rails show a smaller 16px badge
|
|
494
|
+
over the icon corner, without changing the item hit area. A sidebar hover or keyboard preview uses
|
|
495
|
+
the labelled version, with one badge per item. Geometry follows the theme space axis through
|
|
496
|
+
`--nav-count-height`, `--nav-count-compact-height`, `--nav-count-padding`, and `--nav-count-offset`;
|
|
497
|
+
font size uses `--nav-count-font-size`. Static text badges retain their existing styling.
|
|
498
|
+
|
|
499
|
+
### Migration
|
|
500
|
+
|
|
501
|
+
Existing `<NavigationDockbar [dockbar-badge]="registry" />` continues to work, including its
|
|
502
|
+
route-context header and aside. Prefer moving the binding to its parent:
|
|
503
|
+
|
|
504
|
+
```html
|
|
505
|
+
<Navigation [data]="navigation" [badge-context]="registry">
|
|
506
|
+
<NavigationDockbar [dockbar-route-context]="true" />
|
|
507
|
+
</Navigation>
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
For a dockbar-only assembly, `[badge-context]` is also accepted on `NavigationDockbar`.
|
|
511
|
+
If both old and new dockbar inputs are bound, its generic input wins. A registry on `Navigation`
|
|
512
|
+
takes precedence over the type-level registry as a whole (including an explicit empty object).
|
|
513
|
+
`LayoutWrapperDefault` also accepts `[badge-context]` for every desktop navigation type and its
|
|
514
|
+
mobile sidebar; `[dockbar-badge]` remains its fallback for compatibility.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojiepermana/angular",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.5",
|
|
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": [
|
|
@@ -503,5 +503,5 @@
|
|
|
503
503
|
"module": "fesm2022/ojiepermana-angular.mjs",
|
|
504
504
|
"typings": "types/ojiepermana-angular.d.ts",
|
|
505
505
|
"type": "module",
|
|
506
|
-
"gitHead": "
|
|
506
|
+
"gitHead": "0f9117817faca017f5aab776cf340eb939fee4ba"
|
|
507
507
|
}
|
|
@@ -172,6 +172,26 @@
|
|
|
172
172
|
letter-spacing: 0;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
.nav-count {
|
|
176
|
+
height: var(--nav-count-height);
|
|
177
|
+
min-width: var(--nav-count-height);
|
|
178
|
+
padding-inline: var(--nav-count-padding);
|
|
179
|
+
font-family: var(--nav-badge-font-family);
|
|
180
|
+
font-size: var(--nav-count-font-size);
|
|
181
|
+
line-height: 1;
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
font-variant-numeric: tabular-nums;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.nav-count-overlay {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: var(--nav-count-offset);
|
|
189
|
+
right: var(--nav-count-offset);
|
|
190
|
+
height: var(--nav-count-compact-height);
|
|
191
|
+
min-width: var(--nav-count-compact-height);
|
|
192
|
+
z-index: 20;
|
|
193
|
+
}
|
|
194
|
+
|
|
175
195
|
/* Modal overlay backdrop shared by Dialog, Sheet, and Drawer. The element is
|
|
176
196
|
* rendered inside the CDK overlay container (outside component view
|
|
177
197
|
* encapsulation), so its styles must live in this global layer. The default
|