@orchestrator-ui/orchestrator-ui-components 1.38.2 → 2.1.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 (113) hide show
  1. package/.turbo/turbo-build.log +11 -9
  2. package/.turbo/turbo-lint.log +5 -2
  3. package/.turbo/turbo-test.log +14 -14
  4. package/CHANGELOG.md +30 -0
  5. package/dist/index.d.ts +329 -172
  6. package/dist/index.js +6152 -5545
  7. package/dist/index.js.map +1 -0
  8. package/package.json +2 -2
  9. package/src/components/WfoContentHeader/WfoContentHeader.tsx +55 -0
  10. package/src/components/WfoContentHeader/index.ts +1 -0
  11. package/src/components/WfoForms/formFields/SubscriptionSummaryField.tsx +6 -5
  12. package/src/components/WfoInlineNoteEdit/WfoInlineNoteEdit.tsx +105 -0
  13. package/src/components/WfoInlineNoteEdit/index.ts +1 -0
  14. package/src/components/WfoPageTemplate/WfoPageHeader/WfoPageHeader.tsx +3 -1
  15. package/src/components/WfoPageTemplate/WfoSidebar/WfoCopyright.tsx +1 -1
  16. package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +6 -6
  17. package/src/components/WfoProcessList/WfoProcessesList.tsx +52 -51
  18. package/src/components/WfoRadioDropdown/WfoRadioDropdown.tsx +88 -0
  19. package/src/components/WfoRadioDropdown/index.ts +1 -0
  20. package/src/components/WfoRenderElementOrString/WfoRenderElementOrString.tsx +16 -0
  21. package/src/components/WfoRenderElementOrString/index.ts +1 -0
  22. package/src/components/WfoSubscription/WfoInSyncField.tsx +13 -9
  23. package/src/components/WfoSubscription/WfoInUseByRelations.tsx +4 -2
  24. package/src/components/WfoSubscription/WfoProcessesTimeline.tsx +76 -29
  25. package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +92 -84
  26. package/src/components/WfoSubscription/WfoSubscription.tsx +19 -37
  27. package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +17 -9
  28. package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +18 -156
  29. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx +119 -0
  30. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionFixedInputSection.tsx +28 -0
  31. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionMetadataSection.tsx +29 -0
  32. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionProductInfoSection.tsx +55 -0
  33. package/src/components/WfoSubscription/WfoSubscriptionGeneralSections/index.ts +4 -0
  34. package/src/components/WfoSubscription/index.ts +3 -0
  35. package/src/components/WfoSubscription/overrides/index.ts +1 -0
  36. package/src/components/WfoSubscription/styles.ts +4 -1
  37. package/src/components/WfoSubscription/utils/relatedSubscriptionsListItemsObjectMappers.ts +62 -0
  38. package/src/components/WfoSubscription/utils/utils.spec.ts +0 -13
  39. package/src/components/WfoSubscription/utils/utils.ts +18 -5
  40. package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +105 -100
  41. package/src/components/WfoTable/{WfoTableWithFilter/WfoTableWithFilter.tsx → WfoAdvancedTable/WfoAdvancedTable.tsx} +65 -123
  42. package/src/components/WfoTable/WfoAdvancedTable/getRowDetailData.tsx +55 -0
  43. package/src/components/WfoTable/WfoAdvancedTable/index.ts +4 -0
  44. package/src/components/WfoTable/WfoAdvancedTable/toSortedTableColumnConfig.ts +12 -0
  45. package/src/components/WfoTable/WfoAdvancedTable/types.ts +23 -0
  46. package/src/components/WfoTable/WfoStatusColorField/WfoStatusColorField.tsx +16 -0
  47. package/src/components/WfoTable/WfoStatusColorField/index.ts +1 -0
  48. package/src/components/WfoTable/WfoStatusColorField/styles.ts +20 -0
  49. package/src/components/WfoTable/WfoTable/WfoExpandedRow.tsx +33 -0
  50. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandableRow.tsx +48 -0
  51. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx +71 -0
  52. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx +100 -0
  53. package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTableGroups.tsx +74 -0
  54. package/src/components/WfoTable/WfoTable/WfoGroupedTable/styles.ts +39 -0
  55. package/src/components/WfoTable/WfoTable/WfoGroupedTable/useGroupedTableConfig.tsx +184 -0
  56. package/src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts +133 -0
  57. package/src/components/WfoTable/WfoTable/WfoGroupedTable/utils.ts +41 -0
  58. package/src/components/WfoTable/WfoTable/WfoMultilineCell.tsx +13 -0
  59. package/src/components/WfoTable/WfoTable/WfoTable.tsx +201 -0
  60. package/src/components/WfoTable/WfoTable/WfoTableDataRows.tsx +112 -0
  61. package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/WfoSortDirectionIcon.tsx +3 -3
  62. package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/WfoTableHeaderCell.tsx +4 -3
  63. package/src/components/WfoTable/WfoTable/WfoTableHeaderCell/index.ts +2 -0
  64. package/src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx +114 -0
  65. package/src/components/WfoTable/WfoTable/WfoTruncateCell.tsx +23 -0
  66. package/src/components/WfoTable/WfoTable/constants.ts +1 -0
  67. package/src/components/WfoTable/WfoTable/index.ts +14 -0
  68. package/src/components/WfoTable/WfoTable/styles.ts +117 -0
  69. package/src/components/WfoTable/WfoTable/utils.spec.ts +79 -0
  70. package/src/components/WfoTable/WfoTable/utils.ts +78 -0
  71. package/src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx +13 -12
  72. package/src/components/WfoTable/WfoTableWithFilter/index.ts +1 -1
  73. package/src/components/WfoTable/index.ts +4 -5
  74. package/src/components/WfoTable/utils/columns.ts +1 -48
  75. package/src/components/WfoTable/utils/tableUtils.ts +13 -10
  76. package/src/components/WfoTree/WfoTreeBranch.tsx +10 -1
  77. package/src/components/WfoTree/WfoTreeNode.tsx +8 -57
  78. package/src/components/WfoTree/WfoTreeNodeListItem.tsx +65 -0
  79. package/src/components/WfoTree/styles.ts +28 -4
  80. package/src/components/index.ts +4 -0
  81. package/src/configuration/policy-resources.ts +1 -0
  82. package/src/configuration/version.ts +1 -1
  83. package/src/icons/WfoXMarkSmall.tsx +29 -0
  84. package/src/messages/en-GB.json +4 -0
  85. package/src/messages/nl-NL.json +4 -0
  86. package/src/pages/metadata/WfoMetadataPageLayout.tsx +4 -4
  87. package/src/pages/metadata/WfoProductBlocksPage.tsx +42 -59
  88. package/src/pages/metadata/WfoProductsPage.tsx +41 -47
  89. package/src/pages/metadata/WfoResourceTypesPage.tsx +26 -35
  90. package/src/pages/metadata/WfoTasksPage.tsx +35 -33
  91. package/src/pages/metadata/WfoWorkflowsPage.tsx +33 -29
  92. package/src/pages/processes/WfoProcessDetail.tsx +47 -55
  93. package/src/pages/settings/WfoSettingsPage.tsx +9 -4
  94. package/src/pages/startPage/WfoStartPage.tsx +17 -1
  95. package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +4 -5
  96. package/src/pages/tasks/WfoTasksListPage.tsx +44 -52
  97. package/src/pages/workflows/WfoWorkflowsListPage.tsx +4 -5
  98. package/src/rtk/endpoints/index.ts +1 -0
  99. package/src/rtk/endpoints/relatedSubscriptions.ts +5 -4
  100. package/src/rtk/endpoints/subscriptionActions.ts +11 -1
  101. package/src/utils/getObjectKeys.ts +3 -0
  102. package/src/utils/index.ts +5 -3
  103. package/tsup.config.ts +10 -0
  104. package/src/components/WfoTable/WfoBasicTable/WfoBasicTable.tsx +0 -194
  105. package/src/components/WfoTable/WfoBasicTable/WfoStatusColorField.tsx +0 -21
  106. package/src/components/WfoTable/WfoBasicTable/index.ts +0 -5
  107. package/src/components/WfoTable/WfoDataGridTable/WfoDataGridTable.stories.tsx +0 -136
  108. package/src/components/WfoTable/WfoDataGridTable/WfoDataGridTable.tsx +0 -146
  109. package/src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts +0 -113
  110. package/src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.ts +0 -81
  111. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts +0 -52
  112. package/src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.ts +0 -23
  113. /package/src/components/WfoTable/{WfoBasicTable → WfoTable/WfoTableHeaderCell}/styles.ts +0 -0
