trimble-terra 1.1.17 → 1.1.19
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/dist/lib/main.js +36 -34
- package/dist/src/component/TrimbleDeveloper/TDHeader.css +1 -0
- package/dist/src/component/TrimbleDeveloper/TDHeader.d.ts +123 -0
- package/dist/src/component/TrimbleDeveloper/TDHeader.d.ts.map +1 -0
- package/dist/src/component/TrimbleDeveloper/TDHeader.js +565 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleAssistantIcon.d.ts +28 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleAssistantIcon.d.ts.map +1 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleAssistantIcon.js +88 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleDeveloperLogo.d.ts +22 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleDeveloperLogo.d.ts.map +1 -0
- package/dist/src/component/TrimbleDeveloper/TrimbleDeveloperLogo.js +64 -0
- package/dist/src/component/TrimbleDeveloper/index.d.ts +3 -0
- package/dist/src/component/TrimbleDeveloper/index.d.ts.map +1 -0
- package/dist/src/component/TrimbleDeveloper/index.js +4 -0
- package/dist/src/component/index.d.ts +2 -0
- package/dist/src/component/index.d.ts.map +1 -1
- package/dist/src/component/index.js +20 -18
- package/dist/src/navigation/SiteNav/MegaMenuCategory.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/MegaMenuCategory.js +111 -87
- package/dist/src/navigation/SiteNav/SiteNav.css +1 -1
- package/package.json +9 -2
package/dist/lib/main.js
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import { AlertBanner as e } from "../src/component/AlertBanner/AlertBanner.js";
|
|
2
2
|
import { SearchButton as a } from "../src/component/SearchButton/SearchButton.js";
|
|
3
3
|
import { CallToAction as m } from "../src/component/CallToAction/CallToAction.js";
|
|
4
|
-
import { PurchaseSection as
|
|
5
|
-
import {
|
|
6
|
-
import { default as d } from "../src/component/TrialForm/
|
|
7
|
-
import { default as n } from "../src/component/
|
|
8
|
-
import { default as g } from "../src/component/
|
|
9
|
-
import { default as y } from "../src/component/
|
|
10
|
-
import { default as F } from "../src/component/
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as b } from "../src/component/
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
4
|
+
import { PurchaseSection as l } from "../src/component/PurchaseSection/PurchaseSection.js";
|
|
5
|
+
import { TDHeader as i } from "../src/component/TrimbleDeveloper/TDHeader.js";
|
|
6
|
+
import { default as d } from "../src/component/TrialForm/TrialFormStart/TrialFormStart.js";
|
|
7
|
+
import { default as n } from "../src/component/TrialForm/TrialComponents/TrialSummary.js";
|
|
8
|
+
import { default as g } from "../src/component/ProductSummary/ProductSummary.js";
|
|
9
|
+
import { default as y } from "../src/component/ProductDetail/ProductDetail.js";
|
|
10
|
+
import { default as F } from "../src/component/LoadingSpinner/LoadingSpinner.js";
|
|
11
|
+
import { default as C } from "../src/component/Dialog/Dialog.js";
|
|
12
|
+
import { default as b } from "../src/component/ImageGallery/ImageGallery.js";
|
|
13
|
+
import { default as P } from "../src/component/FocusedImage/FocusedImage.js";
|
|
14
|
+
import { SectorFooter as A } from "../src/navigation/Footer/SectorFooter/SectorFooter.js";
|
|
15
|
+
import { GlobalFooter as G } from "../src/navigation/Footer/GlobalFooter/GlobalFooter.js";
|
|
16
|
+
import { Footer as L } from "../src/navigation/Footer/Footer.js";
|
|
17
|
+
import { SiteNavigation as H } from "../src/navigation/SiteNavigation/SiteNavigation.js";
|
|
18
|
+
import { TopLevelCategory as k } from "../src/navigation/SiteNavigation/TopLevelCategory.js";
|
|
19
|
+
import { SiteNavigationMobileCategory as w } from "../src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobileCategory.js";
|
|
20
|
+
import { SiteNav as E } from "../src/navigation/SiteNav/SiteNav.js";
|
|
21
|
+
import { SiteNavMobileCategory as K } from "../src/navigation/SiteNav/SiteNavMobileCategory.js";
|
|
21
22
|
export {
|
|
22
23
|
e as AlertBanner,
|
|
23
24
|
m as CallToAction,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
C as Dialog,
|
|
26
|
+
P as FocusedImage,
|
|
27
|
+
L as Footer,
|
|
28
|
+
G as GlobalFooter,
|
|
29
|
+
b as ImageGallery,
|
|
30
|
+
F as LoadingSpinner,
|
|
31
|
+
y as ProductDetail,
|
|
32
|
+
g as ProductSummary,
|
|
33
|
+
l as PurchaseSection,
|
|
33
34
|
a as SearchButton,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
d as
|
|
35
|
+
A as SectorFooter,
|
|
36
|
+
E as SiteNav,
|
|
37
|
+
K as SiteNavMobileCategory,
|
|
38
|
+
H as SiteNavigation,
|
|
39
|
+
w as SiteNavigationMobileCategory,
|
|
40
|
+
i as TDHeader,
|
|
41
|
+
k as TopLevelCategory,
|
|
42
|
+
d as TrialFormStart,
|
|
43
|
+
n as TrialSummary
|
|
42
44
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.td-header__root{position:relative}.td-header__mobile-toggle,.td-header__mobile-menu{display:none}.td-header__navbar{border-bottom:1px solid var(--modus-wc-color-base-200, #e0e1e9);display:block;max-width:100%}.td-header__navbar .modus-wc-navbar-start,.td-header__navbar .modus-wc-navbar-end{width:auto}.td-header__navbar .modus-wc-navbar-start{min-width:0}.td-header__navbar .modus-wc-navbar-center{display:flex;flex:1 1 auto;justify-content:flex-end;padding-inline-end:var(--modus-wc-spacing-sm)}.td-header__brand-wrap{display:flex;align-items:center;gap:.5rem;min-width:0}.td-header__brand{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;color:inherit;border-radius:var(--modus-wc-border-radius-md, 4px);min-width:0}.td-header__brand:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:2px}.td-header__logo{display:block;height:28px;width:auto;min-width:0;max-width:100%}.td-header__nav{display:flex;align-items:center;gap:.25rem;width:100%}.td-header__nav-link{display:inline-flex;align-items:center;margin:0 4px;height:2.5rem;padding:0 .25rem;border-radius:var(--modus-wc-border-radius-lg, 8px);font-family:Open Sans,-apple-system,Segoe UI,sans-serif;font-size:.875rem;font-weight:600;text-decoration:none;white-space:nowrap;color:var(--modeColor-semantic-primary-bg, #0063A3)}@media screen and (min-width:800px){.td-header__nav-link{padding:0 .75rem}}.td-header__nav-link:hover{background:#e0e1e9}.td-header__nav-link:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:-2px}.td-header__profile-popover .modus-wc-panel .main-menu-section modus-wc-menu,.td-header__profile-popover .modus-wc-panel modus-wc-menu,.td-header__profile-popover .modus-wc-panel [slot=body] modus-wc-menu{position:relative;top:initial;left:initial;bottom:initial;right:initial}.td-header__nav-trigger{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap;color:var(--modeColor-semantic-primary-bg, #0063A3)}.td-header__end{display:inline-flex;align-items:center;gap:.5rem}.td-header__help-dropdown.modus-wc-dropdown-menu .menu-wrapper modus-wc-menu{position:static;inset:auto}.td-header__help-icon--active{color:var(--modus-wc-color-primary, #0063a3)}.td-header__profile{position:relative;display:inline-flex}.td-header__profile-button .modus-wc-btn{padding:0}.td-header__profile-button .modus-wc-btn:hover,.td-header__profile-button .modus-wc-btn:active,.td-header__profile-button .modus-wc-btn[aria-pressed=true]{background:transparent}.td-header__profile-button .modus-wc-btn:hover .modus-wc-avatar .initials{background-color:#e0e1e9}.td-header__profile-button .modus-wc-avatar .modus-wc-w-16 .initials{font-size:10px}.td-header__profile-popover{position:absolute;top:calc(100% + .5rem);right:0;z-index:1000}.td-header__profile-popover[hidden]{display:none}.td-header__button .td-header__assistant-icon,.td-header__mobile-action .td-header__assistant-icon{height:1.25rem;width:auto}.td-header__no-pop .modus-wc-btn{animation:none}.td-header__menu{display:flex;flex-direction:column;min-width:12rem;border-radius:16px}.td-header__menu-link{display:flex;align-items:center;padding:.5rem .75rem;font-family:Open Sans,-apple-system,Segoe UI,sans-serif;font-size:.875rem;font-weight:400;text-decoration:none;white-space:nowrap;color:var(--modus-wc-color-base-content, #252a2e)}.td-header__menu-link:hover{background:#e0e1e9}.td-header__menu-link:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:-2px}.td-header__nav-dropdown .menu-wrapper,.td-header__help-dropdown .menu-wrapper,.td-header__nav-dropdown modus-wc-menu .modus-wc-menu,.td-header__help-dropdown modus-wc-menu .modus-wc-menu{border-radius:16px}.td-header__mobile-menu{position:absolute;inset-inline:0;top:100%;z-index:900;flex-direction:column;max-height:80vh;overflow-y:auto;padding:var(--modus-wc-spacing-sm, .5rem);background:var(--modus-wc-color-base-page, #fff);border-bottom:1px solid var(--modus-wc-color-base-200, #e0e1e9);box-shadow:0 8px 16px -8px #00000040}.td-header__mobile-nav{display:flex;flex-direction:column}.td-header__mobile-link{display:flex;align-items:center;padding:8px .75rem;line-height:32px;font-family:Open Sans,-apple-system,Segoe UI,sans-serif;font-weight:400;font-size:var(--t-font-size-lg, 18px);text-decoration:none;color:var(--modus-wc-color-base-content, #252a2e)}@media screen and (min-width:640px){.td-header__mobile-link{font-size:1rem}}.td-header__mobile-link:hover,.td-header__mobile-link:active{background:var(--modeColor-semantic-primary-pale, #DCEDF9);color:var(--modus-wc-color-base-content, #252a2e)}.td-header__mobile-link:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:-2px}.td-header__mobile-link--child{font-weight:400;padding-left:1.5rem;font-size:var(--t-font-size-sm, 14px);border-left:1px solid var(--modus-wc-color-base-200, #e0e1e9)}.td-header__mobile-sub{display:flex;flex-direction:column;font-size:var(--t-font-size-sm, 14px)}.td-header__mobile-utilities{display:flex;flex-direction:column}.td-header__mobile-utilities:not(:first-child){margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--modus-wc-color-base-200, #e0e1e9)}.td-header__mobile-utilities>modus-wc-button,.td-header__mobile-utilities>modus-wc-collapse{margin-top:2px}.td-header__mobile-action{width:100%}.td-header__mobile-action .modus-wc-btn{justify-content:flex-start;gap:.5rem;width:100%;height:auto;min-height:0;padding:8px .75rem;line-height:32px;border-radius:var(--modus-wc-border-radius-md, 4px);color:var(--modus-wc-color-base-content, #252a2e)}.td-header__mobile-action .modus-wc-btn:hover{background:var(--modus-wc-color-base-200, #e0e1e9)}.td-header__mobile-action-label{font-family:Open Sans,-apple-system,Segoe UI,sans-serif;font-size:var(--t-font-size-lg, 18px);font-weight:400}.td-header__mobile-theme{display:flex;align-items:center;gap:.5rem;padding:8px .75rem;line-height:32px}.td-header__theme-switch{position:relative;display:inline-flex;align-items:center}.td-header__theme-switch-icon{position:absolute;top:50%;transform:translateY(-50%);font-size:12px;line-height:1;pointer-events:none;color:var(--modus-wc-color-primary, #0063a3)}.td-header__theme-switch--light .td-header__theme-switch-icon{left:4px}.td-header__theme-switch--light .td-header__theme-switch-icon i{font-size:1rem;color:var(--modeColor-modeContent-content-static-dark, #171C1E);fill:var(--modeColor-modeContent-content-static-dark, #171C1E)}.td-header__theme-switch--dark .td-header__theme-switch-icon{right:3px}.td-header__theme-switch--dark .td-header__theme-switch-icon i{font-size:1rem;color:var(--modeColor-modeContent-content-static-dark, #171C1E);fill:var(--modeColor-modeContent-content-static-dark, #171C1E)}.td-header__mobile-theme-label{margin:0;padding:0;border:0;background:none;text-align:left;cursor:pointer;font-family:Open Sans,-apple-system,Segoe UI,sans-serif;font-size:var(--t-font-size-lg, 18px);font-weight:400;color:var(--modus-wc-color-base-content, #252a2e)}.td-header__mobile-collapse .modus-wc-title-main-row{font-size:var(--t-font-size-lg, 18px);font-weight:400;line-height:32px}@media screen and (min-width:640px){.td-header__mobile-collapse .modus-wc-title-main-row{font-size:1rem}}.td-header__nav-dropdown .modus-wc-btn{padding:0 .25rem}@media screen and (min-width:800px){.td-header__nav-dropdown .modus-wc-btn{padding:0 .75rem}}.td-header__mobile-utilities:not(:first-child){margin-top:0;padding-top:0;border-top:none}modus-wc-collapse .modus-wc-collapse.no-leading-icons>.modus-wc-collapse-title{padding-inline-start:12px}modus-wc-collapse .modus-wc-collapse .modus-wc-collapse-title{padding-top:8px;padding-bottom:8px}modus-wc-collapse .modus-wc-collapse-open .modus-wc-collapse-title{border-left:8px solid #0063A3;padding-left:12px}modus-wc-collapse .modus-wc-collapse.modus-wc-border{border-bottom:none;margin-bottom:0}modus-wc-collapse .td-header__mobile-collapse.modus-wc-collapse-open .modus-wc-collapse-title{font-weight:400}modus-wc-collapse .td-header__mobile-collapse.modus-wc-collapse-open .td-header__mobile-link{margin-bottom:0;padding:8px 12px}modus-wc-collapse .modus-wc-collapse.modus-wc-collapse-arrow.modus-wc-collapse-open .modus-wc-collapse-content{padding-left:1.25rem}.modus-wc-collapse-arrow>.modus-wc-collapse-title:after{top:25px}.light .td-header__nav-link:hover,.light .td-header__nav-link:active{background:#e0e1e9}.light .td-header__button .modus-wc-btn{background:var(--modeColor-modeContent-level1, #F1F1F6);color:var(--modus-wc-color-base-content, #252a2e)}.light .td-header__button .modus-wc-btn:hover{background:#e0e1e9;color:var(--modus-wc-color-base-content, #252a2e)}.light .td-header__button .modus-wc-btn:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:-2px}.light .td-header__nav-dropdown modus-wc-button[aria-expanded=true] .modus-wc-btn,.light .td-header__nav-dropdown .modus-wc-btn:hover{background:#e0e1e9}.light .td-header__help-dropdown--active .modus-wc-btn{background:#e0e1e9;color:var(--modus-wc-color-base-content, #252a2e)}.light modus-wc-collapse .td-header__mobile-collapse.modus-wc-collapse-open{color:var(--modeColor-semantic-primary-bg, #0063A3)}.light modus-wc-collapse .td-header__mobile-collapse.modus-wc-collapse-open .modus-wc-collapse-title{background:var(--modeColor-semantic-primary-pale, #DCEDF9)}.dark .td-header__nav-link:hover,.dark .td-header__nav-link:active,.dark .td-header__menu-link:hover,.dark .td-header__menu-link:active{background:var(--modus-wc-color-base-200)}.dark .td-header__button .modus-wc-btn{background:var(--u-color-active-overlay, rgba(255, 255, 255, .15));color:var(--modus-wc-color-base-content, #252a2e)}.dark .td-header__button .modus-wc-btn:hover{background:var(--modeColor-modeContent-level1, #252a2e);color:var(--modus-wc-color-base-content, #252a2e)}.dark .td-header__button .modus-wc-btn:focus-visible{outline:2px solid var(--modus-wc-color-primary, #0063a3);outline-offset:-2px}.dark .td-header__nav-dropdown modus-wc-button[aria-expanded=true] .modus-wc-btn,.dark .td-header__nav-dropdown .modus-wc-btn:hover{background:var(--modus-wc-color-base-200)}.dark .td-header__help-dropdown--active .modus-wc-btn{background:var(--modeColor-modeContent-level1, #252a2e)}modus-wc-navbar .modus-wc-navbar [slot=end] modus-wc-button,modus-wc-navbar .modus-wc-navbar [slot=end] modus-wc-text-input{padding:0}@media(min-width:640px){.td-header__mobile-toggle,.td-header__mobile-menu{display:none!important}}.td-header__sign-in{display:inline-flex}@media(max-width:639px){.td-header__nav,.td-header__desktop-control{display:none!important}.td-header__logo{height:24px}.td-header__sign-in{display:inline-flex!important}.td-header__mobile-toggle{display:inline-flex}.td-header__mobile-menu:not([hidden]){display:flex;height:100vh;max-height:100vh}}@media(min-width:640px)and (max-width:799px){.td-header__logo{height:clamp(18px,3.2vw,28px)}}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/** A child link rendered inside a nav item's Modus Dropdown Menu. */
|
|
2
|
+
export interface TDHeaderNavChild {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A primary navigation entry. When `children` are provided the entry renders as
|
|
9
|
+
* a Modus `modus-wc-dropdown-menu`; otherwise it renders as a plain link.
|
|
10
|
+
*/
|
|
11
|
+
export interface TDHeaderNavItem {
|
|
12
|
+
label: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
children?: TDHeaderNavChild[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A profile-menu item. Mirrors the Modus `IMenuItem` fields and adds an optional
|
|
19
|
+
* `href`; the URL is carried through to the Modus Profile Menu via the item's
|
|
20
|
+
* `value`, which is emitted on `menuItemClick` (Modus items don't render
|
|
21
|
+
* anchors).
|
|
22
|
+
*/
|
|
23
|
+
export interface TDHeaderProfileMenuItem {
|
|
24
|
+
/** Display text for the item. */
|
|
25
|
+
label: string;
|
|
26
|
+
/** Modus icon name shown alongside the item. */
|
|
27
|
+
icon?: string;
|
|
28
|
+
/** Icon variant. */
|
|
29
|
+
iconVariant?: "solid" | "outlined";
|
|
30
|
+
/** Icon size. */
|
|
31
|
+
iconSize?: "xs" | "sm" | "md" | "lg";
|
|
32
|
+
/** Explicit selection value (defaults to `href`, then `label`). */
|
|
33
|
+
value?: string;
|
|
34
|
+
/** Destination URL for the item; surfaced on click via `onProfileMenuItemClick`. */
|
|
35
|
+
href?: string;
|
|
36
|
+
}
|
|
37
|
+
/** A titled section of {@link TDHeaderProfileMenuItem}s in the Profile Menu. */
|
|
38
|
+
export interface TDHeaderProfileSubMenu {
|
|
39
|
+
/** Optional section heading. */
|
|
40
|
+
title?: string;
|
|
41
|
+
/** Items rendered in this section. */
|
|
42
|
+
items: TDHeaderProfileMenuItem[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The signed-in user. When supplied to {@link TDHeader}, the header swaps the
|
|
46
|
+
* "Sign in" button for a round avatar (initials) button that opens the Modus
|
|
47
|
+
* Profile Menu.
|
|
48
|
+
*/
|
|
49
|
+
export interface TDHeaderUser {
|
|
50
|
+
/** Full name; initials are derived from this unless `initials` is provided. */
|
|
51
|
+
name: string;
|
|
52
|
+
/** Email address shown in the profile menu. */
|
|
53
|
+
email?: string;
|
|
54
|
+
/** Explicit initials for the avatar button (defaults to initials of `name`). */
|
|
55
|
+
initials?: string;
|
|
56
|
+
/** Optional avatar image URL; falls back to initials when omitted. */
|
|
57
|
+
avatarUrl?: string;
|
|
58
|
+
/** Organization / enterprise name shown at the top of the profile menu. */
|
|
59
|
+
organization?: string;
|
|
60
|
+
/** "Manage Trimble ID" link target shown in the profile menu. */
|
|
61
|
+
manageTrimbleIdHref?: string;
|
|
62
|
+
/**
|
|
63
|
+
* First custom submenu section rendered in the Modus Profile Menu (in
|
|
64
|
+
* addition to its built-in items). Items may include an `href` that is
|
|
65
|
+
* surfaced on click via `onProfileMenuItemClick`.
|
|
66
|
+
*/
|
|
67
|
+
profileMenuOne?: TDHeaderProfileSubMenu;
|
|
68
|
+
/** Second custom submenu section rendered in the Modus Profile Menu. */
|
|
69
|
+
profileMenuTwo?: TDHeaderProfileSubMenu;
|
|
70
|
+
}
|
|
71
|
+
export interface TDHeaderProps {
|
|
72
|
+
/** Destination for the Trimble Developer brand lockup. Defaults to "#". */
|
|
73
|
+
logoHref?: string;
|
|
74
|
+
/** Wordmark rendered after the Trimble logo in the brand lockup. Defaults to "Developer". */
|
|
75
|
+
brandLabel?: string;
|
|
76
|
+
/** Label for the Trimble Identity sign-in button. Defaults to "Sign in". */
|
|
77
|
+
signInLabel?: string;
|
|
78
|
+
/** Label for the Trimble Assistant control (desktop button + mobile row). Defaults to "Trimble Assistant". */
|
|
79
|
+
assistantLabel?: string;
|
|
80
|
+
/** Label for the Help control (dropdown trigger + mobile accordion). Defaults to "Help". */
|
|
81
|
+
helpLabel?: string;
|
|
82
|
+
/** Label for the Notifications control (logged-in only). Defaults to "Notifications". */
|
|
83
|
+
notificationsLabel?: string;
|
|
84
|
+
/** Label for the light theme option in the mobile theme toggle. Defaults to "Light". */
|
|
85
|
+
themeLightLabel?: string;
|
|
86
|
+
/** Label for the dark theme option in the mobile theme toggle. Defaults to "Dark". */
|
|
87
|
+
themeDarkLabel?: string;
|
|
88
|
+
/** Primary navigation links (e.g. Console, Docs, Resources). */
|
|
89
|
+
navLinks?: TDHeaderNavItem[];
|
|
90
|
+
/** Items shown in the Help dropdown (Modus 'help' icon trigger). */
|
|
91
|
+
helpLinks?: TDHeaderNavChild[];
|
|
92
|
+
/**
|
|
93
|
+
* The signed-in user. When provided the header renders the logged-in state:
|
|
94
|
+
* a round avatar button that opens the Modus Profile Menu instead of the
|
|
95
|
+
* "Sign in" button.
|
|
96
|
+
*/
|
|
97
|
+
user?: TDHeaderUser;
|
|
98
|
+
/** Fired when a nav link, nav dropdown item, or help item is activated. */
|
|
99
|
+
onNavItemClick?: (value: string) => void;
|
|
100
|
+
/** Fired when the brand lockup is activated. */
|
|
101
|
+
onLogoClick?: () => void;
|
|
102
|
+
/** Fired when the Trimble Assistant button is activated. */
|
|
103
|
+
onAssistantClick?: () => void;
|
|
104
|
+
/** Fired when the Notifications button is activated (logged-in only). */
|
|
105
|
+
onNotificationsClick?: () => void;
|
|
106
|
+
/** Fired when the Trimble Identity sign-in button is activated. */
|
|
107
|
+
onSignIn?: () => void;
|
|
108
|
+
/** Fired when a profile-menu item is activated (value or label). */
|
|
109
|
+
onProfileMenuItemClick?: (value: string) => void;
|
|
110
|
+
/** Fired when "Sign out" is activated in the profile menu. */
|
|
111
|
+
onSignOut?: () => void;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Trimble Developer application header.
|
|
115
|
+
*
|
|
116
|
+
* Built on the Modus `modus-wc-navbar` so it inherits Modus navbar styling and
|
|
117
|
+
* chrome. The built-in navbar controls are hidden; the horizontal
|
|
118
|
+
* "Trimble Developer" logo lockup sits in the `start` slot, primary navigation
|
|
119
|
+
* sits in the `center` slot, and a light/dark theme toggle plus a Trimble
|
|
120
|
+
* Identity (TID) "Sign in" button sit in the `end` slot.
|
|
121
|
+
*/
|
|
122
|
+
export declare const TDHeader: ({ logoHref, brandLabel, signInLabel, assistantLabel, helpLabel, notificationsLabel, themeLightLabel, themeDarkLabel, navLinks, helpLinks, user, onLogoClick, onNavItemClick, onAssistantClick, onNotificationsClick, onSignIn, onProfileMenuItemClick, onSignOut, }: TDHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
//# sourceMappingURL=TDHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TDHeader.d.ts","sourceRoot":"","sources":["../../../../src/component/TrimbleDeveloper/TDHeader.tsx"],"names":[],"mappings":"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"}
|