@orchestrator-ui/orchestrator-ui-components 7.3.1 → 7.4.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.3.1 build
2
+ > @orchestrator-ui/orchestrator-ui-components@7.4.1 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@7.3.1 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@7.4.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 123ms
9
+ src/configuration/version.ts 136ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.json
12
12
  CLI tsup v8.5.0
@@ -14,9 +14,9 @@ src/configuration/version.ts 123ms
14
14
  CLI Target: es2022
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 846.31 KB
17
+ ESM dist/index.js 846.05 KB
18
18
  ESM dist/index.js.map 1.59 MB
19
- ESM ⚡️ Build success in 283ms
19
+ ESM ⚡️ Build success in 287ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 21887ms
21
+ DTS ⚡️ Build success in 22984ms
22
22
  DTS dist/index.d.ts 1.47 MB
@@ -1,10 +1,10 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.3.1 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@7.4.1 lint
3
3
  > eslint
4
4
 
5
5
 
6
6
  /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
7
- 54:8 warning React Hook useEffect has a missing dependency: 'handleColorModeSwitch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
7
+ 53:8 warning React Hook useEffect has a missing dependency: 'handleColorModeSwitch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
8
8
 
9
9
  /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
10
10
  194:8 warning React Hook useEffect has missing dependencies: 'setSelectedRecordId' and 'setSelectedRecordIndex'. Either include them or remove the dependency array react-hooks/exhaustive-deps
@@ -1,25 +1,25 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.3.1 test
2
+ > @orchestrator-ui/orchestrator-ui-components@7.4.1 test
3
3
  > jest
4
4
 
5
5
  PASS Wfo-UI Tests src/utils/date.spec.ts
6
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
7
6
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
- PASS Wfo-UI Tests src/utils/string.spec.ts
7
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
9
8
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
10
9
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
10
+ PASS Wfo-UI Tests src/utils/string.spec.ts
11
11
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
12
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
13
12
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
13
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
14
14
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.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/rtk/utils.spec.ts
18
17
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
19
- PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
18
+ PASS Wfo-UI Tests src/rtk/utils.spec.ts
20
19
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
21
- PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
20
+ PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
22
21
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
22
+ PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
23
23
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
24
24
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
25
25
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.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.452 s)
39
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.296 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: 8.029 s
44
+ Time: 7.867 s
45
45
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 7.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 83904e8: Fixes datepicker field matching
8
+
9
+ ## 7.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 70c36b5: Add start workflow filters to the library and refactor to read from OrchestratorConfigContext instead of prop drilling
14
+
3
15
  ## 7.3.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -23700,6 +23700,7 @@ type OrchestratorConfig = {
23700
23700
  supportMenuItemUrl: string;
23701
23701
  enableAoStackStatus: boolean;
23702
23702
  aoStackStatusUrl: string;
23703
+ startWorkflowFilters: string[] | undefined;
23703
23704
  };
