@orchestrator-ui/orchestrator-ui-components 1.38.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/.turbo/turbo-lint.log +5 -2
  3. package/.turbo/turbo-test.log +12 -12
  4. package/CHANGELOG.md +18 -0
  5. package/dist/index.d.ts +246 -170
  6. package/dist/index.js +4350 -3504
  7. package/package.json +1 -1
  8. package/src/components/WfoForms/formFields/SubscriptionSummaryField.tsx +6 -5
  9. package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +3 -1
  10. package/src/components/WfoPageTemplate/WfoSidebar/WfoCopyright.tsx +1 -1
  11. package/src/components/WfoProcessList/WfoProcessesList.tsx +52 -51
  12. package/src/components/WfoRadioDropdown/WfoRadioDropdown.tsx +88 -0
  13. package/src/components/WfoRadioDropdown/index.ts +1 -0
  14. package/src/components/WfoSubscription/WfoInSyncField.tsx +13 -9
  15. package/src/components/WfoSubscription/WfoInUseByRelations.tsx +4 -2
  16. package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +76 -29
  17. package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +50 -56
  18. package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +17 -9
  19. package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +18 -156
  20. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx +113 -0
  21. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionFixedInputSection.tsx +28 -0
  22. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionMetadataSection.tsx +29 -0
  23. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionProductInfoSection.tsx +55 -0
  24. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/index.ts +4 -0
  25. package/src/components/WfoSubscription/index.ts +3 -0
  26. package/src/components/WfoSubscription/overrides/index.ts +1 -0
  27. package/src/components/WfoSubscription/styles.ts +4 -1
  28. package/src/components/WfoSubscription/utils/utils.spec.ts +0 -13
  29. package/src/components/WfoSubscription/utils/utils.ts +18 -5
  30. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +105 -100
  31. package/src/components/WfoTable/{WfoTableWithFilter/WfoTableWithFilter.tsx → WfoAdvancedTable/WfoAdvancedTable.tsx} +65 -123
  32. package/src/components/WfoTable/WfoAdvancedTable/getRowDetailData.tsx +55 -0
  33. package/src/components/WfoTable/WfoAdvancedTable/index.ts +4 -0
  34. package/src/components/WfoTable/WfoAdvancedTable/toSortedTableColumnConfig.ts +12 -0
  35. package/src/components/WfoTable/WfoAdvancedTable/types.ts +23 -0
  36. package/src/components/WfoTable/WfoStatusColorField/WfoStatusColorField.tsx +16 -0
  37. package/src/components/WfoTable/WfoStatusColorField/index.ts +1 -0
  38. package/src/components/WfoTable/WfoStatusColorField/styles.ts +20 -0
  39. package/src/components/WfoTable/WfoTable/WfoExpandedRow.tsx +33 -0
  40. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandableRow.tsx +48 -0
  41. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx +71 -0
  42. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx +100 -0
  43. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTableGroups.tsx +74 -0
  44. package/src/components/WfoTable/WfoTable/WfoGroupedTable/styles.ts +39 -0
  45. package/src/components/WfoTable/WfoTable/WfoGroupedTable/useGroupedTableConfig.tsx +184 -0
  46. package/src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts +133 -0
  47. package/src/components/WfoTable/WfoTable/WfoGroupedTable/utils.ts +41 -0
  48. package/src/components/WfoTable/WfoTable/WfoMultilineCell.tsx +13 -0
  49. package/src/components/WfoTable/WfoTable/WfoTable.tsx +201 -0
  50. package/src/components/WfoTable/WfoTable/WfoTableDataRows.tsx +112 -0
  51. package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/WfoSortDirectionIcon.tsx +3 -3
  52. package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/WfoTableHeaderCell.tsx +4 -3
  53. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/index.ts +2 -0
  54. package/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx +114 -0
  55. package/src/components/WfoTable/WfoTable/WfoTruncateCell.tsx +23 -0
  56. package/src/components/WfoTable/WfoTable/constants.ts +1 -0
  57. package/src/components/WfoTable/WfoTable/index.ts +14 -0
  58. package/src/components/WfoTable/WfoTable/styles.ts +117 -0
  59. package/src/components/WfoTable/WfoTable/utils.spec.ts +79 -0
  60. package/src/components/WfoTable/WfoTable/utils.ts +78 -0
  61. package/src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx +13 -12
  62. package/src/components/WfoTable/WfoTableWithFilter/index.ts +1 -1
  63. package/src/components/WfoTable/index.ts +4 -5
  64. package/src/components/WfoTable/utils/columns.ts +1 -48
  65. package/src/components/WfoTable/utils/tableUtils.ts +13 -10
  66. package/src/components/WfoTree/WfoTreeBranch.tsx +10 -1
  67. package/src/components/WfoTree/WfoTreeNode.tsx +8 -57
  68. package/src/components/WfoTree/WfoTreeNodeListItem.tsx +65 -0
  69. package/src/components/WfoTree/styles.ts +28 -4
  70. package/src/components/index.ts +1 -0
  71. package/src/configuration/policy-resources.ts +1 -0
  72. package/src/configuration/version.ts +1 -1
  73. package/src/icons/WfoXMarkSmall.tsx +29 -0
  74. package/src/messages/en-GB.json +4 -0
  75. package/src/messages/nl-NL.json +4 -0
  76. package/src/pages/metadata/WfoProductBlocksPage.tsx +42 -59
  77. package/src/pages/metadata/WfoProductsPage.tsx +41 -47
  78. package/src/pages/metadata/WfoResourceTypesPage.tsx +26 -35
  79. package/src/pages/metadata/WfoTasksPage.tsx +35 -33
  80. package/src/pages/metadata/WfoWorkflowsPage.tsx +33 -29
  81. package/src/pages/tasks/WfoTasksListPage.tsx +25 -19
  82. package/src/utils/getObjectKeys.ts +3 -0
  83. package/src/utils/index.ts +5 -3
  84. package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +0 -194
  85. package/src/components/WfoTable/WfoBasicTable/WfoStatusColorField.tsx +0 -21
  86. package/src/components/WfoTable/WfoBasicTable/index.ts +0 -5
  87. package/src/components/WfoTable/WfoDataGridTable/WfoDataGridTable.stories.tsx +0 -136
  88. package/src/components/WfoTable/WfoDataGridTable/WfoDataGridTable.tsx +0 -146
  89. package/src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts +0 -113
  90. package/src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.ts +0 -81
  91. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts +0 -52
  92. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +0 -23
  93. /package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/styles.ts +0 -0
