@ansible/ansible-ui-framework 2.4.358 → 2.4.360
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageInputs/PageAsyncMultiSelect.d.ts +2 -1
- package/framework/PageToolbar/PageToolbarFilter.d.ts +4 -2
- package/framework/PageToolbar/PageToolbarFilters/ToolbarAsyncMultiSelectFilter.d.ts +15 -0
- package/framework/publish/index.d.ts +80 -80
- package/index.js +13383 -13271
- package/index.umd.cjs +224 -224
- package/package.json +1 -1
@@ -4,8 +4,9 @@ export interface PageAsyncMultiSelectQueryResult<ValueT> {
|
|
4
4
|
total: number;
|
5
5
|
options: PageSelectOption<ValueT>[];
|
6
6
|
}
|
7
|
+
export type PageAsyncMultiSelectOptionsFn<ValueT> = (page: number, signal: AbortSignal) => Promise<PageAsyncMultiSelectQueryResult<ValueT>>;
|
7
8
|
export interface PageAsyncMultiSelectProps<ValueT> extends Omit<PageMultiSelectProps<ValueT>, 'options'> {
|
8
|
-
queryOptions:
|
9
|
+
queryOptions: PageAsyncMultiSelectOptionsFn<ValueT>;
|
9
10
|
queryPlaceholder?: string;
|
10
11
|
queryErrorText?: string | ((error: Error) => string);
|
11
12
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { IToolbarAsyncSingleSelectFilter } from './PageToolbarFilters/ToolbarAsyncSingleSelectFilter';
|
3
|
+
import { IToolbarAsyncMultiSelectFilter } from './PageToolbarFilters/ToolbarAsyncMultiSelectFilter';
|
3
4
|
import { IToolbarDateRangeFilter } from './PageToolbarFilters/ToolbarDateRangeFilter';
|
4
5
|
import { IToolbarMultiSelectFilter } from './PageToolbarFilters/ToolbarMultiSelectFilter';
|
5
6
|
import { IToolbarSingleSelectFilter } from './PageToolbarFilters/ToolbarSingleSelectFilter';
|
@@ -9,9 +10,10 @@ export declare enum ToolbarFilterType {
|
|
9
10
|
SingleSelect = 1,
|
10
11
|
MultiSelect = 2,
|
11
12
|
DateRange = 3,
|
12
|
-
AsyncSingleSelect = 4
|
13
|
+
AsyncSingleSelect = 4,
|
14
|
+
AsyncMultiSelect = 5
|
13
15
|
}
|
14
|
-
export type IToolbarFilter = IToolbarTextFilter | IToolbarDateRangeFilter | IToolbarSingleSelectFilter | IToolbarMultiSelectFilter | IToolbarAsyncSingleSelectFilter;
|
16
|
+
export type IToolbarFilter = IToolbarTextFilter | IToolbarDateRangeFilter | IToolbarSingleSelectFilter | IToolbarMultiSelectFilter | IToolbarAsyncSingleSelectFilter | IToolbarAsyncMultiSelectFilter;
|
15
17
|
export type IFilterState = Record<string, string[] | undefined>;
|
16
18
|
export type PageToolbarFiltersProps = {
|
17
19
|
toolbarFilters?: IToolbarFilter[];
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ToolbarFilterType } from '../PageToolbarFilter';
|
2
|
+
import { PageAsyncMultiSelectOptionsFn } from '../../PageInputs/PageAsyncMultiSelect';
|
3
|
+
import { PageAsyncQueryErrorTextType } from '../../PageInputs/PageAsyncSingleSelect';
|
4
|
+
import { ToolbarFilterCommon } from './ToolbarFilterCommon';
|
5
|
+
type ToolbarOpenMultiSelectBrowse = (onSelect: (values: string[]) => void, defaultSelections?: string[]) => void;
|
6
|
+
export interface IToolbarAsyncMultiSelectFilter extends ToolbarFilterCommon {
|
7
|
+
type: ToolbarFilterType.AsyncMultiSelect;
|
8
|
+
queryOptions: PageAsyncMultiSelectOptionsFn<string>;
|
9
|
+
queryPlaceholder?: string;
|
10
|
+
queryErrorText?: PageAsyncQueryErrorTextType;
|
11
|
+
openBrowse?: ToolbarOpenMultiSelectBrowse;
|
12
|
+
isRequired?: boolean;
|
13
|
+
}
|
14
|
+
export declare function toolbarMultiSelectBrowseAdapter<T>(selectFn: (onItemsSelect: (itemValue: T[]) => void, itemDefaultSelections?: T[]) => void, keyFn: (item: T) => string, objectFn: (name: string) => object): ToolbarOpenMultiSelectBrowse;
|
15
|
+
export {};
|
@@ -1,28 +1,28 @@
|
|
1
|
-
declare function
|
2
|
-
declare function
|
3
|
-
declare function Ubt(n: any): any;
|
4
|
-
declare function _W(n: any): any;
|
5
|
-
declare var dUe: any;
|
6
|
-
declare var uUe: any;
|
7
|
-
declare var hUe: any;
|
8
|
-
declare var Hh: any;
|
1
|
+
declare function wUe(n: any): any;
|
2
|
+
declare function jbt(n: any): any;
|
9
3
|
declare function qbt(n: any): any;
|
10
|
-
declare function
|
11
|
-
declare
|
12
|
-
declare
|
4
|
+
declare function yW(n: any): any;
|
5
|
+
declare var hUe: any;
|
6
|
+
declare var dUe: any;
|
7
|
+
declare var fUe: any;
|
8
|
+
declare var zh: any;
|
9
|
+
declare function Kbt(n: any): any;
|
13
10
|
declare function Ybt(n: any): any;
|
11
|
+
declare function ide(n: any): any;
|
12
|
+
declare const Hbt: ne.Context<undefined>;
|
13
|
+
declare function Zbt(n: any): any;
|
14
14
|
declare function Nv(n: any): any;
|
15
|
-
declare function d1t(n: any): any;
|
16
|
-
declare function cGe(n: any): any;
|
17
15
|
declare function h1t(n: any): any;
|
18
|
-
declare function
|
16
|
+
declare function uGe(n: any): any;
|
17
|
+
declare function f1t(n: any): any;
|
18
|
+
declare function Vle(n: any): any;
|
19
19
|
declare function k1(n: any): any;
|
20
|
-
declare var
|
21
|
-
declare function
|
22
|
-
declare function
|
23
|
-
declare var
|
20
|
+
declare var ade: any;
|
21
|
+
declare function rde(n: any): any;
|
22
|
+
declare function u1t(n: any): any;
|
23
|
+
declare var ode: any;
|
24
24
|
declare var hi: any;
|
25
|
-
declare var
|
25
|
+
declare var yr: any;
|
26
26
|
declare function L1(n: any): any;
|
27
27
|
declare const zK: ne.Context<{
|
28
28
|
addAlert: () => null;
|
@@ -30,65 +30,65 @@ declare const zK: ne.Context<{
|
|
30
30
|
replaceAlert: () => null;
|
31
31
|
removeAlerts: () => null;
|
32
32
|
}>;
|
33
|
-
declare function
|
33
|
+
declare function Jle(n: any): any;
|
34
34
|
declare function qK(n: any): any;
|
35
35
|
declare function zT(n: any): any;
|
36
|
-
declare function Xbt(n: any): any;
|
37
|
-
declare function k4(n: any): any;
|
38
36
|
declare function Qbt(n: any): any;
|
37
|
+
declare function E4(n: any): any;
|
38
|
+
declare function Jbt(n: any): any;
|
39
39
|
declare const oY: ne.Context<{
|
40
40
|
columns: number;
|
41
41
|
}>;
|
42
|
-
declare function Jbt(n: any): any;
|
43
|
-
declare function t1t(n: any): any;
|
44
42
|
declare function e1t(n: any): any;
|
43
|
+
declare function n1t(n: any): any;
|
44
|
+
declare function t1t(n: any): any;
|
45
45
|
declare function Lw(n: any): any;
|
46
|
-
declare function
|
47
|
-
declare function
|
48
|
-
declare function
|
49
|
-
declare function
|
50
|
-
declare function
|
51
|
-
declare function
|
52
|
-
declare function
|
53
|
-
declare function Wyt(n: any): any;
|
54
|
-
declare function jq(n: any): any;
|
46
|
+
declare function uUe(n: any): any;
|
47
|
+
declare function _Ue(n: any): any;
|
48
|
+
declare function ece(n: any): any;
|
49
|
+
declare function aUe(n: any): any;
|
50
|
+
declare function qyt(n: any): any;
|
51
|
+
declare function _bt(n: any): any;
|
52
|
+
declare function g1t(n: any): any;
|
55
53
|
declare function $yt(n: any): any;
|
56
|
-
declare function
|
54
|
+
declare function zq(n: any): any;
|
57
55
|
declare function jyt(n: any): any;
|
56
|
+
declare function Uq(n: any): any;
|
58
57
|
declare function Hyt(n: any): any;
|
59
58
|
declare function zyt(n: any): any;
|
60
|
-
declare function
|
59
|
+
declare function Uyt(n: any): any;
|
61
60
|
declare function Gyt(n: any): any;
|
62
61
|
declare function Yyt(n: any): any;
|
63
62
|
declare function Zyt(n: any): any;
|
64
|
-
declare function
|
65
|
-
declare
|
63
|
+
declare function Xyt(n: any): any;
|
64
|
+
declare function Sbt(): any;
|
65
|
+
declare const hse: ne.Context<{
|
66
66
|
isOpen: boolean;
|
67
67
|
setState: () => {};
|
68
68
|
}>;
|
69
|
-
declare function
|
70
|
-
declare function
|
71
|
-
declare function
|
69
|
+
declare function bbt(n: any): any;
|
70
|
+
declare function cde(n: any): any;
|
71
|
+
declare function qq(n: any): any;
|
72
72
|
declare function Ek(n: any): any;
|
73
|
-
declare function
|
74
|
-
declare function
|
75
|
-
declare function
|
76
|
-
declare function
|
77
|
-
declare function
|
78
|
-
declare const
|
73
|
+
declare function zKe(n: any): any;
|
74
|
+
declare function xbt(n: any): any;
|
75
|
+
declare function Qyt(n: any): any;
|
76
|
+
declare function bKe(n: any): any;
|
77
|
+
declare function fKe(n: any): any;
|
78
|
+
declare const kbt: any;
|
79
79
|
declare function UT(n: any): any;
|
80
|
-
declare function
|
81
|
-
declare const
|
80
|
+
declare function cGe(n: any): any;
|
81
|
+
declare const zbt: ne.Context<() => null>;
|
82
82
|
declare const D1: ne.Context<{}[]>;
|
83
|
+
declare function ice(n: any): any;
|
83
84
|
declare function nce(n: any): any;
|
84
|
-
declare function
|
85
|
-
declare function
|
86
|
-
declare
|
87
|
-
declare
|
88
|
-
declare function iGe(n: any, e: any): 0 | 1 | -1;
|
85
|
+
declare function ho(n: any): any;
|
86
|
+
declare function s8(n: any): any;
|
87
|
+
declare var hKe: any;
|
88
|
+
declare function rGe(n: any, e: any): 0 | 1 | -1;
|
89
89
|
declare function Ew(n: any, e: any): 0 | 1 | -1;
|
90
|
-
declare function
|
91
|
-
declare function
|
90
|
+
declare function iGe(n: any, e: any): 0 | 1 | -1;
|
91
|
+
declare function $bt(n: any): {
|
92
92
|
title: string;
|
93
93
|
variant: string;
|
94
94
|
timeout: number;
|
@@ -97,17 +97,17 @@ declare function jT(n: any): "var(--pf-global--danger-color--100)" | "var(--pf-g
|
|
97
97
|
declare const YG: "var(--pf-global--danger-color--100)";
|
98
98
|
declare const XG: "var(--pf-global--disabled-color--100)";
|
99
99
|
declare const ZG: "var(--pf-global--info-color--100)";
|
100
|
-
declare const
|
100
|
+
declare const Xbt: "var(--pf-global--link--Color)";
|
101
101
|
declare const GG: "var(--pf-global--success-color--100)";
|
102
|
-
declare const
|
103
|
-
declare function
|
104
|
-
declare function
|
105
|
-
declare function
|
102
|
+
declare const sde: "var(--pf-global--warning-color--100)";
|
103
|
+
declare function _s(n: any): boolean | undefined;
|
104
|
+
declare function nGe(): ne.Dispatch<ne.SetStateAction<undefined>>;
|
105
|
+
declare function c1t(): (t: any) => void;
|
106
|
+
declare function o1t(n: any): any;
|
106
107
|
declare function r1t(n: any): any;
|
107
|
-
declare function i1t(n: any): any;
|
108
|
-
declare function mUe(n: any): any;
|
109
108
|
declare function pUe(n: any): any;
|
110
|
-
declare function
|
109
|
+
declare function vUe(n: any): any;
|
110
|
+
declare function see(n: any, e: any): {
|
111
111
|
filtered: never[];
|
112
112
|
setFilterFn: (c: any) => void;
|
113
113
|
};
|
@@ -147,7 +147,7 @@ declare function Ji(): ({
|
|
147
147
|
unknownError: string;
|
148
148
|
validating: string;
|
149
149
|
} | (() => void))[];
|
150
|
-
declare function
|
150
|
+
declare function Jyt(n: any): {
|
151
151
|
selectedItems: any[];
|
152
152
|
selectItem: (f: any) => void;
|
153
153
|
unselectItem: (f: any) => void;
|
@@ -173,20 +173,20 @@ declare function Qyt(n: any): {
|
|
173
173
|
pageItems: never[] | undefined;
|
174
174
|
error: any;
|
175
175
|
};
|
176
|
-
declare function
|
177
|
-
declare function
|
176
|
+
declare function Wbt(): string;
|
177
|
+
declare function Qle(): {
|
178
178
|
addAlert: () => null;
|
179
179
|
removeAlert: () => null;
|
180
180
|
replaceAlert: () => null;
|
181
181
|
removeAlerts: () => null;
|
182
182
|
};
|
183
183
|
declare function Tu(): ((() => void) | undefined)[];
|
184
|
-
declare function
|
185
|
-
declare function
|
184
|
+
declare function Kyt(): (r: any) => void;
|
185
|
+
declare function u7(): {
|
186
186
|
isOpen: boolean;
|
187
187
|
setState: () => {};
|
188
188
|
};
|
189
|
-
declare function
|
189
|
+
declare function k4(): (t: any) => void;
|
190
190
|
declare function Dk(n: any): {
|
191
191
|
paged: never[];
|
192
192
|
page: number;
|
@@ -194,8 +194,8 @@ declare function Dk(n: any): {
|
|
194
194
|
perPage: number;
|
195
195
|
setPerPage: ne.Dispatch<ne.SetStateAction<number>>;
|
196
196
|
};
|
197
|
-
declare function
|
198
|
-
declare function
|
197
|
+
declare function d1t(n: any): (m: any, p: any) => void;
|
198
|
+
declare function ree(n: any, e: any, t: any): {
|
199
199
|
selectedItems: any[];
|
200
200
|
selectItem: (g: any) => void;
|
201
201
|
unselectItem: (g: any) => void;
|
@@ -207,7 +207,7 @@ declare function iee(n: any, e: any, t: any): {
|
|
207
207
|
keyFn: any;
|
208
208
|
unselectItems: (g: any) => void;
|
209
209
|
};
|
210
|
-
declare function
|
210
|
+
declare function LKe(n: any, e: any): {
|
211
211
|
selectedItems: any[];
|
212
212
|
selectItem: (f: any) => void;
|
213
213
|
unselectItem: (f: any) => void;
|
@@ -220,13 +220,13 @@ declare function xKe(n: any, e: any): {
|
|
220
220
|
unselectItems: (f: any) => void;
|
221
221
|
};
|
222
222
|
declare function E1(): {};
|
223
|
-
declare function
|
224
|
-
declare function
|
223
|
+
declare function Ubt(n: any): () => void;
|
224
|
+
declare function oee(n: any): {
|
225
225
|
sorted: any;
|
226
226
|
sort: undefined;
|
227
227
|
setSort: ne.Dispatch<ne.SetStateAction<undefined>>;
|
228
228
|
};
|
229
|
-
declare function
|
229
|
+
declare function l1t(n: any, e: any, t: any): {
|
230
230
|
allSelected: boolean;
|
231
231
|
filtered: never[];
|
232
232
|
isSelected: (g: any) => boolean;
|
@@ -250,7 +250,7 @@ declare function a1t(n: any, e: any, t: any): {
|
|
250
250
|
unselectAll: () => void;
|
251
251
|
unselectItem: (g: any) => void;
|
252
252
|
};
|
253
|
-
declare function
|
253
|
+
declare function Nbt(n: any): {
|
254
254
|
page: number;
|
255
255
|
setPage: ne.Dispatch<ne.SetStateAction<number>>;
|
256
256
|
perPage: number;
|
@@ -263,11 +263,11 @@ declare function Obt(n: any): {
|
|
263
263
|
setFilterState: ne.Dispatch<any>;
|
264
264
|
clearAllFilters: () => void;
|
265
265
|
};
|
266
|
+
declare function mUe(n: any): any;
|
267
|
+
declare function i1t(n: any, e: any): any;
|
266
268
|
declare function gUe(n: any): any;
|
267
|
-
declare function n1t(n: any, e: any): any;
|
268
|
-
declare function fUe(n: any): any;
|
269
269
|
declare function $J(n: any): any;
|
270
270
|
declare function WJ(n: any): any;
|
271
|
-
declare function
|
271
|
+
declare function jae(): string;
|
272
272
|
import * as ne from "react";
|
273
|
-
export {
|
273
|
+
export { wUe as BulkSelector, jbt as BytesCell, qbt as CapacityCell, yW as Collapse, hUe as ColumnCardOption, dUe as ColumnListOption, fUe as ColumnModalOption, zh as ColumnTableOption, Kbt as CopyCell, Ybt as DateCell, ide as DateTimeCell, Hbt as DialogContext, Zbt as ElapsedTimeCell, Nv as FormGroupSelect, h1t as FormGroupSelectOption, uGe as FormGroupTextArea, f1t as FormGroupTextInput, Vle as FrameworkTranslationsProvider, k1 as Help, ade as LabelColorE, rde as LabelsCell, u1t as MultiSelectDialog, ode as PFColorE, hi as PageActionSelection, yr as PageActionType, L1 as PageActions, zK as PageAlertToasterContext, Jle as PageAlertToasterProvider, qK as PageBody, zT as PageChartContainer, Qbt as PageDashboard, E4 as PageDashboardCard, Jbt as PageDashboardChart, oY as PageDashboardContext, e1t as PageDashboardCount, n1t as PageDashboardDonutCard, t1t as PageDashboardGettingStarted, Lw as PageDetail, uUe as PageDetails, _Ue as PageDetailsFromColumns, ece as PageDialogProvider, aUe as PageDonutChart, qyt as PageForm, _bt as PageFormCancelButton, g1t as PageFormCheckbox, $yt as PageFormDataEditor, zq as PageFormGrid, jyt as PageFormSelect, Uq as PageFormSubmitButton, Hyt as PageFormSwitch, zyt as PageFormTextArea, Uyt as PageFormTextInput, Gyt as PageFramework, Yyt as PageHeader, Zyt as PageLayout, Xyt as PageMasthead, Sbt as PageMastheadToggle, hse as PageNavSideBarContext, bbt as PageNavSideBarProvider, cde as PageNavigateCallbackContextProvider, qq as PageTab, Ek as PageTable, zKe as PageTableCards, xbt as PageTabs, Qyt as PageTabsOld, bKe as PageToolbar, fKe as PageToolbarFilters, kbt as RunningIcon, UT as Scrollable, cGe as SelectDialog, zbt as SetDialogContext, D1 as SettingsContext, ice as SettingsDialog, nce as SettingsProvider, ho as TableColumnCell, s8 as TextCell, hKe as ToolbarFilterType, rGe as compareNumbers, Ew as compareStrings, iGe as compareUnknowns, $bt as errorToAlertProps, jT as getPatternflyColor, YG as pfDanger, XG as pfDisabled, ZG as pfInfo, Xbt as pfLink, GG as pfSuccess, sde as pfWarning, _s as useBreakpoint, nGe as useBulkActionDialog, c1t as useBulkConfirmation, o1t as useColumnsWithoutExpandedRow, r1t as useColumnsWithoutSort, pUe as useDescriptionColumns, vUe as useExpandedColumns, see as useFiltered, Ji as useFrameworkTranslations, Jyt as useInMemoryView, Wbt as useOrientation, Qle as usePageAlertToaster, Tu as usePageDialog, Kyt as usePageNavBarClick, u7 as usePageNavSideBar, k4 as usePageNavigate, Dk as usePaged, d1t as useSelectDialog, ree as useSelected, LKe as useSelectedInMemory, E1 as useSettings, Ubt as useSettingsDialog, oee as useSorted, l1t as useTableItems, Nbt as useView, mUe as useVisibleCardColumns, i1t as useVisibleColumns, gUe as useVisibleListColumns, $J as useVisibleModalColumns, WJ as useVisibleTableColumns, jae as useWindowSize };
|