ids-enterprise-typings 10.9.0 → 10.11.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/index.d.ts +1 -0
- package/lib/accordion/soho-accordion.d.ts +29 -24
- package/lib/application-menu/soho-application-menu.d.ts +6 -0
- package/lib/button/soho-button.d.ts +9 -1
- package/lib/calendar/soho-calendar.d.ts +1 -0
- package/lib/column/soho-column.d.ts +11 -0
- package/lib/datagrid/soho-datagrid.d.ts +6 -1
- package/lib/message/soho-message.d.ts +3 -0
- package/lib/modal-dialog/soho-modal-dialog.d.ts +17 -0
- package/lib/notification/soho-notification.d.ts +3 -0
- package/lib/notification-badge/soho-notification-badge.d.ts +10 -0
- package/lib/radar/soho-radar.d.ts +0 -1
- package/lib/swipe-action/soho-swipe-action.d.ts +28 -0
- package/lib/tag/soho-tag.d.ts +6 -2
- package/lib/utils/soho-utils.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
/// <reference path='lib/stepchart/soho-stepchart.d.ts' />
|
|
72
72
|
/// <reference path='lib/stepprocess/soho-stepprocess.d.ts' />
|
|
73
73
|
/// <reference path='lib/swaplist/soho-swaplist.d.ts' />
|
|
74
|
+
/// <reference path='lib/swipe-action/soho-swipe-action.d.ts' />
|
|
74
75
|
/// <reference path='lib/tabs/soho-tabs.d.ts' />
|
|
75
76
|
/// <reference path='lib/tag/soho-tag.d.ts' />
|
|
76
77
|
/// <reference path='lib/textarea/soho-textarea.d.ts' />
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
type SohoAccordionExpanderType = 'classic' | 'plus-minus' | 'chevron';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Soho Accordion Control Options
|
|
13
|
+
*/
|
|
14
|
+
interface SohoAccordionOptions {
|
|
15
15
|
/**
|
|
16
16
|
* If set to true, allows only one pane of the Accordion to be open at a time.
|
|
17
17
|
* If an Accordion pane is open, and that pane contains sub-headers,
|
|
@@ -35,32 +35,37 @@ type SohoAccordionExpanderType = 'classic' | 'plus-minus' | 'chevron';
|
|
|
35
35
|
*/
|
|
36
36
|
rerouteOnLinkClick?: boolean;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Add a alert badge to the accordion header (used for App menu)
|
|
40
|
+
*/
|
|
41
|
+
notificationBadge?: boolean;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* A callback function that when implemented provided a call back for "ajax loading"
|
|
40
45
|
* of tab contents on open.
|
|
41
46
|
*/
|
|
42
47
|
source?: Function;
|
|
43
48
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Set true to use panels with header selection
|
|
51
|
+
*/
|
|
52
|
+
hasPanels?: boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Sets the color scheme to inverse
|
|
56
|
+
*/
|
|
57
|
+
inverse?: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets the color scheme to alternate
|
|
61
|
+
*/
|
|
62
|
+
alternate?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Enables tooltips for longer text that is handled with ellipsis
|
|
66
|
+
*/
|
|
67
|
+
enableTooltips?: boolean;
|
|
68
|
+
}
|
|
64
69
|
|
|
65
70
|
/**
|
|
66
71
|
* This interface represents the public API exposed by the
|
|
@@ -36,6 +36,12 @@ interface SohoApplicationMenuOptions {
|
|
|
36
36
|
/** Is this application menu filterable. */
|
|
37
37
|
filterable?: boolean;
|
|
38
38
|
|
|
39
|
+
/** Is this application menu resizable. */
|
|
40
|
+
resizable?: boolean;
|
|
41
|
+
|
|
42
|
+
/** Is this application menu resizable. */
|
|
43
|
+
savePosition?: boolean;
|
|
44
|
+
|
|
39
45
|
/** Open the menu when the screen width is larger that the breakpoint. */
|
|
40
46
|
openOnLarge: boolean | undefined;
|
|
41
47
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This file contains the Typescript mappings for the public
|
|
5
5
|
* interface of the Soho button control.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
7
|
type SohoButtonOptionsStyle = 'default' | 'btn' | 'btn-primary' | 'btn-secondary' | 'btn-tertiary' | 'btn-destructive' | null | undefined;
|
|
9
8
|
|
|
10
9
|
type SohoButtonOptionsType = 'default' | 'btn-icon' | 'btn-menu' | 'btn-actions' | 'btn-toggle' |
|
|
@@ -38,6 +37,15 @@ interface SohoButtonOptions {
|
|
|
38
37
|
/** Ripple */
|
|
39
38
|
ripple?: boolean;
|
|
40
39
|
|
|
40
|
+
/** Add bigger hit area (for mobile) */
|
|
41
|
+
hitbox?: boolean;
|
|
42
|
+
|
|
43
|
+
/** Used to set a notification badge on the button */
|
|
44
|
+
notificationBadge?: boolean;
|
|
45
|
+
|
|
46
|
+
/** Set the position and color of the notification badge on the button */
|
|
47
|
+
notificationBadgeOptions?: SohoNotificationBadgeOptions;
|
|
48
|
+
|
|
41
49
|
/** validate? */
|
|
42
50
|
validate?: boolean;
|
|
43
51
|
|
|
@@ -60,6 +60,17 @@ interface SohoColumnOptions {
|
|
|
60
60
|
|
|
61
61
|
/** Add extra attributes like id's to the component **/
|
|
62
62
|
attributes?: Array<Object> | Object;
|
|
63
|
+
|
|
64
|
+
/** Option to a label to one of the four sides. For Example
|
|
65
|
+
* `{left: 'Left axis label', top: 'Top axis label',
|
|
66
|
+
* right: 'Right axis label', bottom: 'Bottom axis label'}` */
|
|
67
|
+
axisLabels?: any;
|
|
68
|
+
|
|
69
|
+
/** If true no dots are shown. */
|
|
70
|
+
hideDots?: boolean;
|
|
71
|
+
|
|
72
|
+
/** The ability to use line chart if set to true. This will need a target value to the dataset. */
|
|
73
|
+
useLine?: boolean;
|
|
63
74
|
}
|
|
64
75
|
|
|
65
76
|
interface SohoColumnSelectEvent {
|
|
@@ -1164,7 +1164,7 @@ interface SohoDataGridStatic {
|
|
|
1164
1164
|
|
|
1165
1165
|
exportToExcel(fileName: string, worksheetName: string | null | undefined, customDs: Object[] | null | undefined): void;
|
|
1166
1166
|
|
|
1167
|
-
exportToCsv(fileName: string, customDs: Object[], separator: string): void;
|
|
1167
|
+
exportToCsv(fileName: string, customDs: Object[], separator: string, format?: boolean): void;
|
|
1168
1168
|
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Returns an array of all the rows in the grid marked as dirty.
|
|
@@ -1568,3 +1568,8 @@ interface SohoDataGridKeyDownEvent {
|
|
|
1568
1568
|
args: SohoDataGridKeyDownArgs;
|
|
1569
1569
|
response: Function;
|
|
1570
1570
|
}
|
|
1571
|
+
|
|
1572
|
+
interface SohoDataGridScrollEvent {
|
|
1573
|
+
percent: number;
|
|
1574
|
+
percentScrolled: number;
|
|
1575
|
+
}
|
|
@@ -63,6 +63,8 @@ interface SohoModalOptions {
|
|
|
63
63
|
/** If true the an x will be shown on the modal**/
|
|
64
64
|
showCloseBtn?: boolean;
|
|
65
65
|
|
|
66
|
+
closeBtnOptions?: CloseBtnOptions;
|
|
67
|
+
|
|
66
68
|
// The maximum width to show for the modal, regardless of content.
|
|
67
69
|
maxWidth?: number;
|
|
68
70
|
|
|
@@ -84,6 +86,9 @@ interface SohoModalOptions {
|
|
|
84
86
|
/** if true, causes this modal instance to become hidden when another modal is displayed over top. **/
|
|
85
87
|
hideUnderneath?: boolean;
|
|
86
88
|
|
|
89
|
+
/** if true, causes the modal to not exit when the enter key is pressed. **/
|
|
90
|
+
suppressEnterKey?: boolean;
|
|
91
|
+
|
|
87
92
|
/** If true, causes the modal's trigger element not to become focused once the modal is closed. **/
|
|
88
93
|
noRefocus?: boolean;
|
|
89
94
|
|
|
@@ -129,6 +134,18 @@ interface SohoModalButton {
|
|
|
129
134
|
|
|
130
135
|
/** Align the button (CAP Centered Tooltip) **/
|
|
131
136
|
align?: 'left' | 'center' | 'right';
|
|
137
|
+
|
|
138
|
+
tabindex?: number;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface CloseBtnOptions {
|
|
142
|
+
/** Tooltip message */
|
|
143
|
+
closeBtnTooltip?: string;
|
|
144
|
+
|
|
145
|
+
/** Add extra attributes for the close button
|
|
146
|
+
* [{ name: 'tabIndex', value: '-1' }]
|
|
147
|
+
*/
|
|
148
|
+
attributes?: Array<Object>;
|
|
132
149
|
}
|
|
133
150
|
|
|
134
151
|
/**
|
|
@@ -33,6 +33,16 @@ interface SohoNotificationBadgeOptions {
|
|
|
33
33
|
|
|
34
34
|
interface SohoNotificationBadge {
|
|
35
35
|
settings: SohoNotificationBadgeOptions;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Show the NotificationBadge
|
|
39
|
+
*/
|
|
40
|
+
show(): void;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Hide the NotificationBadge
|
|
44
|
+
*/
|
|
45
|
+
hide(): void;
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Swap Action Control.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery swipe action control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type SohoSwipeType = 'continuous' | 'reveal' | undefined;
|
|
9
|
+
|
|
10
|
+
interface SohoSwipeActionOptions {
|
|
11
|
+
swipeType?: SohoSwipeType;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface SohoSwipeActionStatic {
|
|
15
|
+
settings: SohoSwipeActionOptions;
|
|
16
|
+
|
|
17
|
+
updated(settings?: SohoSwipeActionOptions): void;
|
|
18
|
+
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface JQueryStatic {
|
|
23
|
+
swipeaction: SohoSwipeActionStatic;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
27
|
+
swipeaction(options?: SohoSwipeActionOptions): JQuery;
|
|
28
|
+
}
|
package/lib/tag/soho-tag.d.ts
CHANGED
|
@@ -39,9 +39,13 @@ interface SohoTag {
|
|
|
39
39
|
destroy(): void;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
interface SohoTagBeforeRemoveEvent extends JQuery.TriggeredEvent {
|
|
42
|
+
interface SohoTagBeforeRemoveEvent extends JQuery.TriggeredEvent {
|
|
43
|
+
tag?: SohoTag;
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
interface SohoTagAfterRemoveEvent extends JQuery.TriggeredEvent {
|
|
46
|
+
interface SohoTagAfterRemoveEvent extends JQuery.TriggeredEvent {
|
|
47
|
+
tag?: SohoTag;
|
|
48
|
+
}
|
|
45
49
|
|
|
46
50
|
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
47
51
|
tag(options?: SohoTagOptions): JQuery;
|
|
@@ -9,10 +9,11 @@ interface SohoUtilsExcelStatic {
|
|
|
9
9
|
* @param fileName The desired export filename in the download.
|
|
10
10
|
* @param customDs An optional customized version of the data to use.
|
|
11
11
|
* @param separator The separator to use in the cvs file, defaults to 'sep=,'
|
|
12
|
+
* @param format if true, date and number values will be formatted based on the locale
|
|
12
13
|
* @param self The grid api to use (if customDs is not used)
|
|
13
14
|
* @returns void
|
|
14
15
|
*/
|
|
15
|
-
exportToCsv(fileName?: string, customDs?: any, separator?: string, self?: any): void;
|
|
16
|
+
exportToCsv(fileName?: string, customDs?: any, separator?: string, format?: boolean, self?: any): void;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Export the grid contents to xls format. This may give a warning when opening the file.
|
|
@@ -20,10 +21,11 @@ interface SohoUtilsExcelStatic {
|
|
|
20
21
|
* @param fileName The desired export filename in the download.
|
|
21
22
|
* @param worksheetName A name to give the excel worksheet tab.
|
|
22
23
|
* @param customDs An optional customized version of the data to use.
|
|
24
|
+
* @param format if true, date and number values will be formatted based on the locale
|
|
23
25
|
* @param self The grid api if customDS is not used
|
|
24
26
|
* @returns void
|
|
25
27
|
*/
|
|
26
|
-
exportToExcel(fileName?: string, worksheetName?: string, customDs?: any, self?: any): void;
|
|
28
|
+
exportToExcel(fileName?: string, worksheetName?: string, customDs?: any, format?: boolean, self?: any): void;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
interface SohoUtilsStatic {
|