@orchestrator-ui/orchestrator-ui-components 8.4.2 → 8.4.4
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.
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +142 -139
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/WfoPydanticForm/fields/WfoInteger.tsx +2 -2
- package/src/components/WfoStartButton/WfoStartButtonComboBox.tsx +7 -3
- package/src/configuration/version.ts +1 -1
- package/src/types/types.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
64
64
|
})(PolicyResource || {});
|
|
65
65
|
|
|
66
66
|
// src/configuration/version.ts
|
|
67
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "8.4.
|
|
67
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "8.4.4";
|
|
68
68
|
|
|
69
69
|
// src/types/types.ts
|
|
70
70
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
|
|
@@ -81,9 +81,9 @@ var WorkerTypes = /* @__PURE__ */ ((WorkerTypes3) => {
|
|
|
81
81
|
})(WorkerTypes || {});
|
|
82
82
|
var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus2) => {
|
|
83
83
|
ProductLifecycleStatus2["ACTIVE"] = "active";
|
|
84
|
-
ProductLifecycleStatus2["PRE_PRODUCTION"] = "
|
|
85
|
-
ProductLifecycleStatus2["PHASE_OUT"] = "
|
|
86
|
-
ProductLifecycleStatus2["END_OF_LIFE"] = "
|
|
84
|
+
ProductLifecycleStatus2["PRE_PRODUCTION"] = "pre_production";
|
|
85
|
+
ProductLifecycleStatus2["PHASE_OUT"] = "phase_out";
|
|
86
|
+
ProductLifecycleStatus2["END_OF_LIFE"] = "end_of_life";
|
|
87
87
|
return ProductLifecycleStatus2;
|
|
88
88
|
})(ProductLifecycleStatus || {});
|
|
89
89
|
var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
@@ -4602,6 +4602,9 @@ var getStyles = ({ theme }) => {
|
|
|
4602
4602
|
|
|
4603
4603
|
// src/components/WfoStartButton/WfoStartButtonComboBox.tsx
|
|
4604
4604
|
import { Fragment as Fragment3, jsx as jsx68, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
4605
|
+
var formatProductStatusLabel = (productStatus) => {
|
|
4606
|
+
return capitalize(productStatus.replace(/_/g, " "));
|
|
4607
|
+
};
|
|
4605
4608
|
var WfoStartButtonComboBox = ({
|
|
4606
4609
|
buttonText,
|
|
4607
4610
|
options,
|
|
@@ -4642,7 +4645,7 @@ var WfoStartButtonComboBox = ({
|
|
|
4642
4645
|
iconSide: "right",
|
|
4643
4646
|
iconType: () => /* @__PURE__ */ jsx68(WfoChevronDown, { height: 18, width: 18, color: "currentColor" }),
|
|
4644
4647
|
onClick: () => setFilterPopoverOpen((v) => !v),
|
|
4645
|
-
children: /* @__PURE__ */ jsx68("b", { children:
|
|
4648
|
+
children: /* @__PURE__ */ jsx68("b", { children: formatProductStatusLabel(selectedProductStatus ?? "active" /* ACTIVE */) })
|
|
4646
4649
|
}
|
|
4647
4650
|
),
|
|
4648
4651
|
isOpen: isFilterPopoverOpen,
|
|
@@ -4653,10 +4656,10 @@ var WfoStartButtonComboBox = ({
|
|
|
4653
4656
|
{
|
|
4654
4657
|
size: "xs",
|
|
4655
4658
|
onClick: () => {
|
|
4656
|
-
setSelectedProductStatus(productStatus);
|
|
4659
|
+
setSelectedProductStatus(productStatus.toUpperCase());
|
|
4657
4660
|
setFilterPopoverOpen(false);
|
|
4658
4661
|
},
|
|
4659
|
-
children:
|
|
4662
|
+
children: formatProductStatusLabel(productStatus ?? "active" /* ACTIVE */)
|
|
4660
4663
|
},
|
|
4661
4664
|
productStatus
|
|
4662
4665
|
) }, productStatus))
|
|
@@ -5647,7 +5650,7 @@ var WfoRadio = ({ pydanticFormField, onChange, value, disabled }) => {
|
|
|
5647
5650
|
};
|
|
5648
5651
|
|
|
5649
5652
|
// src/components/WfoPydanticForm/fields/WfoInteger.tsx
|
|
5650
|
-
import
|
|
5653
|
+
import { useEffect as useEffect3, useState as useState8 } from "react";
|
|
5651
5654
|
import _2 from "lodash";
|
|
5652
5655
|
import { getFormFieldIdWithPath as getFormFieldIdWithPath2 } from "pydantic-forms";
|
|
5653
5656
|
import { EuiFieldNumber } from "@elastic/eui";
|
|
@@ -5669,7 +5672,7 @@ var WfoInteger = ({ pydanticFormField, onChange, value, disabled }) => {
|
|
|
5669
5672
|
const { formFieldBaseStyle } = useWithOrchestratorTheme(getFormFieldsBaseStyle2);
|
|
5670
5673
|
const fieldName = getFormFieldIdWithPath2(pydanticFormField.id);
|
|
5671
5674
|
const fieldValue = _2.isObject(value) && _2.has(value, fieldName) ? _2.get(value, fieldName) : value;
|
|
5672
|
-
const [userInput, setUserInput] =
|
|
5675
|
+
const [userInput, setUserInput] = useState8("");
|
|
5673
5676
|
useEffect3(() => {
|
|
5674
5677
|
if (fieldValue !== void 0 && fieldValue !== null) {
|
|
5675
5678
|
setUserInput(fieldValue);
|
|
@@ -5702,7 +5705,7 @@ var WfoInteger = ({ pydanticFormField, onChange, value, disabled }) => {
|
|
|
5702
5705
|
};
|
|
5703
5706
|
|
|
5704
5707
|
// src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
|
|
5705
|
-
import { useEffect as useEffect4, useState as
|
|
5708
|
+
import { useEffect as useEffect4, useState as useState9 } from "react";
|
|
5706
5709
|
import ReactSelect, { components } from "react-select";
|
|
5707
5710
|
import { EuiButtonIcon as EuiButtonIcon3 } from "@elastic/eui";
|
|
5708
5711
|
|
|
@@ -5794,7 +5797,7 @@ var WfoReactSelect = ({
|
|
|
5794
5797
|
refetch
|
|
5795
5798
|
}) => {
|
|
5796
5799
|
const initialValue = options.find((option) => option.value === value);
|
|
5797
|
-
const [selectedValue, setSelectedValue] =
|
|
5800
|
+
const [selectedValue, setSelectedValue] = useState9(initialValue || null);
|
|
5798
5801
|
useEffect4(() => {
|
|
5799
5802
|
const preSelectedValue = options.find((option) => option.value === value);
|
|
5800
5803
|
if (preSelectedValue !== selectedValue) {
|
|
@@ -5868,7 +5871,7 @@ var WfoDropdown = ({ onChange, pydanticFormField, value }) => {
|
|
|
5868
5871
|
};
|
|
5869
5872
|
|
|
5870
5873
|
// src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
|
|
5871
|
-
import { useEffect as useEffect5, useState as
|
|
5874
|
+
import { useEffect as useEffect5, useState as useState10 } from "react";
|
|
5872
5875
|
import { EuiCheckboxGroup } from "@elastic/eui";
|
|
5873
5876
|
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
5874
5877
|
var WfoMultiCheckboxField = ({ pydanticFormField, onChange, value }) => {
|
|
@@ -5882,7 +5885,7 @@ var WfoMultiCheckboxField = ({ pydanticFormField, onChange, value }) => {
|
|
|
5882
5885
|
};
|
|
5883
5886
|
setCheckboxIdToSelectedMap(getInitialMap());
|
|
5884
5887
|
}, [value]);
|
|
5885
|
-
const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] =
|
|
5888
|
+
const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] = useState10({});
|
|
5886
5889
|
const { options, id } = pydanticFormField;
|
|
5887
5890
|
const checkboxes = options?.map((option, index) => ({
|
|
5888
5891
|
label: option.label,
|
|
@@ -6540,7 +6543,7 @@ var WfoProductStatusBadge = ({ status }) => {
|
|
|
6540
6543
|
badgeColor: toSecondaryColor(success),
|
|
6541
6544
|
textColor: textSuccess
|
|
6542
6545
|
};
|
|
6543
|
-
case "
|
|
6546
|
+
case "end_of_life" /* END_OF_LIFE */:
|
|
6544
6547
|
return {
|
|
6545
6548
|
badgeColor: borderBaseSubdued,
|
|
6546
6549
|
textColor: textParagraph
|
|
@@ -7098,7 +7101,7 @@ var WfoValueOnlyTable = ({ values, showCopyToClipboardIcon = false }) => {
|
|
|
7098
7101
|
};
|
|
7099
7102
|
|
|
7100
7103
|
// src/components/WfoSearchBar/WfoSearchField.tsx
|
|
7101
|
-
import { useEffect as useEffect7, useRef as useRef2, useState as
|
|
7104
|
+
import { useEffect as useEffect7, useRef as useRef2, useState as useState11 } from "react";
|
|
7102
7105
|
import { useTranslations as useTranslations18 } from "next-intl";
|
|
7103
7106
|
import { EuiFieldSearch, EuiFormRow as EuiFormRow3 } from "@elastic/eui";
|
|
7104
7107
|
import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
|
|
@@ -7107,7 +7110,7 @@ var WfoSearchField = ({ queryString, queryIsValid = true, onUpdateQueryString })
|
|
|
7107
7110
|
const tError = useTranslations18("errors");
|
|
7108
7111
|
const { formFieldBaseStyle } = useWithOrchestratorTheme(getFormFieldsBaseStyle);
|
|
7109
7112
|
const handleSearch = useRef2((queryText) => onUpdateQueryString?.(queryText));
|
|
7110
|
-
const [currentQuery, setCurrentQuery] =
|
|
7113
|
+
const [currentQuery, setCurrentQuery] = useState11(queryString ?? "");
|
|
7111
7114
|
useEffect7(() => {
|
|
7112
7115
|
setCurrentQuery(queryString ?? "");
|
|
7113
7116
|
}, [queryString]);
|
|
@@ -7551,7 +7554,7 @@ var SubscriptionKeyValueBlock = ({ title, keyValues }) => {
|
|
|
7551
7554
|
};
|
|
7552
7555
|
|
|
7553
7556
|
// src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
|
|
7554
|
-
import { useContext as useContext5, useEffect as useEffect8, useState as
|
|
7557
|
+
import { useContext as useContext5, useEffect as useEffect8, useState as useState12 } from "react";
|
|
7555
7558
|
import { useTranslations as useTranslations24 } from "next-intl";
|
|
7556
7559
|
import Link6 from "next/link";
|
|
7557
7560
|
import { EuiButton as EuiButton7, EuiContextMenuItem, EuiLoadingSpinner, EuiToolTip as EuiToolTip6 } from "@elastic/eui";
|
|
@@ -7700,7 +7703,7 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
|
|
|
7700
7703
|
secondaryIconStyle,
|
|
7701
7704
|
spinnerSecondaryIconStyle
|
|
7702
7705
|
} = useWithOrchestratorTheme(getSubscriptionActionStyles);
|
|
7703
|
-
const [inSync, setInSync] =
|
|
7706
|
+
const [inSync, setInSync] = useState12(subscriptionDetail.insync);
|
|
7704
7707
|
const lastTaskRunDate = getLatestTaskDate(subscriptionDetail.processes?.page);
|
|
7705
7708
|
const lastUncompletedProcess = getLastUncompletedProcess(subscriptionDetail?.processes?.page);
|
|
7706
7709
|
const [setSubscriptionInSync, { isLoading }] = useSetSubscriptionInSyncMutation();
|
|
@@ -7935,7 +7938,7 @@ var WfoProcessesTimeline = ({ subscriptionDetailProcesses }) => {
|
|
|
7935
7938
|
};
|
|
7936
7939
|
|
|
7937
7940
|
// src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
|
|
7938
|
-
import { useState as
|
|
7941
|
+
import { useState as useState17 } from "react";
|
|
7939
7942
|
import { useTranslations as useTranslations30 } from "next-intl";
|
|
7940
7943
|
import Link8 from "next/link";
|
|
7941
7944
|
import { EuiFlexGroup as EuiFlexGroup12, EuiFlexItem as EuiFlexItem8, EuiSpacer as EuiSpacer14, EuiSwitch } from "@elastic/eui";
|
|
@@ -7973,7 +7976,7 @@ var graphQlRelatedSubscriptionsTerminatedSubscriptionsFilterMapper = (data) => d
|
|
|
7973
7976
|
} : void 0;
|
|
7974
7977
|
|
|
7975
7978
|
// src/components/WfoTable/WfoTable/WfoTable.tsx
|
|
7976
|
-
import { useRef as useRef5, useState as
|
|
7979
|
+
import { useRef as useRef5, useState as useState15 } from "react";
|
|
7977
7980
|
import { useTranslations as useTranslations27 } from "next-intl";
|
|
7978
7981
|
import { EuiSpacer as EuiSpacer12, EuiTablePagination, useEuiScrollBar } from "@elastic/eui";
|
|
7979
7982
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
@@ -8429,13 +8432,13 @@ var WfoTableDataRows = ({
|
|
|
8429
8432
|
import { useRef as useRef4 } from "react";
|
|
8430
8433
|
|
|
8431
8434
|
// src/components/WfoTable/WfoTable/WfoDragHandler.tsx
|
|
8432
|
-
import { useState as
|
|
8435
|
+
import { useState as useState13 } from "react";
|
|
8433
8436
|
import Draggable from "react-draggable";
|
|
8434
8437
|
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
8435
8438
|
var MINIMUM_COLUMN_WIDTH = 50;
|
|
8436
8439
|
var WfoDragHandler = ({ headerRowRef, fieldName, onUpdateColumWidth }) => {
|
|
8437
|
-
const [position, setPosition] =
|
|
8438
|
-
const [isDragging, setIsDragging] =
|
|
8440
|
+
const [position, setPosition] = useState13({ x: 0, y: 0 });
|
|
8441
|
+
const [isDragging, setIsDragging] = useState13(false);
|
|
8439
8442
|
const { dragAndDropStyle } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
8440
8443
|
const resetPosition = () => {
|
|
8441
8444
|
setPosition({ x: 0, y: 0 });
|
|
@@ -8497,7 +8500,7 @@ var WfoSortDirectionIcon = ({ sortDirection }) => {
|
|
|
8497
8500
|
};
|
|
8498
8501
|
|
|
8499
8502
|
// src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoTableHeaderCell.tsx
|
|
8500
|
-
import { useState as
|
|
8503
|
+
import { useState as useState14 } from "react";
|
|
8501
8504
|
import { EuiHorizontalRule as EuiHorizontalRule3, EuiPopover as EuiPopover3, EuiText as EuiText9, useGeneratedHtmlId } from "@elastic/eui";
|
|
8502
8505
|
|
|
8503
8506
|
// src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoPopoverContent.tsx
|
|
@@ -8552,7 +8555,7 @@ var WfoTableHeaderCell = ({
|
|
|
8552
8555
|
const smallContextMenuPopoverId = useGeneratedHtmlId({
|
|
8553
8556
|
prefix: "smallContextMenuPopover"
|
|
8554
8557
|
});
|
|
8555
|
-
const [isPopoverOpen, setPopover] =
|
|
8558
|
+
const [isPopoverOpen, setPopover] = useState14(false);
|
|
8556
8559
|
const handleButtonClick = () => setPopover(!isPopoverOpen);
|
|
8557
8560
|
const closePopover = () => setPopover(false);
|
|
8558
8561
|
const WfoHeaderCellContentButton = () => /* @__PURE__ */ jsx135("button", { onClick: handleButtonClick, disabled: !isFilterable, children: /* @__PURE__ */ jsx135("div", { css: getHeaderCellContentStyle(isFilterable), children }) });
|
|
@@ -8690,7 +8693,7 @@ var WfoTable = ({
|
|
|
8690
8693
|
isVirtualized = false,
|
|
8691
8694
|
height
|
|
8692
8695
|
}) => {
|
|
8693
|
-
const [localColumnWidths, setLocalColumnWidths] =
|
|
8696
|
+
const [localColumnWidths, setLocalColumnWidths] = useState15(
|
|
8694
8697
|
getColumnWidthsFromConfig(columnConfig)
|
|
8695
8698
|
);
|
|
8696
8699
|
const dataLength = data.length;
|
|
@@ -8836,7 +8839,7 @@ import { useTranslations as useTranslations29 } from "next-intl";
|
|
|
8836
8839
|
import { EuiButtonEmpty as EuiButtonEmpty4, EuiFlexGroup as EuiFlexGroup11, EuiSpacer as EuiSpacer13 } from "@elastic/eui";
|
|
8837
8840
|
|
|
8838
8841
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/useGroupedTableConfig.tsx
|
|
8839
|
-
import { useEffect as useEffect10, useRef as useRef6, useState as
|
|
8842
|
+
import { useEffect as useEffect10, useRef as useRef6, useState as useState16 } from "react";
|
|
8840
8843
|
|
|
8841
8844
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandableRow.tsx
|
|
8842
8845
|
import { useTranslations as useTranslations28 } from "next-intl";
|
|
@@ -9010,10 +9013,10 @@ var useGroupedTableConfig = ({
|
|
|
9010
9013
|
notifyParent
|
|
9011
9014
|
}) => {
|
|
9012
9015
|
const groupReferences = useRef6(/* @__PURE__ */ new Map());
|
|
9013
|
-
const [expandedRowIds, setExpandedRowIds] =
|
|
9014
|
-
const [isAllGroupsExpanded, setIsAllGroupsExpanded] =
|
|
9015
|
-
const [isAllSubgroupsExpanded, setIsAllSubgroupsExpanded] =
|
|
9016
|
-
const [isExpanding, setIsExpanding] =
|
|
9016
|
+
const [expandedRowIds, setExpandedRowIds] = useState16([]);
|
|
9017
|
+
const [isAllGroupsExpanded, setIsAllGroupsExpanded] = useState16(false);
|
|
9018
|
+
const [isAllSubgroupsExpanded, setIsAllSubgroupsExpanded] = useState16([]);
|
|
9019
|
+
const [isExpanding, setIsExpanding] = useState16(false);
|
|
9017
9020
|
const groups = getObjectKeys(data).map((key) => ({
|
|
9018
9021
|
groupName: key.toString()
|
|
9019
9022
|
}));
|
|
@@ -9244,7 +9247,7 @@ var WfoRelatedSubscriptions = ({
|
|
|
9244
9247
|
subscriptionId,
|
|
9245
9248
|
subscriptionPath = PATH_SUBSCRIPTIONS
|
|
9246
9249
|
}) => {
|
|
9247
|
-
const [hideTerminatedSubscriptions, setHideTerminatedSubscriptions] =
|
|
9250
|
+
const [hideTerminatedSubscriptions, setHideTerminatedSubscriptions] = useState17(true);
|
|
9248
9251
|
const t = useTranslations30("subscriptions.detail");
|
|
9249
9252
|
const { theme } = useOrchestratorTheme();
|
|
9250
9253
|
const terminatedSubscriptionsFilter = {
|
|
@@ -9435,7 +9438,7 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
9435
9438
|
};
|
|
9436
9439
|
|
|
9437
9440
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
|
|
9438
|
-
import { useState as
|
|
9441
|
+
import { useState as useState20 } from "react";
|
|
9439
9442
|
import { useTranslations as useTranslations33 } from "next-intl";
|
|
9440
9443
|
import { useRouter as useRouter6 } from "next/router";
|
|
9441
9444
|
import { EuiButton as EuiButton8, EuiButtonIcon as EuiButtonIcon8, EuiLoadingSpinner as EuiLoadingSpinner3, EuiTitle } from "@elastic/eui";
|
|
@@ -9445,7 +9448,7 @@ import { useTranslations as useTranslations32 } from "next-intl";
|
|
|
9445
9448
|
import { EuiContextMenuItem as EuiContextMenuItem2, EuiLoadingSpinner as EuiLoadingSpinner2, EuiToolTip as EuiToolTip8 } from "@elastic/eui";
|
|
9446
9449
|
|
|
9447
9450
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
|
|
9448
|
-
import { useState as
|
|
9451
|
+
import { useState as useState18 } from "react";
|
|
9449
9452
|
import { useTranslations as useTranslations31 } from "next-intl";
|
|
9450
9453
|
import Link9 from "next/link";
|
|
9451
9454
|
import { EuiButtonIcon as EuiButtonIcon7, EuiText as EuiText11 } from "@elastic/eui";
|
|
@@ -9457,7 +9460,7 @@ var WfoSubscriptionActionExpandableMenuItem = ({
|
|
|
9457
9460
|
}) => {
|
|
9458
9461
|
const t = useTranslations31("subscriptions.detail.actions");
|
|
9459
9462
|
const { clickableStyle, expandableMenuItemStyle, expandButtonStyle, expandedContentStyle, linkStyle } = useWithOrchestratorTheme(getSubscriptionActionStyles);
|
|
9460
|
-
const [isExpanded, setIsExpanded] =
|
|
9463
|
+
const [isExpanded, setIsExpanded] = useState18(false);
|
|
9461
9464
|
const { locked_relations: lockedRelations } = subscriptionAction;
|
|
9462
9465
|
return /* @__PURE__ */ jsxs74("div", { children: [
|
|
9463
9466
|
/* @__PURE__ */ jsxs74(
|
|
@@ -9553,11 +9556,11 @@ var WfoSubscriptionActionsMenuItem = ({
|
|
|
9553
9556
|
};
|
|
9554
9557
|
|
|
9555
9558
|
// src/components/WfoSubscription/WfoSubscriptionActions/utils.ts
|
|
9556
|
-
import { useEffect as useEffect11, useState as
|
|
9559
|
+
import { useEffect as useEffect11, useState as useState19 } from "react";
|
|
9557
9560
|
var useActiveProcess = (processes) => {
|
|
9558
9561
|
const lastProcess = processes?.[processes.length - 1];
|
|
9559
9562
|
const isLastProcessRunning = lastProcess?.lastStatus.toLowerCase() === "running" /* RUNNING */;
|
|
9560
|
-
const [processId, setProcessId] =
|
|
9563
|
+
const [processId, setProcessId] = useState19(null);
|
|
9561
9564
|
useEffect11(() => {
|
|
9562
9565
|
if (isLastProcessRunning) {
|
|
9563
9566
|
setProcessId(lastProcess.processId);
|
|
@@ -9595,7 +9598,7 @@ var WfoSubscriptionActions = ({
|
|
|
9595
9598
|
}) => {
|
|
9596
9599
|
const t = useTranslations33("subscriptions.detail.actions");
|
|
9597
9600
|
const { theme } = useOrchestratorTheme();
|
|
9598
|
-
const [isPopoverOpen, setPopover] =
|
|
9601
|
+
const [isPopoverOpen, setPopover] = useState20(false);
|
|
9599
9602
|
const router = useRouter6();
|
|
9600
9603
|
const disableQuery = isLoading || !isPopoverOpen && compactMode;
|
|
9601
9604
|
const { isAllowed } = usePolicy();
|
|
@@ -9746,7 +9749,7 @@ var WfoSubscriptionActions = ({
|
|
|
9746
9749
|
};
|
|
9747
9750
|
|
|
9748
9751
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
|
|
9749
|
-
import { useState as
|
|
9752
|
+
import { useState as useState21 } from "react";
|
|
9750
9753
|
import { useTranslations as useTranslations35 } from "next-intl";
|
|
9751
9754
|
import {
|
|
9752
9755
|
EuiBadge as EuiBadge2,
|
|
@@ -9885,7 +9888,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
9885
9888
|
outsideSubscriptionIdTextStyle,
|
|
9886
9889
|
rowStyle
|
|
9887
9890
|
} = useWithOrchestratorTheme(getStyles6);
|
|
9888
|
-
const [showDetails, setShowDetails] =
|
|
9891
|
+
const [showDetails, setShowDetails] = useState21(false);
|
|
9889
9892
|
const ownerSubscriptionId = productBlock.subscription.subscriptionId;
|
|
9890
9893
|
const isOutsideCurrentSubscription = ownerSubscriptionId !== subscriptionId;
|
|
9891
9894
|
const inUseByRelations = productBlock.inUseByRelations.filter(
|
|
@@ -10009,12 +10012,12 @@ var WfoProductBlockKeyValueRow = ({
|
|
|
10009
10012
|
};
|
|
10010
10013
|
|
|
10011
10014
|
// src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
|
|
10012
|
-
import React42, { useState as
|
|
10015
|
+
import React42, { useState as useState23 } from "react";
|
|
10013
10016
|
import { useTranslations as useTranslations37 } from "next-intl";
|
|
10014
10017
|
import { EuiCallOut as EuiCallOut4, EuiFlexGroup as EuiFlexGroup17, EuiFlexItem as EuiFlexItem13, EuiText as EuiText15 } from "@elastic/eui";
|
|
10015
10018
|
|
|
10016
10019
|
// src/components/WfoButtonComboBox/WfoButtonComboBox.tsx
|
|
10017
|
-
import { useEffect as useEffect12, useState as
|
|
10020
|
+
import { useEffect as useEffect12, useState as useState22 } from "react";
|
|
10018
10021
|
import { EuiPopover as EuiPopover4, EuiSelectable as EuiSelectable2, EuiSpacer as EuiSpacer16, EuiText as EuiText13 } from "@elastic/eui";
|
|
10019
10022
|
|
|
10020
10023
|
// src/components/WfoButtonComboBox/styles.ts
|
|
@@ -10050,8 +10053,8 @@ var WfoButtonComboBox = ({
|
|
|
10050
10053
|
children,
|
|
10051
10054
|
className
|
|
10052
10055
|
}) => {
|
|
10053
|
-
const [isPopoverOpen, setPopoverOpen] =
|
|
10054
|
-
const [optionsState, setOptionsState] =
|
|
10056
|
+
const [isPopoverOpen, setPopoverOpen] = useState22(false);
|
|
10057
|
+
const [optionsState, setOptionsState] = useState22(options);
|
|
10055
10058
|
const { selectableStyle, titleStyle } = useWithOrchestratorTheme(getWfoButtonComboBoxStyles);
|
|
10056
10059
|
useEffect12(() => {
|
|
10057
10060
|
if (!isPopoverOpen) {
|
|
@@ -10329,7 +10332,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
10329
10332
|
}) => {
|
|
10330
10333
|
const t = useTranslations37("subscriptions.detail");
|
|
10331
10334
|
const { theme } = useOrchestratorTheme();
|
|
10332
|
-
const [, setSelectedTreeNode] =
|
|
10335
|
+
const [, setSelectedTreeNode] = useState23(-1);
|
|
10333
10336
|
const { productBlockTreeWidth } = useWithOrchestratorTheme(getSubscriptionDetailStyles);
|
|
10334
10337
|
const { selectedIds, expandAll, resetSelection, selectAll, selectIds, deselectIds } = React42.useContext(
|
|
10335
10338
|
TreeContext
|
|
@@ -10578,13 +10581,13 @@ var customerDescriptionsApi = orchestratorApi.injectEndpoints({
|
|
|
10578
10581
|
var { useSetCustomerDescriptionMutation, useUpdateCustomerDescriptionMutation } = customerDescriptionsApi;
|
|
10579
10582
|
|
|
10580
10583
|
// src/components/WfoInlineEdit/WfoInlineEdit.tsx
|
|
10581
|
-
import { useEffect as useEffect14, useState as
|
|
10584
|
+
import { useEffect as useEffect14, useState as useState24 } from "react";
|
|
10582
10585
|
import { EuiInlineEditText } from "@elastic/eui";
|
|
10583
10586
|
import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
|
|
10584
10587
|
var WfoInlineEdit = ({ value, onlyShowOnHover = false, onSave = () => {
|
|
10585
10588
|
} }) => {
|
|
10586
|
-
const [note, setValue] =
|
|
10587
|
-
const [isTooltipVisible, setIsTooltipVisible] =
|
|
10589
|
+
const [note, setValue] = useState24(value);
|
|
10590
|
+
const [isTooltipVisible, setIsTooltipVisible] = useState24(true);
|
|
10588
10591
|
const handleSave = () => {
|
|
10589
10592
|
onSave(note.startsWith(INVISIBLE_CHARACTER) ? note.replace(INVISIBLE_CHARACTER, "") : note);
|
|
10590
10593
|
setIsTooltipVisible(true);
|
|
@@ -10765,7 +10768,7 @@ var WfoCustomerDescriptionsField = ({
|
|
|
10765
10768
|
};
|
|
10766
10769
|
|
|
10767
10770
|
// src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx
|
|
10768
|
-
import { useState as
|
|
10771
|
+
import { useState as useState25 } from "react";
|
|
10769
10772
|
import { useTranslations as useTranslations38 } from "next-intl";
|
|
10770
10773
|
import { EuiForm as EuiForm2, EuiFormRow as EuiFormRow5, EuiHorizontalRule as EuiHorizontalRule4, EuiSelect, EuiSpacer as EuiSpacer17, EuiSwitch as EuiSwitch2 } from "@elastic/eui";
|
|
10771
10774
|
|
|
@@ -10796,8 +10799,8 @@ var TableSettingsModal = ({
|
|
|
10796
10799
|
}) => {
|
|
10797
10800
|
const t = useTranslations38("main");
|
|
10798
10801
|
const { formRowStyle, selectFieldStyle } = useWithOrchestratorTheme(getWfoTableSettingsModalStyles);
|
|
10799
|
-
const [columns, setColumns] =
|
|
10800
|
-
const [selectedPageSize, setSelectedPageSize] =
|
|
10802
|
+
const [columns, setColumns] = useState25(tableConfig.columns);
|
|
10803
|
+
const [selectedPageSize, setSelectedPageSize] = useState25(tableConfig.selectedPageSize);
|
|
10801
10804
|
const options = pageSizeOptions.map((pageSizeOption) => ({
|
|
10802
10805
|
value: pageSizeOption,
|
|
10803
10806
|
text: pageSizeOption.toString()
|
|
@@ -11038,11 +11041,11 @@ var WfoInlineJson = ({ data }) => {
|
|
|
11038
11041
|
};
|
|
11039
11042
|
|
|
11040
11043
|
// src/components/WfoTable/WfoRowContextMenu/WfoRowContextMenu.tsx
|
|
11041
|
-
import { useEffect as useEffect15, useRef as useRef7, useState as
|
|
11044
|
+
import { useEffect as useEffect15, useRef as useRef7, useState as useState26 } from "react";
|
|
11042
11045
|
import { EuiButtonIcon as EuiButtonIcon10, EuiContextMenu as EuiContextMenu2, EuiPopover as EuiPopover5 } from "@elastic/eui";
|
|
11043
11046
|
import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
|
|
11044
11047
|
var WfoRowContextMenu = ({ items, onOpenContextMenu }) => {
|
|
11045
|
-
const [isOpen, setIsOpen] =
|
|
11048
|
+
const [isOpen, setIsOpen] = useState26(false);
|
|
11046
11049
|
const onOpenContextMenuRef = useRef7(onOpenContextMenu);
|
|
11047
11050
|
useEffect15(() => {
|
|
11048
11051
|
if (isOpen) {
|
|
@@ -11098,7 +11101,7 @@ var toSortedTableColumnConfig = (columnConfig, columnKeys) => columnKeys.reduce(
|
|
|
11098
11101
|
}, {});
|
|
11099
11102
|
|
|
11100
11103
|
// src/components/WfoTable/WfoAdvancedTable/WfoAdvancedTable.tsx
|
|
11101
|
-
import { useEffect as useEffect16, useState as
|
|
11104
|
+
import { useEffect as useEffect16, useState as useState27 } from "react";
|
|
11102
11105
|
import { useTranslations as useTranslations39 } from "next-intl";
|
|
11103
11106
|
import { EuiButton as EuiButton9, EuiButtonIcon as EuiButtonIcon11, EuiFlexGroup as EuiFlexGroup18, EuiFlexItem as EuiFlexItem15, EuiSpacer as EuiSpacer18, EuiText as EuiText16 } from "@elastic/eui";
|
|
11104
11107
|
import { Fragment as Fragment34, jsx as jsx175, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
@@ -11118,10 +11121,10 @@ var WfoAdvancedTable = ({
|
|
|
11118
11121
|
...tableProps
|
|
11119
11122
|
}) => {
|
|
11120
11123
|
const { theme } = useOrchestratorTheme();
|
|
11121
|
-
const [hiddenColumns, setHiddenColumns] =
|
|
11122
|
-
const [showSettingsModal, setShowSettingsModal] =
|
|
11123
|
-
const [selectedDataForDetailModal, setSelectedDataForDetailModal] =
|
|
11124
|
-
const [showSearchModal, setShowSearchModal] =
|
|
11124
|
+
const [hiddenColumns, setHiddenColumns] = useState27(defaultHiddenColumns);
|
|
11125
|
+
const [showSettingsModal, setShowSettingsModal] = useState27(false);
|
|
11126
|
+
const [selectedDataForDetailModal, setSelectedDataForDetailModal] = useState27(void 0);
|
|
11127
|
+
const [showSearchModal, setShowSearchModal] = useState27(false);
|
|
11125
11128
|
const t = useTranslations39("common");
|
|
11126
11129
|
useEffect16(() => {
|
|
11127
11130
|
if (defaultHiddenColumns) {
|
|
@@ -11514,12 +11517,12 @@ var WfoIsAllowedToRender = ({ resource, children }) => {
|
|
|
11514
11517
|
};
|
|
11515
11518
|
|
|
11516
11519
|
// src/components/WfoDropdownButton/WfoDropdownButton.tsx
|
|
11517
|
-
import { useState as
|
|
11520
|
+
import { useState as useState28 } from "react";
|
|
11518
11521
|
import { EuiButtonGroup, EuiPopover as EuiPopover6 } from "@elastic/eui";
|
|
11519
11522
|
import { jsx as jsx184 } from "@emotion/react/jsx-runtime";
|
|
11520
11523
|
var WfoDropdownButton = ({ label, isDisabled = false, children }) => {
|
|
11521
|
-
const [isHovered, setIsHovered] =
|
|
11522
|
-
const [isPopoverOpen, setPopoverOpen] =
|
|
11524
|
+
const [isHovered, setIsHovered] = useState28(false);
|
|
11525
|
+
const [isPopoverOpen, setPopoverOpen] = useState28(false);
|
|
11523
11526
|
const buttonOptions = [
|
|
11524
11527
|
{
|
|
11525
11528
|
id: "id_1",
|
|
@@ -11577,7 +11580,7 @@ import Link13 from "next/link";
|
|
|
11577
11580
|
import { useRouter as useRouter17 } from "next/router";
|
|
11578
11581
|
|
|
11579
11582
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
11580
|
-
import { useEffect as useEffect17, useState as
|
|
11583
|
+
import { useEffect as useEffect17, useState as useState29 } from "react";
|
|
11581
11584
|
import { useTranslations as useTranslations42 } from "next-intl";
|
|
11582
11585
|
import { EuiBadgeGroup as EuiBadgeGroup2 } from "@elastic/eui";
|
|
11583
11586
|
|
|
@@ -11643,7 +11646,7 @@ var WfoProductBlocksPage = () => {
|
|
|
11643
11646
|
const t = useTranslations42("metadata.productBlocks");
|
|
11644
11647
|
const tError = useTranslations42("errors");
|
|
11645
11648
|
const { showToastMessage } = useShowToastMessage();
|
|
11646
|
-
const [tableDefaults, setTableDefaults] =
|
|
11649
|
+
const [tableDefaults, setTableDefaults] = useState29();
|
|
11647
11650
|
const getStoredTableConfig = useStoredTableConfig(
|
|
11648
11651
|
METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY
|
|
11649
11652
|
);
|
|
@@ -11833,7 +11836,7 @@ var WfoProductBlocksPage = () => {
|
|
|
11833
11836
|
};
|
|
11834
11837
|
|
|
11835
11838
|
// src/pages/metadata/WfoResourceTypesPage.tsx
|
|
11836
|
-
import { useEffect as useEffect18, useState as
|
|
11839
|
+
import { useEffect as useEffect18, useState as useState30 } from "react";
|
|
11837
11840
|
import { useTranslations as useTranslations43 } from "next-intl";
|
|
11838
11841
|
import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
|
|
11839
11842
|
import { Fragment as Fragment39, jsx as jsx188, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
@@ -11842,7 +11845,7 @@ var WfoResourceTypesPage = () => {
|
|
|
11842
11845
|
const t = useTranslations43("metadata.resourceTypes");
|
|
11843
11846
|
const tError = useTranslations43("errors");
|
|
11844
11847
|
const { showToastMessage } = useShowToastMessage();
|
|
11845
|
-
const [tableDefaults, setTableDefaults] =
|
|
11848
|
+
const [tableDefaults, setTableDefaults] = useState30();
|
|
11846
11849
|
const getStoredTableConfig = useStoredTableConfig(
|
|
11847
11850
|
METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY
|
|
11848
11851
|
);
|
|
@@ -11983,11 +11986,11 @@ var WfoResourceTypesPage = () => {
|
|
|
11983
11986
|
};
|
|
11984
11987
|
|
|
11985
11988
|
// src/pages/metadata/WfoProductsPage.tsx
|
|
11986
|
-
import { useEffect as useEffect19, useState as
|
|
11989
|
+
import { useEffect as useEffect19, useState as useState32 } from "react";
|
|
11987
11990
|
import { useTranslations as useTranslations44 } from "next-intl";
|
|
11988
11991
|
|
|
11989
11992
|
// src/components/WfoMetadata/WfoMetadataStatusField.tsx
|
|
11990
|
-
import { useState as
|
|
11993
|
+
import { useState as useState31 } from "react";
|
|
11991
11994
|
import { EuiButtonEmpty as EuiButtonEmpty6 } from "@elastic/eui";
|
|
11992
11995
|
|
|
11993
11996
|
// src/components/WfoPopover/WfoPopover.tsx
|
|
@@ -12011,7 +12014,7 @@ var WfoPopover = ({ id, isLoading, PopoverContent, button, isPopoverOpen, closeP
|
|
|
12011
12014
|
// src/components/WfoMetadata/WfoMetadataStatusField.tsx
|
|
12012
12015
|
import { jsx as jsx190 } from "@emotion/react/jsx-runtime";
|
|
12013
12016
|
var WfoMetadataStatusField = ({ onSave, currentStatus }) => {
|
|
12014
|
-
const [isPopoverOpen, setPopover] =
|
|
12017
|
+
const [isPopoverOpen, setPopover] = useState31(false);
|
|
12015
12018
|
const onButtonClick = () => setPopover(!isPopoverOpen);
|
|
12016
12019
|
const button = /* @__PURE__ */ jsx190(EuiButtonEmpty6, { iconType: "arrowDown", iconSide: "right", onClick: onButtonClick, color: "text", children: /* @__PURE__ */ jsx190(WfoProductStatusBadge, { status: currentStatus }) });
|
|
12017
12020
|
const wrappedButton = /* @__PURE__ */ jsx190(
|
|
@@ -12055,7 +12058,7 @@ var WfoProductsPage = () => {
|
|
|
12055
12058
|
const t = useTranslations44("metadata.products");
|
|
12056
12059
|
const tError = useTranslations44("errors");
|
|
12057
12060
|
const { showToastMessage } = useShowToastMessage();
|
|
12058
|
-
const [tableDefaults, setTableDefaults] =
|
|
12061
|
+
const [tableDefaults, setTableDefaults] = useState32();
|
|
12059
12062
|
const getStoredTableConfig = useStoredTableConfig(METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY);
|
|
12060
12063
|
const [updateProductDescription] = useUpdateProductDescriptionMutation();
|
|
12061
12064
|
const [updateProductStatus] = useUpdateProductStatusMutation();
|
|
@@ -12237,7 +12240,7 @@ var WfoProductsPage = () => {
|
|
|
12237
12240
|
};
|
|
12238
12241
|
|
|
12239
12242
|
// src/pages/metadata/WfoWorkflowsPage.tsx
|
|
12240
|
-
import { useEffect as useEffect20, useState as
|
|
12243
|
+
import { useEffect as useEffect20, useState as useState33 } from "react";
|
|
12241
12244
|
import { useTranslations as useTranslations45 } from "next-intl";
|
|
12242
12245
|
import { EuiBadgeGroup as EuiBadgeGroup4 } from "@elastic/eui";
|
|
12243
12246
|
|
|
@@ -12273,7 +12276,7 @@ var WfoWorkflowsPage = () => {
|
|
|
12273
12276
|
const t = useTranslations45("metadata.workflows");
|
|
12274
12277
|
const tError = useTranslations45("errors");
|
|
12275
12278
|
const { showToastMessage } = useShowToastMessage();
|
|
12276
|
-
const [tableDefaults, setTableDefaults] =
|
|
12279
|
+
const [tableDefaults, setTableDefaults] = useState33();
|
|
12277
12280
|
const getStoredTableConfig = useStoredTableConfig(METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY);
|
|
12278
12281
|
const [updateWorkflow] = useUpdateWorkflowMutation();
|
|
12279
12282
|
useEffect20(() => {
|
|
@@ -12431,7 +12434,7 @@ var WfoWorkflowsPage = () => {
|
|
|
12431
12434
|
};
|
|
12432
12435
|
|
|
12433
12436
|
// src/pages/metadata/WfoTasksPage.tsx
|
|
12434
|
-
import { useEffect as useEffect21, useState as
|
|
12437
|
+
import { useEffect as useEffect21, useState as useState34 } from "react";
|
|
12435
12438
|
import { useTranslations as useTranslations46 } from "next-intl";
|
|
12436
12439
|
import { useRouter as useRouter8 } from "next/router";
|
|
12437
12440
|
import { EuiBadgeGroup as EuiBadgeGroup5, EuiButtonIcon as EuiButtonIcon12, EuiContextMenuItem as EuiContextMenuItem3 } from "@elastic/eui";
|
|
@@ -12468,7 +12471,7 @@ var graphQlTaskListMapper = ({ field, order }) => ({
|
|
|
12468
12471
|
// src/pages/metadata/WfoTasksPage.tsx
|
|
12469
12472
|
import { Fragment as Fragment42, jsx as jsx193, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
12470
12473
|
var ScheduleTaskPopoverMenu = ({ workflowId }) => {
|
|
12471
|
-
const [isPopoverOpen, setIsPopoverOpen] =
|
|
12474
|
+
const [isPopoverOpen, setIsPopoverOpen] = useState34(false);
|
|
12472
12475
|
const button = /* @__PURE__ */ jsx193(
|
|
12473
12476
|
EuiButtonIcon12,
|
|
12474
12477
|
{
|
|
@@ -12512,7 +12515,7 @@ var WfoTasksPage = () => {
|
|
|
12512
12515
|
const t = useTranslations46("metadata.tasks");
|
|
12513
12516
|
const tError = useTranslations46("errors");
|
|
12514
12517
|
const { showToastMessage } = useShowToastMessage();
|
|
12515
|
-
const [tableDefaults, setTableDefaults] =
|
|
12518
|
+
const [tableDefaults, setTableDefaults] = useState34();
|
|
12516
12519
|
const getStoredTableConfig = useStoredTableConfig(METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY);
|
|
12517
12520
|
const [updateWorkflow] = useUpdateWorkflowMutation();
|
|
12518
12521
|
useEffect21(() => {
|
|
@@ -12684,7 +12687,7 @@ var WfoTasksPage = () => {
|
|
|
12684
12687
|
};
|
|
12685
12688
|
|
|
12686
12689
|
// src/pages/metadata/WfoScheduledTasksPage.tsx
|
|
12687
|
-
import { useEffect as useEffect22, useState as
|
|
12690
|
+
import { useEffect as useEffect22, useState as useState35 } from "react";
|
|
12688
12691
|
import { useTranslations as useTranslations47 } from "next-intl";
|
|
12689
12692
|
import { useRouter as useRouter9 } from "next/router";
|
|
12690
12693
|
import { EuiButton as EuiButton10, EuiFlexGroup as EuiFlexGroup19, EuiFlexItem as EuiFlexItem16 } from "@elastic/eui";
|
|
@@ -12699,7 +12702,7 @@ var WfoScheduledTasksPage = () => {
|
|
|
12699
12702
|
const tError = useTranslations47("errors");
|
|
12700
12703
|
const { showToastMessage } = useShowToastMessage();
|
|
12701
12704
|
const router = useRouter9();
|
|
12702
|
-
const [tableDefaults, setTableDefaults] =
|
|
12705
|
+
const [tableDefaults, setTableDefaults] = useState35();
|
|
12703
12706
|
const [deleteScheduledTask, mutationState] = useDeleteScheduledTaskMutation();
|
|
12704
12707
|
const getStoredTableConfig = useStoredTableConfig(METADATA_SCHEDULES_LOCAL_STORAGE_KEY);
|
|
12705
12708
|
if (mutationState.isError) {
|
|
@@ -13486,7 +13489,7 @@ var WfoProcessDetailPage = ({ processId }) => {
|
|
|
13486
13489
|
};
|
|
13487
13490
|
|
|
13488
13491
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
13489
|
-
import { useMemo as useMemo6, useState as
|
|
13492
|
+
import { useMemo as useMemo6, useState as useState41 } from "react";
|
|
13490
13493
|
import { useTranslations as useTranslations59 } from "next-intl";
|
|
13491
13494
|
import { useRouter as useRouter13 } from "next/router";
|
|
13492
13495
|
import { EuiFlexGroup as EuiFlexGroup26, EuiFlexItem as EuiFlexItem21, EuiHorizontalRule as EuiHorizontalRule7, EuiPanel as EuiPanel5, EuiText as EuiText23 } from "@elastic/eui";
|
|
@@ -13568,7 +13571,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
|
|
|
13568
13571
|
};
|
|
13569
13572
|
|
|
13570
13573
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
13571
|
-
import React63, { useCallback as useCallback11, useState as
|
|
13574
|
+
import React63, { useCallback as useCallback11, useState as useState37 } from "react";
|
|
13572
13575
|
import { useTranslations as useTranslations54 } from "next-intl";
|
|
13573
13576
|
import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem19, EuiPanel as EuiPanel4, EuiText as EuiText18 } from "@elastic/eui";
|
|
13574
13577
|
|
|
@@ -13754,7 +13757,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
13754
13757
|
};
|
|
13755
13758
|
|
|
13756
13759
|
// src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx
|
|
13757
|
-
import { useCallback as useCallback9, useState as
|
|
13760
|
+
import { useCallback as useCallback9, useState as useState36 } from "react";
|
|
13758
13761
|
import { useTranslations as useTranslations52 } from "next-intl";
|
|
13759
13762
|
import { EuiButtonGroup as EuiButtonGroup2 } from "@elastic/eui";
|
|
13760
13763
|
import { jsx as jsx203 } from "@emotion/react/jsx-runtime";
|
|
@@ -13762,7 +13765,7 @@ var WfoCodeViewSelector = ({ codeView, handleCodeViewChange }) => {
|
|
|
13762
13765
|
const t = useTranslations52("processes.steps");
|
|
13763
13766
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
13764
13767
|
const isSelected = (buttonView) => buttonView === codeView;
|
|
13765
|
-
const [showTooltips, setShowTooltips] =
|
|
13768
|
+
const [showTooltips, setShowTooltips] = useState36(true);
|
|
13766
13769
|
const codeViewOptions = [
|
|
13767
13770
|
{
|
|
13768
13771
|
id: "json" /* JSON */,
|
|
@@ -13914,7 +13917,7 @@ var WfoStep = React63.forwardRef(
|
|
|
13914
13917
|
userPermissions
|
|
13915
13918
|
}, ref) => {
|
|
13916
13919
|
const { isExpanded, step, userInputForm } = stepListItem;
|
|
13917
|
-
const [codeView, setCodeView] =
|
|
13920
|
+
const [codeView, setCodeView] = useState37("json" /* JSON */);
|
|
13918
13921
|
const { theme } = useOrchestratorTheme();
|
|
13919
13922
|
const {
|
|
13920
13923
|
stepEmailContainerStyle,
|
|
@@ -14081,11 +14084,11 @@ var WfoStepList = React64.forwardRef(
|
|
|
14081
14084
|
WfoStepList.displayName = "WfoStepList";
|
|
14082
14085
|
|
|
14083
14086
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
14084
|
-
import React66, { useEffect as useEffect26, useState as
|
|
14087
|
+
import React66, { useEffect as useEffect26, useState as useState39 } from "react";
|
|
14085
14088
|
import { useTranslations as useTranslations57 } from "next-intl";
|
|
14086
14089
|
|
|
14087
14090
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
14088
|
-
import { useCallback as useCallback12, useEffect as useEffect25, useMemo as useMemo5, useState as
|
|
14091
|
+
import { useCallback as useCallback12, useEffect as useEffect25, useMemo as useMemo5, useState as useState38 } from "react";
|
|
14089
14092
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
14090
14093
|
import "react-diff-view/style/index.css";
|
|
14091
14094
|
import { useTranslations as useTranslations55 } from "next-intl";
|
|
@@ -14144,10 +14147,10 @@ var getSubscriptionDiffTexts = (data) => {
|
|
|
14144
14147
|
};
|
|
14145
14148
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
14146
14149
|
const t = useTranslations55("processes.delta");
|
|
14147
|
-
const [showSplit, setShowSplit] =
|
|
14148
|
-
const [showFull, setShowFull] =
|
|
14150
|
+
const [showSplit, setShowSplit] = useState38(true);
|
|
14151
|
+
const [showFull, setShowFull] = useState38(false);
|
|
14149
14152
|
const { diffStyle } = useWithOrchestratorTheme(getWfoDiffStyles);
|
|
14150
|
-
const [{ type, hunks }, setDiff] =
|
|
14153
|
+
const [{ type, hunks }, setDiff] = useState38({
|
|
14151
14154
|
type: "modify",
|
|
14152
14155
|
hunks: []
|
|
14153
14156
|
});
|
|
@@ -14255,16 +14258,16 @@ var WfoProcessSubscriptionDelta = ({ processId }) => {
|
|
|
14255
14258
|
};
|
|
14256
14259
|
var WfoWorkflowStepList = React66.forwardRef(
|
|
14257
14260
|
({ steps = [], lastStatus, traceBack, processId, isTask, userInputForm, userPermissions }, reference) => {
|
|
14258
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
14259
|
-
const [showRaw, setShowRaw] =
|
|
14260
|
-
const [showDelta, setShowDelta] =
|
|
14261
|
-
const [showTraceback, setShowTraceback] =
|
|
14261
|
+
const [showHiddenKeys, setShowHiddenKeys] = useState39(false);
|
|
14262
|
+
const [showRaw, setShowRaw] = useState39(false);
|
|
14263
|
+
const [showDelta, setShowDelta] = useState39(false);
|
|
14264
|
+
const [showTraceback, setShowTraceback] = useState39(false);
|
|
14262
14265
|
const t = useTranslations57("processes.steps");
|
|
14263
14266
|
const initialStepListItems = steps.map((step) => ({
|
|
14264
14267
|
step,
|
|
14265
14268
|
isExpanded: false
|
|
14266
14269
|
}));
|
|
14267
|
-
const [stepListItems, setStepListItems] =
|
|
14270
|
+
const [stepListItems, setStepListItems] = useState39(initialStepListItems);
|
|
14268
14271
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
14269
14272
|
const reversedSteps = [...updatedSteps].reverse();
|
|
14270
14273
|
const lastStepWithSuspendStatusStepId = reversedSteps.find((step) => step.status === "suspend" /* SUSPEND */)?.stepId;
|
|
@@ -14348,7 +14351,7 @@ var WfoWorkflowStepList = React66.forwardRef(
|
|
|
14348
14351
|
WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
14349
14352
|
|
|
14350
14353
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
14351
|
-
import { useState as
|
|
14354
|
+
import { useState as useState40 } from "react";
|
|
14352
14355
|
import { useTranslations as useTranslations58 } from "next-intl";
|
|
14353
14356
|
import { EuiButton as EuiButton14, EuiFlexGroup as EuiFlexGroup25, EuiForm as EuiForm3, EuiFormRow as EuiFormRow6, EuiPopover as EuiPopover8, EuiSwitch as EuiSwitch3, EuiText as EuiText22 } from "@elastic/eui";
|
|
14354
14357
|
|
|
@@ -14398,7 +14401,7 @@ var WfoStepListHeader = ({
|
|
|
14398
14401
|
const t = useTranslations58("processes.steps");
|
|
14399
14402
|
const { theme } = useOrchestratorTheme();
|
|
14400
14403
|
const { stepListHeaderStyle, stepListContentStyle, stepListContentBoldTextStyle, stepListOptionsContainerStyle } = useWithOrchestratorTheme(getWorkflowStepsStyles);
|
|
14401
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
14404
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState40(false);
|
|
14402
14405
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
14403
14406
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
14404
14407
|
const viewOptionButton = /* @__PURE__ */ jsx212(
|
|
@@ -14477,7 +14480,7 @@ var getInitialProcessPayload = ({
|
|
|
14477
14480
|
var WfoStartProcessPage = ({ processName, isTask = false }) => {
|
|
14478
14481
|
const t = useTranslations59("processes.steps");
|
|
14479
14482
|
const router = useRouter13();
|
|
14480
|
-
const [hasError, setHasError] =
|
|
14483
|
+
const [hasError, setHasError] = useState41(false);
|
|
14481
14484
|
const { theme } = useOrchestratorTheme();
|
|
14482
14485
|
const { productId, subscriptionId } = router.query;
|
|
14483
14486
|
const {
|
|
@@ -14780,14 +14783,14 @@ var WfoSubscriptionDetailPage = () => {
|
|
|
14780
14783
|
};
|
|
14781
14784
|
|
|
14782
14785
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
14783
|
-
import { useEffect as useEffect27, useState as
|
|
14786
|
+
import { useEffect as useEffect27, useState as useState42 } from "react";
|
|
14784
14787
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
14785
14788
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
14786
14789
|
import { EuiSpacer as EuiSpacer24 } from "@elastic/eui";
|
|
14787
14790
|
import { Fragment as Fragment53, jsx as jsx219, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
|
|
14788
14791
|
var WfoSubscriptionsListPage = () => {
|
|
14789
14792
|
const t = useTranslations64("subscriptions.detail");
|
|
14790
|
-
const [tableDefaults, setTableDefaults] =
|
|
14793
|
+
const [tableDefaults, setTableDefaults] = useState42();
|
|
14791
14794
|
const getStoredTableConfig = useStoredTableConfig(SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY);
|
|
14792
14795
|
useEffect27(() => {
|
|
14793
14796
|
const storedConfig = getStoredTableConfig();
|
|
@@ -14840,7 +14843,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
14840
14843
|
};
|
|
14841
14844
|
|
|
14842
14845
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
14843
|
-
import { useContext as useContext10, useEffect as useEffect28, useState as
|
|
14846
|
+
import { useContext as useContext10, useEffect as useEffect28, useState as useState43 } from "react";
|
|
14844
14847
|
import { useTranslations as useTranslations65 } from "next-intl";
|
|
14845
14848
|
import Link12 from "next/link";
|
|
14846
14849
|
import { useRouter as useRouter15 } from "next/router";
|
|
@@ -14915,7 +14918,7 @@ var WfoTasksListPage = () => {
|
|
|
14915
14918
|
const router = useRouter15();
|
|
14916
14919
|
const t = useTranslations65("tasks.page");
|
|
14917
14920
|
const [activeTab, setActiveTab] = useQueryParam4("activeTab", withDefault5(StringParam5, "ACTIVE" /* ACTIVE */));
|
|
14918
|
-
const [tableDefaults, setTableDefaults] =
|
|
14921
|
+
const [tableDefaults, setTableDefaults] = useState43();
|
|
14919
14922
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
14920
14923
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
14921
14924
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -15016,7 +15019,7 @@ var WfoTasksListPage = () => {
|
|
|
15016
15019
|
};
|
|
15017
15020
|
|
|
15018
15021
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
15019
|
-
import { useEffect as useEffect29, useState as
|
|
15022
|
+
import { useEffect as useEffect29, useState as useState44 } from "react";
|
|
15020
15023
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
15021
15024
|
import { useRouter as useRouter16 } from "next/router";
|
|
15022
15025
|
import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
|
|
@@ -15093,7 +15096,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
15093
15096
|
"activeTab",
|
|
15094
15097
|
withDefault6(StringParam6, "ACTIVE" /* ACTIVE */)
|
|
15095
15098
|
);
|
|
15096
|
-
const [tableDefaults, setTableDefaults] =
|
|
15099
|
+
const [tableDefaults, setTableDefaults] = useState44();
|
|
15097
15100
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
15098
15101
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
15099
15102
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -15147,7 +15150,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
15147
15150
|
};
|
|
15148
15151
|
|
|
15149
15152
|
// src/components/WfoProcessList/WfoProcessListDeltaPopover.tsx
|
|
15150
|
-
import { useState as
|
|
15153
|
+
import { useState as useState45 } from "react";
|
|
15151
15154
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
15152
15155
|
import { EuiButtonIcon as EuiButtonIcon15, EuiLoadingSpinner as EuiLoadingSpinner5, EuiPanel as EuiPanel8, EuiPopover as EuiPopover9 } from "@elastic/eui";
|
|
15153
15156
|
|
|
@@ -15183,7 +15186,7 @@ var WfoProcessListDeltaPopover = ({ processListItem }) => {
|
|
|
15183
15186
|
getWfoProcessListDeltaPopoverStyles
|
|
15184
15187
|
);
|
|
15185
15188
|
const t = useTranslations67("processes.steps");
|
|
15186
|
-
const [isPopoverOpen, setPopoverOpen] =
|
|
15189
|
+
const [isPopoverOpen, setPopoverOpen] = useState45(false);
|
|
15187
15190
|
const { processId, workflowTarget } = processListItem;
|
|
15188
15191
|
const { data, isFetching } = useGetRawProcessDetailQuery({ processId }, { skip: !isPopoverOpen });
|
|
15189
15192
|
if (workflowTarget.toUpperCase() !== "modify" /* MODIFY */.toUpperCase()) {
|
|
@@ -15547,7 +15550,7 @@ var WfoJsonCodeBlock = ({ data, isBasicStyle = false }) => {
|
|
|
15547
15550
|
};
|
|
15548
15551
|
|
|
15549
15552
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
15550
|
-
import { useState as
|
|
15553
|
+
import { useState as useState46 } from "react";
|
|
15551
15554
|
import { useTranslations as useTranslations69 } from "next-intl";
|
|
15552
15555
|
import { EuiButton as EuiButton17, EuiComboBox, EuiPanel as EuiPanel9, EuiSpacer as EuiSpacer27, EuiText as EuiText27 } from "@elastic/eui";
|
|
15553
15556
|
|
|
@@ -15580,7 +15583,7 @@ var WfoFlushSettings = () => {
|
|
|
15580
15583
|
const { comboboxStyle } = useWithOrchestratorTheme(getWfoFlushSettingsStyle);
|
|
15581
15584
|
const [clearCache] = useClearCacheMutation();
|
|
15582
15585
|
const t = useTranslations69("settings.page");
|
|
15583
|
-
const [selectedOptions, setSelected] =
|
|
15586
|
+
const [selectedOptions, setSelected] = useState46([]);
|
|
15584
15587
|
const { showToastMessage } = useShowToastMessage();
|
|
15585
15588
|
const onChange = (selectedOptions2) => {
|
|
15586
15589
|
setSelected(selectedOptions2);
|
|
@@ -16648,11 +16651,11 @@ var WfoTitleWithWebsocketBadge = ({ title, wsUrl = void 0 }) => {
|
|
|
16648
16651
|
};
|
|
16649
16652
|
|
|
16650
16653
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
16651
|
-
import { useState as
|
|
16654
|
+
import { useState as useState47 } from "react";
|
|
16652
16655
|
import { EuiButtonEmpty as EuiButtonEmpty7, EuiFlexGroup as EuiFlexGroup34, EuiPopover as EuiPopover10, EuiRadioGroup as EuiRadioGroup2 } from "@elastic/eui";
|
|
16653
16656
|
import { jsx as jsx249 } from "@emotion/react/jsx-runtime";
|
|
16654
16657
|
var WfoRadioDropdown = ({ options, onUpdateOption, selectedOption }) => {
|
|
16655
|
-
const [isOpen, setIsOpen] =
|
|
16658
|
+
const [isOpen, setIsOpen] = useState47(false);
|
|
16656
16659
|
const handleClose = () => {
|
|
16657
16660
|
if (isOpen) {
|
|
16658
16661
|
setIsOpen(false);
|
|
@@ -16824,11 +16827,11 @@ var WfoSubscriptionDetailNoteEdit = ({
|
|
|
16824
16827
|
};
|
|
16825
16828
|
|
|
16826
16829
|
// src/components/WfoInlineNoteEdit/WfoProcessListNoteEdit.tsx
|
|
16827
|
-
import { useEffect as useEffect30, useState as
|
|
16830
|
+
import { useEffect as useEffect30, useState as useState48 } from "react";
|
|
16828
16831
|
import { jsx as jsx252 } from "@emotion/react/jsx-runtime";
|
|
16829
16832
|
var WfoProcessListNoteEdit = ({ processId, note }) => {
|
|
16830
16833
|
const [patchProcess] = usePatchProcessMutation();
|
|
16831
|
-
const [noteValue, setNoteValue] =
|
|
16834
|
+
const [noteValue, setNoteValue] = useState48(note);
|
|
16832
16835
|
useEffect30(() => {
|
|
16833
16836
|
if (note !== noteValue) {
|
|
16834
16837
|
setNoteValue(note);
|
|
@@ -16875,7 +16878,7 @@ var WfoTableCodeBlock = ({ stepState: data }) => {
|
|
|
16875
16878
|
};
|
|
16876
16879
|
|
|
16877
16880
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
16878
|
-
import { useEffect as useEffect34, useState as
|
|
16881
|
+
import { useEffect as useEffect34, useState as useState53 } from "react";
|
|
16879
16882
|
import { useTranslations as useTranslations83 } from "next-intl";
|
|
16880
16883
|
import {
|
|
16881
16884
|
EuiButton as EuiButton21,
|
|
@@ -16892,9 +16895,9 @@ import {
|
|
|
16892
16895
|
} from "@elastic/eui";
|
|
16893
16896
|
|
|
16894
16897
|
// src/hooks/useDebounce.ts
|
|
16895
|
-
import { useEffect as useEffect31, useState as
|
|
16898
|
+
import { useEffect as useEffect31, useState as useState49 } from "react";
|
|
16896
16899
|
function useDebounce(value, delay) {
|
|
16897
|
-
const [debouncedValue, setDebouncedValue] =
|
|
16900
|
+
const [debouncedValue, setDebouncedValue] = useState49(value);
|
|
16898
16901
|
useEffect31(() => {
|
|
16899
16902
|
if (delay <= 0) {
|
|
16900
16903
|
setDebouncedValue(value);
|
|
@@ -16911,9 +16914,9 @@ function useDebounce(value, delay) {
|
|
|
16911
16914
|
}
|
|
16912
16915
|
|
|
16913
16916
|
// src/hooks/useSearch.ts
|
|
16914
|
-
import { useEffect as useEffect32, useState as
|
|
16917
|
+
import { useEffect as useEffect32, useState as useState50 } from "react";
|
|
16915
16918
|
var useSearch = (query, entityType, filterGroup, limit, retriever = "auto" /* Auto */) => {
|
|
16916
|
-
const [results, setResults] =
|
|
16919
|
+
const [results, setResults] = useState50({
|
|
16917
16920
|
data: [],
|
|
16918
16921
|
page_info: { has_next_page: false, next_page_cursor: null },
|
|
16919
16922
|
search_metadata: { search_type: null, description: null }
|
|
@@ -16970,12 +16973,12 @@ var useSearch = (query, entityType, filterGroup, limit, retriever = "auto" /* Au
|
|
|
16970
16973
|
};
|
|
16971
16974
|
|
|
16972
16975
|
// src/hooks/useSearchPagination.ts
|
|
16973
|
-
import { useCallback as useCallback13, useState as
|
|
16976
|
+
import { useCallback as useCallback13, useState as useState51 } from "react";
|
|
16974
16977
|
var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults, retriever) => {
|
|
16975
|
-
const [currentPage, setCurrentPage] =
|
|
16976
|
-
const [pageHistory, setPageHistory] =
|
|
16977
|
-
const [error, setError] =
|
|
16978
|
-
const [isLoadingMore, setIsLoadingMore] =
|
|
16978
|
+
const [currentPage, setCurrentPage] = useState51(1);
|
|
16979
|
+
const [pageHistory, setPageHistory] = useState51([]);
|
|
16980
|
+
const [error, setError] = useState51(null);
|
|
16981
|
+
const [isLoadingMore, setIsLoadingMore] = useState51(false);
|
|
16979
16982
|
const [triggerSearchPagination] = useSearchWithPaginationMutation();
|
|
16980
16983
|
const handleNextPage = useCallback13(
|
|
16981
16984
|
async (nextPageCursor) => {
|
|
@@ -17068,7 +17071,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
17068
17071
|
};
|
|
17069
17072
|
|
|
17070
17073
|
// src/hooks/useUrlParams.ts
|
|
17071
|
-
import { useCallback as useCallback14, useEffect as useEffect33, useState as
|
|
17074
|
+
import { useCallback as useCallback14, useEffect as useEffect33, useState as useState52 } from "react";
|
|
17072
17075
|
|
|
17073
17076
|
// src/components/WfoSearchPage/constants.ts
|
|
17074
17077
|
var DEFAULT_PAGE_SIZE2 = 5;
|
|
@@ -17083,28 +17086,28 @@ var DEFAULT_ENTITY_TAB = "SUBSCRIPTION";
|
|
|
17083
17086
|
|
|
17084
17087
|
// src/hooks/useUrlParams.ts
|
|
17085
17088
|
var useUrlParams = () => {
|
|
17086
|
-
const [urlParams, setUrlParams] =
|
|
17089
|
+
const [urlParams, setUrlParams] = useState52(() => {
|
|
17087
17090
|
if (typeof window !== "undefined") {
|
|
17088
17091
|
return new URLSearchParams(window.location.search);
|
|
17089
17092
|
}
|
|
17090
17093
|
return new URLSearchParams();
|
|
17091
17094
|
});
|
|
17092
|
-
const [query, setQuery] =
|
|
17095
|
+
const [query, setQuery] = useState52(() => {
|
|
17093
17096
|
const queryParam = urlParams.get("q");
|
|
17094
17097
|
return queryParam || "";
|
|
17095
17098
|
});
|
|
17096
|
-
const [selectedEntityTab, setSelectedEntityTab] =
|
|
17099
|
+
const [selectedEntityTab, setSelectedEntityTab] = useState52(() => {
|
|
17097
17100
|
const tabParam = urlParams.get("tab");
|
|
17098
17101
|
return tabParam && VALID_ENTITY_TYPES.includes(tabParam) ? tabParam : DEFAULT_ENTITY_TAB;
|
|
17099
17102
|
});
|
|
17100
|
-
const [showFilters, setShowFilters] =
|
|
17103
|
+
const [showFilters, setShowFilters] = useState52(() => {
|
|
17101
17104
|
return urlParams.get("filters") === "true";
|
|
17102
17105
|
});
|
|
17103
|
-
const [selectedRecordIndex, setSelectedRecordIndex] =
|
|
17106
|
+
const [selectedRecordIndex, setSelectedRecordIndex] = useState52(() => {
|
|
17104
17107
|
const indexParam = urlParams.get("selected");
|
|
17105
17108
|
return indexParam ? parseInt(indexParam, 10) || 0 : 0;
|
|
17106
17109
|
});
|
|
17107
|
-
const [selectedRecordId, setSelectedRecordId] =
|
|
17110
|
+
const [selectedRecordId, setSelectedRecordId] = useState52(() => {
|
|
17108
17111
|
return urlParams.get("id") || null;
|
|
17109
17112
|
});
|
|
17110
17113
|
const updateUrl = useCallback14(() => {
|
|
@@ -17166,12 +17169,12 @@ var WfoSearch = () => {
|
|
|
17166
17169
|
setSelectedRecordId
|
|
17167
17170
|
} = useUrlParams();
|
|
17168
17171
|
const pageSize = DEFAULT_PAGE_SIZE2;
|
|
17169
|
-
const [filterGroup, setFilterGroup] =
|
|
17172
|
+
const [filterGroup, setFilterGroup] = useState53({
|
|
17170
17173
|
op: "AND",
|
|
17171
17174
|
children: []
|
|
17172
17175
|
});
|
|
17173
|
-
const [showDetailPanel, setShowDetailPanel] =
|
|
17174
|
-
const [retrieverType, setRetrieverType] =
|
|
17176
|
+
const [showDetailPanel, setShowDetailPanel] = useState53(false);
|
|
17177
|
+
const [retrieverType, setRetrieverType] = useState53("auto" /* Auto */);
|
|
17175
17178
|
const debouncedQuery = useDebounce(query, DEFAULT_DEBOUNCE_DELAY);
|
|
17176
17179
|
const { results, loading, setResults } = useSearch(
|
|
17177
17180
|
debouncedQuery,
|
|
@@ -17180,7 +17183,7 @@ var WfoSearch = () => {
|
|
|
17180
17183
|
pageSize,
|
|
17181
17184
|
retrieverType
|
|
17182
17185
|
);
|
|
17183
|
-
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] =
|
|
17186
|
+
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] = useState53(false);
|
|
17184
17187
|
useEffect34(() => {
|
|
17185
17188
|
const queryText = typeof debouncedQuery === "string" ? debouncedQuery : debouncedQuery?.text?.trim() || "";
|
|
17186
17189
|
const hasFilters = filterGroup && filterGroup.children.length > 0;
|
|
@@ -17191,7 +17194,7 @@ var WfoSearch = () => {
|
|
|
17191
17194
|
}
|
|
17192
17195
|
}, [debouncedQuery, filterGroup]);
|
|
17193
17196
|
const { currentPage, error, isLoadingMore, handleNextPage, handlePrevPage, resetPagination, setError } = useSearchPagination(debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults, retrieverType);
|
|
17194
|
-
const [searchValue, setSearchValue] =
|
|
17197
|
+
const [searchValue, setSearchValue] = useState53(() => {
|
|
17195
17198
|
if (typeof query === "string") {
|
|
17196
17199
|
return query;
|
|
17197
17200
|
}
|
|
@@ -17716,12 +17719,12 @@ import {
|
|
|
17716
17719
|
} from "@elastic/eui";
|
|
17717
17720
|
|
|
17718
17721
|
// src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx
|
|
17719
|
-
import { useState as
|
|
17722
|
+
import { useState as useState55 } from "react";
|
|
17720
17723
|
import { useTranslations as useTranslations93 } from "next-intl";
|
|
17721
17724
|
import { EuiButtonIcon as EuiButtonIcon18, EuiFlexGroup as EuiFlexGroup46, EuiFlexItem as EuiFlexItem43, EuiFormRow as EuiFormRow8, EuiPanel as EuiPanel20 } from "@elastic/eui";
|
|
17722
17725
|
|
|
17723
17726
|
// src/hooks/usePathAutoComplete.ts
|
|
17724
|
-
import { useEffect as useEffect36, useState as
|
|
17727
|
+
import { useEffect as useEffect36, useState as useState54 } from "react";
|
|
17725
17728
|
var FALLBACK_DEFINITIONS = {
|
|
17726
17729
|
string: {
|
|
17727
17730
|
operators: ["eq", "neq"],
|
|
@@ -17761,7 +17764,7 @@ var FALLBACK_DEFINITIONS = {
|
|
|
17761
17764
|
}
|
|
17762
17765
|
};
|
|
17763
17766
|
var usePathAutocomplete = (prefix, entityType) => {
|
|
17764
|
-
const [paths, setPaths] =
|
|
17767
|
+
const [paths, setPaths] = useState54([]);
|
|
17765
17768
|
const debouncedPrefix = useDebounce(prefix, 300);
|
|
17766
17769
|
const { data: definitions = FALLBACK_DEFINITIONS, isError: defError } = useSearchDefinitionsQuery();
|
|
17767
17770
|
const {
|
|
@@ -18396,9 +18399,9 @@ import { jsx as jsx270, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
|
|
|
18396
18399
|
var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
|
|
18397
18400
|
const t = useTranslations93("search.page");
|
|
18398
18401
|
const { theme } = useOrchestratorTheme();
|
|
18399
|
-
const [searchValue, setSearchValue] =
|
|
18400
|
-
const [showPathSelection, setShowPathSelection] =
|
|
18401
|
-
const [selectedFieldName, setSelectedFieldName] =
|
|
18402
|
+
const [searchValue, setSearchValue] = useState55(condition.path);
|
|
18403
|
+
const [showPathSelection, setShowPathSelection] = useState55(false);
|
|
18404
|
+
const [selectedFieldName, setSelectedFieldName] = useState55("");
|
|
18402
18405
|
const { paths, loading, error } = usePathAutocomplete(searchValue, entityType);
|
|
18403
18406
|
const selectedPathInfo = (() => {
|
|
18404
18407
|
if (!condition.path) return null;
|
|
@@ -18722,7 +18725,7 @@ var FilterGroup = ({
|
|
|
18722
18725
|
};
|
|
18723
18726
|
|
|
18724
18727
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
18725
|
-
import { useCallback as useCallback15, useEffect as useEffect37, useState as
|
|
18728
|
+
import { useCallback as useCallback15, useEffect as useEffect37, useState as useState56 } from "react";
|
|
18726
18729
|
import { EuiFlexItem as EuiFlexItem45 } from "@elastic/eui";
|
|
18727
18730
|
import Editor from "@monaco-editor/react";
|
|
18728
18731
|
|
|
@@ -18749,9 +18752,9 @@ var MONACO_THEME = {
|
|
|
18749
18752
|
var WfoMonacoCodeBlock = ({ data }) => {
|
|
18750
18753
|
const { theme, isDarkModeActive } = useOrchestratorTheme();
|
|
18751
18754
|
const { monacoEditorStyle } = useWithOrchestratorTheme(getStyles15);
|
|
18752
|
-
const [monacoInstance, setMonacoInstance] =
|
|
18755
|
+
const [monacoInstance, setMonacoInstance] = useState56(void 0);
|
|
18753
18756
|
const json = JSON.stringify(data, null, 4);
|
|
18754
|
-
const [editorHeight, setEditorHeight] =
|
|
18757
|
+
const [editorHeight, setEditorHeight] = useState56(0);
|
|
18755
18758
|
const addThemeToEditor = useCallback15(
|
|
18756
18759
|
(monaco) => {
|
|
18757
18760
|
monaco.editor.defineTheme("wfoTheme", {
|