@ansible/ansible-ui-framework 2.4.332 → 2.4.336

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,5 +1,110 @@
1
- # Ansible UI Framework
1
+ # Ansible UI
2
2
 
3
- A framework for building applications using [PatternFly](https://www.patternfly.org), developed by the Ansible UI developers.
3
+ UI projects for [Ansible](https://www.ansible.com).
4
4
 
5
- [Documentation](https://github.com/ansible/ansible-ui/wiki/Ansible-UI-Framework)
5
+ - [Getting Started](#getting-started)
6
+ - [Environment Variables](#environment-variables)
7
+ - [NPM Scripts](#npm-scripts)
8
+ - [Documentation](#documentation)
9
+ - [Code of Conduct](#code-of-conduct)
10
+
11
+ ## Getting Started
12
+
13
+ 1. Prerequisites
14
+
15
+ - Node 18.x (recommended)
16
+ - NPM 8.x (recommended)
17
+
18
+ Note: The project should with older versions of node and npm but may require regenerating the package-lock.json.
19
+
20
+ 2. Clone Repository
21
+
22
+ ```
23
+ git clone git@github.com:ansible/ansible-ui.git
24
+ ```
25
+
26
+ 3. Install Package Dependencies
27
+
28
+ ```
29
+ npm ci
30
+ ```
31
+
32
+ ## Environment Variables
33
+
34
+ | Environment Variable | Description |
35
+ | ---------------------: | ------------------------------------------ |
36
+ | `AWX_PROTOCOL` | The AWX server protocol (http) or (https). |
37
+ | `AWX_HOST` | The AWX server address with port. |
38
+ | `CYPRESS_AWX_SERVER` | The AWX server URL. |
39
+ | `CYPRESS_AWX_USERNAME` | The AWX server username. |
40
+ | `CYPRESS_AWX_PASSWORD` | The AWX server password. |
41
+ | | |
42
+ | `HUB_PROTOCOL` | The HUB server protocol (http) or (https). |
43
+ | `HUB_HOST` | The HUB server address with port. |
44
+ | `CYPRESS_HUB_SERVER` | The HUB server URL. |
45
+ | `CYPRESS_HUB_USERNAME` | The HUB server username. |
46
+ | `CYPRESS_HUB_PASSWORD` | The HUB server password. |
47
+ | | |
48
+ | `EDA_PROTOCOL` | The EDA server protocol (http) or (https). |
49
+ | `EDA_HOST` | The EDA server address with port. |
50
+ | `CYPRESS_EDA_SERVER` | The EDA server URL. |
51
+ | `CYPRESS_EDA_USERNAME` | The EDA server username. |
52
+ | `CYPRESS_EDA_PASSWORD` | The EDA server password. |
53
+
54
+ ```
55
+ AWX_PROTOCOL=http
56
+ AWX_HOST=localhost:8043
57
+ CYPRESS_AWX_SERVER=$AWX_PROTOCOL://$AWX_HOST
58
+ CYPRESS_AWX_USERNAME='my-user'
59
+ CYPRESS_AWX_PASSWORD='my-password'
60
+
61
+ HUB_PROTOCOL=http
62
+ HUB_HOST=localhost:8000
63
+ CYPRESS_HUB_SERVER=$HUB_PROTOCOL://$HUB_HOST
64
+ CYPRESS_HUB_USERNAME='my-user'
65
+ CYPRESS_HUB_PASSWORD='my-password'
66
+
67
+ EDA_PROTOCOL=http
68
+ EDA_HOST=localhost:5001
69
+ CYPRESS_EDA_SERVER=$EDA_PROTOCOL://$EDA_HOST
70
+ CYPRESS_EDA_USERNAME='my-user'
71
+ CYPRESS_EDA_PASSWORD='my-password'
72
+ ```
73
+
74
+ ## NPM Scripts
75
+
76
+ | NPM Script | Description |
77
+ | --------------------------- | --------------------------------------- |
78
+ | `npm run awx` | Run AWX on <http://localhost:4101> |
79
+ | `npm run e2e:awx` | Run AWX E2E tests from Cypress UI |
80
+ | `npm run e2e:run:awx` | Run AWX E2E tests from CLI |
81
+ | `npm run component:awx` | Run AWX component tests from Cypress UI |
82
+ | `npm run component:run:awx` | Run AWX component tests from CLI |
83
+ | | |
84
+ | `npm run hub` | Run HUB on <http://localhost:4102> |
85
+ | `npm run e2e:hub` | Run HUB E2E tests from Cypress UI |
86
+ | `npm run e2e:run:hub` | Run HUB E2E tests from CLI |
87
+ | `npm run component:hub` | Run HUB component tests from Cypress UI |
88
+ | `npm run component:run:hub` | Run HUB component tests from CLI |
89
+ | | |
90
+ | `npm run eda` | Run EDA on <http://localhost:4103> |
91
+ | `npm run e2e:eda` | Run EDA E2E tests from Cypress UI |
92
+ | `npm run e2e:run:eda` | Run EDA E2E tests from CLI |
93
+ | `npm run component:eda` | Run EDA component tests from Cypress UI |
94
+ | `npm run component:run:eda` | Run EDA component tests from CLI |
95
+ | | |
96
+ | `npm run tsc` | Run Typescript compiler checks |
97
+ | `npm run eslint` | Run eslint checks |
98
+ | `npm run prettier` | Run prettier format checks |
99
+ | `npm run prettier:fix` | Fix prettier format of files |
100
+
101
+ ## Documentation
102
+
103
+ - [Development](./docs/DEVELOPMENT.md)
104
+ - [Framework](./framework/README.md) - A framework for building applications using [PatternFly](https://www.patternfly.org).
105
+
106
+ ## Code of Conduct
107
+
108
+ We ask all of our community members and contributors to adhere to the [Ansible code of conduct](http://docs.ansible.com/ansible/latest/community/code_of_conduct.html). If you have questions or need assistance, please reach out to our community team at [codeofconduct@ansible.com](mailto:codeofconduct@ansible.com)
109
+
110
+ .
@@ -0,0 +1,3 @@
1
+ declare var Au: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
2
+ declare function Nu(nt: any, Oe: any, We: any): any;
3
+ declare function Jt(nt: any, Oe: any, We: any): any;
@@ -0,0 +1,273 @@
1
+ declare function tWe(n: any): any;
2
+ declare function Cgt(n: any): any;
3
+ declare function Lgt(n: any): any;
4
+ declare function gB(n: any): any;
5
+ declare var UBe: any;
6
+ declare var zBe: any;
7
+ declare var qBe: any;
8
+ declare var Ch: any;
9
+ declare function kgt(n: any): any;
10
+ declare function Egt(n: any): any;
11
+ declare function Nle(n: any): any;
12
+ declare const wgt: ae.Context<undefined>;
13
+ declare function Tgt(n: any): any;
14
+ declare function iv(n: any): any;
15
+ declare function Ugt(n: any): any;
16
+ declare function j$e(n: any): any;
17
+ declare function qgt(n: any): any;
18
+ declare function goe(n: any): any;
19
+ declare function X1(n: any): any;
20
+ declare var Rle: any;
21
+ declare function Ole(n: any): any;
22
+ declare function jgt(n: any): any;
23
+ declare var Mle: any;
24
+ declare var ci: any;
25
+ declare var gr: any;
26
+ declare function Z1(n: any): any;
27
+ declare const VU: ae.Context<{
28
+ addAlert: () => null;
29
+ removeAlert: () => null;
30
+ replaceAlert: () => null;
31
+ removeAlerts: () => null;
32
+ }>;
33
+ declare function Eoe(n: any): any;
34
+ declare function HU(n: any): any;
35
+ declare function VE(n: any): any;
36
+ declare function Agt(n: any): any;
37
+ declare function o4(n: any): any;
38
+ declare function Ngt(n: any): any;
39
+ declare const tK: ae.Context<{
40
+ columns: number;
41
+ }>;
42
+ declare function Ogt(n: any): any;
43
+ declare function Pgt(n: any): any;
44
+ declare function Mgt(n: any): any;
45
+ declare function HC(n: any): any;
46
+ declare function jBe(n: any): any;
47
+ declare function XBe(n: any): any;
48
+ declare function Toe(n: any): any;
49
+ declare function VBe(n: any): any;
50
+ declare function Lpt(n: any): any;
51
+ declare function Xft(n: any): any;
52
+ declare function Kgt(n: any): any;
53
+ declare function ypt(n: any): any;
54
+ declare function Bz(n: any): any;
55
+ declare function Cpt(n: any): any;
56
+ declare function Wz(n: any): any;
57
+ declare function wpt(n: any): any;
58
+ declare function Spt(n: any): any;
59
+ declare function xpt(n: any): any;
60
+ declare function Dpt(n: any): any;
61
+ declare function Ept(n: any): any;
62
+ declare function Tpt(n: any): any;
63
+ declare function Ipt(n: any): any;
64
+ declare function ngt(): any;
65
+ declare const $ie: ae.Context<{
66
+ isOpen: boolean;
67
+ setState: () => {};
68
+ }>;
69
+ declare function Qft(n: any): any;
70
+ declare function Ble(n: any): any;
71
+ declare function Vz(n: any): any;
72
+ declare function TL(n: any): any;
73
+ declare function S$e(n: any): any;
74
+ declare function igt(n: any): any;
75
+ declare function Apt(n: any): any;
76
+ declare function QVe(n: any): any;
77
+ declare function qVe(n: any): any;
78
+ declare const sgt: any;
79
+ declare function $E(n: any): any;
80
+ declare function H$e(n: any): any;
81
+ declare const Sgt: ae.Context<() => null>;
82
+ declare const Q1: ae.Context<{}[]>;
83
+ declare function Noe(n: any): any;
84
+ declare function Aoe(n: any): any;
85
+ declare function os(n: any): any;
86
+ declare function N3(n: any): any;
87
+ declare var UVe: any;
88
+ declare function F$e(n: any, e: any): 0 | 1 | -1;
89
+ declare function UC(n: any, e: any): 0 | 1 | -1;
90
+ declare function R$e(n: any, e: any): 0 | 1 | -1;
91
+ declare function ygt(n: any): {
92
+ title: string;
93
+ variant: string;
94
+ timeout: number;
95
+ };
96
+ declare function BE(n: any): "var(--pf-global--danger-color--100)" | "var(--pf-global--success-color--100)" | "var(--pf-global--warning-color--100)" | "var(--pf-global--info-color--100)" | "var(--pf-global--disabled-color--100)" | undefined;
97
+ declare const Uq: "var(--pf-global--danger-color--100)";
98
+ declare const Kq: "var(--pf-global--disabled-color--100)";
99
+ declare const qq: "var(--pf-global--info-color--100)";
100
+ declare const Igt: "var(--pf-global--link--Color)";
101
+ declare const zq: "var(--pf-global--success-color--100)";
102
+ declare const Ple: "var(--pf-global--warning-color--100)";
103
+ declare function co(n: any): boolean | undefined;
104
+ declare function P$e(): ae.Dispatch<ae.SetStateAction<undefined>>;
105
+ declare function Hgt(): (t: any) => void;
106
+ declare function Bgt(n: any): any;
107
+ declare function Fgt(n: any): any;
108
+ declare function YBe(n: any): any;
109
+ declare function ZBe(n: any): any;
110
+ declare function PX(n: any, e: any): {
111
+ filtered: never[];
112
+ setFilterFn: (c: any) => void;
113
+ };
114
+ declare function Gi(): ({
115
+ by: string;
116
+ cancelText: string;
117
+ canceledText: string;
118
+ cardView: string;
119
+ clearAllFilters: string;
120
+ clickToRefresh: string;
121
+ closeText: string;
122
+ confirmText: string;
123
+ countMore: string;
124
+ documentation: string;
125
+ errorText: string;
126
+ filter: string;
127
+ listView: string;
128
+ manageColumns: string;
129
+ moreInformation: string;
130
+ noItemsFound: string;
131
+ noResultsFound: string;
132
+ noResultsMatchCriteria: string;
133
+ noSelection: string;
134
+ noSelections: string;
135
+ ofText: string;
136
+ pendingText: string;
137
+ pleaseFixValidationErrors: string;
138
+ processingText: string;
139
+ selectNone: string;
140
+ selectedText: string;
141
+ showLess: string;
142
+ sort: string;
143
+ submitText: string;
144
+ submittingText: string;
145
+ successText: string;
146
+ tableView: string;
147
+ unknownError: string;
148
+ validating: string;
149
+ } | (() => void))[];
150
+ declare function Npt(n: any): {
151
+ selectedItems: any[];
152
+ selectItem: (f: any) => void;
153
+ unselectItem: (f: any) => void;
154
+ isSelected: (f: any) => boolean;
155
+ selectItems: (f: any) => void;
156
+ selectAll: () => void;
157
+ unselectAll: () => void;
158
+ allSelected: boolean;
159
+ keyFn: any;
160
+ unselectItems: (f: any) => void;
161
+ page: number;
162
+ setPage: ae.Dispatch<ae.SetStateAction<number>>;
163
+ perPage: number;
164
+ setPerPage: ae.Dispatch<ae.SetStateAction<number>>;
165
+ sort: any;
166
+ setSort: ae.Dispatch<any>;
167
+ sortDirection: any;
168
+ setSortDirection: ae.Dispatch<any>;
169
+ filterState: any;
170
+ setFilterState: ae.Dispatch<any>;
171
+ clearAllFilters: () => void;
172
+ itemCount: number | undefined;
173
+ pageItems: never[] | undefined;
174
+ error: any;
175
+ };
176
+ declare function bgt(): string;
177
+ declare function Doe(): {
178
+ addAlert: () => null;
179
+ removeAlert: () => null;
180
+ replaceAlert: () => null;
181
+ removeAlerts: () => null;
182
+ };
183
+ declare function fu(): ((() => void) | undefined)[];
184
+ declare function kpt(): (r: any) => void;
185
+ declare function R6(): {
186
+ isOpen: boolean;
187
+ setState: () => {};
188
+ };
189
+ declare function r4(): (t: any) => void;
190
+ declare function EL(n: any): {
191
+ paged: never[];
192
+ page: number;
193
+ setPage: ae.Dispatch<ae.SetStateAction<number>>;
194
+ perPage: number;
195
+ setPerPage: ae.Dispatch<ae.SetStateAction<number>>;
196
+ };
197
+ declare function zgt(n: any): (m: any, p: any) => void;
198
+ declare function OX(n: any, e: any, t: any): {
199
+ selectedItems: any[];
200
+ selectItem: (g: any) => void;
201
+ unselectItem: (g: any) => void;
202
+ isSelected: (g: any) => boolean;
203
+ selectItems: (g: any) => void;
204
+ selectAll: () => void;
205
+ unselectAll: () => void;
206
+ allSelected: boolean;
207
+ keyFn: any;
208
+ unselectItems: (g: any) => void;
209
+ };
210
+ declare function r$e(n: any, e: any): {
211
+ selectedItems: any[];
212
+ selectItem: (f: any) => void;
213
+ unselectItem: (f: any) => void;
214
+ isSelected: (f: any) => boolean;
215
+ selectItems: (f: any) => void;
216
+ selectAll: () => void;
217
+ unselectAll: () => void;
218
+ allSelected: boolean;
219
+ keyFn: any;
220
+ unselectItems: (f: any) => void;
221
+ };
222
+ declare function J1(): {};
223
+ declare function xgt(n: any): () => void;
224
+ declare function MX(n: any): {
225
+ sorted: any;
226
+ sort: undefined;
227
+ setSort: ae.Dispatch<ae.SetStateAction<undefined>>;
228
+ };
229
+ declare function $gt(n: any, e: any, t: any): {
230
+ allSelected: boolean;
231
+ filtered: never[];
232
+ isSelected: (g: any) => boolean;
233
+ page: number;
234
+ paged: never[];
235
+ perPage: number;
236
+ search: any;
237
+ searched: never[];
238
+ selectAll: () => void;
239
+ selectItem: (g: any) => void;
240
+ selectPage: () => void;
241
+ selectedItems: any[];
242
+ setFilterFn: (c: any) => void;
243
+ setPage: ae.Dispatch<ae.SetStateAction<number>>;
244
+ setPerPage: ae.Dispatch<ae.SetStateAction<number>>;
245
+ setSearch: any;
246
+ setSearchFn: (f: any) => void;
247
+ setSort: ae.Dispatch<ae.SetStateAction<undefined>>;
248
+ sort: undefined;
249
+ sorted: any;
250
+ unselectAll: () => void;
251
+ unselectItem: (g: any) => void;
252
+ };
253
+ declare function hgt(n: any): {
254
+ page: number;
255
+ setPage: ae.Dispatch<ae.SetStateAction<number>>;
256
+ perPage: number;
257
+ setPerPage: ae.Dispatch<ae.SetStateAction<number>>;
258
+ sort: any;
259
+ setSort: ae.Dispatch<any>;
260
+ sortDirection: any;
261
+ setSortDirection: ae.Dispatch<any>;
262
+ filterState: any;
263
+ setFilterState: ae.Dispatch<any>;
264
+ clearAllFilters: () => void;
265
+ };
266
+ declare function GBe(n: any): any;
267
+ declare function Rgt(n: any, e: any): any;
268
+ declare function KBe(n: any): any;
269
+ declare function vX(n: any): any;
270
+ declare function pX(n: any): any;
271
+ declare function vse(): string;
272
+ import * as ae from "react";
273
+ export { tWe as BulkSelector, Cgt as BytesCell, Lgt as CapacityCell, gB as Collapse, UBe as ColumnCardOption, zBe as ColumnListOption, qBe as ColumnModalOption, Ch as ColumnTableOption, kgt as CopyCell, Egt as DateCell, Nle as DateTimeCell, wgt as DialogContext, Tgt as ElapsedTimeCell, iv as FormGroupSelect, Ugt as FormGroupSelectOption, j$e as FormGroupTextArea, qgt as FormGroupTextInput, goe as FrameworkTranslationsProvider, X1 as Help, Rle as LabelColorE, Ole as LabelsCell, jgt as MultiSelectDialog, Mle as PFColorE, ci as PageActionSelection, gr as PageActionType, Z1 as PageActions, VU as PageAlertToasterContext, Eoe as PageAlertToasterProvider, HU as PageBody, VE as PageChartContainer, Agt as PageDashboard, o4 as PageDashboardCard, Ngt as PageDashboardChart, tK as PageDashboardContext, Ogt as PageDashboardCount, Pgt as PageDashboardDonutCard, Mgt as PageDashboardGettingStarted, HC as PageDetail, jBe as PageDetails, XBe as PageDetailsFromColumns, Toe as PageDialogProvider, VBe as PageDonutChart, Lpt as PageForm, Xft as PageFormCancelButton, Kgt as PageFormCheckbox, ypt as PageFormDataEditor, Bz as PageFormGrid, Cpt as PageFormSelect, Wz as PageFormSubmitButton, wpt as PageFormSwitch, Spt as PageFormTextArea, xpt as PageFormTextInput, Dpt as PageFramework, Ept as PageHeader, Tpt as PageLayout, Ipt as PageMasthead, ngt as PageMastheadToggle, $ie as PageNavSideBarContext, Qft as PageNavSideBarProvider, Ble as PageNavigateCallbackContextProvider, Vz as PageTab, TL as PageTable, S$e as PageTableCards, igt as PageTabs, Apt as PageTabsOld, QVe as PageToolbar, qVe as PageToolbarFilters, sgt as RunningIcon, $E as Scrollable, H$e as SelectDialog, Sgt as SetDialogContext, Q1 as SettingsContext, Noe as SettingsDialog, Aoe as SettingsProvider, os as TableColumnCell, N3 as TextCell, UVe as ToolbarFilterType, F$e as compareNumbers, UC as compareStrings, R$e as compareUnknowns, ygt as errorToAlertProps, BE as getPatternflyColor, Uq as pfDanger, Kq as pfDisabled, qq as pfInfo, Igt as pfLink, zq as pfSuccess, Ple as pfWarning, co as useBreakpoint, P$e as useBulkActionDialog, Hgt as useBulkConfirmation, Bgt as useColumnsWithoutExpandedRow, Fgt as useColumnsWithoutSort, YBe as useDescriptionColumns, ZBe as useExpandedColumns, PX as useFiltered, Gi as useFrameworkTranslations, Npt as useInMemoryView, bgt as useOrientation, Doe as usePageAlertToaster, fu as usePageDialog, kpt as usePageNavBarClick, R6 as usePageNavSideBar, r4 as usePageNavigate, EL as usePaged, zgt as useSelectDialog, OX as useSelected, r$e as useSelectedInMemory, J1 as useSettings, xgt as useSettingsDialog, MX as useSorted, $gt as useTableItems, hgt as useView, GBe as useVisibleCardColumns, Rgt as useVisibleColumns, KBe as useVisibleListColumns, vX as useVisibleModalColumns, pX as useVisibleTableColumns, vse as useWindowSize };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.332",
4
+ "version": "2.4.336",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
File without changes
File without changes