ids-enterprise-typings 10.10.2 → 10.11.3
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/accordion/soho-accordion.d.ts +29 -24
- package/lib/button/soho-button.d.ts +9 -1
- package/lib/column/soho-column.d.ts +11 -0
- package/lib/datagrid/soho-datagrid.d.ts +1 -1
- package/lib/modal-dialog/soho-modal-dialog.d.ts +4 -1
- package/lib/notification-badge/soho-notification-badge.d.ts +10 -0
- package/lib/radar/soho-radar.d.ts +0 -1
- package/lib/tag/soho-tag.d.ts +6 -2
- package/lib/utils/soho-utils.d.ts +4 -2
- package/package.json +1 -1
|
@@ -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
|
|
@@ -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.
|
|
@@ -86,6 +86,9 @@ interface SohoModalOptions {
|
|
|
86
86
|
/** if true, causes this modal instance to become hidden when another modal is displayed over top. **/
|
|
87
87
|
hideUnderneath?: boolean;
|
|
88
88
|
|
|
89
|
+
/** if true, causes the modal to not exit when the enter key is pressed. **/
|
|
90
|
+
suppressEnterKey?: boolean;
|
|
91
|
+
|
|
89
92
|
/** If true, causes the modal's trigger element not to become focused once the modal is closed. **/
|
|
90
93
|
noRefocus?: boolean;
|
|
91
94
|
|
|
@@ -139,7 +142,7 @@ interface CloseBtnOptions {
|
|
|
139
142
|
/** Tooltip message */
|
|
140
143
|
closeBtnTooltip?: string;
|
|
141
144
|
|
|
142
|
-
/** Add extra attributes for the close button
|
|
145
|
+
/** Add extra attributes for the close button
|
|
143
146
|
* [{ name: 'tabIndex', value: '-1' }]
|
|
144
147
|
*/
|
|
145
148
|
attributes?: Array<Object>;
|
|
@@ -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> {
|
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 {
|