@ansible/ansible-ui-framework 2.4.2016 → 2.4.2017

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type KeyValue = {
3
2
  key: string;
4
3
  value: string;
@@ -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>, 'onConfirm' | 'onClose'> & Omit<BulkActionDialogProps<T>, 'onClose'>) => void;
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?: (TMultiple extends true ? (item: T[]) => void : (item: T) => void) | undefined, title?: string) => void;
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IPageFormExpandableSectionProps {
3
2
  children: React.ReactNode;
4
3
  singleColumn?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface PageNavigationGroup {
3
2
  id?: string;
4
3
  label?: string;
@@ -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 | undefined;
94
+ id?: string;
95
95
  header: string;
96
- helpText?: string | undefined;
97
- minWidth?: number | undefined;
98
- maxWidth?: number | undefined;
99
- fullWidth?: boolean | undefined;
100
- defaultSortDirection?: "desc" | "asc" | undefined;
101
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
104
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
105
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
106
- modal?: "hidden" | undefined;
107
- dashboard?: "hidden" | undefined;
108
- priority?: "last" | undefined;
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 | undefined;
114
+ id?: string;
115
115
  header: string;
116
- helpText?: string | undefined;
117
- minWidth?: number | undefined;
118
- maxWidth?: number | undefined;
119
- fullWidth?: boolean | undefined;
120
- defaultSortDirection?: "desc" | "asc" | undefined;
121
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
124
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
125
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
126
- modal?: "hidden" | undefined;
127
- dashboard?: "hidden" | undefined;
128
- priority?: "last" | undefined;
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 | undefined;
133
+ id?: string;
134
134
  header: string;
135
- helpText?: string | undefined;
136
- minWidth?: number | undefined;
137
- maxWidth?: number | undefined;
138
- fullWidth?: boolean | undefined;
139
- defaultSortDirection?: "desc" | "asc" | undefined;
140
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
143
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
144
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
145
- modal?: "hidden" | undefined;
146
- dashboard?: "hidden" | undefined;
147
- priority?: "last" | undefined;
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 | undefined;
152
+ id?: string;
153
153
  header: string;
154
- helpText?: string | undefined;
155
- minWidth?: number | undefined;
156
- maxWidth?: number | undefined;
157
- fullWidth?: boolean | undefined;
158
- defaultSortDirection?: "desc" | "asc" | undefined;
159
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
162
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
163
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
164
- modal?: "hidden" | undefined;
165
- dashboard?: "hidden" | undefined;
166
- priority?: "last" | undefined;
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 | undefined;
171
+ id?: string;
172
172
  header: string;
173
- helpText?: string | undefined;
174
- minWidth?: number | undefined;
175
- maxWidth?: number | undefined;
176
- fullWidth?: boolean | undefined;
177
- defaultSortDirection?: "desc" | "asc" | undefined;
178
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
181
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
182
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
183
- modal?: "hidden" | undefined;
184
- dashboard?: "hidden" | undefined;
185
- priority?: "last" | undefined;
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 | undefined;
190
+ id?: string;
191
191
  header: string;
192
- helpText?: string | undefined;
193
- minWidth?: number | undefined;
194
- maxWidth?: number | undefined;
195
- fullWidth?: boolean | undefined;
196
- defaultSortDirection?: "desc" | "asc" | undefined;
197
- defaultSort?: boolean | undefined;
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?: "hidden" | "expanded" | "description" | undefined;
200
- list?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
201
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
202
- modal?: "hidden" | undefined;
203
- dashboard?: "hidden" | undefined;
204
- priority?: "last" | undefined;
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 | undefined;
211
+ id?: string;
212
212
  header: string;
213
- helpText?: string | undefined;
214
- minWidth?: number | undefined;
215
- maxWidth?: number | undefined;
216
- fullWidth?: boolean | undefined;
217
- sort?: string | undefined;
218
- defaultSortDirection?: "desc" | "asc" | undefined;
219
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
222
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
223
- modal?: "hidden" | undefined;
224
- dashboard?: "hidden" | undefined;
225
- priority?: "last" | undefined;
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 | undefined;
231
+ id?: string;
232
232
  header: string;
233
- helpText?: string | undefined;
234
- minWidth?: number | undefined;
235
- maxWidth?: number | undefined;
236
- fullWidth?: boolean | undefined;
237
- sort?: string | undefined;
238
- defaultSortDirection?: "desc" | "asc" | undefined;
239
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
242
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
243
- modal?: "hidden" | undefined;
244
- dashboard?: "hidden" | undefined;
245
- priority?: "last" | undefined;
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 | undefined;
250
+ id?: string;
251
251
  header: string;
252
- helpText?: string | undefined;
253
- minWidth?: number | undefined;
254
- maxWidth?: number | undefined;
255
- fullWidth?: boolean | undefined;
256
- sort?: string | undefined;
257
- defaultSortDirection?: "desc" | "asc" | undefined;
258
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
261
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
262
- modal?: "hidden" | undefined;
263
- dashboard?: "hidden" | undefined;
264
- priority?: "last" | undefined;
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 | undefined;
269
+ id?: string;
270
270
  header: string;
271
- helpText?: string | undefined;
272
- minWidth?: number | undefined;
273
- maxWidth?: number | undefined;
274
- fullWidth?: boolean | undefined;
275
- sort?: string | undefined;
276
- defaultSortDirection?: "desc" | "asc" | undefined;
277
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
280
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
281
- modal?: "hidden" | undefined;
282
- dashboard?: "hidden" | undefined;
283
- priority?: "last" | undefined;
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 | undefined;
288
+ id?: string;
289
289
  header: string;
290
- helpText?: string | undefined;
291
- minWidth?: number | undefined;
292
- maxWidth?: number | undefined;
293
- fullWidth?: boolean | undefined;
294
- sort?: string | undefined;
295
- defaultSortDirection?: "desc" | "asc" | undefined;
296
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
299
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
300
- modal?: "hidden" | undefined;
301
- dashboard?: "hidden" | undefined;
302
- priority?: "last" | undefined;
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 | undefined;
307
+ id?: string;
308
308
  header: string;
309
- helpText?: string | undefined;
310
- minWidth?: number | undefined;
311
- maxWidth?: number | undefined;
312
- fullWidth?: boolean | undefined;
313
- sort?: string | undefined;
314
- defaultSortDirection?: "desc" | "asc" | undefined;
315
- defaultSort?: boolean | undefined;
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?: "name" | "hidden" | "description" | "primary" | "secondary" | "subtitle" | undefined;
318
- card?: "name" | "hidden" | "description" | "subtitle" | undefined;
319
- modal?: "hidden" | undefined;
320
- dashboard?: "hidden" | undefined;
321
- priority?: "last" | undefined;
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 debounce from 'debounce';
3
2
  export declare function useTableItems<T extends object>(items: T[], keyFn: (item: T) => string | number, defaults?: {
4
3
  search?: string | null;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function PageWizardHeader(props: {
3
2
  title: React.ReactNode;
4
3
  onClose?: () => void;