23704
23705
  declare enum ColorModes {
23705
23706
  LIGHT = "LIGHT",
@@ -24104,7 +24105,6 @@ declare const ContentContextProvider: FC<ContentContextProviderProps>;
24104
24105
  interface WfoPageTemplateProps {
24105
24106
  getAppLogo: (navigationHeight: number) => ReactElement;
24106
24107
  overrideMenuItems?: (defaultMenuItems: EuiSideNavItemType<object>[]) => EuiSideNavItemType<object>[];
24107
- overrideStartWorkflowFilters?: (ProductLifecycleStatus | string)[];
24108
24108
  children: ReactNode;
24109
24109
  colorMode: EuiThemeColorMode;
24110
24110
  setColorMode: React__default.Dispatch<React__default.SetStateAction<EuiThemeColorMode>>;
@@ -24139,7 +24139,6 @@ declare const urlPolicyMap: Map<string, PolicyResource>;
24139
24139
  declare const createSideNavDivider: () => EuiSideNavItemType$1<object>;
24140
24140
  type WfoSidebarProps = {
24141
24141
  overrideMenuItems?: (defaultMenuItems: EuiSideNavItemType$1<object>[]) => EuiSideNavItemType$1<object>[];
24142
- overrideStartWorkflowFilters?: (ProductLifecycleStatus | string)[];
24143
24142
  };
24144
24143
  declare const WfoSidebar: FC<WfoSidebarProps>;
24145
24144
 
@@ -24597,10 +24596,7 @@ declare const WfoRenderElementOrString: FC<WfoRenderElementOrStringProps>;
24597
24596
 
24598
24597
  declare const WfoStartTaskButtonComboBox: () => _emotion_react_jsx_runtime.JSX.Element;
24599
24598
 
24600
- interface WfoStartWorkflowButtonComboBoxProps {
24601
- startWorkflowFilters?: (ProductLifecycleStatus | string)[];
24602
- }
24603
- declare const WfoStartWorkflowButtonComboBox: ({ startWorkflowFilters, }: WfoStartWorkflowButtonComboBoxProps) => _emotion_react_jsx_runtime.JSX.Element;
24599
+ declare const WfoStartWorkflowButtonComboBox: () => _emotion_react_jsx_runtime.JSX.Element;
24604
24600
 
24605
24601
  declare const getNumberOfColumns: (currentBreakpoint: string | undefined) => 2 | 1 | 3;
24606
24602
 
@@ -27114,7 +27110,7 @@ declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
27114
27110
  declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
27115
27111
  declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
27116
27112
 
27117
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.3.1";
27113
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.4.1";
27118
27114
 
27119
27115
  declare const useGetTranslationMessages: (locale: string | undefined) => {
27120
27116
  pydanticForms: {
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
66
66
  })(PolicyResource || {});
67
67
 
68
68
  // src/configuration/version.ts
69
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.3.1";
69
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.4.1";
70
70
 
71
71
  // src/types/types.ts
72
72
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -81,12 +81,12 @@ var WorkerTypes = /* @__PURE__ */ ((WorkerTypes3) => {
81
81
  WorkerTypes3["THREAD"] = "THREAD";
82
82
  return WorkerTypes3;
83
83
  })(WorkerTypes || {});
84
- var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus3) => {
85
- ProductLifecycleStatus3["ACTIVE"] = "active";
86
- ProductLifecycleStatus3["PRE_PRODUCTION"] = "pre production";
87
- ProductLifecycleStatus3["PHASE_OUT"] = "phase out";
88
- ProductLifecycleStatus3["END_OF_LIFE"] = "end of life";
89
- return ProductLifecycleStatus3;
84
+ var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus2) => {
85
+ ProductLifecycleStatus2["ACTIVE"] = "active";
86
+ ProductLifecycleStatus2["PRE_PRODUCTION"] = "pre production";
87
+ ProductLifecycleStatus2["PHASE_OUT"] = "phase out";
88
+ ProductLifecycleStatus2["END_OF_LIFE"] = "end of life";
89
+ return ProductLifecycleStatus2;
90
90
  })(ProductLifecycleStatus || {});
91
91
  var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
92
92
  BadgeType2["WORKFLOW"] = "workflow";
@@ -830,7 +830,8 @@ var emptyOrchestratorConfig = {
830
830
  enableSupportMenuItem: false,
831
831
  supportMenuItemUrl: "",
832
832
  enableAoStackStatus: false,
833
- aoStackStatusUrl: ""
833
+ aoStackStatusUrl: "",
834
+ startWorkflowFilters: void 0
834
835
  };
835
836
  var OrchestratorConfigContext = createContext2(
836
837
  emptyOrchestratorConfig
@@ -5630,13 +5631,7 @@ var WfoPageTemplate = (props) => {
5630
5631
  }
5631
5632
  ) });
5632
5633
  };