@@ -1,19 +1,21 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 build
3
- > npm run generate-version && tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
2
+ > @orchestrator-ui/orchestrator-ui-components@2.1.0 build
3
+ > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@2.1.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 55ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.1.0
13
- CLI Target: es6
13
+ CLI Using tsup config: /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/tsup.config.ts
14
+ CLI Target: es2020
14
15
  ESM Build start
15
- ESM dist/index.js 1.88 MB
16
- ESM ⚡️ Build success in 945ms
17
16
  DTS Build start
18
- DTS ⚡️ Build success in 19769ms
19
- DTS dist/index.d.ts 175.71 KB
17
+ ESM dist/index.js 1.88 MB
18
+ ESM dist/index.js.map 3.42 MB
19
+ ESM ⚡️ Build success in 1363ms
20
+ DTS ⚡️ Build success in 20354ms
21
+ DTS dist/index.d.ts 183.06 KB
@@ -1,10 +1,13 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@2.1.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,41 +1,41 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.38.2 test
2
+ > @orchestrator-ui/orchestrator-ui-components@2.1.0 test
3
3
  > jest
4
4
 
5
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
5
6
  PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
6
7
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
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
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
16
- PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
17
15
  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
16
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
20
17
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
18
+ PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
21
19
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
20
+ PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
22
21
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
23
22
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
24
23
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
25
- PASS Wfo-UI Tests src/utils/filterData.spec.ts
26
24
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
27
- PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
25
+ PASS Wfo-UI Tests src/utils/filterData.spec.ts
28
26
  PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
