ids-enterprise-typings 18.6.0-dev.8 → 18.6.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/about/soho-about.d.ts +76 -0
- package/accordion/soho-accordion.d.ts +229 -0
- package/actionsheet/soho-actionsheet.d.ts +81 -0
- package/alert/soho-alert.d.ts +65 -0
- package/application-menu/soho-application-menu.d.ts +135 -0
- package/arrange/soho-arrange.d.ts +24 -0
- package/autocomplete/soho-autocomplete.d.ts +92 -0
- package/bar/soho-bar.d.ts +120 -0
- package/blockgrid/soho-blockgrid.d.ts +66 -0
- package/breadcrumb/soho-breadcrumb.d.ts +171 -0
- package/bullet/soho-bullet.d.ts +61 -0
- package/busyindicator/soho-busyindicator.d.ts +78 -0
- package/button/soho-button.d.ts +132 -0
- package/buttonset/soho-buttonset.d.ts +108 -0
- package/calendar/soho-calendar.d.ts +215 -0
- package/card/soho-card.d.ts +100 -0
- package/chart/soho-chart.d.ts +175 -0
- package/checkbox/soho-checkbox.d.ts +9 -0
- package/circlepager/soho-circlepager.d.ts +41 -0
- package/colorpicker/soho-colorpicker.d.ts +82 -0
- package/column/soho-column.d.ts +123 -0
- package/context-menu/soho-context-menu.d.ts +12 -0
- package/contextual-action-panel/soho-contextual-action-panel.d.ts +161 -0
- package/datagrid/soho-datagrid.d.ts +1686 -0
- package/datepicker/soho-datepicker.d.ts +266 -0
- package/drag/soho-drag.d.ts +38 -0
- package/dropdown/soho-dropdown.d.ts +287 -0
- package/editor/soho-editor.d.ts +111 -0
- package/emptymessage/soho-emptymessage.d.ts +122 -0
- package/error/soho-error.d.ts +47 -0
- package/expandablearea/soho-expandablearea.d.ts +71 -0
- package/field-filter/soho-field-filter.d.ts +69 -0
- package/field-options/soho-field-options.d.ts +24 -0
- package/fileupload/soho-fileupload.d.ts +45 -0
- package/fileupload-advanced/soho-fileupload-advanced.d.ts +89 -0
- package/form-compact/soho-form-compact.d.ts +30 -0
- package/header/soho-header.d.ts +65 -0
- package/hierarchy/soho-hierarchy.d.ts +136 -0
- package/homepage/soho-homepage.d.ts +118 -0
- package/hyperlink/soho-hyperlink.d.ts +11 -0
- package/input/soho-input.d.ts +9 -0
- package/input-validate/soho-input-validate.d.ts +45 -0
- package/lib/grid/soho-row.d.ts +5 -0
- package/lib/index.d.ts +92 -0
- package/lib/tag/phnx-tag.d.ts +49 -0
- package/line/soho-line.d.ts +101 -0
- package/listbuilder/soho-listbuilder.d.ts +55 -0
- package/listview/soho-listview.d.ts +150 -0
- package/locale/soho-locale.d.ts +150 -0
- package/lookup/soho-lookup.d.ts +251 -0
- package/mask/soho-mask.d.ts +213 -0
- package/menu-button/soho-menu-button.d.ts +21 -0
- package/message/soho-message.d.ts +94 -0
- package/modal-dialog/soho-modal-dialog.d.ts +246 -0
- package/module-nav/index.d.ts +4 -0
- package/module-nav/soho-module-nav-common.d.ts +12 -0
- package/module-nav/soho-module-nav-settings.d.ts +53 -0
- package/module-nav/soho-module-nav-switcher.d.ts +95 -0
- package/module-nav/soho-module-nav.d.ts +100 -0
- package/monthview/soho-monthview.d.ts +111 -0
- package/notification/soho-notification.d.ts +58 -0
- package/notification-badge/soho-notification-badge.d.ts +47 -0
- package/package.json +3 -5
- package/pager/soho-pager.d.ts +219 -0
- package/personalize/soho-personalize.d.ts +73 -0
- package/pie/soho-pie.d.ts +133 -0
- package/popdown/soho-popdown.d.ts +73 -0
- package/popupmenu/soho-popupmenu.d.ts +149 -0
- package/post-install.js +13 -0
- package/progress/soho-progress.d.ts +27 -0
- package/radar/soho-radar.d.ts +131 -0
- package/radiobutton/soho-radiobutton.d.ts +14 -0
- package/rating/soho-rating.d.ts +39 -0
- package/scripts/post-install.js +13 -0
- package/scripts/postinstall.js +13 -0
- package/searchfield/soho-searchfield.d.ts +118 -0
- package/slider/soho-slider.d.ts +110 -0
- package/soho.d.ts +94 -0
- package/sparkline/soho-sparkline.d.ts +59 -0
- package/spinbox/soho-spinbox.d.ts +32 -0
- package/splitter/soho-splitter.d.ts +84 -0
- package/stepchart/soho-stepchart.d.ts +26 -0
- package/stepprocess/soho-stepprocess.d.ts +108 -0
- package/swaplist/soho-swaplist.d.ts +127 -0
- package/swipe-action/soho-swipe-action.d.ts +28 -0
- package/tabs/soho-tabs.d.ts +181 -0
- package/tag/soho-tag.d.ts +52 -0
- package/textarea/soho-textarea.d.ts +76 -0
- package/timepicker/soho-timepicker.d.ts +82 -0
- package/toast/soho-toast.d.ts +64 -0
- package/toolbar/soho-toolbar.d.ts +182 -0
- package/toolbar-flex/soho-toolbar-flex.d.ts +276 -0
- package/tooltip/soho-tooltip.d.ts +68 -0
- package/trackdirty/soho-trackdirty.d.ts +20 -0
- package/tree/soho-tree.d.ts +275 -0
- package/treemap/soho-treemap.d.ts +59 -0
- package/utils/soho-utils.d.ts +67 -0
- package/week-view/soho-week-view.d.ts +163 -0
- package/wizard/soho-wizard.d.ts +111 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho About Dialog Control.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery about dialog control.
|
|
6
|
+
*
|
|
7
|
+
* Only the public interface consumable by the Angular
|
|
8
|
+
* Soho Component is included in this file.
|
|
9
|
+
*
|
|
10
|
+
* The corresponding Soho control can be found in about.js.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Soho About Dialog configuration options
|
|
15
|
+
*
|
|
16
|
+
* See the jQuery control for the defaults.
|
|
17
|
+
*/
|
|
18
|
+
interface SohoAboutOptions {
|
|
19
|
+
/** The Main Application Name to display in the heading */
|
|
20
|
+
appName?: string;
|
|
21
|
+
|
|
22
|
+
/** Additional Text content to display at the top of the about dialog */
|
|
23
|
+
content?: string;
|
|
24
|
+
|
|
25
|
+
/** The year displayed in the copyright, defaults to current year. */
|
|
26
|
+
copyrightYear?: string;
|
|
27
|
+
|
|
28
|
+
/** Determines whether or not to display device information (Browser, Platform, Locale, Cookies Enabled) */
|
|
29
|
+
deviceSpecs?: boolean;
|
|
30
|
+
|
|
31
|
+
/** Additional product name information to display */
|
|
32
|
+
productName?: string;
|
|
33
|
+
|
|
34
|
+
/** Add the Legal Approved Infor Copyright Text */
|
|
35
|
+
useDefaultCopyright?: boolean;
|
|
36
|
+
|
|
37
|
+
/** Semantic Version Number for example (4.0.0) */
|
|
38
|
+
version?: string;
|
|
39
|
+
|
|
40
|
+
/** Add extra attributes like id's to the component **/
|
|
41
|
+
attributes?: Array<Object> | Object;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* This interface represents the Api exposed by the
|
|
46
|
+
* soho control.
|
|
47
|
+
*
|
|
48
|
+
* Only public members are exposed on this interface.
|
|
49
|
+
*/
|
|
50
|
+
interface SohoAboutStatic {
|
|
51
|
+
|
|
52
|
+
/** Element. */
|
|
53
|
+
element: JQuery;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Close the about dialog.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
close(): void;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Releases all resources managed by the about dialog.
|
|
63
|
+
*/
|
|
64
|
+
destroy(): void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Integration with jQuery
|
|
69
|
+
*/
|
|
70
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
71
|
+
about(options: SohoAboutOptions): JQuery;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface JQueryStatic {
|
|
75
|
+
about: SohoAboutStatic;
|
|
76
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Accordion Typings.
|
|
3
|
+
*
|
|
4
|
+
* The Accordion is a grouped set of collapsible panels used to navigate sections of
|
|
5
|
+
* related content. Each panel consists of two levels: the top level identifies the
|
|
6
|
+
* category or section header, and the second level provides the associated options.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
type SohoAccordionExpanderType = 'classic' | 'plus-minus' | 'chevron';
|
|
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
|
+
|
|
23
|
+
/**
|
|
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
|
+
*/
|
|
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
|
+
|
|
61
|
+
/**
|
|
62
|
+
* If set to true, allows only one pane of the Accordion to be open at a time.
|
|
63
|
+
* If an Accordion pane is open, and that pane contains sub-headers,
|
|
64
|
+
* only one of the pane's sub-headers can be open at a time. (default true)
|
|
65
|
+
*/
|
|
66
|
+
allowOnePane?: boolean;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Displays a "Chevron" icon that sits off to the right-most side of a top-level
|
|
70
|
+
* accordion header. Used in place of an Expander (+/-) if enabled.
|
|
71
|
+
*/
|
|
72
|
+
displayChevron?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Changes the iconography used in accordion header expander buttons.
|
|
76
|
+
*/
|
|
77
|
+
expanderDisplay?: SohoAccordionExpanderType;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Set to false if routing is handled externally.
|
|
81
|
+
*/
|
|
82
|
+
rerouteOnLinkClick?: boolean;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Add a alert badge to the accordion header (used for App menu)
|
|
86
|
+
*/
|
|
87
|
+
notificationBadge?: boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A callback function that when implemented provided a call back for "ajax loading"
|
|
91
|
+
* of tab contents on open.
|
|
92
|
+
*/
|
|
93
|
+
source?: Function;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Set true to use panels with header selection
|
|
97
|
+
*/
|
|
98
|
+
hasPanels?: boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Sets the color scheme to inverse
|
|
102
|
+
*/
|
|
103
|
+
inverse?: boolean;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Sets the color scheme to alternate
|
|
107
|
+
*/
|
|
108
|
+
alternate?: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Enables tooltips for longer text that is handled with ellipsis
|
|
112
|
+
*/
|
|
113
|
+
enableTooltips?: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* This interface represents the public API exposed by the Soho Accordion
|
|
118
|
+
*/
|
|
119
|
+
interface SohoAccordionStatic {
|
|
120
|
+
/** Access to the control's options block. */
|
|
121
|
+
settings: SohoAccordionOptions;
|
|
122
|
+
|
|
123
|
+
/** Calls the `source` method passed via settings */
|
|
124
|
+
callSource(anchor: SohoAccordionHeaderAnchorGroup, animationCallback: () => void): void;
|
|
125
|
+
|
|
126
|
+
/** Collapses all panels. */
|
|
127
|
+
collapseAll(): void;
|
|
128
|
+
|
|
129
|
+
/** Expands all panels. */
|
|
130
|
+
expandAll(): void;
|
|
131
|
+
|
|
132
|
+
/** Expands one or a group of panels */
|
|
133
|
+
expand(header: SohoAccordionHeaderGroup | string): void;
|
|
134
|
+
|
|
135
|
+
/** Collapses one or a group of panels */
|
|
136
|
+
collapse(header: SohoAccordionHeaderGroup | string): void;
|
|
137
|
+
|
|
138
|
+
/** Disables the accordion from reacting to events. */
|
|
139
|
+
disable(): void;
|
|
140
|
+
|
|
141
|
+
/** Enables the accordion. */
|
|
142
|
+
enable(): void;
|
|
143
|
+
|
|
144
|
+
/** Checks if a particular header is disabled, or if the entire accordion is disabled. */
|
|
145
|
+
isDisabled(header: SohoAccordionHeaderGroup): boolean;
|
|
146
|
+
|
|
147
|
+
/** Checks if an Accordion Section is currently expanded. */
|
|
148
|
+
isExpanded(header: SohoAccordionHeaderGroup): boolean;
|
|
149
|
+
|
|
150
|
+
/** Toggles the exanded state of the selected header. */
|
|
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
|
+
/** Makes an accordion header appear with a "deselected" state */
|
|
163
|
+
deselect(element?: SohoAccordionHeaderAnyGroup): void;
|
|
164
|
+
|
|
165
|
+
/** Makes all accordion headers deselected */
|
|
166
|
+
deselectAll(): void;
|
|
167
|
+
|
|
168
|
+
/** Gets a reference to currently-selected accordion headers */
|
|
169
|
+
getSelected(): SohoAccordionHeaderGroup;
|
|
170
|
+
|
|
171
|
+
/** Determines if an Accordion Header is disabled */
|
|
172
|
+
isDisabled(header: SohoAccordionHeaderGroup): boolean;
|
|
173
|
+
|
|
174
|
+
/** "Visually" filters accordion headers (elements are not added/removed but temporarily hidden by CSS if filtered out) */
|
|
175
|
+
filter(headers?: SohoAccordionHeaderGroup): void;
|
|
176
|
+
|
|
177
|
+
/** Resets a previously-applied filter */
|
|
178
|
+
unfilter(headers?: SohoAccordionHeaderGroup): void;
|
|
179
|
+
|
|
180
|
+
/** Determines if an Accordion Header is currently visually filtered out */
|
|
181
|
+
isFiltered(header: SohoAccordionHeaderGroup): boolean;
|
|
182
|
+
|
|
183
|
+
/** Determines if animation is currently happening on accordion panes (controls some behavior internally) */
|
|
184
|
+
isAnimating: boolean;
|
|
185
|
+
|
|
186
|
+
/** Programmatically navigates to the next-available accordion header (down) */
|
|
187
|
+
nextHeader(element: SohoAccordionHeaderAnyGroup, noDescend?: boolean): void;
|
|
188
|
+
|
|
189
|
+
/** Programmatically navigates to the previous-available accordion header (up) */
|
|
190
|
+
prevHeader(element: SohoAccordionHeaderAnyGroup, noDescend?: boolean): void;
|
|
191
|
+
|
|
192
|
+
/** Programmatically navigates to the next-available accordion header (down) */
|
|
193
|
+
ascend(element: SohoAccordionHeaderGroup, direction?: SohoAccordionNavDirection): void;
|
|
194
|
+
|
|
195
|
+
/** Programmatically navigates to the previous-available accordion header (up) */
|
|
196
|
+
descend(element: SohoAccordionHeaderGroup, direction?: SohoAccordionNavDirection): void;
|
|
197
|
+
|
|
198
|
+
/** Programmatically focuses the correct element within an accordion header (based on previously-focused elements) */
|
|
199
|
+
focusOriginalType(header: SohoAccordionHeaderGroup): void;
|
|
200
|
+
|
|
201
|
+
/** Updates the accordion with any new settings. */
|
|
202
|
+
updated(headers?: SohoAccordionHeaderGroup, settings?: SohoAccordionOptions): void;
|
|
203
|
+
|
|
204
|
+
/** Performs a teardown of the jQuery component API (does not remove the component instance) */
|
|
205
|
+
teardown(): void;
|
|
206
|
+
|
|
207
|
+
/** Destroys the control on completion. (Tears down and removes the component instance) */
|
|
208
|
+
destroy(): void;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* JQuery Integration
|
|
213
|
+
*/
|
|
214
|
+
interface JQueryStatic {
|
|
215
|
+
accordion: any;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* jQuery integration.
|
|
220
|
+
*/
|
|
221
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
222
|
+
accordion(options?: SohoAccordionOptions): SohoAccordionStatic;
|
|
223
|
+
on(events: string,
|
|
224
|
+
handler: JQuery.EventHandlerBase<TElement, SohoAccordionEvent>): this;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface SohoAccordionEvent extends JQuery.TriggeredEvent {
|
|
228
|
+
anchor: HTMLAnchorElement;
|
|
229
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Actionsheet.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the TypeScript mappings for the public
|
|
5
|
+
* interface of the Soho Actionsheet control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Actionsheet Options
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
type SohoActionsheetDisplay = false | 'responsive' | 'always';
|
|
13
|
+
|
|
14
|
+
type SohoActionsheetTrayBackgroundColors = 'slate' | 'ruby' | 'amber' | 'emerald' | 'azure' | 'turquoise' | 'amethyst';
|
|
15
|
+
|
|
16
|
+
interface SohoActionsheetOptions {
|
|
17
|
+
actions?: Array<SohoActionsheetActions>;
|
|
18
|
+
autoFocus?: boolean;
|
|
19
|
+
breakpoint?: string;
|
|
20
|
+
displayAsActionSheet?: SohoActionsheetDisplay;
|
|
21
|
+
overlayOpacity?: number;
|
|
22
|
+
onSelect?: Function;
|
|
23
|
+
onCancel?: Function;
|
|
24
|
+
tray?: boolean;
|
|
25
|
+
trayOpts?: SohoActionsheetTrayOptions;
|
|
26
|
+
showCancelButton?: boolean;
|
|
27
|
+
attributes?: Array<Object> | Object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface SohoActionsheetTrayOptions {
|
|
31
|
+
text?: string;
|
|
32
|
+
icon?: string;
|
|
33
|
+
backgroundColor?: SohoActionsheetTrayBackgroundColors;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface SohoActionsheetActions {
|
|
37
|
+
icon?: string;
|
|
38
|
+
text?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface SohoActionsheetStatic {
|
|
42
|
+
settings: SohoActionsheetOptions;
|
|
43
|
+
|
|
44
|
+
/** Returns true if the Action Sheet is currently visible */
|
|
45
|
+
get visible(): boolean;
|
|
46
|
+
|
|
47
|
+
/** Returns true if the Action Sheet is currently visible */
|
|
48
|
+
get actionElems(): boolean;
|
|
49
|
+
|
|
50
|
+
/** Returns attached Popupmenu API, if available */
|
|
51
|
+
get popupmenuAPI(): SohoPopupMenuOptions;
|
|
52
|
+
|
|
53
|
+
/** Returns true if there is a currently-open Popupmenu attached to the trigger button */
|
|
54
|
+
get hasOpenPopupMenu(): boolean;
|
|
55
|
+
|
|
56
|
+
/** Returns {boolean} whether or not this Action Sheet instance should currently display in
|
|
57
|
+
* full size mode (uses the settings, but determined at runtime)
|
|
58
|
+
* */
|
|
59
|
+
get currentlyNeedsActionSheet(): boolean;
|
|
60
|
+
|
|
61
|
+
/** Opens the Action Sheet */
|
|
62
|
+
open(): void;
|
|
63
|
+
|
|
64
|
+
/** Opens a simple Popupmenu containing the same actions as the sheet. */
|
|
65
|
+
openPopupMenu(): void;
|
|
66
|
+
|
|
67
|
+
/** Tears down and removes any added markup and events. */
|
|
68
|
+
destroy(): void;
|
|
69
|
+
|
|
70
|
+
/** Triggers a UI Resync. */
|
|
71
|
+
updated(settings?: SohoActionsheetOptions): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** jQuery Integration */
|
|
75
|
+
interface jQueryStatic {
|
|
76
|
+
actionsheet: SohoActionsheetStatic;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
80
|
+
actionsheet(options?: SohoActionsheetOptions): JQuery;
|
|
81
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Alert.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery alert control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type SohoAlertType = 'error' | 'alert' | 'success' | 'info' | 'icon' | undefined;
|
|
9
|
+
|
|
10
|
+
interface SohoAlertOptions {
|
|
11
|
+
/** */
|
|
12
|
+
message?: string;
|
|
13
|
+
|
|
14
|
+
/** */
|
|
15
|
+
inline?: boolean;
|
|
16
|
+
|
|
17
|
+
/** */
|
|
18
|
+
type?: SohoAlertType;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* If true, does not display control border color, control text color, and control icon color.
|
|
22
|
+
*/
|
|
23
|
+
isAlert?: boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* If true, events will be triggered
|
|
27
|
+
*/
|
|
28
|
+
triggerEvents?: boolean;
|
|
29
|
+
|
|
30
|
+
/** */
|
|
31
|
+
icon?: string;
|
|
32
|
+
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This interface represents the public API exposed by the
|
|
38
|
+
* Alert.
|
|
39
|
+
*/
|
|
40
|
+
interface SohoAlertStatic {
|
|
41
|
+
/** Access to the control's options block. */
|
|
42
|
+
settings: SohoAlertOptions;
|
|
43
|
+
|
|
44
|
+
/** Tears down the control and recreates it. */
|
|
45
|
+
updated(): void;
|
|
46
|
+
|
|
47
|
+
/** Destructor. */
|
|
48
|
+
destroy(): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
52
|
+
addError(options?: SohoAlertOptions): JQuery;
|
|
53
|
+
|
|
54
|
+
addMessage(options?: SohoAlertOptions): JQuery;
|
|
55
|
+
|
|
56
|
+
getErrorMessage(options?: SohoAlertOptions): string;
|
|
57
|
+
|
|
58
|
+
getMessage(options?: SohoAlertOptions): string;
|
|
59
|
+
|
|
60
|
+
removeError(options?: SohoAlertOptions): JQuery;
|
|
61
|
+
|
|
62
|
+
removeMessage(options?: SohoAlertOptions): JQuery;
|
|
63
|
+
|
|
64
|
+
scrollIntoView(alignToTop?: boolean, options?: SohoAlertOptions): void;
|
|
65
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/// <reference path='../accordion/soho-accordion.d.ts' />
|
|
2
|
+
/// <reference path='../searchfield/soho-searchfield.d.ts' />
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Soho Application Menu.
|
|
6
|
+
*
|
|
7
|
+
* This file contains the Typescript mappings for the public
|
|
8
|
+
* interface of the Soho jQuery applicationmenu control.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Application Menu Options
|
|
13
|
+
*/
|
|
14
|
+
type SohoApplicationMenuBreakPoint =
|
|
15
|
+
'phone' |
|
|
16
|
+
'slim' |
|
|
17
|
+
'phablet' |
|
|
18
|
+
'phone-to-tablet' |
|
|
19
|
+
'wide-tablet' |
|
|
20
|
+
'tablet-to-desktop' |
|
|
21
|
+
'desktop-to-extralarge' | undefined;
|
|
22
|
+
|
|
23
|
+
type SohoApplicationMenuExpandSwitcherFunction = (
|
|
24
|
+
applicationMenu: any,
|
|
25
|
+
element: HTMLElement,
|
|
26
|
+
settings: any
|
|
27
|
+
) => void;
|
|
28
|
+
|
|
29
|
+
type SohoApplicationMenuCollapseSwitcherFunction = (
|
|
30
|
+
applicationMenu: any,
|
|
31
|
+
element: HTMLElement,
|
|
32
|
+
settings: any
|
|
33
|
+
) => void;
|
|
34
|
+
|
|
35
|
+
interface SohoApplicationMenuOptions {
|
|
36
|
+
/** Defines the point at which the application should be displayed - depends on device. */
|
|
37
|
+
breakpoint: SohoApplicationMenuBreakPoint;
|
|
38
|
+
|
|
39
|
+
/** Is this application menu filterable. */
|
|
40
|
+
filterable?: boolean;
|
|
41
|
+
|
|
42
|
+
/** Is this application menu resizable. */
|
|
43
|
+
resizable?: boolean;
|
|
44
|
+
|
|
45
|
+
/** Is this application menu resizable. */
|
|
46
|
+
savePosition?: boolean;
|
|
47
|
+
|
|
48
|
+
/** Open the menu when the screen width is larger that the breakpoint. */
|
|
49
|
+
openOnLarge: boolean | undefined;
|
|
50
|
+
|
|
51
|
+
/** Allows the menu to become closed after an actionable header has been selected */
|
|
52
|
+
dismissOnClickMobile: boolean | undefined;
|
|
53
|
+
|
|
54
|
+
/** The controls which can trigger the display state of the application menu. */
|
|
55
|
+
triggers: any[];
|
|
56
|
+
|
|
57
|
+
onExpandSwitcher?: SohoApplicationMenuExpandSwitcherFunction;
|
|
58
|
+
|
|
59
|
+
onCollapseSwitcher?: SohoApplicationMenuCollapseSwitcherFunction;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Application Menu Api
|
|
64
|
+
*/
|
|
65
|
+
interface SohoApplicationMenuStatic {
|
|
66
|
+
/** Control settings. */
|
|
67
|
+
settings: SohoApplicationMenuOptions;
|
|
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
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Opens the application menu.
|
|
80
|
+
*
|
|
81
|
+
* param noFocus - if set the current focus is not modified.
|
|
82
|
+
*/
|
|
83
|
+
openMenu(noFocus?: boolean, userOpened?: boolean, openedByClass?: boolean): void;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Closes the application menu.
|
|
87
|
+
*/
|
|
88
|
+
closeMenu(): void;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Add and remove application nav menu triggers.
|
|
92
|
+
*
|
|
93
|
+
* @param triggers - list of triggers
|
|
94
|
+
* @param remove - if set the triggers will be removed.
|
|
95
|
+
* @param norebuild - if set this control's events won't automatically be rebound to include
|
|
96
|
+
* the new triggers.
|
|
97
|
+
*/
|
|
98
|
+
modifyTriggers(triggers: any[], remove: boolean, norebusild: boolean): void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Updates the control based on the new settings.
|
|
102
|
+
*/
|
|
103
|
+
updated(): void;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Closes the panel area controlled by switcher
|
|
107
|
+
*/
|
|
108
|
+
closeSwitcherPanel(): void;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Has this control got the defined class.
|
|
112
|
+
*
|
|
113
|
+
* @param clazz - the class to check for.
|
|
114
|
+
*/
|
|
115
|
+
hasClass(clazz: string): boolean;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Checks if the application menu is open.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
isOpen(): boolean;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Cleans up any markup.
|
|
125
|
+
*/
|
|
126
|
+
destroy(): void;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface JQueryStatic {
|
|
130
|
+
applicationmenu: SohoApplicationMenuStatic;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
134
|
+
applicationmenu(options?: SohoApplicationMenuOptions): JQuery;
|
|
135
|
+
}
|
|
@@ -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,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Autocomplete.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery Autocomplete control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Autocomplete Options
|
|
10
|
+
*/
|
|
11
|
+
interface SohoAutoCompleteOptions {
|
|
12
|
+
/** Defines the data to use, must be specified for this component. */
|
|
13
|
+
source?: SohoAutoCompleteSource;
|
|
14
|
+
|
|
15
|
+
/** Object is passed into the source method, and augmented with parameters. */
|
|
16
|
+
sourceArguments?: string;
|
|
17
|
+
|
|
18
|
+
/** Menu template, appropriate markup is expected. */
|
|
19
|
+
template?: string;
|
|
20
|
+
|
|
21
|
+
/** if true, causes filter results that don't match case to be thrown out */
|
|
22
|
+
caseSensitive?: boolean;
|
|
23
|
+
|
|
24
|
+
/** Filters based on the first character('startsWidth') of the string, or the entire string('contains') */
|
|
25
|
+
filterMode?: SohoAutoCompleteFilterMode;
|
|
26
|
+
|
|
27
|
+
/** Delay between key strokes on the keypad before the end of typing */
|
|
28
|
+
delay?: number;
|
|
29
|
+
|
|
30
|
+
/** Width of the open menu */
|
|
31
|
+
width?: number | string;
|
|
32
|
+
|
|
33
|
+
/** Offset, the left or top offset */
|
|
34
|
+
offset?: SohoAutoCompleteOffset;
|
|
35
|
+
|
|
36
|
+
/** Selects first item menu */
|
|
37
|
+
autoSelectFirstItem?: boolean;
|
|
38
|
+
|
|
39
|
+
/** Add extra attributes like id's to the component **/
|
|
40
|
+
attributes?: Array<Object> | Object;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type SohoAutoCompleteSource = Object[] | string | Object | SohoAutoCompleteSourceFunction;
|
|
44
|
+
|
|
45
|
+
type SohoAutoCompleteResponseFunction = (term: string, data: any[]) => void;
|
|
46
|
+
|
|
47
|
+
type SohoAutoCompleteSourceFunction = (term: string, response: SohoAutoCompleteResponseFunction) => void;
|
|
48
|
+
|
|
49
|
+
// can be 'wordStartsWith', 'contains', 'keyword', or 'phraseStartsWith'
|
|
50
|
+
type SohoAutoCompleteFilterMode = string;
|
|
51
|
+
|
|
52
|
+
type SohoAutoCompleteWidth = number | string;
|
|
53
|
+
|
|
54
|
+
interface SohoAutoCompleteOffset {
|
|
55
|
+
top?: number | string;
|
|
56
|
+
left?: number | string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface SohoAutoCompleteEvent {
|
|
60
|
+
elem?: HTMLElement;
|
|
61
|
+
value?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface SohoAutoCompleteStatic {
|
|
65
|
+
/** Destructor. */
|
|
66
|
+
destroy(): void;
|
|
67
|
+
|
|
68
|
+
/** Clear. */
|
|
69
|
+
clear(): void;
|
|
70
|
+
|
|
71
|
+
/** Disable the control. */
|
|
72
|
+
disable(): void;
|
|
73
|
+
|
|
74
|
+
/** Enable the control. */
|
|
75
|
+
enable(): void;
|
|
76
|
+
|
|
77
|
+
/** Mark the control as readonly. */
|
|
78
|
+
readonly(): void;
|
|
79
|
+
|
|
80
|
+
/** Mark the control as updated. */
|
|
81
|
+
updated(): void;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface JQueryStatic {
|
|
85
|
+
autocomplete: SohoAutoCompleteStatic;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
89
|
+
autocomplete(options?: SohoAutoCompleteOptions): JQuery;
|
|
90
|
+
|
|
91
|
+
on(events: 'beforeopen', handler: JQuery.EventHandlerBase<any, SohoAutoCompleteEvent>): this;
|
|
92
|
+
}
|