@ansible/ansible-ui-framework 2.4.671 → 2.4.1112

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/README.md +3 -105
  2. package/assets/editor.worker-CKha-MBL.js +11 -0
  3. package/assets/json.worker-BXgpME0S.js +42 -0
  4. package/assets/yaml.worker-DhJ2nZ1S.js +466 -0
  5. package/framework/PageActions/PageAction.d.ts +2 -0
  6. package/framework/PageCells/DateTimeCell.d.ts +0 -1
  7. package/framework/PageCells/LabelsCell.d.ts +4 -0
  8. package/framework/PageDashboard/PageDashboardCard.d.ts +3 -1
  9. package/framework/PageDetails/PageDetails.d.ts +2 -0
  10. package/framework/PageDetails/PageDetailsFromColumns.d.ts +2 -2
  11. package/framework/PageDialogs/BulkActionDialog.d.ts +3 -1
  12. package/framework/PageDialogs/BulkConfirmationDialog.d.ts +3 -1
  13. package/framework/PageDialogs/MultiSelectDialog.d.ts +1 -0
  14. package/framework/PageDialogs/PageDialog.d.ts +8 -3
  15. package/framework/PageDialogs/{SelectSingleDialog.d.ts → SingleSelectDialog.d.ts} +3 -2
  16. package/framework/PageForm/Inputs/FormGroupTypeAheadMultiSelect.d.ts +1 -0
  17. package/framework/PageForm/Inputs/PageFormAsyncMultiSelect.d.ts +1 -1
  18. package/framework/PageForm/Inputs/PageFormCheckbox.d.ts +3 -0
  19. package/framework/PageForm/Inputs/PageFormDataEditor.d.ts +30 -14
  20. package/framework/PageForm/Inputs/PageFormMarkdown.d.ts +19 -0
  21. package/framework/PageForm/Inputs/PageFormMarkdownEditor.cy.d.ts +1 -0
  22. package/framework/PageForm/Inputs/PageFormMultiInput.d.ts +1 -0
  23. package/framework/PageForm/Inputs/PageFormSecret.cy.d.ts +1 -0
  24. package/framework/{PageInputs/PageHiddenInput.d.ts → PageForm/Inputs/PageFormSecret.d.ts} +2 -2
  25. package/framework/PageForm/Inputs/PageFormSwitch.d.ts +2 -0
  26. package/framework/PageForm/Inputs/validation-hooks.d.ts +4 -0
  27. package/framework/PageForm/PageForm.d.ts +2 -0
  28. package/framework/PageForm/Utils/PageFormSection.d.ts +1 -0
  29. package/framework/PageForm/Utils/PageFormSetError.d.ts +5 -0
  30. package/framework/PageForm/Utils/PageFormSetValue.d.ts +5 -0
  31. package/framework/PageForm/Utils/PageFormWatch.d.ts +4 -3
  32. package/framework/PageForm/typesErrorAdapter.d.ts +1 -1
  33. package/framework/PageHeader.d.ts +1 -0
  34. package/framework/PageInputs/PageMultiSelect.d.ts +2 -0
  35. package/framework/PageInputs/PageSelectOption.d.ts +2 -1
  36. package/framework/PageInputs/PageSingleSelect.d.ts +15 -0
  37. package/framework/PageMasonry.d.ts +6 -0
  38. package/framework/PageMasthead/PageMasthead.d.ts +1 -3
  39. package/framework/PageMasthead/PageNotificationsIcon.d.ts +1 -4
  40. package/framework/PageNavigation/PageNavigationItem.d.ts +4 -0
  41. package/framework/PageNotifications/PageNotificationsProvider.cy.d.ts +1 -0
  42. package/framework/PageNotifications/PageNotificationsProvider.d.ts +27 -0
  43. package/framework/PageTable/PageTable.d.ts +1 -0
  44. package/framework/PageTable/PageTableCard.d.ts +3 -3
  45. package/framework/PageTable/PageTableColumn.d.ts +103 -80
  46. package/framework/PageTable/useTableItems.d.ts +2 -5
  47. package/framework/PageTabs/PageBreadcrumbs.d.ts +11 -0
  48. package/framework/PageTabs/PageRoutedTabs.d.ts +6 -0
  49. package/framework/PageTabs/PageTabs.d.ts +1 -0
  50. package/framework/PageToolbar/PageToolbar.d.ts +2 -0
  51. package/framework/PageToolbar/PageToolbarFilter.d.ts +10 -8
  52. package/framework/PageToolbar/PageToolbarFilters/ToolbarAsyncMultiSelectFilter.d.ts +7 -2
  53. package/framework/PageToolbar/PageToolbarFilters/ToolbarAsyncSelectFilterBuilder.d.ts +4 -2
  54. package/framework/PageToolbar/PageToolbarFilters/ToolbarAsyncSingleSelectFilter.d.ts +2 -1
  55. package/framework/PageToolbar/PageToolbarFilters/ToolbarTextFilter.d.ts +16 -5
  56. package/framework/PageWizard/PageWizard.d.ts +3 -1
  57. package/framework/PageWizard/PageWizardBody.d.ts +2 -6
  58. package/framework/PageWizard/PageWizardFooter.d.ts +1 -1
  59. package/framework/PageWizard/PageWizardHeader.d.ts +5 -0
  60. package/framework/PageWizard/PageWizardNavigation.d.ts +1 -1
  61. package/framework/PageWizard/PageWizardProvider.d.ts +1 -0
  62. package/framework/PageWizard/PageWizardToggle.d.ts +1 -1
  63. package/framework/PageWizard/index.d.ts +1 -1
  64. package/framework/PageWizard/types.d.ts +12 -1
  65. package/framework/Settings.d.ts +2 -0
  66. package/framework/components/DataEditor.d.ts +12 -0
  67. package/framework/components/DropZone.d.ts +7 -0
  68. package/framework/components/ErrorBoundary.d.ts +3 -3
  69. package/framework/components/IconButton.d.ts +2 -0
  70. package/framework/components/Scrollable.d.ts +3 -1
  71. package/framework/components/icons/ExpandIcon.d.ts +4 -0
  72. package/framework/components/icons/RunningIcon.d.ts +1 -1
  73. package/framework/hooks/useID.d.ts +1 -0
  74. package/framework/index.d.ts +0 -1
  75. package/framework/publish/assets/editor.worker-CKha-MBL.d.ts +0 -0
  76. package/framework/publish/assets/json.worker-BXgpME0S.d.ts +3 -0
  77. package/framework/publish/assets/yaml.worker-DhJ2nZ1S.d.ts +3 -0
  78. package/framework/publish/index.d.ts +166 -141
  79. package/framework/utils/codeEditorUtils.d.ts +0 -4
  80. package/framework/utils/download-file.d.ts +1 -1
  81. package/index.js +28505 -25209
  82. package/index.umd.cjs +336 -281
  83. package/package.json +1 -1
  84. package/style.css +1 -1
  85. package/framework/PageCells/CapacityCell.d.ts +0 -5
  86. package/framework/PageForm/Inputs/DataEditor.d.ts +0 -12
  87. /package/framework/{PageInputs/PageHiddenInput.cy.d.ts → PageDialogs/PageDialog.cy.d.ts} +0 -0
