@thoughtspot/ts-chart-sdk 0.0.1-alpha.1 → 0.0.1-alpha.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/cjs/main/post-message-event-bridge.js +1 -1
- package/cjs/main/post-message-event-bridge.js.map +1 -1
- package/cjs/main/post-message-event-bridge.spec.js +5 -3
- package/cjs/main/post-message-event-bridge.spec.js.map +1 -1
- package/cjs/react/custom-chart-context-service.d.ts +33 -0
- package/cjs/react/custom-chart-context-service.d.ts.map +1 -0
- package/cjs/react/custom-chart-context-service.js +118 -0
- package/cjs/react/custom-chart-context-service.js.map +1 -0
- package/cjs/react/custom-chart.context.d.ts +26 -0
- package/cjs/react/custom-chart.context.d.ts.map +1 -0
- package/cjs/react/custom-chart.context.js +105 -0
- package/cjs/react/custom-chart.context.js.map +1 -0
- package/cjs/react/custom-chart.spec.d.ts +2 -0
- package/cjs/react/custom-chart.spec.d.ts.map +1 -0
- package/cjs/react/custom-chart.spec.js +72 -0
- package/cjs/react/custom-chart.spec.js.map +1 -0
- package/cjs/types/chart-to-ts-event.types.d.ts +17 -2
- package/cjs/types/chart-to-ts-event.types.d.ts.map +1 -1
- package/cjs/types/chart-to-ts-event.types.js +3 -0
- package/cjs/types/chart-to-ts-event.types.js.map +1 -1
- package/cjs/types/visual-prop.types.d.ts +12 -0
- package/cjs/types/visual-prop.types.d.ts.map +1 -1
- package/lib/main/post-message-event-bridge.js +1 -1
- package/lib/main/post-message-event-bridge.js.map +1 -1
- package/lib/main/post-message-event-bridge.spec.js +5 -3
- package/lib/main/post-message-event-bridge.spec.js.map +1 -1
- package/lib/react/custom-chart-context-service.d.ts +33 -0
- package/lib/react/custom-chart-context-service.d.ts.map +1 -0
- package/lib/react/custom-chart-context-service.js +91 -0
- package/lib/react/custom-chart-context-service.js.map +1 -0
- package/lib/react/custom-chart.context.d.ts +26 -0
- package/lib/react/custom-chart.context.d.ts.map +1 -0
- package/lib/react/custom-chart.context.js +78 -0
- package/lib/react/custom-chart.context.js.map +1 -0
- package/lib/react/custom-chart.spec.d.ts +2 -0
- package/lib/react/custom-chart.spec.d.ts.map +1 -0
- package/lib/react/custom-chart.spec.js +67 -0
- package/lib/react/custom-chart.spec.js.map +1 -0
- package/lib/types/chart-to-ts-event.types.d.ts +17 -2
- package/lib/types/chart-to-ts-event.types.d.ts.map +1 -1
- package/lib/types/chart-to-ts-event.types.js +3 -0
- package/lib/types/chart-to-ts-event.types.js.map +1 -1
- package/lib/types/visual-prop.types.d.ts +12 -0
- package/lib/types/visual-prop.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/main/post-message-event-bridge.spec.ts +5 -3
- package/src/main/post-message-event-bridge.ts +1 -1
- package/src/types/chart-to-ts-event.types.ts +50 -2
- package/src/types/visual-prop.types.ts +68 -0
|
@@ -8,6 +8,60 @@
|
|
|
8
8
|
* Copyright: ThoughtSpot Inc. 2023
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for input validation rules
|
|
13
|
+
*/
|
|
14
|
+
export interface InputValidation {
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the input is required.
|
|
17
|
+
*
|
|
18
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
19
|
+
*/
|
|
20
|
+
required: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Error message to display when input is required but not provided.
|
|
23
|
+
*
|
|
24
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
25
|
+
*/
|
|
26
|
+
requiredError: string;
|
|
27
|
+
/**
|
|
28
|
+
* Regular expression pattern to validate the input against.
|
|
29
|
+
*
|
|
30
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
31
|
+
*/
|
|
32
|
+
regex: string;
|
|
33
|
+
/**
|
|
34
|
+
* Error message to display when input doesn't match the regex pattern.
|
|
35
|
+
*
|
|
36
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
37
|
+
*/
|
|
38
|
+
regexError: string;
|
|
39
|
+
/**
|
|
40
|
+
* Minimum length required for the input.
|
|
41
|
+
*
|
|
42
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
43
|
+
*/
|
|
44
|
+
minLength: number;
|
|
45
|
+
/**
|
|
46
|
+
* Error message to display when input length is less than the required minimum.
|
|
47
|
+
*
|
|
48
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
49
|
+
*/
|
|
50
|
+
minLengthError: string;
|
|
51
|
+
/**
|
|
52
|
+
* Range of values allowed for the input.
|
|
53
|
+
*
|
|
54
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
55
|
+
*/
|
|
56
|
+
range: string;
|
|
57
|
+
/**
|
|
58
|
+
* Error message to display when input value is outside the allowed range.
|
|
59
|
+
*
|
|
60
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
61
|
+
*/
|
|
62
|
+
rangeError: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
11
65
|
/**
|
|
12
66
|
* Text Form Element for the visual props editor
|
|
13
67
|
*
|
|
@@ -53,6 +107,12 @@ export interface TextInputFormDetail {
|
|
|
53
107
|
* @version SDK: 0.1 | ThoughtSpot:
|
|
54
108
|
*/
|
|
55
109
|
defaultValue?: string;
|
|
110
|
+
/**
|
|
111
|
+
* inputValidation config for input field
|
|
112
|
+
*
|
|
113
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
114
|
+
*/
|
|
115
|
+
inputValidation?: InputValidation;
|
|
56
116
|
}
|
|
57
117
|
|
|
58
118
|
/**
|
|
@@ -206,6 +266,14 @@ export interface Section {
|
|
|
206
266
|
* @version SDK: 0.1 | ThoughtSpot:
|
|
207
267
|
*/
|
|
208
268
|
alignment?: 'row' | 'column';
|
|
269
|
+
/**
|
|
270
|
+
* Defines form layout in the view for the section.
|
|
271
|
+
* default will be 'accordion' for first section if nothing specified
|
|
272
|
+
* and will be 'none' for all nested section.
|
|
273
|
+
*
|
|
274
|
+
* @version SDK: 0.0.1-alpha.3 | ThoughtSpot:
|
|
275
|
+
*/
|
|
276
|
+
layoutType?: 'accordion' | 'tab' | 'none';
|
|
209
277
|
}
|
|
210
278
|
|
|
211
279
|
/**
|