@ansible/ansible-ui-framework 2.4.402 → 2.4.404
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageFramework.d.ts +1 -1
- package/framework/PageNavigation/PageApp.d.ts +9 -0
- package/framework/PageNavigation/PageNavigation.d.ts +24 -0
- package/framework/PageTable/PageTableColumn.d.ts +12 -12
- package/framework/components/ErrorBoundary.d.ts +1 -1
- package/framework/publish/index.d.ts +5 -5
- package/framework/utils/compare.d.ts +3 -3
- package/index.js +1509 -1510
- package/index.umd.cjs +31 -31
- package/package.json +1 -1
- package/style.css +1 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { PageNavigationItem } from './PageNavigation';
|
3
|
+
export declare function PageApp(props: {
|
4
|
+
login: ReactNode;
|
5
|
+
root: ReactNode;
|
6
|
+
header?: ReactNode;
|
7
|
+
navigation: PageNavigationItem[];
|
8
|
+
basename?: string;
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare function PageNavigation(props: {
|
3
|
+
navigationItems: PageNavigationItem[];
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
5
|
+
interface PageNavigationGroup {
|
6
|
+
label?: string;
|
7
|
+
path: string;
|
8
|
+
children: PageNavigationItem[];
|
9
|
+
}
|
10
|
+
interface PageNavigationComponent {
|
11
|
+
id: string;
|
12
|
+
label?: string;
|
13
|
+
path: string;
|
14
|
+
element: JSX.Element;
|
15
|
+
}
|
16
|
+
export type PageNavigationItem = PageNavigationGroup | PageNavigationComponent;
|
17
|
+
export declare function PageNavigationItems(props: {
|
18
|
+
items: PageNavigationItem[];
|
19
|
+
baseRoute: string;
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
21
|
+
export declare function useNavigationRoutes(navigationItems: PageNavigationItem[]): {
|
22
|
+
[key: string]: string;
|
23
|
+
};
|
24
|
+
export {};
|
@@ -91,7 +91,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
91
91
|
defaultSort?: boolean | undefined;
|
92
92
|
icon?: ((item: T) => ReactNode) | undefined;
|
93
93
|
table?: ColumnTableOption | undefined;
|
94
|
-
list?: "name" | "hidden" | "
|
94
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
95
95
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
96
96
|
modal?: ColumnModalOption | undefined;
|
97
97
|
} | {
|
@@ -108,7 +108,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
108
108
|
defaultSort?: boolean | undefined;
|
109
109
|
icon?: ((item: T) => ReactNode) | undefined;
|
110
110
|
table?: ColumnTableOption | undefined;
|
111
|
-
list?: "name" | "hidden" | "
|
111
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
112
112
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
113
113
|
modal?: ColumnModalOption | undefined;
|
114
114
|
} | {
|
@@ -125,7 +125,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
125
125
|
defaultSort?: boolean | undefined;
|
126
126
|
icon?: ((item: T) => ReactNode) | undefined;
|
127
127
|
table?: ColumnTableOption | undefined;
|
128
|
-
list?: "name" | "hidden" | "
|
128
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
129
129
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
130
130
|
modal?: ColumnModalOption | undefined;
|
131
131
|
} | {
|
@@ -142,7 +142,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
142
142
|
defaultSort?: boolean | undefined;
|
143
143
|
icon?: ((item: T) => ReactNode) | undefined;
|
144
144
|
table?: ColumnTableOption | undefined;
|
145
|
-
list?: "name" | "hidden" | "
|
145
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
146
146
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
147
147
|
modal?: ColumnModalOption | undefined;
|
148
148
|
} | {
|
@@ -159,7 +159,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
159
159
|
defaultSort?: boolean | undefined;
|
160
160
|
icon?: ((item: T) => ReactNode) | undefined;
|
161
161
|
table?: ColumnTableOption | undefined;
|
162
|
-
list?: "name" | "hidden" | "
|
162
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
163
163
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
164
164
|
modal?: ColumnModalOption | undefined;
|
165
165
|
} | {
|
@@ -176,7 +176,7 @@ export declare function useColumnsWithoutSort<T extends object>(columns: ITableC
|
|
176
176
|
defaultSort?: boolean | undefined;
|
177
177
|
icon?: ((item: T) => ReactNode) | undefined;
|
178
178
|
table?: ColumnTableOption | undefined;
|
179
|
-
list?: "name" | "hidden" | "
|
179
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
180
180
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
181
181
|
modal?: ColumnModalOption | undefined;
|
182
182
|
})[];
|
@@ -195,7 +195,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
195
195
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
196
196
|
defaultSort?: boolean | undefined;
|
197
197
|
icon?: ((item: T) => ReactNode) | undefined;
|
198
|
-
list?: "name" | "hidden" | "
|
198
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
199
199
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
200
200
|
modal?: ColumnModalOption | undefined;
|
201
201
|
} | {
|
@@ -212,7 +212,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
212
212
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
213
213
|
defaultSort?: boolean | undefined;
|
214
214
|
icon?: ((item: T) => ReactNode) | undefined;
|
215
|
-
list?: "name" | "hidden" | "
|
215
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
216
216
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
217
217
|
modal?: ColumnModalOption | undefined;
|
218
218
|
} | {
|
@@ -229,7 +229,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
229
229
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
230
230
|
defaultSort?: boolean | undefined;
|
231
231
|
icon?: ((item: T) => ReactNode) | undefined;
|
232
|
-
list?: "name" | "hidden" | "
|
232
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
233
233
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
234
234
|
modal?: ColumnModalOption | undefined;
|
235
235
|
} | {
|
@@ -246,7 +246,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
246
246
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
247
247
|
defaultSort?: boolean | undefined;
|
248
248
|
icon?: ((item: T) => ReactNode) | undefined;
|
249
|
-
list?: "name" | "hidden" | "
|
249
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
250
250
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
251
251
|
modal?: ColumnModalOption | undefined;
|
252
252
|
} | {
|
@@ -263,7 +263,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
263
263
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
264
264
|
defaultSort?: boolean | undefined;
|
265
265
|
icon?: ((item: T) => ReactNode) | undefined;
|
266
|
-
list?: "name" | "hidden" | "
|
266
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
267
267
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
268
268
|
modal?: ColumnModalOption | undefined;
|
269
269
|
} | {
|
@@ -280,7 +280,7 @@ export declare function useColumnsWithoutExpandedRow<T extends object>(columns:
|
|
280
280
|
defaultSortDirection?: "desc" | "asc" | undefined;
|
281
281
|
defaultSort?: boolean | undefined;
|
282
282
|
icon?: ((item: T) => ReactNode) | undefined;
|
283
|
-
list?: "name" | "hidden" | "
|
283
|
+
list?: "name" | "hidden" | "primary" | "secondary" | "description" | "subtitle" | undefined;
|
284
284
|
card?: "name" | "hidden" | "description" | "subtitle" | undefined;
|
285
285
|
modal?: ColumnModalOption | undefined;
|
286
286
|
})[];
|
@@ -10,6 +10,6 @@ declare class ErrorBoundary extends Component<Props, State> {
|
|
10
10
|
state: State;
|
11
11
|
static getDerivedStateFromError(_: Error): State;
|
12
12
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
13
|
-
render(): string | number | boolean |
|
13
|
+
render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
|
14
14
|
}
|
15
15
|
export default ErrorBoundary;
|
@@ -85,9 +85,9 @@ declare function nue(n: any): any;
|
|
85
85
|
declare function Zr(n: any): any;
|
86
86
|
declare function M8(n: any): any;
|
87
87
|
declare var bGe: any;
|
88
|
-
declare function lYe(n: any, e: any):
|
89
|
-
declare function WC(n: any, e: any):
|
90
|
-
declare function aYe(n: any, e: any):
|
88
|
+
declare function lYe(n: any, e: any): 1 | -1 | 0;
|
89
|
+
declare function WC(n: any, e: any): 1 | -1 | 0;
|
90
|
+
declare function aYe(n: any, e: any): 1 | -1 | 0;
|
91
91
|
declare function Vyt(n: any): {
|
92
92
|
title: string;
|
93
93
|
variant: string;
|
@@ -100,7 +100,7 @@ declare const RY: "var(--pf-global--info-color--100)";
|
|
100
100
|
declare const Zyt: "var(--pf-global--link--Color)";
|
101
101
|
declare const MY: "var(--pf-global--success-color--100)";
|
102
102
|
declare const Dhe: "var(--pf-global--warning-color--100)";
|
103
|
-
declare function
|
103
|
+
declare function ca(n: any): boolean | undefined;
|
104
104
|
declare function sYe(): ie.Dispatch<ie.SetStateAction<undefined>>;
|
105
105
|
declare function lwt(): (t: any) => void;
|
106
106
|
declare function rwt(n: any): any;
|
@@ -271,4 +271,4 @@ declare function kee(n: any): any;
|
|
271
271
|
declare function Lee(n: any): any;
|
272
272
|
declare function jle(): string;
|
273
273
|
import * as ie from "react";
|
274
|
-
export { Tqe as BulkSelector, $yt as BytesCell, Uyt as CapacityCell, Zx as Collapse, bqe as ColumnCardOption, _qe as ColumnListOption, yqe as ColumnModalOption, Uh as ColumnTableOption, qyt as CopyCell, Gyt as DateCell, xhe as DateTimeCell, jyt as DialogContext, Yyt as ElapsedTimeCell, Wv as FormGroupSelect, dwt as FormGroupSelectOption, gYe as FormGroupTextArea, hwt as FormGroupTextInput, Wce as FrameworkTranslationsProvider, P1 as Help, Ehe as LabelColorE, Lhe as LabelsCell, cwt as MultiSelectDialog, khe as PFColorE, gi as PageActionSelection, Cr as PageActionType, M1 as PageActions, EG as PageAlertToasterContext, Qce as PageAlertToasterProvider, Jce as PageBody, aI as PageChartContainer, Xyt as PageDashboard, Y4 as PageDashboardCard, Qyt as PageDashboardChart, UY as PageDashboardContext, Jyt as PageDashboardCount, twt as PageDashboardDonutCard, ewt as PageDashboardGettingStarted, RC as PageDetail, vqe as PageDetails, Lqe as PageDetailsFromColumns, eue as PageDialogProvider, gqe as PageDonutChart, UCt as PageForm, vyt as PageFormCancelButton, fwt as PageFormCheckbox, VCt as PageFormDataEditor, TK as PageFormGrid, $Ct as PageFormSelect, IK as PageFormSubmitButton, jCt as PageFormSwitch, HCt as PageFormTextArea, zCt as PageFormTextInput, KCt as PageFramework, GCt as PageHeader, YCt as PageLayout, ZCt as PageMasthead, Cyt as PageMastheadToggle, lae as PageNavSideBarContext, _yt as PageNavSideBarProvider, Ihe as PageNavigateCallbackContextProvider, AK as PageTab, jk as PageTable, GV as PageTableCards, Syt as PageTabs, XCt as PageTabsOld, kGe as PageToolbar, yGe as PageToolbarFilters, Lyt as RunningIcon, mm as Scrollable, fYe as SelectDialog, Hyt as SetDialogContext, R1 as SettingsContext, iue as SettingsDialog, nue as SettingsProvider, Zr as TableColumnCell, M8 as TextCell, bGe as ToolbarFilterType, lYe as compareNumbers, WC as compareStrings, aYe as compareUnknowns, Vyt as errorToAlertProps, oI as getPatternflyColor, PY as pfDanger, FY as pfDisabled, RY as pfInfo, Zyt as pfLink, MY as pfSuccess, Dhe as pfWarning,
|
274
|
+
export { Tqe as BulkSelector, $yt as BytesCell, Uyt as CapacityCell, Zx as Collapse, bqe as ColumnCardOption, _qe as ColumnListOption, yqe as ColumnModalOption, Uh as ColumnTableOption, qyt as CopyCell, Gyt as DateCell, xhe as DateTimeCell, jyt as DialogContext, Yyt as ElapsedTimeCell, Wv as FormGroupSelect, dwt as FormGroupSelectOption, gYe as FormGroupTextArea, hwt as FormGroupTextInput, Wce as FrameworkTranslationsProvider, P1 as Help, Ehe as LabelColorE, Lhe as LabelsCell, cwt as MultiSelectDialog, khe as PFColorE, gi as PageActionSelection, Cr as PageActionType, M1 as PageActions, EG as PageAlertToasterContext, Qce as PageAlertToasterProvider, Jce as PageBody, aI as PageChartContainer, Xyt as PageDashboard, Y4 as PageDashboardCard, Qyt as PageDashboardChart, UY as PageDashboardContext, Jyt as PageDashboardCount, twt as PageDashboardDonutCard, ewt as PageDashboardGettingStarted, RC as PageDetail, vqe as PageDetails, Lqe as PageDetailsFromColumns, eue as PageDialogProvider, gqe as PageDonutChart, UCt as PageForm, vyt as PageFormCancelButton, fwt as PageFormCheckbox, VCt as PageFormDataEditor, TK as PageFormGrid, $Ct as PageFormSelect, IK as PageFormSubmitButton, jCt as PageFormSwitch, HCt as PageFormTextArea, zCt as PageFormTextInput, KCt as PageFramework, GCt as PageHeader, YCt as PageLayout, ZCt as PageMasthead, Cyt as PageMastheadToggle, lae as PageNavSideBarContext, _yt as PageNavSideBarProvider, Ihe as PageNavigateCallbackContextProvider, AK as PageTab, jk as PageTable, GV as PageTableCards, Syt as PageTabs, XCt as PageTabsOld, kGe as PageToolbar, yGe as PageToolbarFilters, Lyt as RunningIcon, mm as Scrollable, fYe as SelectDialog, Hyt as SetDialogContext, R1 as SettingsContext, iue as SettingsDialog, nue as SettingsProvider, Zr as TableColumnCell, M8 as TextCell, bGe as ToolbarFilterType, lYe as compareNumbers, WC as compareStrings, aYe as compareUnknowns, Vyt as errorToAlertProps, oI as getPatternflyColor, PY as pfDanger, FY as pfDisabled, RY as pfInfo, Zyt as pfLink, MY as pfSuccess, Dhe as pfWarning, ca as useBreakpoint, sYe as useBulkActionDialog, lwt as useBulkConfirmation, rwt as useColumnsWithoutExpandedRow, iwt as useColumnsWithoutSort, Sqe as useDescriptionColumns, xqe as useExpandedColumns, Uee as useFiltered, tr as useFrameworkTranslations, QCt as useInMemoryView, Wyt as useOrientation, TG as usePageAlertToaster, Nu as usePageDialog, qCt as usePageNavBarClick, O7 as usePageNavSideBar, K4 as usePageNavigate, $k as usePaged, uwt as useSelectDialog, Hee as useSelected, OGe as useSelectedInMemory, F1 as useSettings, zyt as useSettingsDialog, zee as useSorted, awt as useTableItems, Oyt as useView, Cqe as useVisibleCardColumns, nwt as useVisibleColumns, wqe as useVisibleListColumns, kee as useVisibleModalColumns, Lee as useVisibleTableColumns, jle as useWindowSize };
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare function compareUnknowns(a: unknown, b: unknown):
|
2
|
-
export declare function compareStrings(a: string | undefined | null, b: string | undefined | null):
|
3
|
-
export declare function compareNumbers(a: number | undefined | null, b: number | undefined | null):
|
1
|
+
export declare function compareUnknowns(a: unknown, b: unknown): 1 | -1 | 0;
|
2
|
+
export declare function compareStrings(a: string | undefined | null, b: string | undefined | null): 1 | -1 | 0;
|
3
|
+
export declare function compareNumbers(a: number | undefined | null, b: number | undefined | null): 1 | -1 | 0;
|