@ojiepermana/angular 22.2.3 → 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-I-ln7fOq.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dlyt6eZr.mjs} +47 -34
- 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-DfG6_3eF.mjs → ojiepermana-angular-navigation-navigation-list.component-BYc3WCt8.mjs} +23 -3
- package/fesm2022/ojiepermana-angular-navigation.mjs +67 -17
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +152 -109
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +216 -79
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +4 -0
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +4 -0
- package/navigation/README.md +92 -3
- package/package.json +2 -2
- package/theme/component/settings/README.md +19 -0
- package/theme/layout/README.md +67 -0
- 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-component-settings.d.ts +18 -1
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +125 -14
|
@@ -1,8 +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
|
-
import { Component, computed, input, output } from "@angular/core";
|
|
3
|
+
import { Component, InjectionToken, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
5
|
+
const NAVIGATION_SHELL = new InjectionToken("NAVIGATION_SHELL");
|
|
5
6
|
var NavigationListComponent = class NavigationListComponent {
|
|
7
|
+
badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
|
|
6
8
|
navId = input("default", ...ngDevMode ? [{ debugName: "navId" }] : /* istanbul ignore next */ []);
|
|
7
9
|
items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
8
10
|
collapsed = input(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
@@ -35,6 +37,13 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
35
37
|
isStandalone: true,
|
|
36
38
|
selector: "NavigationList",
|
|
37
39
|
inputs: {
|
|
40
|
+
badgeContext: {
|
|
41
|
+
classPropertyName: "badgeContext",
|
|
42
|
+
publicName: "badgeContext",
|
|
43
|
+
isSignal: true,
|
|
44
|
+
isRequired: false,
|
|
45
|
+
transformFunction: null
|
|
46
|
+
},
|
|
38
47
|
navId: {
|
|
39
48
|
classPropertyName: "navId",
|
|
40
49
|
publicName: "navId",
|
|
@@ -142,6 +151,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
142
151
|
[itemClass]="itemClass()"
|
|
143
152
|
[activeIds]="activeIds()"
|
|
144
153
|
[activeUrl]="activeUrl()"
|
|
154
|
+
[badgeContext]="badgeContext()"
|
|
145
155
|
[iconTemplate]="iconTemplate()"
|
|
146
156
|
[collapseTree]="collapseTree()"
|
|
147
157
|
[openedIds]="openedIds()"
|
|
@@ -157,6 +167,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
157
167
|
type: NavigationItemComponent,
|
|
158
168
|
selector: "li[NavigationItem]",
|
|
159
169
|
inputs: [
|
|
170
|
+
"badgeContext",
|
|
160
171
|
"navId",
|
|
161
172
|
"item",
|
|
162
173
|
"level",
|
|
@@ -206,6 +217,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
206
217
|
[itemClass]="itemClass()"
|
|
207
218
|
[activeIds]="activeIds()"
|
|
208
219
|
[activeUrl]="activeUrl()"
|
|
220
|
+
[badgeContext]="badgeContext()"
|
|
209
221
|
[iconTemplate]="iconTemplate()"
|
|
210
222
|
[collapseTree]="collapseTree()"
|
|
211
223
|
[openedIds]="openedIds()"
|
|
@@ -218,6 +230,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
218
230
|
}]
|
|
219
231
|
}],
|
|
220
232
|
propDecorators: {
|
|
233
|
+
badgeContext: [{
|
|
234
|
+
type: i0.Input,
|
|
235
|
+
args: [{
|
|
236
|
+
isSignal: true,
|
|
237
|
+
alias: "badgeContext",
|
|
238
|
+
required: false
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
221
241
|
navId: [{
|
|
222
242
|
type: i0.Input,
|
|
223
243
|
args: [{
|
|
@@ -324,4 +344,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
324
344
|
}]
|
|
325
345
|
}
|
|
326
346
|
});
|
|
327
|
-
export { NavigationListComponent as t };
|
|
347
|
+
export { NAVIGATION_SHELL as n, NavigationListComponent as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
-
import { Component, DestroyRef, Directive, ElementRef,
|
|
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";
|
|
5
6
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
6
7
|
import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirective$1 } from "@ojiepermana/angular/navigation/icon";
|
|
@@ -61,7 +62,6 @@ function fallbackType(orientation, type) {
|
|
|
61
62
|
if (orientation === "horizontal" && (type === "navbar" || type === "flyout")) return type;
|
|
62
63
|
return orientation === "horizontal" ? "navbar" : "sidebar";
|
|
63
64
|
}
|
|
64
|
-
const NAVIGATION_SHELL = new InjectionToken("NAVIGATION_SHELL");
|
|
65
65
|
const EMPTY_NAVIGATION_BADGE_CONTEXT$1 = Object.freeze({});
|
|
66
66
|
const EMPTY_NAVIGATION_ACTIVE_IDS = /* @__PURE__ */ new Set();
|
|
67
67
|
var NavigationContainerComponent = class NavigationContainerComponent {
|
|
@@ -74,6 +74,10 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
74
74
|
alias: "data-id"
|
|
75
75
|
});
|
|
76
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
|
+
});
|
|
77
81
|
ariaLabel = input("Primary navigation", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
78
82
|
compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
|
|
79
83
|
collapseTree = input("stairs", {
|
|
@@ -104,7 +108,8 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
104
108
|
collapsedPreference = computed(() => this.typeConfig()?.collapsed?.() ?? null, ...ngDevMode ? [{ debugName: "collapsedPreference" }] : /* istanbul ignore next */ []);
|
|
105
109
|
dockbarModePreference = computed(() => this.typeConfig()?.dockbarMode?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarModePreference" }] : /* istanbul ignore next */ []);
|
|
106
110
|
dockbarRouteContextPreference = computed(() => this.typeConfig()?.dockbarRouteContext?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarRouteContextPreference" }] : /* istanbul ignore next */ []);
|
|
107
|
-
|
|
111
|
+
resolvedBadgeContext = computed(() => this.badgeContext() ?? this.typeConfig()?.dockbarBadgeContext?.() ?? EMPTY_NAVIGATION_BADGE_CONTEXT$1, ...ngDevMode ? [{ debugName: "resolvedBadgeContext" }] : /* istanbul ignore next */ []);
|
|
112
|
+
dockbarBadgeContext = this.resolvedBadgeContext;
|
|
108
113
|
dockbarRouteHeaderVisible = computed(() => this.typeConfig()?.dockbarRouteHeaderVisible?.() ?? false, ...ngDevMode ? [{ debugName: "dockbarRouteHeaderVisible" }] : /* istanbul ignore next */ []);
|
|
109
114
|
dockbarAsideFooter = computed(() => this.typeConfig()?.dockbarAsideFooter?.() ?? null, ...ngDevMode ? [{ debugName: "dockbarAsideFooter" }] : /* istanbul ignore next */ []);
|
|
110
115
|
sidebarCollapse = computed(() => this.typeConfig()?.sidebarCollapse?.() ?? false, ...ngDevMode ? [{ debugName: "sidebarCollapse" }] : /* istanbul ignore next */ []);
|
|
@@ -167,7 +172,8 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
167
172
|
const icon = activeEntry ? this.cleanString(activeEntry.icon) ?? fallbackIcon : route.icon ?? fallbackIcon;
|
|
168
173
|
const label = this.cleanString(activeEntry?.title) ?? route.label ?? "Current navigation route";
|
|
169
174
|
const badgeKey = activeEntry?.badge?.source ?? route.badge;
|
|
170
|
-
const
|
|
175
|
+
const badgeContext = this.resolvedBadgeContext();
|
|
176
|
+
const badge = badgeKey && Object.hasOwn(badgeContext, badgeKey) ? badgeContext[badgeKey] : null;
|
|
171
177
|
const item = activeEntry?.source ?? {
|
|
172
178
|
title: label,
|
|
173
179
|
icon
|
|
@@ -178,7 +184,7 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
178
184
|
icon,
|
|
179
185
|
label,
|
|
180
186
|
badge,
|
|
181
|
-
badgeClass: cn("
|
|
187
|
+
badgeClass: cn("nav-count-overlay top-0 right-0", activeEntry?.badge?.classes),
|
|
182
188
|
iconContext: {
|
|
183
189
|
$implicit: icon,
|
|
184
190
|
icon,
|
|
@@ -341,6 +347,13 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
341
347
|
isRequired: false,
|
|
342
348
|
transformFunction: null
|
|
343
349
|
},
|
|
350
|
+
badgeContext: {
|
|
351
|
+
classPropertyName: "badgeContext",
|
|
352
|
+
publicName: "badge-context",
|
|
353
|
+
isSignal: true,
|
|
354
|
+
isRequired: false,
|
|
355
|
+
transformFunction: null
|
|
356
|
+
},
|
|
344
357
|
ariaLabel: {
|
|
345
358
|
classPropertyName: "ariaLabel",
|
|
346
359
|
publicName: "ariaLabel",
|
|
@@ -511,6 +524,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
511
524
|
required: false
|
|
512
525
|
}]
|
|
513
526
|
}],
|
|
527
|
+
badgeContext: [{
|
|
528
|
+
type: i0.Input,
|
|
529
|
+
args: [{
|
|
530
|
+
isSignal: true,
|
|
531
|
+
alias: "badge-context",
|
|
532
|
+
required: false
|
|
533
|
+
}]
|
|
534
|
+
}],
|
|
514
535
|
ariaLabel: [{
|
|
515
536
|
type: i0.Input,
|
|
516
537
|
args: [{
|
|
@@ -651,6 +672,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
651
672
|
[groupClass]="container.groupClass()"
|
|
652
673
|
[activeIds]="container.activeIdSet()"
|
|
653
674
|
[activeUrl]="container.activeUrl()"
|
|
675
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
654
676
|
[iconTemplate]="container.iconTemplate()"
|
|
655
677
|
[collapseTree]="container.collapseTree()"
|
|
656
678
|
[openedIds]="container.openedIds()"
|
|
@@ -673,6 +695,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
673
695
|
[groupClass]="container.groupClass()"
|
|
674
696
|
[activeIds]="container.activeIdSet()"
|
|
675
697
|
[activeUrl]="container.activeUrl()"
|
|
698
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
676
699
|
[iconTemplate]="container.iconTemplate()"
|
|
677
700
|
[collapseTree]="container.collapseTree()"
|
|
678
701
|
[openedIds]="container.openedIds()"
|
|
@@ -686,7 +709,6 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
686
709
|
[navId]="navState.id"
|
|
687
710
|
[items]="container.normalizedItems()"
|
|
688
711
|
[railItems]="container.dockbarRailItems()"
|
|
689
|
-
[badgeContext]="container.dockbarBadgeContext()"
|
|
690
712
|
[mode]="navState.dockbarMode"
|
|
691
713
|
[position]="navState.position"
|
|
692
714
|
[asideFooterTemplate]="container.dockbarAsideFooter()"
|
|
@@ -698,6 +720,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
698
720
|
? container.dockbarResolvedRouteContext().url
|
|
699
721
|
: container.activeUrl()
|
|
700
722
|
"
|
|
723
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
701
724
|
[iconTemplate]="container.iconTemplate()"
|
|
702
725
|
[collapseTree]="container.collapseTree()"
|
|
703
726
|
[openedIds]="container.openedIds()"
|
|
@@ -716,6 +739,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
716
739
|
[itemClass]="container.itemClass()"
|
|
717
740
|
[activeIds]="container.activeIdSet()"
|
|
718
741
|
[activeUrl]="container.activeUrl()"
|
|
742
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
719
743
|
[iconTemplate]="container.iconTemplate()"
|
|
720
744
|
[collapseTree]="container.collapseTree()"
|
|
721
745
|
[openedIds]="container.openedIds()"
|
|
@@ -732,6 +756,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
732
756
|
[itemClass]="container.itemClass()"
|
|
733
757
|
[activeIds]="container.activeIdSet()"
|
|
734
758
|
[activeUrl]="container.activeUrl()"
|
|
759
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
735
760
|
[iconTemplate]="container.iconTemplate()"
|
|
736
761
|
[collapseTree]="container.collapseTree()"
|
|
737
762
|
[openedIds]="container.openedIds()"
|
|
@@ -746,6 +771,7 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
746
771
|
type: NavigationListComponent,
|
|
747
772
|
selector: "NavigationList",
|
|
748
773
|
inputs: [
|
|
774
|
+
"badgeContext",
|
|
749
775
|
"navId",
|
|
750
776
|
"items",
|
|
751
777
|
"collapsed",
|
|
@@ -762,9 +788,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
762
788
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
763
789
|
}],
|
|
764
790
|
deferBlockDependencies: [
|
|
765
|
-
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
766
|
-
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
767
|
-
() => [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)]
|
|
768
794
|
]
|
|
769
795
|
});
|
|
770
796
|
};
|
|
@@ -774,9 +800,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
774
800
|
ngImport: i0,
|
|
775
801
|
type: NavigationContentComponent,
|
|
776
802
|
resolveDeferredDeps: () => [
|
|
777
|
-
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
778
|
-
import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
779
|
-
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)
|
|
780
806
|
],
|
|
781
807
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
782
808
|
decorators: [{
|
|
@@ -815,6 +841,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
815
841
|
[groupClass]="container.groupClass()"
|
|
816
842
|
[activeIds]="container.activeIdSet()"
|
|
817
843
|
[activeUrl]="container.activeUrl()"
|
|
844
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
818
845
|
[iconTemplate]="container.iconTemplate()"
|
|
819
846
|
[collapseTree]="container.collapseTree()"
|
|
820
847
|
[openedIds]="container.openedIds()"
|
|
@@ -837,6 +864,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
837
864
|
[groupClass]="container.groupClass()"
|
|
838
865
|
[activeIds]="container.activeIdSet()"
|
|
839
866
|
[activeUrl]="container.activeUrl()"
|
|
867
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
840
868
|
[iconTemplate]="container.iconTemplate()"
|
|
841
869
|
[collapseTree]="container.collapseTree()"
|
|
842
870
|
[openedIds]="container.openedIds()"
|
|
@@ -850,7 +878,6 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
850
878
|
[navId]="navState.id"
|
|
851
879
|
[items]="container.normalizedItems()"
|
|
852
880
|
[railItems]="container.dockbarRailItems()"
|
|
853
|
-
[badgeContext]="container.dockbarBadgeContext()"
|
|
854
881
|
[mode]="navState.dockbarMode"
|
|
855
882
|
[position]="navState.position"
|
|
856
883
|
[asideFooterTemplate]="container.dockbarAsideFooter()"
|
|
@@ -862,6 +889,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
862
889
|
? container.dockbarResolvedRouteContext().url
|
|
863
890
|
: container.activeUrl()
|
|
864
891
|
"
|
|
892
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
865
893
|
[iconTemplate]="container.iconTemplate()"
|
|
866
894
|
[collapseTree]="container.collapseTree()"
|
|
867
895
|
[openedIds]="container.openedIds()"
|
|
@@ -880,6 +908,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
880
908
|
[itemClass]="container.itemClass()"
|
|
881
909
|
[activeIds]="container.activeIdSet()"
|
|
882
910
|
[activeUrl]="container.activeUrl()"
|
|
911
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
883
912
|
[iconTemplate]="container.iconTemplate()"
|
|
884
913
|
[collapseTree]="container.collapseTree()"
|
|
885
914
|
[openedIds]="container.openedIds()"
|
|
@@ -896,6 +925,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
896
925
|
[itemClass]="container.itemClass()"
|
|
897
926
|
[activeIds]="container.activeIdSet()"
|
|
898
927
|
[activeUrl]="container.activeUrl()"
|
|
928
|
+
[badgeContext]="container.resolvedBadgeContext()"
|
|
899
929
|
[iconTemplate]="container.iconTemplate()"
|
|
900
930
|
[collapseTree]="container.collapseTree()"
|
|
901
931
|
[openedIds]="container.openedIds()"
|
|
@@ -1411,6 +1441,11 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1411
1441
|
...ngDevMode ? { debugName: "badgeContext" } : /* istanbul ignore next */ {},
|
|
1412
1442
|
alias: "dockbar-badge"
|
|
1413
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 */ []);
|
|
1414
1449
|
class = input("", {
|
|
1415
1450
|
...ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {},
|
|
1416
1451
|
alias: "class"
|
|
@@ -1431,7 +1466,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1431
1466
|
position: this.position,
|
|
1432
1467
|
dockbarMode: this.mode,
|
|
1433
1468
|
dockbarRouteContext: this.routeContext,
|
|
1434
|
-
dockbarBadgeContext: this.
|
|
1469
|
+
dockbarBadgeContext: this.resolvedBadges,
|
|
1435
1470
|
dockbarRouteHeaderVisible: computed(() => this.routeContextEnabled() && this.headerSlot() === void 0),
|
|
1436
1471
|
dockbarAsideFooter: computed(() => this.asideFooterSlot()?.templateRef ?? null)
|
|
1437
1472
|
};
|
|
@@ -1501,6 +1536,13 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1501
1536
|
isRequired: false,
|
|
1502
1537
|
transformFunction: null
|
|
1503
1538
|
},
|
|
1539
|
+
badges: {
|
|
1540
|
+
classPropertyName: "badges",
|
|
1541
|
+
publicName: "badge-context",
|
|
1542
|
+
isSignal: true,
|
|
1543
|
+
isRequired: false,
|
|
1544
|
+
transformFunction: null
|
|
1545
|
+
},
|
|
1504
1546
|
class: {
|
|
1505
1547
|
classPropertyName: "class",
|
|
1506
1548
|
publicName: "class",
|
|
@@ -1665,7 +1707,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1665
1707
|
exportAs: ["Tooltip"]
|
|
1666
1708
|
}
|
|
1667
1709
|
],
|
|
1668
|
-
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)]]
|
|
1669
1711
|
});
|
|
1670
1712
|
};
|
|
1671
1713
|
i0.ɵɵngDeclareClassMetadataAsync({
|
|
@@ -1673,7 +1715,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1673
1715
|
version: "22.2.3",
|
|
1674
1716
|
ngImport: i0,
|
|
1675
1717
|
type: NavigationDockbarComponent,
|
|
1676
|
-
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)],
|
|
1677
1719
|
resolveMetadata: (NavigationBadgeCountComponent) => ({
|
|
1678
1720
|
decorators: [{
|
|
1679
1721
|
type: Component,
|
|
@@ -1796,6 +1838,14 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1796
1838
|
required: false
|
|
1797
1839
|
}]
|
|
1798
1840
|
}],
|
|
1841
|
+
badges: [{
|
|
1842
|
+
type: i0.Input,
|
|
1843
|
+
args: [{
|
|
1844
|
+
isSignal: true,
|
|
1845
|
+
alias: "badge-context",
|
|
1846
|
+
required: false
|
|
1847
|
+
}]
|
|
1848
|
+
}],
|
|
1799
1849
|
class: [{
|
|
1800
1850
|
type: i0.Input,
|
|
1801
1851
|
args: [{
|