@utahdts/utah-design-system-header 1.15.4 → 1.16.0
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/index.d.ts +38 -48
- package/dist/style.css +1 -1
- package/dist/utah-design-system-header.es.js +537 -525
- package/dist/utah-design-system-header.umd.js +42 -38
- package/package.json +6 -6
- package/src/css/media-queries.css +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* single module named "@utahdts/utah-design-system-header"
|
|
10
10
|
* just the exports from the `declare module "src/index" {` need put in the module
|
|
11
11
|
* put the updated contents in the /artifacts/index.d.ts file
|
|
12
|
+
* mangle it down to one `module`
|
|
13
|
+
* run `npm run tsc` from root to make sure it doesn't cause errors
|
|
12
14
|
|
|
13
15
|
Super painful to have to do this manual. But a better way is sure to surface at some point of time.
|
|
14
16
|
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
* for childrenMenuTypes
|
|
22
24
|
* move in to main module block
|
|
23
25
|
* update path to start with ../ so that it gets a correct path
|
|
24
|
-
* repeat for the other erroring modules
|
|
26
|
+
* repeat for the other erroring modules
|
|
25
27
|
* PopupPlacement
|
|
26
28
|
* events
|
|
27
29
|
* sizes
|
|
@@ -44,7 +46,7 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
44
46
|
export type ChildNode = Element;
|
|
45
47
|
export type EventAction = ((arg0: MouseEvent | TouchEvent | KeyboardEvent) => void);
|
|
46
48
|
export type AriaHasPopupType = 'dialog' | 'grid' | 'listbox' | 'menu' | 'tree';
|
|
47
|
-
export type ChildrenMenuTypes = ('flyout' | 'inline' | 'mega-menu');
|
|
49
|
+
export type ChildrenMenuTypes = ('flyout' | 'inline' | 'mega-menu' | 'plain');
|
|
48
50
|
export type Environments = 'none' | 'a1' | 'a2' | 'a3' | 'custom' | 'unittest';
|
|
49
51
|
export type Events = 'utahHeaderLoaded' | 'utahHeaderUnloaded';
|
|
50
52
|
export type PopupPlacement = 'auto' | 'auto-start' | 'auto-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'top' | 'top-start' | 'top-end';
|
|
@@ -199,36 +201,36 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
199
201
|
};
|
|
200
202
|
export type childrenMenuTypes = ChildrenMenuTypes;
|
|
201
203
|
export namespace childrenMenuTypes {
|
|
202
|
-
let FLYOUT:
|
|
203
|
-
let INLINE:
|
|
204
|
-
let MEGA_MENU:
|
|
204
|
+
let FLYOUT: ChildrenMenuTypes;
|
|
205
|
+
let INLINE: ChildrenMenuTypes;
|
|
206
|
+
let MEGA_MENU: ChildrenMenuTypes;
|
|
207
|
+
let PLAIN: ChildrenMenuTypes;
|
|
205
208
|
}
|
|
206
209
|
export namespace PopupPlacement {
|
|
207
|
-
let AUTO:
|
|
208
|
-
let AUTO_START:
|
|
209
|
-
let AUTO_END:
|
|
210
|
-
let BOTTOM:
|
|
211
|
-
let BOTTOM_START:
|
|
212
|
-
let BOTTOM_END:
|
|
213
|
-
let LEFT:
|
|
214
|
-
let LEFT_START:
|
|
215
|
-
let LEFT_END:
|
|
216
|
-
let RIGHT:
|
|
217
|
-
let RIGHT_START:
|
|
218
|
-
let RIGHT_END:
|
|
219
|
-
let TOP:
|
|
220
|
-
let TOP_START:
|
|
221
|
-
let TOP_END:
|
|
210
|
+
let AUTO: PopupPlacement;
|
|
211
|
+
let AUTO_START: PopupPlacement;
|
|
212
|
+
let AUTO_END: PopupPlacement;
|
|
213
|
+
let BOTTOM: PopupPlacement;
|
|
214
|
+
let BOTTOM_START: PopupPlacement;
|
|
215
|
+
let BOTTOM_END: PopupPlacement;
|
|
216
|
+
let LEFT: PopupPlacement;
|
|
217
|
+
let LEFT_START: PopupPlacement;
|
|
218
|
+
let LEFT_END: PopupPlacement;
|
|
219
|
+
let RIGHT: PopupPlacement;
|
|
220
|
+
let RIGHT_START: PopupPlacement;
|
|
221
|
+
let RIGHT_END: PopupPlacement;
|
|
222
|
+
let TOP: PopupPlacement;
|
|
223
|
+
let TOP_START: PopupPlacement;
|
|
224
|
+
let TOP_END: PopupPlacement;
|
|
222
225
|
}
|
|
223
226
|
export namespace events {
|
|
224
|
-
let HEADER_LOADED:
|
|
225
|
-
let HEADER_UNLOADED:
|
|
227
|
+
let HEADER_LOADED: Events;
|
|
228
|
+
let HEADER_UNLOADED: Events;
|
|
226
229
|
}
|
|
227
|
-
export type sizes = Size;
|
|
228
230
|
export namespace sizes {
|
|
229
|
-
let SMALL:
|
|
230
|
-
let MEDIUM:
|
|
231
|
-
let LARGE:
|
|
231
|
+
let SMALL: Size;
|
|
232
|
+
let MEDIUM: Size;
|
|
233
|
+
let LARGE: Size;
|
|
232
234
|
}
|
|
233
235
|
export function getCssClassSelector(domConstants: string | string[]): string;
|
|
234
236
|
export type domConstants = string;
|
|
@@ -350,19 +352,19 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
350
352
|
export const settingsKeeper: SettingsKeeper;
|
|
351
353
|
class SettingsKeeper {
|
|
352
354
|
settings: {
|
|
353
|
-
actionItems?:
|
|
354
|
-
domLocationTarget?:
|
|
355
|
-
footer?:
|
|
356
|
-
logo?:
|
|
357
|
-
mainMenu?: false |
|
|
358
|
-
mediaSizes:
|
|
355
|
+
actionItems?: ActionItem[] | undefined;
|
|
356
|
+
domLocationTarget?: DomLocationTarget | undefined;
|
|
357
|
+
footer?: FooterSettings | null | undefined;
|
|
358
|
+
logo?: Logo | undefined;
|
|
359
|
+
mainMenu?: false | MainMenu | undefined;
|
|
360
|
+
mediaSizes: MediaSizes;
|
|
359
361
|
onSearch?: false | ((search: string) => void) | undefined;
|
|
360
362
|
showTitle: boolean;
|
|
361
363
|
size: string;
|
|
362
364
|
skipLinkUrl?: string | undefined;
|
|
363
365
|
title: string;
|
|
364
366
|
titleURL: string;
|
|
365
|
-
utahId?: boolean |
|
|
367
|
+
utahId?: boolean | UtahIDSettings | undefined;
|
|
366
368
|
};
|
|
367
369
|
setSettings(settings: SettingsInput): void;
|
|
368
370
|
getSettings(): Settings;
|
|
@@ -386,6 +388,7 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
386
388
|
onClickHandler?: ((e: MouseEvent) => boolean) | undefined;
|
|
387
389
|
shouldOnClickCloseMenu: boolean;
|
|
388
390
|
}): void;
|
|
391
|
+
export function allowAriaExpanded(element: Element): boolean;
|
|
389
392
|
export function findRecursive<T>(object: T | T[], recursiveFields: string[], isMatchFunc: (o: T) => boolean): boolean;
|
|
390
393
|
export function showHideElement(element: Element, isShown: boolean, visibleClass: string, hiddenClass: string): void;
|
|
391
394
|
export function unloadGlobalEvents(): void;
|
|
@@ -399,7 +402,7 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
399
402
|
}
|
|
400
403
|
export function isTouchDevice(): boolean;
|
|
401
404
|
export function popupFocusHandler(wrapper: HTMLElement, button: HTMLElement, popup: HTMLElement, ariaHasPopup: AriaHasPopupType, options: PopupFocusHandlerOptions | undefined): void;
|
|
402
|
-
export function renderPopup(labelledByElement: Element, options?:
|
|
405
|
+
export function renderPopup(labelledByElement: Element, options?: RenderPopupOptions | undefined): HTMLElement;
|
|
403
406
|
export function suffixForMenuItemTitle(menuItem: MenuItem | MainMenuItem, parentMenuLinkSuffix?: string | ((menuItem: MainMenuItem | MenuItem) => string) | undefined): string;
|
|
404
407
|
export function renderMenu(menuItems: MenuItem[] | undefined, options: RenderPopupMenuOptions): HTMLElement;
|
|
405
408
|
export function renderPopupMenu(popupMenu: PopupMenu, labelledByElement: Element, options: RenderPopupMenuOptions): HTMLElement;
|
|
@@ -411,11 +414,6 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
411
414
|
export function renderMobileActionItems(): void;
|
|
412
415
|
export function renderFooterCopyrightYear(footerElement: Element, copyrightYear: string | null | undefined): void;
|
|
413
416
|
export function renderFooter(): Element | null;
|
|
414
|
-
export type PreviousFooterSettings = {
|
|
415
|
-
copyrightYear: string | null | undefined;
|
|
416
|
-
domLocationTarget: DomLocationTarget;
|
|
417
|
-
showHorizontalRule: boolean | undefined;
|
|
418
|
-
};
|
|
419
417
|
export function hookupTooltip(element: HTMLElement, dom: Node): void;
|
|
420
418
|
export function renderActionItem(actionItem: ActionItem): Element;
|
|
421
419
|
export function ActionItems(): Element | null;
|
|
@@ -459,16 +457,8 @@ declare module "@utahdts/utah-design-system-header" {
|
|
|
459
457
|
export function loadHeader(): void;
|
|
460
458
|
export function removeHeader(shouldTriggerUnloadEvent: boolean): void;
|
|
461
459
|
export function setUtahHeaderSettings(newSettings: SettingsInput): Settings;
|
|
462
|
-
export function setUtahFooterSettings(footerSettings?:
|
|
460
|
+
export function setUtahFooterSettings(footerSettings?: FooterSettings | undefined): FooterSettings | undefined;
|
|
463
461
|
export type environments = Environments;
|
|
464
|
-
export namespace environments {
|
|
465
|
-
let NONE: import("@utahdts/utah-design-system-header").Environments;
|
|
466
|
-
let PROD: import("@utahdts/utah-design-system-header").Environments;
|
|
467
|
-
let AT: import("@utahdts/utah-design-system-header").Environments;
|
|
468
|
-
let DEV: import("@utahdts/utah-design-system-header").Environments;
|
|
469
|
-
let CUSTOM: import("@utahdts/utah-design-system-header").Environments;
|
|
470
|
-
let UNITTEST: import("@utahdts/utah-design-system-header").Environments;
|
|
471
|
-
}
|
|
472
462
|
export function toHash(thing: object | string): number;
|
|
473
463
|
export function httpRequest({ url, method, headers, timeout, onResolve, onReject, }: {
|
|
474
464
|
url: string;
|