nsw-design-system 3.28.0 → 3.28.2
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/README.md +5 -5
- package/dist/css/core.css +2 -0
- package/dist/css/core.css.map +1 -0
- package/dist/css/main.css +3 -0
- package/dist/css/main.css.map +1 -0
- package/dist/js/components/accordion/accordion-css.d.ts +8 -0
- package/dist/js/components/accordion/accordion.d.ts +27 -0
- package/dist/js/components/back-to-top/back-to-top.d.ts +24 -0
- package/dist/js/components/breadcrumbs/breadcrumbs.d.ts +11 -0
- package/dist/js/components/card-carousel/carousel.d.ts +103 -0
- package/dist/js/components/card-carousel/swipe-content.d.ts +20 -0
- package/dist/js/components/cookie-consent/cookie-consent.d.ts +29 -0
- package/dist/js/components/date-picker/date-picker.d.ts +83 -0
- package/dist/js/components/dialog/dialog.d.ts +24 -0
- package/dist/js/components/file-upload/file-upload.d.ts +18 -0
- package/dist/js/components/filters/filters.d.ts +59 -0
- package/dist/js/components/global-alert/global-alert.d.ts +12 -0
- package/dist/js/components/header/header.d.ts +12 -0
- package/dist/js/components/link/link.d.ts +12 -0
- package/dist/js/components/main-nav/main-nav.d.ts +50 -0
- package/dist/js/components/popover/popover.d.ts +33 -0
- package/dist/js/components/quick-exit/quick-exit.d.ts +42 -0
- package/dist/js/components/select/select.d.ts +89 -0
- package/dist/js/components/side-nav/side-nav.d.ts +11 -0
- package/dist/js/components/tabs/tabs.d.ts +29 -0
- package/dist/js/components/tooltip/toggletip.d.ts +40 -0
- package/dist/js/components/tooltip/tooltip.d.ts +27 -0
- package/dist/js/components/utility-list/utility-list.d.ts +19 -0
- package/dist/js/core/layout/heading-links.d.ts +2 -0
- package/dist/js/docs/autocomplete.d.ts +56 -0
- package/dist/js/docs/chart-utilities.d.ts +552 -0
- package/dist/js/docs/charts-and-graphs.d.ts +1 -0
- package/dist/js/docs/color-swatches.d.ts +29 -0
- package/dist/js/docs/cookie-consent-config.d.ts +0 -0
- package/dist/js/docs/data.d.ts +7 -0
- package/dist/js/docs/docs.d.ts +1 -0
- package/dist/js/docs/download-pdf.d.ts +11 -0
- package/dist/js/docs/expandable-search.d.ts +10 -0
- package/dist/js/global/scripts/helpers/logger.d.ts +5 -0
- package/dist/js/global/scripts/helpers/sanitize.d.ts +3 -0
- package/dist/js/global/scripts/helpers/utilities.d.ts +26 -0
- package/dist/js/global/scripts/helpers/utilities.test.d.ts +1 -0
- package/dist/js/global/scripts/sticky-container.d.ts +11 -0
- package/dist/js/main.d.ts +23 -0
- package/dist/js/main.js +7621 -0
- package/package.json +1 -1
- package/src/components/main-nav/_main-nav.scss +6 -4
- package/src/docs/content/methods/easy-read/_easy-read.scss +4 -4
- package/src/global/scss/base/_mixins.scss +2 -2
- package/src/global/scss/settings/_settings.scss +4 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Accordion;
|
|
2
|
+
declare class Accordion {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
element: any;
|
|
5
|
+
accordionHeadingClass: string;
|
|
6
|
+
headings: any;
|
|
7
|
+
expandAllBtn: any;
|
|
8
|
+
collapseAllBtn: any;
|
|
9
|
+
isExpandedOnLoad: any;
|
|
10
|
+
buttons: any[];
|
|
11
|
+
content: any[];
|
|
12
|
+
statusElement: any;
|
|
13
|
+
toggleEvent: (event: any) => void;
|
|
14
|
+
expandAllEvent: (event: any) => void;
|
|
15
|
+
collapseAllEvent: (event: any) => void;
|
|
16
|
+
init(): void;
|
|
17
|
+
setUpDom(): void;
|
|
18
|
+
controls(): void;
|
|
19
|
+
updateToggleButtons(): void;
|
|
20
|
+
getTargetContent(element: any): any;
|
|
21
|
+
setAccordionState(element: any, state: any): void;
|
|
22
|
+
toggle(event: any): void;
|
|
23
|
+
expandAll(event: any): void;
|
|
24
|
+
collapseAll(event: any): void;
|
|
25
|
+
ensureStatusElement(): any;
|
|
26
|
+
announceStatus(message: any): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default BackTop;
|
|
2
|
+
declare class BackTop {
|
|
3
|
+
static createElement(tag: any, classes?: any[], attributes?: {}): any;
|
|
4
|
+
constructor(element: any);
|
|
5
|
+
element: any;
|
|
6
|
+
dataElement: any;
|
|
7
|
+
scrollOffset: any;
|
|
8
|
+
text: boolean;
|
|
9
|
+
icon: boolean;
|
|
10
|
+
scrollElement: any;
|
|
11
|
+
scrollPosition: number;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
condition: boolean;
|
|
15
|
+
stickyObserver: ResizeObserver | null;
|
|
16
|
+
bottomGap: number;
|
|
17
|
+
init(): void;
|
|
18
|
+
createButton(): void;
|
|
19
|
+
createButtonContent(): void;
|
|
20
|
+
updateBottomOffset(): void;
|
|
21
|
+
checkBackToTop(): void;
|
|
22
|
+
resizeHandler(): void;
|
|
23
|
+
debounce(fn: any, wait?: number): (...args: any[]) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default Breadcrumbs;
|
|
2
|
+
declare class Breadcrumbs {
|
|
3
|
+
static createElement(tag: any, classes?: any[], attributes?: {}): any;
|
|
4
|
+
constructor(element: any);
|
|
5
|
+
element: any;
|
|
6
|
+
allBreadcrumbs: any;
|
|
7
|
+
secondBreadcrumb: any;
|
|
8
|
+
condition: boolean;
|
|
9
|
+
init(): void;
|
|
10
|
+
createToggle(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export default Carousel;
|
|
2
|
+
declare class Carousel extends SwipeContent {
|
|
3
|
+
containerClass: string;
|
|
4
|
+
controlClass: string;
|
|
5
|
+
wrapperClass: string;
|
|
6
|
+
counterClass: string;
|
|
7
|
+
counterTotalClass: string;
|
|
8
|
+
navClass: string;
|
|
9
|
+
navItemClass: string;
|
|
10
|
+
navigationItemClass: any;
|
|
11
|
+
navigationClass: any;
|
|
12
|
+
paginationClass: any;
|
|
13
|
+
draggingClass: string;
|
|
14
|
+
loadedClass: string;
|
|
15
|
+
animateClass: string;
|
|
16
|
+
cloneClass: string;
|
|
17
|
+
srClass: string;
|
|
18
|
+
srLiveAreaClass: string;
|
|
19
|
+
hideControlsClass: string;
|
|
20
|
+
hideClass: string;
|
|
21
|
+
centerClass: string;
|
|
22
|
+
listWrapper: any;
|
|
23
|
+
list: any;
|
|
24
|
+
items: any;
|
|
25
|
+
controls: any;
|
|
26
|
+
counter: any;
|
|
27
|
+
counterTotal: any;
|
|
28
|
+
ariaLabel: any;
|
|
29
|
+
dragEnabled: boolean;
|
|
30
|
+
loop: boolean;
|
|
31
|
+
nav: boolean;
|
|
32
|
+
navigationPagination: boolean;
|
|
33
|
+
justifyContent: boolean;
|
|
34
|
+
shiftTabActive: boolean;
|
|
35
|
+
focusAfterTransitionHandler: any;
|
|
36
|
+
focusableSelectors: string;
|
|
37
|
+
initItems: any[];
|
|
38
|
+
itemsNb: any;
|
|
39
|
+
visibItemsNb: number;
|
|
40
|
+
itemsWidth: number;
|
|
41
|
+
itemOriginalWidth: boolean;
|
|
42
|
+
selectedItem: number;
|
|
43
|
+
translateContainer: number;
|
|
44
|
+
containerWidth: number;
|
|
45
|
+
animating: boolean;
|
|
46
|
+
dragStart: boolean;
|
|
47
|
+
resizeId: boolean;
|
|
48
|
+
cloneList: any[];
|
|
49
|
+
itemAutoSize: boolean;
|
|
50
|
+
totTranslate: number;
|
|
51
|
+
flexSupported: boolean;
|
|
52
|
+
transitionSupported: boolean;
|
|
53
|
+
cssPropertiesSupported: boolean;
|
|
54
|
+
uid: any;
|
|
55
|
+
initCarouselLayout(): void;
|
|
56
|
+
carouselCreateContainer(): void;
|
|
57
|
+
setItemsWidth(bool: any): void;
|
|
58
|
+
updateCarouselClones(): void;
|
|
59
|
+
initCarouselEvents(): void;
|
|
60
|
+
showPrevItems(): void;
|
|
61
|
+
showNextItems(): void;
|
|
62
|
+
animateDragEnd(): void;
|
|
63
|
+
animateList(translate: any, direction: any): void;
|
|
64
|
+
noLoopTranslateValue(direction: any): string;
|
|
65
|
+
animateListCb(direction: any): void;
|
|
66
|
+
updateClones(direction: any): void;
|
|
67
|
+
insertBefore(nb: any, delta: any): void;
|
|
68
|
+
insertAfter(nb: any, init: any): void;
|
|
69
|
+
removeClones(index: any, bool: any): void;
|
|
70
|
+
resetCarouselResize(): void;
|
|
71
|
+
resetItemAutoSize(): void;
|
|
72
|
+
resetItemsWidth(): void;
|
|
73
|
+
resetItemsTabIndex(): void;
|
|
74
|
+
initAriaLive(): void;
|
|
75
|
+
ariaLive: HTMLDivElement | undefined;
|
|
76
|
+
updateAriaLive(): void;
|
|
77
|
+
getIndex(index: any): any;
|
|
78
|
+
getPositiveValue(value: any, add: any): any;
|
|
79
|
+
setTranslate(translate: any): void;
|
|
80
|
+
getCarouselWidth(computedWidth: any): any;
|
|
81
|
+
getHiddenParentWidth(element: any): any;
|
|
82
|
+
resetCarouselControls(): void;
|
|
83
|
+
emitCarouselUpdateEvent(): void;
|
|
84
|
+
carouselCreateNavigation(): void;
|
|
85
|
+
carouselInitNavigationEvents(): void;
|
|
86
|
+
navigation: any;
|
|
87
|
+
navDots: any;
|
|
88
|
+
navIdEvent: ((event: any) => void) | undefined;
|
|
89
|
+
carouselRemoveNavigation(): void;
|
|
90
|
+
resetDotsNavigation(): void;
|
|
91
|
+
carouselNavigationClick(event: any): void;
|
|
92
|
+
selectedDotIndex: number | undefined;
|
|
93
|
+
getSelectedDot(): number;
|
|
94
|
+
initCarouselCounter(): void;
|
|
95
|
+
setCounterItem(): void;
|
|
96
|
+
centerItems(): void;
|
|
97
|
+
emitCarouselActiveItemsEvent(): void;
|
|
98
|
+
emitCarouselEvents(eventName: any, eventDetail: any): void;
|
|
99
|
+
resetVisibilityOverflowItems(j: any): void;
|
|
100
|
+
focusAfterTransition(element: any): void;
|
|
101
|
+
toggleItemFocusable(item: any, isHidden: any): void;
|
|
102
|
+
}
|
|
103
|
+
import SwipeContent from './swipe-content';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default SwipeContent;
|
|
2
|
+
declare class SwipeContent {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
element: any;
|
|
5
|
+
delta: boolean[];
|
|
6
|
+
dragging: boolean;
|
|
7
|
+
intervalId: boolean;
|
|
8
|
+
changedTouches: boolean;
|
|
9
|
+
handleEventBind: (event: any) => void;
|
|
10
|
+
init(): void;
|
|
11
|
+
initDragging(): void;
|
|
12
|
+
cancelDragging(): void;
|
|
13
|
+
handleEvent(event: any): void;
|
|
14
|
+
startDrag(event: any): void;
|
|
15
|
+
endDrag(event: any): void;
|
|
16
|
+
drag(event: any): void;
|
|
17
|
+
unify(event: any): any;
|
|
18
|
+
emitDrag(event: any): void;
|
|
19
|
+
emitSwipeEvents(eventName: any, detail: any, el: any): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default CookieConsent;
|
|
2
|
+
declare class CookieConsent {
|
|
3
|
+
static cleanupDefaultCookieUI(): void;
|
|
4
|
+
static mapToVanillaCookieConsentConfig(config: any): any;
|
|
5
|
+
constructor(config?: null);
|
|
6
|
+
isInit: boolean;
|
|
7
|
+
config: any;
|
|
8
|
+
consentBannerElement: Element | null;
|
|
9
|
+
preferencesDialogElement: Element | null;
|
|
10
|
+
consentBannerConfirmationMessage: string | undefined;
|
|
11
|
+
consentSelectionMade: boolean | undefined;
|
|
12
|
+
createPreferencesDialog(): void;
|
|
13
|
+
dialogInstance: any;
|
|
14
|
+
createConsentBanner(): void;
|
|
15
|
+
init(): void;
|
|
16
|
+
initElements(): void;
|
|
17
|
+
cookieInputContainer: Element | null | undefined;
|
|
18
|
+
allCookieInputs: never[] | NodeListOf<Element> | undefined;
|
|
19
|
+
acceptSelectionButton: Element | null | undefined;
|
|
20
|
+
acceptAllButton: Element | null | undefined;
|
|
21
|
+
rejectAllButton: Element | null | undefined;
|
|
22
|
+
initAPI(): any;
|
|
23
|
+
attachEventListeners(): void;
|
|
24
|
+
loadUserPreferences(): void;
|
|
25
|
+
handleConsentAction(action: any): void;
|
|
26
|
+
showConfirmationMessage(): void;
|
|
27
|
+
showConsentBanner(): void;
|
|
28
|
+
hideConsentBanner(): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export default DatePicker;
|
|
2
|
+
declare class DatePicker {
|
|
3
|
+
static daysInMonth(year: any, month: any): number;
|
|
4
|
+
static getDayOfWeek(year: any, month: any, day: any): number;
|
|
5
|
+
static getReadableDate(date: any): any;
|
|
6
|
+
constructor(element: any);
|
|
7
|
+
element: any;
|
|
8
|
+
prefix: string;
|
|
9
|
+
class: string;
|
|
10
|
+
uID: string;
|
|
11
|
+
dateClass: string;
|
|
12
|
+
todayClass: string;
|
|
13
|
+
selectedClass: string;
|
|
14
|
+
keyboardFocusClass: string;
|
|
15
|
+
visibleClass: string;
|
|
16
|
+
months: any;
|
|
17
|
+
dateFormat: any;
|
|
18
|
+
dateSeparator: any;
|
|
19
|
+
dateSeparatorRegex: RegExp;
|
|
20
|
+
datesDisabled: any;
|
|
21
|
+
minDate: any;
|
|
22
|
+
maxDate: any;
|
|
23
|
+
input: any;
|
|
24
|
+
trigger: any;
|
|
25
|
+
triggerLabel: any;
|
|
26
|
+
datePicker: any;
|
|
27
|
+
body: any;
|
|
28
|
+
navigation: any;
|
|
29
|
+
heading: any;
|
|
30
|
+
close: any;
|
|
31
|
+
accept: any;
|
|
32
|
+
multipleInput: any;
|
|
33
|
+
dateInput: any;
|
|
34
|
+
monthInput: any;
|
|
35
|
+
yearInput: any;
|
|
36
|
+
multiDateArray: any[];
|
|
37
|
+
dateIndexes: any[];
|
|
38
|
+
pickerVisible: boolean;
|
|
39
|
+
dateSelected: boolean;
|
|
40
|
+
selectedDay: boolean;
|
|
41
|
+
selectedMonth: boolean;
|
|
42
|
+
selectedYear: boolean;
|
|
43
|
+
firstFocusable: boolean;
|
|
44
|
+
lastFocusable: boolean;
|
|
45
|
+
disabledArray: boolean;
|
|
46
|
+
init(): void;
|
|
47
|
+
initCreateCalendar(): void;
|
|
48
|
+
initCalendarAria(): void;
|
|
49
|
+
srLiveReagion: any;
|
|
50
|
+
initCalendarEvents(): void;
|
|
51
|
+
getCurrentDay(date: any): any;
|
|
52
|
+
getCurrentMonth(date: any): any;
|
|
53
|
+
getCurrentYear(date: any): any;
|
|
54
|
+
getDayFromDate(date: any): any;
|
|
55
|
+
getMonthFromDate(date: any): any;
|
|
56
|
+
getYearFromDate(date: any): any;
|
|
57
|
+
showNextMonth(bool: any): void;
|
|
58
|
+
currentYear: any;
|
|
59
|
+
currentMonth: any;
|
|
60
|
+
currentDay: any;
|
|
61
|
+
showPrevMonth(bool: any): void;
|
|
62
|
+
showNextYear(bool: any): void;
|
|
63
|
+
showPrevYear(bool: any): void;
|
|
64
|
+
checkDayInMonth(): any;
|
|
65
|
+
resetCalendar(): void;
|
|
66
|
+
disabledDates(): void;
|
|
67
|
+
convertDateToParse(date: any): string;
|
|
68
|
+
isDisabledDate(day: any, month: any, year: any): boolean;
|
|
69
|
+
showCalendar(bool: any): void;
|
|
70
|
+
hideCalendar(): void;
|
|
71
|
+
toggleCalendar(bool: any): void;
|
|
72
|
+
getDateIndexes(): any[];
|
|
73
|
+
setInputValue(): void;
|
|
74
|
+
getDateForInput(day: any, month: any, year: any): any;
|
|
75
|
+
getDateFromInput(): string;
|
|
76
|
+
resetDayValue(day: any): void;
|
|
77
|
+
resetLabelCalendarTrigger(): void;
|
|
78
|
+
getFocusableElements(): void;
|
|
79
|
+
getFirstFocusable(elements: any): boolean;
|
|
80
|
+
getLastFocusable(elements: any): boolean;
|
|
81
|
+
trapFocus(event: any): void;
|
|
82
|
+
placeCalendar(): void;
|
|
83
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default Dialog;
|
|
2
|
+
declare class Dialog {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
element: any;
|
|
5
|
+
elementWrapper: any;
|
|
6
|
+
openBtn: NodeListOf<Element>;
|
|
7
|
+
closeBtn: any;
|
|
8
|
+
focusableEls: any;
|
|
9
|
+
body: HTMLElement;
|
|
10
|
+
previouslyFocusedElement: Element | null;
|
|
11
|
+
openEvent: () => void;
|
|
12
|
+
closeEvent: () => void;
|
|
13
|
+
clickEvent: (event: any) => void;
|
|
14
|
+
keydownEvent: (event: any) => void;
|
|
15
|
+
init(): void;
|
|
16
|
+
controls(): void;
|
|
17
|
+
openDialog(): void;
|
|
18
|
+
closeDialog(): void;
|
|
19
|
+
clickDialog(event: any): void;
|
|
20
|
+
keydownDialog(event: any): void;
|
|
21
|
+
saveFocus(): void;
|
|
22
|
+
restoreFocus(): void;
|
|
23
|
+
trapFocus(event: any): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default FileUpload;
|
|
2
|
+
declare class FileUpload {
|
|
3
|
+
static truncateString(str: any, num: any): any;
|
|
4
|
+
constructor(element: any);
|
|
5
|
+
element: any;
|
|
6
|
+
input: any;
|
|
7
|
+
label: any;
|
|
8
|
+
multipleUpload: any;
|
|
9
|
+
replaceFiles: any;
|
|
10
|
+
filesList: any;
|
|
11
|
+
init(): void;
|
|
12
|
+
handleInputChange(): void;
|
|
13
|
+
createFileList(): void;
|
|
14
|
+
createFileItem(file: any): string;
|
|
15
|
+
updateFileList(): void;
|
|
16
|
+
currentFiles: DataTransfer | undefined;
|
|
17
|
+
handleFileRemove(event: any): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export default Filters;
|
|
2
|
+
declare class Filters {
|
|
3
|
+
static getMultiSelectValues(array: any): any[];
|
|
4
|
+
static moveFocusFn(element: any): void;
|
|
5
|
+
constructor(element: any);
|
|
6
|
+
element: any;
|
|
7
|
+
hideClass: string;
|
|
8
|
+
showClass: string;
|
|
9
|
+
openClass: string;
|
|
10
|
+
prefix: string;
|
|
11
|
+
class: string;
|
|
12
|
+
controlsClass: string;
|
|
13
|
+
wrapperClass: string;
|
|
14
|
+
listClass: string;
|
|
15
|
+
itemClass: string;
|
|
16
|
+
resetClass: string;
|
|
17
|
+
submitClass: string;
|
|
18
|
+
closeClass: string;
|
|
19
|
+
countClass: string;
|
|
20
|
+
allClass: string;
|
|
21
|
+
moreClass: string;
|
|
22
|
+
count: any;
|
|
23
|
+
controls: any;
|
|
24
|
+
controlsButton: any;
|
|
25
|
+
controlsButtonIcons: any;
|
|
26
|
+
controlsButtonText: any;
|
|
27
|
+
controlsButtonTextContent: any;
|
|
28
|
+
wrapper: any;
|
|
29
|
+
closeButton: any;
|
|
30
|
+
submitButton: any;
|
|
31
|
+
resetButton: any;
|
|
32
|
+
items: any;
|
|
33
|
+
accordionButtons: any;
|
|
34
|
+
showMoreContent: any;
|
|
35
|
+
showMoreButtons: any;
|
|
36
|
+
focusableElements: string;
|
|
37
|
+
selectedOption: any;
|
|
38
|
+
buttons: any[];
|
|
39
|
+
content: any[];
|
|
40
|
+
options: any[];
|
|
41
|
+
selected: any[];
|
|
42
|
+
keydownHandler: ((event: any) => void) | null;
|
|
43
|
+
init(): void;
|
|
44
|
+
initEvents(): void;
|
|
45
|
+
setAccordionState(element: any, state: any): void;
|
|
46
|
+
toggleAccordion(event: any): void;
|
|
47
|
+
getTargetContent(element: any): any;
|
|
48
|
+
toggleSubmit(array: any): void;
|
|
49
|
+
showMore(event: any, index: any): void;
|
|
50
|
+
closeFilters(event: any): void;
|
|
51
|
+
showFilters(event: any): void;
|
|
52
|
+
clearAll(event: any): void;
|
|
53
|
+
getOptions(): void;
|
|
54
|
+
getSelected(): void;
|
|
55
|
+
selectedCount(array: any): void;
|
|
56
|
+
setSelectedState(): void;
|
|
57
|
+
updateDom(): void;
|
|
58
|
+
trapFocus(element: any): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default GlobalAlert;
|
|
2
|
+
declare class GlobalAlert {
|
|
3
|
+
static setCookie(name: any, value: any, days: any): void;
|
|
4
|
+
static getCookie(name: any): string | null;
|
|
5
|
+
constructor(element: any);
|
|
6
|
+
element: any;
|
|
7
|
+
closeButton: any;
|
|
8
|
+
cookieName: any;
|
|
9
|
+
init(): void;
|
|
10
|
+
controls(): void;
|
|
11
|
+
closeMessage(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default SiteSearch;
|
|
2
|
+
declare class SiteSearch {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
element: any;
|
|
5
|
+
originalButton: Element | null;
|
|
6
|
+
targetElement: HTMLElement | null;
|
|
7
|
+
searchInput: Element | null;
|
|
8
|
+
pressed: boolean;
|
|
9
|
+
init(): void;
|
|
10
|
+
controls(): void;
|
|
11
|
+
showHide(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default ExternalLink;
|
|
2
|
+
declare class ExternalLink {
|
|
3
|
+
static setAttributes(el: any, attrs: any): void;
|
|
4
|
+
constructor(element: any);
|
|
5
|
+
element: any;
|
|
6
|
+
uID: string;
|
|
7
|
+
linkIcon: any;
|
|
8
|
+
linkIconTitle: any;
|
|
9
|
+
linkElement: boolean;
|
|
10
|
+
init(): void;
|
|
11
|
+
createElement(title: any): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export default Navigation;
|
|
2
|
+
declare class Navigation {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
nav: any;
|
|
5
|
+
navID: any;
|
|
6
|
+
openNavButton: Element | null;
|
|
7
|
+
closeNavButtons: any;
|
|
8
|
+
closeSubNavButtons: any;
|
|
9
|
+
isMegaMenuElement: any;
|
|
10
|
+
mainNavIsOpen: boolean;
|
|
11
|
+
transitionEvent: any;
|
|
12
|
+
mobileShowMainTransitionEndEvent: (e: any) => void;
|
|
13
|
+
mobileHideMainTransitionEndEvent: (e: any) => void;
|
|
14
|
+
showSubNavTransitionEndEvent: (e: any) => void;
|
|
15
|
+
mobileTrapTabKeyEvent: (e: any) => void;
|
|
16
|
+
mobileSubNavTrapTabKeyEvent: (e: any) => void;
|
|
17
|
+
desktopButtonClickEvent: (e: any) => void;
|
|
18
|
+
desktopButtonKeydownEvent: (e: any) => void;
|
|
19
|
+
checkFocusEvent: (e: any) => void;
|
|
20
|
+
openSubNavElements: any[];
|
|
21
|
+
breakpoint: MediaQueryList;
|
|
22
|
+
init(): void;
|
|
23
|
+
initEvents(): void;
|
|
24
|
+
responsiveCheck(event: any): void;
|
|
25
|
+
handleOutsideClick(event: any): void;
|
|
26
|
+
tearDownNavControls(): void;
|
|
27
|
+
setUpNavControls(listItems: any): void;
|
|
28
|
+
mobileMainNavTrapTabs(e: any): void;
|
|
29
|
+
mobileShowMainNav({ propertyName }: {
|
|
30
|
+
propertyName: any;
|
|
31
|
+
}): void;
|
|
32
|
+
mobileHideMainNav({ propertyName }: {
|
|
33
|
+
propertyName: any;
|
|
34
|
+
}): void;
|
|
35
|
+
mobileToggleMainNav(e: any): void;
|
|
36
|
+
buttonClickDesktop(event: any): void;
|
|
37
|
+
buttonKeydownDesktop(event: any): void;
|
|
38
|
+
ensureSingleDesktopSubNav(currentTarget: any): void;
|
|
39
|
+
escapeClose(e: any): void;
|
|
40
|
+
saveElements(e: any): void;
|
|
41
|
+
showSubNav({ propertyName }: {
|
|
42
|
+
propertyName: any;
|
|
43
|
+
}): void;
|
|
44
|
+
closeSubNav(): void;
|
|
45
|
+
openSubNav(): void;
|
|
46
|
+
toggleSubNavDesktop(): void;
|
|
47
|
+
checkIfContainsFocus(e: any): void;
|
|
48
|
+
whichSubNavLatest(): any;
|
|
49
|
+
trapkeyEventStuff(e: any): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default Popover;
|
|
2
|
+
declare class Popover {
|
|
3
|
+
static debounce(func: any, wait: any): (...args: any[]) => void;
|
|
4
|
+
static isVisible(element: any): any;
|
|
5
|
+
static moveFocus(element: any): void;
|
|
6
|
+
static setAttributes(el: any, attrs: any): void;
|
|
7
|
+
constructor(element: any);
|
|
8
|
+
element: any;
|
|
9
|
+
popoverId: any;
|
|
10
|
+
popoverPosition: any;
|
|
11
|
+
popoverGap: any;
|
|
12
|
+
popoverAnchor: any;
|
|
13
|
+
popoverElement: any;
|
|
14
|
+
popoverVisibleClass: string;
|
|
15
|
+
popoverContent: boolean;
|
|
16
|
+
popoverIsOpen: boolean;
|
|
17
|
+
firstFocusable: any;
|
|
18
|
+
lastFocusable: any;
|
|
19
|
+
init(): void;
|
|
20
|
+
initEvents(): void;
|
|
21
|
+
debouncedTogglePopover: any;
|
|
22
|
+
togglePopover(): void;
|
|
23
|
+
showPopover(): void;
|
|
24
|
+
hidePopover(): void;
|
|
25
|
+
updatePopover(popover: any, placement: any, anchor?: any): Promise<void>;
|
|
26
|
+
checkPopoverClick(target: any): void;
|
|
27
|
+
checkPopoverFocus(): void;
|
|
28
|
+
focusPopover(): void;
|
|
29
|
+
getFocusableElements(): void;
|
|
30
|
+
getFirstVisible(elements: any): void;
|
|
31
|
+
getLastVisible(elements: any): void;
|
|
32
|
+
trapFocus(event: any): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default class QuickExit {
|
|
2
|
+
/**
|
|
3
|
+
* Enhance or create a Quick Exit inside the sticky container
|
|
4
|
+
*/
|
|
5
|
+
static init({ safeUrl, enableEsc, enableCloak, focusFirst, }?: {
|
|
6
|
+
safeUrl?: string | undefined;
|
|
7
|
+
enableEsc?: boolean | undefined;
|
|
8
|
+
enableCloak?: boolean | undefined;
|
|
9
|
+
focusFirst?: boolean | undefined;
|
|
10
|
+
}): void;
|
|
11
|
+
/**
|
|
12
|
+
* Build minimal, no-JS friendly markup
|
|
13
|
+
*/
|
|
14
|
+
static buildMarkup({ enableEsc, safeUrl, }: {
|
|
15
|
+
enableEsc: any;
|
|
16
|
+
safeUrl: any;
|
|
17
|
+
}): HTMLAnchorElement;
|
|
18
|
+
static buildKeyboardHint(id?: string): HTMLSpanElement;
|
|
19
|
+
/**
|
|
20
|
+
* Progressive enhancement (click logic, keyboard, cloak, focus)
|
|
21
|
+
*/
|
|
22
|
+
static enhance(root: any, { safeUrl, enableEsc, enableCloak, focusFirst, }: {
|
|
23
|
+
safeUrl: any;
|
|
24
|
+
enableEsc: any;
|
|
25
|
+
enableCloak: any;
|
|
26
|
+
focusFirst: any;
|
|
27
|
+
}): void;
|
|
28
|
+
static bindDoubleEsc(callback: any): void;
|
|
29
|
+
static ensureSrOnlyMessage(enableEsc?: boolean): void;
|
|
30
|
+
static updatePageTitle(): void;
|
|
31
|
+
static applyCloak(): void;
|
|
32
|
+
static focusFirst(node: any): void;
|
|
33
|
+
static getOptionsFromElement(root: any): {
|
|
34
|
+
safeUrl: any;
|
|
35
|
+
enableEsc: any;
|
|
36
|
+
enableCloak: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Enhance any existing server-rendered Quick Exit elements.
|
|
40
|
+
*/
|
|
41
|
+
static autoInit(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export default Select;
|
|
2
|
+
declare class Select {
|
|
3
|
+
static createSafeCss(str: any): string;
|
|
4
|
+
static parseMaxHeight(value: any): number | null;
|
|
5
|
+
static moveFocusFn(element: any): void;
|
|
6
|
+
constructor(element: any);
|
|
7
|
+
element: any;
|
|
8
|
+
select: any;
|
|
9
|
+
optGroups: any;
|
|
10
|
+
options: any;
|
|
11
|
+
selectId: any;
|
|
12
|
+
trigger: boolean;
|
|
13
|
+
dropdown: boolean;
|
|
14
|
+
customOptions: boolean;
|
|
15
|
+
listScroll: boolean;
|
|
16
|
+
allButton: boolean;
|
|
17
|
+
clearAllControl: boolean;
|
|
18
|
+
liveRegion: boolean;
|
|
19
|
+
trapFocusHandler: ((event: any) => void) | null;
|
|
20
|
+
arrowIcon: any;
|
|
21
|
+
label: Element | null;
|
|
22
|
+
selectedOptCounter: number;
|
|
23
|
+
optionIndex: number;
|
|
24
|
+
noSelectText: any;
|
|
25
|
+
multiSelectText: any;
|
|
26
|
+
nMultiSelect: any;
|
|
27
|
+
allText: any;
|
|
28
|
+
clearAllText: any;
|
|
29
|
+
clearAllStatusText: any;
|
|
30
|
+
optionText: any;
|
|
31
|
+
optionsText: any;
|
|
32
|
+
allSelectedText: any;
|
|
33
|
+
allDeselectedText: any;
|
|
34
|
+
noUpdateLabel: any;
|
|
35
|
+
insetLabel: any;
|
|
36
|
+
hideClass: string;
|
|
37
|
+
showClass: string;
|
|
38
|
+
errorClass: string;
|
|
39
|
+
srClass: string;
|
|
40
|
+
prefix: string;
|
|
41
|
+
class: string;
|
|
42
|
+
buttonClass: string;
|
|
43
|
+
allButtonClass: string;
|
|
44
|
+
listClass: string;
|
|
45
|
+
listScrollClass: string;
|
|
46
|
+
optionClass: string;
|
|
47
|
+
dropdownClass: string;
|
|
48
|
+
checkboxClass: string;
|
|
49
|
+
itemClass: string;
|
|
50
|
+
labelClass: string;
|
|
51
|
+
termClass: string;
|
|
52
|
+
detailsClass: string;
|
|
53
|
+
selectClass: string;
|
|
54
|
+
checkboxLabelClass: string;
|
|
55
|
+
checkboxInputClass: string;
|
|
56
|
+
liveRegionClass: string;
|
|
57
|
+
maxHeight: any;
|
|
58
|
+
init(): void;
|
|
59
|
+
initCustomSelectEvents(): void;
|
|
60
|
+
toggleCustomSelect(bool: any): void;
|
|
61
|
+
placeDropdown(): void;
|
|
62
|
+
resetListScroll(): void;
|
|
63
|
+
resetDropdownScroll(): void;
|
|
64
|
+
keyboardCustomSelect(direction: any, event: any): void;
|
|
65
|
+
toggleAllButton(): void;
|
|
66
|
+
initSelection(): void;
|
|
67
|
+
selectOption(option: any, isSelected: any): void;
|
|
68
|
+
updateSelectionSummary(): void;
|
|
69
|
+
updateAllButton(): void;
|
|
70
|
+
clearAllButton(): void;
|
|
71
|
+
updateClearAllButton(): void;
|
|
72
|
+
clearAllSelections(): void;
|
|
73
|
+
updateNativeSelect(index: any, bool: any): void;
|
|
74
|
+
updateTriggerAria(ariaLabel: any): void;
|
|
75
|
+
getSelectedOptionText(): any[];
|
|
76
|
+
initButtonSelect(): string;
|
|
77
|
+
initListSelect(): string;
|
|
78
|
+
initAllButton(): string;
|
|
79
|
+
initLiveRegion(): void;
|
|
80
|
+
updateLiveRegion(message: any): void;
|
|
81
|
+
updateAllButtonAria(isPressed: any): void;
|
|
82
|
+
getSelectLabelSR(): string;
|
|
83
|
+
getOptionsList(options: any): string;
|
|
84
|
+
getOptions(): any[];
|
|
85
|
+
moveFocusToSelectTrigger(): void;
|
|
86
|
+
addTrapFocus(): void;
|
|
87
|
+
removeTrapFocus(): void;
|
|
88
|
+
checkCustomSelectClick(target: any): void;
|
|
89
|
+
}
|