@orchestrator-ui/orchestrator-ui-components 7.5.0 → 7.5.1

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.
@@ -1,12 +1,12 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.5.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@7.5.1 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@7.5.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@7.5.1 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 45ms
9
+ src/configuration/version.ts 48ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.json
12
12
  CLI tsup v8.5.1
@@ -14,9 +14,9 @@ src/configuration/version.ts 45ms
14
14
  CLI Target: es2022
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 809.37 KB
17
+ ESM dist/index.js 810.00 KB
18
18
  ESM dist/index.js.map 1.38 MB
19
- ESM ⚡️ Build success in 288ms
19
+ ESM ⚡️ Build success in 337ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 20806ms
21
+ DTS ⚡️ Build success in 23887ms
22
22
  DTS dist/index.d.ts 1.48 MB
@@ -1,4 +1,4 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.5.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@7.5.1 lint
3
3
  > eslint
4
4
 
@@ -1,23 +1,23 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.5.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@7.5.1 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
6
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
7
5
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
8
- PASS Wfo-UI Tests src/utils/string.spec.ts
9
6
  PASS Wfo-UI Tests src/utils/date.spec.ts
10
- PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
7
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
+ PASS Wfo-UI Tests src/utils/string.spec.ts
11
9
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
10
+ PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
11
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
12
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/utils/compareVersions.spec.ts
15
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
16
16
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
17
- PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
18
17
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
19
- PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
18
+ PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
20
19
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
20
+ PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
21
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
22
22
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
23
23
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
@@ -36,10 +36,10 @@ PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
36
36
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
37
37
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
38
38
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
39
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.281 s)
39
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.497 s)
40
40
 
41
41
  Test Suites: 35 passed, 35 total
42
42
  Tests: 226 passed, 226 total
43
43
  Snapshots: 0 total
44
- Time: 7.914 s
44
+ Time: 8.191 s
45
45
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 7.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 74b893a: Submenu in submenu menu layout fix
8
+
3
9
  ## 7.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -27217,7 +27217,7 @@ declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
27217
27217
  declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
27218
27218
  declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
27219
27219
 
27220
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.5.0";
27220
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.5.1";
27221
27221
 
27222
27222
  declare const useGetTranslationMessages: (locale: string | undefined) => {
27223
27223
  pydanticForms: {
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
63
63
  })(PolicyResource || {});
64
64
 
65
65
  // src/configuration/version.ts
66
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.5.0";
66
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.5.1";
67
67
 
68
68
  // src/types/types.ts
69
69
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -4434,6 +4434,9 @@ var getCopyrightStyles = ({ theme }) => {
4434
4434
  var getMenuStyles = ({ theme }) => {
4435
4435
  const menuStyle = css5({
4436
4436
  backgroundColor: theme.colors.backgroundBaseSubdued,
4437
+ ".euiSideNavItem--trunk > .euiSideNavItem__items": {
4438
+ marginInline: theme.base
4439
+ },
4437
4440
  ".euiSideNavItem--branch": {
4438
4441
  "&:after": {
4439
4442
  backgroundColor: theme.colors.borderBaseSubdued,
@@ -4461,8 +4464,7 @@ var getMenuItemStyles = ({ theme, isDarkModeActive }) => {
4461
4464
  color: theme.colors.textSubdued,
4462
4465
  padding: `${theme.base * 0.5}px ${theme.base * 0.75}px`
4463
4466
  };
4464
- const baseSubMenuStyles = {
4465
- ...baseStyles,
4467
+ const subItemDash = {
4466
4468
  ":after": {
4467
4469
  content: "''",
4468
4470
  top: "50%",
@@ -4474,6 +4476,10 @@ var getMenuItemStyles = ({ theme, isDarkModeActive }) => {
4474
4476
  transform: "translateY(-50%)"
4475
4477
  }
4476
4478
  };
4479
+ const baseSubMenuStyles = {
4480
+ ...baseStyles,
4481
+ ...subItemDash
4482
+ };
4477
4483
  const menuItemStyle = css5({
4478
4484
  ...baseStyles
4479
4485
  });
@@ -4503,17 +4509,34 @@ var getMenuItemStyles = ({ theme, isDarkModeActive }) => {
4503
4509
  marginLeft: `${theme.size.xs}`,
4504
4510
  paddingLeft: `${theme.size.s}`
4505
4511
  });
4506
- const subMenuHeaderStyle = css5({
4512
+ const subMenuHeader = {
4507
4513
  ...baseStyles,
4508
4514
  color: theme.colors.link,
4509
4515
  fontWeight: theme.font.weight.medium
4516
+ };
4517
+ const subMenuHeaderStyle = css5({
4518
+ ...subMenuHeader
4519
+ });
4520
+ const subMenuSubItemHeaderStyle = css5({
4521
+ ...subMenuHeader,
4522
+ ...{
4523
+ ":after": {
4524
+ content: "''",
4525
+ left: 0,
4526
+ width: "4px",
4527
+ height: "1px",
4528
+ backgroundColor: theme.colors.borderBaseSubdued,
4529
+ position: "absolute"
4530
+ }
4531
+ }
4510
4532
  });
4511
4533
  return {
4512
4534
  menuItemStyle,
4513
4535
  selectedMenuItem,
4514
4536
  selectedSubMenuItem,
4515
4537
  subMenuItemStyle,
4516
- subMenuHeaderStyle
4538
+ subMenuHeaderStyle,
4539
+ subMenuSubItemHeaderStyle
4517
4540
  };
4518
4541
  };
4519
4542
 
@@ -4937,12 +4960,19 @@ var WfoMenuItemLink = ({
4937
4960
  isSubItem,
4938
4961
  hasSubItems
4939
4962
  }) => {
4940
- const { menuItemStyle, selectedMenuItem, selectedSubMenuItem, subMenuHeaderStyle, subMenuItemStyle } = useWithOrchestratorTheme(getMenuItemStyles);
4963
+ const {
4964
+ menuItemStyle,
4965
+ selectedMenuItem,
4966
+ selectedSubMenuItem,
4967
+ subMenuHeaderStyle,
4968
+ subMenuItemStyle,
4969
+ subMenuSubItemHeaderStyle
4970
+ } = useWithOrchestratorTheme(getMenuItemStyles);
4941
4971
  const getMenuItemStyle = () => {
4942
- if (isSubItem) {
4972
+ if (isSubItem && (!hasSubItems || !isSelected)) {
4943
4973
  return isSelected ? selectedSubMenuItem : subMenuItemStyle;
4944
4974
  } else if (isSelected && hasSubItems) {
4945
- return subMenuHeaderStyle;
4975
+ return isSubItem ? subMenuSubItemHeaderStyle : subMenuHeaderStyle;
4946
4976
  } else {
4947
4977
  return isSelected ? selectedMenuItem : menuItemStyle;
4948
4978
  }
@@ -9999,7 +10029,7 @@ var getStyles7 = ({ theme, toSecondaryColor }) => {
9999
10029
  cursor: "pointer"
10000
10030
  };
10001
10031
  const treeContainerStyle = {
10002
- width: 0,
10032
+ width: theme.size.m,
10003
10033
  marginTop: theme.size.s,
10004
10034
  marginRight: `-${theme.size.s}`
10005
10035
  };