@ansible/ansible-ui-framework 2.4.2016 → 2.4.2018
Sign up to get free protection for your applications and to get access to all the features.
- package/PageDetails/PageDetailKeyValueList.d.ts +0 -1
- package/PageDialogs/BulkConfirmationDialog.d.ts +1 -1
- package/PageDialogs/useSelectDialog.d.ts +1 -1
- package/PageForm/PageFormExpandableSection.d.ts +0 -1
- package/PageNavigation/PageNavigationItem.d.ts +0 -1
- package/PageTable/PageTableColumn.d.ts +156 -156
- package/PageTable/useTableItems.d.ts +0 -1
- package/PageToolbar/PageToolbarToggleGroup.d.ts +0 -1
- package/PageWizard/PageWizardHeader.d.ts +0 -1
- package/assets/{yaml.worker-Bn_cTVvL.js → yaml.worker-Dvk3z_95.js} +265 -261
- package/components/IconButton.d.ts +0 -1
- package/components/icons/RunningIcon.d.ts +0 -1
- package/components/useIsMounted.d.ts +0 -1
- package/index.js +8347 -8366
- package/index.umd.cjs +158 -157
- package/package.json +1 -1
- package/publish/assets/yaml.worker-Dvk3z_95.d.ts +3 -0
- package/publish/index.d.ts +124 -124
- package/publish/assets/yaml.worker-Bn_cTVvL.d.ts +0 -3
@@ -16,4 +16,4 @@ export interface BulkConfirmationDialog<T extends object> {
|
|
16
16
|
isDanger?: boolean;
|
17
17
|
errorAdapter?: ErrorAdapter;
|
18
18
|
}
|
19
|
-
export declare function useBulkConfirmation<T extends object>(errorAdapter?: ErrorAdapter): (options: Omit<BulkConfirmationDialog<T>,
|
19
|
+
export declare function useBulkConfirmation<T extends object>(errorAdapter?: ErrorAdapter): (options: Omit<BulkConfirmationDialog<T>, "onConfirm" | "onClose"> & Omit<BulkActionDialogProps<T>, "onClose">) => void;
|
@@ -17,7 +17,7 @@ interface ISelectDialogOptions<T extends object, TMultiple> {
|
|
17
17
|
export declare function useSelectDialog<T extends {
|
18
18
|
id: number | string;
|
19
19
|
name: string | undefined;
|
20
|
-
}, TMultiple = false>(options: ISelectDialogOptions<T, TMultiple>): (onSelect?:
|
20
|
+
}, TMultiple = false>(options: ISelectDialogOptions<T, TMultiple>): (onSelect?: TMultiple extends true ? (item: T[]) => void : (item: T) => void, title?: string) => void;
|
21
21
|
export type SelectDialogProps<T extends object, TMultiple> = {
|
22
22
|
title: string;
|
23
23
|
open: boolean;
|
@@ -91,233 +91,233 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
91
91
|
type?: undefined;
|
92
92
|
value?: CellFn<T, string | number | boolean | string[] | null | undefined> | undefined;
|
93
93
|
cell: CellFn<T, ReactNode>;
|
94
|
-
id?: string
|
94
|
+
id?: string;
|
95
95
|
header: string;
|
96
|
-
helpText?: string
|
97
|
-
minWidth?: number
|
98
|
-
maxWidth?: number
|
99
|
-
fullWidth?: boolean
|
100
|
-
defaultSortDirection?: "
|
101
|
-
defaultSort?: boolean
|
96
|
+
helpText?: string;
|
97
|
+
minWidth?: number;
|
98
|
+
maxWidth?: number;
|
99
|
+
fullWidth?: boolean;
|
100
|
+
defaultSortDirection?: "asc" | "desc";
|
101
|
+
defaultSort?: boolean;
|
102
102
|
icon?: ((item: T) => ReactNode) | undefined;
|
103
|
-
table?:
|
104
|
-
list?:
|
105
|
-
card?:
|
106
|
-
modal?:
|
107
|
-
dashboard?:
|
108
|
-
priority?:
|
103
|
+
table?: keyof typeof ColumnTableOption;
|
104
|
+
list?: keyof typeof ColumnListOption;
|
105
|
+
card?: keyof typeof ColumnCardOption;
|
106
|
+
modal?: keyof typeof ColumnModalOption;
|
107
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
108
|
+
priority?: keyof typeof ColumnPriority;
|
109
109
|
} | {
|
110
110
|
sort: undefined;
|
111
111
|
type: "text";
|
112
112
|
value: CellFn<T, string | null | undefined>;
|
113
113
|
to?: ((item: T) => string | undefined) | undefined;
|
114
|
-
id?: string
|
114
|
+
id?: string;
|
115
115
|
header: string;
|
116
|
-
helpText?: string
|
117
|
-
minWidth?: number
|
118
|
-
maxWidth?: number
|
119
|
-
fullWidth?: boolean
|
120
|
-
defaultSortDirection?: "
|
121
|
-
defaultSort?: boolean
|
116
|
+
helpText?: string;
|
117
|
+
minWidth?: number;
|
118
|
+
maxWidth?: number;
|
119
|
+
fullWidth?: boolean;
|
120
|
+
defaultSortDirection?: "asc" | "desc";
|
121
|
+
defaultSort?: boolean;
|
122
122
|
icon?: ((item: T) => ReactNode) | undefined;
|
123
|
-
table?:
|
124
|
-
list?:
|
125
|
-
card?:
|
126
|
-
modal?:
|
127
|
-
dashboard?:
|
128
|
-
priority?:
|
123
|
+
table?: keyof typeof ColumnTableOption;
|
124
|
+
list?: keyof typeof ColumnListOption;
|
125
|
+
card?: keyof typeof ColumnCardOption;
|
126
|
+
modal?: keyof typeof ColumnModalOption;
|
127
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
128
|
+
priority?: keyof typeof ColumnPriority;
|
129
129
|
} | {
|
130
130
|
sort: undefined;
|
131
131
|
type: "description";
|
132
132
|
value: CellFn<T, string | null | undefined>;
|
133
|
-
id?: string
|
133
|
+
id?: string;
|
134
134
|
header: string;
|
135
|
-
helpText?: string
|
136
|
-
minWidth?: number
|
137
|
-
maxWidth?: number
|
138
|
-
fullWidth?: boolean
|
139
|
-
defaultSortDirection?: "
|
140
|
-
defaultSort?: boolean
|
135
|
+
helpText?: string;
|
136
|
+
minWidth?: number;
|
137
|
+
maxWidth?: number;
|
138
|
+
fullWidth?: boolean;
|
139
|
+
defaultSortDirection?: "asc" | "desc";
|
140
|
+
defaultSort?: boolean;
|
141
141
|
icon?: ((item: T) => ReactNode) | undefined;
|
142
|
-
table?:
|
143
|
-
list?:
|
144
|
-
card?:
|
145
|
-
modal?:
|
146
|
-
dashboard?:
|
147
|
-
priority?:
|
142
|
+
table?: keyof typeof ColumnTableOption;
|
143
|
+
list?: keyof typeof ColumnListOption;
|
144
|
+
card?: keyof typeof ColumnCardOption;
|
145
|
+
modal?: keyof typeof ColumnModalOption;
|
146
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
147
|
+
priority?: keyof typeof ColumnPriority;
|
148
148
|
} | {
|
149
149
|
sort: undefined;
|
150
150
|
type: "datetime";
|
151
151
|
value: CellFn<T, string | number | undefined>;
|
152
|
-
id?: string
|
152
|
+
id?: string;
|
153
153
|
header: string;
|
154
|
-
helpText?: string
|
155
|
-
minWidth?: number
|
156
|
-
maxWidth?: number
|
157
|
-
fullWidth?: boolean
|
158
|
-
defaultSortDirection?: "
|
159
|
-
defaultSort?: boolean
|
154
|
+
helpText?: string;
|
155
|
+
minWidth?: number;
|
156
|
+
maxWidth?: number;
|
157
|
+
fullWidth?: boolean;
|
158
|
+
defaultSortDirection?: "asc" | "desc";
|
159
|
+
defaultSort?: boolean;
|
160
160
|
icon?: ((item: T) => ReactNode) | undefined;
|
161
|
-
table?:
|
162
|
-
list?:
|
163
|
-
card?:
|
164
|
-
modal?:
|
165
|
-
dashboard?:
|
166
|
-
priority?:
|
161
|
+
table?: keyof typeof ColumnTableOption;
|
162
|
+
list?: keyof typeof ColumnListOption;
|
163
|
+
card?: keyof typeof ColumnCardOption;
|
164
|
+
modal?: keyof typeof ColumnModalOption;
|
165
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
166
|
+
priority?: keyof typeof ColumnPriority;
|
167
167
|
} | {
|
168
168
|
sort: undefined;
|
169
169
|
type: "labels";
|
170
170
|
value: CellFn<T, string[] | undefined>;
|
171
|
-
id?: string
|
171
|
+
id?: string;
|
172
172
|
header: string;
|
173
|
-
helpText?: string
|
174
|
-
minWidth?: number
|
175
|
-
maxWidth?: number
|
176
|
-
fullWidth?: boolean
|
177
|
-
defaultSortDirection?: "
|
178
|
-
defaultSort?: boolean
|
173
|
+
helpText?: string;
|
174
|
+
minWidth?: number;
|
175
|
+
maxWidth?: number;
|
176
|
+
fullWidth?: boolean;
|
177
|
+
defaultSortDirection?: "asc" | "desc";
|
178
|
+
defaultSort?: boolean;
|
179
179
|
icon?: ((item: T) => ReactNode) | undefined;
|
180
|
-
table?:
|
181
|
-
list?:
|
182
|
-
card?:
|
183
|
-
modal?:
|
184
|
-
dashboard?:
|
185
|
-
priority?:
|
180
|
+
table?: keyof typeof ColumnTableOption;
|
181
|
+
list?: keyof typeof ColumnListOption;
|
182
|
+
card?: keyof typeof ColumnCardOption;
|
183
|
+
modal?: keyof typeof ColumnModalOption;
|
184
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
185
|
+
priority?: keyof typeof ColumnPriority;
|
186
186
|
} | {
|
187
187
|
sort: undefined;
|
188
188
|
type: "count";
|
189
189
|
value: CellFn<T, number | undefined>;
|
190
|
-
id?: string
|
190
|
+
id?: string;
|
191
191
|
header: string;
|
192
|
-
helpText?: string
|
193
|
-
minWidth?: number
|
194
|
-
maxWidth?: number
|
195
|
-
fullWidth?: boolean
|
196
|
-
defaultSortDirection?: "
|
197
|
-
defaultSort?: boolean
|
192
|
+
helpText?: string;
|
193
|
+
minWidth?: number;
|
194
|
+
maxWidth?: number;
|
195
|
+
fullWidth?: boolean;
|
196
|
+
defaultSortDirection?: "asc" | "desc";
|
197
|
+
defaultSort?: boolean;
|
198
198
|
icon?: ((item: T) => ReactNode) | undefined;
|
199
|
-
table?:
|
200
|
-
list?:
|
201
|
-
card?:
|
202
|
-
modal?:
|
203
|
-
dashboard?:
|
204
|
-
priority?:
|
199
|
+
table?: keyof typeof ColumnTableOption;
|
200
|
+
list?: keyof typeof ColumnListOption;
|
201
|
+
card?: keyof typeof ColumnCardOption;
|
202
|
+
modal?: keyof typeof ColumnModalOption;
|
203
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
204
|
+
priority?: keyof typeof ColumnPriority;
|
205
205
|
})[];
|
206
206
|
export declare function useColumnsWithoutExpandedRow<T extends object>(columns: ITableColumn<T>[]): ({
|
207
207
|
table: "hidden" | "description" | undefined;
|
208
208
|
type?: undefined;
|
209
209
|
value?: CellFn<T, string | number | boolean | string[] | null | undefined> | undefined;
|
210
210
|
cell: CellFn<T, ReactNode>;
|
211
|
-
id?: string
|
211
|
+
id?: string;
|
212
212
|
header: string;
|
213
|
-
helpText?: string
|
214
|
-
minWidth?: number
|
215
|
-
maxWidth?: number
|
216
|
-
fullWidth?: boolean
|
217
|
-
sort?: string
|
218
|
-
defaultSortDirection?: "
|
219
|
-
defaultSort?: boolean
|
213
|
+
helpText?: string;
|
214
|
+
minWidth?: number;
|
215
|
+
maxWidth?: number;
|
216
|
+
fullWidth?: boolean;
|
217
|
+
sort?: string;
|
218
|
+
defaultSortDirection?: "asc" | "desc";
|
219
|
+
defaultSort?: boolean;
|
220
220
|
icon?: ((item: T) => ReactNode) | undefined;
|
221
|
-
list?:
|
222
|
-
card?:
|
223
|
-
modal?:
|
224
|
-
dashboard?:
|
225
|
-
priority?:
|
221
|
+
list?: keyof typeof ColumnListOption;
|
222
|
+
card?: keyof typeof ColumnCardOption;
|
223
|
+
modal?: keyof typeof ColumnModalOption;
|
224
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
225
|
+
priority?: keyof typeof ColumnPriority;
|
226
226
|
} | {
|
227
227
|
table: "hidden" | "description" | undefined;
|
228
228
|
type: "text";
|
229
229
|
value: CellFn<T, string | null | undefined>;
|
230
230
|
to?: ((item: T) => string | undefined) | undefined;
|
231
|
-
id?: string
|
231
|
+
id?: string;
|
232
232
|
header: string;
|
233
|
-
helpText?: string
|
234
|
-
minWidth?: number
|
235
|
-
maxWidth?: number
|
236
|
-
fullWidth?: boolean
|
237
|
-
sort?: string
|
238
|
-
defaultSortDirection?: "
|
239
|
-
defaultSort?: boolean
|
233
|
+
helpText?: string;
|
234
|
+
minWidth?: number;
|
235
|
+
maxWidth?: number;
|
236
|
+
fullWidth?: boolean;
|
237
|
+
sort?: string;
|
238
|
+
defaultSortDirection?: "asc" | "desc";
|
239
|
+
defaultSort?: boolean;
|
240
240
|
icon?: ((item: T) => ReactNode) | undefined;
|
241
|
-
list?:
|
242
|
-
card?:
|
243
|
-
modal?:
|
244
|
-
dashboard?:
|
245
|
-
priority?:
|
241
|
+
list?: keyof typeof ColumnListOption;
|
242
|
+
card?: keyof typeof ColumnCardOption;
|
243
|
+
modal?: keyof typeof ColumnModalOption;
|
244
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
245
|
+
priority?: keyof typeof ColumnPriority;
|
246
246
|
} | {
|
247
247
|
table: "hidden" | "description" | undefined;
|
248
248
|
type: "description";
|
249
249
|
value: CellFn<T, string | null | undefined>;
|
250
|
-
id?: string
|
250
|
+
id?: string;
|
251
251
|
header: string;
|
252
|
-
helpText?: string
|
253
|
-
minWidth?: number
|
254
|
-
maxWidth?: number
|
255
|
-
fullWidth?: boolean
|
256
|
-
sort?: string
|
257
|
-
defaultSortDirection?: "
|
258
|
-
defaultSort?: boolean
|
252
|
+
helpText?: string;
|
253
|
+
minWidth?: number;
|
254
|
+
maxWidth?: number;
|
255
|
+
fullWidth?: boolean;
|
256
|
+
sort?: string;
|
257
|
+
defaultSortDirection?: "asc" | "desc";
|
258
|
+
defaultSort?: boolean;
|
259
259
|
icon?: ((item: T) => ReactNode) | undefined;
|
260
|
-
list?:
|
261
|
-
card?:
|
262
|
-
modal?:
|
263
|
-
dashboard?:
|
264
|
-
priority?:
|
260
|
+
list?: keyof typeof ColumnListOption;
|
261
|
+
card?: keyof typeof ColumnCardOption;
|
262
|
+
modal?: keyof typeof ColumnModalOption;
|
263
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
264
|
+
priority?: keyof typeof ColumnPriority;
|
265
265
|
} | {
|
266
266
|
table: "hidden" | "description" | undefined;
|
267
267
|
type: "datetime";
|
268
268
|
value: CellFn<T, string | number | undefined>;
|
269
|
-
id?: string
|
269
|
+
id?: string;
|
270
270
|
header: string;
|
271
|
-
helpText?: string
|
272
|
-
minWidth?: number
|
273
|
-
maxWidth?: number
|
274
|
-
fullWidth?: boolean
|
275
|
-
sort?: string
|
276
|
-
defaultSortDirection?: "
|
277
|
-
defaultSort?: boolean
|
271
|
+
helpText?: string;
|
272
|
+
minWidth?: number;
|
273
|
+
maxWidth?: number;
|
274
|
+
fullWidth?: boolean;
|
275
|
+
sort?: string;
|
276
|
+
defaultSortDirection?: "asc" | "desc";
|
277
|
+
defaultSort?: boolean;
|
278
278
|
icon?: ((item: T) => ReactNode) | undefined;
|
279
|
-
list?:
|
280
|
-
card?:
|
281
|
-
modal?:
|
282
|
-
dashboard?:
|
283
|
-
priority?:
|
279
|
+
list?: keyof typeof ColumnListOption;
|
280
|
+
card?: keyof typeof ColumnCardOption;
|
281
|
+
modal?: keyof typeof ColumnModalOption;
|
282
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
283
|
+
priority?: keyof typeof ColumnPriority;
|
284
284
|
} | {
|
285
285
|
table: "hidden" | "description" | undefined;
|
286
286
|
type: "labels";
|
287
287
|
value: CellFn<T, string[] | undefined>;
|
288
|
-
id?: string
|
288
|
+
id?: string;
|
289
289
|
header: string;
|
290
|
-
helpText?: string
|
291
|
-
minWidth?: number
|
292
|
-
maxWidth?: number
|
293
|
-
fullWidth?: boolean
|
294
|
-
sort?: string
|
295
|
-
defaultSortDirection?: "
|
296
|
-
defaultSort?: boolean
|
290
|
+
helpText?: string;
|
291
|
+
minWidth?: number;
|
292
|
+
maxWidth?: number;
|
293
|
+
fullWidth?: boolean;
|
294
|
+
sort?: string;
|
295
|
+
defaultSortDirection?: "asc" | "desc";
|
296
|
+
defaultSort?: boolean;
|
297
297
|
icon?: ((item: T) => ReactNode) | undefined;
|
298
|
-
list?:
|
299
|
-
card?:
|
300
|
-
modal?:
|
301
|
-
dashboard?:
|
302
|
-
priority?:
|
298
|
+
list?: keyof typeof ColumnListOption;
|
299
|
+
card?: keyof typeof ColumnCardOption;
|
300
|
+
modal?: keyof typeof ColumnModalOption;
|
301
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
302
|
+
priority?: keyof typeof ColumnPriority;
|
303
303
|
} | {
|
304
304
|
table: "hidden" | "description" | undefined;
|
305
305
|
type: "count";
|
306
306
|
value: CellFn<T, number | undefined>;
|
307
|
-
id?: string
|
307
|
+
id?: string;
|
308
308
|
header: string;
|
309
|
-
helpText?: string
|
310
|
-
minWidth?: number
|
311
|
-
maxWidth?: number
|
312
|
-
fullWidth?: boolean
|
313
|
-
sort?: string
|
314
|
-
defaultSortDirection?: "
|
315
|
-
defaultSort?: boolean
|
309
|
+
helpText?: string;
|
310
|
+
minWidth?: number;
|
311
|
+
maxWidth?: number;
|
312
|
+
fullWidth?: boolean;
|
313
|
+
sort?: string;
|
314
|
+
defaultSortDirection?: "asc" | "desc";
|
315
|
+
defaultSort?: boolean;
|
316
316
|
icon?: ((item: T) => ReactNode) | undefined;
|
317
|
-
list?:
|
318
|
-
card?:
|
319
|
-
modal?:
|
320
|
-
dashboard?:
|
321
|
-
priority?:
|
317
|
+
list?: keyof typeof ColumnListOption;
|
318
|
+
card?: keyof typeof ColumnCardOption;
|
319
|
+
modal?: keyof typeof ColumnModalOption;
|
320
|
+
dashboard?: keyof typeof ColumnDashboardOption;
|
321
|
+
priority?: keyof typeof ColumnPriority;
|
322
322
|
})[];
|
323
323
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { ToolbarToggleGroupProps } from '@patternfly/react-core';
|
3
2
|
import { SetRequired } from 'type-fest';
|
4
3
|
export declare function PageToolbarToggleGroup(props: SetRequired<ToolbarToggleGroupProps, 'id'>): import("react/jsx-runtime").JSX.Element;
|