ids-enterprise-typings 14.4.6 → 14.4.8-patch.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.
- package/lib/arrange/soho-arrange.d.ts +24 -0
- package/lib/fieldset/soho-fieldset.d.ts +24 -0
- package/lib/module-nav/index.d.ts +4 -0
- package/lib/module-nav/soho-module-nav-common.d.ts +12 -0
- package/lib/module-nav/soho-module-nav-settings.d.ts +53 -0
- package/lib/module-nav/soho-module-nav-switcher.d.ts +95 -0
- package/lib/module-nav/soho-module-nav.d.ts +100 -0
- package/lib/timeline/soho-timeline.d.ts +30 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface SohoArrangeOptions {
|
|
2
|
+
handle?: string; // The CSS class name of the handle element to connect.
|
|
3
|
+
itemsSelector?: string; // The CSS selector to match all the sortable elements.
|
|
4
|
+
connectWith?: boolean; // Optional CSS Selector to connect with when using two lists.
|
|
5
|
+
isVisualItems?: boolean; // Use only index of visual items to trigger.
|
|
6
|
+
placeholder?: string; // The html for the element that appears while dragging.
|
|
7
|
+
placeholderCssClass?: string; // The class to add to the ghost element that is being dragged.
|
|
8
|
+
useItemDimensions?: boolean; // If true, use item's dimensions to placeholder.
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface SohoArrangeStatic {
|
|
12
|
+
settings: SohoArrangeOptions;
|
|
13
|
+
updated: Function;
|
|
14
|
+
destroy: Function;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
18
|
+
arrange(options?: SohoArrangeOptions): JQuery;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface SohoArrangeEvent {
|
|
22
|
+
event: JQuery.TriggeredEvent;
|
|
23
|
+
status?: any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Field Options.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery Field Options control.
|
|
6
|
+
*
|
|
7
|
+
* Which has no options at this time.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
interface SohoFieldSetOptionStaticSettings {
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface SohoFieldSetOptionStatic {
|
|
15
|
+
/** Access to the control's options block. */
|
|
16
|
+
settings: SohoFieldSetOptionStaticSettings;
|
|
17
|
+
|
|
18
|
+
/** Destructor. */
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
23
|
+
fieldoptions(options?: SohoFieldSetOptionStaticSettings): JQuery;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Module Nav Common
|
|
3
|
+
*
|
|
4
|
+
* This file provides common types used by all Module Nav wrapper components
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Controls the visible state of the Module Nav component.
|
|
9
|
+
* In some cases this also has affects on child components and event handling
|
|
10
|
+
*/
|
|
11
|
+
type SohoModuleNavDisplayMode = false | 'collapsed' | 'expanded';
|
|
12
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference path='./soho-module-nav-common.d.ts' />
|
|
2
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
3
|
+
/// <reference path='../popupmenu/soho-popupmenu.d.ts' />
|
|
4
|
+
|
|
5
|
+
/** Defines options present in the Soho Module Nav Settings */
|
|
6
|
+
interface SohoModuleNavSettingsOptions {
|
|
7
|
+
displayMode?: SohoModuleNavDisplayMode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Public API for Soho Module Nav Settings JS component */
|
|
11
|
+
interface SohoModuleNavSettingsStatic {
|
|
12
|
+
/** Module Nav Switcher's current settings */
|
|
13
|
+
settings: SohoModuleNavSettingsOptions;
|
|
14
|
+
|
|
15
|
+
/** Reference to jQuery-wrapped HTML Element representing the Soho Accordion */
|
|
16
|
+
accordionEl?: HTMLElement;
|
|
17
|
+
|
|
18
|
+
/** Reference to a Soho Accordion API, if one is available */
|
|
19
|
+
accordionAPI?: SohoAccordionStatic;
|
|
20
|
+
|
|
21
|
+
/** References to specific sections/elements */
|
|
22
|
+
containerEl?: HTMLElement;
|
|
23
|
+
|
|
24
|
+
/** Reference to the element representing the settings button's menu */
|
|
25
|
+
menuEl?: HTMLElement;
|
|
26
|
+
|
|
27
|
+
/** Reference to the settings menu's Soho Popupmenu API, if one is available*/
|
|
28
|
+
menuAPI?: SohoPopupMenuStatic;
|
|
29
|
+
|
|
30
|
+
/** Initializes the jQuery component */
|
|
31
|
+
init(): void;
|
|
32
|
+
|
|
33
|
+
/** Changes the Module Nav Switcher's Display Mode */
|
|
34
|
+
setDisplayMode(val?: SohoModuleNavDisplayMode): void;
|
|
35
|
+
|
|
36
|
+
/** Re-renders jQuery child component APIs */
|
|
37
|
+
renderChildComponents(): void;
|
|
38
|
+
|
|
39
|
+
/** Tear down the markup for the control */
|
|
40
|
+
teardown(): void;
|
|
41
|
+
|
|
42
|
+
/** Updates the Module Nav Settings with any new settings */
|
|
43
|
+
updated(newSettings?: SohoModuleNavSettingsOptions): void;
|
|
44
|
+
|
|
45
|
+
/** Destroys the control on completion. */
|
|
46
|
+
destroy(): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** jQuery interface for Module Nav Settings */
|
|
50
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
51
|
+
modulenavsettings(options?: SohoModuleNavSettingsOptions): JQuery;
|
|
52
|
+
on(events: 'updated', handler: JQuery.EventHandlerBase<any, SohoModuleNavSettingsOptions>): this;
|
|
53
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/// <reference path='./soho-module-nav-common.d.ts' />
|
|
2
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
3
|
+
/// <reference path='../button/soho-button.d.ts' />
|
|
4
|
+
/// <reference path='../dropdown/soho-dropdown.d.ts' />
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** Defines a Module Nav Switcher Role Record
|
|
8
|
+
* (Takes the same arguments as items present in the Soho Dropdown JSON notation)
|
|
9
|
+
*/
|
|
10
|
+
type SohoModuleNavSwitcherRoleRecord = Record<string, unknown>;
|
|
11
|
+
|
|
12
|
+
type SohoModuleNavSwitcherIconSetting = string | ((api: SohoModuleNavSwitcherStatic) => string) | undefined | false;
|
|
13
|
+
|
|
14
|
+
/** Defines options present in the Soho Module Nav Switcher */
|
|
15
|
+
interface SohoModuleNavSwitcherOptions {
|
|
16
|
+
displayMode?: SohoModuleNavDisplayMode;
|
|
17
|
+
generate?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
icon?: SohoModuleNavSwitcherIconSetting;
|
|
20
|
+
moduleButtonText?: string;
|
|
21
|
+
roleDropdownLabel?: string;
|
|
22
|
+
changeIconOnSelect?: boolean;
|
|
23
|
+
noSearch?: boolean;
|
|
24
|
+
roles?: Array<SohoModuleNavSwitcherRoleRecord>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Public API for Soho Module Nav Switcher JS component */
|
|
28
|
+
interface SohoModuleNavSwitcherStatic {
|
|
29
|
+
/** Module Nav Switcher's current settings */
|
|
30
|
+
settings: SohoModuleNavSwitcherOptions;
|
|
31
|
+
|
|
32
|
+
/** Reference to jQuery-wrapped HTML Element representing the Soho Accordion */
|
|
33
|
+
accordionEl?: HTMLElement;
|
|
34
|
+
|
|
35
|
+
/** Reference to a Soho Accordion API, if one is available */
|
|
36
|
+
accordionAPI?: SohoAccordionStatic;
|
|
37
|
+
|
|
38
|
+
/** Reference to container element */
|
|
39
|
+
containerEl?: HTMLElement;
|
|
40
|
+
|
|
41
|
+
/** Reference to the Module Button's Container Element */
|
|
42
|
+
moduleButtonContainerEl?: HTMLElement;
|
|
43
|
+
|
|
44
|
+
/** Reference to the Module Button's Icon Element */
|
|
45
|
+
moduleButtonIconEl?: HTMLElement | SVGElement;
|
|
46
|
+
|
|
47
|
+
/** Reference to the Module Button element */
|
|
48
|
+
moduleButtonEl?: HTMLElement;
|
|
49
|
+
|
|
50
|
+
/** Reference to the Module Button's Soho Button API, if one is available */
|
|
51
|
+
moduleButtonAPI?: SohoButtonStatic;
|
|
52
|
+
|
|
53
|
+
/** Reference to the Role Dropdown's container element */
|
|
54
|
+
roleDropdownContainerEl?: HTMLElement;
|
|
55
|
+
|
|
56
|
+
/** Reference to the Role Dropdown's element */
|
|
57
|
+
roleDropdownEl?: HTMLElement;
|
|
58
|
+
|
|
59
|
+
/** Reference to the Module Button's Soho Button API, if one is available */
|
|
60
|
+
roleDropdownAPI?: SohoDropDownStatic;
|
|
61
|
+
|
|
62
|
+
/** Initializes the jQuery component */
|
|
63
|
+
init(): void;
|
|
64
|
+
|
|
65
|
+
/** Changes the Module Nav Switcher's Display Mode */
|
|
66
|
+
setDisplayMode(val?: SohoModuleNavDisplayMode): void;
|
|
67
|
+
|
|
68
|
+
/** Sets visible */
|
|
69
|
+
setRoles(val?: SohoModuleNavSwitcherRoleRecord[], doUpdate?: boolean): void;
|
|
70
|
+
|
|
71
|
+
/** Selects a role in the dropdown based on its value,
|
|
72
|
+
* keeping all Module Nav Switcher elements synced */
|
|
73
|
+
selectRole(val: string): void;
|
|
74
|
+
|
|
75
|
+
/** Re-renders jQuery child component APIs */
|
|
76
|
+
renderChildComponents(): void;
|
|
77
|
+
|
|
78
|
+
/** Changes the focus of the Module Button */
|
|
79
|
+
toggleModuleButtonFocus(doFocus?: boolean): void;
|
|
80
|
+
|
|
81
|
+
/** Tear down the markup for the control */
|
|
82
|
+
teardown(): void;
|
|
83
|
+
|
|
84
|
+
/** Updates the Module Nav Switcher with any new settings */
|
|
85
|
+
updated(newSettings?: SohoModuleNavSwitcherOptions): void;
|
|
86
|
+
|
|
87
|
+
/** Destroys the control on completion. */
|
|
88
|
+
destroy(): void;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** jQuery interface for Module Nav Switcher */
|
|
92
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
93
|
+
modulenavswitcher(options?: SohoModuleNavSwitcherOptions): JQuery;
|
|
94
|
+
on(events: 'updated', handler: JQuery.EventHandlerBase<any, SohoModuleNavSwitcherOptions>): this;
|
|
95
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference path='./soho-module-nav-common.d.ts' />
|
|
2
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
3
|
+
|
|
4
|
+
interface SohoModuleNavDisplayModeChangeEvent {
|
|
5
|
+
e: JQuery.TriggeredEvent,
|
|
6
|
+
val: SohoModuleNavDisplayMode
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type SohoModuleNavBreakPoint =
|
|
10
|
+
'phone' |
|
|
11
|
+
'slim' |
|
|
12
|
+
'phablet' |
|
|
13
|
+
'phone-to-tablet' |
|
|
14
|
+
'wide-tablet' |
|
|
15
|
+
'tablet-to-desktop' |
|
|
16
|
+
'desktop-to-extralarge' | undefined;
|
|
17
|
+
|
|
18
|
+
/** Defines options present in the Soho Module Nav */
|
|
19
|
+
interface SohoModuleNavOptions {
|
|
20
|
+
accordionSettings?: SohoAccordionOptions;
|
|
21
|
+
displayMode?: SohoModuleNavDisplayMode;
|
|
22
|
+
filterable?: boolean;
|
|
23
|
+
disableSwitcher?: boolean;
|
|
24
|
+
initChildren?: boolean;
|
|
25
|
+
pinSections?: boolean;
|
|
26
|
+
showDetailView?: boolean;
|
|
27
|
+
mobileBehavior?: boolean;
|
|
28
|
+
breakpoint?: SohoModuleNavBreakPoint,
|
|
29
|
+
showOverlay?: boolean;
|
|
30
|
+
showModuleSwitcher?: boolean;
|
|
31
|
+
showGuestSection?: boolean;
|
|
32
|
+
showSearchBar?: boolean;
|
|
33
|
+
enableOutsideClick?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Public API for Soho Module Nav JS component */
|
|
37
|
+
interface SohoModuleNavStatic {
|
|
38
|
+
/** Module Nav's current settings */
|
|
39
|
+
settings: SohoModuleNavOptions;
|
|
40
|
+
|
|
41
|
+
/** Reference to element representing accordion, if one is available */
|
|
42
|
+
accordionEl?: HTMLElement;
|
|
43
|
+
|
|
44
|
+
/** Reference to a Soho Accordion API, if one is available */
|
|
45
|
+
accordionAPI?: SohoAccordionStatic;
|
|
46
|
+
|
|
47
|
+
/** Reference to element representing searchfield, if one is available */
|
|
48
|
+
searchEl?: HTMLElement;
|
|
49
|
+
|
|
50
|
+
/** Reference to a Soho SearchField API, if one is available */
|
|
51
|
+
searchAPI?: SohoSearchFieldStatic;
|
|
52
|
+
|
|
53
|
+
/** Reference to element representing settings button, if one is available */
|
|
54
|
+
settingsEl?: HTMLElement;
|
|
55
|
+
|
|
56
|
+
/** Reference to a Soho Module Nav Settings API, if one is available */
|
|
57
|
+
settingAPI?: SohoModuleNavSettingsStatic;
|
|
58
|
+
|
|
59
|
+
/** Reference to a Soho Module Nav Switcher container element, if one is available */
|
|
60
|
+
switcherEl?: HTMLElement;
|
|
61
|
+
|
|
62
|
+
/** Reference to a Soho Module Nav Settings API, if one is available */
|
|
63
|
+
switcherAPI?: SohoModuleNavSwitcherStatic;
|
|
64
|
+
|
|
65
|
+
/** Misc. references to specific sections/elements */
|
|
66
|
+
containerEl?: HTMLElement;
|
|
67
|
+
detailViewEl?: HTMLElement;
|
|
68
|
+
itemMenuEl?: HTMLElement;
|
|
69
|
+
footerEl?: HTMLElement;
|
|
70
|
+
|
|
71
|
+
/** Initializes the jQuery component */
|
|
72
|
+
init(): void;
|
|
73
|
+
|
|
74
|
+
/** Changes the Module Nav's Display Mode */
|
|
75
|
+
setDisplayMode(val?: SohoModuleNavDisplayMode): void;
|
|
76
|
+
|
|
77
|
+
/** Enables (true)/Disables (false) optional pinning of header/footer Module Nav regions */
|
|
78
|
+
setPinSections(val?: boolean): void;
|
|
79
|
+
|
|
80
|
+
/** Updates accordion section scroll state based on size changes */
|
|
81
|
+
setScrollable(): void;
|
|
82
|
+
|
|
83
|
+
/** Enables (true)/Disables (false) visibility of detail view pane used for sub modules */
|
|
84
|
+
setShowDetailView(val: boolean): void;
|
|
85
|
+
|
|
86
|
+
/** Tear down the markup for the control */
|
|
87
|
+
teardown(): void;
|
|
88
|
+
|
|
89
|
+
/** Updates the Module Nav with any new settings */
|
|
90
|
+
updated(newSettings?: SohoModuleNavOptions): void;
|
|
91
|
+
|
|
92
|
+
/** Destroys the control on completion. */
|
|
93
|
+
destroy(): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** jQuery interface for Module Nav */
|
|
97
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
98
|
+
modulenav(options?: SohoModuleNavOptions): JQuery;
|
|
99
|
+
on(events: 'updated', handler: JQuery.EventHandlerBase<any, SohoModuleNavOptions>): this;
|
|
100
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Timeline.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery Timeline control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Timeline Options
|
|
10
|
+
*/
|
|
11
|
+
interface SohoTimelineOptions {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Timeline Api.
|
|
16
|
+
*/
|
|
17
|
+
interface SohoTimelineStatic {
|
|
18
|
+
/** The settings option */
|
|
19
|
+
settings: SohoTimelineOptions;
|
|
20
|
+
|
|
21
|
+
/** Updates the timeline with any new settings */
|
|
22
|
+
updated(settings?: SohoTimelineOptions): void;
|
|
23
|
+
|
|
24
|
+
/** Destroys the control on completion. */
|
|
25
|
+
destroy(): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
29
|
+
timeline(options?: SohoTimelineOptions): JQuery;
|
|
30
|
+
}
|