@genesislcap/foundation-header 14.409.0-FUI-2495.2 → 14.409.1
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.
|
@@ -763,15 +763,6 @@
|
|
|
763
763
|
},
|
|
764
764
|
"description": "Callback function to check if a layout item is currently active in the layout.\nUsed with nav items that have `isLayoutItem: true` and `layoutRegistration` set."
|
|
765
765
|
},
|
|
766
|
-
{
|
|
767
|
-
"kind": "field",
|
|
768
|
-
"name": "onBeforeNavButtonClick",
|
|
769
|
-
"type": {
|
|
770
|
-
"text": "(detail: NavButtonClickDetail) => void | Promise<void> | undefined"
|
|
771
|
-
},
|
|
772
|
-
"description": "Callback invoked before navigation occurs when a nav button is clicked.\nAwaited before the route changes, so async cleanup is supported.",
|
|
773
|
-
"privacy": "public"
|
|
774
|
-
},
|
|
775
766
|
{
|
|
776
767
|
"kind": "method",
|
|
777
768
|
"name": "isLayoutItemActive",
|
|
@@ -892,7 +883,7 @@
|
|
|
892
883
|
"name": "handleNavButtonClick",
|
|
893
884
|
"return": {
|
|
894
885
|
"type": {
|
|
895
|
-
"text": "
|
|
886
|
+
"text": "void"
|
|
896
887
|
}
|
|
897
888
|
},
|
|
898
889
|
"parameters": [
|
|
@@ -1532,19 +1523,6 @@
|
|
|
1532
1523
|
"module": "src/main/main.ts"
|
|
1533
1524
|
}
|
|
1534
1525
|
},
|
|
1535
|
-
{
|
|
1536
|
-
"kind": "field",
|
|
1537
|
-
"name": "onBeforeNavButtonClick",
|
|
1538
|
-
"type": {
|
|
1539
|
-
"text": "(detail: NavButtonClickDetail) => void | Promise<void> | undefined"
|
|
1540
|
-
},
|
|
1541
|
-
"description": "Callback invoked before navigation occurs when a nav button is clicked.\nAwaited before the route changes, so async cleanup is supported.",
|
|
1542
|
-
"privacy": "public",
|
|
1543
|
-
"inheritedFrom": {
|
|
1544
|
-
"name": "Navigation",
|
|
1545
|
-
"module": "src/main/main.ts"
|
|
1546
|
-
}
|
|
1547
|
-
},
|
|
1548
1526
|
{
|
|
1549
1527
|
"kind": "method",
|
|
1550
1528
|
"name": "isLayoutItemActive",
|
|
@@ -1697,7 +1675,7 @@
|
|
|
1697
1675
|
"name": "handleNavButtonClick",
|
|
1698
1676
|
"return": {
|
|
1699
1677
|
"type": {
|
|
1700
|
-
"text": "
|
|
1678
|
+
"text": "void"
|
|
1701
1679
|
}
|
|
1702
1680
|
},
|
|
1703
1681
|
"parameters": [
|
|
@@ -2659,19 +2637,6 @@
|
|
|
2659
2637
|
"module": "src/main/main.ts"
|
|
2660
2638
|
}
|
|
2661
2639
|
},
|
|
2662
|
-
{
|
|
2663
|
-
"kind": "field",
|
|
2664
|
-
"name": "onBeforeNavButtonClick",
|
|
2665
|
-
"type": {
|
|
2666
|
-
"text": "(detail: NavButtonClickDetail) => void | Promise<void> | undefined"
|
|
2667
|
-
},
|
|
2668
|
-
"description": "Callback invoked before navigation occurs when a nav button is clicked.\nAwaited before the route changes, so async cleanup is supported.",
|
|
2669
|
-
"privacy": "public",
|
|
2670
|
-
"inheritedFrom": {
|
|
2671
|
-
"name": "Navigation",
|
|
2672
|
-
"module": "src/main/main.ts"
|
|
2673
|
-
}
|
|
2674
|
-
},
|
|
2675
2640
|
{
|
|
2676
2641
|
"kind": "method",
|
|
2677
2642
|
"name": "isLayoutItemActive",
|
|
@@ -2824,7 +2789,7 @@
|
|
|
2824
2789
|
"name": "handleNavButtonClick",
|
|
2825
2790
|
"return": {
|
|
2826
2791
|
"type": {
|
|
2827
|
-
"text": "
|
|
2792
|
+
"text": "void"
|
|
2828
2793
|
}
|
|
2829
2794
|
},
|
|
2830
2795
|
"parameters": [
|
|
@@ -3333,19 +3298,6 @@
|
|
|
3333
3298
|
"module": "src/main/main.ts"
|
|
3334
3299
|
}
|
|
3335
3300
|
},
|
|
3336
|
-
{
|
|
3337
|
-
"kind": "field",
|
|
3338
|
-
"name": "onBeforeNavButtonClick",
|
|
3339
|
-
"type": {
|
|
3340
|
-
"text": "(detail: NavButtonClickDetail) => void | Promise<void> | undefined"
|
|
3341
|
-
},
|
|
3342
|
-
"description": "Callback invoked before navigation occurs when a nav button is clicked.\nAwaited before the route changes, so async cleanup is supported.",
|
|
3343
|
-
"privacy": "public",
|
|
3344
|
-
"inheritedFrom": {
|
|
3345
|
-
"name": "Navigation",
|
|
3346
|
-
"module": "src/main/main.ts"
|
|
3347
|
-
}
|
|
3348
|
-
},
|
|
3349
3301
|
{
|
|
3350
3302
|
"kind": "method",
|
|
3351
3303
|
"name": "isLayoutItemActive",
|
|
@@ -3484,7 +3436,7 @@
|
|
|
3484
3436
|
"name": "handleNavButtonClick",
|
|
3485
3437
|
"return": {
|
|
3486
3438
|
"type": {
|
|
3487
|
-
"text": "
|
|
3439
|
+
"text": "void"
|
|
3488
3440
|
}
|
|
3489
3441
|
},
|
|
3490
3442
|
"parameters": [
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -7,20 +7,6 @@ import type { ViewTemplate } from '@genesislcap/web-core';
|
|
|
7
7
|
import { Container } from '@genesislcap/web-core';
|
|
8
8
|
import { ControlPanel } from '../components/control-panel';
|
|
9
9
|
import { HeaderConfig } from '../config/config';
|
|
10
|
-
/**
|
|
11
|
-
* Detail payload for nav button click events and callbacks
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export type NavButtonClickDetail = {
|
|
15
|
-
/** The navigation item that was clicked */
|
|
16
|
-
item: FoundationRouteNavItem;
|
|
17
|
-
/** The pathname before navigation */
|
|
18
|
-
oldPath: string;
|
|
19
|
-
/** The destination path (`routeNavItem.routePath`). Undefined for items with a custom `onClick` that don't navigate. */
|
|
20
|
-
newPath: string | undefined;
|
|
21
|
-
/** The header component instance */
|
|
22
|
-
context: any;
|
|
23
|
-
};
|
|
24
10
|
/**
|
|
25
11
|
* Events dispatched by the navigation control buttons
|
|
26
12
|
* @public
|
|
@@ -31,7 +17,10 @@ export type NavEventDetailMap = {
|
|
|
31
17
|
'misc-icon-clicked': void;
|
|
32
18
|
'notification-icon-clicked': void;
|
|
33
19
|
'language-changed': void;
|
|
34
|
-
'nav-button-clicked':
|
|
20
|
+
'nav-button-clicked': {
|
|
21
|
+
item: FoundationRouteNavItem;
|
|
22
|
+
context: any;
|
|
23
|
+
};
|
|
35
24
|
};
|
|
36
25
|
/**
|
|
37
26
|
* Options for the language selector
|
|
@@ -651,28 +640,6 @@ export declare class Navigation extends Navigation_base {
|
|
|
651
640
|
* @beta
|
|
652
641
|
*/
|
|
653
642
|
layoutItemCheck?: (registration: string) => boolean;
|
|
654
|
-
/**
|
|
655
|
-
* Callback invoked before navigation occurs when a nav button is clicked.
|
|
656
|
-
* Awaited before the route changes, so async cleanup is supported.
|
|
657
|
-
*
|
|
658
|
-
* @remarks
|
|
659
|
-
* DOM events cannot be awaited, so this callback is the only way to guarantee
|
|
660
|
-
* execution before the route changes. The `nav-button-clicked` event fires after
|
|
661
|
-
* navigation and is suitable for informational use only.
|
|
662
|
-
*
|
|
663
|
-
* @example
|
|
664
|
-
* ```ts
|
|
665
|
-
* <foundation-header
|
|
666
|
-
* :onBeforeNavButtonClick=${(x) => async (detail) => {
|
|
667
|
-
* await x.cleanup();
|
|
668
|
-
* console.log(`Navigating from ${detail.oldPath} to ${detail.newPath}`);
|
|
669
|
-
* }}
|
|
670
|
-
* />
|
|
671
|
-
* ```
|
|
672
|
-
*
|
|
673
|
-
* @public
|
|
674
|
-
*/
|
|
675
|
-
onBeforeNavButtonClick?: (detail: NavButtonClickDetail) => void | Promise<void>;
|
|
676
643
|
/**
|
|
677
644
|
* Check if a layout item is currently active in the layout
|
|
678
645
|
* @param item - The navigation item to check
|
|
@@ -817,7 +784,7 @@ export declare class Navigation extends Navigation_base {
|
|
|
817
784
|
* Handles the click event for a navigation button
|
|
818
785
|
* @param routeNavItem - The navigation item that was clicked
|
|
819
786
|
*/
|
|
820
|
-
handleNavButtonClick(routeNavItem: FoundationRouteNavItem):
|
|
787
|
+
handleNavButtonClick(routeNavItem: FoundationRouteNavItem): void;
|
|
821
788
|
/**
|
|
822
789
|
* Current pathname for route highlighting
|
|
823
790
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAe,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAsB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAQ,SAAS,EAA6C,MAAM,uBAAuB,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUhD;;;GAGG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAe,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAsB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAQ,SAAS,EAA6C,MAAM,uBAAuB,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUhD;;;GAG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AC,IAAI,EAAE,MAAM,GAAG,MAAM;IAMrC;;;OAGG;IACH,oBAAoB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;IAUhE;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;;;OAKG;IACI,cAAc,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO;CAmBhE;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IACxC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAGnC;AAED;;;;;;GAMG;AACH,qBAKa,UAAW,SAAQ,UAAU;CAAG;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAKa,WAAY,SAAQ,UAAU;IACzC;;;;;;;;OAQG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAMlC,cAAc,IAAI,YAAY,CAAC,UAAU,CAAC;CAG3C"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -454,23 +454,13 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
|
|
|
454
454
|
* @param routeNavItem - The navigation item that was clicked
|
|
455
455
|
*/
|
|
456
456
|
handleNavButtonClick(routeNavItem) {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
};
|
|
465
|
-
yield ((_a = this.onBeforeNavButtonClick) === null || _a === void 0 ? void 0 : _a.call(this, detail));
|
|
466
|
-
if (routeNavItem.onClick) {
|
|
467
|
-
routeNavItem.onClick({ item: routeNavItem, context: this });
|
|
468
|
-
}
|
|
469
|
-
else if (routeNavItem.routePath) {
|
|
470
|
-
this.navigateTo(routeNavItem.routePath);
|
|
471
|
-
}
|
|
472
|
-
this.$emit('nav-button-clicked', detail);
|
|
473
|
-
});
|
|
457
|
+
if (routeNavItem.onClick) {
|
|
458
|
+
routeNavItem.onClick({ item: routeNavItem, context: this });
|
|
459
|
+
}
|
|
460
|
+
else if (routeNavItem.routePath) {
|
|
461
|
+
this.navigateTo(routeNavItem.routePath);
|
|
462
|
+
}
|
|
463
|
+
this.$emit('nav-button-clicked', { item: routeNavItem, context: this });
|
|
474
464
|
}
|
|
475
465
|
/**
|
|
476
466
|
* Current pathname for route highlighting
|
|
@@ -588,9 +578,6 @@ __decorate([
|
|
|
588
578
|
__decorate([
|
|
589
579
|
observable
|
|
590
580
|
], Navigation.prototype, "layoutItemCheck", void 0);
|
|
591
|
-
__decorate([
|
|
592
|
-
observable
|
|
593
|
-
], Navigation.prototype, "onBeforeNavButtonClick", void 0);
|
|
594
581
|
__decorate([
|
|
595
582
|
attr({ mode: 'boolean', attribute: 'show-account-menu' })
|
|
596
583
|
], Navigation.prototype, "showAccountMenu", void 0);
|
|
@@ -534,41 +534,6 @@
|
|
|
534
534
|
"endIndex": 3
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
|
-
{
|
|
538
|
-
"kind": "TypeAlias",
|
|
539
|
-
"canonicalReference": "@genesislcap/foundation-header!NavButtonClickDetail:type",
|
|
540
|
-
"docComment": "/**\n * Detail payload for nav button click events and callbacks\n *\n * @public\n */\n",
|
|
541
|
-
"excerptTokens": [
|
|
542
|
-
{
|
|
543
|
-
"kind": "Content",
|
|
544
|
-
"text": "export type NavButtonClickDetail = "
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"kind": "Content",
|
|
548
|
-
"text": "{\n item: "
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"kind": "Reference",
|
|
552
|
-
"text": "FoundationRouteNavItem",
|
|
553
|
-
"canonicalReference": "@genesislcap/foundation-ui!FoundationRouteNavItem:type"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"kind": "Content",
|
|
557
|
-
"text": ";\n oldPath: string;\n newPath: string | undefined;\n context: any;\n}"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"kind": "Content",
|
|
561
|
-
"text": ";"
|
|
562
|
-
}
|
|
563
|
-
],
|
|
564
|
-
"fileUrlPath": "src/main/main.ts",
|
|
565
|
-
"releaseTag": "Public",
|
|
566
|
-
"name": "NavButtonClickDetail",
|
|
567
|
-
"typeTokenRange": {
|
|
568
|
-
"startIndex": 1,
|
|
569
|
-
"endIndex": 4
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
537
|
{
|
|
573
538
|
"kind": "TypeAlias",
|
|
574
539
|
"canonicalReference": "@genesislcap/foundation-header!NavEventDetailMap:type",
|
|
@@ -580,16 +545,16 @@
|
|
|
580
545
|
},
|
|
581
546
|
{
|
|
582
547
|
"kind": "Content",
|
|
583
|
-
"text": "{\n 'luminance-icon-clicked': void;\n 'logout-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n 'language-changed': void;\n 'nav-button-clicked': "
|
|
548
|
+
"text": "{\n 'luminance-icon-clicked': void;\n 'logout-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n 'language-changed': void;\n 'nav-button-clicked': {\n item: "
|
|
584
549
|
},
|
|
585
550
|
{
|
|
586
551
|
"kind": "Reference",
|
|
587
|
-
"text": "
|
|
588
|
-
"canonicalReference": "@genesislcap/foundation-
|
|
552
|
+
"text": "FoundationRouteNavItem",
|
|
553
|
+
"canonicalReference": "@genesislcap/foundation-ui!FoundationRouteNavItem:type"
|
|
589
554
|
},
|
|
590
555
|
{
|
|
591
556
|
"kind": "Content",
|
|
592
|
-
"text": ";\n}"
|
|
557
|
+
"text": ";\n context: any;\n };\n}"
|
|
593
558
|
},
|
|
594
559
|
{
|
|
595
560
|
"kind": "Content",
|
|
@@ -886,14 +851,9 @@
|
|
|
886
851
|
"kind": "Content",
|
|
887
852
|
"text": "): "
|
|
888
853
|
},
|
|
889
|
-
{
|
|
890
|
-
"kind": "Reference",
|
|
891
|
-
"text": "Promise",
|
|
892
|
-
"canonicalReference": "!Promise:interface"
|
|
893
|
-
},
|
|
894
854
|
{
|
|
895
855
|
"kind": "Content",
|
|
896
|
-
"text": "
|
|
856
|
+
"text": "void"
|
|
897
857
|
},
|
|
898
858
|
{
|
|
899
859
|
"kind": "Content",
|
|
@@ -903,7 +863,7 @@
|
|
|
903
863
|
"isStatic": false,
|
|
904
864
|
"returnTypeTokenRange": {
|
|
905
865
|
"startIndex": 3,
|
|
906
|
-
"endIndex":
|
|
866
|
+
"endIndex": 4
|
|
907
867
|
},
|
|
908
868
|
"releaseTag": "Public",
|
|
909
869
|
"isProtected": false,
|
|
@@ -1468,54 +1428,6 @@
|
|
|
1468
1428
|
"isAbstract": false,
|
|
1469
1429
|
"name": "navigateTo"
|
|
1470
1430
|
},
|
|
1471
|
-
{
|
|
1472
|
-
"kind": "Property",
|
|
1473
|
-
"canonicalReference": "@genesislcap/foundation-header!Navigation#onBeforeNavButtonClick:member",
|
|
1474
|
-
"docComment": "/**\n * Callback invoked before navigation occurs when a nav button is clicked. Awaited before the route changes, so async cleanup is supported.\n *\n * @remarks\n *\n * DOM events cannot be awaited, so this callback is the only way to guarantee execution before the route changes. The `nav-button-clicked` event fires after navigation and is suitable for informational use only.\n *\n * @example\n * ```ts\n * <foundation-header\n * :onBeforeNavButtonClick=${(x) => async (detail) => {\n * await x.cleanup();\n * console.log(`Navigating from ${detail.oldPath} to ${detail.newPath}`);\n * }}\n * />\n * ```\n *\n * @public\n */\n",
|
|
1475
|
-
"excerptTokens": [
|
|
1476
|
-
{
|
|
1477
|
-
"kind": "Content",
|
|
1478
|
-
"text": "onBeforeNavButtonClick?: "
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"kind": "Content",
|
|
1482
|
-
"text": "(detail: "
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"kind": "Reference",
|
|
1486
|
-
"text": "NavButtonClickDetail",
|
|
1487
|
-
"canonicalReference": "@genesislcap/foundation-header!NavButtonClickDetail:type"
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
"kind": "Content",
|
|
1491
|
-
"text": ") => void | "
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
"kind": "Reference",
|
|
1495
|
-
"text": "Promise",
|
|
1496
|
-
"canonicalReference": "!Promise:interface"
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
"kind": "Content",
|
|
1500
|
-
"text": "<void>"
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
"kind": "Content",
|
|
1504
|
-
"text": ";"
|
|
1505
|
-
}
|
|
1506
|
-
],
|
|
1507
|
-
"isReadonly": false,
|
|
1508
|
-
"isOptional": true,
|
|
1509
|
-
"releaseTag": "Public",
|
|
1510
|
-
"name": "onBeforeNavButtonClick",
|
|
1511
|
-
"propertyTypeTokenRange": {
|
|
1512
|
-
"startIndex": 1,
|
|
1513
|
-
"endIndex": 6
|
|
1514
|
-
},
|
|
1515
|
-
"isStatic": false,
|
|
1516
|
-
"isProtected": false,
|
|
1517
|
-
"isAbstract": false
|
|
1518
|
-
},
|
|
1519
1431
|
{
|
|
1520
1432
|
"kind": "Property",
|
|
1521
1433
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#pathName:member",
|
|
@@ -287,21 +287,6 @@ export declare const MainStyles: ElementStyles;
|
|
|
287
287
|
*/
|
|
288
288
|
export declare const mainTemplate: ViewTemplate<Navigation, any>;
|
|
289
289
|
|
|
290
|
-
/**
|
|
291
|
-
* Detail payload for nav button click events and callbacks
|
|
292
|
-
* @public
|
|
293
|
-
*/
|
|
294
|
-
export declare type NavButtonClickDetail = {
|
|
295
|
-
/** The navigation item that was clicked */
|
|
296
|
-
item: FoundationRouteNavItem;
|
|
297
|
-
/** The pathname before navigation */
|
|
298
|
-
oldPath: string;
|
|
299
|
-
/** The destination path (`routeNavItem.routePath`). Undefined for items with a custom `onClick` that don't navigate. */
|
|
300
|
-
newPath: string | undefined;
|
|
301
|
-
/** The header component instance */
|
|
302
|
-
context: any;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
290
|
/**
|
|
306
291
|
* Events dispatched by the navigation control buttons
|
|
307
292
|
* @public
|
|
@@ -312,7 +297,10 @@ export declare type NavEventDetailMap = {
|
|
|
312
297
|
'misc-icon-clicked': void;
|
|
313
298
|
'notification-icon-clicked': void;
|
|
314
299
|
'language-changed': void;
|
|
315
|
-
'nav-button-clicked':
|
|
300
|
+
'nav-button-clicked': {
|
|
301
|
+
item: FoundationRouteNavItem;
|
|
302
|
+
context: any;
|
|
303
|
+
};
|
|
316
304
|
};
|
|
317
305
|
|
|
318
306
|
/**
|
|
@@ -569,28 +557,6 @@ export declare class Navigation extends Navigation_base {
|
|
|
569
557
|
* @beta
|
|
570
558
|
*/
|
|
571
559
|
layoutItemCheck?: (registration: string) => boolean;
|
|
572
|
-
/**
|
|
573
|
-
* Callback invoked before navigation occurs when a nav button is clicked.
|
|
574
|
-
* Awaited before the route changes, so async cleanup is supported.
|
|
575
|
-
*
|
|
576
|
-
* @remarks
|
|
577
|
-
* DOM events cannot be awaited, so this callback is the only way to guarantee
|
|
578
|
-
* execution before the route changes. The `nav-button-clicked` event fires after
|
|
579
|
-
* navigation and is suitable for informational use only.
|
|
580
|
-
*
|
|
581
|
-
* @example
|
|
582
|
-
* ```ts
|
|
583
|
-
* <foundation-header
|
|
584
|
-
* :onBeforeNavButtonClick=${(x) => async (detail) => {
|
|
585
|
-
* await x.cleanup();
|
|
586
|
-
* console.log(`Navigating from ${detail.oldPath} to ${detail.newPath}`);
|
|
587
|
-
* }}
|
|
588
|
-
* />
|
|
589
|
-
* ```
|
|
590
|
-
*
|
|
591
|
-
* @public
|
|
592
|
-
*/
|
|
593
|
-
onBeforeNavButtonClick?: (detail: NavButtonClickDetail) => void | Promise<void>;
|
|
594
560
|
/**
|
|
595
561
|
* Check if a layout item is currently active in the layout
|
|
596
562
|
* @param item - The navigation item to check
|
|
@@ -735,7 +701,7 @@ export declare class Navigation extends Navigation_base {
|
|
|
735
701
|
* Handles the click event for a navigation button
|
|
736
702
|
* @param routeNavItem - The navigation item that was clicked
|
|
737
703
|
*/
|
|
738
|
-
handleNavButtonClick(routeNavItem: FoundationRouteNavItem):
|
|
704
|
+
handleNavButtonClick(routeNavItem: FoundationRouteNavItem): void;
|
|
739
705
|
/**
|
|
740
706
|
* Current pathname for route highlighting
|
|
741
707
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-header",
|
|
3
3
|
"description": "Genesis Foundation Header",
|
|
4
|
-
"version": "14.409.
|
|
4
|
+
"version": "14.409.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -79,29 +79,29 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@genesislcap/foundation-testing": "14.409.
|
|
83
|
-
"@genesislcap/genx": "14.409.
|
|
84
|
-
"@genesislcap/rollup-builder": "14.409.
|
|
85
|
-
"@genesislcap/ts-builder": "14.409.
|
|
86
|
-
"@genesislcap/uvu-playwright-builder": "14.409.
|
|
87
|
-
"@genesislcap/vite-builder": "14.409.
|
|
88
|
-
"@genesislcap/webpack-builder": "14.409.
|
|
82
|
+
"@genesislcap/foundation-testing": "14.409.1",
|
|
83
|
+
"@genesislcap/genx": "14.409.1",
|
|
84
|
+
"@genesislcap/rollup-builder": "14.409.1",
|
|
85
|
+
"@genesislcap/ts-builder": "14.409.1",
|
|
86
|
+
"@genesislcap/uvu-playwright-builder": "14.409.1",
|
|
87
|
+
"@genesislcap/vite-builder": "14.409.1",
|
|
88
|
+
"@genesislcap/webpack-builder": "14.409.1"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@genesislcap/foundation-ai": "14.409.
|
|
92
|
-
"@genesislcap/foundation-auth": "14.409.
|
|
93
|
-
"@genesislcap/foundation-comms": "14.409.
|
|
94
|
-
"@genesislcap/foundation-events": "14.409.
|
|
95
|
-
"@genesislcap/foundation-i18n": "14.409.
|
|
96
|
-
"@genesislcap/foundation-logger": "14.409.
|
|
97
|
-
"@genesislcap/foundation-login": "14.409.
|
|
98
|
-
"@genesislcap/foundation-shell": "14.409.
|
|
99
|
-
"@genesislcap/foundation-ui": "14.409.
|
|
100
|
-
"@genesislcap/foundation-user": "14.409.
|
|
101
|
-
"@genesislcap/foundation-utils": "14.409.
|
|
102
|
-
"@genesislcap/foundation-zero": "14.409.
|
|
103
|
-
"@genesislcap/rapid-design-system": "14.409.
|
|
104
|
-
"@genesislcap/web-core": "14.409.
|
|
91
|
+
"@genesislcap/foundation-ai": "14.409.1",
|
|
92
|
+
"@genesislcap/foundation-auth": "14.409.1",
|
|
93
|
+
"@genesislcap/foundation-comms": "14.409.1",
|
|
94
|
+
"@genesislcap/foundation-events": "14.409.1",
|
|
95
|
+
"@genesislcap/foundation-i18n": "14.409.1",
|
|
96
|
+
"@genesislcap/foundation-logger": "14.409.1",
|
|
97
|
+
"@genesislcap/foundation-login": "14.409.1",
|
|
98
|
+
"@genesislcap/foundation-shell": "14.409.1",
|
|
99
|
+
"@genesislcap/foundation-ui": "14.409.1",
|
|
100
|
+
"@genesislcap/foundation-user": "14.409.1",
|
|
101
|
+
"@genesislcap/foundation-utils": "14.409.1",
|
|
102
|
+
"@genesislcap/foundation-zero": "14.409.1",
|
|
103
|
+
"@genesislcap/rapid-design-system": "14.409.1",
|
|
104
|
+
"@genesislcap/web-core": "14.409.1"
|
|
105
105
|
},
|
|
106
106
|
"repository": {
|
|
107
107
|
"type": "git",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
114
|
"customElements": "dist/custom-elements.json",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "a23531e1359a6381e7d4fd81e98bd8d2e9981560"
|
|
116
116
|
}
|