package/README.md CHANGED
@@ -1,107 +1,5 @@
1
- # Ansible UI
1
+ # Ansible UI Framework
2
2
 
3
- UI projects for [Ansible](https://www.ansible.com).
3
+ A framework for building applications using [PatternFly](https://www.patternfly.org), developed by the Ansible UI developers.
4
4
 
5
- - [Ansible UI](#ansible-ui)
6
- - [Getting Started](#getting-started)
7
- - [Environment Variables](#environment-variables)
8
- - [NPM Scripts](#npm-scripts)
9
- - [Documentation](#documentation)
10
- - [Code of Conduct](#code-of-conduct)
11
-
12
- ## Getting Started
13
-
14
- 1. Prerequisites
15
-
16
- - Node 18.x (recommended)
17
- - NPM 8.x (recommended)
18
-
19
- Note: The project should with older versions of node and npm but may require regenerating the package-lock.json.
20
-
21
- 2. Clone Repository
22
-
23
- ```zsh
24
- git clone git@github.com:ansible/ansible-ui.git
25
- ```
26
-
27
- 3. Install Package Dependencies
28
-
29
- ```zsh
30
- npm ci
31
- ```
32
-
33
- ## Environment Variables
34
-
35
- | Environment Variable | Description |
36
- | ----------------------: | --------------------------------------------------- |
37
- | `AWX_SERVER` | The AWX server (protocol://host:port). |
38
- | `AWX_USERNAME` | The AWX server username. (only used by Cypress) |
39
- | `AWX_PASSWORD` | The AWX server password. (only used by Cypress) |
40
- | `AWX_API_PREFIX` | The AWX server API prefix. (`/api/v2`) |
41
- | `AWX_ROUTE_PREFIX` | The AWX UI route prefix. (`/awx`) |
42
- | | |
43
- | `EDA_SERVER` | The EDA server (protocol://host:port). |
44
- | `EDA_USERNAME` | The EDA server username. (only used by Cypress) |
45
- | `EDA_PASSWORD` | The EDA server password. (only used by Cypress) |
46
- | `EDA_API_PREFIX` | The EDA server API prefix. (`/api/eda/v1`) |
47
- | `EDA_ROUTE_PREFIX` | The EDA UI route prefix. (`/eda`) |
48
- | | |
49
- | `HUB_SERVER` | The HUB server (protocol://host:port). |
50
- | `HUB_USERNAME` | The HUB server username. (only used by Cypress) |
51
- | `HUB_PASSWORD` | The HUB server password. (only used by Cypress) |
52
- | `HUB_API_PREFIX` | The HUB server API prefix. (`/api/automation-hub/`) |
53
- | `HUB_ROUTE_PREFIX` | The HUB UI route prefix. (`/hub`) |
54
- | `HUB_GALAXYKIT_COMMAND` | The galaxykit command. (`galaxykit --ignore-certs`) |
55
-
56
- ```zsh
57
- export AWX_SERVER=http://localhost:8043
58
- export AWX_USERNAME='my-user'
59
- export AWX_PASSWORD='my-password'
60
-
61
- export EDA_SERVER=http://localhost:5001
62
- export EDA_USERNAME='my-user'
63
- export EDA_PASSWORD='my-password'
64
-
65
- export HUB_SERVER=http://localhost:8000
66
- export HUB_USERNAME='my-user'
67
- export HUB_PASSWORD='my-password'
68
- ```
69
-
70
- > Note: For Hub integration tests: Check that the Ansible binary was correctly installed under the Python directory. Add it to the PATH variable. This is needed for the galaxykit commands that create hub resources for tests.
71
-
72
- ## NPM Scripts
73
-
74
- | NPM Script | Description |
75
- | --------------------------- | --------------------------------------- |
76
- | `npm run awx` | Run AWX on <http://localhost:4101> |
77
- | `npm run e2e:awx` | Run AWX E2E tests from Cypress UI |
78
- | `npm run e2e:run:awx` | Run AWX E2E tests from CLI |
79
- | `npm run component:awx` | Run AWX component tests from Cypress UI |
80
- | `npm run component:run:awx` | Run AWX component tests from CLI |
81
- | | |
82
- | `npm run hub` | Run HUB on <http://localhost:4102> |
83
- | `npm run e2e:hub` | Run HUB E2E tests from Cypress UI |
84
- | `npm run e2e:run:hub` | Run HUB E2E tests from CLI |
85
- | `npm run component:hub` | Run HUB component tests from Cypress UI |
86
- | `npm run component:run:hub` | Run HUB component tests from CLI |
87
- | | |
88
- | `npm run eda` | Run EDA on <http://localhost:4103> |
89
- | `npm run e2e:eda` | Run EDA E2E tests from Cypress UI |
90
- | `npm run e2e:run:eda` | Run EDA E2E tests from CLI |
91
- | `npm run component:eda` | Run EDA component tests from Cypress UI |
92
- | `npm run component:run:eda` | Run EDA component tests from CLI |
93
- | | |
94
- | `npm run tsc` | Run Typescript compiler checks |
95
- | `npm run eslint` | Run eslint checks |
96
- | `npm run prettier` | Run prettier format checks |
97
- | `npm run prettier:fix` | Fix prettier format of files |
98
-
99
- ## Documentation
100
-
101
- - [Development](./docs/DEVELOPMENT.md)
102
- - [Framework](./framework/README.md) - A framework for building applications using [PatternFly](https://www.patternfly.org).
103
- - [Handling Errors in Forms](./framework/PageForm/README.md) - A component for handling forms and errors.
104
-
105
- ## Code of Conduct
106
-
107
- 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)
5
+ [Documentation](https://github.com/ansible/ansible-ui/wiki/Ansible-UI-Framework)