@devtron-labs/devtron-fe-common-lib 0.2.9-beta-2 → 0.2.10
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/dist/Common/CodeEditor/types.d.ts +1 -0
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +5 -0
- package/dist/Common/RJSF/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +273 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +157 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +24 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -55
- package/dist/Shared/Components/SelectPicker/common.d.ts +8 -11
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +7 -80
- package/dist/Shared/Components/SelectPicker/utils.d.ts +3 -5
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/{cssMode-f51aca0f.js → cssMode-c662d6e3.js} +1 -1
- package/dist/{freemarker2-ffaae3eb.js → freemarker2-aa7e1cef.js} +1 -1
- package/dist/{handlebars-f016e02f.js → handlebars-4c137fcc.js} +1 -1
- package/dist/{html-b053da28.js → html-7d035382.js} +1 -1
- package/dist/{htmlMode-bfa76cea.js → htmlMode-62a2295e.js} +1 -1
- package/dist/{index-bf859529.js → index-c1965425.js} +38469 -42419
- package/dist/index.js +431 -426
- package/dist/{javascript-40d22d1b.js → javascript-164f5d29.js} +1 -1
- package/dist/{jsonMode-e6d67eb9.js → jsonMode-fe8f4e94.js} +1 -1
- package/dist/{liquid-82aa3bae.js → liquid-f1e74cbe.js} +1 -1
- package/dist/{mdx-b09f1c25.js → mdx-5c57e38c.js} +1 -1
- package/dist/{python-171eb4e4.js → python-d843b478.js} +1 -1
- package/dist/{razor-9ec2cf31.js → razor-cc78fc83.js} +1 -1
- package/dist/{tsMode-ef5c98ad.js → tsMode-38f892b6.js} +1 -1
- package/dist/{typescript-59e4e181.js → typescript-7d752a06.js} +1 -1
- package/dist/{xml-cf88fa42.js → xml-4bc85e14.js} +1 -1
- package/dist/{yaml-6991dfc0.js → yaml-c61dd5b2.js} +1 -1
- package/package.json +5 -5
- package/dist/Shared/Components/SelectPicker/FilterSelectPicker.d.ts +0 -4
|
@@ -43,6 +43,7 @@ export declare const URLS: {
|
|
|
43
43
|
GLOBAL_CONFIG_DOCKER: string;
|
|
44
44
|
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
|
45
45
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
|
46
|
+
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
|
46
47
|
NETWORK_STATUS_INTERFACE: string;
|
|
47
48
|
};
|
|
48
49
|
export declare const ROUTES: {
|
|
@@ -85,6 +86,7 @@ export declare const ROUTES: {
|
|
|
85
86
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
86
87
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
87
88
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
89
|
+
DEPLOYMENT_CHARTS_LIST: string;
|
|
88
90
|
CONFIG_DATA: string;
|
|
89
91
|
};
|
|
90
92
|
export declare enum KEY_VALUE {
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: a
|
|
|
49
49
|
* @param url URL to which the search params needs to be added
|
|
50
50
|
* @param params Object for the search parameters
|
|
51
51
|
*/
|
|
52
|
-
export declare const getUrlWithSearchParams: (url: string, params?: Record<
|
|
52
|
+
export declare const getUrlWithSearchParams: <T extends string | number = string | number>(url: string, params?: Partial<Record<T, any>>) => string;
|
|
53
53
|
/**
|
|
54
54
|
* Custom exception logger function for logging errors to sentry
|
|
55
55
|
*/
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"args": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "Arguments",
|
|
7
|
+
"properties": {
|
|
8
|
+
"value": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"title": "Value",
|
|
14
|
+
"hidden": {
|
|
15
|
+
"condition": false,
|
|
16
|
+
"match": "enabled"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"enabled": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"title": "Enabled"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"command": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"title": "Command",
|
|
28
|
+
"properties": {
|
|
29
|
+
"value": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"title": "Value",
|
|
35
|
+
"hidden": {
|
|
36
|
+
"condition": false,
|
|
37
|
+
"match": "enabled"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"enabled": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"title": "Enabled"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"ingress": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"title": "HTTP Requests Routes",
|
|
49
|
+
"properties": {
|
|
50
|
+
"className": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"title": "Class",
|
|
53
|
+
"hidden": {
|
|
54
|
+
"condition": false,
|
|
55
|
+
"match": "enabled"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"hosts": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"host": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"paths": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"hidden": {
|
|
75
|
+
"condition": false,
|
|
76
|
+
"match": "enabled"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"enabled": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"title": "Enable HTTP Requests Routes"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"resources": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"title": "Resources (CPU & RAM)",
|
|
88
|
+
"properties": {
|
|
89
|
+
"limits": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"required": ["cpu", "memory"],
|
|
92
|
+
"properties": {
|
|
93
|
+
"cpu": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"memory": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"requests": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"cpu": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"memory": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"autoscaling": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"title": "Autoscaling",
|
|
117
|
+
"properties": {
|
|
118
|
+
"MaxReplicas": {
|
|
119
|
+
"type": ["integer", "string"],
|
|
120
|
+
"title": "Maximum Replicas",
|
|
121
|
+
"pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
|
|
122
|
+
"hidden": {
|
|
123
|
+
"condition": false,
|
|
124
|
+
"match": "enabled"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"MinReplicas": {
|
|
128
|
+
"type": ["integer", "string"],
|
|
129
|
+
"title": "Minimum Replicas",
|
|
130
|
+
"pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
|
|
131
|
+
"hidden": {
|
|
132
|
+
"condition": false,
|
|
133
|
+
"match": "enabled"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"TargetCPUUtilizationPercentage": {
|
|
137
|
+
"type": ["integer", "string"],
|
|
138
|
+
"title": "Target CPU Utilization Percentage",
|
|
139
|
+
"pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
|
|
140
|
+
"hidden": {
|
|
141
|
+
"condition": false,
|
|
142
|
+
"match": "enabled"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"TargetMemoryUtilizationPercentage": {
|
|
146
|
+
"type": ["integer", "string"],
|
|
147
|
+
"title": "TargetMemoryUtilizationPercentage",
|
|
148
|
+
"pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
|
|
149
|
+
"hidden": {
|
|
150
|
+
"condition": false,
|
|
151
|
+
"match": "enabled"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"enabled": {
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"title": "Enabled"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"EnvVariables": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"key": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"value": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"title": "Environment Variables"
|
|
174
|
+
},
|
|
175
|
+
"ContainerPort": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"port": {
|
|
181
|
+
"type": ["integer", "string"]
|
|
182
|
+
},
|
|
183
|
+
"servicePort": {
|
|
184
|
+
"type": ["integer", "string"]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"required": ["port", "servicePort"]
|
|
188
|
+
},
|
|
189
|
+
"title": "Container Port"
|
|
190
|
+
},
|
|
191
|
+
"service": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"title": "Service",
|
|
194
|
+
"properties": {
|
|
195
|
+
"type": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"title": "Type"
|
|
198
|
+
},
|
|
199
|
+
"annotations": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"title": "Annotations"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"ReadinessProbe": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"title": "Readiness Probe",
|
|
211
|
+
"properties": {
|
|
212
|
+
"Path": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"port": {
|
|
216
|
+
"type": ["integer", "string"]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"LivenessProbe": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"title": "Liveness Probe",
|
|
223
|
+
"properties": {
|
|
224
|
+
"Path": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"port": {
|
|
228
|
+
"type": ["integer", "string"]
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"tolerations": {
|
|
233
|
+
"type": "array",
|
|
234
|
+
"items": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"key": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"operator": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"pattern": "Equal|Exists"
|
|
243
|
+
},
|
|
244
|
+
"value": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"effect": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"pattern": "NoSchedule|PreferNoSchedule|NoExecute"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"serviceAccount": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"properties": {
|
|
257
|
+
"create": {
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
"name": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"hidden": {
|
|
263
|
+
"condition": false,
|
|
264
|
+
"match": "create"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
;
|
|
272
|
+
|
|
273
|
+
export default _default;
|
package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"args": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "Arguments",
|
|
7
|
+
"properties": {
|
|
8
|
+
"value": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"title": "Value",
|
|
14
|
+
"hidden": {
|
|
15
|
+
"condition": false,
|
|
16
|
+
"match": "enabled"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"enabled": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"title": "Enabled"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"command": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"title": "Command",
|
|
28
|
+
"properties": {
|
|
29
|
+
"value": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"title": "Value",
|
|
35
|
+
"hidden": {
|
|
36
|
+
"condition": false,
|
|
37
|
+
"match": "enabled"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"enabled": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"title": "Enabled"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"resources": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"title": "Resources (CPU & RAM)",
|
|
49
|
+
"properties": {
|
|
50
|
+
"limits": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": ["cpu", "memory"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"cpu": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"memory": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"requests": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"cpu": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"memory": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"EnvVariables": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"key": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"value": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"title": "Environment Variables"
|
|
89
|
+
},
|
|
90
|
+
"service": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"title": "Service",
|
|
93
|
+
"properties": {
|
|
94
|
+
"type": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"title": "Type"
|
|
97
|
+
},
|
|
98
|
+
"annotations": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"title": "Annotations"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"ReadinessProbe": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"title": "Readiness Probe",
|
|
110
|
+
"properties": {
|
|
111
|
+
"Path": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"port": {
|
|
115
|
+
"type": ["integer", "string"]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"LivenessProbe": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"title": "Liveness Probe",
|
|
122
|
+
"properties": {
|
|
123
|
+
"Path": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"port": {
|
|
127
|
+
"type": ["integer", "string"]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"tolerations": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"key": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"operator": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"pattern": "Equal|Exists"
|
|
142
|
+
},
|
|
143
|
+
"value": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"effect": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"pattern": "NoSchedule|PreferNoSchedule|NoExecute"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
;
|
|
156
|
+
|
|
157
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type DeploymentChartListDTO = Array<{
|
|
2
|
+
id: number;
|
|
3
|
+
chartDescription?: string;
|
|
4
|
+
isUserUploaded: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
}>;
|
|
8
|
+
interface DeploymentChartVersionsType {
|
|
9
|
+
id: number;
|
|
10
|
+
version: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DeploymentChartType {
|
|
14
|
+
name: string;
|
|
15
|
+
isUserUploaded: boolean;
|
|
16
|
+
versions: DeploymentChartVersionsType[];
|
|
17
|
+
}
|
|
18
|
+
export declare enum DEVTRON_DEPLOYMENT_CHART_NAMES {
|
|
19
|
+
JOB_AND_CRONJOB_CHART_NAME = "Job & CronJob",
|
|
20
|
+
ROLLOUT_DEPLOYMENT = "Rollout Deployment",
|
|
21
|
+
DEPLOYMENT = "Deployment",
|
|
22
|
+
STATEFUL_SET = "StatefulSet"
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -80,60 +80,6 @@ import { SelectPickerProps } from './type';
|
|
|
80
80
|
* ```tsx
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
|
-
* @example Multi Select
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <SelectPicker ... isMulti />
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* @example Creatable Multi Select
|
|
89
|
-
* ```tsx
|
|
90
|
-
* <SelectPicker
|
|
91
|
-
* ...
|
|
92
|
-
* isMulti
|
|
93
|
-
* multiSelectProps={{
|
|
94
|
-
* isCreatable: true
|
|
95
|
-
* }}
|
|
96
|
-
* />
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @example Multi Select with group heading selectable
|
|
100
|
-
* ```tsx
|
|
101
|
-
* <SelectPicker
|
|
102
|
-
* ...
|
|
103
|
-
* isMulti
|
|
104
|
-
* multiSelectProps={{
|
|
105
|
-
* isGroupHeadingSelectable: true
|
|
106
|
-
* }}
|
|
107
|
-
* />
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
110
|
-
* @example Multi Select with selected option validator
|
|
111
|
-
* ```tsx
|
|
112
|
-
* <SelectPicker
|
|
113
|
-
* ...
|
|
114
|
-
* isMulti
|
|
115
|
-
* multiSelectProps={{
|
|
116
|
-
* getIsOptionValid: (option) => boolean
|
|
117
|
-
* }}
|
|
118
|
-
* />
|
|
119
|
-
* ```
|
|
120
|
-
*
|
|
121
|
-
* @example Custom options rendering support (menuIsOpen needs to be handled by consumer)
|
|
122
|
-
* ```tsx
|
|
123
|
-
* <SelectPicker
|
|
124
|
-
* ...
|
|
125
|
-
* shouldRenderCustomOptions
|
|
126
|
-
* renderCustomOptions={() => <div />}
|
|
127
|
-
* />
|
|
128
|
-
* ```
|
|
129
|
-
*
|
|
130
|
-
* @example Align the menu at the right most end
|
|
131
|
-
* ```tsx
|
|
132
|
-
* <SelectPicker
|
|
133
|
-
* ...
|
|
134
|
-
* shouldMenuAlignRight
|
|
135
|
-
* />
|
|
136
|
-
* ```
|
|
137
83
|
*/
|
|
138
|
-
declare const SelectPicker:
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, variant, ...props }: SelectPickerProps) => JSX.Element;
|
|
139
85
|
export default SelectPicker;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps, ValueContainerProps, MenuListProps
|
|
2
|
-
import {
|
|
1
|
+
import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps, ValueContainerProps, MenuListProps } from 'react-select';
|
|
2
|
+
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const SelectPickerDropdownIndicator:
|
|
5
|
-
export declare const SelectPickerClearIndicator:
|
|
6
|
-
export declare const SelectPickerControl:
|
|
7
|
-
export declare const SelectPickerValueContainer:
|
|
4
|
+
export declare const SelectPickerDropdownIndicator: (props: DropdownIndicatorProps<SelectPickerOptionType>) => JSX.Element;
|
|
5
|
+
export declare const SelectPickerClearIndicator: (props: ClearIndicatorProps<SelectPickerOptionType>) => JSX.Element;
|
|
6
|
+
export declare const SelectPickerControl: ({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'icon' | 'showSelectedOptionIcon'>) => JSX.Element;
|
|
7
|
+
export declare const SelectPickerValueContainer: ({ showSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'showSelectedOptionsCount'>) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
9
|
-
export declare const SelectPickerOption:
|
|
10
|
-
export declare const SelectPickerMenuList:
|
|
11
|
-
export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
|
12
|
-
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
|
13
|
-
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
|
9
|
+
export declare const SelectPickerOption: ({ disableDescriptionEllipsis }: SelectPickerProps) => (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
10
|
+
export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
|