27
+ PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
29
28
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
30
29
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
31
- PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.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.109 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.671 s
41
41
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fb2cca8: 1376 Adds inline note edit component
8
+ - 93e1926: 1363 Consistent header spacings on all pages
9
+ - 72007aa: 1395 Fixes sorting in the related subscriptions table
10
+
11
+ ### Patch Changes
12
+
13
+ - 851eb96: 1393 Fix workflow dropdown not refreshed after subscription is set in sync
14
+
15
+ ## 2.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - 7991a97: 1384 - (Breaking change) - Replaces WfoBasicTable and WfoTableWithFilter with WfoTable and WfoAdvancedTable. Both have slightly different interfaces compared with the previous components
20
+
21
+ ### Minor Changes
22
+
23
+ - ca01308: Refactor WfoSubscriptionGeneral, use WfoSubscriptionDetailSection in forms
24
+ - 0041a7c: 699, 1370 - Fix and update product block view
25
+
26
+ ### Patch Changes
27
+
28
+ - 94ed80b: "649 Fixed a bug where details were shown based on index instead of unique id of a PB
29
+ - 5ce3e1f: 1363 Fixes labels in table settings modal
30
+ - 0fe9ad5: 1363 Adds WfoMultilineCell and WfoTruncateCell
31
+ - 88c4181: 1378 Add sorting for subscription details workflows tab
32
+
3
33
  ## 1.38.2
4
34
 
5
35
  ### Patch Changes