ids-enterprise-typings 21.0.3-patch.6 → 21.0.3-patch.8
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.
|
Binary file
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Soho Loading Indicator.
|
|
3
|
+
*
|
|
4
|
+
* This file contains the Typescript mappings for the public
|
|
5
|
+
* interface of the Soho jQuery loadingindicator control.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Loading Indicator Type
|
|
10
|
+
*/
|
|
11
|
+
type SohoLoadingIndicatorType = 'circular' | 'linear' | 'sticky' | 'generative-ai' | 'line';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Loading Indicator Color
|
|
15
|
+
*/
|
|
16
|
+
type SohoLoadingIndicatorColor = 'default' | 'destructive';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Loading Indicator Options
|
|
20
|
+
*/
|
|
21
|
+
interface SohoLoadingIndicatorOptions {
|
|
22
|
+
/** The type of loading indicator. */
|
|
23
|
+
type?: SohoLoadingIndicatorType;
|
|
24
|
+
|
|
25
|
+
/** Progress value (0-100). If undefined, the indicator is indeterminate. */
|
|
26
|
+
progress?: number;
|
|
27
|
+
|
|
28
|
+
/** Whether to display percentage text. */
|
|
29
|
+
percentageVisible?: boolean;
|
|
30
|
+
|
|
31
|
+
/** Whether to use a smaller inline variant. */
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
|
|
34
|
+
/** The color scheme. */
|
|
35
|
+
color?: SohoLoadingIndicatorColor;
|
|
36
|
+
|
|
37
|
+
/** Add extra attributes like id's to the component. */
|
|
38
|
+
attributes?: Array<Object> | Object;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* This interface represents the public API exposed by the
|
|
43
|
+
* loading indicator.
|
|
44
|
+
*/
|
|
45
|
+
interface SohoLoadingIndicatorStatic {
|
|
46
|
+
/** Access to the control's options block. */
|
|
47
|
+
settings: SohoLoadingIndicatorOptions;
|
|
48
|
+
|
|
49
|
+
/** Updates settings and rebuilds the component. */
|
|
50
|
+
updated(settings?: SohoLoadingIndicatorOptions): void;
|
|
51
|
+
|
|
52
|
+
/** Tears down the component. */
|
|
53
|
+
destroy(): void;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Loading Indicator Event
|
|
58
|
+
*/
|
|
59
|
+
interface SohoLoadingIndicatorEvent {
|
|
60
|
+
type: 'progress';
|
|
61
|
+
data?: any;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* JQuery Integration
|
|
66
|
+
*/
|
|
67
|
+
interface JQueryStatic {
|
|
68
|
+
loadingindicator: SohoLoadingIndicatorStatic;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
|
72
|
+
loadingindicator(options?: SohoLoadingIndicatorOptions): JQuery;
|
|
73
|
+
}
|