@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.
Files changed (22) hide show
  1. package/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-4RIokl1C.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-BYN_Vxm3.mjs} +36 -5
  2. package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-I-ln7fOq.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dlyt6eZr.mjs} +47 -34
  3. package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-meQb_EWZ.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-DeF_s1vE.mjs} +35 -20
  4. package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-DRdw2G-c.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-BOGL8MY0.mjs} +23 -4
  5. package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-Bx1NcrWO.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-Cb4bHM58.mjs} +29 -4
  6. package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-ERZNpmTZ.mjs → ojiepermana-angular-navigation-navigation-item.component-DLgcJQOC.mjs} +351 -108
  7. package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-DfG6_3eF.mjs → ojiepermana-angular-navigation-navigation-list.component-BYc3WCt8.mjs} +23 -3
  8. package/fesm2022/ojiepermana-angular-navigation.mjs +67 -17
  9. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +152 -109
  10. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +216 -79
  11. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +4 -0
  12. package/fesm2022/ojiepermana-angular-theme-shell.mjs +4 -0
  13. package/navigation/README.md +92 -3
  14. package/package.json +2 -2
  15. package/theme/component/settings/README.md +19 -0
  16. package/theme/layout/README.md +67 -0
  17. package/theme/styles/css/base/components.css +20 -0
  18. package/theme/styles/css/base/tokens.css +6 -0
  19. package/types/ojiepermana-angular-navigation-types.d.ts +3 -3
  20. package/types/ojiepermana-angular-navigation.d.ts +16 -0
  21. package/types/ojiepermana-angular-theme-component-settings.d.ts +18 -1
  22. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +125 -14
