@orchestrator-ui/orchestrator-ui-components 6.4.0 → 6.6.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.
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-lint.log +2 -2
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +24 -0
- package/dist/index.d.ts +23 -93
- package/dist/index.js +1025 -640
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoAgent/ExportButton/ExportButton.tsx +96 -0
- package/src/components/WfoAgent/ExportButton/index.ts +1 -0
- package/src/components/WfoAgent/ExportButton/styles.ts +69 -0
- package/src/components/WfoAgent/ToolProgress/DiscoverFilterPathsDisplay.tsx +114 -0
- package/src/components/WfoAgent/ToolProgress/RunSearchDisplay.tsx +34 -0
- package/src/components/WfoAgent/{FilterDisplay/FilterDisplay.tsx → ToolProgress/SetFilterTreeDisplay.tsx} +25 -72
- package/src/components/WfoAgent/ToolProgress/StartNewSearchDisplay.tsx +62 -0
- package/src/components/WfoAgent/ToolProgress/ToolProgress.tsx +138 -0
- package/src/components/WfoAgent/ToolProgress/index.ts +1 -0
- package/src/components/WfoAgent/ToolProgress/styles.ts +50 -0
- package/src/components/WfoAgent/WfoAgent/WfoAgent.tsx +78 -51
- package/src/components/WfoAgent/index.ts +0 -1
- package/src/components/WfoInlineEdit/WfoInlineEdit.tsx +5 -1
- package/src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx +1 -1
- package/src/components/WfoMetadata/WfoMetadataDescriptionField.tsx +3 -1
- package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +15 -6
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts +5 -1
- package/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx +6 -10
- package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx +4 -4
- package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx +18 -34
- package/src/components/WfoSearchPage/WfoSearchResults/index.ts +0 -1
- package/src/components/WfoSearchPage/utils.ts +12 -112
- package/src/components/WfoSubscription/WfoCustomerDescriptionsField.tsx +1 -1
- package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx +137 -46
- package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx +27 -33
- package/src/components/WfoSubscription/WfoSubscriptionActions/styles.ts +3 -1
- package/src/components/WfoSubscription/WfoTargetTypeIcon.tsx +37 -6
- package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +1 -0
- package/src/configuration/version.ts +1 -1
- package/src/hooks/useSearchPagination.ts +2 -2
- package/src/messages/en-GB.json +3 -3
- package/src/messages/nl-NL.json +2 -0
- package/src/rtk/endpoints/agentExport.ts +23 -0
- package/src/types/search.ts +8 -70
- package/src/components/WfoAgent/FilterDisplay/index.ts +0 -1
- package/src/components/WfoSearchPage/WfoSearchResults/WfoSubscriptionDetailModal.tsx +0 -55
- /package/src/components/WfoAgent/{FilterDisplay/styles.ts → ToolProgress/SetFilterTreeDisplay.styles.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -4922,10 +4922,10 @@ var require_markup = __commonJS({
|
|
|
4922
4922
|
var require_css = __commonJS({
|
|
4923
4923
|
"../../node_modules/refractor/lang/css.js"(exports, module) {
|
|
4924
4924
|
"use strict";
|
|
4925
|
-
module.exports =
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
function
|
|
4925
|
+
module.exports = css59;
|
|
4926
|
+
css59.displayName = "css";
|
|
4927
|
+
css59.aliases = [];
|
|
4928
|
+
function css59(Prism) {
|
|
4929
4929
|
;
|
|
4930
4930
|
(function(Prism2) {
|
|
4931
4931
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -5192,7 +5192,7 @@ var require_core = __commonJS({
|
|
|
5192
5192
|
var decode = require_parse_entities();
|
|
5193
5193
|
var Prism = require_prism_core();
|
|
5194
5194
|
var markup = require_markup();
|
|
5195
|
-
var
|
|
5195
|
+
var css59 = require_css();
|
|
5196
5196
|
var clike = require_clike();
|
|
5197
5197
|
var js = require_javascript();
|
|
5198
5198
|
restore();
|
|
@@ -5208,7 +5208,7 @@ var require_core = __commonJS({
|
|
|
5208
5208
|
refract.registered = registered;
|
|
5209
5209
|
refract.listLanguages = listLanguages;
|
|
5210
5210
|
register(markup);
|
|
5211
|
-
register(
|
|
5211
|
+
register(css59);
|
|
5212
5212
|
register(clike);
|
|
5213
5213
|
register(js);
|
|
5214
5214
|
refract.util.encode = encode;
|
|
@@ -15304,10 +15304,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
15304
15304
|
var require_jsx = __commonJS({
|
|
15305
15305
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
15306
15306
|
"use strict";
|
|
15307
|
-
module.exports =
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
function
|
|
15307
|
+
module.exports = jsx304;
|
|
15308
|
+
jsx304.displayName = "jsx";
|
|
15309
|
+
jsx304.aliases = [];
|
|
15310
|
+
function jsx304(Prism) {
|
|
15311
15311
|
;
|
|
15312
15312
|
(function(Prism2) {
|
|
15313
15313
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -26801,7 +26801,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26801
26801
|
})(PolicyResource || {});
|
|
26802
26802
|
|
|
26803
26803
|
// src/configuration/version.ts
|
|
26804
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.
|
|
26804
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.6.1";
|
|
26805
26805
|
|
|
26806
26806
|
// src/types/types.ts
|
|
26807
26807
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -35502,16 +35502,16 @@ var { useUploadFileMutation } = fileUploadApi;
|
|
|
35502
35502
|
|
|
35503
35503
|
// src/components/WfoSearchPage/utils.ts
|
|
35504
35504
|
function isSubscriptionSearchResult(item) {
|
|
35505
|
-
return
|
|
35505
|
+
return item.entity_type === "SUBSCRIPTION";
|
|
35506
35506
|
}
|
|
35507
35507
|
function isProcessSearchResult(item) {
|
|
35508
|
-
return
|
|
35508
|
+
return item.entity_type === "PROCESS";
|
|
35509
35509
|
}
|
|
35510
35510
|
function isProductSearchResult(item) {
|
|
35511
|
-
return
|
|
35511
|
+
return item.entity_type === "PRODUCT";
|
|
35512
35512
|
}
|
|
35513
35513
|
function isWorkflowSearchResult(item) {
|
|
35514
|
-
return
|
|
35514
|
+
return item.entity_type === "WORKFLOW";
|
|
35515
35515
|
}
|
|
35516
35516
|
var isCondition = (item) => {
|
|
35517
35517
|
return "path" in item && "condition" in item;
|
|
@@ -35525,82 +35525,9 @@ var ENDPOINT_PATHS = {
|
|
|
35525
35525
|
var getEndpointPath = (entityType) => {
|
|
35526
35526
|
return ENDPOINT_PATHS[entityType] || ENDPOINT_PATHS.SUBSCRIPTION;
|
|
35527
35527
|
};
|
|
35528
|
-
var getDisplayText = (item) => {
|
|
35529
|
-
if (isSubscriptionSearchResult(item)) {
|
|
35530
|
-
return item.subscription.description || "Subscription";
|
|
35531
|
-
}
|
|
35532
|
-
if (isProcessSearchResult(item)) {
|
|
35533
|
-
return item.process.workflowName;
|
|
35534
|
-
}
|
|
35535
|
-
if (isProductSearchResult(item)) {
|
|
35536
|
-
return item.product.name;
|
|
35537
|
-
}
|
|
35538
|
-
if (isWorkflowSearchResult(item)) {
|
|
35539
|
-
return item.workflow.name;
|
|
35540
|
-
}
|
|
35541
|
-
return "Unknown result type";
|
|
35542
|
-
};
|
|
35543
|
-
var getRecordId = (result) => {
|
|
35544
|
-
if (isSubscriptionSearchResult(result)) {
|
|
35545
|
-
return result.subscription.subscription_id;
|
|
35546
|
-
}
|
|
35547
|
-
if (isProductSearchResult(result)) {
|
|
35548
|
-
return result.product.product_id;
|
|
35549
|
-
}
|
|
35550
|
-
if (isProcessSearchResult(result)) {
|
|
35551
|
-
return result.process.processId;
|
|
35552
|
-
}
|
|
35553
|
-
if (isWorkflowSearchResult(result)) {
|
|
35554
|
-
return result.workflow.name;
|
|
35555
|
-
}
|
|
35556
|
-
return "";
|
|
35557
|
-
};
|
|
35558
|
-
var findResultIndexById = (results, recordId) => {
|
|
35559
|
-
return results.findIndex((result) => {
|
|
35560
|
-
if (isSubscriptionSearchResult(result)) {
|
|
35561
|
-
return result.subscription.subscription_id === recordId;
|
|
35562
|
-
}
|
|
35563
|
-
if (isProductSearchResult(result)) {
|
|
35564
|
-
return result.product.product_id === recordId;
|
|
35565
|
-
}
|
|
35566
|
-
if (isProcessSearchResult(result)) {
|
|
35567
|
-
return result.process.processId === recordId;
|
|
35568
|
-
}
|
|
35569
|
-
if (isWorkflowSearchResult(result)) {
|
|
35570
|
-
return result.workflow.name === recordId;
|
|
35571
|
-
}
|
|
35572
|
-
return false;
|
|
35573
|
-
});
|
|
35574
|
-
};
|
|
35575
35528
|
var getDetailUrl = (result, baseUrl) => {
|
|
35576
|
-
|
|
35577
|
-
|
|
35578
|
-
}
|
|
35579
|
-
if (isProductSearchResult(result)) {
|
|
35580
|
-
return `${baseUrl}/products/${result.product.product_id}`;
|
|
35581
|
-
}
|
|
35582
|
-
if (isProcessSearchResult(result)) {
|
|
35583
|
-
return `${baseUrl}/processes/${result.process.processId}`;
|
|
35584
|
-
}
|
|
35585
|
-
if (isWorkflowSearchResult(result)) {
|
|
35586
|
-
return `${baseUrl}/workflows/${result.workflow.name}`;
|
|
35587
|
-
}
|
|
35588
|
-
return "#";
|
|
35589
|
-
};
|
|
35590
|
-
var getDescription = (result) => {
|
|
35591
|
-
if (isSubscriptionSearchResult(result)) {
|
|
35592
|
-
return result.subscription.description;
|
|
35593
|
-
}
|
|
35594
|
-
if (isProductSearchResult(result)) {
|
|
35595
|
-
return result.product.description || result.product.name;
|
|
35596
|
-
}
|
|
35597
|
-
if (isWorkflowSearchResult(result)) {
|
|
35598
|
-
return result.workflow.description || result.workflow.name;
|
|
35599
|
-
}
|
|
35600
|
-
if (isProcessSearchResult(result)) {
|
|
35601
|
-
return result.process.workflowName;
|
|
35602
|
-
}
|
|
35603
|
-
return "Unknown";
|
|
35529
|
+
const endpointPath = getEndpointPath(result.entity_type);
|
|
35530
|
+
return `${baseUrl}/${endpointPath}/${result.entity_id}`;
|
|
35604
35531
|
};
|
|
35605
35532
|
var ENTITY_TABS = [
|
|
35606
35533
|
{ id: "SUBSCRIPTION", label: "Subscriptions" },
|
|
@@ -35817,6 +35744,11 @@ var getOrchestratorCoreVersionIfNotCompatible = (orchestratorUiVersion, orchestr
|
|
|
35817
35744
|
|
|
35818
35745
|
// ../../version-compatibility.json
|
|
35819
35746
|
var version_compatibility_default = [
|
|
35747
|
+
{
|
|
35748
|
+
orchestratorUiVersion: "6.5.0",
|
|
35749
|
+
minimumOrchestratorCoreVersion: "4.6.0",
|
|
35750
|
+
changes: "To support new functionality in the FE for the Agent and LLM, the BE endpoints have changed."
|
|
35751
|
+
},
|
|
35820
35752
|
{
|
|
35821
35753
|
orchestratorUiVersion: "5.3.5",
|
|
35822
35754
|
minimumOrchestratorCoreVersion: "4.2.0",
|
|
@@ -35990,11 +35922,11 @@ var WfoHeroIconsWrapper = ({
|
|
|
35990
35922
|
children
|
|
35991
35923
|
}
|
|
35992
35924
|
);
|
|
35993
|
-
var withWfoHeroIconsWrapper = (
|
|
35925
|
+
var withWfoHeroIconsWrapper = (Icon2) => {
|
|
35994
35926
|
const wfoHeroIconsWrapperWithIcon = ({
|
|
35995
35927
|
className,
|
|
35996
35928
|
...iconProps
|
|
35997
|
-
}) => /* @__PURE__ */ jsx12(WfoHeroIconsWrapper, { className, children: /* @__PURE__ */ jsx12(
|
|
35929
|
+
}) => /* @__PURE__ */ jsx12(WfoHeroIconsWrapper, { className, children: /* @__PURE__ */ jsx12(Icon2, { ...iconProps }) });
|
|
35998
35930
|
wfoHeroIconsWrapperWithIcon.displayName = "WfoHeroIconsWrapper";
|
|
35999
35931
|
return wfoHeroIconsWrapperWithIcon;
|
|
36000
35932
|
};
|
|
@@ -39437,7 +39369,7 @@ var WfoHeaderBadge = ({
|
|
|
39437
39369
|
children,
|
|
39438
39370
|
...restProps
|
|
39439
39371
|
}) => {
|
|
39440
|
-
const
|
|
39372
|
+
const css59 = restProps.iconType ? {
|
|
39441
39373
|
height: 24,
|
|
39442
39374
|
display: "flex",
|
|
39443
39375
|
paddingLeft: 0
|
|
@@ -39445,7 +39377,7 @@ var WfoHeaderBadge = ({
|
|
|
39445
39377
|
height: 24,
|
|
39446
39378
|
display: "flex"
|
|
39447
39379
|
};
|
|
39448
|
-
return /* @__PURE__ */ jsx76(WfoBadge, { ...restProps, css:
|
|
39380
|
+
return /* @__PURE__ */ jsx76(WfoBadge, { ...restProps, css: css59, children });
|
|
39449
39381
|
};
|
|
39450
39382
|
|
|
39451
39383
|
// src/components/WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx
|
|
@@ -40799,7 +40731,8 @@ var getSubscriptionActionStyles = ({ theme }) => {
|
|
|
40799
40731
|
const linkMenuItemStyle = css12({
|
|
40800
40732
|
"&>:hover": {
|
|
40801
40733
|
backgroundColor: theme.colors.lightestShade,
|
|
40802
|
-
borderRadius: theme.border.radius.medium
|
|
40734
|
+
borderRadius: theme.border.radius.medium,
|
|
40735
|
+
cursor: "pointer"
|
|
40803
40736
|
},
|
|
40804
40737
|
".euiToolTipAnchor": {
|
|
40805
40738
|
width: "100%"
|
|
@@ -40821,7 +40754,8 @@ var getSubscriptionActionStyles = ({ theme }) => {
|
|
|
40821
40754
|
width: theme.base * 2
|
|
40822
40755
|
});
|
|
40823
40756
|
const secondaryIconStyle = css12({
|
|
40824
|
-
|
|
40757
|
+
position: "absolute",
|
|
40758
|
+
transform: "translate(13px, -8px);"
|
|
40825
40759
|
});
|
|
40826
40760
|
const spinnerSecondaryIconStyle = css12({
|
|
40827
40761
|
transform: "translate(-8px, -6px);"
|
|
@@ -40846,16 +40780,41 @@ var getSubscriptionActionStyles = ({ theme }) => {
|
|
|
40846
40780
|
};
|
|
40847
40781
|
|
|
40848
40782
|
// src/components/WfoSubscription/WfoTargetTypeIcon.tsx
|
|
40849
|
-
import {
|
|
40783
|
+
import { css as css13 } from "@emotion/css";
|
|
40850
40784
|
import { jsx as jsx101 } from "@emotion/react/jsx-runtime";
|
|
40785
|
+
var Icon = ({ targetLetter, backgroundColor }) => {
|
|
40786
|
+
const { theme } = useOrchestratorTheme();
|
|
40787
|
+
const size = theme.size.l;
|
|
40788
|
+
return /* @__PURE__ */ jsx101(
|
|
40789
|
+
"div",
|
|
40790
|
+
{
|
|
40791
|
+
"aria-label": targetLetter,
|
|
40792
|
+
role: "img",
|
|
40793
|
+
title: targetLetter,
|
|
40794
|
+
className: css13({
|
|
40795
|
+
backgroundColor,
|
|
40796
|
+
borderRadius: "50%",
|
|
40797
|
+
color: theme.colors.ghost,
|
|
40798
|
+
alignItems: "center",
|
|
40799
|
+
justifyContent: "center",
|
|
40800
|
+
fontWeight: 500,
|
|
40801
|
+
fontSize: theme.size.m,
|
|
40802
|
+
display: "flex",
|
|
40803
|
+
height: size,
|
|
40804
|
+
width: size
|
|
40805
|
+
}),
|
|
40806
|
+
children: targetLetter
|
|
40807
|
+
}
|
|
40808
|
+
);
|
|
40809
|
+
};
|
|
40851
40810
|
var WfoTargetTypeIcon = ({
|
|
40852
40811
|
target,
|
|
40853
40812
|
disabled = false
|
|
40854
40813
|
}) => {
|
|
40855
40814
|
const { theme } = useOrchestratorTheme();
|
|
40856
|
-
const
|
|
40857
|
-
const
|
|
40858
|
-
return /* @__PURE__ */ jsx101(
|
|
40815
|
+
const backGroundColor = disabled ? theme.colors.lightShade : getWorkflowTargetColor(target, theme);
|
|
40816
|
+
const targetLetter = getWorkflowTargetIconContent(target);
|
|
40817
|
+
return /* @__PURE__ */ jsx101(Icon, { targetLetter, backgroundColor: backGroundColor });
|
|
40859
40818
|
};
|
|
40860
40819
|
var WfoInSyncCompactIcon = ({
|
|
40861
40820
|
disabled
|
|
@@ -40863,7 +40822,7 @@ var WfoInSyncCompactIcon = ({
|
|
|
40863
40822
|
const { theme } = useOrchestratorTheme();
|
|
40864
40823
|
const color = disabled ? theme.colors.lightShade : theme.colors.danger;
|
|
40865
40824
|
const name = "S";
|
|
40866
|
-
return /* @__PURE__ */ jsx101(
|
|
40825
|
+
return /* @__PURE__ */ jsx101(Icon, { targetLetter: name, backgroundColor: color });
|
|
40867
40826
|
};
|
|
40868
40827
|
|
|
40869
40828
|
// src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
|
|
@@ -41026,47 +40985,47 @@ import {
|
|
|
41026
40985
|
} from "@elastic/eui";
|
|
41027
40986
|
|
|
41028
40987
|
// src/components/WfoSubscription/styles.ts
|
|
41029
|
-
import { css as
|
|
40988
|
+
import { css as css14 } from "@emotion/react";
|
|
41030
40989
|
var getSubscriptionDetailStyles = ({ theme }) => {
|
|
41031
40990
|
const productBlockTreeWidth = theme.base * 28;
|
|
41032
|
-
const labelCellStyle =
|
|
40991
|
+
const labelCellStyle = css14({
|
|
41033
40992
|
marginLeft: theme.size.m
|
|
41034
40993
|
});
|
|
41035
|
-
const cellGroupStyle =
|
|
40994
|
+
const cellGroupStyle = css14({
|
|
41036
40995
|
paddingBlock: theme.size.m
|
|
41037
40996
|
});
|
|
41038
|
-
const borderStyle =
|
|
40997
|
+
const borderStyle = css14({
|
|
41039
40998
|
borderBottom: theme.border.thin
|
|
41040
40999
|
});
|
|
41041
|
-
const rowStyle =
|
|
41000
|
+
const rowStyle = css14({
|
|
41042
41001
|
paddingInline: theme.size.m,
|
|
41043
41002
|
"&:last-of-type .border": {
|
|
41044
41003
|
borderBottom: "none"
|
|
41045
41004
|
}
|
|
41046
41005
|
});
|
|
41047
|
-
const tableStyle =
|
|
41006
|
+
const tableStyle = css14({
|
|
41048
41007
|
backgroundColor: theme.colors.lightestShade,
|
|
41049
41008
|
width: "100%",
|
|
41050
41009
|
borderRadius: theme.border.radius.medium,
|
|
41051
41010
|
marginTop: theme.base / 2
|
|
41052
41011
|
});
|
|
41053
|
-
const timeLineStyle =
|
|
41012
|
+
const timeLineStyle = css14({
|
|
41054
41013
|
paddingLeft: theme.base / 2
|
|
41055
41014
|
});
|
|
41056
|
-
const workflowTargetStyle =
|
|
41057
|
-
const inUseByRelationDetailsStyle =
|
|
41015
|
+
const workflowTargetStyle = css14({ fontWeight: theme.font.weight.bold });
|
|
41016
|
+
const inUseByRelationDetailsStyle = css14({
|
|
41058
41017
|
borderColor: theme.colors.lightShade,
|
|
41059
41018
|
borderStyle: "solid",
|
|
41060
41019
|
borderWidth: "thin",
|
|
41061
41020
|
marginBottom: theme.base / 4,
|
|
41062
41021
|
borderRadius: theme.border.radius.medium
|
|
41063
41022
|
});
|
|
41064
|
-
const customerDescriptionsCustomerNameStyle =
|
|
41023
|
+
const customerDescriptionsCustomerNameStyle = css14({
|
|
41065
41024
|
whiteSpace: "nowrap",
|
|
41066
41025
|
alignSelf: "center",
|
|
41067
41026
|
marginRight: theme.base / 2
|
|
41068
41027
|
});
|
|
41069
|
-
const customerDescriptionsFormStyle =
|
|
41028
|
+
const customerDescriptionsFormStyle = css14({
|
|
41070
41029
|
display: "flex",
|
|
41071
41030
|
flexDirection: "column",
|
|
41072
41031
|
alignItems: "flex-start"
|
|
@@ -41354,16 +41313,16 @@ var WfoExpandedRow = ({
|
|
|
41354
41313
|
};
|
|
41355
41314
|
|
|
41356
41315
|
// src/components/WfoTable/WfoTable/styles.ts
|
|
41357
|
-
import { css as
|
|
41316
|
+
import { css as css16, keyframes } from "@emotion/react";
|
|
41358
41317
|
|
|
41359
41318
|
// src/components/WfoTable/WfoTable/WfoTableHeaderCell/styles.ts
|
|
41360
|
-
import { css as
|
|
41319
|
+
import { css as css15 } from "@emotion/react";
|
|
41361
41320
|
var HEADER_CELL_TITLE_BUTTON_CLASS = "headerCellTitleButton";
|
|
41362
41321
|
var HEADER_CELL_SORT_BUTTON_CLASS = "headerCellSortButton";
|
|
41363
41322
|
var SORTABLE_ICON_CLASS = "sortableIcon";
|
|
41364
41323
|
var getWfoBasicTableStyles = ({ theme }) => {
|
|
41365
41324
|
const radius = theme.border.radius.medium;
|
|
41366
|
-
const basicTableStyle =
|
|
41325
|
+
const basicTableStyle = css15({
|
|
41367
41326
|
table: {
|
|
41368
41327
|
backgroundColor: theme.colors.emptyShade
|
|
41369
41328
|
},
|
|
@@ -41390,7 +41349,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
41390
41349
|
}
|
|
41391
41350
|
}
|
|
41392
41351
|
});
|
|
41393
|
-
const getStatusColumnStyle = (columnNumber) =>
|
|
41352
|
+
const getStatusColumnStyle = (columnNumber) => css15(basicTableStyle, {
|
|
41394
41353
|
[`tbody tr td:nth-child(${columnNumber}) .euiTableCellContent`]: {
|
|
41395
41354
|
padding: 0,
|
|
41396
41355
|
".euiTableCellContent__text": {
|
|
@@ -41401,7 +41360,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
41401
41360
|
}
|
|
41402
41361
|
}
|
|
41403
41362
|
});
|
|
41404
|
-
const dropDownTableStyle =
|
|
41363
|
+
const dropDownTableStyle = css15({
|
|
41405
41364
|
thead: {
|
|
41406
41365
|
backgroundColor: theme.colors.lightestShade,
|
|
41407
41366
|
"tr>:first-child": {
|
|
@@ -41415,7 +41374,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
41415
41374
|
backgroundColor: theme.colors.lightestShade
|
|
41416
41375
|
}
|
|
41417
41376
|
});
|
|
41418
|
-
const expandableTableStyle =
|
|
41377
|
+
const expandableTableStyle = css15([
|
|
41419
41378
|
basicTableStyle,
|
|
41420
41379
|
{
|
|
41421
41380
|
"tr.euiTableRow-isExpandedRow": {
|
|
@@ -41423,33 +41382,33 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
41423
41382
|
}
|
|
41424
41383
|
}
|
|
41425
41384
|
]);
|
|
41426
|
-
const headerCellStyle =
|
|
41385
|
+
const headerCellStyle = css15({
|
|
41427
41386
|
display: "flex",
|
|
41428
41387
|
justifyContent: "flex-start",
|
|
41429
41388
|
alignItems: "center",
|
|
41430
41389
|
overflow: "hidden"
|
|
41431
41390
|
});
|
|
41432
|
-
const getHeaderCellContentStyle = (isSortable) =>
|
|
41391
|
+
const getHeaderCellContentStyle = (isSortable) => css15({
|
|
41433
41392
|
cursor: isSortable ? "pointer" : "not-allowed",
|
|
41434
41393
|
fontWeight: theme.font.weight.semiBold
|
|
41435
41394
|
});
|
|
41436
|
-
const headerCellPopoverHeaderStyle =
|
|
41395
|
+
const headerCellPopoverHeaderStyle = css15({
|
|
41437
41396
|
margin: theme.size.m,
|
|
41438
41397
|
display: "flex",
|
|
41439
41398
|
justifyContent: "space-between",
|
|
41440
41399
|
alignItems: "center"
|
|
41441
41400
|
});
|
|
41442
|
-
const headerCellPopoverHeaderTitleStyle =
|
|
41401
|
+
const headerCellPopoverHeaderTitleStyle = css15({
|
|
41443
41402
|
fontWeight: theme.font.weight.medium
|
|
41444
41403
|
});
|
|
41445
|
-
const headerCellPopoverContentStyle =
|
|
41404
|
+
const headerCellPopoverContentStyle = css15({
|
|
41446
41405
|
margin: theme.size.m
|
|
41447
41406
|
});
|
|
41448
|
-
const getTitleButtonStyle = (sortOrder) =>
|
|
41407
|
+
const getTitleButtonStyle = (sortOrder) => css15({
|
|
41449
41408
|
flex: "0 1 auto",
|
|
41450
41409
|
overflow: sortOrder === void 0 ? "visible" : "hidden"
|
|
41451
41410
|
});
|
|
41452
|
-
const sortButtonStyle =
|
|
41411
|
+
const sortButtonStyle = css15({
|
|
41453
41412
|
paddingLeft: theme.size.xxs,
|
|
41454
41413
|
display: "flex",
|
|
41455
41414
|
flex: "0 0 auto",
|
|
@@ -41497,13 +41456,13 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
41497
41456
|
width: 0
|
|
41498
41457
|
}
|
|
41499
41458
|
});
|
|
41500
|
-
const tableContainerStyle =
|
|
41459
|
+
const tableContainerStyle = css16({
|
|
41501
41460
|
overflowX: "auto"
|
|
41502
41461
|
});
|
|
41503
|
-
const tableStyle =
|
|
41462
|
+
const tableStyle = css16({
|
|
41504
41463
|
width: "100%"
|
|
41505
41464
|
});
|
|
41506
|
-
const headerStyle =
|
|
41465
|
+
const headerStyle = css16({
|
|
41507
41466
|
backgroundColor: theme.colors.lightShade,
|
|
41508
41467
|
fontSize: theme.size.m,
|
|
41509
41468
|
textAlign: "left",
|
|
@@ -41514,7 +41473,7 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
41514
41473
|
borderTopRightRadius: radius
|
|
41515
41474
|
}
|
|
41516
41475
|
});
|
|
41517
|
-
const bodyLoadingStyle =
|
|
41476
|
+
const bodyLoadingStyle = css16({
|
|
41518
41477
|
position: "relative",
|
|
41519
41478
|
overflow: "hidden",
|
|
41520
41479
|
"&::before": {
|
|
@@ -41525,22 +41484,22 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
41525
41484
|
animation: `${tableLoadingLineKeyframes} 1s linear infinite`
|
|
41526
41485
|
}
|
|
41527
41486
|
});
|
|
41528
|
-
const rowStyle =
|
|
41487
|
+
const rowStyle = css16({
|
|
41529
41488
|
height: TABLE_ROW_HEIGHT,
|
|
41530
41489
|
borderStyle: "solid",
|
|
41531
41490
|
borderWidth: "0 0 1px 0",
|
|
41532
41491
|
borderColor: theme.colors.lightShade,
|
|
41533
41492
|
position: "relative"
|
|
41534
41493
|
});
|
|
41535
|
-
const dataRowStyle =
|
|
41494
|
+
const dataRowStyle = css16({
|
|
41536
41495
|
"&:hover": {
|
|
41537
41496
|
backgroundColor: theme.colors.lightestShade
|
|
41538
41497
|
}
|
|
41539
41498
|
});
|
|
41540
|
-
const expandedRowStyle =
|
|
41499
|
+
const expandedRowStyle = css16({
|
|
41541
41500
|
backgroundColor: theme.colors.lightestShade
|
|
41542
41501
|
});
|
|
41543
|
-
const sortableHeaderCellStyle =
|
|
41502
|
+
const sortableHeaderCellStyle = css16({
|
|
41544
41503
|
paddingRight: 0,
|
|
41545
41504
|
[`&:hover`]: {
|
|
41546
41505
|
[`.${SORTABLE_ICON_CLASS}`]: {
|
|
@@ -41551,33 +41510,33 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
41551
41510
|
}
|
|
41552
41511
|
}
|
|
41553
41512
|
});
|
|
41554
|
-
const cellStyle =
|
|
41513
|
+
const cellStyle = css16({
|
|
41555
41514
|
paddingLeft: theme.size.m,
|
|
41556
41515
|
whiteSpace: "nowrap",
|
|
41557
41516
|
verticalAlign: "middle"
|
|
41558
41517
|
});
|
|
41559
|
-
const cellContentStyle =
|
|
41518
|
+
const cellContentStyle = css16({
|
|
41560
41519
|
display: "inline-block",
|
|
41561
41520
|
width: "100%"
|
|
41562
41521
|
});
|
|
41563
|
-
const emptyTableMessageStyle =
|
|
41522
|
+
const emptyTableMessageStyle = css16({
|
|
41564
41523
|
textAlign: "center"
|
|
41565
41524
|
});
|
|
41566
|
-
const clickableStyle =
|
|
41525
|
+
const clickableStyle = css16({
|
|
41567
41526
|
cursor: "pointer"
|
|
41568
41527
|
});
|
|
41569
|
-
const setWidth = (width) => width !== void 0 &&
|
|
41528
|
+
const setWidth = (width) => width !== void 0 && css16({
|
|
41570
41529
|
width,
|
|
41571
41530
|
minWidth: width,
|
|
41572
41531
|
maxWidth: width,
|
|
41573
41532
|
overflow: "hidden"
|
|
41574
41533
|
});
|
|
41575
|
-
const headerCellContainer =
|
|
41534
|
+
const headerCellContainer = css16({
|
|
41576
41535
|
display: "flex",
|
|
41577
41536
|
justifyContent: "space-between",
|
|
41578
41537
|
height: TABLE_ROW_HEIGHT
|
|
41579
41538
|
});
|
|
41580
|
-
const dragAndDropStyle =
|
|
41539
|
+
const dragAndDropStyle = css16({
|
|
41581
41540
|
width: theme.size.xs,
|
|
41582
41541
|
cursor: "col-resize",
|
|
41583
41542
|
borderRadius: theme.border.radius.small,
|
|
@@ -41604,7 +41563,7 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
41604
41563
|
opacity: 0
|
|
41605
41564
|
}
|
|
41606
41565
|
});
|
|
41607
|
-
const paginationStyle =
|
|
41566
|
+
const paginationStyle = css16({
|
|
41608
41567
|
".eui-xScroll": { display: "flex", justifyContent: "flex-start" }
|
|
41609
41568
|
});
|
|
41610
41569
|
return {
|
|
@@ -42189,24 +42148,24 @@ import { useTranslations as useTranslations25 } from "next-intl";
|
|
|
42189
42148
|
import { EuiButtonIcon as EuiButtonIcon5, EuiText as EuiText6 } from "@elastic/eui";
|
|
42190
42149
|
|
|
42191
42150
|
// src/components/WfoTable/WfoTable/WfoGroupedTable/styles.ts
|
|
42192
|
-
import { css as
|
|
42151
|
+
import { css as css17 } from "@emotion/react";
|
|
42193
42152
|
var getWfoGroupedTableStyles = ({ theme }) => {
|
|
42194
42153
|
const expandRowButtonWidth = "24px";
|
|
42195
42154
|
const marginBetweenButtonAndGroupLabel = theme.size.m;
|
|
42196
|
-
const innerTableHeaderStyle =
|
|
42155
|
+
const innerTableHeaderStyle = css17({
|
|
42197
42156
|
fontSize: theme.size.m,
|
|
42198
42157
|
textAlign: "left",
|
|
42199
42158
|
backgroundColor: theme.colors.lightestShade
|
|
42200
42159
|
});
|
|
42201
|
-
const expandableRowContainerStyle =
|
|
42160
|
+
const expandableRowContainerStyle = css17({
|
|
42202
42161
|
display: "flex",
|
|
42203
42162
|
alignItems: "center"
|
|
42204
42163
|
});
|
|
42205
|
-
const expandableRowTextStyle =
|
|
42164
|
+
const expandableRowTextStyle = css17({
|
|
42206
42165
|
marginLeft: marginBetweenButtonAndGroupLabel,
|
|
42207
42166
|
fontWeight: theme.font.weight.medium
|
|
42208
42167
|
});
|
|
42209
|
-
const getNestingStyle = (nestingLevel) =>
|
|
42168
|
+
const getNestingStyle = (nestingLevel) => css17({
|
|
42210
42169
|
"th:first-child > *:first-child, td:first-child > *:first-child": {
|
|
42211
42170
|
marginLeft: `calc(${nestingLevel} * (${expandRowButtonWidth} + ${marginBetweenButtonAndGroupLabel}))`
|
|
42212
42171
|
}
|
|
@@ -42950,6 +42909,8 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
42950
42909
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
|
|
42951
42910
|
import { useState as useState19 } from "react";
|
|
42952
42911
|
import { useTranslations as useTranslations31 } from "next-intl";
|
|
42912
|
+
import Link9 from "next/link";
|
|
42913
|
+
import { useRouter as useRouter5 } from "next/router";
|
|
42953
42914
|
import {
|
|
42954
42915
|
EuiButton as EuiButton7,
|
|
42955
42916
|
EuiButtonIcon as EuiButtonIcon7,
|
|
@@ -42962,8 +42923,6 @@ import {
|
|
|
42962
42923
|
|
|
42963
42924
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx
|
|
42964
42925
|
import { useTranslations as useTranslations30 } from "next-intl";
|
|
42965
|
-
import Link9 from "next/link";
|
|
42966
|
-
import { useRouter as useRouter5 } from "next/router";
|
|
42967
42926
|
import { EuiContextMenuItem as EuiContextMenuItem2, EuiToolTip as EuiToolTip7 } from "@elastic/eui";
|
|
42968
42927
|
|
|
42969
42928
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
|
|
@@ -43025,10 +42984,9 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
43025
42984
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx
|
|
43026
42985
|
import { jsx as jsx126, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
43027
42986
|
var WfoSubscriptionActionsMenuItem = ({
|
|
43028
|
-
|
|
42987
|
+
subscriptionAction,
|
|
42988
|
+
onClick,
|
|
43029
42989
|
target,
|
|
43030
|
-
isTask = false,
|
|
43031
|
-
subscriptionId,
|
|
43032
42990
|
setPopover
|
|
43033
42991
|
}) => {
|
|
43034
42992
|
const {
|
|
@@ -43039,37 +42997,34 @@ var WfoSubscriptionActionsMenuItem = ({
|
|
|
43039
42997
|
secondaryIconStyle
|
|
43040
42998
|
} = useWithOrchestratorTheme(getSubscriptionActionStyles);
|
|
43041
42999
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
43042
|
-
const router = useRouter5();
|
|
43043
43000
|
const t = useTranslations30("subscriptions.detail.actions");
|
|
43044
43001
|
const { theme } = useOrchestratorTheme();
|
|
43045
43002
|
const linkIt = (actionItem) => {
|
|
43046
|
-
const path = isTask ? PATH_START_NEW_TASK : PATH_START_NEW_WORKFLOW;
|
|
43047
|
-
const url = {
|
|
43048
|
-
pathname: `${path}/${action.name}`,
|
|
43049
|
-
query: { subscriptionId }
|
|
43050
|
-
};
|
|
43051
43003
|
const handleLinkClick = async (e) => {
|
|
43052
43004
|
e.preventDefault();
|
|
43053
43005
|
setPopover(false);
|
|
43054
43006
|
if (await isEngineRunningNow()) {
|
|
43055
|
-
|
|
43007
|
+
onClick();
|
|
43056
43008
|
}
|
|
43057
43009
|
};
|
|
43058
|
-
return /* @__PURE__ */ jsx126(
|
|
43010
|
+
return /* @__PURE__ */ jsx126("div", { css: linkMenuItemStyle, onClick: handleLinkClick, children: actionItem });
|
|
43059
43011
|
};
|
|
43060
43012
|
const tooltipIt = (actionItem) => {
|
|
43061
|
-
if (!
|
|
43062
|
-
const tooltipContent = t(
|
|
43013
|
+
if (!subscriptionAction.reason) return actionItem;
|
|
43014
|
+
const tooltipContent = t(
|
|
43015
|
+
subscriptionAction.reason,
|
|
43016
|
+
flattenArrayProps(subscriptionAction)
|
|
43017
|
+
);
|
|
43063
43018
|
return /* @__PURE__ */ jsx126("div", { css: tooltipMenuItemStyle, children: /* @__PURE__ */ jsx126(EuiToolTip7, { position: "top", content: tooltipContent, children: /* @__PURE__ */ jsx126(
|
|
43064
43019
|
WfoSubscriptionActionExpandableMenuItem,
|
|
43065
43020
|
{
|
|
43066
|
-
subscriptionAction
|
|
43021
|
+
subscriptionAction,
|
|
43067
43022
|
onClickLockedRelation: () => setPopover(false),
|
|
43068
43023
|
children: actionItem
|
|
43069
43024
|
}
|
|
43070
43025
|
) }) });
|
|
43071
43026
|
};
|
|
43072
|
-
const getIcon = () =>
|
|
43027
|
+
const getIcon = () => subscriptionAction.reason ? /* @__PURE__ */ jsxs69("div", { css: disabledIconStyle, children: [
|
|
43073
43028
|
/* @__PURE__ */ jsx126(WfoTargetTypeIcon, { target, disabled: true }),
|
|
43074
43029
|
/* @__PURE__ */ jsx126("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx126(
|
|
43075
43030
|
WfoXCircleFill,
|
|
@@ -43080,8 +43035,18 @@ var WfoSubscriptionActionsMenuItem = ({
|
|
|
43080
43035
|
}
|
|
43081
43036
|
) })
|
|
43082
43037
|
] }) : /* @__PURE__ */ jsx126("div", { css: iconStyle, children: /* @__PURE__ */ jsx126(WfoTargetTypeIcon, { target }) });
|
|
43083
|
-
const ActionItem = () => /* @__PURE__ */ jsx126(
|
|
43084
|
-
|
|
43038
|
+
const ActionItem = () => /* @__PURE__ */ jsx126(
|
|
43039
|
+
EuiContextMenuItem2,
|
|
43040
|
+
{
|
|
43041
|
+
icon: getIcon(),
|
|
43042
|
+
disabled: !!subscriptionAction.reason,
|
|
43043
|
+
css: {
|
|
43044
|
+
whiteSpace: "nowrap"
|
|
43045
|
+
},
|
|
43046
|
+
children: subscriptionAction.description
|
|
43047
|
+
}
|
|
43048
|
+
);
|
|
43049
|
+
return subscriptionAction?.reason ? tooltipIt(/* @__PURE__ */ jsx126(ActionItem, {})) : linkIt(/* @__PURE__ */ jsx126(ActionItem, {}));
|
|
43085
43050
|
};
|
|
43086
43051
|
|
|
43087
43052
|
// src/icons/WfoDotsHorizontal.tsx
|
|
@@ -43131,6 +43096,7 @@ var WfoSubscriptionActions = ({
|
|
|
43131
43096
|
}) => {
|
|
43132
43097
|
const t = useTranslations31("subscriptions.detail.actions");
|
|
43133
43098
|
const [isPopoverOpen, setPopover] = useState19(false);
|
|
43099
|
+
const router = useRouter5();
|
|
43134
43100
|
const disableQuery = isLoading || !isPopoverOpen && compactMode;
|
|
43135
43101
|
const {
|
|
43136
43102
|
data: subscriptionActions,
|
|
@@ -43139,6 +43105,8 @@ var WfoSubscriptionActions = ({
|
|
|
43139
43105
|
{ subscriptionId },
|
|
43140
43106
|
{ skip: disableQuery }
|
|
43141
43107
|
);
|
|
43108
|
+
const { showToastMessage } = useShowToastMessage();
|
|
43109
|
+
const [startProcess] = useStartProcessMutation();
|
|
43142
43110
|
const { data: subscriptionDetail } = useGetSubscriptionDetailQuery(
|
|
43143
43111
|
{
|
|
43144
43112
|
subscriptionId
|
|
@@ -43173,35 +43141,86 @@ var WfoSubscriptionActions = ({
|
|
|
43173
43141
|
SUBSCRIPTION_TERMINATE,
|
|
43174
43142
|
SET_IN_SYNC
|
|
43175
43143
|
} = PolicyResource;
|
|
43144
|
+
const redirectToUrl = (actionName, isTask = false) => {
|
|
43145
|
+
const path = isTask ? PATH_START_NEW_TASK : PATH_START_NEW_WORKFLOW;
|
|
43146
|
+
const url = {
|
|
43147
|
+
pathname: `${path}/${actionName}`,
|
|
43148
|
+
query: {
|
|
43149
|
+
subscriptionId
|
|
43150
|
+
}
|
|
43151
|
+
};
|
|
43152
|
+
router.push(url);
|
|
43153
|
+
};
|
|
43154
|
+
const silentlyStartAction = (actionName, isTask = false) => {
|
|
43155
|
+
startProcess({
|
|
43156
|
+
workflowName: actionName,
|
|
43157
|
+
userInputs: [
|
|
43158
|
+
{
|
|
43159
|
+
subscription_id: subscriptionId
|
|
43160
|
+
}
|
|
43161
|
+
]
|
|
43162
|
+
}).unwrap().then((result) => {
|
|
43163
|
+
closePopover();
|
|
43164
|
+
const processUrl = `${isTask ? PATH_TASKS : PATH_WORKFLOWS}/${result.id}`;
|
|
43165
|
+
showToastMessage(
|
|
43166
|
+
"SUCCESS" /* SUCCESS */,
|
|
43167
|
+
/* @__PURE__ */ jsx128(Link9, { href: processUrl, children: processUrl }),
|
|
43168
|
+
t("actionStarted")
|
|
43169
|
+
);
|
|
43170
|
+
}).catch((error) => {
|
|
43171
|
+
showToastMessage(
|
|
43172
|
+
"ERROR" /* ERROR */,
|
|
43173
|
+
t("actionStartFailed"),
|
|
43174
|
+
t("actionStartFailed")
|
|
43175
|
+
);
|
|
43176
|
+
console.error("Failed to set subscription in sync.", error);
|
|
43177
|
+
});
|
|
43178
|
+
};
|
|
43179
|
+
const handleActionClick = (actionName, compactMode2, isTask = false) => {
|
|
43180
|
+
if (compactMode2) {
|
|
43181
|
+
silentlyStartAction(actionName, isTask);
|
|
43182
|
+
} else {
|
|
43183
|
+
redirectToUrl(actionName, isTask);
|
|
43184
|
+
}
|
|
43185
|
+
};
|
|
43176
43186
|
const compactItems = /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43177
43187
|
isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43178
43188
|
!compactMode && /* @__PURE__ */ jsx128(MenuBlock, { title: t("tasks") }),
|
|
43179
|
-
subscriptionActions.validate.map(
|
|
43180
|
-
|
|
43181
|
-
|
|
43182
|
-
|
|
43183
|
-
|
|
43184
|
-
|
|
43185
|
-
|
|
43186
|
-
|
|
43187
|
-
|
|
43188
|
-
|
|
43189
|
-
|
|
43190
|
-
|
|
43189
|
+
subscriptionActions.validate.map(
|
|
43190
|
+
(subscriptionAction, index) => /* @__PURE__ */ jsx128(
|
|
43191
|
+
WfoSubscriptionActionsMenuItem,
|
|
43192
|
+
{
|
|
43193
|
+
subscriptionAction,
|
|
43194
|
+
target: "validate" /* VALIDATE */,
|
|
43195
|
+
setPopover,
|
|
43196
|
+
onClick: () => handleActionClick(
|
|
43197
|
+
subscriptionAction.name,
|
|
43198
|
+
compactMode,
|
|
43199
|
+
true
|
|
43200
|
+
)
|
|
43201
|
+
},
|
|
43202
|
+
`s_${index}`
|
|
43203
|
+
)
|
|
43204
|
+
)
|
|
43191
43205
|
] }),
|
|
43192
43206
|
isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43193
43207
|
!compactMode && /* @__PURE__ */ jsx128(MenuBlock, { title: t("reconcile") }),
|
|
43194
|
-
subscriptionActions?.reconcile.map(
|
|
43195
|
-
|
|
43196
|
-
|
|
43197
|
-
|
|
43198
|
-
|
|
43199
|
-
|
|
43200
|
-
|
|
43201
|
-
|
|
43202
|
-
|
|
43203
|
-
|
|
43204
|
-
|
|
43208
|
+
subscriptionActions?.reconcile.map(
|
|
43209
|
+
(subscriptionAction, index) => /* @__PURE__ */ jsx128(
|
|
43210
|
+
WfoSubscriptionActionsMenuItem,
|
|
43211
|
+
{
|
|
43212
|
+
subscriptionAction,
|
|
43213
|
+
target: "reconcile" /* RECONCILE */,
|
|
43214
|
+
setPopover,
|
|
43215
|
+
onClick: () => handleActionClick(
|
|
43216
|
+
subscriptionAction.name,
|
|
43217
|
+
compactMode,
|
|
43218
|
+
false
|
|
43219
|
+
)
|
|
43220
|
+
},
|
|
43221
|
+
`r_${index}`
|
|
43222
|
+
)
|
|
43223
|
+
)
|
|
43205
43224
|
] }),
|
|
43206
43225
|
isAllowed(SET_IN_SYNC) && compactMode && subscriptionDetail && /* @__PURE__ */ jsx128("div", { children: /* @__PURE__ */ jsx128(
|
|
43207
43226
|
WfoInSyncField,
|
|
@@ -43215,32 +43234,38 @@ var WfoSubscriptionActions = ({
|
|
|
43215
43234
|
const fullItems = /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43216
43235
|
isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43217
43236
|
/* @__PURE__ */ jsx128(MenuBlock, { title: t("modify") }),
|
|
43218
|
-
subscriptionActions.modify.map(
|
|
43219
|
-
|
|
43220
|
-
|
|
43221
|
-
|
|
43222
|
-
|
|
43223
|
-
|
|
43224
|
-
|
|
43225
|
-
|
|
43226
|
-
|
|
43227
|
-
|
|
43228
|
-
|
|
43237
|
+
subscriptionActions.modify.map(
|
|
43238
|
+
(subscriptionAction, index) => /* @__PURE__ */ jsx128(
|
|
43239
|
+
WfoSubscriptionActionsMenuItem,
|
|
43240
|
+
{
|
|
43241
|
+
subscriptionAction,
|
|
43242
|
+
target: "modify" /* MODIFY */,
|
|
43243
|
+
setPopover,
|
|
43244
|
+
onClick: () => {
|
|
43245
|
+
redirectToUrl(subscriptionAction.name);
|
|
43246
|
+
}
|
|
43247
|
+
},
|
|
43248
|
+
`m_${index}`
|
|
43249
|
+
)
|
|
43250
|
+
)
|
|
43229
43251
|
] }),
|
|
43230
43252
|
compactItems,
|
|
43231
43253
|
isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */ jsxs71(Fragment24, { children: [
|
|
43232
43254
|
/* @__PURE__ */ jsx128(MenuBlock, { title: t("terminate") }),
|
|
43233
|
-
subscriptionActions.terminate.map(
|
|
43234
|
-
|
|
43235
|
-
|
|
43236
|
-
|
|
43237
|
-
|
|
43238
|
-
|
|
43239
|
-
|
|
43240
|
-
|
|
43241
|
-
|
|
43242
|
-
|
|
43243
|
-
|
|
43255
|
+
subscriptionActions.terminate.map(
|
|
43256
|
+
(subscriptionAction, index) => /* @__PURE__ */ jsx128(
|
|
43257
|
+
WfoSubscriptionActionsMenuItem,
|
|
43258
|
+
{
|
|
43259
|
+
subscriptionAction,
|
|
43260
|
+
target: "terminate" /* TERMINATE */,
|
|
43261
|
+
setPopover,
|
|
43262
|
+
onClick: () => {
|
|
43263
|
+
redirectToUrl(subscriptionAction.name);
|
|
43264
|
+
}
|
|
43265
|
+
},
|
|
43266
|
+
`t_${index}`
|
|
43267
|
+
)
|
|
43268
|
+
)
|
|
43244
43269
|
] })
|
|
43245
43270
|
] });
|
|
43246
43271
|
const MenuItemsList = () => compactMode ? compactItems : fullItems;
|
|
@@ -43338,10 +43363,10 @@ var WfoInUseByRelations = ({
|
|
|
43338
43363
|
};
|
|
43339
43364
|
|
|
43340
43365
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts
|
|
43341
|
-
import { css as
|
|
43366
|
+
import { css as css18 } from "@emotion/react";
|
|
43342
43367
|
var getStyles6 = (wfoTheme) => {
|
|
43343
43368
|
const { theme, toSecondaryColor } = wfoTheme;
|
|
43344
|
-
const iconStyle =
|
|
43369
|
+
const iconStyle = css18({
|
|
43345
43370
|
width: 45,
|
|
43346
43371
|
height: 45,
|
|
43347
43372
|
backgroundColor: toSecondaryColor(theme.colors.primary),
|
|
@@ -43350,24 +43375,24 @@ var getStyles6 = (wfoTheme) => {
|
|
|
43350
43375
|
paddingLeft: 15,
|
|
43351
43376
|
borderRadius: 7
|
|
43352
43377
|
});
|
|
43353
|
-
const iconOutsideCurrentSubscriptionStyle =
|
|
43378
|
+
const iconOutsideCurrentSubscriptionStyle = css18([
|
|
43354
43379
|
iconStyle,
|
|
43355
43380
|
{
|
|
43356
43381
|
backgroundColor: theme.colors.lightShade,
|
|
43357
43382
|
color: theme.colors.darkestShade
|
|
43358
43383
|
}
|
|
43359
43384
|
]);
|
|
43360
|
-
const panelStyle =
|
|
43385
|
+
const panelStyle = css18({
|
|
43361
43386
|
backgroundColor: toSecondaryColor(
|
|
43362
43387
|
toSecondaryColor(theme.colors.primary)
|
|
43363
43388
|
),
|
|
43364
43389
|
border: `solid 1px ${toSecondaryColor(theme.colors.primary)}`
|
|
43365
43390
|
});
|
|
43366
|
-
const panelStyleOutsideCurrentSubscription =
|
|
43391
|
+
const panelStyleOutsideCurrentSubscription = css18({
|
|
43367
43392
|
backgroundColor: toSecondaryColor(theme.colors.emptyShade),
|
|
43368
43393
|
border: `dashed 1px ${theme.colors.lightShade}`
|
|
43369
43394
|
});
|
|
43370
|
-
const rowStyle =
|
|
43395
|
+
const rowStyle = css18({
|
|
43371
43396
|
display: "flex",
|
|
43372
43397
|
flexDirection: "row",
|
|
43373
43398
|
alignItems: "flex-start",
|
|
@@ -43380,17 +43405,17 @@ var getStyles6 = (wfoTheme) => {
|
|
|
43380
43405
|
borderBottom: "none"
|
|
43381
43406
|
}
|
|
43382
43407
|
});
|
|
43383
|
-
const leftColumnStyle =
|
|
43408
|
+
const leftColumnStyle = css18({
|
|
43384
43409
|
width: 250,
|
|
43385
43410
|
flexShrink: 0,
|
|
43386
43411
|
paddingTop: `${theme.base / 4}px`
|
|
43387
43412
|
});
|
|
43388
|
-
const leftColumnStyleWithAlignSelf =
|
|
43413
|
+
const leftColumnStyleWithAlignSelf = css18({
|
|
43389
43414
|
width: 250,
|
|
43390
43415
|
flexShrink: 0,
|
|
43391
43416
|
alignSelf: "center"
|
|
43392
43417
|
});
|
|
43393
|
-
const outsideSubscriptionIdTextStyle =
|
|
43418
|
+
const outsideSubscriptionIdTextStyle = css18({
|
|
43394
43419
|
padding: `${theme.size.xs}px 0`
|
|
43395
43420
|
});
|
|
43396
43421
|
return {
|
|
@@ -43602,9 +43627,9 @@ import {
|
|
|
43602
43627
|
} from "@elastic/eui";
|
|
43603
43628
|
|
|
43604
43629
|
// src/components/WfoButtonComboBox/styles.ts
|
|
43605
|
-
import { css as
|
|
43630
|
+
import { css as css19 } from "@emotion/react";
|
|
43606
43631
|
var getWfoButtonComboBoxStyles = ({ theme }) => {
|
|
43607
|
-
const selectableStyle =
|
|
43632
|
+
const selectableStyle = css19({
|
|
43608
43633
|
".euiFieldSearch": {
|
|
43609
43634
|
backgroundColor: theme.colors.body,
|
|
43610
43635
|
color: theme.colors.text,
|
|
@@ -43616,7 +43641,7 @@ var getWfoButtonComboBoxStyles = ({ theme }) => {
|
|
|
43616
43641
|
borderColor: theme.colors.lightShade
|
|
43617
43642
|
}
|
|
43618
43643
|
});
|
|
43619
|
-
const titleStyle =
|
|
43644
|
+
const titleStyle = css19({
|
|
43620
43645
|
fontWeight: theme.font.weight.semiBold
|
|
43621
43646
|
});
|
|
43622
43647
|
return {
|
|
@@ -44284,7 +44309,9 @@ var WfoInlineEdit = ({
|
|
|
44284
44309
|
const [note, setValue] = useState23(value);
|
|
44285
44310
|
const [isTooltipVisible, setIsTooltipVisible] = useState23(true);
|
|
44286
44311
|
const handleSave = () => {
|
|
44287
|
-
onSave(
|
|
44312
|
+
onSave(
|
|
44313
|
+
note.startsWith(INVISIBLE_CHARACTER) ? note.replace(INVISIBLE_CHARACTER, "") : note
|
|
44314
|
+
);
|
|
44288
44315
|
setIsTooltipVisible(true);
|
|
44289
44316
|
};
|
|
44290
44317
|
const handleCancel = () => {
|
|
@@ -44431,7 +44458,7 @@ var WfoCustomerDescriptionsField = ({ customerDescriptions, subscriptionCustomer
|
|
|
44431
44458
|
/* @__PURE__ */ jsx141(
|
|
44432
44459
|
WfoInlineEdit,
|
|
44433
44460
|
{
|
|
44434
|
-
value: description,
|
|
44461
|
+
value: description || INVISIBLE_CHARACTER,
|
|
44435
44462
|
onSave: (value) => updateCustomerDescription({
|
|
44436
44463
|
id,
|
|
44437
44464
|
description: value,
|
|
@@ -44484,11 +44511,11 @@ import {
|
|
|
44484
44511
|
} from "@elastic/eui";
|
|
44485
44512
|
|
|
44486
44513
|
// src/components/WfoTable/WfoTableSettingsModal/styles.ts
|
|
44487
|
-
import { css as
|
|
44514
|
+
import { css as css20 } from "@emotion/react";
|
|
44488
44515
|
var getWfoTableSettingsModalStyles = (wfoTheme) => {
|
|
44489
44516
|
const { formFieldBaseStyle } = getFormFieldsBaseStyle(wfoTheme);
|
|
44490
44517
|
const { theme } = wfoTheme;
|
|
44491
|
-
const formRowStyle =
|
|
44518
|
+
const formRowStyle = css20({
|
|
44492
44519
|
justifyContent: "space-between",
|
|
44493
44520
|
".euiFormLabel": {
|
|
44494
44521
|
color: theme.colors.text
|
|
@@ -44627,10 +44654,10 @@ var clearTableConfigFromLocalStorage = (key) => {
|
|
|
44627
44654
|
|
|
44628
44655
|
// src/components/WfoTable/WfoStatusColorField/styles.ts
|
|
44629
44656
|
import { tint as tint2 } from "@elastic/eui";
|
|
44630
|
-
import { css as
|
|
44657
|
+
import { css as css21 } from "@emotion/react";
|
|
44631
44658
|
var getWfoStatusColorFieldStyles = ({ theme }) => {
|
|
44632
44659
|
const toStatusColorFieldColor = (color) => tint2(color, 0.3);
|
|
44633
|
-
const getStatusColorFieldStyle = (color) =>
|
|
44660
|
+
const getStatusColorFieldStyle = (color) => css21({
|
|
44634
44661
|
backgroundColor: toStatusColorFieldColor(color),
|
|
44635
44662
|
height: TABLE_ROW_HEIGHT,
|
|
44636
44663
|
width: theme.size.xs
|
|
@@ -44683,13 +44710,13 @@ var hasSpaces = (value) => value.indexOf(" ") !== -1;
|
|
|
44683
44710
|
var toQueryValue = (value) => hasSpaces(value) ? `"${value}"` : value;
|
|
44684
44711
|
|
|
44685
44712
|
// src/components/WfoTable/WfoSortButtons/styles.ts
|
|
44686
|
-
import { css as
|
|
44713
|
+
import { css as css22 } from "@emotion/react";
|
|
44687
44714
|
var getStyles8 = () => {
|
|
44688
|
-
const sortButtonsContainerStyle =
|
|
44715
|
+
const sortButtonsContainerStyle = css22({
|
|
44689
44716
|
display: "flex",
|
|
44690
44717
|
alignItems: "center"
|
|
44691
44718
|
});
|
|
44692
|
-
const getSortButtonStyle = (isActive) =>
|
|
44719
|
+
const getSortButtonStyle = (isActive) => css22({
|
|
44693
44720
|
display: "flex",
|
|
44694
44721
|
alignItems: "center",
|
|
44695
44722
|
cursor: isActive ? "pointer" : "not-allowed"
|
|
@@ -44755,10 +44782,10 @@ var WfoSortButtons = ({
|
|
|
44755
44782
|
import { EuiCopy as EuiCopy2 } from "@elastic/eui";
|
|
44756
44783
|
|
|
44757
44784
|
// src/components/WfoTable/WfoFirstPartUUID/styles.ts
|
|
44758
|
-
import { css as
|
|
44785
|
+
import { css as css23 } from "@emotion/react";
|
|
44759
44786
|
var COPY_ICON_CLASS = "copyIcon";
|
|
44760
44787
|
var getStyles9 = ({ theme }) => {
|
|
44761
|
-
const uuidFieldStyle =
|
|
44788
|
+
const uuidFieldStyle = css23({
|
|
44762
44789
|
fontWeight: theme.font.weight.medium,
|
|
44763
44790
|
display: "flex",
|
|
44764
44791
|
gap: theme.size.xs,
|
|
@@ -44769,7 +44796,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
44769
44796
|
visibility: "visible"
|
|
44770
44797
|
}
|
|
44771
44798
|
});
|
|
44772
|
-
const clickable =
|
|
44799
|
+
const clickable = css23({
|
|
44773
44800
|
cursor: "pointer",
|
|
44774
44801
|
visibility: "hidden"
|
|
44775
44802
|
});
|
|
@@ -45084,7 +45111,7 @@ import { useEuiScrollBar as useEuiScrollBar2 } from "@elastic/eui";
|
|
|
45084
45111
|
import { EuiToolTip as EuiToolTip8 } from "@elastic/eui";
|
|
45085
45112
|
|
|
45086
45113
|
// src/components/WfoTimeline/styles.ts
|
|
45087
|
-
import { css as
|
|
45114
|
+
import { css as css24 } from "@emotion/react";
|
|
45088
45115
|
var getTimelineStyles = ({ theme }) => {
|
|
45089
45116
|
const TIMELINE_HEIGHT = theme.base * 2.5;
|
|
45090
45117
|
const TIMELINE_OUTLINE_WIDTH = theme.base * 0.75;
|
|
@@ -45119,7 +45146,7 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45119
45146
|
return theme.colors.ghost;
|
|
45120
45147
|
}
|
|
45121
45148
|
};
|
|
45122
|
-
const timelinePanelStyle =
|
|
45149
|
+
const timelinePanelStyle = css24({
|
|
45123
45150
|
backgroundColor: theme.colors.body,
|
|
45124
45151
|
borderRadius: theme.border.radius.medium,
|
|
45125
45152
|
outline: `${timelineOutlineWidthPx} solid ${theme.colors.emptyShade}`,
|
|
@@ -45144,7 +45171,7 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45144
45171
|
flexGrow: 1
|
|
45145
45172
|
}
|
|
45146
45173
|
});
|
|
45147
|
-
const getHorizontalLineStyle = (color) =>
|
|
45174
|
+
const getHorizontalLineStyle = (color) => css24({
|
|
45148
45175
|
content: '""',
|
|
45149
45176
|
height: theme.border.width.thick,
|
|
45150
45177
|
backgroundColor: color,
|
|
@@ -45172,7 +45199,7 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45172
45199
|
return theme.colors.lightShade;
|
|
45173
45200
|
}
|
|
45174
45201
|
};
|
|
45175
|
-
return
|
|
45202
|
+
return css24([
|
|
45176
45203
|
!isFirstStep && {
|
|
45177
45204
|
"::before": {
|
|
45178
45205
|
...getHorizontalLineStyle(
|
|
@@ -45189,7 +45216,7 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45189
45216
|
}
|
|
45190
45217
|
]);
|
|
45191
45218
|
};
|
|
45192
|
-
const getStepOuterCircleStyle = (hasContent) =>
|
|
45219
|
+
const getStepOuterCircleStyle = (hasContent) => css24({
|
|
45193
45220
|
display: "flex",
|
|
45194
45221
|
justifyContent: "center",
|
|
45195
45222
|
alignItems: "center",
|
|
@@ -45200,7 +45227,7 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45200
45227
|
});
|
|
45201
45228
|
const getStepInnerCircleStyle = (stepStatus, hasContent) => {
|
|
45202
45229
|
const diameter = hasContent ? stepWithValueInnerDiameter : emptyStepInnerDiameter;
|
|
45203
|
-
return
|
|
45230
|
+
return css24({
|
|
45204
45231
|
borderRadius: "50%",
|
|
45205
45232
|
backgroundColor: getColorForStepStatus(stepStatus),
|
|
45206
45233
|
height: diameter,
|
|
@@ -45211,15 +45238,15 @@ var getTimelineStyles = ({ theme }) => {
|
|
|
45211
45238
|
color: getTextColorForStepStatusIcon(stepStatus)
|
|
45212
45239
|
});
|
|
45213
45240
|
};
|
|
45214
|
-
const stepStyle =
|
|
45241
|
+
const stepStyle = css24({
|
|
45215
45242
|
display: "flex",
|
|
45216
45243
|
flexDirection: "row",
|
|
45217
45244
|
alignItems: "center"
|
|
45218
45245
|
});
|
|
45219
|
-
const clickableStyle =
|
|
45246
|
+
const clickableStyle = css24({
|
|
45220
45247
|
cursor: "pointer"
|
|
45221
45248
|
});
|
|
45222
|
-
const notClickableStyle =
|
|
45249
|
+
const notClickableStyle = css24({
|
|
45223
45250
|
cursor: "auto"
|
|
45224
45251
|
});
|
|
45225
45252
|
return {
|
|
@@ -45381,9 +45408,9 @@ import { connectField, filterDOMProps } from "uniforms";
|
|
|
45381
45408
|
import { EuiCheckbox, EuiFlexItem as EuiFlexItem14, EuiText as EuiText14 } from "@elastic/eui";
|
|
45382
45409
|
|
|
45383
45410
|
// src/components/WfoForms/formFields/AcceptFieldStyling.ts
|
|
45384
|
-
import { css as
|
|
45411
|
+
import { css as css25 } from "@emotion/react";
|
|
45385
45412
|
var getAcceptFieldStyles = ({ theme }) => {
|
|
45386
|
-
const acceptFieldStyle =
|
|
45413
|
+
const acceptFieldStyle = css25({
|
|
45387
45414
|
".acceptField": {
|
|
45388
45415
|
"label.warning": {
|
|
45389
45416
|
color: theme.colors.danger
|
|
@@ -45556,9 +45583,9 @@ import { connectField as connectField2, filterDOMProps as filterDOMProps2 } from
|
|
|
45556
45583
|
import { EuiCheckbox as EuiCheckbox2, EuiFlexItem as EuiFlexItem15, EuiFormRow as EuiFormRow4, EuiText as EuiText15 } from "@elastic/eui";
|
|
45557
45584
|
|
|
45558
45585
|
// src/components/WfoForms/formFields/commonStyles.ts
|
|
45559
|
-
import { css as
|
|
45586
|
+
import { css as css26 } from "@emotion/react";
|
|
45560
45587
|
var getCommonFormFieldStyles = ({ theme }) => {
|
|
45561
|
-
const formRowStyle =
|
|
45588
|
+
const formRowStyle = css26({
|
|
45562
45589
|
marginBottom: theme.base * 2,
|
|
45563
45590
|
".euiText": {
|
|
45564
45591
|
color: theme.colors.text
|
|
@@ -45574,7 +45601,7 @@ var getCommonFormFieldStyles = ({ theme }) => {
|
|
|
45574
45601
|
flexDirection: "column"
|
|
45575
45602
|
}
|
|
45576
45603
|
});
|
|
45577
|
-
const errorStyle =
|
|
45604
|
+
const errorStyle = css26({
|
|
45578
45605
|
color: theme.colors.dangerText
|
|
45579
45606
|
});
|
|
45580
45607
|
return {
|
|
@@ -45584,11 +45611,11 @@ var getCommonFormFieldStyles = ({ theme }) => {
|
|
|
45584
45611
|
};
|
|
45585
45612
|
|
|
45586
45613
|
// src/components/WfoForms/formFields/BoolFieldStyling.ts
|
|
45587
|
-
import { css as
|
|
45614
|
+
import { css as css27 } from "@emotion/react";
|
|
45588
45615
|
var PRIMARY_COLOR = "#0077cc";
|
|
45589
45616
|
var LIGHT_GREY_COLOR = "#eff2f3";
|
|
45590
45617
|
var MEDIUM_GREY_COLOR = "#a6b6be";
|
|
45591
|
-
var boolFieldStyling =
|
|
45618
|
+
var boolFieldStyling = css27`
|
|
45592
45619
|
|
|
45593
45620
|
.bool-field {
|
|
45594
45621
|
.euiCheckbox .euiCheckbox__input ~ .euiCheckbox__label {
|
|
@@ -45892,8 +45919,8 @@ function ListItem({
|
|
|
45892
45919
|
var ListItemField = connectField8(ListItem, { initialValue: false });
|
|
45893
45920
|
|
|
45894
45921
|
// src/components/WfoForms/formFields/listFieldStyling.ts
|
|
45895
|
-
import { css as
|
|
45896
|
-
var listFieldStyling =
|
|
45922
|
+
import { css as css28 } from "@emotion/react";
|
|
45923
|
+
var listFieldStyling = css28`
|
|
45897
45924
|
.list-field {
|
|
45898
45925
|
ul {
|
|
45899
45926
|
display: flex;
|
|
@@ -46687,9 +46714,9 @@ var subscriptionHasTaggedProduct = (subscriptionDetail) => {
|
|
|
46687
46714
|
};
|
|
46688
46715
|
|
|
46689
46716
|
// src/components/WfoForms/formFields/deprecated/ContactPersonAutocompleteStyles.ts
|
|
46690
|
-
import { css as
|
|
46717
|
+
import { css as css29 } from "@emotion/react";
|
|
46691
46718
|
var getContactPersonStyles = ({ theme }) => {
|
|
46692
|
-
const contactPersonAutocompleteStyling =
|
|
46719
|
+
const contactPersonAutocompleteStyling = css29`
|
|
46693
46720
|
.autocomplete-container {
|
|
46694
46721
|
position: relative;
|
|
46695
46722
|
}
|
|
@@ -47017,8 +47044,8 @@ import { connectField as connectField19, filterDOMProps as filterDOMProps19 } fr
|
|
|
47017
47044
|
import { EuiFlexItem as EuiFlexItem18, EuiFormRow as EuiFormRow13, EuiText as EuiText26 } from "@elastic/eui";
|
|
47018
47045
|
|
|
47019
47046
|
// src/components/WfoForms/formFields/deprecated/ImsPortIdFieldStyling.ts
|
|
47020
|
-
import { css as
|
|
47021
|
-
var imsPortIdFieldStyling =
|
|
47047
|
+
import { css as css30 } from "@emotion/react";
|
|
47048
|
+
var imsPortIdFieldStyling = css30`
|
|
47022
47049
|
section.node-port {
|
|
47023
47050
|
display: flex;
|
|
47024
47051
|
flex-direction: row;
|
|
@@ -47385,7 +47412,7 @@ function IpNetwork({
|
|
|
47385
47412
|
var IpNetworkField = connectField20(IpNetwork, { kind: "leaf" });
|
|
47386
47413
|
|
|
47387
47414
|
// src/components/WfoForms/formFields/deprecated/IpPrefixTableFieldStyling.ts
|
|
47388
|
-
import { css as
|
|
47415
|
+
import { css as css31 } from "@emotion/react";
|
|
47389
47416
|
var DARK_GREY_COLOR = "#333333";
|
|
47390
47417
|
var LIGHTER_GREY_COLOR = "#999999";
|
|
47391
47418
|
var LIGHT_GOLD_COLOR = "#fca456";
|
|
@@ -47406,7 +47433,7 @@ function shadeColor(color, percent) {
|
|
|
47406
47433
|
const BB = B.toString(16).length === 1 ? "0" + B.toString(16) : B.toString(16);
|
|
47407
47434
|
return "#" + RR + GG + BB;
|
|
47408
47435
|
}
|
|
47409
|
-
var ipPrefixTableFieldStyling =
|
|
47436
|
+
var ipPrefixTableFieldStyling = css31`
|
|
47410
47437
|
table.ip-blocks {
|
|
47411
47438
|
word-break: break-all;
|
|
47412
47439
|
margin-bottom: 20px;
|
|
@@ -47494,8 +47521,8 @@ var ipPrefixTableFieldStyling = css30`
|
|
|
47494
47521
|
`;
|
|
47495
47522
|
|
|
47496
47523
|
// src/components/WfoForms/formFields/deprecated/SplitPrefixStyling.ts
|
|
47497
|
-
import { css as
|
|
47498
|
-
var splitPrefixStyling =
|
|
47524
|
+
import { css as css32 } from "@emotion/react";
|
|
47525
|
+
var splitPrefixStyling = css32`
|
|
47499
47526
|
section.split-prefix {
|
|
47500
47527
|
display: flex;
|
|
47501
47528
|
flex-direction: column;
|
|
@@ -47956,8 +47983,8 @@ var useGetSurfSubscriptionDropdownOptions = (tags = [], statuses = ["active"], p
|
|
|
47956
47983
|
};
|
|
47957
47984
|
|
|
47958
47985
|
// src/components/WfoForms/formFields/deprecated/SubscriptionFieldStyling.ts
|
|
47959
|
-
import { css as
|
|
47960
|
-
var subscriptionFieldStyling =
|
|
47986
|
+
import { css as css33 } from "@emotion/react";
|
|
47987
|
+
var subscriptionFieldStyling = css33`
|
|
47961
47988
|
.subscription-field {
|
|
47962
47989
|
> div {
|
|
47963
47990
|
display: flex;
|
|
@@ -48264,9 +48291,9 @@ import { connectField as connectField27, filterDOMProps as filterDOMProps27 } fr
|
|
|
48264
48291
|
import { EuiFlexItem as EuiFlexItem23, EuiFormRow as EuiFormRow20, EuiText as EuiText33 } from "@elastic/eui";
|
|
48265
48292
|
|
|
48266
48293
|
// src/components/WfoForms/formFields/SummaryFieldStyling.ts
|
|
48267
|
-
import { css as
|
|
48294
|
+
import { css as css34 } from "@emotion/react";
|
|
48268
48295
|
var summaryFieldStyles = ({ theme }) => {
|
|
48269
|
-
const summaryFieldStyle =
|
|
48296
|
+
const summaryFieldStyle = css34({
|
|
48270
48297
|
"div.emailMessage": {
|
|
48271
48298
|
td: {
|
|
48272
48299
|
color: theme.colors.textParagraph
|
|
@@ -48479,9 +48506,9 @@ function autoFieldFunction(props, uniforms) {
|
|
|
48479
48506
|
}
|
|
48480
48507
|
|
|
48481
48508
|
// src/components/WfoForms/UserInputFormStyling.ts
|
|
48482
|
-
import { css as
|
|
48509
|
+
import { css as css35 } from "@emotion/react";
|
|
48483
48510
|
var PRIMARY_COLOR2 = "#0077cc";
|
|
48484
|
-
var userInputFormStyling =
|
|
48511
|
+
var userInputFormStyling = css35`
|
|
48485
48512
|
.user-input-form {
|
|
48486
48513
|
h3 {
|
|
48487
48514
|
padding: 20px 0;
|
|
@@ -49260,7 +49287,7 @@ var WfoMetadataDescriptionField = ({ onSave, description }) => {
|
|
|
49260
49287
|
return /* @__PURE__ */ jsx198("div", { children: /* @__PURE__ */ jsx198(
|
|
49261
49288
|
WfoInlineEdit,
|
|
49262
49289
|
{
|
|
49263
|
-
value: description,
|
|
49290
|
+
value: description || INVISIBLE_CHARACTER,
|
|
49264
49291
|
onlyShowOnHover: true,
|
|
49265
49292
|
onSave
|
|
49266
49293
|
}
|
|
@@ -50899,7 +50926,7 @@ var WfoProcessDetailPage = ({
|
|
|
50899
50926
|
};
|
|
50900
50927
|
|
|
50901
50928
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
50902
|
-
import { useCallback as
|
|
50929
|
+
import { useCallback as useCallback12, useEffect as useEffect36, useMemo as useMemo7, useState as useState51 } from "react";
|
|
50903
50930
|
import { useTranslations as useTranslations71 } from "next-intl";
|
|
50904
50931
|
import { useRouter as useRouter10 } from "next/router";
|
|
50905
50932
|
import {
|
|
@@ -50911,7 +50938,7 @@ import {
|
|
|
50911
50938
|
} from "@elastic/eui";
|
|
50912
50939
|
|
|
50913
50940
|
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
50914
|
-
import { useCallback as
|
|
50941
|
+
import { useCallback as useCallback7, useMemo as useMemo4 } from "react";
|
|
50915
50942
|
import _4 from "lodash";
|
|
50916
50943
|
import { useMessages, useTranslations as useTranslations63 } from "next-intl";
|
|
50917
50944
|
import { useRouter as useRouter9 } from "next/router";
|
|
@@ -51037,9 +51064,9 @@ var Footer = ({
|
|
|
51037
51064
|
};
|
|
51038
51065
|
|
|
51039
51066
|
// src/components/WfoPydanticForm/Header.tsx
|
|
51040
|
-
import { css as
|
|
51067
|
+
import { css as css36 } from "@emotion/react";
|
|
51041
51068
|
import { jsx as jsx210 } from "@emotion/react/jsx-runtime";
|
|
51042
|
-
var headerStyling =
|
|
51069
|
+
var headerStyling = css36`
|
|
51043
51070
|
padding: 20px 0;
|
|
51044
51071
|
font-size: larger;
|
|
51045
51072
|
font-weight: bold;
|
|
@@ -51246,9 +51273,9 @@ import {
|
|
|
51246
51273
|
import { EuiFlexGroup as EuiFlexGroup22 } from "@elastic/eui";
|
|
51247
51274
|
|
|
51248
51275
|
// src/components/WfoPydanticForm/fields/WfoObjectField/styles.ts
|
|
51249
|
-
import { css as
|
|
51276
|
+
import { css as css37 } from "@emotion/react";
|
|
51250
51277
|
var getWfoObjectFieldStyles = () => {
|
|
51251
|
-
const wfoObjectFieldStyles =
|
|
51278
|
+
const wfoObjectFieldStyles = css37({
|
|
51252
51279
|
width: "100%",
|
|
51253
51280
|
"& > div": {
|
|
51254
51281
|
width: "100%"
|
|
@@ -51294,6 +51321,9 @@ var WfoObjectField = ({
|
|
|
51294
51321
|
);
|
|
51295
51322
|
};
|
|
51296
51323
|
|
|
51324
|
+
// src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx
|
|
51325
|
+
import { useCallback as useCallback6, useEffect as useEffect31 } from "react";
|
|
51326
|
+
|
|
51297
51327
|
// ../../node_modules/react-hook-form/dist/index.esm.mjs
|
|
51298
51328
|
import * as React67 from "react";
|
|
51299
51329
|
import React__default from "react";
|
|
@@ -51909,26 +51939,26 @@ import {
|
|
|
51909
51939
|
import { EuiIcon as EuiIcon5 } from "@elastic/eui";
|
|
51910
51940
|
|
|
51911
51941
|
// src/components/WfoPydanticForm/fields/WfoArrayField/styles.ts
|
|
51912
|
-
import { css as
|
|
51942
|
+
import { css as css38 } from "@emotion/react";
|
|
51913
51943
|
var getWfoArrayFieldStyles = () => {
|
|
51914
|
-
const container =
|
|
51944
|
+
const container = css38({
|
|
51915
51945
|
border: "thin solid #eee",
|
|
51916
51946
|
padding: "1rem",
|
|
51917
51947
|
display: "flex",
|
|
51918
51948
|
flexDirection: "column",
|
|
51919
51949
|
flexGrow: 1
|
|
51920
51950
|
});
|
|
51921
|
-
const fieldWrapper =
|
|
51951
|
+
const fieldWrapper = css38({
|
|
51922
51952
|
display: "flex",
|
|
51923
51953
|
gap: "10px",
|
|
51924
51954
|
alignItems: "center"
|
|
51925
51955
|
});
|
|
51926
|
-
const minusButton =
|
|
51956
|
+
const minusButton = css38({
|
|
51927
51957
|
width: "40px",
|
|
51928
51958
|
cursor: "pointer",
|
|
51929
51959
|
marginBottom: "12px"
|
|
51930
51960
|
});
|
|
51931
|
-
const plusButtonWrapper =
|
|
51961
|
+
const plusButtonWrapper = css38({
|
|
51932
51962
|
display: "flex",
|
|
51933
51963
|
cursor: "pointer",
|
|
51934
51964
|
justifyContent: "end"
|
|
@@ -51991,6 +52021,17 @@ var WfoArrayField = ({
|
|
|
51991
52021
|
control,
|
|
51992
52022
|
name: arrayName
|
|
51993
52023
|
});
|
|
52024
|
+
const appendDefault = useCallback6(() => {
|
|
52025
|
+
append({
|
|
52026
|
+
[arrayName]: arrayItem?.default ?? void 0
|
|
52027
|
+
});
|
|
52028
|
+
}, [append, arrayItem?.default, arrayName]);
|
|
52029
|
+
useEffect31(() => {
|
|
52030
|
+
if (arrayName && arrayItem && minItems && fields) {
|
|
52031
|
+
const missingCount = Math.max(0, minItems - fields.length);
|
|
52032
|
+
Array.from({ length: missingCount }).forEach(() => appendDefault());
|
|
52033
|
+
}
|
|
52034
|
+
}, [minItems, append, remove, arrayItem, arrayName, fields, appendDefault]);
|
|
51994
52035
|
const showMinus = (!minItems || fields.length > minItems) && !disabled;
|
|
51995
52036
|
const showPlus = (!maxItems || fields.length < maxItems) && !disabled;
|
|
51996
52037
|
if (!arrayItem) return null;
|
|
@@ -52029,11 +52070,7 @@ var WfoArrayField = ({
|
|
|
52029
52070
|
showPlus && /* @__PURE__ */ jsx219(
|
|
52030
52071
|
PlusButton,
|
|
52031
52072
|
{
|
|
52032
|
-
onClick:
|
|
52033
|
-
append({
|
|
52034
|
-
[arrayName]: arrayItem.default ?? void 0
|
|
52035
|
-
});
|
|
52036
|
-
},
|
|
52073
|
+
onClick: appendDefault,
|
|
52037
52074
|
testId: `${arrayName}-plus-button`
|
|
52038
52075
|
}
|
|
52039
52076
|
)
|
|
@@ -52070,10 +52107,10 @@ var WfoRadio = ({
|
|
|
52070
52107
|
import _3 from "lodash";
|
|
52071
52108
|
import { getFormFieldIdWithPath as getFormFieldIdWithPath2 } from "pydantic-forms";
|
|
52072
52109
|
import { EuiFieldNumber as EuiFieldNumber2 } from "@elastic/eui";
|
|
52073
|
-
import { css as
|
|
52110
|
+
import { css as css39 } from "@emotion/react";
|
|
52074
52111
|
import { jsx as jsx221 } from "@emotion/react/jsx-runtime";
|
|
52075
52112
|
var getFormFieldsBaseStyle2 = ({ theme }) => {
|
|
52076
|
-
const formFieldBaseStyle =
|
|
52113
|
+
const formFieldBaseStyle = css39({
|
|
52077
52114
|
backgroundColor: theme.colors.body,
|
|
52078
52115
|
color: theme.colors.text,
|
|
52079
52116
|
"&:focus": {
|
|
@@ -52109,12 +52146,12 @@ var WfoInteger = ({
|
|
|
52109
52146
|
};
|
|
52110
52147
|
|
|
52111
52148
|
// src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
|
|
52112
|
-
import { useEffect as
|
|
52149
|
+
import { useEffect as useEffect32, useState as useState44 } from "react";
|
|
52113
52150
|
import ReactSelect5, { components } from "react-select";
|
|
52114
52151
|
import { EuiButtonIcon as EuiButtonIcon12 } from "@elastic/eui";
|
|
52115
52152
|
|
|
52116
52153
|
// src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts
|
|
52117
|
-
import { css as
|
|
52154
|
+
import { css as css40 } from "@emotion/react";
|
|
52118
52155
|
var getWfoReactSelectStyles = (wfoTheme) => {
|
|
52119
52156
|
const { theme } = wfoTheme;
|
|
52120
52157
|
const reactSelectInnerComponentStyles = {
|
|
@@ -52130,7 +52167,11 @@ var getWfoReactSelectStyles = (wfoTheme) => {
|
|
|
52130
52167
|
...baseStyles,
|
|
52131
52168
|
backgroundColor: state.isFocused ? theme.colors.emptyShade : theme.colors.lightestShade,
|
|
52132
52169
|
color: theme.colors.text,
|
|
52133
|
-
border: `1px solid ${theme.colors.lightShade}
|
|
52170
|
+
border: `1px solid ${theme.colors.lightShade}`,
|
|
52171
|
+
borderColor: "none",
|
|
52172
|
+
"&:hover": {
|
|
52173
|
+
borderColor: "none"
|
|
52174
|
+
}
|
|
52134
52175
|
};
|
|
52135
52176
|
},
|
|
52136
52177
|
input: (baseStyles) => ({
|
|
@@ -52138,7 +52179,7 @@ var getWfoReactSelectStyles = (wfoTheme) => {
|
|
|
52138
52179
|
color: theme.colors.text
|
|
52139
52180
|
}),
|
|
52140
52181
|
singleValue: (baseStyles, state) => {
|
|
52141
|
-
const opacity = state.isDisabled ? 0.
|
|
52182
|
+
const opacity = state.isDisabled ? 0.6 : 1;
|
|
52142
52183
|
const transition = "opacity 300ms";
|
|
52143
52184
|
return {
|
|
52144
52185
|
...baseStyles,
|
|
@@ -52152,15 +52193,15 @@ var getWfoReactSelectStyles = (wfoTheme) => {
|
|
|
52152
52193
|
backgroundColor: theme.colors.lightestShade
|
|
52153
52194
|
})
|
|
52154
52195
|
};
|
|
52155
|
-
const containerStyle =
|
|
52196
|
+
const containerStyle = css40({
|
|
52156
52197
|
display: "flex",
|
|
52157
52198
|
flexDirection: "row",
|
|
52158
52199
|
alignItems: "center"
|
|
52159
52200
|
});
|
|
52160
|
-
const reactSelectStyle =
|
|
52201
|
+
const reactSelectStyle = css40({
|
|
52161
52202
|
width: "100%"
|
|
52162
52203
|
});
|
|
52163
|
-
const refreshButtonStyle =
|
|
52204
|
+
const refreshButtonStyle = css40({
|
|
52164
52205
|
marginRight: theme.base / 2,
|
|
52165
52206
|
cursor: "pointer"
|
|
52166
52207
|
});
|
|
@@ -52189,7 +52230,7 @@ var WfoReactSelect = ({
|
|
|
52189
52230
|
(option) => option.value === value
|
|
52190
52231
|
);
|
|
52191
52232
|
const [selectedValue, setSelectedValue] = useState44(initialValue || null);
|
|
52192
|
-
|
|
52233
|
+
useEffect32(() => {
|
|
52193
52234
|
const preSelectedValue = options.find(
|
|
52194
52235
|
(option) => option.value === value
|
|
52195
52236
|
);
|
|
@@ -52283,7 +52324,7 @@ var WfoDropdown = ({
|
|
|
52283
52324
|
};
|
|
52284
52325
|
|
|
52285
52326
|
// src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
|
|
52286
|
-
import { useEffect as
|
|
52327
|
+
import { useEffect as useEffect33, useState as useState45 } from "react";
|
|
52287
52328
|
import { EuiCheckboxGroup } from "@elastic/eui";
|
|
52288
52329
|
import { jsx as jsx224 } from "@emotion/react/jsx-runtime";
|
|
52289
52330
|
var WfoMultiCheckboxField = ({
|
|
@@ -52291,7 +52332,7 @@ var WfoMultiCheckboxField = ({
|
|
|
52291
52332
|
onChange,
|
|
52292
52333
|
value
|
|
52293
52334
|
}) => {
|
|
52294
|
-
|
|
52335
|
+
useEffect33(() => {
|
|
52295
52336
|
const getInitialMap = () => {
|
|
52296
52337
|
const initialIdMap = (value || []).reduce(
|
|
52297
52338
|
(idMap, id2) => {
|
|
@@ -52361,7 +52402,7 @@ var useWfoPydanticFormConfig = () => {
|
|
|
52361
52402
|
const translationMessages = useMessages();
|
|
52362
52403
|
const formTranslations = translationMessages?.pydanticForms && typeof translationMessages?.pydanticForms !== "string" ? translationMessages.pydanticForms.backendTranslations : {};
|
|
52363
52404
|
const orchestratorTranslations = formTranslations;
|
|
52364
|
-
const pydanticLabelProvider =
|
|
52405
|
+
const pydanticLabelProvider = useCallback7(async () => {
|
|
52365
52406
|
return {
|
|
52366
52407
|
labels: {
|
|
52367
52408
|
...orchestratorTranslations
|
|
@@ -52380,7 +52421,7 @@ var useWfoPydanticFormConfig = () => {
|
|
|
52380
52421
|
...translationMessages
|
|
52381
52422
|
};
|
|
52382
52423
|
}, [t, translationMessages]);
|
|
52383
|
-
const wfoComponentMatcherExtender =
|
|
52424
|
+
const wfoComponentMatcherExtender = useCallback7(
|
|
52384
52425
|
(currentMatchers) => {
|
|
52385
52426
|
const wfoMatchers = [
|
|
52386
52427
|
{
|
|
@@ -52516,7 +52557,7 @@ var WfoPydanticForm = ({
|
|
|
52516
52557
|
pydanticLabelProvider,
|
|
52517
52558
|
customTranslations
|
|
52518
52559
|
} = useWfoPydanticFormConfig();
|
|
52519
|
-
const onSuccess =
|
|
52560
|
+
const onSuccess = useCallback7(
|
|
52520
52561
|
(_fieldValues, req) => {
|
|
52521
52562
|
const request = req;
|
|
52522
52563
|
if (request?.data?.id) {
|
|
@@ -52526,7 +52567,7 @@ var WfoPydanticForm = ({
|
|
|
52526
52567
|
},
|
|
52527
52568
|
[isTask, router]
|
|
52528
52569
|
);
|
|
52529
|
-
const getPydanticFormProvider =
|
|
52570
|
+
const getPydanticFormProvider = useCallback7(() => {
|
|
52530
52571
|
const pydanticFormProvider = async ({
|
|
52531
52572
|
requestBody = [],
|
|
52532
52573
|
formKey
|
|
@@ -52568,7 +52609,7 @@ var WfoPydanticForm = ({
|
|
|
52568
52609
|
};
|
|
52569
52610
|
return pydanticFormProvider;
|
|
52570
52611
|
}, [isTask, startProcess, startProcessPayload]);
|
|
52571
|
-
const handleCancel =
|
|
52612
|
+
const handleCancel = useCallback7(() => {
|
|
52572
52613
|
const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
52573
52614
|
router.replace(pfBasePath);
|
|
52574
52615
|
}, [isTask, router]);
|
|
@@ -52609,7 +52650,7 @@ var WfoPydanticForm = ({
|
|
|
52609
52650
|
};
|
|
52610
52651
|
|
|
52611
52652
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
52612
|
-
import
|
|
52653
|
+
import React75, { useCallback as useCallback10, useState as useState47 } from "react";
|
|
52613
52654
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
52614
52655
|
import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem28, EuiPanel as EuiPanel4, EuiText as EuiText37 } from "@elastic/eui";
|
|
52615
52656
|
|
|
@@ -52662,36 +52703,36 @@ var WfoStepFormOld = ({
|
|
|
52662
52703
|
import { EuiFlexItem as EuiFlexItem26 } from "@elastic/eui";
|
|
52663
52704
|
|
|
52664
52705
|
// src/components/WfoWorkflowSteps/styles.ts
|
|
52665
|
-
import { css as
|
|
52706
|
+
import { css as css41 } from "@emotion/react";
|
|
52666
52707
|
var getWorkflowStepsStyles = ({
|
|
52667
52708
|
theme,
|
|
52668
52709
|
toSecondaryColor
|
|
52669
52710
|
}) => {
|
|
52670
52711
|
const SPACE_BETWEEN_STEPS = theme.base * 1.5;
|
|
52671
|
-
const stepSpacerStyle =
|
|
52712
|
+
const stepSpacerStyle = css41({
|
|
52672
52713
|
borderLeft: `1px solid ${theme.colors.darkShade}`,
|
|
52673
52714
|
height: `${SPACE_BETWEEN_STEPS}px`,
|
|
52674
52715
|
marginLeft: "36px"
|
|
52675
52716
|
});
|
|
52676
|
-
const stepRowStyle =
|
|
52717
|
+
const stepRowStyle = css41({
|
|
52677
52718
|
flexGrow: 1,
|
|
52678
52719
|
alignItems: "center",
|
|
52679
52720
|
justifyContent: "flex-end"
|
|
52680
52721
|
});
|
|
52681
|
-
const stepListHeaderStyle =
|
|
52722
|
+
const stepListHeaderStyle = css41({
|
|
52682
52723
|
marginBottom: "24px",
|
|
52683
52724
|
marginTop: "60px",
|
|
52684
52725
|
alignItems: "flex-end"
|
|
52685
52726
|
});
|
|
52686
|
-
const stepListContentStyle =
|
|
52727
|
+
const stepListContentStyle = css41({
|
|
52687
52728
|
flexDirection: "row",
|
|
52688
52729
|
alignItems: "center"
|
|
52689
52730
|
});
|
|
52690
|
-
const stepListContentBoldTextStyle =
|
|
52731
|
+
const stepListContentBoldTextStyle = css41({
|
|
52691
52732
|
fontSize: theme.size.base,
|
|
52692
52733
|
fontWeight: theme.font.weight.bold
|
|
52693
52734
|
});
|
|
52694
|
-
const stepListContentAnchorStyle =
|
|
52735
|
+
const stepListContentAnchorStyle = css41({
|
|
52695
52736
|
marginTop: 2,
|
|
52696
52737
|
marginLeft: 0,
|
|
52697
52738
|
fontSize: theme.size.m,
|
|
@@ -52699,7 +52740,7 @@ var getWorkflowStepsStyles = ({
|
|
|
52699
52740
|
color: theme.colors.link,
|
|
52700
52741
|
cursor: "pointer"
|
|
52701
52742
|
});
|
|
52702
|
-
const stepListOptionsContainerStyle =
|
|
52743
|
+
const stepListOptionsContainerStyle = css41({
|
|
52703
52744
|
flexGrow: 0
|
|
52704
52745
|
});
|
|
52705
52746
|
const stepStateIcon = {
|
|
@@ -52715,36 +52756,36 @@ var getWorkflowStepsStyles = ({
|
|
|
52715
52756
|
color: theme.colors.disabled,
|
|
52716
52757
|
fontWeight: theme.font.weight.semiBold
|
|
52717
52758
|
};
|
|
52718
|
-
const stepStateSuccessIconStyle =
|
|
52759
|
+
const stepStateSuccessIconStyle = css41({
|
|
52719
52760
|
...stepStateIcon,
|
|
52720
52761
|
backgroundColor: toSecondaryColor(theme.colors.primary)
|
|
52721
52762
|
});
|
|
52722
|
-
const stepStateSuspendIconStyle =
|
|
52763
|
+
const stepStateSuspendIconStyle = css41({
|
|
52723
52764
|
...stepStateIcon,
|
|
52724
52765
|
backgroundColor: toSecondaryColor(theme.colors.warning)
|
|
52725
52766
|
});
|
|
52726
|
-
const stepStatePendingIconStyle =
|
|
52767
|
+
const stepStatePendingIconStyle = css41({
|
|
52727
52768
|
...stepStateIcon,
|
|
52728
52769
|
backgroundColor: toSecondaryColor(theme.colors.darkShade)
|
|
52729
52770
|
});
|
|
52730
|
-
const stepStateFailedIconStyle =
|
|
52771
|
+
const stepStateFailedIconStyle = css41({
|
|
52731
52772
|
...stepStateIcon,
|
|
52732
52773
|
backgroundColor: toSecondaryColor(theme.colors.danger)
|
|
52733
52774
|
});
|
|
52734
|
-
const stepHeaderRightStyle =
|
|
52775
|
+
const stepHeaderRightStyle = css41({
|
|
52735
52776
|
alignItems: "center"
|
|
52736
52777
|
});
|
|
52737
|
-
const stepEmailContainerStyle =
|
|
52778
|
+
const stepEmailContainerStyle = css41({
|
|
52738
52779
|
paddingLeft: 24,
|
|
52739
52780
|
width: 600,
|
|
52740
52781
|
marginTop: 0
|
|
52741
52782
|
});
|
|
52742
|
-
const getStepHeaderStyle = (isClickable) =>
|
|
52783
|
+
const getStepHeaderStyle = (isClickable) => css41({
|
|
52743
52784
|
gap: 0,
|
|
52744
52785
|
alignItems: "center",
|
|
52745
52786
|
cursor: isClickable ? "pointer" : "default"
|
|
52746
52787
|
});
|
|
52747
|
-
const getStepToggleExpandStyle = (isVisible) =>
|
|
52788
|
+
const getStepToggleExpandStyle = (isVisible) => css41({
|
|
52748
52789
|
marginRight: theme.base / 2,
|
|
52749
52790
|
visibility: isVisible ? "visible" : "hidden"
|
|
52750
52791
|
});
|
|
@@ -52890,7 +52931,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
52890
52931
|
};
|
|
52891
52932
|
|
|
52892
52933
|
// src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx
|
|
52893
|
-
import { useCallback as
|
|
52934
|
+
import { useCallback as useCallback8 } from "react";
|
|
52894
52935
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
52895
52936
|
import { EuiButtonGroup as EuiButtonGroup2 } from "@elastic/eui";
|
|
52896
52937
|
import { jsx as jsx228 } from "@emotion/react/jsx-runtime";
|
|
@@ -52948,7 +52989,7 @@ var WfoCodeViewSelector = ({
|
|
|
52948
52989
|
}
|
|
52949
52990
|
}
|
|
52950
52991
|
];
|
|
52951
|
-
const handle =
|
|
52992
|
+
const handle = useCallback8(
|
|
52952
52993
|
(id) => handleCodeViewChange(id),
|
|
52953
52994
|
[handleCodeViewChange]
|
|
52954
52995
|
);
|
|
@@ -52973,7 +53014,7 @@ var WfoCodeViewSelector = ({
|
|
|
52973
53014
|
};
|
|
52974
53015
|
|
|
52975
53016
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
52976
|
-
import { useCallback as
|
|
53017
|
+
import { useCallback as useCallback9, useMemo as useMemo5 } from "react";
|
|
52977
53018
|
import { PydanticForm as PydanticForm3 } from "pydantic-forms";
|
|
52978
53019
|
import { EuiFlexItem as EuiFlexItem27 } from "@elastic/eui";
|
|
52979
53020
|
|
|
@@ -53035,7 +53076,7 @@ var WfoStepForm = ({
|
|
|
53035
53076
|
} = useWfoPydanticFormConfig();
|
|
53036
53077
|
const [resumeProcess] = useResumeProcessMutation();
|
|
53037
53078
|
const getInitialStepInput = useMemo5(() => userInputForm, [userInputForm]);
|
|
53038
|
-
const getStepFormProvider =
|
|
53079
|
+
const getStepFormProvider = useCallback9(
|
|
53039
53080
|
() => async ({ requestBody = [] }) => {
|
|
53040
53081
|
if (requestBody.length === 0) {
|
|
53041
53082
|
return {
|
|
@@ -53084,7 +53125,7 @@ var WfoStepForm = ({
|
|
|
53084
53125
|
|
|
53085
53126
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
53086
53127
|
import { Fragment as Fragment51, jsx as jsx231, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
|
|
53087
|
-
var WfoStep =
|
|
53128
|
+
var WfoStep = React75.forwardRef(
|
|
53088
53129
|
({
|
|
53089
53130
|
stepListItem,
|
|
53090
53131
|
onToggleStepDetail,
|
|
@@ -53152,7 +53193,7 @@ var WfoStep = React74.forwardRef(
|
|
|
53152
53193
|
)
|
|
53153
53194
|
] });
|
|
53154
53195
|
};
|
|
53155
|
-
const handle =
|
|
53196
|
+
const handle = useCallback10(
|
|
53156
53197
|
(newCodeView) => {
|
|
53157
53198
|
setCodeView(newCodeView);
|
|
53158
53199
|
},
|
|
@@ -53253,9 +53294,9 @@ var WfoStep = React74.forwardRef(
|
|
|
53253
53294
|
WfoStep.displayName = "WfoStep";
|
|
53254
53295
|
|
|
53255
53296
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
53256
|
-
import
|
|
53297
|
+
import React76, { useImperativeHandle as useImperativeHandle2, useRef as useRef13 } from "react";
|
|
53257
53298
|
import { Fragment as Fragment52, jsx as jsx232, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
|
|
53258
|
-
var WfoStepList =
|
|
53299
|
+
var WfoStepList = React76.forwardRef(
|
|
53259
53300
|
({
|
|
53260
53301
|
stepListItems,
|
|
53261
53302
|
showHiddenKeys,
|
|
@@ -53335,12 +53376,12 @@ var WfoStepList = React75.forwardRef(
|
|
|
53335
53376
|
WfoStepList.displayName = "WfoStepList";
|
|
53336
53377
|
|
|
53337
53378
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53338
|
-
import
|
|
53379
|
+
import React78, { useEffect as useEffect35, useState as useState49 } from "react";
|
|
53339
53380
|
import { useTranslations as useTranslations69 } from "next-intl";
|
|
53340
53381
|
|
|
53341
53382
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
53342
53383
|
var refractor = __toESM(require_refractor(), 1);
|
|
53343
|
-
import { useCallback as
|
|
53384
|
+
import { useCallback as useCallback11, useEffect as useEffect34, useMemo as useMemo6, useState as useState48 } from "react";
|
|
53344
53385
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
53345
53386
|
import "react-diff-view/style/index.css";
|
|
53346
53387
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
@@ -53356,7 +53397,7 @@ import {
|
|
|
53356
53397
|
|
|
53357
53398
|
// src/components/WfoDiff/styles.ts
|
|
53358
53399
|
import { shade as shade2, tint as tint3 } from "@elastic/eui";
|
|
53359
|
-
import { css as
|
|
53400
|
+
import { css as css42 } from "@emotion/react";
|
|
53360
53401
|
var getWfoDiffStyles = ({
|
|
53361
53402
|
theme,
|
|
53362
53403
|
toSecondaryColor,
|
|
@@ -53368,7 +53409,7 @@ var getWfoDiffStyles = ({
|
|
|
53368
53409
|
const insertCodeColor = isDarkThemeActive ? shade2(insertGutterColor, SHADE_FACTOR) : tint3(insertGutterColor, TINT_FACTOR);
|
|
53369
53410
|
const deleteColor = toSecondaryColor(theme.colors.danger);
|
|
53370
53411
|
const deleteSecondaryColor = isDarkThemeActive ? shade2(deleteColor, SHADE_FACTOR) : tint3(deleteColor, TINT_FACTOR);
|
|
53371
|
-
const diffStyle =
|
|
53412
|
+
const diffStyle = css42({
|
|
53372
53413
|
".diff-code-insert": {
|
|
53373
53414
|
backgroundColor: insertCodeColor
|
|
53374
53415
|
},
|
|
@@ -53404,7 +53445,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53404
53445
|
type: "modify",
|
|
53405
53446
|
hunks: []
|
|
53406
53447
|
});
|
|
53407
|
-
const updateDiffText =
|
|
53448
|
+
const updateDiffText = useCallback11(() => {
|
|
53408
53449
|
const diffText = formatLines(diffLines(oldText, newText), {
|
|
53409
53450
|
context: showFull ? FULL_CONTEXT : SMALL_CONTEXT
|
|
53410
53451
|
});
|
|
@@ -53426,7 +53467,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53426
53467
|
return void 0;
|
|
53427
53468
|
}
|
|
53428
53469
|
}, [hunks, syntax]);
|
|
53429
|
-
|
|
53470
|
+
useEffect34(() => {
|
|
53430
53471
|
updateDiffText();
|
|
53431
53472
|
}, [updateDiffText, showFull]);
|
|
53432
53473
|
return /* @__PURE__ */ jsxs120("div", { children: [
|
|
@@ -53476,9 +53517,9 @@ import { useTranslations as useTranslations68 } from "next-intl";
|
|
|
53476
53517
|
import { EuiCodeBlock, EuiText as EuiText39 } from "@elastic/eui";
|
|
53477
53518
|
|
|
53478
53519
|
// src/components/WfoWorkflowSteps/WfoTraceback/styles.ts
|
|
53479
|
-
import { css as
|
|
53520
|
+
import { css as css43 } from "@emotion/react";
|
|
53480
53521
|
var getStyles10 = ({ theme }) => {
|
|
53481
|
-
const codeBlockStyle =
|
|
53522
|
+
const codeBlockStyle = css43({
|
|
53482
53523
|
marginTop: theme.size.m,
|
|
53483
53524
|
marginBottom: theme.size.l,
|
|
53484
53525
|
borderRadius: theme.border.radius.medium
|
|
@@ -53523,7 +53564,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53523
53564
|
}
|
|
53524
53565
|
);
|
|
53525
53566
|
};
|
|
53526
|
-
var WfoWorkflowStepList =
|
|
53567
|
+
var WfoWorkflowStepList = React78.forwardRef(
|
|
53527
53568
|
({
|
|
53528
53569
|
steps = [],
|
|
53529
53570
|
lastStatus,
|
|
@@ -53559,7 +53600,7 @@ var WfoWorkflowStepList = React77.forwardRef(
|
|
|
53559
53600
|
};
|
|
53560
53601
|
});
|
|
53561
53602
|
};
|
|
53562
|
-
|
|
53603
|
+
useEffect35(() => {
|
|
53563
53604
|
setStepListItems(
|
|
53564
53605
|
(previousStepListItems) => persistStepListItemState(
|
|
53565
53606
|
previousStepListItems,
|
|
@@ -53654,9 +53695,9 @@ import {
|
|
|
53654
53695
|
import { EuiText as EuiText40 } from "@elastic/eui";
|
|
53655
53696
|
|
|
53656
53697
|
// src/components/WfoTextAnchor/styles.ts
|
|
53657
|
-
import { css as
|
|
53698
|
+
import { css as css44 } from "@emotion/react";
|
|
53658
53699
|
var getStyles11 = ({ theme }) => {
|
|
53659
|
-
const textAnchorStyle =
|
|
53700
|
+
const textAnchorStyle = css44({
|
|
53660
53701
|
marginTop: theme.size.xxs,
|
|
53661
53702
|
marginLeft: 0,
|
|
53662
53703
|
fontSize: theme.size.m,
|
|
@@ -53862,7 +53903,7 @@ var WfoStartProcessPage = ({
|
|
|
53862
53903
|
setHasError(true);
|
|
53863
53904
|
}
|
|
53864
53905
|
}
|
|
53865
|
-
const submit =
|
|
53906
|
+
const submit = useCallback12(
|
|
53866
53907
|
(processInput) => {
|
|
53867
53908
|
const startProcessPromise = startProcess({
|
|
53868
53909
|
workflowName: processName,
|
|
@@ -53900,7 +53941,7 @@ var WfoStartProcessPage = ({
|
|
|
53900
53941
|
},
|
|
53901
53942
|
[startProcess, processName, startProcessPayload, isTask, router]
|
|
53902
53943
|
);
|
|
53903
|
-
|
|
53944
|
+
useEffect36(() => {
|
|
53904
53945
|
if (processName && !usePydanticForms) {
|
|
53905
53946
|
const clientResultCallback = (json) => {
|
|
53906
53947
|
setForm({
|
|
@@ -54017,7 +54058,7 @@ import {
|
|
|
54017
54058
|
EuiTabs as EuiTabs3,
|
|
54018
54059
|
EuiText as EuiText45
|
|
54019
54060
|
} from "@elastic/eui";
|
|
54020
|
-
import { css as
|
|
54061
|
+
import { css as css45 } from "@emotion/react";
|
|
54021
54062
|
|
|
54022
54063
|
// src/components/WfoSettings/WfoAoStackStatus.tsx
|
|
54023
54064
|
import { useTranslations as useTranslations73 } from "next-intl";
|
|
@@ -54098,7 +54139,7 @@ var WfoEnvSettings = () => {
|
|
|
54098
54139
|
{
|
|
54099
54140
|
fontSize: "m",
|
|
54100
54141
|
paddingSize: "m",
|
|
54101
|
-
css:
|
|
54142
|
+
css: css45({
|
|
54102
54143
|
background: theme.colors.lightShade
|
|
54103
54144
|
}),
|
|
54104
54145
|
children: showVariables
|
|
@@ -54243,7 +54284,7 @@ var WfoSubscriptionDetailPage = () => {
|
|
|
54243
54284
|
};
|
|
54244
54285
|
|
|
54245
54286
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
54246
|
-
import { useEffect as
|
|
54287
|
+
import { useEffect as useEffect37, useState as useState52 } from "react";
|
|
54247
54288
|
import { useTranslations as useTranslations76 } from "next-intl";
|
|
54248
54289
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
54249
54290
|
import { EuiSpacer as EuiSpacer23 } from "@elastic/eui";
|
|
@@ -54254,7 +54295,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
54254
54295
|
const getStoredTableConfig = useStoredTableConfig(
|
|
54255
54296
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
54256
54297
|
);
|
|
54257
|
-
|
|
54298
|
+
useEffect37(() => {
|
|
54258
54299
|
const storedConfig = getStoredTableConfig();
|
|
54259
54300
|
if (storedConfig) {
|
|
54260
54301
|
setTableDefaults(storedConfig);
|
|
@@ -54315,7 +54356,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
54315
54356
|
};
|
|
54316
54357
|
|
|
54317
54358
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
54318
|
-
import { useContext as useContext12, useEffect as
|
|
54359
|
+
import { useContext as useContext12, useEffect as useEffect38, useState as useState53 } from "react";
|
|
54319
54360
|
import { useTranslations as useTranslations77 } from "next-intl";
|
|
54320
54361
|
import Link12 from "next/link";
|
|
54321
54362
|
import { useRouter as useRouter12 } from "next/router";
|
|
@@ -54401,7 +54442,7 @@ var WfoTasksListPage = () => {
|
|
|
54401
54442
|
const { showConfirmDialog } = useContext12(ConfirmationDialogContext);
|
|
54402
54443
|
const [retryAllProcesses] = useRetryAllProcessesMutation();
|
|
54403
54444
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
54404
|
-
|
|
54445
|
+
useEffect38(() => {
|
|
54405
54446
|
const storedConfig = getStoredTableConfig();
|
|
54406
54447
|
if (storedConfig) {
|
|
54407
54448
|
setTableDefaults(storedConfig);
|
|
@@ -54502,7 +54543,7 @@ var WfoTasksListPage = () => {
|
|
|
54502
54543
|
};
|
|
54503
54544
|
|
|
54504
54545
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
54505
|
-
import { useEffect as
|
|
54546
|
+
import { useEffect as useEffect39, useState as useState54 } from "react";
|
|
54506
54547
|
import { useTranslations as useTranslations78 } from "next-intl";
|
|
54507
54548
|
import { useRouter as useRouter13 } from "next/router";
|
|
54508
54549
|
import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
|
|
@@ -54583,7 +54624,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
54583
54624
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
54584
54625
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
54585
54626
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
54586
|
-
|
|
54627
|
+
useEffect39(() => {
|
|
54587
54628
|
const storedConfig = getStoredTableConfig();
|
|
54588
54629
|
if (storedConfig) {
|
|
54589
54630
|
setTableDefaults(storedConfig);
|
|
@@ -54921,13 +54962,13 @@ var WfoProcessesList = ({
|
|
|
54921
54962
|
import { EuiCodeBlock as EuiCodeBlock3 } from "@elastic/eui";
|
|
54922
54963
|
|
|
54923
54964
|
// src/components/WfoJsonCodeBlock/styles.ts
|
|
54924
|
-
import { css as
|
|
54965
|
+
import { css as css46 } from "@emotion/react";
|
|
54925
54966
|
var getStyles12 = ({ theme }) => {
|
|
54926
|
-
const euiCodeBlockStyle =
|
|
54967
|
+
const euiCodeBlockStyle = css46({
|
|
54927
54968
|
marginTop: 10,
|
|
54928
54969
|
borderRadius: theme.border.radius.medium
|
|
54929
54970
|
});
|
|
54930
|
-
const euiBasicCodeBlockStyle =
|
|
54971
|
+
const euiBasicCodeBlockStyle = css46({
|
|
54931
54972
|
backgroundColor: "inherit",
|
|
54932
54973
|
".euiCodeBlock__pre": {
|
|
54933
54974
|
paddingTop: 0,
|
|
@@ -54976,10 +55017,10 @@ import {
|
|
|
54976
55017
|
} from "@elastic/eui";
|
|
54977
55018
|
|
|
54978
55019
|
// src/components/WfoSettings/styles.ts
|
|
54979
|
-
import { css as
|
|
55020
|
+
import { css as css47 } from "@emotion/react";
|
|
54980
55021
|
var getWfoFlushSettingsStyle = (wfoTheme) => {
|
|
54981
55022
|
const { theme } = wfoTheme;
|
|
54982
|
-
const comboboxStyle =
|
|
55023
|
+
const comboboxStyle = css47({
|
|
54983
55024
|
// .euiComboBox is needed to override eui styling (more specific)
|
|
54984
55025
|
"&.euiComboBox": {
|
|
54985
55026
|
".euiComboBox__inputWrap": {
|
|
@@ -55219,9 +55260,9 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
55219
55260
|
};
|
|
55220
55261
|
|
|
55221
55262
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
55222
|
-
import
|
|
55263
|
+
import React86 from "react";
|
|
55223
55264
|
import { jsx as jsx256, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
|
|
55224
|
-
var WfoErrorBoundary = class extends
|
|
55265
|
+
var WfoErrorBoundary = class extends React86.Component {
|
|
55225
55266
|
constructor(props) {
|
|
55226
55267
|
super(props);
|
|
55227
55268
|
this.state = { hasError: false };
|
|
@@ -55251,9 +55292,9 @@ var WfoErrorBoundary = class extends React85.Component {
|
|
|
55251
55292
|
import { EuiFlexGroup as EuiFlexGroup30 } from "@elastic/eui";
|
|
55252
55293
|
|
|
55253
55294
|
// src/components/WfoNoResults/styles.ts
|
|
55254
|
-
import { css as
|
|
55295
|
+
import { css as css48 } from "@emotion/react";
|
|
55255
55296
|
var getStyles13 = ({ theme }) => {
|
|
55256
|
-
const panelStyle =
|
|
55297
|
+
const panelStyle = css48({
|
|
55257
55298
|
display: "flex",
|
|
55258
55299
|
padding: theme.base * 2,
|
|
55259
55300
|
flexDirection: "row",
|
|
@@ -55504,6 +55545,7 @@ var WfoSubscriptionsList = ({
|
|
|
55504
55545
|
note: {
|
|
55505
55546
|
columnType: "data" /* DATA */,
|
|
55506
55547
|
label: t("note"),
|
|
55548
|
+
width: "300px",
|
|
55507
55549
|
renderData: (cellValue, row) => {
|
|
55508
55550
|
return /* @__PURE__ */ jsx259(
|
|
55509
55551
|
WfoSubscriptionNoteEdit,
|
|
@@ -55620,7 +55662,7 @@ var getNumberOfColumns = (currentBreakpoint) => {
|
|
|
55620
55662
|
|
|
55621
55663
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
55622
55664
|
import {
|
|
55623
|
-
EuiAvatar
|
|
55665
|
+
EuiAvatar,
|
|
55624
55666
|
EuiFlexGroup as EuiFlexGroup31,
|
|
55625
55667
|
EuiFlexItem as EuiFlexItem36,
|
|
55626
55668
|
EuiLoadingSpinner as EuiLoadingSpinner3,
|
|
@@ -55629,18 +55671,18 @@ import {
|
|
|
55629
55671
|
} from "@elastic/eui";
|
|
55630
55672
|
|
|
55631
55673
|
// src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
|
|
55632
|
-
import { css as
|
|
55674
|
+
import { css as css49 } from "@emotion/react";
|
|
55633
55675
|
var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
55634
|
-
const avatarStyle =
|
|
55676
|
+
const avatarStyle = css49({
|
|
55635
55677
|
maxHeight: theme.base * 3,
|
|
55636
55678
|
maxWidth: theme.base * 3
|
|
55637
55679
|
});
|
|
55638
|
-
const totalSectionStyle =
|
|
55680
|
+
const totalSectionStyle = css49({
|
|
55639
55681
|
display: "flex",
|
|
55640
55682
|
flexDirection: "column",
|
|
55641
55683
|
justifyContent: "space-between"
|
|
55642
55684
|
});
|
|
55643
|
-
const valueStyle =
|
|
55685
|
+
const valueStyle = css49({
|
|
55644
55686
|
fontSize: theme.size.l,
|
|
55645
55687
|
fontWeight: theme.font.weight.semiBold
|
|
55646
55688
|
});
|
|
@@ -55664,7 +55706,7 @@ var WfoSummaryCardHeader = ({
|
|
|
55664
55706
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
55665
55707
|
return /* @__PURE__ */ jsx260(EuiFlexItem36, { grow: 0, children: /* @__PURE__ */ jsx260(EuiPanel12, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs139(EuiFlexGroup31, { alignItems: "center", children: [
|
|
55666
55708
|
/* @__PURE__ */ jsx260(
|
|
55667
|
-
|
|
55709
|
+
EuiAvatar,
|
|
55668
55710
|
{
|
|
55669
55711
|
iconSize: "l",
|
|
55670
55712
|
size: "xl",
|
|
@@ -55715,23 +55757,23 @@ var WfoOptionalLink = ({
|
|
|
55715
55757
|
};
|
|
55716
55758
|
|
|
55717
55759
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
55718
|
-
import { css as
|
|
55760
|
+
import { css as css50 } from "@emotion/react";
|
|
55719
55761
|
var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
55720
|
-
const listContainerStyle =
|
|
55762
|
+
const listContainerStyle = css50({
|
|
55721
55763
|
display: "flex",
|
|
55722
55764
|
flexDirection: "column",
|
|
55723
55765
|
justifyContent: "space-between",
|
|
55724
55766
|
flexGrow: 1,
|
|
55725
55767
|
borderColor: theme.colors.lightShade
|
|
55726
55768
|
});
|
|
55727
|
-
const listHeaderStyle =
|
|
55769
|
+
const listHeaderStyle = css50({
|
|
55728
55770
|
fontWeight: theme.font.weight.semiBold
|
|
55729
55771
|
});
|
|
55730
|
-
const listStyle =
|
|
55772
|
+
const listStyle = css50({
|
|
55731
55773
|
height: theme.base * 20,
|
|
55732
55774
|
overflow: "auto"
|
|
55733
55775
|
});
|
|
55734
|
-
const listItemContainerStyle =
|
|
55776
|
+
const listItemContainerStyle = css50({
|
|
55735
55777
|
paddingBlock: theme.size.m,
|
|
55736
55778
|
".highlight-icon": {
|
|
55737
55779
|
visibility: "hidden"
|
|
@@ -55740,13 +55782,13 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
55740
55782
|
visibility: "visible"
|
|
55741
55783
|
}
|
|
55742
55784
|
});
|
|
55743
|
-
const listItemTitleStyle =
|
|
55785
|
+
const listItemTitleStyle = css50({
|
|
55744
55786
|
fontWeight: theme.font.weight.medium
|
|
55745
55787
|
});
|
|
55746
|
-
const listItemSubtitleStyle =
|
|
55788
|
+
const listItemSubtitleStyle = css50({
|
|
55747
55789
|
fontWeight: theme.font.weight.regular
|
|
55748
55790
|
});
|
|
55749
|
-
const listItemHighlightIconStyle =
|
|
55791
|
+
const listItemHighlightIconStyle = css50({
|
|
55750
55792
|
visibility: "hidden"
|
|
55751
55793
|
});
|
|
55752
55794
|
return {
|
|
@@ -55866,9 +55908,9 @@ var WfoSummaryCards = ({ children }) => {
|
|
|
55866
55908
|
import { EuiFlexItem as EuiFlexItem39, EuiSpacer as EuiSpacer29 } from "@elastic/eui";
|
|
55867
55909
|
|
|
55868
55910
|
// src/components/WfoSummary/styles.ts
|
|
55869
|
-
import { css as
|
|
55911
|
+
import { css as css51 } from "@emotion/react";
|
|
55870
55912
|
var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
55871
|
-
const cardContainerStyle =
|
|
55913
|
+
const cardContainerStyle = css51({
|
|
55872
55914
|
height: theme.base * 36,
|
|
55873
55915
|
minWidth: theme.base * 25
|
|
55874
55916
|
});
|
|
@@ -56478,7 +56520,7 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
|
|
|
56478
56520
|
const triggerNoteModifyWorkflow = (note) => {
|
|
56479
56521
|
const noteModifyPayload = [
|
|
56480
56522
|
{ subscription_id: subscriptionId },
|
|
56481
|
-
{ note
|
|
56523
|
+
{ note }
|
|
56482
56524
|
];
|
|
56483
56525
|
startProcess({
|
|
56484
56526
|
workflowName: "modify_note",
|
|
@@ -56504,9 +56546,9 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
|
|
|
56504
56546
|
import { EuiFlexItem as EuiFlexItem40 } from "@elastic/eui";
|
|
56505
56547
|
|
|
56506
56548
|
// src/components/WfoTableCodeBlock/styles.ts
|
|
56507
|
-
import { css as
|
|
56549
|
+
import { css as css52 } from "@emotion/react";
|
|
56508
56550
|
var getStyles14 = ({ theme }) => {
|
|
56509
|
-
const tableCodeBlockMarginStyle =
|
|
56551
|
+
const tableCodeBlockMarginStyle = css52({
|
|
56510
56552
|
margin: theme.size.base,
|
|
56511
56553
|
marginTop: theme.size.l,
|
|
56512
56554
|
marginRight: theme.size.l
|
|
@@ -56543,10 +56585,10 @@ var WfoTableCodeBlock = ({
|
|
|
56543
56585
|
};
|
|
56544
56586
|
|
|
56545
56587
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
56546
|
-
import { useEffect as
|
|
56547
|
-
import { useTranslations as
|
|
56588
|
+
import { useEffect as useEffect45, useState as useState63 } from "react";
|
|
56589
|
+
import { useTranslations as useTranslations105 } from "next-intl";
|
|
56548
56590
|
import {
|
|
56549
|
-
EuiButton as
|
|
56591
|
+
EuiButton as EuiButton22,
|
|
56550
56592
|
EuiCallOut as EuiCallOut3,
|
|
56551
56593
|
EuiFieldSearch as EuiFieldSearch3,
|
|
56552
56594
|
EuiFlexGroup as EuiFlexGroup46,
|
|
@@ -56559,10 +56601,10 @@ import {
|
|
|
56559
56601
|
} from "@elastic/eui";
|
|
56560
56602
|
|
|
56561
56603
|
// src/hooks/useDebounce.ts
|
|
56562
|
-
import { useEffect as
|
|
56604
|
+
import { useEffect as useEffect40, useState as useState57 } from "react";
|
|
56563
56605
|
function useDebounce(value, delay) {
|
|
56564
56606
|
const [debouncedValue, setDebouncedValue] = useState57(value);
|
|
56565
|
-
|
|
56607
|
+
useEffect40(() => {
|
|
56566
56608
|
if (delay <= 0) {
|
|
56567
56609
|
setDebouncedValue(value);
|
|
56568
56610
|
return;
|
|
@@ -56578,7 +56620,7 @@ function useDebounce(value, delay) {
|
|
|
56578
56620
|
}
|
|
56579
56621
|
|
|
56580
56622
|
// src/hooks/useSearch.ts
|
|
56581
|
-
import { useEffect as
|
|
56623
|
+
import { useEffect as useEffect41, useState as useState58 } from "react";
|
|
56582
56624
|
var useSearch = (query, entityType, filterGroup, limit) => {
|
|
56583
56625
|
const [results, setResults] = useState58({
|
|
56584
56626
|
data: [],
|
|
@@ -56586,7 +56628,7 @@ var useSearch = (query, entityType, filterGroup, limit) => {
|
|
|
56586
56628
|
search_metadata: { search_type: null, description: null }
|
|
56587
56629
|
});
|
|
56588
56630
|
const [triggerSearch, { isLoading, isError: isError2 }] = useSearchMutation();
|
|
56589
|
-
|
|
56631
|
+
useEffect41(() => {
|
|
56590
56632
|
const queryText = typeof query === "string" ? query : query.text?.trim() || "";
|
|
56591
56633
|
const hasFilters = filterGroup && filterGroup.children.length > 0;
|
|
56592
56634
|
if (queryText.length < 2 && !hasFilters) {
|
|
@@ -56637,14 +56679,14 @@ var useSearch = (query, entityType, filterGroup, limit) => {
|
|
|
56637
56679
|
};
|
|
56638
56680
|
|
|
56639
56681
|
// src/hooks/useSearchPagination.ts
|
|
56640
|
-
import { useCallback as
|
|
56682
|
+
import { useCallback as useCallback13, useState as useState59 } from "react";
|
|
56641
56683
|
var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults) => {
|
|
56642
56684
|
const [currentPage, setCurrentPage] = useState59(1);
|
|
56643
56685
|
const [pageHistory, setPageHistory] = useState59([]);
|
|
56644
56686
|
const [error, setError] = useState59(null);
|
|
56645
56687
|
const [isLoadingMore, setIsLoadingMore] = useState59(false);
|
|
56646
56688
|
const [triggerSearchPagination] = useSearchWithPaginationMutation();
|
|
56647
|
-
const handleNextPage =
|
|
56689
|
+
const handleNextPage = useCallback13(
|
|
56648
56690
|
async (nextPageCursor) => {
|
|
56649
56691
|
if (!nextPageCursor || isLoadingMore) return;
|
|
56650
56692
|
setIsLoadingMore(true);
|
|
@@ -56701,7 +56743,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
56701
56743
|
triggerSearchPagination
|
|
56702
56744
|
]
|
|
56703
56745
|
);
|
|
56704
|
-
const handlePrevPage =
|
|
56746
|
+
const handlePrevPage = useCallback13(() => {
|
|
56705
56747
|
const previousPage = pageHistory.find(
|
|
56706
56748
|
(p) => p.page === currentPage - 1
|
|
56707
56749
|
);
|
|
@@ -56718,7 +56760,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
56718
56760
|
setPageHistory((prev) => prev.filter((p) => p.page < currentPage));
|
|
56719
56761
|
}
|
|
56720
56762
|
}, [currentPage, pageHistory, results.search_metadata, setResults]);
|
|
56721
|
-
const resetPagination =
|
|
56763
|
+
const resetPagination = useCallback13(() => {
|
|
56722
56764
|
setCurrentPage(1);
|
|
56723
56765
|
setPageHistory([]);
|
|
56724
56766
|
}, []);
|
|
@@ -56735,7 +56777,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
56735
56777
|
};
|
|
56736
56778
|
|
|
56737
56779
|
// src/hooks/useUrlParams.ts
|
|
56738
|
-
import { useCallback as
|
|
56780
|
+
import { useCallback as useCallback14, useEffect as useEffect42, useState as useState60 } from "react";
|
|
56739
56781
|
|
|
56740
56782
|
// src/components/WfoSearchPage/constants.ts
|
|
56741
56783
|
var DEFAULT_PAGE_SIZE2 = 5;
|
|
@@ -56785,7 +56827,7 @@ var useUrlParams = () => {
|
|
|
56785
56827
|
return urlParams.get("id") || null;
|
|
56786
56828
|
}
|
|
56787
56829
|
);
|
|
56788
|
-
const updateUrl =
|
|
56830
|
+
const updateUrl = useCallback14(() => {
|
|
56789
56831
|
const newParams = new URLSearchParams();
|
|
56790
56832
|
const queryText = typeof query === "string" ? query : query.text || "";
|
|
56791
56833
|
if (queryText && queryText !== "*") {
|
|
@@ -56813,7 +56855,7 @@ var useUrlParams = () => {
|
|
|
56813
56855
|
selectedRecordIndex,
|
|
56814
56856
|
selectedRecordId
|
|
56815
56857
|
]);
|
|
56816
|
-
|
|
56858
|
+
useEffect42(() => {
|
|
56817
56859
|
updateUrl();
|
|
56818
56860
|
}, [updateUrl]);
|
|
56819
56861
|
return {
|
|
@@ -56857,7 +56899,7 @@ import {
|
|
|
56857
56899
|
} from "@elastic/eui";
|
|
56858
56900
|
|
|
56859
56901
|
// src/hooks/usePathAutoComplete.ts
|
|
56860
|
-
import { useEffect as
|
|
56902
|
+
import { useEffect as useEffect43, useState as useState61 } from "react";
|
|
56861
56903
|
var FALLBACK_DEFINITIONS = {
|
|
56862
56904
|
string: {
|
|
56863
56905
|
operators: ["eq", "neq"],
|
|
@@ -56908,7 +56950,7 @@ var usePathAutocomplete = (prefix, entityType) => {
|
|
|
56908
56950
|
{ q: debouncedPrefix, entity_type: entityType },
|
|
56909
56951
|
{ skip: debouncedPrefix.length < 1 }
|
|
56910
56952
|
);
|
|
56911
|
-
|
|
56953
|
+
useEffect43(() => {
|
|
56912
56954
|
if (debouncedPrefix.length < 1) {
|
|
56913
56955
|
setPaths([]);
|
|
56914
56956
|
return;
|
|
@@ -58161,7 +58203,6 @@ var FilterGroup = ({
|
|
|
58161
58203
|
};
|
|
58162
58204
|
|
|
58163
58205
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx
|
|
58164
|
-
import { useState as useState63 } from "react";
|
|
58165
58206
|
import { EuiFlexGroup as EuiFlexGroup44, EuiPanel as EuiPanel19 } from "@elastic/eui";
|
|
58166
58207
|
|
|
58167
58208
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchEmptyState.tsx
|
|
@@ -58185,7 +58226,7 @@ var WfoSearchLoadingState = () => {
|
|
|
58185
58226
|
};
|
|
58186
58227
|
|
|
58187
58228
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
|
|
58188
|
-
import { useEffect as
|
|
58229
|
+
import { useEffect as useEffect44, useRef as useRef14 } from "react";
|
|
58189
58230
|
import { useTranslations as useTranslations103 } from "next-intl";
|
|
58190
58231
|
import {
|
|
58191
58232
|
EuiButtonIcon as EuiButtonIcon17,
|
|
@@ -58198,14 +58239,14 @@ import {
|
|
|
58198
58239
|
|
|
58199
58240
|
// src/components/WfoSearchPage/WfoSearchResults/WfoHighlightedText.tsx
|
|
58200
58241
|
import { useMemo as useMemo9 } from "react";
|
|
58201
|
-
import { css as
|
|
58242
|
+
import { css as css53 } from "@emotion/react";
|
|
58202
58243
|
import { Fragment as Fragment66, jsx as jsx288 } from "@emotion/react/jsx-runtime";
|
|
58203
58244
|
var WfoHighlightedText = ({
|
|
58204
58245
|
text,
|
|
58205
58246
|
highlight_indices
|
|
58206
58247
|
}) => {
|
|
58207
58248
|
const { theme } = useOrchestratorTheme();
|
|
58208
|
-
const highlightStyles =
|
|
58249
|
+
const highlightStyles = css53`
|
|
58209
58250
|
background-color: ${theme.colors.warning};
|
|
58210
58251
|
color: ${theme.colors.plainDark};
|
|
58211
58252
|
padding: 0 ${theme.size.xs};
|
|
@@ -58310,7 +58351,7 @@ var WfoSearchResultItem = ({
|
|
|
58310
58351
|
const baseUrl = `${window.location.protocol}//${window.location.host}`;
|
|
58311
58352
|
const detailUrl = getDetailUrl(result, baseUrl);
|
|
58312
58353
|
const itemRef = useRef14(null);
|
|
58313
|
-
|
|
58354
|
+
useEffect44(() => {
|
|
58314
58355
|
if (isSelected && onPositionChange && itemRef.current) {
|
|
58315
58356
|
onPositionChange(index, itemRef.current);
|
|
58316
58357
|
}
|
|
@@ -58341,7 +58382,7 @@ var WfoSearchResultItem = ({
|
|
|
58341
58382
|
style: {
|
|
58342
58383
|
fontWeight: theme.font.weight.semiBold
|
|
58343
58384
|
},
|
|
58344
|
-
children:
|
|
58385
|
+
children: result.entity_title
|
|
58345
58386
|
}
|
|
58346
58387
|
) }),
|
|
58347
58388
|
matchingField && /* @__PURE__ */ jsxs153(Fragment68, { children: [
|
|
@@ -58410,87 +58451,52 @@ var WfoSearchResultItem = ({
|
|
|
58410
58451
|
) });
|
|
58411
58452
|
};
|
|
58412
58453
|
|
|
58413
|
-
// src/components/WfoSearchPage/WfoSearchResults/WfoSubscriptionDetailModal.tsx
|
|
58414
|
-
import { useTranslations as useTranslations104 } from "next-intl";
|
|
58415
|
-
import {
|
|
58416
|
-
EuiButton as EuiButton22,
|
|
58417
|
-
EuiModal as EuiModal5,
|
|
58418
|
-
EuiModalBody as EuiModalBody5,
|
|
58419
|
-
EuiModalFooter as EuiModalFooter5,
|
|
58420
|
-
EuiModalHeader as EuiModalHeader5,
|
|
58421
|
-
EuiModalHeaderTitle as EuiModalHeaderTitle5
|
|
58422
|
-
} from "@elastic/eui";
|
|
58423
|
-
import { jsx as jsx291, jsxs as jsxs154 } from "@emotion/react/jsx-runtime";
|
|
58424
|
-
var WfoSubscriptionDetailModal = ({ isVisible, onClose, subscriptionData }) => {
|
|
58425
|
-
const t = useTranslations104("search.page");
|
|
58426
|
-
if (!isVisible || !subscriptionData) return null;
|
|
58427
|
-
const subscriptionId = subscriptionData && subscriptionData.subscription_id;
|
|
58428
|
-
return /* @__PURE__ */ jsxs154(EuiModal5, { onClose, maxWidth: 800, children: [
|
|
58429
|
-
/* @__PURE__ */ jsx291(EuiModalHeader5, { children: /* @__PURE__ */ jsx291(EuiModalHeaderTitle5, { children: t("subscriptionDetails") }) }),
|
|
58430
|
-
/* @__PURE__ */ jsx291(EuiModalBody5, { children: /* @__PURE__ */ jsx291(TreeProvider, { children: /* @__PURE__ */ jsx291(WfoSubscription, { subscriptionId }) }) }),
|
|
58431
|
-
/* @__PURE__ */ jsx291(EuiModalFooter5, { children: /* @__PURE__ */ jsx291(EuiButton22, { onClick: onClose, fill: true, children: t("closeButton") }) })
|
|
58432
|
-
] });
|
|
58433
|
-
};
|
|
58434
|
-
|
|
58435
58454
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx
|
|
58436
|
-
import {
|
|
58455
|
+
import { jsx as jsx291 } from "@emotion/react/jsx-runtime";
|
|
58437
58456
|
var WfoSearchResults = ({
|
|
58438
58457
|
results,
|
|
58439
58458
|
loading,
|
|
58440
58459
|
selectedRecordIndex = 0,
|
|
58441
58460
|
onRecordSelect
|
|
58442
58461
|
}) => {
|
|
58443
|
-
const [modalData, setModalData] = useState63(null);
|
|
58444
|
-
const handleCloseModal = () => {
|
|
58445
|
-
setModalData(null);
|
|
58446
|
-
};
|
|
58447
58462
|
if (loading) {
|
|
58448
|
-
return /* @__PURE__ */
|
|
58463
|
+
return /* @__PURE__ */ jsx291(WfoSearchLoadingState, {});
|
|
58449
58464
|
}
|
|
58450
58465
|
if (!results || results.length === 0) {
|
|
58451
|
-
return /* @__PURE__ */
|
|
58466
|
+
return /* @__PURE__ */ jsx291(WfoSearchEmptyState, {});
|
|
58452
58467
|
}
|
|
58453
|
-
return /* @__PURE__ */
|
|
58454
|
-
|
|
58455
|
-
|
|
58456
|
-
|
|
58457
|
-
|
|
58458
|
-
|
|
58459
|
-
|
|
58460
|
-
|
|
58461
|
-
},
|
|
58462
|
-
idx
|
|
58463
|
-
)) }) }),
|
|
58464
|
-
/* @__PURE__ */ jsx292(
|
|
58465
|
-
WfoSubscriptionDetailModal,
|
|
58466
|
-
{
|
|
58467
|
-
isVisible: !!modalData,
|
|
58468
|
-
onClose: handleCloseModal,
|
|
58469
|
-
subscriptionData: modalData?.subscription,
|
|
58470
|
-
matchingField: modalData?.matchingField
|
|
58468
|
+
return /* @__PURE__ */ jsx291(EuiPanel19, { paddingSize: "m", hasShadow: false, children: /* @__PURE__ */ jsx291(EuiFlexGroup44, { direction: "column", gutterSize: "s", children: results.map((result, idx) => /* @__PURE__ */ jsx291(
|
|
58469
|
+
WfoSearchResultItem,
|
|
58470
|
+
{
|
|
58471
|
+
result,
|
|
58472
|
+
index: idx,
|
|
58473
|
+
isSelected: idx === selectedRecordIndex,
|
|
58474
|
+
onSelect: () => {
|
|
58475
|
+
onRecordSelect?.(idx);
|
|
58471
58476
|
}
|
|
58472
|
-
|
|
58473
|
-
|
|
58477
|
+
},
|
|
58478
|
+
idx
|
|
58479
|
+
)) }) });
|
|
58474
58480
|
};
|
|
58475
58481
|
|
|
58476
58482
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchMetadataHeader.tsx
|
|
58477
|
-
import { jsx as
|
|
58483
|
+
import { jsx as jsx292 } from "@emotion/react/jsx-runtime";
|
|
58478
58484
|
var WfoSearchMetadataHeader = ({
|
|
58479
58485
|
search_metadata
|
|
58480
58486
|
}) => {
|
|
58481
58487
|
if (!search_metadata.search_type) return null;
|
|
58482
|
-
return /* @__PURE__ */
|
|
58488
|
+
return /* @__PURE__ */ jsx292(WfoToolTip, { tooltipContent: search_metadata.description || "", children: /* @__PURE__ */ jsx292(WfoBadge, { color: "hollow", iconType: "search", textColor: "default", children: search_metadata.search_type }) });
|
|
58483
58489
|
};
|
|
58484
58490
|
|
|
58485
58491
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchPaginationInfo.tsx
|
|
58486
|
-
import { useTranslations as
|
|
58492
|
+
import { useTranslations as useTranslations104 } from "next-intl";
|
|
58487
58493
|
import {
|
|
58488
58494
|
EuiButtonIcon as EuiButtonIcon18,
|
|
58489
58495
|
EuiFlexGroup as EuiFlexGroup45,
|
|
58490
58496
|
EuiFlexItem as EuiFlexItem51,
|
|
58491
58497
|
EuiText as EuiText59
|
|
58492
58498
|
} from "@elastic/eui";
|
|
58493
|
-
import { jsx as
|
|
58499
|
+
import { jsx as jsx293, jsxs as jsxs154 } from "@emotion/react/jsx-runtime";
|
|
58494
58500
|
var WfoSearchPaginationInfo = ({
|
|
58495
58501
|
has_next_page,
|
|
58496
58502
|
next_page_cursor,
|
|
@@ -58501,7 +58507,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58501
58507
|
hasPrevPage = false,
|
|
58502
58508
|
resultCount
|
|
58503
58509
|
}) => {
|
|
58504
|
-
const t =
|
|
58510
|
+
const t = useTranslations104("search.page");
|
|
58505
58511
|
const { theme } = useOrchestratorTheme();
|
|
58506
58512
|
const handleNextPage = () => {
|
|
58507
58513
|
if (!isLoading && next_page_cursor && onNextPage)
|
|
@@ -58511,7 +58517,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58511
58517
|
if (!isLoading && onPrevPage) onPrevPage();
|
|
58512
58518
|
};
|
|
58513
58519
|
if (!has_next_page && !hasPrevPage) return null;
|
|
58514
|
-
return /* @__PURE__ */
|
|
58520
|
+
return /* @__PURE__ */ jsxs154(
|
|
58515
58521
|
EuiFlexGroup45,
|
|
58516
58522
|
{
|
|
58517
58523
|
justifyContent: "flexEnd",
|
|
@@ -58527,7 +58533,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58527
58533
|
role: "navigation",
|
|
58528
58534
|
"aria-label": t("searchResultsPagination"),
|
|
58529
58535
|
children: [
|
|
58530
|
-
/* @__PURE__ */
|
|
58536
|
+
/* @__PURE__ */ jsx293(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx293(
|
|
58531
58537
|
EuiButtonIcon18,
|
|
58532
58538
|
{
|
|
58533
58539
|
iconType: "arrowLeft",
|
|
@@ -58538,12 +58544,12 @@ var WfoSearchPaginationInfo = ({
|
|
|
58538
58544
|
size: "s"
|
|
58539
58545
|
}
|
|
58540
58546
|
) }),
|
|
58541
|
-
/* @__PURE__ */
|
|
58547
|
+
/* @__PURE__ */ jsx293(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsxs154(EuiText59, { size: "xs", color: theme.colors.textSubdued, children: [
|
|
58542
58548
|
t("page"),
|
|
58543
58549
|
" ",
|
|
58544
58550
|
currentPage
|
|
58545
58551
|
] }) }),
|
|
58546
|
-
/* @__PURE__ */
|
|
58552
|
+
/* @__PURE__ */ jsx293(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx293(
|
|
58547
58553
|
EuiButtonIcon18,
|
|
58548
58554
|
{
|
|
58549
58555
|
iconType: "arrowRight",
|
|
@@ -58555,7 +58561,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58555
58561
|
isLoading
|
|
58556
58562
|
}
|
|
58557
58563
|
) }),
|
|
58558
|
-
resultCount && resultCount > 0 && /* @__PURE__ */
|
|
58564
|
+
resultCount && resultCount > 0 && /* @__PURE__ */ jsx293(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx293(
|
|
58559
58565
|
WfoBadge,
|
|
58560
58566
|
{
|
|
58561
58567
|
className: "wfoPagination__badge",
|
|
@@ -58570,9 +58576,9 @@ var WfoSearchPaginationInfo = ({
|
|
|
58570
58576
|
};
|
|
58571
58577
|
|
|
58572
58578
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
58573
|
-
import { Fragment as
|
|
58579
|
+
import { Fragment as Fragment69, jsx as jsx294, jsxs as jsxs155 } from "@emotion/react/jsx-runtime";
|
|
58574
58580
|
var WfoSearch = () => {
|
|
58575
|
-
const t =
|
|
58581
|
+
const t = useTranslations105("search.page");
|
|
58576
58582
|
const { theme } = useOrchestratorTheme();
|
|
58577
58583
|
const {
|
|
58578
58584
|
urlParams,
|
|
@@ -58588,11 +58594,11 @@ var WfoSearch = () => {
|
|
|
58588
58594
|
setSelectedRecordId
|
|
58589
58595
|
} = useUrlParams();
|
|
58590
58596
|
const pageSize = DEFAULT_PAGE_SIZE2;
|
|
58591
|
-
const [filterGroup, setFilterGroup] =
|
|
58597
|
+
const [filterGroup, setFilterGroup] = useState63({
|
|
58592
58598
|
op: "AND",
|
|
58593
58599
|
children: []
|
|
58594
58600
|
});
|
|
58595
|
-
const [showDetailPanel, setShowDetailPanel] =
|
|
58601
|
+
const [showDetailPanel, setShowDetailPanel] = useState63(false);
|
|
58596
58602
|
const debouncedQuery = useDebounce(query, DEFAULT_DEBOUNCE_DELAY);
|
|
58597
58603
|
const { results, loading, setResults } = useSearch(
|
|
58598
58604
|
debouncedQuery,
|
|
@@ -58600,8 +58606,8 @@ var WfoSearch = () => {
|
|
|
58600
58606
|
filterGroup,
|
|
58601
58607
|
pageSize
|
|
58602
58608
|
);
|
|
58603
|
-
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] =
|
|
58604
|
-
|
|
58609
|
+
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] = useState63(false);
|
|
58610
|
+
useEffect45(() => {
|
|
58605
58611
|
const queryText = typeof debouncedQuery === "string" ? debouncedQuery : debouncedQuery?.text?.trim() || "";
|
|
58606
58612
|
const hasFilters = filterGroup && filterGroup.children.length > 0;
|
|
58607
58613
|
if (queryText.length >= 2 || hasFilters) {
|
|
@@ -58626,7 +58632,7 @@ var WfoSearch = () => {
|
|
|
58626
58632
|
results,
|
|
58627
58633
|
setResults
|
|
58628
58634
|
);
|
|
58629
|
-
const [searchValue, setSearchValue] =
|
|
58635
|
+
const [searchValue, setSearchValue] = useState63(() => {
|
|
58630
58636
|
if (typeof query === "string") {
|
|
58631
58637
|
return query;
|
|
58632
58638
|
}
|
|
@@ -58660,7 +58666,7 @@ var WfoSearch = () => {
|
|
|
58660
58666
|
setSearchValue(searchText);
|
|
58661
58667
|
setQuery(searchText);
|
|
58662
58668
|
};
|
|
58663
|
-
|
|
58669
|
+
useEffect45(() => {
|
|
58664
58670
|
if (typeof query === "string") {
|
|
58665
58671
|
if (query !== searchValue) {
|
|
58666
58672
|
setSearchValue(query);
|
|
@@ -58677,12 +58683,11 @@ var WfoSearch = () => {
|
|
|
58677
58683
|
const shouldShowNoResults = (() => {
|
|
58678
58684
|
return hasSearchBeenAttempted && !loading && results.data.length === 0;
|
|
58679
58685
|
})();
|
|
58680
|
-
|
|
58686
|
+
useEffect45(() => {
|
|
58681
58687
|
if (results.data.length > 0) {
|
|
58682
58688
|
if (selectedRecordId) {
|
|
58683
|
-
const foundIndex =
|
|
58684
|
-
|
|
58685
|
-
selectedRecordId
|
|
58689
|
+
const foundIndex = results.data.findIndex(
|
|
58690
|
+
(result) => result.entity_id === selectedRecordId
|
|
58686
58691
|
);
|
|
58687
58692
|
if (foundIndex !== -1) {
|
|
58688
58693
|
setSelectedRecordIndex(foundIndex);
|
|
@@ -58698,17 +58703,17 @@ var WfoSearch = () => {
|
|
|
58698
58703
|
}
|
|
58699
58704
|
}
|
|
58700
58705
|
}, [results.data, selectedRecordId, urlParams]);
|
|
58701
|
-
|
|
58706
|
+
useEffect45(() => {
|
|
58702
58707
|
setShowDetailPanel(
|
|
58703
58708
|
results?.data?.length > 0 && selectedRecordIndex >= 0
|
|
58704
58709
|
);
|
|
58705
58710
|
}, [results?.data?.length, selectedRecordIndex]);
|
|
58706
|
-
|
|
58711
|
+
useEffect45(() => {
|
|
58707
58712
|
resetPagination();
|
|
58708
58713
|
}, [debouncedQuery, selectedEntityTab, filterGroup, resetPagination]);
|
|
58709
58714
|
const { RESULTS_GROW, DETAIL_GROW } = LAYOUT_RATIOS;
|
|
58710
|
-
return /* @__PURE__ */
|
|
58711
|
-
/* @__PURE__ */
|
|
58715
|
+
return /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58716
|
+
/* @__PURE__ */ jsx294(EuiTabs4, { children: ENTITY_TABS.map((tab) => /* @__PURE__ */ jsx294(
|
|
58712
58717
|
EuiTab4,
|
|
58713
58718
|
{
|
|
58714
58719
|
onClick: () => handleTabChange(tab.id),
|
|
@@ -58717,8 +58722,8 @@ var WfoSearch = () => {
|
|
|
58717
58722
|
},
|
|
58718
58723
|
tab.id
|
|
58719
58724
|
)) }),
|
|
58720
|
-
/* @__PURE__ */
|
|
58721
|
-
/* @__PURE__ */
|
|
58725
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58726
|
+
/* @__PURE__ */ jsx294(
|
|
58722
58727
|
EuiFieldSearch3,
|
|
58723
58728
|
{
|
|
58724
58729
|
placeholder: t("searchPlaceholder", {
|
|
@@ -58735,9 +58740,9 @@ var WfoSearch = () => {
|
|
|
58735
58740
|
fullWidth: true
|
|
58736
58741
|
}
|
|
58737
58742
|
),
|
|
58738
|
-
/* @__PURE__ */
|
|
58739
|
-
/* @__PURE__ */
|
|
58740
|
-
|
|
58743
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "s" }),
|
|
58744
|
+
/* @__PURE__ */ jsx294(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: /* @__PURE__ */ jsx294(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx294(
|
|
58745
|
+
EuiButton22,
|
|
58741
58746
|
{
|
|
58742
58747
|
iconType: showFilters ? "eyeClosed" : "eye",
|
|
58743
58748
|
size: "s",
|
|
@@ -58745,12 +58750,12 @@ var WfoSearch = () => {
|
|
|
58745
58750
|
children: showFilters ? t("hideFilters") : t("showFilters")
|
|
58746
58751
|
}
|
|
58747
58752
|
) }) }),
|
|
58748
|
-
showFilters && /* @__PURE__ */
|
|
58749
|
-
/* @__PURE__ */
|
|
58750
|
-
/* @__PURE__ */
|
|
58751
|
-
/* @__PURE__ */
|
|
58752
|
-
/* @__PURE__ */
|
|
58753
|
-
/* @__PURE__ */
|
|
58753
|
+
showFilters && /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58754
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58755
|
+
/* @__PURE__ */ jsxs155(EuiPanel20, { hasBorder: true, paddingSize: "m", children: [
|
|
58756
|
+
/* @__PURE__ */ jsx294(EuiText60, { children: /* @__PURE__ */ jsx294("h4", { children: t("structuredFilters") }) }),
|
|
58757
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "s" }),
|
|
58758
|
+
/* @__PURE__ */ jsx294(
|
|
58754
58759
|
FilterGroup,
|
|
58755
58760
|
{
|
|
58756
58761
|
group: filterGroup,
|
|
@@ -58761,9 +58766,9 @@ var WfoSearch = () => {
|
|
|
58761
58766
|
)
|
|
58762
58767
|
] })
|
|
58763
58768
|
] }),
|
|
58764
|
-
/* @__PURE__ */
|
|
58765
|
-
error && /* @__PURE__ */
|
|
58766
|
-
/* @__PURE__ */
|
|
58769
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58770
|
+
error && /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58771
|
+
/* @__PURE__ */ jsxs155(
|
|
58767
58772
|
EuiCallOut3,
|
|
58768
58773
|
{
|
|
58769
58774
|
title: t("searchError"),
|
|
@@ -58771,9 +58776,9 @@ var WfoSearch = () => {
|
|
|
58771
58776
|
iconType: "alert",
|
|
58772
58777
|
size: "s",
|
|
58773
58778
|
children: [
|
|
58774
|
-
/* @__PURE__ */
|
|
58775
|
-
/* @__PURE__ */
|
|
58776
|
-
|
|
58779
|
+
/* @__PURE__ */ jsx294("p", { children: error }),
|
|
58780
|
+
/* @__PURE__ */ jsx294(
|
|
58781
|
+
EuiButton22,
|
|
58777
58782
|
{
|
|
58778
58783
|
size: "s",
|
|
58779
58784
|
color: "danger",
|
|
@@ -58784,11 +58789,11 @@ var WfoSearch = () => {
|
|
|
58784
58789
|
]
|
|
58785
58790
|
}
|
|
58786
58791
|
),
|
|
58787
|
-
/* @__PURE__ */
|
|
58792
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" })
|
|
58788
58793
|
] }),
|
|
58789
|
-
shouldShowNoResults && /* @__PURE__ */
|
|
58790
|
-
/* @__PURE__ */
|
|
58791
|
-
/* @__PURE__ */
|
|
58794
|
+
shouldShowNoResults && /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58795
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "l" }),
|
|
58796
|
+
/* @__PURE__ */ jsxs155(
|
|
58792
58797
|
EuiCallOut3,
|
|
58793
58798
|
{
|
|
58794
58799
|
title: t("noResults"),
|
|
@@ -58796,20 +58801,20 @@ var WfoSearch = () => {
|
|
|
58796
58801
|
iconType: "search",
|
|
58797
58802
|
size: "m",
|
|
58798
58803
|
children: [
|
|
58799
|
-
/* @__PURE__ */
|
|
58804
|
+
/* @__PURE__ */ jsx294("p", { children: t("noResultsMessage", {
|
|
58800
58805
|
entityType: currentTab?.label.toLowerCase()
|
|
58801
58806
|
}) }),
|
|
58802
|
-
/* @__PURE__ */
|
|
58803
|
-
/* @__PURE__ */
|
|
58807
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "s" }),
|
|
58808
|
+
/* @__PURE__ */ jsx294(EuiText60, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx294("p", { children: t("noResultsSuggestions") }) })
|
|
58804
58809
|
]
|
|
58805
58810
|
}
|
|
58806
58811
|
),
|
|
58807
|
-
/* @__PURE__ */
|
|
58812
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "l" })
|
|
58808
58813
|
] }),
|
|
58809
|
-
isSearchActive && /* @__PURE__ */
|
|
58810
|
-
/* @__PURE__ */
|
|
58811
|
-
/* @__PURE__ */
|
|
58812
|
-
/* @__PURE__ */
|
|
58814
|
+
isSearchActive && /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58815
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58816
|
+
/* @__PURE__ */ jsxs155(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
|
|
58817
|
+
/* @__PURE__ */ jsx294(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs155(
|
|
58813
58818
|
EuiFlexGroup46,
|
|
58814
58819
|
{
|
|
58815
58820
|
gutterSize: "s",
|
|
@@ -58818,13 +58823,13 @@ var WfoSearch = () => {
|
|
|
58818
58823
|
responsive: false,
|
|
58819
58824
|
style: { width: "100%" },
|
|
58820
58825
|
children: [
|
|
58821
|
-
/* @__PURE__ */
|
|
58826
|
+
/* @__PURE__ */ jsx294(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx294(
|
|
58822
58827
|
WfoSearchMetadataHeader,
|
|
58823
58828
|
{
|
|
58824
58829
|
search_metadata: results.search_metadata
|
|
58825
58830
|
}
|
|
58826
58831
|
) }),
|
|
58827
|
-
/* @__PURE__ */
|
|
58832
|
+
/* @__PURE__ */ jsx294(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx294(
|
|
58828
58833
|
WfoSearchPaginationInfo,
|
|
58829
58834
|
{
|
|
58830
58835
|
has_next_page: results.page_info.has_next_page,
|
|
@@ -58840,11 +58845,11 @@ var WfoSearch = () => {
|
|
|
58840
58845
|
]
|
|
58841
58846
|
}
|
|
58842
58847
|
) }),
|
|
58843
|
-
showDetailPanel && /* @__PURE__ */
|
|
58848
|
+
showDetailPanel && /* @__PURE__ */ jsx294(EuiFlexItem52, { grow: DETAIL_GROW })
|
|
58844
58849
|
] }),
|
|
58845
|
-
/* @__PURE__ */
|
|
58846
|
-
/* @__PURE__ */
|
|
58847
|
-
/* @__PURE__ */
|
|
58850
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "s" }),
|
|
58851
|
+
/* @__PURE__ */ jsxs155(EuiFlexGroup46, { gutterSize: "s", alignItems: "flexStart", children: [
|
|
58852
|
+
/* @__PURE__ */ jsx294(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsx294(EuiPanel20, { paddingSize: "none", hasBorder: true, children: /* @__PURE__ */ jsx294(
|
|
58848
58853
|
WfoSearchResults,
|
|
58849
58854
|
{
|
|
58850
58855
|
results: results.data,
|
|
@@ -58854,13 +58859,14 @@ var WfoSearch = () => {
|
|
|
58854
58859
|
setSelectedRecordIndex(index);
|
|
58855
58860
|
const record = results.data[index];
|
|
58856
58861
|
if (record) {
|
|
58857
|
-
|
|
58858
|
-
|
|
58862
|
+
setSelectedRecordId(
|
|
58863
|
+
record.entity_id
|
|
58864
|
+
);
|
|
58859
58865
|
}
|
|
58860
58866
|
}
|
|
58861
58867
|
}
|
|
58862
58868
|
) }) }),
|
|
58863
|
-
showDetailPanel && /* @__PURE__ */
|
|
58869
|
+
showDetailPanel && /* @__PURE__ */ jsx294(EuiFlexItem52, { grow: DETAIL_GROW, children: /* @__PURE__ */ jsx294(
|
|
58864
58870
|
EuiPanel20,
|
|
58865
58871
|
{
|
|
58866
58872
|
paddingSize: "m",
|
|
@@ -58869,27 +58875,27 @@ var WfoSearch = () => {
|
|
|
58869
58875
|
color: "transparent",
|
|
58870
58876
|
children: selectedEntityTab === "SUBSCRIPTION" && results.data[selectedRecordIndex] && isSubscriptionSearchResult(
|
|
58871
58877
|
results.data[selectedRecordIndex]
|
|
58872
|
-
) ? /* @__PURE__ */
|
|
58878
|
+
) ? /* @__PURE__ */ jsx294(TreeProvider, { children: /* @__PURE__ */ jsx294(
|
|
58873
58879
|
WfoSubscription,
|
|
58874
58880
|
{
|
|
58875
|
-
subscriptionId: results.data[selectedRecordIndex].
|
|
58881
|
+
subscriptionId: results.data[selectedRecordIndex].entity_id
|
|
58876
58882
|
}
|
|
58877
|
-
) }) : /* @__PURE__ */
|
|
58878
|
-
/* @__PURE__ */
|
|
58879
|
-
/* @__PURE__ */
|
|
58880
|
-
/* @__PURE__ */
|
|
58883
|
+
) }) : /* @__PURE__ */ jsxs155(Fragment69, { children: [
|
|
58884
|
+
/* @__PURE__ */ jsx294(EuiText60, { children: /* @__PURE__ */ jsx294("h4", { children: t("details") }) }),
|
|
58885
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58886
|
+
/* @__PURE__ */ jsxs155(
|
|
58881
58887
|
EuiText60,
|
|
58882
58888
|
{
|
|
58883
58889
|
color: theme.colors.textSubdued,
|
|
58884
58890
|
children: [
|
|
58885
|
-
/* @__PURE__ */
|
|
58891
|
+
/* @__PURE__ */ jsx294("p", { children: t(
|
|
58886
58892
|
"showingDetailsForResult",
|
|
58887
58893
|
{
|
|
58888
58894
|
resultNumber: selectedRecordIndex + 1
|
|
58889
58895
|
}
|
|
58890
58896
|
) }),
|
|
58891
|
-
/* @__PURE__ */
|
|
58892
|
-
/* @__PURE__ */
|
|
58897
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "s" }),
|
|
58898
|
+
/* @__PURE__ */ jsxs155(
|
|
58893
58899
|
WfoBadge,
|
|
58894
58900
|
{
|
|
58895
58901
|
color: theme.colors.primary,
|
|
@@ -58901,8 +58907,8 @@ var WfoSearch = () => {
|
|
|
58901
58907
|
]
|
|
58902
58908
|
}
|
|
58903
58909
|
),
|
|
58904
|
-
/* @__PURE__ */
|
|
58905
|
-
/* @__PURE__ */
|
|
58910
|
+
/* @__PURE__ */ jsx294(EuiSpacer32, { size: "m" }),
|
|
58911
|
+
/* @__PURE__ */ jsx294("p", { children: /* @__PURE__ */ jsx294("em", { children: t(
|
|
58906
58912
|
"selectResultInstruction"
|
|
58907
58913
|
) }) })
|
|
58908
58914
|
]
|
|
@@ -58918,35 +58924,245 @@ var WfoSearch = () => {
|
|
|
58918
58924
|
|
|
58919
58925
|
// src/components/WfoAgent/WfoAgent/WfoAgent.tsx
|
|
58920
58926
|
import { useTranslations as useTranslations108 } from "next-intl";
|
|
58921
|
-
import {
|
|
58927
|
+
import {
|
|
58928
|
+
useCoAgent,
|
|
58929
|
+
useCoAgentStateRender,
|
|
58930
|
+
useCopilotAction
|
|
58931
|
+
} from "@copilotkit/react-core";
|
|
58922
58932
|
import { CopilotSidebar } from "@copilotkit/react-ui";
|
|
58923
|
-
import { EuiFlexGroup as
|
|
58933
|
+
import { EuiFlexGroup as EuiFlexGroup50, EuiFlexItem as EuiFlexItem56, EuiSpacer as EuiSpacer35, EuiText as EuiText65 } from "@elastic/eui";
|
|
58934
|
+
|
|
58935
|
+
// src/components/WfoAgent/ExportButton/ExportButton.tsx
|
|
58936
|
+
import { useTranslations as useTranslations106 } from "next-intl";
|
|
58937
|
+
import { EuiIcon as EuiIcon10, EuiLoadingSpinner as EuiLoadingSpinner4 } from "@elastic/eui";
|
|
58938
|
+
|
|
58939
|
+
// src/rtk/endpoints/agentExport.ts
|
|
58940
|
+
var agentExportApi = orchestratorApi.injectEndpoints({
|
|
58941
|
+
endpoints: (builder) => ({
|
|
58942
|
+
getAgentExport: builder.query({
|
|
58943
|
+
query: (downloadUrl) => ({
|
|
58944
|
+
url: downloadUrl,
|
|
58945
|
+
method: "GET"
|
|
58946
|
+
}),
|
|
58947
|
+
extraOptions: {
|
|
58948
|
+
baseQueryType: "fetch" /* fetch */
|
|
58949
|
+
}
|
|
58950
|
+
})
|
|
58951
|
+
})
|
|
58952
|
+
});
|
|
58953
|
+
var { useLazyGetAgentExportQuery } = agentExportApi;
|
|
58954
|
+
|
|
58955
|
+
// src/components/WfoAgent/ExportButton/styles.ts
|
|
58956
|
+
import { css as css54 } from "@emotion/react";
|
|
58957
|
+
var getExportButtonStyles = ({ theme }) => {
|
|
58958
|
+
const containerStyle = css54({
|
|
58959
|
+
marginTop: theme.size.xl,
|
|
58960
|
+
marginBottom: theme.size.xl,
|
|
58961
|
+
width: "100%"
|
|
58962
|
+
});
|
|
58963
|
+
const buttonWrapperStyle = css54({
|
|
58964
|
+
backgroundColor: theme.colors.lightestShade,
|
|
58965
|
+
padding: `${theme.size.xl} ${theme.size.xl}`,
|
|
58966
|
+
border: `${theme.border.width.thin} solid transparent`,
|
|
58967
|
+
display: "flex",
|
|
58968
|
+
flexDirection: "column",
|
|
58969
|
+
gap: theme.size.l
|
|
58970
|
+
});
|
|
58971
|
+
const titleStyle = css54({
|
|
58972
|
+
fontSize: theme.size.m,
|
|
58973
|
+
fontWeight: theme.font.weight.semiBold,
|
|
58974
|
+
color: theme.colors.darkestShade
|
|
58975
|
+
});
|
|
58976
|
+
const fileRowStyle = css54({
|
|
58977
|
+
display: "flex",
|
|
58978
|
+
alignItems: "center",
|
|
58979
|
+
justifyContent: "space-between",
|
|
58980
|
+
gap: theme.size.m,
|
|
58981
|
+
border: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
|
|
58982
|
+
borderRadius: theme.border.radius.medium,
|
|
58983
|
+
padding: `${theme.size.m} ${theme.size.l}`,
|
|
58984
|
+
backgroundColor: theme.colors.emptyShade,
|
|
58985
|
+
cursor: "pointer"
|
|
58986
|
+
});
|
|
58987
|
+
const fileInfoStyle = css54({
|
|
58988
|
+
display: "flex",
|
|
58989
|
+
alignItems: "center",
|
|
58990
|
+
gap: theme.size.m,
|
|
58991
|
+
flex: 1,
|
|
58992
|
+
color: theme.colors.darkestShade
|
|
58993
|
+
});
|
|
58994
|
+
const filenameStyle = css54({
|
|
58995
|
+
fontSize: theme.size.m,
|
|
58996
|
+
fontWeight: theme.font.weight.medium,
|
|
58997
|
+
color: theme.colors.darkestShade
|
|
58998
|
+
});
|
|
58999
|
+
const downloadButtonStyle = css54({
|
|
59000
|
+
display: "flex",
|
|
59001
|
+
alignItems: "center",
|
|
59002
|
+
justifyContent: "center",
|
|
59003
|
+
color: theme.colors.darkestShade
|
|
59004
|
+
});
|
|
59005
|
+
return {
|
|
59006
|
+
containerStyle,
|
|
59007
|
+
buttonWrapperStyle,
|
|
59008
|
+
titleStyle,
|
|
59009
|
+
fileRowStyle,
|
|
59010
|
+
fileInfoStyle,
|
|
59011
|
+
filenameStyle,
|
|
59012
|
+
downloadButtonStyle
|
|
59013
|
+
};
|
|
59014
|
+
};
|
|
59015
|
+
|
|
59016
|
+
// src/components/WfoAgent/ExportButton/ExportButton.tsx
|
|
59017
|
+
import { jsx as jsx295, jsxs as jsxs156 } from "@emotion/react/jsx-runtime";
|
|
59018
|
+
function ExportButton({ exportData }) {
|
|
59019
|
+
const { showToastMessage } = useShowToastMessage();
|
|
59020
|
+
const tError = useTranslations106("errors");
|
|
59021
|
+
const [triggerExport, { isFetching }] = useLazyGetAgentExportQuery();
|
|
59022
|
+
const {
|
|
59023
|
+
containerStyle,
|
|
59024
|
+
buttonWrapperStyle,
|
|
59025
|
+
titleStyle,
|
|
59026
|
+
fileRowStyle,
|
|
59027
|
+
fileInfoStyle,
|
|
59028
|
+
filenameStyle,
|
|
59029
|
+
downloadButtonStyle
|
|
59030
|
+
} = useWithOrchestratorTheme(getExportButtonStyles);
|
|
59031
|
+
const filename = getCsvFileNameWithDate("export");
|
|
59032
|
+
const onDownloadClick = async () => {
|
|
59033
|
+
const data = await triggerExport(exportData.download_url).unwrap();
|
|
59034
|
+
const keyOrder = data.page.length > 0 ? Object.keys(data.page[0]) : [];
|
|
59035
|
+
const handleExport = csvDownloadHandler(
|
|
59036
|
+
async () => data,
|
|
59037
|
+
(data2) => data2.page,
|
|
59038
|
+
(data2) => data2.pageInfo ?? {
|
|
59039
|
+
totalItems: data2.page.length,
|
|
59040
|
+
startCursor: 0,
|
|
59041
|
+
endCursor: data2.page.length - 1,
|
|
59042
|
+
hasNextPage: false,
|
|
59043
|
+
hasPreviousPage: false,
|
|
59044
|
+
sortFields: [],
|
|
59045
|
+
filterFields: []
|
|
59046
|
+
},
|
|
59047
|
+
keyOrder,
|
|
59048
|
+
filename,
|
|
59049
|
+
showToastMessage,
|
|
59050
|
+
tError
|
|
59051
|
+
);
|
|
59052
|
+
await handleExport();
|
|
59053
|
+
};
|
|
59054
|
+
return /* @__PURE__ */ jsx295("div", { css: containerStyle, children: /* @__PURE__ */ jsxs156("div", { css: buttonWrapperStyle, children: [
|
|
59055
|
+
exportData.message && /* @__PURE__ */ jsx295("div", { css: titleStyle, children: exportData.message }),
|
|
59056
|
+
/* @__PURE__ */ jsxs156("div", { css: fileRowStyle, onClick: onDownloadClick, children: [
|
|
59057
|
+
/* @__PURE__ */ jsxs156("div", { css: fileInfoStyle, children: [
|
|
59058
|
+
/* @__PURE__ */ jsx295(EuiIcon10, { type: "document", size: "m" }),
|
|
59059
|
+
/* @__PURE__ */ jsx295("span", { css: filenameStyle, children: filename })
|
|
59060
|
+
] }),
|
|
59061
|
+
/* @__PURE__ */ jsx295("div", { css: downloadButtonStyle, children: isFetching ? /* @__PURE__ */ jsx295(EuiLoadingSpinner4, { size: "m" }) : /* @__PURE__ */ jsx295(EuiIcon10, { type: "download", size: "m" }) })
|
|
59062
|
+
] })
|
|
59063
|
+
] }) });
|
|
59064
|
+
}
|
|
59065
|
+
|
|
59066
|
+
// src/components/WfoAgent/ToolProgress/ToolProgress.tsx
|
|
59067
|
+
import { useState as useState64 } from "react";
|
|
59068
|
+
import { EuiFlexGroup as EuiFlexGroup49, EuiFlexItem as EuiFlexItem55, EuiLoadingSpinner as EuiLoadingSpinner5 } from "@elastic/eui";
|
|
59069
|
+
|
|
59070
|
+
// src/components/WfoAgent/ToolProgress/DiscoverFilterPathsDisplay.tsx
|
|
59071
|
+
import React93 from "react";
|
|
59072
|
+
import { EuiSpacer as EuiSpacer33, EuiText as EuiText61 } from "@elastic/eui";
|
|
59073
|
+
import { Fragment as Fragment70, jsx as jsx296, jsxs as jsxs157 } from "@emotion/react/jsx-runtime";
|
|
59074
|
+
var DiscoverFilterPathsDisplay = ({
|
|
59075
|
+
parameters,
|
|
59076
|
+
result
|
|
59077
|
+
}) => {
|
|
59078
|
+
const { field_names = [] } = parameters;
|
|
59079
|
+
const foundFields = result ? Object.entries(
|
|
59080
|
+
result
|
|
59081
|
+
).filter(([, fieldResult]) => fieldResult.status !== "NOT_FOUND") : [];
|
|
59082
|
+
const totalPaths = foundFields.reduce((count, [, fieldResult]) => {
|
|
59083
|
+
const pathCount = fieldResult.leaves?.reduce((leafCount, leaf) => {
|
|
59084
|
+
return leafCount + (leaf.paths?.length || 1);
|
|
59085
|
+
}, 0) || 0;
|
|
59086
|
+
return count + pathCount;
|
|
59087
|
+
}, 0);
|
|
59088
|
+
return /* @__PURE__ */ jsxs157("div", { children: [
|
|
59089
|
+
field_names.length > 0 && /* @__PURE__ */ jsxs157(Fragment70, { children: [
|
|
59090
|
+
/* @__PURE__ */ jsxs157(EuiText61, { size: "xs", color: "subdued", children: [
|
|
59091
|
+
"Looking for",
|
|
59092
|
+
" ",
|
|
59093
|
+
field_names.map((name, idx) => /* @__PURE__ */ jsxs157(React93.Fragment, { children: [
|
|
59094
|
+
idx > 0 && ", ",
|
|
59095
|
+
/* @__PURE__ */ jsx296(WfoBadge, { color: "hollow", textColor: "default", children: name })
|
|
59096
|
+
] }, name))
|
|
59097
|
+
] }),
|
|
59098
|
+
/* @__PURE__ */ jsx296(EuiSpacer33, { size: "s" })
|
|
59099
|
+
] }),
|
|
59100
|
+
result && totalPaths > 0 && /* @__PURE__ */ jsxs157("div", { children: [
|
|
59101
|
+
/* @__PURE__ */ jsx296(EuiText61, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsxs157("strong", { children: [
|
|
59102
|
+
"Found ",
|
|
59103
|
+
totalPaths,
|
|
59104
|
+
" path",
|
|
59105
|
+
totalPaths > 1 ? "s" : "",
|
|
59106
|
+
":"
|
|
59107
|
+
] }) }),
|
|
59108
|
+
/* @__PURE__ */ jsx296(EuiSpacer33, { size: "xs" }),
|
|
59109
|
+
foundFields.map(([fieldName, fieldResult]) => /* @__PURE__ */ jsx296("div", { style: { marginBottom: "8px" }, children: fieldResult.leaves && fieldResult.leaves.length > 0 && fieldResult.leaves.map(
|
|
59110
|
+
(leaf, leafIdx) => {
|
|
59111
|
+
const paths = leaf.paths || (leaf.name ? [leaf.name] : []);
|
|
59112
|
+
return /* @__PURE__ */ jsx296(React93.Fragment, { children: paths.map(
|
|
59113
|
+
(path, pathIdx) => /* @__PURE__ */ jsx296(
|
|
59114
|
+
"div",
|
|
59115
|
+
{
|
|
59116
|
+
style: {
|
|
59117
|
+
marginBottom: "4px"
|
|
59118
|
+
},
|
|
59119
|
+
children: /* @__PURE__ */ jsx296(
|
|
59120
|
+
WfoPathBreadcrumb,
|
|
59121
|
+
{
|
|
59122
|
+
path,
|
|
59123
|
+
size: "s"
|
|
59124
|
+
}
|
|
59125
|
+
)
|
|
59126
|
+
},
|
|
59127
|
+
pathIdx
|
|
59128
|
+
)
|
|
59129
|
+
) }, leafIdx);
|
|
59130
|
+
}
|
|
59131
|
+
) }, fieldName))
|
|
59132
|
+
] })
|
|
59133
|
+
] });
|
|
59134
|
+
};
|
|
59135
|
+
|
|
59136
|
+
// src/components/WfoAgent/ToolProgress/RunSearchDisplay.tsx
|
|
59137
|
+
import { EuiFlexGroup as EuiFlexGroup47, EuiFlexItem as EuiFlexItem53, EuiText as EuiText62 } from "@elastic/eui";
|
|
59138
|
+
import { jsx as jsx297, jsxs as jsxs158 } from "@emotion/react/jsx-runtime";
|
|
59139
|
+
var RunSearchDisplay = ({ parameters }) => {
|
|
59140
|
+
const { limit = 10 } = parameters;
|
|
59141
|
+
return /* @__PURE__ */ jsx297("div", { children: /* @__PURE__ */ jsxs158(EuiFlexGroup47, { gutterSize: "s", alignItems: "center", children: [
|
|
59142
|
+
/* @__PURE__ */ jsx297(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx297(EuiText62, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx297("strong", { children: "Results Limit" }) }) }),
|
|
59143
|
+
/* @__PURE__ */ jsx297(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx297(WfoBadge, { textColor: "default", color: "hollow", children: limit }) })
|
|
59144
|
+
] }) });
|
|
59145
|
+
};
|
|
58924
59146
|
|
|
58925
|
-
// src/components/WfoAgent/
|
|
59147
|
+
// src/components/WfoAgent/ToolProgress/SetFilterTreeDisplay.tsx
|
|
58926
59148
|
import { useTranslations as useTranslations107 } from "next-intl";
|
|
58927
|
-
import {
|
|
58928
|
-
EuiFlexGroup as EuiFlexGroup47,
|
|
58929
|
-
EuiFlexItem as EuiFlexItem53,
|
|
58930
|
-
EuiPanel as EuiPanel21,
|
|
58931
|
-
EuiSpacer as EuiSpacer33,
|
|
58932
|
-
EuiText as EuiText61
|
|
58933
|
-
} from "@elastic/eui";
|
|
59149
|
+
import { EuiText as EuiText63 } from "@elastic/eui";
|
|
58934
59150
|
|
|
58935
|
-
// src/components/WfoAgent/
|
|
58936
|
-
import { css as
|
|
59151
|
+
// src/components/WfoAgent/ToolProgress/SetFilterTreeDisplay.styles.ts
|
|
59152
|
+
import { css as css55 } from "@emotion/react";
|
|
58937
59153
|
var getFilterDisplayStyles = ({ theme }) => {
|
|
58938
|
-
const wrapStyle =
|
|
59154
|
+
const wrapStyle = css55({
|
|
58939
59155
|
display: "flex",
|
|
58940
59156
|
flexWrap: "wrap",
|
|
58941
59157
|
gap: theme.size.s
|
|
58942
59158
|
});
|
|
58943
|
-
const columnGroupWrapStyle =
|
|
59159
|
+
const columnGroupWrapStyle = css55({
|
|
58944
59160
|
display: "flex",
|
|
58945
59161
|
flexDirection: "column",
|
|
58946
59162
|
gap: theme.size.s,
|
|
58947
59163
|
alignItems: "flex-start"
|
|
58948
59164
|
});
|
|
58949
|
-
const chipStyle =
|
|
59165
|
+
const chipStyle = css55({
|
|
58950
59166
|
display: "inline-flex",
|
|
58951
59167
|
alignItems: "center",
|
|
58952
59168
|
borderRadius: theme.size.xl,
|
|
@@ -58956,14 +59172,14 @@ var getFilterDisplayStyles = ({ theme }) => {
|
|
|
58956
59172
|
lineHeight: 1.1,
|
|
58957
59173
|
gap: theme.size.s
|
|
58958
59174
|
});
|
|
58959
|
-
const groupStyle =
|
|
59175
|
+
const groupStyle = css55({
|
|
58960
59176
|
border: `1px solid ${theme.colors.lightShade}`,
|
|
58961
59177
|
borderRadius: theme.border.radius.medium,
|
|
58962
59178
|
padding: theme.size.s,
|
|
58963
59179
|
margin: theme.size.xs,
|
|
58964
59180
|
backgroundColor: theme.colors.body
|
|
58965
59181
|
});
|
|
58966
|
-
const operatorStyle =
|
|
59182
|
+
const operatorStyle = css55({
|
|
58967
59183
|
fontFamily: theme.font.familyCode,
|
|
58968
59184
|
padding: `${theme.size.xs}px ${theme.size.s}px`,
|
|
58969
59185
|
borderRadius: theme.size.s,
|
|
@@ -58973,7 +59189,7 @@ var getFilterDisplayStyles = ({ theme }) => {
|
|
|
58973
59189
|
fontWeight: theme.font.weight.bold,
|
|
58974
59190
|
margin: `${theme.size.xs} 0`
|
|
58975
59191
|
});
|
|
58976
|
-
const valueStyle =
|
|
59192
|
+
const valueStyle = css55({
|
|
58977
59193
|
fontWeight: theme.font.weight.semiBold,
|
|
58978
59194
|
color: theme.colors.warning
|
|
58979
59195
|
});
|
|
@@ -58987,10 +59203,12 @@ var getFilterDisplayStyles = ({ theme }) => {
|
|
|
58987
59203
|
};
|
|
58988
59204
|
};
|
|
58989
59205
|
|
|
58990
|
-
// src/components/WfoAgent/
|
|
58991
|
-
import { jsx as
|
|
59206
|
+
// src/components/WfoAgent/ToolProgress/SetFilterTreeDisplay.tsx
|
|
59207
|
+
import { jsx as jsx298, jsxs as jsxs159 } from "@emotion/react/jsx-runtime";
|
|
58992
59208
|
var DEPTH_INDENT = 16;
|
|
58993
|
-
|
|
59209
|
+
var SetFilterTreeDisplay = ({
|
|
59210
|
+
parameters
|
|
59211
|
+
}) => {
|
|
58994
59212
|
const t = useTranslations107("agent.page");
|
|
58995
59213
|
const {
|
|
58996
59214
|
wrapStyle,
|
|
@@ -59000,9 +59218,7 @@ function FilterDisplay({ parameters }) {
|
|
|
59000
59218
|
operatorStyle,
|
|
59001
59219
|
valueStyle
|
|
59002
59220
|
} = useWithOrchestratorTheme(getFilterDisplayStyles);
|
|
59003
|
-
const
|
|
59004
|
-
if (!parameters || Object.keys(parameters).length === 0) return null;
|
|
59005
|
-
const sectionTitle = (text) => /* @__PURE__ */ jsx296(EuiText61, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx296("strong", { children: text }) });
|
|
59221
|
+
const filters = parameters?.filters || parameters;
|
|
59006
59222
|
const formatFilterValue = (condition) => {
|
|
59007
59223
|
if ("value" in condition && condition.value !== void 0) {
|
|
59008
59224
|
if (condition.op === "between" && condition.value && typeof condition.value === "object") {
|
|
@@ -59017,13 +59233,13 @@ function FilterDisplay({ parameters }) {
|
|
|
59017
59233
|
};
|
|
59018
59234
|
const renderFilterGroup = (group, depth = 0) => {
|
|
59019
59235
|
if (!group.children || group.children.length === 0) {
|
|
59020
|
-
return /* @__PURE__ */
|
|
59236
|
+
return /* @__PURE__ */ jsx298(EuiText63, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx298("em", { children: t("emptyGroup") }) });
|
|
59021
59237
|
}
|
|
59022
59238
|
const areChildrenGroups = group.children.length > 0 && !isCondition(group.children[0]);
|
|
59023
|
-
return /* @__PURE__ */
|
|
59024
|
-
/* @__PURE__ */
|
|
59025
|
-
/* @__PURE__ */
|
|
59026
|
-
/* @__PURE__ */
|
|
59239
|
+
return /* @__PURE__ */ jsxs159("div", { css: groupStyle, style: { marginLeft: depth * DEPTH_INDENT }, children: [
|
|
59240
|
+
/* @__PURE__ */ jsx298("div", { css: operatorStyle, children: group.op }),
|
|
59241
|
+
/* @__PURE__ */ jsx298("div", { css: areChildrenGroups ? columnGroupWrapStyle : wrapStyle, children: group.children.map((child, i) => /* @__PURE__ */ jsx298("div", { children: isCondition(child) ? /* @__PURE__ */ jsxs159("div", { css: chipStyle, children: [
|
|
59242
|
+
/* @__PURE__ */ jsx298(
|
|
59027
59243
|
WfoPathBreadcrumb,
|
|
59028
59244
|
{
|
|
59029
59245
|
path: child.path,
|
|
@@ -59031,7 +59247,7 @@ function FilterDisplay({ parameters }) {
|
|
|
59031
59247
|
showArrows: true
|
|
59032
59248
|
}
|
|
59033
59249
|
),
|
|
59034
|
-
/* @__PURE__ */
|
|
59250
|
+
/* @__PURE__ */ jsx298(
|
|
59035
59251
|
WfoBadge,
|
|
59036
59252
|
{
|
|
59037
59253
|
textColor: "default",
|
|
@@ -59048,49 +59264,204 @@ function FilterDisplay({ parameters }) {
|
|
|
59048
59264
|
).symbol
|
|
59049
59265
|
}
|
|
59050
59266
|
),
|
|
59051
|
-
/* @__PURE__ */
|
|
59267
|
+
/* @__PURE__ */ jsx298("span", { css: valueStyle, children: formatFilterValue(child.condition) })
|
|
59052
59268
|
] }) : renderFilterGroup(child, depth + 1) }, i)) })
|
|
59053
59269
|
] });
|
|
59054
59270
|
};
|
|
59055
|
-
|
|
59056
|
-
/* @__PURE__ */
|
|
59057
|
-
|
|
59058
|
-
|
|
59059
|
-
|
|
59060
|
-
|
|
59061
|
-
|
|
59062
|
-
|
|
59063
|
-
|
|
59064
|
-
|
|
59065
|
-
|
|
59271
|
+
if (!filters || !filters.children || filters.children.length === 0) {
|
|
59272
|
+
return /* @__PURE__ */ jsx298(EuiText63, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx298("em", { children: t("noFiltersApplied") }) });
|
|
59273
|
+
}
|
|
59274
|
+
return /* @__PURE__ */ jsx298("div", { children: renderFilterGroup(filters) });
|
|
59275
|
+
};
|
|
59276
|
+
|
|
59277
|
+
// src/components/WfoAgent/ToolProgress/StartNewSearchDisplay.tsx
|
|
59278
|
+
import { EuiFlexGroup as EuiFlexGroup48, EuiFlexItem as EuiFlexItem54, EuiSpacer as EuiSpacer34, EuiText as EuiText64 } from "@elastic/eui";
|
|
59279
|
+
import { Fragment as Fragment71, jsx as jsx299, jsxs as jsxs160 } from "@emotion/react/jsx-runtime";
|
|
59280
|
+
var StartNewSearchDisplay = ({
|
|
59281
|
+
parameters
|
|
59282
|
+
}) => {
|
|
59283
|
+
const { entity_type, action, query } = parameters;
|
|
59284
|
+
return /* @__PURE__ */ jsxs160("div", { children: [
|
|
59285
|
+
/* @__PURE__ */ jsxs160(EuiFlexGroup48, { gutterSize: "s", wrap: true, children: [
|
|
59286
|
+
entity_type && /* @__PURE__ */ jsxs160(EuiFlexItem54, { grow: false, children: [
|
|
59287
|
+
/* @__PURE__ */ jsx299(EuiText64, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx299("strong", { children: "Entity Type" }) }),
|
|
59288
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "xs" }),
|
|
59289
|
+
/* @__PURE__ */ jsx299(WfoBadge, { textColor: "default", color: "hollow", children: entity_type })
|
|
59066
59290
|
] }),
|
|
59067
|
-
|
|
59068
|
-
|
|
59069
|
-
/* @__PURE__ */
|
|
59070
|
-
/* @__PURE__ */
|
|
59071
|
-
|
|
59072
|
-
query,
|
|
59073
|
-
'"'
|
|
59074
|
-
] }) })
|
|
59075
|
-
] }) : null
|
|
59291
|
+
action && /* @__PURE__ */ jsxs160(EuiFlexItem54, { grow: false, children: [
|
|
59292
|
+
/* @__PURE__ */ jsx299(EuiText64, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx299("strong", { children: "Action" }) }),
|
|
59293
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "xs" }),
|
|
59294
|
+
/* @__PURE__ */ jsx299(WfoBadge, { textColor: "default", color: "hollow", children: action })
|
|
59295
|
+
] })
|
|
59076
59296
|
] }),
|
|
59077
|
-
/* @__PURE__ */
|
|
59078
|
-
|
|
59079
|
-
|
|
59080
|
-
|
|
59297
|
+
query && /* @__PURE__ */ jsxs160(Fragment71, { children: [
|
|
59298
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "s" }),
|
|
59299
|
+
/* @__PURE__ */ jsx299(EuiText64, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx299("strong", { children: "Query" }) }),
|
|
59300
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "xs" }),
|
|
59301
|
+
/* @__PURE__ */ jsx299(EuiText64, { size: "s", children: /* @__PURE__ */ jsxs160("em", { children: [
|
|
59302
|
+
'"',
|
|
59303
|
+
query,
|
|
59304
|
+
'"'
|
|
59305
|
+
] }) })
|
|
59306
|
+
] })
|
|
59081
59307
|
] });
|
|
59082
|
-
}
|
|
59308
|
+
};
|
|
59309
|
+
|
|
59310
|
+
// src/components/WfoAgent/ToolProgress/styles.ts
|
|
59311
|
+
import { css as css56 } from "@emotion/react";
|
|
59312
|
+
var getToolProgressStyles = ({ theme }) => {
|
|
59313
|
+
const containerStyle = css56({
|
|
59314
|
+
border: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
|
|
59315
|
+
borderRadius: theme.border.radius.medium,
|
|
59316
|
+
backgroundColor: theme.colors.emptyShade,
|
|
59317
|
+
transition: `all ${theme.animation.normal} ease`
|
|
59318
|
+
});
|
|
59319
|
+
const containerClickableStyle = css56({
|
|
59320
|
+
cursor: "pointer",
|
|
59321
|
+
"&:hover": {
|
|
59322
|
+
borderColor: theme.colors.primary,
|
|
59323
|
+
backgroundColor: theme.colors.lightestShade
|
|
59324
|
+
}
|
|
59325
|
+
});
|
|
59326
|
+
const headerStyle = css56({
|
|
59327
|
+
padding: `${theme.size.base} ${theme.size.l}`
|
|
59328
|
+
});
|
|
59329
|
+
const nameStyle = css56({
|
|
59330
|
+
fontSize: theme.size.m,
|
|
59331
|
+
fontWeight: theme.font.weight.medium
|
|
59332
|
+
});
|
|
59333
|
+
const expandedContentStyle = css56({
|
|
59334
|
+
borderTop: `${theme.border.width.thin} solid ${theme.colors.lightShade}`,
|
|
59335
|
+
padding: `${theme.size.base} ${theme.size.l}`
|
|
59336
|
+
});
|
|
59337
|
+
const iconSize = 18;
|
|
59338
|
+
const iconStyle = css56({
|
|
59339
|
+
color: theme.colors.subduedText
|
|
59340
|
+
});
|
|
59341
|
+
return {
|
|
59342
|
+
containerStyle,
|
|
59343
|
+
containerClickableStyle,
|
|
59344
|
+
headerStyle,
|
|
59345
|
+
nameStyle,
|
|
59346
|
+
expandedContentStyle,
|
|
59347
|
+
iconSize,
|
|
59348
|
+
iconStyle
|
|
59349
|
+
};
|
|
59350
|
+
};
|
|
59351
|
+
|
|
59352
|
+
// src/components/WfoAgent/ToolProgress/ToolProgress.tsx
|
|
59353
|
+
import { jsx as jsx300, jsxs as jsxs161 } from "@emotion/react/jsx-runtime";
|
|
59354
|
+
var TOOL_DISPLAY_COMPONENTS = {
|
|
59355
|
+
set_filter_tree: SetFilterTreeDisplay,
|
|
59356
|
+
start_new_search: StartNewSearchDisplay,
|
|
59357
|
+
run_search: RunSearchDisplay,
|
|
59358
|
+
discover_filter_paths: DiscoverFilterPathsDisplay
|
|
59359
|
+
};
|
|
59360
|
+
var ToolProgress = ({
|
|
59361
|
+
name,
|
|
59362
|
+
status,
|
|
59363
|
+
args,
|
|
59364
|
+
result
|
|
59365
|
+
}) => {
|
|
59366
|
+
const [isExpanded, setIsExpanded] = useState64(false);
|
|
59367
|
+
const {
|
|
59368
|
+
containerStyle,
|
|
59369
|
+
containerClickableStyle,
|
|
59370
|
+
headerStyle,
|
|
59371
|
+
nameStyle,
|
|
59372
|
+
expandedContentStyle,
|
|
59373
|
+
iconSize,
|
|
59374
|
+
iconStyle
|
|
59375
|
+
} = useWithOrchestratorTheme(getToolProgressStyles);
|
|
59376
|
+
const { theme } = useOrchestratorTheme();
|
|
59377
|
+
const renderStatus = () => {
|
|
59378
|
+
if (status === "complete") {
|
|
59379
|
+
return /* @__PURE__ */ jsx300(
|
|
59380
|
+
WfoCheckmarkCircleFill,
|
|
59381
|
+
{
|
|
59382
|
+
color: theme.colors.success,
|
|
59383
|
+
width: iconSize,
|
|
59384
|
+
height: iconSize
|
|
59385
|
+
}
|
|
59386
|
+
);
|
|
59387
|
+
}
|
|
59388
|
+
if (status === "inProgress" || status === "executing") {
|
|
59389
|
+
return /* @__PURE__ */ jsx300(EuiLoadingSpinner5, { size: "s" });
|
|
59390
|
+
}
|
|
59391
|
+
if (status === "failed") {
|
|
59392
|
+
return /* @__PURE__ */ jsx300(
|
|
59393
|
+
WfoXCircleFill,
|
|
59394
|
+
{
|
|
59395
|
+
color: theme.colors.danger,
|
|
59396
|
+
width: iconSize,
|
|
59397
|
+
height: iconSize
|
|
59398
|
+
}
|
|
59399
|
+
);
|
|
59400
|
+
}
|
|
59401
|
+
return null;
|
|
59402
|
+
};
|
|
59403
|
+
const DisplayComponent = TOOL_DISPLAY_COMPONENTS[name];
|
|
59404
|
+
const hasArgs = DisplayComponent && args;
|
|
59405
|
+
return /* @__PURE__ */ jsxs161("div", { css: containerStyle, children: [
|
|
59406
|
+
/* @__PURE__ */ jsx300(
|
|
59407
|
+
"div",
|
|
59408
|
+
{
|
|
59409
|
+
css: hasArgs && containerClickableStyle,
|
|
59410
|
+
onClick: () => hasArgs && setIsExpanded(!isExpanded),
|
|
59411
|
+
children: /* @__PURE__ */ jsxs161(
|
|
59412
|
+
EuiFlexGroup49,
|
|
59413
|
+
{
|
|
59414
|
+
gutterSize: "m",
|
|
59415
|
+
alignItems: "center",
|
|
59416
|
+
css: headerStyle,
|
|
59417
|
+
children: [
|
|
59418
|
+
/* @__PURE__ */ jsx300(EuiFlexItem55, { grow: false, children: /* @__PURE__ */ jsx300("div", { css: iconStyle, children: /* @__PURE__ */ jsx300(WfoWrench, { width: iconSize, height: iconSize }) }) }),
|
|
59419
|
+
/* @__PURE__ */ jsx300(EuiFlexItem55, { grow: true, children: /* @__PURE__ */ jsx300("span", { css: nameStyle, children: name }) }),
|
|
59420
|
+
/* @__PURE__ */ jsx300(
|
|
59421
|
+
EuiFlexItem55,
|
|
59422
|
+
{
|
|
59423
|
+
grow: false,
|
|
59424
|
+
style: { minWidth: `${iconSize}px` },
|
|
59425
|
+
children: renderStatus()
|
|
59426
|
+
}
|
|
59427
|
+
),
|
|
59428
|
+
/* @__PURE__ */ jsx300(
|
|
59429
|
+
EuiFlexItem55,
|
|
59430
|
+
{
|
|
59431
|
+
grow: false,
|
|
59432
|
+
style: { minWidth: `${iconSize}px` },
|
|
59433
|
+
children: hasArgs && (isExpanded ? /* @__PURE__ */ jsx300(
|
|
59434
|
+
WfoChevronUp,
|
|
59435
|
+
{
|
|
59436
|
+
width: iconSize,
|
|
59437
|
+
height: iconSize
|
|
59438
|
+
}
|
|
59439
|
+
) : /* @__PURE__ */ jsx300(
|
|
59440
|
+
WfoChevronDown,
|
|
59441
|
+
{
|
|
59442
|
+
width: iconSize,
|
|
59443
|
+
height: iconSize
|
|
59444
|
+
}
|
|
59445
|
+
))
|
|
59446
|
+
}
|
|
59447
|
+
)
|
|
59448
|
+
]
|
|
59449
|
+
}
|
|
59450
|
+
)
|
|
59451
|
+
}
|
|
59452
|
+
),
|
|
59453
|
+
hasArgs && isExpanded && /* @__PURE__ */ jsx300("div", { css: expandedContentStyle, children: /* @__PURE__ */ jsx300(DisplayComponent, { parameters: args, result }) })
|
|
59454
|
+
] });
|
|
59455
|
+
};
|
|
59083
59456
|
|
|
59084
59457
|
// src/components/WfoAgent/WfoAgent/WfoAgent.tsx
|
|
59085
|
-
import { jsx as
|
|
59458
|
+
import { Fragment as Fragment72, jsx as jsx301, jsxs as jsxs162 } from "@emotion/react/jsx-runtime";
|
|
59086
59459
|
var initialState3 = {
|
|
59087
|
-
|
|
59088
|
-
|
|
59089
|
-
|
|
59090
|
-
|
|
59091
|
-
|
|
59092
|
-
},
|
|
59093
|
-
results: []
|
|
59460
|
+
run_id: null,
|
|
59461
|
+
query_id: null,
|
|
59462
|
+
parameters: null,
|
|
59463
|
+
results_data: null,
|
|
59464
|
+
export_data: null
|
|
59094
59465
|
};
|
|
59095
59466
|
function WfoAgent() {
|
|
59096
59467
|
const t = useTranslations108("agent");
|
|
@@ -59099,39 +59470,57 @@ function WfoAgent() {
|
|
|
59099
59470
|
name: "query_agent",
|
|
59100
59471
|
initialState: initialState3
|
|
59101
59472
|
});
|
|
59102
|
-
const {
|
|
59103
|
-
|
|
59104
|
-
|
|
59105
|
-
|
|
59106
|
-
|
|
59107
|
-
|
|
59108
|
-
|
|
59109
|
-
|
|
59110
|
-
|
|
59111
|
-
|
|
59112
|
-
|
|
59113
|
-
/* @__PURE__ */ jsx297(EuiText62, { size: "s", children: /* @__PURE__ */ jsx297("h2", { children: tPage("filledParameters") }) }),
|
|
59114
|
-
/* @__PURE__ */ jsx297(EuiSpacer34, { size: "s" }),
|
|
59115
|
-
displayParameters && /* @__PURE__ */ jsx297(FilterDisplay, { parameters: displayParameters }),
|
|
59116
|
-
/* @__PURE__ */ jsx297(EuiSpacer34, { size: "m" }),
|
|
59117
|
-
/* @__PURE__ */ jsx297(EuiText62, { size: "s", children: /* @__PURE__ */ jsxs159("h2", { children: [
|
|
59118
|
-
tPage("results"),
|
|
59119
|
-
" ",
|
|
59120
|
-
results ? `(${results.length})` : ""
|
|
59121
|
-
] }) }),
|
|
59122
|
-
/* @__PURE__ */ jsx297(EuiSpacer34, { size: "s" }),
|
|
59123
|
-
/* @__PURE__ */ jsx297(
|
|
59124
|
-
WfoSearchResults,
|
|
59473
|
+
const { results_data } = state;
|
|
59474
|
+
useCopilotAction({
|
|
59475
|
+
name: "*",
|
|
59476
|
+
render: ({
|
|
59477
|
+
name,
|
|
59478
|
+
status,
|
|
59479
|
+
args,
|
|
59480
|
+
result
|
|
59481
|
+
}) => {
|
|
59482
|
+
return /* @__PURE__ */ jsx301(
|
|
59483
|
+
ToolProgress,
|
|
59125
59484
|
{
|
|
59126
|
-
|
|
59127
|
-
|
|
59128
|
-
|
|
59129
|
-
|
|
59130
|
-
}
|
|
59485
|
+
name,
|
|
59486
|
+
status,
|
|
59487
|
+
args,
|
|
59488
|
+
result
|
|
59131
59489
|
}
|
|
59132
|
-
)
|
|
59490
|
+
);
|
|
59491
|
+
}
|
|
59492
|
+
});
|
|
59493
|
+
useCoAgentStateRender({
|
|
59494
|
+
name: "query_agent",
|
|
59495
|
+
render: ({ state: state2 }) => {
|
|
59496
|
+
if (!state2?.export_data || state2.export_data.action !== "export") {
|
|
59497
|
+
return null;
|
|
59498
|
+
}
|
|
59499
|
+
return /* @__PURE__ */ jsx301(ExportButton, { exportData: state2.export_data });
|
|
59500
|
+
}
|
|
59501
|
+
});
|
|
59502
|
+
return /* @__PURE__ */ jsxs162(EuiFlexGroup50, { gutterSize: "l", alignItems: "stretch", children: [
|
|
59503
|
+
/* @__PURE__ */ jsxs162(EuiFlexItem56, { grow: 2, children: [
|
|
59504
|
+
/* @__PURE__ */ jsx301(EuiText65, { children: /* @__PURE__ */ jsx301("h1", { children: t("title") }) }),
|
|
59505
|
+
/* @__PURE__ */ jsx301(EuiSpacer35, { size: "m" }),
|
|
59506
|
+
results_data && results_data.action === "view_results" && /* @__PURE__ */ jsxs162(Fragment72, { children: [
|
|
59507
|
+
results_data.message && /* @__PURE__ */ jsxs162(Fragment72, { children: [
|
|
59508
|
+
/* @__PURE__ */ jsx301(EuiText65, { size: "s", children: /* @__PURE__ */ jsx301("p", { children: results_data.message }) }),
|
|
59509
|
+
/* @__PURE__ */ jsx301(EuiSpacer35, { size: "s" })
|
|
59510
|
+
] }),
|
|
59511
|
+
/* @__PURE__ */ jsx301(
|
|
59512
|
+
WfoSearchResults,
|
|
59513
|
+
{
|
|
59514
|
+
results: results_data.results,
|
|
59515
|
+
loading: false,
|
|
59516
|
+
selectedRecordIndex: -1,
|
|
59517
|
+
onRecordSelect: () => {
|
|
59518
|
+
}
|
|
59519
|
+
}
|
|
59520
|
+
)
|
|
59521
|
+
] })
|
|
59133
59522
|
] }),
|
|
59134
|
-
/* @__PURE__ */
|
|
59523
|
+
/* @__PURE__ */ jsx301(EuiFlexItem56, { grow: 1, children: /* @__PURE__ */ jsx301(
|
|
59135
59524
|
CopilotSidebar,
|
|
59136
59525
|
{
|
|
59137
59526
|
defaultOpen: true,
|
|
@@ -59146,14 +59535,14 @@ function WfoAgent() {
|
|
|
59146
59535
|
}
|
|
59147
59536
|
|
|
59148
59537
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
59149
|
-
import { useCallback as
|
|
59150
|
-
import { EuiFlexItem as
|
|
59538
|
+
import { useCallback as useCallback15, useEffect as useEffect46, useState as useState65 } from "react";
|
|
59539
|
+
import { EuiFlexItem as EuiFlexItem57 } from "@elastic/eui";
|
|
59151
59540
|
import Editor from "@monaco-editor/react";
|
|
59152
59541
|
|
|
59153
59542
|
// src/components/WfoMonacoCodeBlock/styles.ts
|
|
59154
|
-
import { css as
|
|
59543
|
+
import { css as css57 } from "@emotion/react";
|
|
59155
59544
|
var getStyles15 = ({ theme }) => {
|
|
59156
|
-
const monacoEditorStyle =
|
|
59545
|
+
const monacoEditorStyle = css57({
|
|
59157
59546
|
marginTop: 10,
|
|
59158
59547
|
padding: 10,
|
|
59159
59548
|
backgroundColor: theme.colors.body,
|
|
@@ -59165,7 +59554,7 @@ var getStyles15 = ({ theme }) => {
|
|
|
59165
59554
|
};
|
|
59166
59555
|
|
|
59167
59556
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
59168
|
-
import { jsx as
|
|
59557
|
+
import { jsx as jsx302 } from "@emotion/react/jsx-runtime";
|
|
59169
59558
|
var MONACO_THEME = {
|
|
59170
59559
|
light: "vs",
|
|
59171
59560
|
dark: "hc-black"
|
|
@@ -59178,7 +59567,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
59178
59567
|
);
|
|
59179
59568
|
const json = JSON.stringify(data, null, 4);
|
|
59180
59569
|
const [editorHeight, setEditorHeight] = useState65(0);
|
|
59181
|
-
const addThemeToEditor =
|
|
59570
|
+
const addThemeToEditor = useCallback15(
|
|
59182
59571
|
(monaco) => {
|
|
59183
59572
|
monaco.editor.defineTheme("wfoTheme", {
|
|
59184
59573
|
base: isDarkThemeActive ? MONACO_THEME.dark : MONACO_THEME.light,
|
|
@@ -59192,7 +59581,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
59192
59581
|
},
|
|
59193
59582
|
[theme, isDarkThemeActive]
|
|
59194
59583
|
);
|
|
59195
|
-
|
|
59584
|
+
useEffect46(() => {
|
|
59196
59585
|
if (monacoInstance) {
|
|
59197
59586
|
addThemeToEditor(monacoInstance);
|
|
59198
59587
|
}
|
|
@@ -59202,7 +59591,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
59202
59591
|
setEditorHeight(Math.min(scrollHeight, 500));
|
|
59203
59592
|
setMonacoInstance(monaco);
|
|
59204
59593
|
}
|
|
59205
|
-
return /* @__PURE__ */
|
|
59594
|
+
return /* @__PURE__ */ jsx302(EuiFlexItem57, { css: monacoEditorStyle, children: /* @__PURE__ */ jsx302(
|
|
59206
59595
|
Editor,
|
|
59207
59596
|
{
|
|
59208
59597
|
height: editorHeight,
|
|
@@ -59226,16 +59615,16 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
59226
59615
|
};
|
|
59227
59616
|
|
|
59228
59617
|
// src/components/WfoLogoSpinner/styles.ts
|
|
59229
|
-
import { css as
|
|
59618
|
+
import { css as css58 } from "@emotion/react";
|
|
59230
59619
|
var getWfoLogoSpinnerStyles = () => {
|
|
59231
|
-
const spinCenteringCss =
|
|
59620
|
+
const spinCenteringCss = css58({
|
|
59232
59621
|
width: "100vw",
|
|
59233
59622
|
height: "100vh",
|
|
59234
59623
|
display: "flex",
|
|
59235
59624
|
alignItems: "center",
|
|
59236
59625
|
justifyContent: "center"
|
|
59237
59626
|
});
|
|
59238
|
-
const spinContainerCss =
|
|
59627
|
+
const spinContainerCss = css58({
|
|
59239
59628
|
display: "flex",
|
|
59240
59629
|
alignItems: "center",
|
|
59241
59630
|
width: "80px",
|
|
@@ -59245,7 +59634,7 @@ var getWfoLogoSpinnerStyles = () => {
|
|
|
59245
59634
|
backgroundColor: "#04385F",
|
|
59246
59635
|
borderRadius: "8px"
|
|
59247
59636
|
});
|
|
59248
|
-
const spinPathCss =
|
|
59637
|
+
const spinPathCss = css58({
|
|
59249
59638
|
transformBox: "fill-box",
|
|
59250
59639
|
transformOrigin: "center",
|
|
59251
59640
|
animation: "spin 3s linear infinite",
|
|
@@ -59262,10 +59651,10 @@ var getWfoLogoSpinnerStyles = () => {
|
|
|
59262
59651
|
};
|
|
59263
59652
|
|
|
59264
59653
|
// src/components/WfoLogoSpinner/WfoLogoSpinner.tsx
|
|
59265
|
-
import { jsx as
|
|
59654
|
+
import { jsx as jsx303, jsxs as jsxs163 } from "@emotion/react/jsx-runtime";
|
|
59266
59655
|
var WfoLogoSpinner = () => {
|
|
59267
59656
|
const { spinContainerCss, spinCenteringCss, spinPathCss } = getWfoLogoSpinnerStyles();
|
|
59268
|
-
return /* @__PURE__ */
|
|
59657
|
+
return /* @__PURE__ */ jsx303("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx303("div", { css: spinContainerCss, children: /* @__PURE__ */ jsxs163(
|
|
59269
59658
|
"svg",
|
|
59270
59659
|
{
|
|
59271
59660
|
width: "64",
|
|
@@ -59274,7 +59663,7 @@ var WfoLogoSpinner = () => {
|
|
|
59274
59663
|
fill: "none",
|
|
59275
59664
|
xmlns: "http://www.w3.org/2000/svg",
|
|
59276
59665
|
children: [
|
|
59277
|
-
/* @__PURE__ */
|
|
59666
|
+
/* @__PURE__ */ jsx303(
|
|
59278
59667
|
"path",
|
|
59279
59668
|
{
|
|
59280
59669
|
css: spinPathCss,
|
|
@@ -59284,7 +59673,7 @@ var WfoLogoSpinner = () => {
|
|
|
59284
59673
|
fill: "#76B5E0"
|
|
59285
59674
|
}
|
|
59286
59675
|
),
|
|
59287
|
-
/* @__PURE__ */
|
|
59676
|
+
/* @__PURE__ */ jsx303(
|
|
59288
59677
|
"path",
|
|
59289
59678
|
{
|
|
59290
59679
|
fillRule: "evenodd",
|
|
@@ -59633,6 +60022,8 @@ var en_GB_default = {
|
|
|
59633
60022
|
tasks: "Tasks",
|
|
59634
60023
|
terminate: "Terminate workflow",
|
|
59635
60024
|
reconcile: "Reconcile workflow",
|
|
60025
|
+
actionStarted: "Action started",
|
|
60026
|
+
actionStartFailed: "Action failed",
|
|
59636
60027
|
actions: "Actions",
|
|
59637
60028
|
lockedBySubscriptions: "This action is locked by the following subscriptions:",
|
|
59638
60029
|
notAvailable: "Not available",
|
|
@@ -59796,7 +60187,6 @@ var en_GB_default = {
|
|
|
59796
60187
|
title: "Search results",
|
|
59797
60188
|
page: {
|
|
59798
60189
|
filledParameters: "Filled parameters",
|
|
59799
|
-
results: "Results",
|
|
59800
60190
|
emptyGroup: "Empty group",
|
|
59801
60191
|
searchQuery: "Search query",
|
|
59802
60192
|
activeFilters: "Active filters",
|
|
@@ -59805,7 +60195,7 @@ var en_GB_default = {
|
|
|
59805
60195
|
action: "Action",
|
|
59806
60196
|
copilot: {
|
|
59807
60197
|
title: "Database assistant",
|
|
59808
|
-
initial: "Ask me things such as:\n\u2022 *Find active subscriptions
|
|
60198
|
+
initial: "Ask me things such as:\n\u2022 *Find active subscriptions*\n\u2022 *Show terminated workflows\u201D*\n\nThe filled template and results will appear on the left."
|
|
59809
60199
|
}
|
|
59810
60200
|
}
|
|
59811
60201
|
},
|
|
@@ -59842,7 +60232,6 @@ var en_GB_default = {
|
|
|
59842
60232
|
resultsOnPage: "{resultCount} result(s) on this page",
|
|
59843
60233
|
searchResultsPagination: "Search results pagination",
|
|
59844
60234
|
viewDetails: "View details",
|
|
59845
|
-
closeButton: "Close",
|
|
59846
60235
|
selectOrEnterValue: "Select or type value",
|
|
59847
60236
|
enterValue: "Enter value",
|
|
59848
60237
|
fromNumber: "From",
|
|
@@ -60188,6 +60577,8 @@ var nl_NL_default = {
|
|
|
60188
60577
|
reconcileSubscription: "Reconcile subscription",
|
|
60189
60578
|
validateSubscription: "Validate subscription",
|
|
60190
60579
|
actions: "Acties",
|
|
60580
|
+
actionStarted: "Actie gestart",
|
|
60581
|
+
actionStartFailed: "Actie mislukt",
|
|
60191
60582
|
lockedBySubscriptions: "Deze actie is geblokkeerd door de volgende subscriptions:",
|
|
60192
60583
|
subscription: {
|
|
60193
60584
|
no_modify_deleted_related_objects: "Deze subscription kan niet worden gewijzigd omdat het verwijzingen bevat naar andere systemen die zijn verwijderd.",
|
|
@@ -60402,7 +60793,6 @@ export {
|
|
|
60402
60793
|
ErrorField,
|
|
60403
60794
|
ErrorsField,
|
|
60404
60795
|
FileUploadField,
|
|
60405
|
-
FilterDisplay,
|
|
60406
60796
|
FilterGroup,
|
|
60407
60797
|
Footer,
|
|
60408
60798
|
HIDDEN_KEYS,
|
|
@@ -60684,7 +61074,6 @@ export {
|
|
|
60684
61074
|
WfoSubmitModal,
|
|
60685
61075
|
WfoSubscription,
|
|
60686
61076
|
WfoSubscriptionActions,
|
|
60687
|
-
WfoSubscriptionDetailModal,
|
|
60688
61077
|
WfoSubscriptionDetailNoteEdit,
|
|
60689
61078
|
WfoSubscriptionDetailPage,
|
|
60690
61079
|
WfoSubscriptionDetailSection,
|
|
@@ -60758,7 +61147,6 @@ export {
|
|
|
60758
61147
|
emptyOrchestratorConfig,
|
|
60759
61148
|
emptyWfoErrorMonitoring,
|
|
60760
61149
|
filterDataByCriteria,
|
|
60761
|
-
findResultIndexById,
|
|
60762
61150
|
flattenArrayProps,
|
|
60763
61151
|
formatDate,
|
|
60764
61152
|
formatDateCetWithUtc,
|
|
@@ -60777,9 +61165,7 @@ export {
|
|
|
60777
61165
|
getDataTestId,
|
|
60778
61166
|
getDate,
|
|
60779
61167
|
getDefaultTableConfig,
|
|
60780
|
-
getDescription,
|
|
60781
61168
|
getDetailUrl,
|
|
60782
|
-
getDisplayText,
|
|
60783
61169
|
getEndpointPath,
|
|
60784
61170
|
getEnvironmentVariables,
|
|
60785
61171
|
getFieldFromProductBlockInstanceValues,
|
|
@@ -60807,7 +61193,6 @@ export {
|
|
|
60807
61193
|
getQueryStringHandler,
|
|
60808
61194
|
getQueryUrl,
|
|
60809
61195
|
getQueryVariablesForExport,
|
|
60810
|
-
getRecordId,
|
|
60811
61196
|
getRowDetailData,
|
|
60812
61197
|
getSortDirectionFromString,
|
|
60813
61198
|
getStatusBadgeColor,
|