@@ -1,19 +1,19 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 build
2
+ > @orchestrator-ui/orchestrator-ui-components@2.0.0 build
3
3
  > npm run generate-version && tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@2.0.0 generate-version
7
7
  > node -p "'export const ORCHESTRATOR_UI_LIBRARY_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/configuration/version.ts && prettier --write src/configuration/version.ts
8
8
 
9
- src/configuration/version.ts 49ms
9
+ src/configuration/version.ts 51ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.1.0
13
13
  CLI Target: es6
14
14
  ESM Build start
15
- ESM dist/index.js 1.88 MB
16
- ESM ⚡️ Build success in 945ms
15
+ ESM dist/index.js 1.91 MB
16
+ ESM ⚡️ Build success in 861ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 19769ms
19
- DTS dist/index.d.ts 175.71 KB
18
+ DTS ⚡️ Build success in 19929ms
19
+ DTS dist/index.d.ts 178.99 KB
@@ -1,10 +1,13 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@2.0.0 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
5
5
 
6
6
  /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoForms/formFields/deprecated/VlanField.tsx
7
7
  168:8 warning React Hook useEffect has missing dependencies: 'disabled' and 'value'. Either include them or remove the dependency array react-hooks/exhaustive-deps
8
8
 
9
- ✖ 1 problem (0 errors, 1 warning)
9
+ /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoTable/WfoTable/WfoGroupedTable/useGroupedTableConfig.tsx
10
+ 56:8 warning React Hook useEffect has missing dependencies: 'groups' and 'notifyParent'. Either include them or remove the dependency array. If 'notifyParent' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11
+
12
+ ✖ 2 problems (0 errors, 2 warnings)
10
13
 
@@ -1,23 +1,22 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 test
2
+ > @orchestrator-ui/orchestrator-ui-components@2.0.0 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
6
5
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
+ PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
7
7
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
8
8
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
9
- PASS Wfo-UI Tests src/utils/date.spec.ts
10
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
10
+ PASS Wfo-UI Tests src/utils/date.spec.ts
11
11
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
12
- PASS Wfo-UI Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
12
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
13
13
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
14
14
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
15
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
16
- PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
17
16
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
18
- PASS Wfo-UI Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
19
- PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
17
+ PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
20
18
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
19
+ PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
21
20
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
22
21
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
23
22
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
@@ -26,16 +25,17 @@ PASS Wfo-UI Tests src/utils/filterData.spec.ts
26
25
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
27
26
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
28
27
  PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
29
- PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
30
28
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
31
- PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
29
+ PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
32
30
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
31
+ PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
33
32
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
34
- PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
35
33
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
34
+ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
35
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (7.399 s)
36
36
 
37
37
  Test Suites: 31 passed, 31 total
38
- Tests: 192 passed, 192 total
38
+ Tests: 190 passed, 190 total
39
39
  Snapshots: 0 total
40
- Time: 5.823 s
40
+ Time: 10.863 s
41
41
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 7991a97: 1384 - (Breaking change) - Replaces WfoBasicTable and WfoTableWithFilter with WfoTable and WfoAdvancedTable. Both have slightly different interfaces compared with the previous components
8
+
9
+ ### Minor Changes
10
+
11
+ - ca01308: Refactor WfoSubscriptionGeneral, use WfoSubscriptionDetailSection in forms
12
+ - 0041a7c: 699, 1370 - Fix and update product block view
13
+
14
+ ### Patch Changes
15
+
16
+ - 94ed80b: "649 Fixed a bug where details were shown based on index instead of unique id of a PB
17
+ - 5ce3e1f: 1363 Fixes labels in table settings modal
18
+ - 0fe9ad5: 1363 Adds WfoMultilineCell and WfoTruncateCell
19
+ - 88c4181: 1378 Add sorting for subscription details workflows tab
20
+
3
21
  ## 1.38.2
4
22
 
5
23
  ### Patch Changes