@@ -1,5 +1,5 @@
1
- import { n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-ERZNpmTZ.mjs";
2
- import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-meQb_EWZ.mjs";
1
+ import { n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DLgcJQOC.mjs";
2
+ import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-DeF_s1vE.mjs";
3
3
  import * as i0 from "@angular/core";
4
4
  import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
5
5
  import { cn } from "@ojiepermana/angular/component/utils/core";
@@ -10,6 +10,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
10
10
  host = inject(ElementRef);
11
11
  injector = inject(Injector);
12
12
  document = inject(DOCUMENT);
13
+ badgeContext = input({}, ...ngDevMode ? [{ debugName: "badgeContext" }] : /* istanbul ignore next */ []);
13
14
  navId = input("default", ...ngDevMode ? [{ debugName: "navId" }] : /* istanbul ignore next */ []);
14
15
  items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
15
16
  position = input("top", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
@@ -168,6 +169,13 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
168
169
  isStandalone: true,
169
170
  selector: "NavigationHorizontal",
170
171
  inputs: {
172
+ badgeContext: {
173
+ classPropertyName: "badgeContext",
174
+ publicName: "badgeContext",
175
+ isSignal: true,
176
+ isRequired: false,
177
+ transformFunction: null
178
+ },
171
179
  navId: {
172
180
  classPropertyName: "navId",
173
181
  publicName: "navId",
@@ -292,6 +300,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
292
300
  [itemClass]="navItemClass()"
293
301
  [activeIds]="activeIds()"
294
302
  [activeUrl]="activeUrl()"
303
+ [badgeContext]="badgeContext()"
295
304
  [iconTemplate]="iconTemplate()"
296
305
  [collapseTree]="collapseTree()"
297
306
  [openedIds]="openedIds()"
@@ -317,7 +326,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
317
326
  [attr.aria-expanded]="isPanelOpen(item)"
318
327
  [attr.aria-controls]="isPanelOpen(item) ? panelIdFor(item) : null"
319
328
  [attr.aria-haspopup]="'menu'"
320
- [attr.aria-label]="compactLabel(item)"
329
+ [attr.aria-label]="item.badge?.source ? null : compactLabel(item)"
321
330
  [attr.title]="titleFor(item)"
322
331
  [disabled]="item.disabled || null"
323
332
  (click)="togglePanel(item)"
@@ -328,6 +337,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
328
337
  [compact]="compact()"
329
338
  [orientation]="'horizontal'"
330
339
  [level]="0"
340
+ [badgeContext]="badgeContext()"
331
341
  [iconTemplate]="iconTemplate()"
332
342
  />
333
343
  </button>
@@ -350,6 +360,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
350
360
  [itemClass]="itemClass()"
351
361
  [activeIds]="activeIds()"
352
362
  [activeUrl]="activeUrl()"
363
+ [badgeContext]="badgeContext()"
353
364
  [iconTemplate]="iconTemplate()"
354
365
  [collapseTree]="collapseTree()"
355
366
  [openedIds]="openedIds()"
@@ -378,6 +389,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
378
389
  type: NavigationEntryGridComponent,
379
390
  selector: "NavigationEntryGrid",
380
391
  inputs: [
392
+ "badgeContext",
381
393
  "navId",
382
394
  "branch",
383
395
  "typeStyle",
@@ -395,6 +407,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
395
407
  type: NavigationItemComponent,
396
408
  selector: "li[NavigationItem]",
397
409
  inputs: [
410
+ "badgeContext",
398
411
  "navId",
399
412
  "item",
400
413
  "level",
@@ -420,6 +433,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
420
433
  type: NavigationItemContentComponent,
421
434
  selector: "NavigationItemContent",
422
435
  inputs: [
436
+ "badgeContext",
423
437
  "item",
424
438
  "active",
425
439
  "compact",
@@ -480,6 +494,7 @@ i0.ɵɵngDeclareClassMetadata({
480
494
  [itemClass]="navItemClass()"
481
495
  [activeIds]="activeIds()"
482
496
  [activeUrl]="activeUrl()"
497
+ [badgeContext]="badgeContext()"
483
498
  [iconTemplate]="iconTemplate()"
484
499
  [collapseTree]="collapseTree()"
485
500
  [openedIds]="openedIds()"
@@ -505,7 +520,7 @@ i0.ɵɵngDeclareClassMetadata({
505
520
  [attr.aria-expanded]="isPanelOpen(item)"
506
521
  [attr.aria-controls]="isPanelOpen(item) ? panelIdFor(item) : null"
507
522
  [attr.aria-haspopup]="'menu'"
508
- [attr.aria-label]="compactLabel(item)"
523
+ [attr.aria-label]="item.badge?.source ? null : compactLabel(item)"
509
524
  [attr.title]="titleFor(item)"
510
525
  [disabled]="item.disabled || null"
511
526
  (click)="togglePanel(item)"
@@ -516,6 +531,7 @@ i0.ɵɵngDeclareClassMetadata({
516
531
  [compact]="compact()"
517
532
  [orientation]="'horizontal'"
518
533
  [level]="0"
534
+ [badgeContext]="badgeContext()"
519
535
  [iconTemplate]="iconTemplate()"
520
536
  />
521
537
  </button>
@@ -538,6 +554,7 @@ i0.ɵɵngDeclareClassMetadata({
538
554
  [itemClass]="itemClass()"
539
555
  [activeIds]="activeIds()"
540
556
  [activeUrl]="activeUrl()"
557
+ [badgeContext]="badgeContext()"
541
558
  [iconTemplate]="iconTemplate()"
542
559
  [collapseTree]="collapseTree()"
543
560
  [openedIds]="openedIds()"
@@ -553,6 +570,14 @@ i0.ɵɵngDeclareClassMetadata({
553
570
  }],
554
571
  ctorParameters: () => [],
555
572
  propDecorators: {
573
+ badgeContext: [{
574
+ type: i0.Input,
575
+ args: [{
576
+ isSignal: true,
577
+ alias: "badgeContext",
578
+ required: false
579
+ }]
580
+ }],
556
581
  navId: [{
557
582
  type: i0.Input,
558
583
  args: [{