File tree Expand file tree Collapse file tree 8 files changed +77
-4
lines changed Expand file tree Collapse file tree 8 files changed +77
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @devtron-labs/devtron-fe-common-lib" ,
3
- "version" : " 1.18.1-pre-3 " ,
3
+ "version" : " 1.18.1-pre-4 " ,
4
4
"description" : " Supporting common component library" ,
5
5
"type" : " module" ,
6
6
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export const SelectWidget = (props: WidgetProps) => {
33
33
onBlur,
34
34
onFocus,
35
35
placeholder,
36
+ schema,
36
37
} = props
37
38
const { enumOptions : selectOptions = [ ] } = options
38
39
const emptyValue = multiple ? [ ] : null
@@ -57,7 +58,7 @@ export const SelectWidget = (props: WidgetProps) => {
57
58
options = { selectOptions }
58
59
onBlur = { ( ) => onBlur ( id , value ) }
59
60
onFocus = { ( ) => onFocus ( id , value ) }
60
- placeholder = { placeholder || PLACEHOLDERS . SELECT }
61
+ placeholder = { schema . placeholder || placeholder || PLACEHOLDERS . SELECT }
61
62
isDisabled = { disabled || readonly }
62
63
menuPortalTarget = { document . getElementById ( RJSF_FORM_SELECT_PORTAL_TARGET_ID ) }
63
64
menuPosition = 'fixed'
Original file line number Diff line number Diff line change
1
+ export * from './types'
Original file line number Diff line number Diff line change
1
+ export interface BulkEditConfigV2Type {
2
+ gvk : string
3
+ readme : string
4
+ schema : Record < string , any >
5
+ }
6
+
7
+ export interface AppEnvDetail {
8
+ appName : string
9
+ envName ?: string
10
+ message : string
11
+ }
12
+
13
+ export interface ObjectsWithAppEnvDetail extends AppEnvDetail {
14
+ names : string [ ]
15
+ }
16
+
17
+ export interface DeploymentTemplateResponse {
18
+ message : string [ ]
19
+ failure : AppEnvDetail [ ]
20
+ successful : AppEnvDetail [ ]
21
+ }
22
+
23
+ export interface CmCsResponse {
24
+ message : string [ ]
25
+ failure : ObjectsWithAppEnvDetail [ ]
26
+ successful : ObjectsWithAppEnvDetail [ ]
27
+ }
28
+
29
+ export interface BulkEditResponseType {
30
+ deploymentTemplate ?: DeploymentTemplateResponse
31
+ configMap ?: CmCsResponse
32
+ secret ?: CmCsResponse
33
+ }
34
+
35
+ export interface ImpactedDeploymentTemplate {
36
+ appId ?: number
37
+ envId ?: number
38
+ appName : string
39
+ envName ?: string
40
+ }
41
+
42
+ export interface ImpactedCmCs {
43
+ appId ?: number
44
+ envId ?: number
45
+ appName : string
46
+ envName ?: string
47
+ names : string [ ]
48
+ }
49
+
50
+ export interface ImpactedObjectsType {
51
+ deploymentTemplate ?: ImpactedDeploymentTemplate [ ]
52
+ configMap ?: ImpactedCmCs [ ]
53
+ secret ?: ImpactedCmCs [ ]
54
+ }
55
+
56
+ export enum BulkEditVersion {
57
+ v1 = 'batch/v1beta1' ,
58
+ v2 = 'batch/v1beta2' ,
59
+ }
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
export * from './Applications'
18
+ export * from './BulkEdit'
18
19
export * from './GlobalConfigurations'
19
20
export * from './ResourceBrowser'
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ import { ReactComponent as ICPencil } from '@IconsV2/ic-pencil.svg'
170
170
import { ReactComponent as ICPlayOutline } from '@IconsV2/ic-play-outline.svg'
171
171
import { ReactComponent as ICQuay } from '@IconsV2/ic-quay.svg'
172
172
import { ReactComponent as ICQuote } from '@IconsV2/ic-quote.svg'
173
+ import { ReactComponent as ICResizeHandle } from '@IconsV2/ic-resize-handle.svg'
173
174
import { ReactComponent as ICRocketGear } from '@IconsV2/ic-rocket-gear.svg'
174
175
import { ReactComponent as ICRocketLaunch } from '@IconsV2/ic-rocket-launch.svg'
175
176
import { ReactComponent as ICSelected } from '@IconsV2/ic-selected.svg'
@@ -395,6 +396,7 @@ export const iconMap = {
395
396
'ic-play-outline' : ICPlayOutline ,
396
397
'ic-quay' : ICQuay ,
397
398
'ic-quote' : ICQuote ,
399
+ 'ic-resize-handle' : ICResizeHandle ,
398
400
'ic-rocket-gear' : ICRocketGear ,
399
401
'ic-rocket-launch' : ICRocketLaunch ,
400
402
'ic-selected' : ICSelected ,
You can’t perform that action at this time.
0 commit comments