5633
- var WfoPageTemplateContent = ({
5634
- children,
5635
- getAppLogo,
5636
- overrideMenuItems,
5637
- overrideStartWorkflowFilters,
5638
- handleColorModeSwitch
5639
- }) => {
5634
+ var WfoPageTemplateContent = ({ children, getAppLogo, overrideMenuItems, handleColorModeSwitch }) => {
5640
5635
  const { getSidebarStyle, NAVIGATION_HEIGHT } = useWithOrchestratorTheme(
5641
5636
  getPageTemplateStyles
5642
5637
  );
@@ -5663,13 +5658,7 @@ var WfoPageTemplateContent = ({
5663
5658
  EuiPageTemplate.Sidebar,
5664
5659
  {
5665
5660
  css: getSidebarStyle(NAVIGATION_HEIGHT),
5666
- children: /* @__PURE__ */ jsx67(
5667
- WfoSidebar,
5668
- {
5669
- overrideMenuItems,
5670
- overrideStartWorkflowFilters
5671
- }
5672
- )
5661
+ children: /* @__PURE__ */ jsx67(WfoSidebar, { overrideMenuItems })
5673
5662
  }
5674
5663
  ),
5675
5664
  /* @__PURE__ */ jsx67(
@@ -5863,9 +5852,9 @@ var WfoStartButtonComboBox = ({
5863
5852
  isProcess,
5864
5853
  className,
5865
5854
  selectedProductStatus,
5866
- setSelectedProductStatus,
5867
- startWorkflowFilters
5855
+ setSelectedProductStatus
5868
5856
  }) => {
5857
+ const { startWorkflowFilters } = useGetOrchestratorConfig();
5869
5858
  const [isPopoverOpen, setPopoverOpen] = useState6(false);
5870
5859
  const { theme } = useOrchestratorTheme();
5871
5860
  const { selectableStyle } = useWithOrchestratorTheme(getStyles);
@@ -5957,9 +5946,7 @@ var WfoStartButtonComboBox = ({
5957
5946
 
5958
5947
  // src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx
5959
5948
  import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
5960
- var WfoStartWorkflowButtonComboBox = ({
5961
- startWorkflowFilters
5962
- }) => {
5949
+ var WfoStartWorkflowButtonComboBox = () => {
5963
5950
  const router = useRouter();
5964
5951
  const t = useTranslations6("common");
5965
5952
  const { isEngineRunningNow } = useCheckEngineStatus();
@@ -5994,8 +5981,7 @@ var WfoStartWorkflowButtonComboBox = ({
5994
5981
  isProcess: true,
5995
5982
  css: { width: "300px" },
5996
5983
  selectedProductStatus,
5997
- setSelectedProductStatus,
5998
- startWorkflowFilters
5984
+ setSelectedProductStatus
5999
5985
  }
6000
5986
  );
6001
5987
  };
@@ -6043,10 +6029,7 @@ var createSideNavDivider = () => ({
6043
6029
  id: htmlIdGenerator("menuDivider")(),
6044
6030
  renderItem: () => /* @__PURE__ */ jsx71(EuiHorizontalRule, { margin: "xs" })
6045
6031
  });
6046
- var WfoSidebar = ({
6047
- overrideMenuItems,
6048
- overrideStartWorkflowFilters
6049
- }) => {
6032
+ var WfoSidebar = ({ overrideMenuItems }) => {
6050
6033
  const { menuStyle } = useWithOrchestratorTheme(getMenuStyles);
6051
6034
  const t = useTranslations7("main");
6052
6035
  const router = useRouter2();
@@ -6242,12 +6225,7 @@ var WfoSidebar = ({
6242
6225
  WfoIsAllowedToRender,
6243
6226
  {
6244
6227
  resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
6245
- children: /* @__PURE__ */ jsx71(
6246
- WfoStartWorkflowButtonComboBox,
6247
- {
6248
- startWorkflowFilters: overrideStartWorkflowFilters
6249
- }
6250
- )
6228
+ children: /* @__PURE__ */ jsx71(WfoStartWorkflowButtonComboBox, {})
6251
6229
  }
6252
6230
  ),
6253
6231
  /* @__PURE__ */ jsx71(EuiSpacer3, { size: "xl" }),
@@ -7517,7 +7495,7 @@ var useGetComponentMatcherExtender = () => {
7517
7495
  },
7518
7496
  matcher: (field) => {
7519
7497
  const { type, format } = field;
7520
- return type === PydanticFormFieldType.NUMBER && format === PydanticFormFieldFormat.DATETIME;
7498
+ return type === PydanticFormFieldType.NUMBER && (format === PydanticFormFieldFormat.DATETIME || format === PydanticFormFieldFormat.TIMESTAMP);
7521
7499
  }
7522
7500
  },
7523
7501
  {