ids-enterprise-typings 15.4.0 → 15.4.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/index.d.ts +1 -0
- package/lib/accordion/soho-accordion.d.ts +106 -11
- package/lib/application-menu/soho-application-menu.d.ts +12 -0
- package/lib/button/soho-button.d.ts +1 -1
- package/lib/card/soho-card.d.ts +18 -0
- package/lib/datagrid/soho-datagrid.d.ts +6 -1
- package/lib/dropdown/soho-dropdown.d.ts +18 -1
- 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 +79 -0
- package/lib/module-nav/soho-module-nav.d.ts +76 -0
- package/lib/popupmenu/soho-popupmenu.d.ts +6 -0
- package/lib/tooltip/soho-tooltip.d.ts +1 -1
- package/lib/week-view/soho-week-view.d.ts +13 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
/// <reference path='lib/menu-button/soho-menu-button.d.ts' />
|
|
55
55
|
/// <reference path='lib/message/soho-message.d.ts' />
|
|
56
56
|
/// <reference path='lib/modal-dialog/soho-modal-dialog.d.ts' />
|
|
57
|
+
/// <reference path='lib/module-nav/index.d.ts' />
|
|
57
58
|
/// <reference path='lib/monthview/soho-monthview.d.ts' />
|
|
58
59
|
/// <reference path='lib/notification/soho-notification.d.ts' />
|
|
59
60
|
/// <reference path='lib/notification-badge/soho-notification-badge.d.ts' />
|
|
@@ -8,10 +8,56 @@
|
|
|
8
8
|
|
|
9
9
|
type SohoAccordionExpanderType = 'classic' | 'plus-minus' | 'chevron';
|
|
10
10
|
|
|
11
|
+
type SohoAccordionDefaultFocusBehaviorCallback = () => void;
|
|
12
|
+
|
|
13
|
+
type SohoAccordionHeaderGroup = any; // JQuery<HTMLElement>
|
|
14
|
+
|
|
15
|
+
type SohoAccordionHeaderExpanderButtonGroup = any; // JQuery<HTMLElement>
|
|
16
|
+
|
|
17
|
+
type SohoAccordionHeaderAnchorGroup = any; // JQuery<HTMLElement>
|
|
18
|
+
|
|
19
|
+
type SohoAccordionHeaderAnyGroup = SohoAccordionHeaderGroup | SohoAccordionHeaderExpanderButtonGroup | SohoAccordionHeaderAnchorGroup;
|
|
20
|
+
|
|
21
|
+
type SohoAccordionNavDirection = 0 | -1 | 1;
|
|
22
|
+
|
|
11
23
|
/**
|
|
12
|
-
* Soho Accordion
|
|
13
|
-
|
|
24
|
+
* Soho Accordion data representation types
|
|
25
|
+
* These can be used to work with the results of `.toData()`
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
type SohoAccordionData = Array<SohoAccordionSectionData> | Array<SohoAccordionHeaderData>;
|
|
29
|
+
|
|
30
|
+
type SohoAccordionSectionData = {
|
|
31
|
+
index: string,
|
|
32
|
+
type: 'section',
|
|
33
|
+
children?: Array<SohoAccordionHeaderData | SohoAccordionContentData>,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type SohoAccordionContentData = {
|
|
37
|
+
index: string,
|
|
38
|
+
type: 'content',
|
|
39
|
+
content?: string,
|
|
40
|
+
contentText?: string
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type SohoAccordionHeaderData = {
|
|
44
|
+
index: string,
|
|
45
|
+
type: 'header',
|
|
46
|
+
text?: string,
|
|
47
|
+
icon?: string,
|
|
48
|
+
children?: Array<SohoAccordionHeaderData | SohoAccordionContentData>
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Soho Accordion Control Options
|
|
53
|
+
*/
|
|
14
54
|
interface SohoAccordionOptions {
|
|
55
|
+
/**
|
|
56
|
+
* Provides a mechanism for controlling the behavior of accordion header focus.
|
|
57
|
+
* By default, the built-in behavior is used (ability to focus headers/expanders independently).
|
|
58
|
+
*/
|
|
59
|
+
accordionFocusCallback?: (header: JQuery<HTMLElement>, defaultFocusBehaviorCallback?: SohoAccordionDefaultFocusBehaviorCallback) => void;
|
|
60
|
+
|
|
15
61
|
/**
|
|
16
62
|
* If set to true, allows only one pane of the Accordion to be open at a time.
|
|
17
63
|
* If an Accordion pane is open, and that pane contains sub-headers,
|
|
@@ -68,22 +114,26 @@ interface SohoAccordionOptions {
|
|
|
68
114
|
}
|
|
69
115
|
|
|
70
116
|
/**
|
|
71
|
-
* This interface represents the public API exposed by the
|
|
72
|
-
* busy indicator.
|
|
117
|
+
* This interface represents the public API exposed by the Soho Accordion
|
|
73
118
|
*/
|
|
74
119
|
interface SohoAccordionStatic {
|
|
75
120
|
/** Access to the control's options block. */
|
|
76
121
|
settings: SohoAccordionOptions;
|
|
77
122
|
|
|
123
|
+
/** Calls the `source` method passed via settings */
|
|
124
|
+
callSource(anchor: SohoAccordionHeaderAnchorGroup, animationCallback: () => void): void;
|
|
125
|
+
|
|
78
126
|
/** Collapses all panels. */
|
|
79
127
|
collapseAll(): void;
|
|
80
128
|
|
|
81
129
|
/** Expands all panels. */
|
|
82
130
|
expandAll(): void;
|
|
83
131
|
|
|
84
|
-
|
|
132
|
+
/** Expands one or a group of panels */
|
|
133
|
+
expand(header: SohoAccordionHeaderGroup | string): void;
|
|
85
134
|
|
|
86
|
-
|
|
135
|
+
/** Collapses one or a group of panels */
|
|
136
|
+
collapse(header: SohoAccordionHeaderGroup | string): void;
|
|
87
137
|
|
|
88
138
|
/** Disables the accordion from reacting to events. */
|
|
89
139
|
disable(): void;
|
|
@@ -92,18 +142,63 @@ interface SohoAccordionStatic {
|
|
|
92
142
|
enable(): void;
|
|
93
143
|
|
|
94
144
|
/** Checks if a particular header is disabled, or if the entire accordion is disabled. */
|
|
95
|
-
isDisabled(
|
|
145
|
+
isDisabled(header: SohoAccordionHeaderGroup): boolean;
|
|
96
146
|
|
|
97
147
|
/** Checks if an Accordion Section is currently expanded. */
|
|
98
|
-
isExpanded(
|
|
148
|
+
isExpanded(header: SohoAccordionHeaderGroup): boolean;
|
|
99
149
|
|
|
100
150
|
/** Toggles the exanded state of the selected header. */
|
|
101
|
-
toggle(
|
|
151
|
+
toggle(header: SohoAccordionHeaderGroup): boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Gets the current contents of this accordion and creates a JSON-like representation of the structure.
|
|
155
|
+
* For full JSON compatibility, don't use the `addElementReference` flag.
|
|
156
|
+
**/
|
|
157
|
+
toData(flatten?: boolean, addElementReference?: boolean): SohoAccordionData;
|
|
158
|
+
|
|
159
|
+
/** Makes an accordion header appear with a "selected" state */
|
|
160
|
+
select(element?: SohoAccordionHeaderAnyGroup): void;
|
|
161
|
+
|
|
162
|
+
/** Gets a reference to currently-selected accordion headers */
|
|
163
|
+
getSelected(): SohoAccordionHeaderGroup;
|
|
164
|
+
|
|
165
|
+
/** Determines if an Accordion Header is disabled */
|
|
166
|
+
isDisabled(header: SohoAccordionHeaderGroup): boolean;
|
|
167
|
+
|
|
168
|
+
/** "Visually" filters accordion headers (elements are not added/removed but temporarily hidden by CSS if filtered out) */
|
|
169
|
+
filter(headers?: SohoAccordionHeaderGroup): void;
|
|
170
|
+
|
|
171
|
+
/** Resets a previously-applied filter */
|
|
172
|
+
unfilter(headers?: SohoAccordionHeaderGroup): void;
|
|
173
|
+
|
|
174
|
+
/** Determines if an Accordion Header is currently visually filtered out */
|
|
175
|
+
isFiltered(header: SohoAccordionHeaderGroup): boolean;
|
|
176
|
+
|
|
177
|
+
/** Determines if animation is currently happening on accordion panes (controls some behavior internally) */
|
|
178
|
+
isAnimating: boolean;
|
|
179
|
+
|
|
180
|
+
/** Programmatically navigates to the next-available accordion header (down) */
|
|
181
|
+
nextHeader(element: SohoAccordionHeaderAnyGroup, noDescend?: boolean): void;
|
|
182
|
+
|
|
183
|
+
/** Programmatically navigates to the previous-available accordion header (up) */
|
|
184
|
+
prevHeader(element: SohoAccordionHeaderAnyGroup, noDescend?: boolean): void;
|
|
185
|
+
|
|
186
|
+
/** Programmatically navigates to the next-available accordion header (down) */
|
|
187
|
+
ascend(element: SohoAccordionHeaderGroup, direction?: SohoAccordionNavDirection): void;
|
|
188
|
+
|
|
189
|
+
/** Programmatically navigates to the previous-available accordion header (up) */
|
|
190
|
+
descend(element: SohoAccordionHeaderGroup, direction?: SohoAccordionNavDirection): void;
|
|
191
|
+
|
|
192
|
+
/** Programmatically focuses the correct element within an accordion header (based on previously-focused elements) */
|
|
193
|
+
focusOriginalType(header: SohoAccordionHeaderGroup): void;
|
|
102
194
|
|
|
103
195
|
/** Updates the accordion with any new settings. */
|
|
104
|
-
updated(headers?:
|
|
196
|
+
updated(headers?: SohoAccordionHeaderGroup, settings?: SohoAccordionOptions): void;
|
|
197
|
+
|
|
198
|
+
/** Performs a teardown of the jQuery component API (does not remove the component instance) */
|
|
199
|
+
teardown(): void;
|
|
105
200
|
|
|
106
|
-
/** Destroys the control on completion. */
|
|
201
|
+
/** Destroys the control on completion. (Tears down and removes the component instance) */
|
|
107
202
|
destroy(): void;
|
|
108
203
|
}
|
|
109
204
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
2
|
+
/// <reference path='../searchfield/soho-searchfield.d.ts' />
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Soho Application Menu.
|
|
3
6
|
*
|
|
@@ -63,6 +66,15 @@ interface SohoApplicationMenuStatic {
|
|
|
63
66
|
/** Control settings. */
|
|
64
67
|
settings: SohoApplicationMenuOptions;
|
|
65
68
|
|
|
69
|
+
/** Accordion element */
|
|
70
|
+
accordionEl: HTMLElement;
|
|
71
|
+
|
|
72
|
+
/** Searchfield element, if present */
|
|
73
|
+
searchEl?: HTMLElement | null;
|
|
74
|
+
|
|
75
|
+
/** Searchfield API, if present */
|
|
76
|
+
searchAPI?: SohoSearchFieldStatic;
|
|
77
|
+
|
|
66
78
|
/**
|
|
67
79
|
* Opens the application menu.
|
|
68
80
|
*
|
package/lib/card/soho-card.d.ts
CHANGED
|
@@ -37,6 +37,24 @@ interface SohoCardOptions {
|
|
|
37
37
|
|
|
38
38
|
/** Add extra attributes like id's to the component */
|
|
39
39
|
attributes?: Array<Object> | Object;
|
|
40
|
+
|
|
41
|
+
/** Ability to add bordered or boreder-less styles to the card element. */
|
|
42
|
+
bordered?: boolean | null | string;
|
|
43
|
+
|
|
44
|
+
/** Determine wheter the card header should be displayed or not. */
|
|
45
|
+
noHeader?: boolean;
|
|
46
|
+
|
|
47
|
+
/** The padding left and right of the content of the card element. It will generate the css utlity classes for paddings. */
|
|
48
|
+
contentPaddingX?: number | null;
|
|
49
|
+
|
|
50
|
+
/** The padding top and bottom of the content of the card element. It will generate the css utlity classes for paddings. */
|
|
51
|
+
contentPaddingY?: number | null;
|
|
52
|
+
|
|
53
|
+
/** Ability to remove the shadow of the card element. */
|
|
54
|
+
noShadow?: boolean;
|
|
55
|
+
|
|
56
|
+
/** The id of the detail element that will be used to display the detail content. */
|
|
57
|
+
detailRefId?: string;
|
|
40
58
|
}
|
|
41
59
|
|
|
42
60
|
/**
|
|
@@ -1282,13 +1282,18 @@ interface SohoDataGridStatic {
|
|
|
1282
1282
|
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Sets the status of a given row in the grid.
|
|
1285
|
-
*
|
|
1286
1285
|
* @param idx - the row number (idx) of the row
|
|
1287
1286
|
* @param status - status class name e.g. 'error'
|
|
1288
1287
|
* @param tooltip - string value for tooltip message e.g. 'Error'
|
|
1289
1288
|
*/
|
|
1290
1289
|
rowStatus(idx: number, status: string, tooltip: string): void;
|
|
1291
1290
|
|
|
1291
|
+
/**
|
|
1292
|
+
* Search a term across all columns and highlight it
|
|
1293
|
+
* @param term - the search term
|
|
1294
|
+
*/
|
|
1295
|
+
keywordSearch(term: string): void;
|
|
1296
|
+
|
|
1292
1297
|
/**
|
|
1293
1298
|
* Return an array containing all of the currently modified rows, the type of modification
|
|
1294
1299
|
* and the cells that are dirty and the data.
|
|
@@ -27,6 +27,16 @@ interface SohoDropDownOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
cssClass?: string;
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Controls the style of the icon representing the Dropdown's "open/close" functionality.
|
|
32
|
+
*/
|
|
33
|
+
dropdownIcon?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* If true, adds an extra wrapping element in the Dropdown List (in some situations used for styling/scrolling behavior changes)
|
|
37
|
+
*/
|
|
38
|
+
extraListWrapper?: boolean;
|
|
39
|
+
|
|
30
40
|
/**
|
|
31
41
|
* Search mode to use between 'contains', 'keyword', 'wordStartsWith', 'phraseStartsWith false will not allow client side filter
|
|
32
42
|
*/
|
|
@@ -123,6 +133,11 @@ interface SohoDropDownOptions {
|
|
|
123
133
|
*/
|
|
124
134
|
width?: number;
|
|
125
135
|
|
|
136
|
+
/**
|
|
137
|
+
* CSS selector representing an element that the Dropdown component can use to define the list's width
|
|
138
|
+
*/
|
|
139
|
+
widthTarget?: string;
|
|
140
|
+
|
|
126
141
|
/**
|
|
127
142
|
* Show the select all text/option.
|
|
128
143
|
*/
|
|
@@ -217,7 +232,9 @@ interface SohoDropDownStatic {
|
|
|
217
232
|
*/
|
|
218
233
|
disable(): void;
|
|
219
234
|
|
|
220
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* Enable the control.
|
|
237
|
+
*/
|
|
221
238
|
enable(): void;
|
|
222
239
|
|
|
223
240
|
/**
|
|
@@ -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,79 @@
|
|
|
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;
|
|
13
|
+
|
|
14
|
+
/** Defines options present in the Soho Module Nav Switcher */
|
|
15
|
+
interface SohoModuleNavSwitcherOptions {
|
|
16
|
+
displayMode?: SohoModuleNavDisplayMode;
|
|
17
|
+
icon?: SohoModuleNavSwitcherIconSetting;
|
|
18
|
+
roles?: Array<SohoModuleNavSwitcherRoleRecord>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Public API for Soho Module Nav Switcher JS component */
|
|
22
|
+
interface SohoModuleNavSwitcherStatic {
|
|
23
|
+
/** Module Nav Switcher's current settings */
|
|
24
|
+
settings: SohoModuleNavSwitcherOptions;
|
|
25
|
+
|
|
26
|
+
/** Reference to jQuery-wrapped HTML Element representing the Soho Accordion */
|
|
27
|
+
accordionEl?: HTMLElement;
|
|
28
|
+
|
|
29
|
+
/** Reference to a Soho Accordion API, if one is available */
|
|
30
|
+
accordionAPI?: SohoAccordionStatic;
|
|
31
|
+
|
|
32
|
+
/** Reference to container element */
|
|
33
|
+
containerEl?: HTMLElement;
|
|
34
|
+
|
|
35
|
+
/** Reference to the Module Button's Container Element */
|
|
36
|
+
moduleButtonContainerEl?: HTMLElement;
|
|
37
|
+
|
|
38
|
+
/** Reference to the Module Button element */
|
|
39
|
+
moduleButtonEl?: HTMLElement;
|
|
40
|
+
|
|
41
|
+
/** Reference to the Module Button's Soho Button API, if one is available */
|
|
42
|
+
moduleButtonAPI?: SohoButtonStatic;
|
|
43
|
+
|
|
44
|
+
/** Reference to the Role Dropdown's container element */
|
|
45
|
+
roleDropdownContainerEl?: HTMLElement;
|
|
46
|
+
|
|
47
|
+
/** Reference to the Role Dropdown's element */
|
|
48
|
+
roleDropdownEl?: HTMLElement;
|
|
49
|
+
|
|
50
|
+
/** Reference to the Module Button's Soho Button API, if one is available */
|
|
51
|
+
roleDropdownAPI?: SohoButtonStatic;
|
|
52
|
+
|
|
53
|
+
/** Initializes the jQuery component */
|
|
54
|
+
init(): void;
|
|
55
|
+
|
|
56
|
+
/** Changes the Module Nav Switcher's Display Mode */
|
|
57
|
+
setDisplayMode(val?: SohoModuleNavDisplayMode): void;
|
|
58
|
+
|
|
59
|
+
/** Sets visible */
|
|
60
|
+
setRoles(val?: SohoModuleNavSwitcherRoleRecord[], doUpdate?: boolean): void;
|
|
61
|
+
|
|
62
|
+
/** Re-renders jQuery child component APIs */
|
|
63
|
+
renderChildComponents(): void;
|
|
64
|
+
|
|
65
|
+
/** Tear down the markup for the control */
|
|
66
|
+
teardown(): void;
|
|
67
|
+
|
|
68
|
+
/** Updates the Module Nav Switcher with any new settings */
|
|
69
|
+
updated(newSettings?: SohoModuleNavSwitcherOptions): void;
|
|
70
|
+
|
|
71
|
+
/** Destroys the control on completion. */
|
|
72
|
+
destroy(): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** jQuery interface for Module Nav Switcher */
|
|
76
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
77
|
+
modulenavswitcher(options?: SohoModuleNavSwitcherOptions): JQuery;
|
|
78
|
+
on(events: 'updated', handler: JQuery.EventHandlerBase<any, SohoModuleNavSwitcherOptions>): this;
|
|
79
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/// <reference path='./soho-module-nav-common.d.ts' />
|
|
2
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
3
|
+
|
|
4
|
+
/** Defines options present in the Soho Module Nav */
|
|
5
|
+
interface SohoModuleNavOptions {
|
|
6
|
+
displayMode?: SohoModuleNavDisplayMode;
|
|
7
|
+
filterable?: boolean;
|
|
8
|
+
pinSections?: boolean;
|
|
9
|
+
showDetailView?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Public API for Soho Module Nav JS component */
|
|
13
|
+
interface SohoModuleNavStatic {
|
|
14
|
+
/** Module Nav's current settings */
|
|
15
|
+
settings: SohoModuleNavOptions;
|
|
16
|
+
|
|
17
|
+
/** Reference to element representing accordion, if one is available */
|
|
18
|
+
accordionEl?: HTMLElement;
|
|
19
|
+
|
|
20
|
+
/** Reference to a Soho Accordion API, if one is available */
|
|
21
|
+
accordionAPI?: SohoAccordionStatic;
|
|
22
|
+
|
|
23
|
+
/** Reference to element representing searchfield, if one is available */
|
|
24
|
+
searchEl?: HTMLElement;
|
|
25
|
+
|
|
26
|
+
/** Reference to a Soho SearchField API, if one is available */
|
|
27
|
+
searchAPI?: SohoSearchFieldStatic;
|
|
28
|
+
|
|
29
|
+
/** Reference to element representing settings button, if one is available */
|
|
30
|
+
settingsEl?: HTMLElement;
|
|
31
|
+
|
|
32
|
+
/** Reference to a Soho Module Nav Settings API, if one is available */
|
|
33
|
+
settingAPI?: SohoModuleNavSettingsStatic;
|
|
34
|
+
|
|
35
|
+
/** Reference to a Soho Module Nav Switcher container element, if one is available */
|
|
36
|
+
switcherEl?: HTMLElement;
|
|
37
|
+
|
|
38
|
+
/** Reference to a Soho Module Nav Settings API, if one is available */
|
|
39
|
+
switcherAPI?: SohoModuleNavSwitcherStatic;
|
|
40
|
+
|
|
41
|
+
/** Misc. references to specific sections/elements */
|
|
42
|
+
containerEl?: HTMLElement;
|
|
43
|
+
detailViewEl?: HTMLElement;
|
|
44
|
+
itemMenuEl?: HTMLElement;
|
|
45
|
+
footerEl?: HTMLElement;
|
|
46
|
+
|
|
47
|
+
/** Initializes the jQuery component */
|
|
48
|
+
init(): void;
|
|
49
|
+
|
|
50
|
+
/** Changes the Module Nav's Display Mode */
|
|
51
|
+
setDisplayMode(val?: SohoModuleNavDisplayMode): void;
|
|
52
|
+
|
|
53
|
+
/** Enables (true)/Disables (false) optional pinning of header/footer Module Nav regions */
|
|
54
|
+
setPinSections(val?: boolean): void;
|
|
55
|
+
|
|
56
|
+
/** Updates accordion section scroll state based on size changes */
|
|
57
|
+
setScrollable(): void;
|
|
58
|
+
|
|
59
|
+
/** Enables (true)/Disables (false) visibility of detail view pane used for sub modules */
|
|
60
|
+
setShowDetailView(val: boolean): void;
|
|
61
|
+
|
|
62
|
+
/** Tear down the markup for the control */
|
|
63
|
+
teardown(): void;
|
|
64
|
+
|
|
65
|
+
/** Updates the Module Nav with any new settings */
|
|
66
|
+
updated(newSettings?: SohoModuleNavOptions): void;
|
|
67
|
+
|
|
68
|
+
/** Destroys the control on completion. */
|
|
69
|
+
destroy(): void;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** jQuery interface for Module Nav */
|
|
73
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
74
|
+
modulenav(options?: SohoModuleNavOptions): JQuery;
|
|
75
|
+
on(events: 'updated', handler: JQuery.EventHandlerBase<any, SohoModuleNavOptions>): this;
|
|
76
|
+
}
|
|
@@ -57,6 +57,9 @@ interface SohoPopupMenuOptions {
|
|
|
57
57
|
|
|
58
58
|
/** Add extra attributes like id's to the component **/
|
|
59
59
|
attributes?: Array<Object> | Object;
|
|
60
|
+
|
|
61
|
+
/** Appends an optional css class to `.popupmenu-wrapper/popupmenu` elements */
|
|
62
|
+
cssClass?: string | null;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
/**
|
|
@@ -75,6 +78,9 @@ interface SohoPopupMenuStatic {
|
|
|
75
78
|
/** Configuration options. */
|
|
76
79
|
settings?: SohoPopupMenuOptions;
|
|
77
80
|
|
|
81
|
+
/** Gets the Popupmenu's ID string (can be used to query the DOM for the menu element) */
|
|
82
|
+
idString: string | undefined;
|
|
83
|
+
|
|
78
84
|
/** Returns the selected html element. */
|
|
79
85
|
getSelected(): any;
|
|
80
86
|
|
|
@@ -34,6 +34,13 @@ interface SohoWeekViewEventType {
|
|
|
34
34
|
translationKey: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
interface SohoWeekViewDayMap {
|
|
38
|
+
key?: string;
|
|
39
|
+
elem?: HTMLElement;
|
|
40
|
+
footer?: HTMLElement;
|
|
41
|
+
events?: SohoWeekViewEvent[];
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
interface SohoWeekViewEvent {
|
|
38
45
|
id?: string;
|
|
39
46
|
title?: string;
|
|
@@ -92,6 +99,10 @@ interface SohoWeekViewOptions {
|
|
|
92
99
|
filteredTypes?: [];
|
|
93
100
|
events?: SohoWeekViewEvent[];
|
|
94
101
|
locale?: string;
|
|
102
|
+
stacked?: boolean;
|
|
103
|
+
showFooter?: boolean;
|
|
104
|
+
responsive?: boolean;
|
|
105
|
+
hideToolbar?: boolean;
|
|
95
106
|
showAllDay?: boolean;
|
|
96
107
|
showToday?: boolean;
|
|
97
108
|
showViewChanger?: boolean;
|
|
@@ -113,6 +124,8 @@ interface SohoWeekViewOptions {
|
|
|
113
124
|
interface SohoWeekView {
|
|
114
125
|
settings: SohoWeekViewOptions;
|
|
115
126
|
|
|
127
|
+
dayMap: SohoWeekViewDayMap[];
|
|
128
|
+
|
|
116
129
|
/**
|
|
117
130
|
* Get the current selected date on the Weekview.
|
|
118
131
|
* @returns the currently selected date on the control.
|