@orchestrator-ui/orchestrator-ui-components 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +75 -2
- package/dist/index.js +594 -321
- package/package.json +1 -1
- package/src/components/WfoBadges/WfoProductBlockBadge/WfoProductBlockBadge.tsx +1 -0
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +10 -0
- package/src/components/WfoPageTemplate/paths.ts +1 -0
- package/src/components/WfoTable/utils/constants.ts +1 -0
- package/src/messages/en-GB.json +10 -1
- package/src/messages/nl-NL.json +10 -1
- package/src/pages/metadata/WfoMetadataPageLayout.tsx +6 -1
- package/src/pages/metadata/WfoTasksPage.tsx +226 -0
- package/src/pages/metadata/WfoWorkflowsPage.tsx +5 -4
- package/src/pages/metadata/index.ts +1 -0
- package/src/pages/metadata/taskListObjectMapper.ts +40 -0
- package/src/rtk/endpoints/metadata/index.ts +1 -0
- package/src/rtk/endpoints/metadata/tasks.ts +74 -0
- package/src/types/types.ts +13 -0
- package/src/utils/getDefaultTableConfig.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -23127,10 +23127,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
23127
23127
|
var require_jsx = __commonJS({
|
|
23128
23128
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
23129
23129
|
"use strict";
|
|
23130
|
-
module.exports =
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
function
|
|
23130
|
+
module.exports = jsx184;
|
|
23131
|
+
jsx184.displayName = "jsx";
|
|
23132
|
+
jsx184.aliases = [];
|
|
23133
|
+
function jsx184(Prism) {
|
|
23134
23134
|
;
|
|
23135
23135
|
(function(Prism2) {
|
|
23136
23136
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -40738,6 +40738,62 @@ var workflowsApi = orchestratorApi.injectEndpoints({
|
|
|
40738
40738
|
});
|
|
40739
40739
|
var { useGetWorkflowsQuery, useLazyGetWorkflowsQuery } = workflowsApi;
|
|
40740
40740
|
|
|
40741
|
+
// src/rtk/endpoints/metadata/tasks.ts
|
|
40742
|
+
var tasksQuery = `
|
|
40743
|
+
query MetadataWorkflows(
|
|
40744
|
+
$first: Int!
|
|
40745
|
+
$after: Int!
|
|
40746
|
+
$sortBy: [GraphqlSort!]
|
|
40747
|
+
$query: String
|
|
40748
|
+
) {
|
|
40749
|
+
workflows(
|
|
40750
|
+
first: $first
|
|
40751
|
+
after: $after
|
|
40752
|
+
sortBy: $sortBy
|
|
40753
|
+
query: $query
|
|
40754
|
+
filterBy: { field: "target", value: "SYSTEM" }
|
|
40755
|
+
) {
|
|
40756
|
+
page {
|
|
40757
|
+
name
|
|
40758
|
+
description
|
|
40759
|
+
target
|
|
40760
|
+
products {
|
|
40761
|
+
tag
|
|
40762
|
+
}
|
|
40763
|
+
createdAt
|
|
40764
|
+
}
|
|
40765
|
+
pageInfo {
|
|
40766
|
+
endCursor
|
|
40767
|
+
hasNextPage
|
|
40768
|
+
hasPreviousPage
|
|
40769
|
+
startCursor
|
|
40770
|
+
totalItems
|
|
40771
|
+
sortFields
|
|
40772
|
+
filterFields
|
|
40773
|
+
}
|
|
40774
|
+
}
|
|
40775
|
+
}
|
|
40776
|
+
`;
|
|
40777
|
+
var tasksApi = orchestratorApi.injectEndpoints({
|
|
40778
|
+
endpoints: (builder) => ({
|
|
40779
|
+
getTasks: builder.query({
|
|
40780
|
+
query: (variables) => ({
|
|
40781
|
+
document: tasksQuery,
|
|
40782
|
+
variables
|
|
40783
|
+
}),
|
|
40784
|
+
transformResponse: (response) => {
|
|
40785
|
+
const tasks = response.workflows.page || [];
|
|
40786
|
+
const pageInfo = response.workflows.pageInfo || {};
|
|
40787
|
+
return {
|
|
40788
|
+
tasks,
|
|
40789
|
+
pageInfo
|
|
40790
|
+
};
|
|
40791
|
+
}
|
|
40792
|
+
})
|
|
40793
|
+
})
|
|
40794
|
+
});
|
|
40795
|
+
var { useGetTasksQuery, useLazyGetTasksQuery } = tasksApi;
|
|
40796
|
+
|
|
40741
40797
|
// src/rtk/endpoints/processList.ts
|
|
40742
40798
|
var processListQuery = `
|
|
40743
40799
|
query ProcessList(
|
|
@@ -40882,6 +40938,7 @@ var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
|
40882
40938
|
BadgeType2["PRODUCT_BLOCK_TAG"] = "product_block_tag";
|
|
40883
40939
|
BadgeType2["PRODUCT_TAG"] = "product_tag";
|
|
40884
40940
|
BadgeType2["PRODUCT"] = "product";
|
|
40941
|
+
BadgeType2["TASK"] = "task";
|
|
40885
40942
|
return BadgeType2;
|
|
40886
40943
|
})(BadgeType || {});
|
|
40887
40944
|
var WorkflowTarget = /* @__PURE__ */ ((WorkflowTarget2) => {
|
|
@@ -42215,6 +42272,7 @@ var getDefaultTableConfig = (storageKey) => {
|
|
|
42215
42272
|
];
|
|
42216
42273
|
return getTableConfig(productColumns);
|
|
42217
42274
|
case METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY:
|
|
42275
|
+
case METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY:
|
|
42218
42276
|
const workflowColumns = ["createdAt"];
|
|
42219
42277
|
return getTableConfig(workflowColumns);
|
|
42220
42278
|
case ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY:
|
|
@@ -42367,6 +42425,7 @@ function WfoProductBlockBadge({
|
|
|
42367
42425
|
textColor: primaryText
|
|
42368
42426
|
};
|
|
42369
42427
|
case "workflow" /* WORKFLOW */:
|
|
42428
|
+
case "task" /* TASK */:
|
|
42370
42429
|
case "product" /* PRODUCT */:
|
|
42371
42430
|
return {
|
|
42372
42431
|
badgeColor: toSecondaryColor(danger),
|
|
@@ -44660,6 +44719,7 @@ var PATH_METADATA_PRODUCTS = "/metadata/products";
|
|
|
44660
44719
|
var PATH_METADATA_PRODUCT_BLOCKS = "/metadata/productblocks";
|
|
44661
44720
|
var PATH_METADATA_RESOURCE_TYPES = "/metadata/resource-types";
|
|
44662
44721
|
var PATH_METADATA_WORKFLOWS = "/metadata/workflows";
|
|
44722
|
+
var PATH_METADATA_TASKS = "/metadata/tasks";
|
|
44663
44723
|
var PATH_TASKS = "/tasks";
|
|
44664
44724
|
var PATH_SETTINGS = "/settings";
|
|
44665
44725
|
|
|
@@ -44782,6 +44842,15 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
44782
44842
|
e.preventDefault();
|
|
44783
44843
|
router.push(PATH_METADATA_WORKFLOWS);
|
|
44784
44844
|
}
|
|
44845
|
+
},
|
|
44846
|
+
{
|
|
44847
|
+
name: t("metadataTasks"),
|
|
44848
|
+
id: "5.5",
|
|
44849
|
+
isSelected: router.pathname === PATH_METADATA_TASKS,
|
|
44850
|
+
onClick: (e) => {
|
|
44851
|
+
e.preventDefault();
|
|
44852
|
+
router.push(PATH_METADATA_TASKS);
|
|
44853
|
+
}
|
|
44785
44854
|
}
|
|
44786
44855
|
]
|
|
44787
44856
|
},
|
|
@@ -46551,6 +46620,7 @@ var METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY = "metadataResourceTypesTabl
|
|
|
46551
46620
|
var METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY = "metadataProductBlocksTable";
|
|
46552
46621
|
var METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY = "metadataProductTable";
|
|
46553
46622
|
var METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY = "metadataWorkflowsTable";
|
|
46623
|
+
var METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY = "metadataTasksTable";
|
|
46554
46624
|
var SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = "subscriptionsTable";
|
|
46555
46625
|
|
|
46556
46626
|
// src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.ts
|
|
@@ -52178,7 +52248,7 @@ var WfoDropdownButton = ({
|
|
|
52178
52248
|
};
|
|
52179
52249
|
|
|
52180
52250
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
52181
|
-
import { useTranslations as
|
|
52251
|
+
import { useTranslations as useTranslations57 } from "next-intl";
|
|
52182
52252
|
import Link8 from "next/link";
|
|
52183
52253
|
|
|
52184
52254
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
@@ -52208,9 +52278,14 @@ var metaDataTabs = [
|
|
|
52208
52278
|
path: "/metadata/resource-types"
|
|
52209
52279
|
},
|
|
52210
52280
|
{
|
|
52211
|
-
id:
|
|
52281
|
+
id: 4,
|
|
52212
52282
|
translationKey: "workflows",
|
|
52213
52283
|
path: "/metadata/workflows"
|
|
52284
|
+
},
|
|
52285
|
+
{
|
|
52286
|
+
id: 5,
|
|
52287
|
+
translationKey: "tasks",
|
|
52288
|
+
path: "/metadata/tasks"
|
|
52214
52289
|
}
|
|
52215
52290
|
];
|
|
52216
52291
|
var WfoMetadataPageLayout = ({
|
|
@@ -52820,23 +52895,24 @@ var WfoWorkflowsPage = () => {
|
|
|
52820
52895
|
name: {
|
|
52821
52896
|
field: "name",
|
|
52822
52897
|
name: t("name"),
|
|
52823
|
-
width: "
|
|
52898
|
+
width: "20%",
|
|
52824
52899
|
render: (name) => /* @__PURE__ */ jsx150(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
|
|
52825
52900
|
},
|
|
52826
52901
|
description: {
|
|
52827
52902
|
field: "description",
|
|
52828
52903
|
name: t("description"),
|
|
52829
|
-
width: "
|
|
52904
|
+
width: "40%"
|
|
52830
52905
|
},
|
|
52831
52906
|
target: {
|
|
52832
52907
|
field: "target",
|
|
52833
52908
|
name: t("target"),
|
|
52834
|
-
width: "
|
|
52909
|
+
width: "15%",
|
|
52835
52910
|
render: (target) => /* @__PURE__ */ jsx150(WfoWorkflowTargetBadge, { target })
|
|
52836
52911
|
},
|
|
52837
52912
|
productTags: {
|
|
52838
52913
|
field: "productTags",
|
|
52839
52914
|
name: t("productTags"),
|
|
52915
|
+
width: "20%",
|
|
52840
52916
|
render: (productTags) => /* @__PURE__ */ jsx150(Fragment33, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx150(
|
|
52841
52917
|
WfoProductBlockBadge,
|
|
52842
52918
|
{
|
|
@@ -52857,7 +52933,7 @@ var WfoWorkflowsPage = () => {
|
|
|
52857
52933
|
createdAt: {
|
|
52858
52934
|
field: "createdAt",
|
|
52859
52935
|
name: t("createdAt"),
|
|
52860
|
-
width: "
|
|
52936
|
+
width: "15%",
|
|
52861
52937
|
render: (date) => /* @__PURE__ */ jsx150(WfoDateTime, { dateOrIsoString: date }),
|
|
52862
52938
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
52863
52939
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
@@ -52938,10 +53014,183 @@ var WfoWorkflowsPage = () => {
|
|
|
52938
53014
|
) });
|
|
52939
53015
|
};
|
|
52940
53016
|
|
|
53017
|
+
// src/pages/metadata/WfoTasksPage.tsx
|
|
53018
|
+
import { useEffect as useEffect20, useState as useState32 } from "react";
|
|
53019
|
+
import { useTranslations as useTranslations45 } from "next-intl";
|
|
53020
|
+
import { EuiBadgeGroup as EuiBadgeGroup6 } from "@elastic/eui";
|
|
53021
|
+
|
|
53022
|
+
// src/pages/metadata/taskListObjectMapper.ts
|
|
53023
|
+
var mapTaskDefinitionToTaskListItem = (tasks) => tasks.map((taskDefinition) => {
|
|
53024
|
+
const { name, target, description, createdAt, products: products2 } = taskDefinition;
|
|
53025
|
+
const productTags = products2.map((product) => product.tag);
|
|
53026
|
+
return {
|
|
53027
|
+
name,
|
|
53028
|
+
description,
|
|
53029
|
+
target,
|
|
53030
|
+
createdAt,
|
|
53031
|
+
productTags
|
|
53032
|
+
};
|
|
53033
|
+
});
|
|
53034
|
+
var taskFieldMapper = (field) => {
|
|
53035
|
+
switch (field) {
|
|
53036
|
+
case "productTags":
|
|
53037
|
+
return "productTag";
|
|
53038
|
+
default:
|
|
53039
|
+
return field;
|
|
53040
|
+
}
|
|
53041
|
+
};
|
|
53042
|
+
var graphQlTaskListMapper = ({
|
|
53043
|
+
field,
|
|
53044
|
+
order
|
|
53045
|
+
}) => ({
|
|
53046
|
+
field: taskFieldMapper(field),
|
|
53047
|
+
order
|
|
53048
|
+
});
|
|
53049
|
+
|
|
53050
|
+
// src/pages/metadata/WfoTasksPage.tsx
|
|
53051
|
+
import { Fragment as Fragment34, jsx as jsx151 } from "@emotion/react/jsx-runtime";
|
|
53052
|
+
var WfoTasksPage = () => {
|
|
53053
|
+
var _a, _b;
|
|
53054
|
+
const t = useTranslations45("metadata.tasks");
|
|
53055
|
+
const tError = useTranslations45("errors");
|
|
53056
|
+
const { showToastMessage } = useShowToastMessage();
|
|
53057
|
+
const [tableDefaults, setTableDefaults] = useState32();
|
|
53058
|
+
const getStoredTableConfig = useStoredTableConfig(
|
|
53059
|
+
METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY
|
|
53060
|
+
);
|
|
53061
|
+
useEffect20(() => {
|
|
53062
|
+
const storedConfig = getStoredTableConfig();
|
|
53063
|
+
if (storedConfig) {
|
|
53064
|
+
setTableDefaults(storedConfig);
|
|
53065
|
+
}
|
|
53066
|
+
}, [getStoredTableConfig]);
|
|
53067
|
+
const { dataDisplayParams, setDataDisplayParam } = useDataDisplayParams({
|
|
53068
|
+
// TODO: Improvement: A default pageSize value is set to avoid a graphql error when the query is executed
|
|
53069
|
+
// the fist time before the useEffect has populated the tableDefaults. Better is to create a way for
|
|
53070
|
+
// the query to wait for the values to be available
|
|
53071
|
+
// https://github.com/workfloworchestrator/orchestrator-ui/issues/261
|
|
53072
|
+
pageSize: (tableDefaults == null ? void 0 : tableDefaults.selectedPageSize) || DEFAULT_PAGE_SIZE,
|
|
53073
|
+
sortBy: {
|
|
53074
|
+
field: "name",
|
|
53075
|
+
order: "ASC" /* ASC */
|
|
53076
|
+
}
|
|
53077
|
+
});
|
|
53078
|
+
const tableColumns = {
|
|
53079
|
+
name: {
|
|
53080
|
+
field: "name",
|
|
53081
|
+
name: t("name"),
|
|
53082
|
+
width: "20%",
|
|
53083
|
+
render: (name) => /* @__PURE__ */ jsx151(WfoProductBlockBadge, { badgeType: "task" /* TASK */, children: name })
|
|
53084
|
+
},
|
|
53085
|
+
description: {
|
|
53086
|
+
field: "description",
|
|
53087
|
+
name: t("description"),
|
|
53088
|
+
width: "40%"
|
|
53089
|
+
},
|
|
53090
|
+
target: {
|
|
53091
|
+
field: "target",
|
|
53092
|
+
name: t("target"),
|
|
53093
|
+
width: "15%",
|
|
53094
|
+
render: (target) => /* @__PURE__ */ jsx151(WfoWorkflowTargetBadge, { target })
|
|
53095
|
+
},
|
|
53096
|
+
productTags: {
|
|
53097
|
+
field: "productTags",
|
|
53098
|
+
name: t("productTags"),
|
|
53099
|
+
width: "20%",
|
|
53100
|
+
render: (productTags) => /* @__PURE__ */ jsx151(Fragment34, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx151(
|
|
53101
|
+
WfoProductBlockBadge,
|
|
53102
|
+
{
|
|
53103
|
+
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
53104
|
+
children: productTag
|
|
53105
|
+
},
|
|
53106
|
+
index
|
|
53107
|
+
)) }),
|
|
53108
|
+
renderDetails: (productTags) => /* @__PURE__ */ jsx151(EuiBadgeGroup6, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx151(
|
|
53109
|
+
WfoProductBlockBadge,
|
|
53110
|
+
{
|
|
53111
|
+
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
53112
|
+
children: productTag
|
|
53113
|
+
},
|
|
53114
|
+
index
|
|
53115
|
+
)) })
|
|
53116
|
+
},
|
|
53117
|
+
createdAt: {
|
|
53118
|
+
field: "createdAt",
|
|
53119
|
+
name: t("createdAt"),
|
|
53120
|
+
width: "15%",
|
|
53121
|
+
render: (date) => /* @__PURE__ */ jsx151(WfoDateTime, { dateOrIsoString: date }),
|
|
53122
|
+
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
53123
|
+
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
53124
|
+
}
|
|
53125
|
+
};
|
|
53126
|
+
const { pageSize, pageIndex, sortBy, queryString } = dataDisplayParams;
|
|
53127
|
+
const taskListQueryVariables = {
|
|
53128
|
+
first: pageSize,
|
|
53129
|
+
after: pageIndex * pageSize,
|
|
53130
|
+
sortBy: graphQlTaskListMapper(sortBy),
|
|
53131
|
+
query: queryString || void 0
|
|
53132
|
+
};
|
|
53133
|
+
const { data, isFetching, isError: isError3 } = useGetTasksQuery(
|
|
53134
|
+
taskListQueryVariables
|
|
53135
|
+
);
|
|
53136
|
+
const [getTasksTrigger, { isFetching: isFetchingCsv }] = useLazyGetTasksQuery();
|
|
53137
|
+
const getTasksForExport = () => getTasksTrigger(
|
|
53138
|
+
getQueryVariablesForExport(taskListQueryVariables)
|
|
53139
|
+
).unwrap();
|
|
53140
|
+
const dataSorting = {
|
|
53141
|
+
field: (_a = sortBy == null ? void 0 : sortBy.field) != null ? _a : "name",
|
|
53142
|
+
sortOrder: (_b = sortBy == null ? void 0 : sortBy.order) != null ? _b : "ASC" /* ASC */
|
|
53143
|
+
};
|
|
53144
|
+
const { totalItems, sortFields, filterFields } = (data == null ? void 0 : data.pageInfo) || {};
|
|
53145
|
+
const pagination = {
|
|
53146
|
+
pageSize,
|
|
53147
|
+
pageIndex,
|
|
53148
|
+
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
53149
|
+
totalItemCount: totalItems ? totalItems : 0
|
|
53150
|
+
};
|
|
53151
|
+
return /* @__PURE__ */ jsx151(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx151(
|
|
53152
|
+
WfoTableWithFilter,
|
|
53153
|
+
{
|
|
53154
|
+
data: data ? mapTaskDefinitionToTaskListItem(data.tasks) : [],
|
|
53155
|
+
tableColumns: mapSortableAndFilterableValuesToTableColumnConfig(
|
|
53156
|
+
tableColumns,
|
|
53157
|
+
sortFields,
|
|
53158
|
+
filterFields
|
|
53159
|
+
),
|
|
53160
|
+
dataSorting,
|
|
53161
|
+
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
53162
|
+
onUpdateDataSort: getDataSortHandler(
|
|
53163
|
+
setDataDisplayParam
|
|
53164
|
+
),
|
|
53165
|
+
onUpdatePage: getPageChangeHandler(
|
|
53166
|
+
setDataDisplayParam
|
|
53167
|
+
),
|
|
53168
|
+
onUpdateQueryString: getQueryStringHandler(
|
|
53169
|
+
setDataDisplayParam
|
|
53170
|
+
),
|
|
53171
|
+
pagination,
|
|
53172
|
+
isLoading: isFetching,
|
|
53173
|
+
hasError: isError3,
|
|
53174
|
+
queryString,
|
|
53175
|
+
localStorageKey: METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY,
|
|
53176
|
+
onExportData: csvDownloadHandler(
|
|
53177
|
+
getTasksForExport,
|
|
53178
|
+
(data2) => data2.tasks,
|
|
53179
|
+
(data2) => data2.pageInfo,
|
|
53180
|
+
Object.keys(tableColumns),
|
|
53181
|
+
getCsvFileNameWithDate("Tasks"),
|
|
53182
|
+
showToastMessage,
|
|
53183
|
+
tError
|
|
53184
|
+
),
|
|
53185
|
+
exportDataIsLoading: isFetchingCsv
|
|
53186
|
+
}
|
|
53187
|
+
) });
|
|
53188
|
+
};
|
|
53189
|
+
|
|
52941
53190
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
52942
53191
|
import Link4 from "next/link";
|
|
52943
53192
|
import { EuiFlexGroup as EuiFlexGroup16 } from "@elastic/eui";
|
|
52944
|
-
import { Fragment as
|
|
53193
|
+
import { Fragment as Fragment35, jsx as jsx152, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
52945
53194
|
var RENDER_ALL = "RENDER_ALL";
|
|
52946
53195
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
52947
53196
|
RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
|
|
@@ -52959,13 +53208,13 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
52959
53208
|
}
|
|
52960
53209
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
52961
53210
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
52962
|
-
return /* @__PURE__ */
|
|
53211
|
+
return /* @__PURE__ */ jsx152(Fragment35, { children: /* @__PURE__ */ jsxs84(
|
|
52963
53212
|
EuiFlexGroup16,
|
|
52964
53213
|
{
|
|
52965
53214
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
52966
53215
|
gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "m" : "xs",
|
|
52967
53216
|
children: [
|
|
52968
|
-
visibleSubscriptions.map((subscription) => /* @__PURE__ */
|
|
53217
|
+
visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx152(
|
|
52969
53218
|
Link4,
|
|
52970
53219
|
{
|
|
52971
53220
|
href: `/subscriptions/${subscription.subscriptionId}`,
|
|
@@ -52977,14 +53226,14 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
52977
53226
|
},
|
|
52978
53227
|
subscription.subscriptionId
|
|
52979
53228
|
)),
|
|
52980
|
-
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */
|
|
53229
|
+
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx152("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
|
|
52981
53230
|
]
|
|
52982
53231
|
}
|
|
52983
53232
|
) });
|
|
52984
53233
|
};
|
|
52985
53234
|
|
|
52986
53235
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
52987
|
-
import { useEffect as
|
|
53236
|
+
import { useEffect as useEffect23, useRef as useRef7, useState as useState37 } from "react";
|
|
52988
53237
|
|
|
52989
53238
|
// src/rtk/endpoints/processDetail.ts
|
|
52990
53239
|
var processDetailQuery = `query ProcessDetail($processId: String!) {
|
|
@@ -53040,8 +53289,8 @@ var processDetailApi = orchestratorApi.injectEndpoints({
|
|
|
53040
53289
|
var { useGetProcessDetailQuery } = processDetailApi;
|
|
53041
53290
|
|
|
53042
53291
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
53043
|
-
import
|
|
53044
|
-
import { useTranslations as
|
|
53292
|
+
import React46 from "react";
|
|
53293
|
+
import { useTranslations as useTranslations46 } from "next-intl";
|
|
53045
53294
|
import { EuiFlexGroup as EuiFlexGroup17, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel4, EuiText as EuiText29 } from "@elastic/eui";
|
|
53046
53295
|
|
|
53047
53296
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
@@ -53147,26 +53396,26 @@ var getStyles11 = (theme) => {
|
|
|
53147
53396
|
};
|
|
53148
53397
|
|
|
53149
53398
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
53150
|
-
import { jsx as
|
|
53399
|
+
import { jsx as jsx153, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
53151
53400
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
53152
53401
|
switch (stepStatus) {
|
|
53153
53402
|
case "suspend" /* SUSPEND */:
|
|
53154
|
-
return /* @__PURE__ */
|
|
53403
|
+
return /* @__PURE__ */ jsx153(WfoMinusCircleFill, { color });
|
|
53155
53404
|
case "failed" /* FAILED */:
|
|
53156
|
-
return /* @__PURE__ */
|
|
53405
|
+
return /* @__PURE__ */ jsx153(WfoXCircleFill, { color });
|
|
53157
53406
|
default:
|
|
53158
|
-
return /* @__PURE__ */
|
|
53407
|
+
return /* @__PURE__ */ jsx153(WfoCheckmarkCircleFill, { color });
|
|
53159
53408
|
}
|
|
53160
53409
|
};
|
|
53161
53410
|
var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
|
|
53162
53411
|
if (isStartStep) {
|
|
53163
|
-
return /* @__PURE__ */
|
|
53412
|
+
return /* @__PURE__ */ jsx153(WfoPlayFill, { color });
|
|
53164
53413
|
}
|
|
53165
53414
|
switch (stepStatus) {
|
|
53166
53415
|
case "form" /* FORM */:
|
|
53167
|
-
return /* @__PURE__ */
|
|
53416
|
+
return /* @__PURE__ */ jsx153(WfoPencilAlt, { color });
|
|
53168
53417
|
default:
|
|
53169
|
-
return /* @__PURE__ */
|
|
53418
|
+
return /* @__PURE__ */ jsx153(WfoCogFill, { color, width: 16, height: 16 });
|
|
53170
53419
|
}
|
|
53171
53420
|
};
|
|
53172
53421
|
var WfoStepStatusIcon = ({
|
|
@@ -53217,7 +53466,7 @@ var WfoStepStatusIcon = ({
|
|
|
53217
53466
|
}
|
|
53218
53467
|
})();
|
|
53219
53468
|
return /* @__PURE__ */ jsxs85(EuiFlexItem23, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
53220
|
-
/* @__PURE__ */
|
|
53469
|
+
/* @__PURE__ */ jsx153("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx153(
|
|
53221
53470
|
MainIcon,
|
|
53222
53471
|
{
|
|
53223
53472
|
color: mainIconColor,
|
|
@@ -53225,7 +53474,7 @@ var WfoStepStatusIcon = ({
|
|
|
53225
53474
|
isStartStep
|
|
53226
53475
|
}
|
|
53227
53476
|
) }),
|
|
53228
|
-
/* @__PURE__ */
|
|
53477
|
+
/* @__PURE__ */ jsx153(
|
|
53229
53478
|
"div",
|
|
53230
53479
|
{
|
|
53231
53480
|
css: {
|
|
@@ -53233,7 +53482,7 @@ var WfoStepStatusIcon = ({
|
|
|
53233
53482
|
width: `${theme.base}`,
|
|
53234
53483
|
visibility: hasSubIcon ? "visible" : "hidden"
|
|
53235
53484
|
},
|
|
53236
|
-
children: /* @__PURE__ */
|
|
53485
|
+
children: /* @__PURE__ */ jsx153(SubIcon, { color: subIconColor, stepStatus })
|
|
53237
53486
|
}
|
|
53238
53487
|
)
|
|
53239
53488
|
] });
|
|
@@ -53261,15 +53510,15 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
53261
53510
|
};
|
|
53262
53511
|
|
|
53263
53512
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
53264
|
-
import { useState as
|
|
53513
|
+
import { useState as useState33 } from "react";
|
|
53265
53514
|
import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
|
|
53266
|
-
import { jsx as
|
|
53515
|
+
import { jsx as jsx154 } from "@emotion/react/jsx-runtime";
|
|
53267
53516
|
var WfoStepForm = ({
|
|
53268
53517
|
userInputForm,
|
|
53269
53518
|
isTask,
|
|
53270
53519
|
processId
|
|
53271
53520
|
}) => {
|
|
53272
|
-
const [isProcessing, setIsProcessing] =
|
|
53521
|
+
const [isProcessing, setIsProcessing] = useState33(false);
|
|
53273
53522
|
const { theme } = useOrchestratorTheme();
|
|
53274
53523
|
const apiClient = useAxiosApiClient();
|
|
53275
53524
|
const submitForm = (processInput) => {
|
|
@@ -53280,7 +53529,7 @@ var WfoStepForm = ({
|
|
|
53280
53529
|
setIsProcessing(true);
|
|
53281
53530
|
});
|
|
53282
53531
|
};
|
|
53283
|
-
return /* @__PURE__ */
|
|
53532
|
+
return /* @__PURE__ */ jsx154(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx154(WfoLoading, {}) || /* @__PURE__ */ jsx154(
|
|
53284
53533
|
UserInputFormWizard,
|
|
53285
53534
|
{
|
|
53286
53535
|
stepUserInput: userInputForm,
|
|
@@ -53293,8 +53542,8 @@ var WfoStepForm = ({
|
|
|
53293
53542
|
};
|
|
53294
53543
|
|
|
53295
53544
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
53296
|
-
import { Fragment as
|
|
53297
|
-
var WfoStep =
|
|
53545
|
+
import { Fragment as Fragment36, jsx as jsx155, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
53546
|
+
var WfoStep = React46.forwardRef(
|
|
53298
53547
|
({
|
|
53299
53548
|
stepListItem,
|
|
53300
53549
|
onToggleStepDetail,
|
|
@@ -53316,7 +53565,7 @@ var WfoStep = React45.forwardRef(
|
|
|
53316
53565
|
stepRowStyle,
|
|
53317
53566
|
getStepToggleExpandStyle
|
|
53318
53567
|
} = getStyles11(theme);
|
|
53319
|
-
const t =
|
|
53568
|
+
const t = useTranslations46("processes.steps");
|
|
53320
53569
|
const hasHtmlMail = (_a = step.stateDelta) == null ? void 0 : _a.hasOwnProperty("confirmation_mail");
|
|
53321
53570
|
const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
|
|
53322
53571
|
const hasStepContent = hasHtmlMail || Object.keys(stepContent).length > 0;
|
|
@@ -53325,28 +53574,28 @@ var WfoStep = React45.forwardRef(
|
|
|
53325
53574
|
return "";
|
|
53326
53575
|
}
|
|
53327
53576
|
return /* @__PURE__ */ jsxs86(EuiText29, { size: "s", children: [
|
|
53328
|
-
/* @__PURE__ */
|
|
53329
|
-
/* @__PURE__ */
|
|
53577
|
+
/* @__PURE__ */ jsx155("h4", { children: "To" }),
|
|
53578
|
+
/* @__PURE__ */ jsx155("p", { children: value.to.map(
|
|
53330
53579
|
(v, i) => /* @__PURE__ */ jsxs86("div", { children: [
|
|
53331
53580
|
v.name,
|
|
53332
53581
|
" <",
|
|
53333
|
-
/* @__PURE__ */
|
|
53582
|
+
/* @__PURE__ */ jsx155("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53334
53583
|
">"
|
|
53335
53584
|
] }, `to-${i}`)
|
|
53336
53585
|
) }),
|
|
53337
|
-
/* @__PURE__ */
|
|
53338
|
-
/* @__PURE__ */
|
|
53586
|
+
/* @__PURE__ */ jsx155("h4", { children: "CC" }),
|
|
53587
|
+
/* @__PURE__ */ jsx155("p", { children: value.cc.map(
|
|
53339
53588
|
(v, i) => /* @__PURE__ */ jsxs86("div", { children: [
|
|
53340
53589
|
v.name,
|
|
53341
53590
|
" <",
|
|
53342
|
-
/* @__PURE__ */
|
|
53591
|
+
/* @__PURE__ */ jsx155("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53343
53592
|
">"
|
|
53344
53593
|
] }, `cc-${i}`)
|
|
53345
53594
|
) }),
|
|
53346
|
-
/* @__PURE__ */
|
|
53347
|
-
/* @__PURE__ */
|
|
53348
|
-
/* @__PURE__ */
|
|
53349
|
-
/* @__PURE__ */
|
|
53595
|
+
/* @__PURE__ */ jsx155("h4", { children: "Subject" }),
|
|
53596
|
+
/* @__PURE__ */ jsx155("p", { children: value.subject }),
|
|
53597
|
+
/* @__PURE__ */ jsx155("h4", { children: "Message" }),
|
|
53598
|
+
/* @__PURE__ */ jsx155(
|
|
53350
53599
|
"div",
|
|
53351
53600
|
{
|
|
53352
53601
|
className: "emailMessage",
|
|
@@ -53355,14 +53604,14 @@ var WfoStep = React45.forwardRef(
|
|
|
53355
53604
|
)
|
|
53356
53605
|
] });
|
|
53357
53606
|
};
|
|
53358
|
-
return /* @__PURE__ */
|
|
53607
|
+
return /* @__PURE__ */ jsx155("div", { ref, children: /* @__PURE__ */ jsxs86(EuiPanel4, { children: [
|
|
53359
53608
|
/* @__PURE__ */ jsxs86(
|
|
53360
53609
|
EuiFlexGroup17,
|
|
53361
53610
|
{
|
|
53362
53611
|
css: getStepHeaderStyle(hasStepContent),
|
|
53363
53612
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
53364
53613
|
children: [
|
|
53365
|
-
/* @__PURE__ */
|
|
53614
|
+
/* @__PURE__ */ jsx155(
|
|
53366
53615
|
WfoStepStatusIcon,
|
|
53367
53616
|
{
|
|
53368
53617
|
stepStatus: step.status,
|
|
@@ -53370,47 +53619,47 @@ var WfoStep = React45.forwardRef(
|
|
|
53370
53619
|
}
|
|
53371
53620
|
),
|
|
53372
53621
|
/* @__PURE__ */ jsxs86(EuiFlexItem25, { grow: 0, children: [
|
|
53373
|
-
/* @__PURE__ */
|
|
53622
|
+
/* @__PURE__ */ jsx155(EuiText29, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
53374
53623
|
/* @__PURE__ */ jsxs86(EuiText29, { children: [
|
|
53375
53624
|
step.status,
|
|
53376
53625
|
" ",
|
|
53377
53626
|
step.executed && `- ${formatDate(step.executed)}`
|
|
53378
53627
|
] })
|
|
53379
53628
|
] }),
|
|
53380
|
-
/* @__PURE__ */
|
|
53629
|
+
/* @__PURE__ */ jsx155(EuiFlexGroup17, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs86(Fragment36, { children: [
|
|
53381
53630
|
/* @__PURE__ */ jsxs86(
|
|
53382
53631
|
EuiFlexItem25,
|
|
53383
53632
|
{
|
|
53384
53633
|
grow: 0,
|
|
53385
53634
|
css: stepHeaderRightStyle,
|
|
53386
53635
|
children: [
|
|
53387
|
-
/* @__PURE__ */
|
|
53388
|
-
/* @__PURE__ */
|
|
53636
|
+
/* @__PURE__ */ jsx155(EuiText29, { css: stepDurationStyle, children: t("duration") }),
|
|
53637
|
+
/* @__PURE__ */ jsx155(EuiText29, { size: "m", children: calculateTimeDifference(
|
|
53389
53638
|
startedAt,
|
|
53390
53639
|
step.executed
|
|
53391
53640
|
) })
|
|
53392
53641
|
]
|
|
53393
53642
|
}
|
|
53394
53643
|
),
|
|
53395
|
-
/* @__PURE__ */
|
|
53644
|
+
/* @__PURE__ */ jsx155(
|
|
53396
53645
|
EuiFlexItem25,
|
|
53397
53646
|
{
|
|
53398
53647
|
grow: 0,
|
|
53399
53648
|
css: getStepToggleExpandStyle(
|
|
53400
53649
|
hasStepContent
|
|
53401
53650
|
),
|
|
53402
|
-
children: isExpanded && /* @__PURE__ */
|
|
53651
|
+
children: isExpanded && /* @__PURE__ */ jsx155(WfoChevronUp, {}) || /* @__PURE__ */ jsx155(WfoChevronDown, {})
|
|
53403
53652
|
}
|
|
53404
53653
|
)
|
|
53405
53654
|
] }) })
|
|
53406
53655
|
]
|
|
53407
53656
|
}
|
|
53408
53657
|
),
|
|
53409
|
-
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */
|
|
53410
|
-
isExpanded && hasHtmlMail && /* @__PURE__ */
|
|
53658
|
+
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx155(WfoJsonCodeBlock, { data: stepContent }),
|
|
53659
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx155("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
|
|
53411
53660
|
step.stateDelta.confirmation_mail
|
|
53412
53661
|
) }),
|
|
53413
|
-
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */
|
|
53662
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx155(
|
|
53414
53663
|
WfoStepForm,
|
|
53415
53664
|
{
|
|
53416
53665
|
userInputForm,
|
|
@@ -53424,9 +53673,9 @@ var WfoStep = React45.forwardRef(
|
|
|
53424
53673
|
WfoStep.displayName = "WfoStep";
|
|
53425
53674
|
|
|
53426
53675
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
53427
|
-
import
|
|
53428
|
-
import { Fragment as
|
|
53429
|
-
var WfoStepList =
|
|
53676
|
+
import React47, { useImperativeHandle, useRef as useRef6 } from "react";
|
|
53677
|
+
import { Fragment as Fragment37, jsx as jsx156, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
53678
|
+
var WfoStepList = React47.forwardRef(
|
|
53430
53679
|
({
|
|
53431
53680
|
stepListItems,
|
|
53432
53681
|
showHiddenKeys,
|
|
@@ -53467,10 +53716,10 @@ var WfoStepList = React46.forwardRef(
|
|
|
53467
53716
|
})
|
|
53468
53717
|
}));
|
|
53469
53718
|
const getReferenceCallbackForStepId = (stepId) => (node) => node ? stepReferences.current.set(stepId, node) : stepReferences.current.delete(stepId);
|
|
53470
|
-
return /* @__PURE__ */
|
|
53719
|
+
return /* @__PURE__ */ jsx156(Fragment37, { children: stepListItems.map((stepListItem, index) => {
|
|
53471
53720
|
const stepComponent = /* @__PURE__ */ jsxs87("div", { children: [
|
|
53472
|
-
index !== 0 && /* @__PURE__ */
|
|
53473
|
-
/* @__PURE__ */
|
|
53721
|
+
index !== 0 && /* @__PURE__ */ jsx156("div", { css: stepSpacerStyle }),
|
|
53722
|
+
/* @__PURE__ */ jsx156(
|
|
53474
53723
|
WfoStep,
|
|
53475
53724
|
{
|
|
53476
53725
|
ref: getReferenceCallbackForStepId(
|
|
@@ -53496,15 +53745,15 @@ var WfoStepList = React46.forwardRef(
|
|
|
53496
53745
|
WfoStepList.displayName = "WfoStepList";
|
|
53497
53746
|
|
|
53498
53747
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53499
|
-
import
|
|
53500
|
-
import { useTranslations as
|
|
53748
|
+
import React50, { useEffect as useEffect22, useState as useState36 } from "react";
|
|
53749
|
+
import { useTranslations as useTranslations49 } from "next-intl";
|
|
53501
53750
|
|
|
53502
53751
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
53503
53752
|
var refractor = __toESM(require_refractor(), 1);
|
|
53504
|
-
import { useCallback as useCallback5, useEffect as
|
|
53753
|
+
import { useCallback as useCallback5, useEffect as useEffect21, useMemo as useMemo4, useState as useState34 } from "react";
|
|
53505
53754
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
53506
53755
|
import "react-diff-view/style/index.css";
|
|
53507
|
-
import { useTranslations as
|
|
53756
|
+
import { useTranslations as useTranslations47 } from "next-intl";
|
|
53508
53757
|
import "prism-themes/themes/prism-ghcolors.min.css";
|
|
53509
53758
|
import { diffLines, formatLines } from "unidiff";
|
|
53510
53759
|
import {
|
|
@@ -53514,15 +53763,15 @@ import {
|
|
|
53514
53763
|
EuiSpacer as EuiSpacer16,
|
|
53515
53764
|
EuiText as EuiText30
|
|
53516
53765
|
} from "@elastic/eui";
|
|
53517
|
-
import { jsx as
|
|
53766
|
+
import { jsx as jsx157, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
53518
53767
|
var EMPTY_HUNKS = [];
|
|
53519
53768
|
var SMALL_CONTEXT = 3;
|
|
53520
53769
|
var FULL_CONTEXT = 1e6;
|
|
53521
53770
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
53522
|
-
const t =
|
|
53523
|
-
const [showSplit, setShowSplit] =
|
|
53524
|
-
const [showFull, setShowFull] =
|
|
53525
|
-
const [{ type, hunks }, setDiff] =
|
|
53771
|
+
const t = useTranslations47("processes.delta");
|
|
53772
|
+
const [showSplit, setShowSplit] = useState34(true);
|
|
53773
|
+
const [showFull, setShowFull] = useState34(false);
|
|
53774
|
+
const [{ type, hunks }, setDiff] = useState34({
|
|
53526
53775
|
type: "modify",
|
|
53527
53776
|
hunks: []
|
|
53528
53777
|
});
|
|
@@ -53548,13 +53797,13 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53548
53797
|
return void 0;
|
|
53549
53798
|
}
|
|
53550
53799
|
}, [hunks, syntax]);
|
|
53551
|
-
|
|
53800
|
+
useEffect21(() => {
|
|
53552
53801
|
updateDiffText();
|
|
53553
53802
|
}, [updateDiffText, showFull]);
|
|
53554
53803
|
return /* @__PURE__ */ jsxs88("div", { children: [
|
|
53555
53804
|
/* @__PURE__ */ jsxs88(EuiFlexGroup18, { gutterSize: "xs", children: [
|
|
53556
|
-
/* @__PURE__ */
|
|
53557
|
-
/* @__PURE__ */
|
|
53805
|
+
/* @__PURE__ */ jsx157(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx157(EuiText30, { children: /* @__PURE__ */ jsx157("h3", { children: t("title") }) }) }),
|
|
53806
|
+
/* @__PURE__ */ jsx157(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx157(
|
|
53558
53807
|
EuiButtonIcon4,
|
|
53559
53808
|
{
|
|
53560
53809
|
size: "s",
|
|
@@ -53562,7 +53811,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53562
53811
|
onClick: () => setShowSplit(!showSplit)
|
|
53563
53812
|
}
|
|
53564
53813
|
) }),
|
|
53565
|
-
/* @__PURE__ */
|
|
53814
|
+
/* @__PURE__ */ jsx157(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx157(
|
|
53566
53815
|
EuiButtonIcon4,
|
|
53567
53816
|
{
|
|
53568
53817
|
size: "s",
|
|
@@ -53571,15 +53820,15 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53571
53820
|
}
|
|
53572
53821
|
) })
|
|
53573
53822
|
] }),
|
|
53574
|
-
/* @__PURE__ */
|
|
53575
|
-
/* @__PURE__ */
|
|
53823
|
+
/* @__PURE__ */ jsx157(EuiSpacer16, {}),
|
|
53824
|
+
/* @__PURE__ */ jsx157(
|
|
53576
53825
|
Diff,
|
|
53577
53826
|
{
|
|
53578
53827
|
viewType: showSplit ? "split" : "unified",
|
|
53579
53828
|
diffType: type,
|
|
53580
53829
|
hunks: hunks || EMPTY_HUNKS,
|
|
53581
53830
|
tokens,
|
|
53582
|
-
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */
|
|
53831
|
+
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx157(Hunk, { hunk }, hunk.content))
|
|
53583
53832
|
}
|
|
53584
53833
|
)
|
|
53585
53834
|
] });
|
|
@@ -53587,8 +53836,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53587
53836
|
var WfoDiff_default = WfoDiff;
|
|
53588
53837
|
|
|
53589
53838
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53590
|
-
import { useState as
|
|
53591
|
-
import { useTranslations as
|
|
53839
|
+
import { useState as useState35 } from "react";
|
|
53840
|
+
import { useTranslations as useTranslations48 } from "next-intl";
|
|
53592
53841
|
import {
|
|
53593
53842
|
EuiButton as EuiButton11,
|
|
53594
53843
|
EuiFlexGroup as EuiFlexGroup19,
|
|
@@ -53619,14 +53868,14 @@ var getStyles12 = (theme) => {
|
|
|
53619
53868
|
};
|
|
53620
53869
|
|
|
53621
53870
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
53622
|
-
import { jsx as
|
|
53871
|
+
import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
|
|
53623
53872
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
53624
53873
|
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles12);
|
|
53625
|
-
return /* @__PURE__ */
|
|
53874
|
+
return /* @__PURE__ */ jsx158(EuiText31, { onClick, css: textAnchorStyle, children: text });
|
|
53626
53875
|
};
|
|
53627
53876
|
|
|
53628
53877
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53629
|
-
import { jsx as
|
|
53878
|
+
import { jsx as jsx159, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
53630
53879
|
var WfoStepListHeader = ({
|
|
53631
53880
|
showHiddenKeys,
|
|
53632
53881
|
showRaw,
|
|
@@ -53638,7 +53887,7 @@ var WfoStepListHeader = ({
|
|
|
53638
53887
|
onToggleAllDetailsIsOpen,
|
|
53639
53888
|
isTask
|
|
53640
53889
|
}) => {
|
|
53641
|
-
const t =
|
|
53890
|
+
const t = useTranslations48("processes.steps");
|
|
53642
53891
|
const { theme } = useOrchestratorTheme();
|
|
53643
53892
|
const {
|
|
53644
53893
|
stepListHeaderStyle,
|
|
@@ -53646,14 +53895,14 @@ var WfoStepListHeader = ({
|
|
|
53646
53895
|
stepListContentBoldTextStyle,
|
|
53647
53896
|
stepListOptionsContainerStyle
|
|
53648
53897
|
} = getStyles11(theme);
|
|
53649
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
53898
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState35(false);
|
|
53650
53899
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
53651
53900
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
53652
|
-
const viewOptionButton = /* @__PURE__ */
|
|
53901
|
+
const viewOptionButton = /* @__PURE__ */ jsx159(
|
|
53653
53902
|
EuiButton11,
|
|
53654
53903
|
{
|
|
53655
53904
|
onClick: onViewOptionClick,
|
|
53656
|
-
iconType: () => /* @__PURE__ */
|
|
53905
|
+
iconType: () => /* @__PURE__ */ jsx159(WfoEyeFill, { color: theme.colors.link }),
|
|
53657
53906
|
iconSide: "right",
|
|
53658
53907
|
size: "s",
|
|
53659
53908
|
children: t("viewOptions")
|
|
@@ -53661,8 +53910,8 @@ var WfoStepListHeader = ({
|
|
|
53661
53910
|
);
|
|
53662
53911
|
return /* @__PURE__ */ jsxs89(EuiFlexGroup19, { css: stepListHeaderStyle, children: [
|
|
53663
53912
|
/* @__PURE__ */ jsxs89(EuiFlexGroup19, { css: stepListContentStyle, children: [
|
|
53664
|
-
/* @__PURE__ */
|
|
53665
|
-
!showRaw && /* @__PURE__ */
|
|
53913
|
+
/* @__PURE__ */ jsx159(EuiText32, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
53914
|
+
!showRaw && /* @__PURE__ */ jsx159(
|
|
53666
53915
|
WfoTextAnchor,
|
|
53667
53916
|
{
|
|
53668
53917
|
text: allDetailToggleText,
|
|
@@ -53678,25 +53927,25 @@ var WfoStepListHeader = ({
|
|
|
53678
53927
|
css: stepListOptionsContainerStyle,
|
|
53679
53928
|
gutterSize: "s",
|
|
53680
53929
|
children: [
|
|
53681
|
-
!showRaw && /* @__PURE__ */
|
|
53930
|
+
!showRaw && /* @__PURE__ */ jsx159(
|
|
53682
53931
|
EuiButton11,
|
|
53683
53932
|
{
|
|
53684
53933
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
53685
53934
|
iconSide: "right",
|
|
53686
53935
|
size: "s",
|
|
53687
|
-
iconType: () => /* @__PURE__ */
|
|
53936
|
+
iconType: () => /* @__PURE__ */ jsx159(WfoCode, { color: theme.colors.link }),
|
|
53688
53937
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
53689
53938
|
}
|
|
53690
53939
|
),
|
|
53691
|
-
/* @__PURE__ */
|
|
53940
|
+
/* @__PURE__ */ jsx159(
|
|
53692
53941
|
EuiPopover5,
|
|
53693
53942
|
{
|
|
53694
53943
|
button: viewOptionButton,
|
|
53695
53944
|
isOpen: isViewOptionOpen,
|
|
53696
53945
|
closePopover: closeViewOption,
|
|
53697
53946
|
display: "block",
|
|
53698
|
-
children: /* @__PURE__ */
|
|
53699
|
-
/* @__PURE__ */
|
|
53947
|
+
children: /* @__PURE__ */ jsx159("div", { children: /* @__PURE__ */ jsxs89(EuiForm2, { component: "form", children: [
|
|
53948
|
+
/* @__PURE__ */ jsx159(EuiFormRow20, { children: /* @__PURE__ */ jsx159(
|
|
53700
53949
|
EuiSwitch3,
|
|
53701
53950
|
{
|
|
53702
53951
|
label: "Hidden keys",
|
|
@@ -53709,7 +53958,7 @@ var WfoStepListHeader = ({
|
|
|
53709
53958
|
}
|
|
53710
53959
|
}
|
|
53711
53960
|
) }),
|
|
53712
|
-
/* @__PURE__ */
|
|
53961
|
+
/* @__PURE__ */ jsx159(EuiFormRow20, { children: /* @__PURE__ */ jsx159(
|
|
53713
53962
|
EuiSwitch3,
|
|
53714
53963
|
{
|
|
53715
53964
|
label: "Raw JSON data",
|
|
@@ -53730,10 +53979,10 @@ var WfoStepListHeader = ({
|
|
|
53730
53979
|
};
|
|
53731
53980
|
|
|
53732
53981
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53733
|
-
import { Fragment as
|
|
53982
|
+
import { Fragment as Fragment38, jsx as jsx160, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
53734
53983
|
var WfoProcessRawData = ({ processId }) => {
|
|
53735
53984
|
const { data, isFetching } = useRawProcessDetails(processId);
|
|
53736
|
-
return isFetching ? /* @__PURE__ */
|
|
53985
|
+
return isFetching ? /* @__PURE__ */ jsx160(WfoLoading, {}) : /* @__PURE__ */ jsx160(WfoJsonCodeBlock, { data: data || {} });
|
|
53737
53986
|
};
|
|
53738
53987
|
var WfoProcessSubscriptionDelta = ({
|
|
53739
53988
|
processId
|
|
@@ -53743,7 +53992,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53743
53992
|
const subscriptionKey = (_c = (_b = (_a = data == null ? void 0 : data.current_state) == null ? void 0 : _a.subscription) == null ? void 0 : _b.subscription_id) != null ? _c : "";
|
|
53744
53993
|
const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
|
|
53745
53994
|
const oldText = ((_f = data == null ? void 0 : data.current_state) == null ? void 0 : _f.__old_subscriptions__) && subscriptionKey in ((_g = data == null ? void 0 : data.current_state) == null ? void 0 : _g.__old_subscriptions__) ? (_h = data == null ? void 0 : data.current_state) == null ? void 0 : _h.__old_subscriptions__[subscriptionKey] : null;
|
|
53746
|
-
return isFetching ? /* @__PURE__ */
|
|
53995
|
+
return isFetching ? /* @__PURE__ */ jsx160(WfoLoading, {}) : /* @__PURE__ */ jsx160(
|
|
53747
53996
|
WfoDiff_default,
|
|
53748
53997
|
{
|
|
53749
53998
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -53752,7 +54001,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53752
54001
|
}
|
|
53753
54002
|
);
|
|
53754
54003
|
};
|
|
53755
|
-
var WfoWorkflowStepList =
|
|
54004
|
+
var WfoWorkflowStepList = React50.forwardRef(
|
|
53756
54005
|
({
|
|
53757
54006
|
steps = [],
|
|
53758
54007
|
startedAt,
|
|
@@ -53760,15 +54009,15 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53760
54009
|
isTask,
|
|
53761
54010
|
userInputForm
|
|
53762
54011
|
}, reference) => {
|
|
53763
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
53764
|
-
const [showRaw, setShowRaw] =
|
|
53765
|
-
const [showDelta, setShowDelta] =
|
|
53766
|
-
const t =
|
|
54012
|
+
const [showHiddenKeys, setShowHiddenKeys] = useState36(false);
|
|
54013
|
+
const [showRaw, setShowRaw] = useState36(false);
|
|
54014
|
+
const [showDelta, setShowDelta] = useState36(false);
|
|
54015
|
+
const t = useTranslations49("processes.steps");
|
|
53767
54016
|
const initialStepListItems = steps.map((step) => ({
|
|
53768
54017
|
step,
|
|
53769
54018
|
isExpanded: false
|
|
53770
54019
|
}));
|
|
53771
|
-
const [stepListItems, setStepListItems] =
|
|
54020
|
+
const [stepListItems, setStepListItems] = useState36(initialStepListItems);
|
|
53772
54021
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
53773
54022
|
var _a;
|
|
53774
54023
|
const reversedSteps = [...updatedSteps].reverse();
|
|
@@ -53786,7 +54035,7 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53786
54035
|
};
|
|
53787
54036
|
});
|
|
53788
54037
|
};
|
|
53789
|
-
|
|
54038
|
+
useEffect22(() => {
|
|
53790
54039
|
setStepListItems(
|
|
53791
54040
|
(previousStepListItems) => persistStepListItemState(
|
|
53792
54041
|
previousStepListItems,
|
|
@@ -53816,8 +54065,8 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53816
54065
|
const handleExpandStepListItem = (stepListItem) => updateStepListItem(stepListItem, (item) => __spreadProps(__spreadValues({}, item), {
|
|
53817
54066
|
isExpanded: true
|
|
53818
54067
|
}));
|
|
53819
|
-
return /* @__PURE__ */ jsxs90(
|
|
53820
|
-
/* @__PURE__ */
|
|
54068
|
+
return /* @__PURE__ */ jsxs90(Fragment38, { children: [
|
|
54069
|
+
/* @__PURE__ */ jsx160(
|
|
53821
54070
|
WfoStepListHeader,
|
|
53822
54071
|
{
|
|
53823
54072
|
showHiddenKeys,
|
|
@@ -53831,9 +54080,9 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53831
54080
|
isTask
|
|
53832
54081
|
}
|
|
53833
54082
|
),
|
|
53834
|
-
showRaw && /* @__PURE__ */
|
|
53835
|
-
showDelta && /* @__PURE__ */
|
|
53836
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
54083
|
+
showRaw && /* @__PURE__ */ jsx160(WfoProcessRawData, { processId }),
|
|
54084
|
+
showDelta && /* @__PURE__ */ jsx160(WfoProcessSubscriptionDelta, { processId }),
|
|
54085
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx160(
|
|
53837
54086
|
WfoStepList,
|
|
53838
54087
|
{
|
|
53839
54088
|
ref: reference,
|
|
@@ -53853,7 +54102,7 @@ WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
|
53853
54102
|
|
|
53854
54103
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
53855
54104
|
import { useContext as useContext13 } from "react";
|
|
53856
|
-
import { useTranslations as
|
|
54105
|
+
import { useTranslations as useTranslations50 } from "next-intl";
|
|
53857
54106
|
import { useRouter as useRouter9 } from "next/router";
|
|
53858
54107
|
import {
|
|
53859
54108
|
EuiButton as EuiButton12,
|
|
@@ -53940,12 +54189,12 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
53940
54189
|
};
|
|
53941
54190
|
|
|
53942
54191
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
53943
|
-
import { Fragment as
|
|
54192
|
+
import { Fragment as Fragment39, jsx as jsx161, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
53944
54193
|
var ProcessHeaderValue = ({
|
|
53945
54194
|
translationKey,
|
|
53946
54195
|
value = ""
|
|
53947
54196
|
}) => {
|
|
53948
|
-
const t =
|
|
54197
|
+
const t = useTranslations50("processes.detail");
|
|
53949
54198
|
const { theme } = useOrchestratorTheme();
|
|
53950
54199
|
return /* @__PURE__ */ jsxs91(
|
|
53951
54200
|
EuiFlexGroup20,
|
|
@@ -53958,8 +54207,8 @@ var ProcessHeaderValue = ({
|
|
|
53958
54207
|
overflow: "hidden"
|
|
53959
54208
|
},
|
|
53960
54209
|
children: [
|
|
53961
|
-
/* @__PURE__ */
|
|
53962
|
-
/* @__PURE__ */
|
|
54210
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "xs", children: t(translationKey) }),
|
|
54211
|
+
/* @__PURE__ */ jsx161(
|
|
53963
54212
|
EuiText33,
|
|
53964
54213
|
{
|
|
53965
54214
|
css: {
|
|
@@ -53987,7 +54236,7 @@ var WfoProcessDetail = ({
|
|
|
53987
54236
|
hasError = false
|
|
53988
54237
|
}) => {
|
|
53989
54238
|
var _a, _b;
|
|
53990
|
-
const t =
|
|
54239
|
+
const t = useTranslations50("processes.detail");
|
|
53991
54240
|
const { theme } = useOrchestratorTheme();
|
|
53992
54241
|
const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
|
|
53993
54242
|
const { deleteProcess, abortProcess, retryProcess } = useMutateProcess();
|
|
@@ -54046,12 +54295,12 @@ var WfoProcessDetail = ({
|
|
|
54046
54295
|
router.push(PATH_TASKS);
|
|
54047
54296
|
}
|
|
54048
54297
|
});
|
|
54049
|
-
return /* @__PURE__ */ jsxs91(
|
|
54298
|
+
return /* @__PURE__ */ jsxs91(Fragment39, { children: [
|
|
54050
54299
|
/* @__PURE__ */ jsxs91(EuiFlexGroup20, { children: [
|
|
54051
54300
|
/* @__PURE__ */ jsxs91(EuiFlexItem27, { children: [
|
|
54052
|
-
/* @__PURE__ */
|
|
54053
|
-
/* @__PURE__ */
|
|
54054
|
-
/* @__PURE__ */
|
|
54301
|
+
/* @__PURE__ */ jsx161(EuiPageHeader3, { pageTitle }),
|
|
54302
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, {}),
|
|
54303
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "s", children: productNames })
|
|
54055
54304
|
] }),
|
|
54056
54305
|
/* @__PURE__ */ jsxs91(
|
|
54057
54306
|
EuiFlexGroup20,
|
|
@@ -54061,15 +54310,15 @@ var WfoProcessDetail = ({
|
|
|
54061
54310
|
css: { flexGrow: 0 },
|
|
54062
54311
|
gutterSize: "s",
|
|
54063
54312
|
children: [
|
|
54064
|
-
/* @__PURE__ */
|
|
54313
|
+
/* @__PURE__ */ jsx161(
|
|
54065
54314
|
WfoIsAllowedToRender,
|
|
54066
54315
|
{
|
|
54067
54316
|
resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */,
|
|
54068
|
-
children: /* @__PURE__ */
|
|
54317
|
+
children: /* @__PURE__ */ jsx161(
|
|
54069
54318
|
EuiButton12,
|
|
54070
54319
|
{
|
|
54071
54320
|
onClick: handleActionButtonClick(retryAction),
|
|
54072
|
-
iconType: () => /* @__PURE__ */
|
|
54321
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54073
54322
|
WfoRefresh,
|
|
54074
54323
|
{
|
|
54075
54324
|
color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
|
|
@@ -54081,15 +54330,15 @@ var WfoProcessDetail = ({
|
|
|
54081
54330
|
)
|
|
54082
54331
|
}
|
|
54083
54332
|
),
|
|
54084
|
-
/* @__PURE__ */
|
|
54333
|
+
/* @__PURE__ */ jsx161(
|
|
54085
54334
|
WfoIsAllowedToRender,
|
|
54086
54335
|
{
|
|
54087
54336
|
resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */,
|
|
54088
|
-
children: /* @__PURE__ */
|
|
54337
|
+
children: /* @__PURE__ */ jsx161(
|
|
54089
54338
|
EuiButton12,
|
|
54090
54339
|
{
|
|
54091
54340
|
onClick: handleActionButtonClick(abortAction),
|
|
54092
|
-
iconType: () => /* @__PURE__ */
|
|
54341
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54093
54342
|
WfoXCircleFill,
|
|
54094
54343
|
{
|
|
54095
54344
|
color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54102,11 +54351,11 @@ var WfoProcessDetail = ({
|
|
|
54102
54351
|
)
|
|
54103
54352
|
}
|
|
54104
54353
|
),
|
|
54105
|
-
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */
|
|
54354
|
+
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx161(
|
|
54106
54355
|
EuiButton12,
|
|
54107
54356
|
{
|
|
54108
54357
|
onClick: handleActionButtonClick(deleteAction),
|
|
54109
|
-
iconType: () => /* @__PURE__ */
|
|
54358
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54110
54359
|
WfoXCircleFill,
|
|
54111
54360
|
{
|
|
54112
54361
|
color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54121,44 +54370,44 @@ var WfoProcessDetail = ({
|
|
|
54121
54370
|
}
|
|
54122
54371
|
)
|
|
54123
54372
|
] }),
|
|
54124
|
-
/* @__PURE__ */
|
|
54125
|
-
/* @__PURE__ */
|
|
54373
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, {}),
|
|
54374
|
+
/* @__PURE__ */ jsx161(
|
|
54126
54375
|
EuiPanel5,
|
|
54127
54376
|
{
|
|
54128
54377
|
hasShadow: false,
|
|
54129
54378
|
hasBorder: false,
|
|
54130
54379
|
color: "subdued",
|
|
54131
54380
|
element: "div",
|
|
54132
|
-
children: isLoading && !hasError && /* @__PURE__ */
|
|
54133
|
-
/* @__PURE__ */
|
|
54381
|
+
children: isLoading && !hasError && /* @__PURE__ */ jsx161(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs91(EuiFlexGroup20, { direction: "row", gutterSize: "m", children: [
|
|
54382
|
+
/* @__PURE__ */ jsx161(
|
|
54134
54383
|
ProcessHeaderValue,
|
|
54135
54384
|
{
|
|
54136
54385
|
translationKey: "status",
|
|
54137
54386
|
value: processDetail.lastStatus
|
|
54138
54387
|
}
|
|
54139
54388
|
),
|
|
54140
|
-
/* @__PURE__ */
|
|
54389
|
+
/* @__PURE__ */ jsx161(
|
|
54141
54390
|
ProcessHeaderValue,
|
|
54142
54391
|
{
|
|
54143
54392
|
translationKey: "lastStep",
|
|
54144
54393
|
value: processDetail == null ? void 0 : processDetail.lastStep
|
|
54145
54394
|
}
|
|
54146
54395
|
),
|
|
54147
|
-
processDetail.customer && /* @__PURE__ */
|
|
54396
|
+
processDetail.customer && /* @__PURE__ */ jsx161(
|
|
54148
54397
|
ProcessHeaderValue,
|
|
54149
54398
|
{
|
|
54150
54399
|
translationKey: "customer",
|
|
54151
54400
|
value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
|
|
54152
54401
|
}
|
|
54153
54402
|
),
|
|
54154
|
-
/* @__PURE__ */
|
|
54403
|
+
/* @__PURE__ */ jsx161(
|
|
54155
54404
|
ProcessHeaderValue,
|
|
54156
54405
|
{
|
|
54157
54406
|
translationKey: "startedBy",
|
|
54158
54407
|
value: processDetail == null ? void 0 : processDetail.createdBy
|
|
54159
54408
|
}
|
|
54160
54409
|
),
|
|
54161
|
-
/* @__PURE__ */
|
|
54410
|
+
/* @__PURE__ */ jsx161(
|
|
54162
54411
|
ProcessHeaderValue,
|
|
54163
54412
|
{
|
|
54164
54413
|
translationKey: "startedOn",
|
|
@@ -54167,7 +54416,7 @@ var WfoProcessDetail = ({
|
|
|
54167
54416
|
)(processDetail == null ? void 0 : processDetail.startedAt) : ""
|
|
54168
54417
|
}
|
|
54169
54418
|
),
|
|
54170
|
-
/* @__PURE__ */
|
|
54419
|
+
/* @__PURE__ */ jsx161(
|
|
54171
54420
|
ProcessHeaderValue,
|
|
54172
54421
|
{
|
|
54173
54422
|
translationKey: "lastUpdate",
|
|
@@ -54188,8 +54437,8 @@ var WfoProcessDetail = ({
|
|
|
54188
54437
|
overflow: "hidden"
|
|
54189
54438
|
},
|
|
54190
54439
|
children: [
|
|
54191
|
-
/* @__PURE__ */
|
|
54192
|
-
/* @__PURE__ */
|
|
54440
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "xs", children: t("relatedSubscriptions") }),
|
|
54441
|
+
/* @__PURE__ */ jsx161(
|
|
54193
54442
|
EuiText33,
|
|
54194
54443
|
{
|
|
54195
54444
|
css: {
|
|
@@ -54199,7 +54448,7 @@ var WfoProcessDetail = ({
|
|
|
54199
54448
|
textOverflow: "ellipsis",
|
|
54200
54449
|
fontSize: theme.size.m
|
|
54201
54450
|
},
|
|
54202
|
-
children: /* @__PURE__ */
|
|
54451
|
+
children: /* @__PURE__ */ jsx161(
|
|
54203
54452
|
WfoProcessListSubscriptionsCell,
|
|
54204
54453
|
{
|
|
54205
54454
|
subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
|
|
@@ -54219,8 +54468,8 @@ var WfoProcessDetail = ({
|
|
|
54219
54468
|
] })
|
|
54220
54469
|
}
|
|
54221
54470
|
),
|
|
54222
|
-
/* @__PURE__ */
|
|
54223
|
-
/* @__PURE__ */
|
|
54471
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, { size: "s" }),
|
|
54472
|
+
/* @__PURE__ */ jsx161(
|
|
54224
54473
|
WfoTimeline,
|
|
54225
54474
|
{
|
|
54226
54475
|
timelineItems,
|
|
@@ -54233,7 +54482,7 @@ var WfoProcessDetail = ({
|
|
|
54233
54482
|
};
|
|
54234
54483
|
|
|
54235
54484
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
54236
|
-
import { jsx as
|
|
54485
|
+
import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
|
|
54237
54486
|
var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
|
|
54238
54487
|
var WfoProcessDetailPage = ({
|
|
54239
54488
|
processId,
|
|
@@ -54241,8 +54490,8 @@ var WfoProcessDetailPage = ({
|
|
|
54241
54490
|
}) => {
|
|
54242
54491
|
var _a, _b;
|
|
54243
54492
|
const stepListRef = useRef7(null);
|
|
54244
|
-
const [fetchInterval, setFetchInterval] =
|
|
54245
|
-
const [process2, setProcess] =
|
|
54493
|
+
const [fetchInterval, setFetchInterval] = useState37();
|
|
54494
|
+
const [process2, setProcess] = useState37();
|
|
54246
54495
|
const { data, isLoading, isError: isError3 } = useGetProcessDetailQuery(
|
|
54247
54496
|
{ processId },
|
|
54248
54497
|
{ pollingInterval: fetchInterval }
|
|
@@ -54252,7 +54501,7 @@ var WfoProcessDetailPage = ({
|
|
|
54252
54501
|
setFetchInterval(void 0);
|
|
54253
54502
|
}
|
|
54254
54503
|
}
|
|
54255
|
-
|
|
54504
|
+
useEffect23(() => {
|
|
54256
54505
|
const process3 = data == null ? void 0 : data.processes[0];
|
|
54257
54506
|
const lastStatus = process3 == null ? void 0 : process3.lastStatus.toLocaleLowerCase();
|
|
54258
54507
|
const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
|
|
@@ -54260,7 +54509,7 @@ var WfoProcessDetailPage = ({
|
|
|
54260
54509
|
isInProgress ? processDetailRefetchInterval : void 0
|
|
54261
54510
|
);
|
|
54262
54511
|
}, [data, processDetailRefetchInterval]);
|
|
54263
|
-
|
|
54512
|
+
useEffect23(() => {
|
|
54264
54513
|
const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
|
|
54265
54514
|
if (!process2) {
|
|
54266
54515
|
setProcess(fetchedProcessDetails);
|
|
@@ -54277,7 +54526,7 @@ var WfoProcessDetailPage = ({
|
|
|
54277
54526
|
const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
|
|
54278
54527
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
54279
54528
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
54280
|
-
return /* @__PURE__ */
|
|
54529
|
+
return /* @__PURE__ */ jsx162(
|
|
54281
54530
|
WfoProcessDetail,
|
|
54282
54531
|
{
|
|
54283
54532
|
pageTitle,
|
|
@@ -54291,7 +54540,7 @@ var WfoProcessDetailPage = ({
|
|
|
54291
54540
|
},
|
|
54292
54541
|
isLoading,
|
|
54293
54542
|
hasError: isError3,
|
|
54294
|
-
children: isError3 && /* @__PURE__ */
|
|
54543
|
+
children: isError3 && /* @__PURE__ */ jsx162(WfoError, {}) || isLoading && /* @__PURE__ */ jsx162(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx162(
|
|
54295
54544
|
WfoWorkflowStepList,
|
|
54296
54545
|
{
|
|
54297
54546
|
ref: stepListRef,
|
|
@@ -54303,14 +54552,14 @@ var WfoProcessDetailPage = ({
|
|
|
54303
54552
|
startedAt: process2.startedAt,
|
|
54304
54553
|
isTask
|
|
54305
54554
|
}
|
|
54306
|
-
) || /* @__PURE__ */
|
|
54555
|
+
) || /* @__PURE__ */ jsx162("h1", { children: "Invalid processId" })
|
|
54307
54556
|
}
|
|
54308
54557
|
);
|
|
54309
54558
|
};
|
|
54310
54559
|
|
|
54311
54560
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
54312
|
-
import { useCallback as useCallback6, useEffect as
|
|
54313
|
-
import { useTranslations as
|
|
54561
|
+
import { useCallback as useCallback6, useEffect as useEffect24, useMemo as useMemo5, useState as useState38 } from "react";
|
|
54562
|
+
import { useTranslations as useTranslations51 } from "next-intl";
|
|
54314
54563
|
import { useRouter as useRouter10 } from "next/router";
|
|
54315
54564
|
import {
|
|
54316
54565
|
EuiFlexGroup as EuiFlexGroup21,
|
|
@@ -54319,7 +54568,7 @@ import {
|
|
|
54319
54568
|
EuiPanel as EuiPanel6,
|
|
54320
54569
|
EuiText as EuiText34
|
|
54321
54570
|
} from "@elastic/eui";
|
|
54322
|
-
import { jsx as
|
|
54571
|
+
import { jsx as jsx163, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
54323
54572
|
var getInitialProcessPayload = ({
|
|
54324
54573
|
productId,
|
|
54325
54574
|
subscriptionId
|
|
@@ -54341,11 +54590,11 @@ var WfoStartProcessPage = ({
|
|
|
54341
54590
|
isTask = false
|
|
54342
54591
|
}) => {
|
|
54343
54592
|
const apiClient = useAxiosApiClient();
|
|
54344
|
-
const t =
|
|
54593
|
+
const t = useTranslations51("processes.steps");
|
|
54345
54594
|
const router = useRouter10();
|
|
54346
|
-
const [hasError, setHasError] =
|
|
54595
|
+
const [hasError, setHasError] = useState38(false);
|
|
54347
54596
|
const { theme } = useOrchestratorTheme();
|
|
54348
|
-
const [form, setForm] =
|
|
54597
|
+
const [form, setForm] = useState38({});
|
|
54349
54598
|
const { productId, subscriptionId } = router.query;
|
|
54350
54599
|
const startProcessPayload = useMemo5(
|
|
54351
54600
|
() => getInitialProcessPayload({ productId, subscriptionId }),
|
|
@@ -54404,7 +54653,7 @@ var WfoStartProcessPage = ({
|
|
|
54404
54653
|
},
|
|
54405
54654
|
[apiClient, processName, startProcessPayload, isTask, router]
|
|
54406
54655
|
);
|
|
54407
|
-
|
|
54656
|
+
useEffect24(() => {
|
|
54408
54657
|
if (processName) {
|
|
54409
54658
|
const clientResultCallback = (json) => {
|
|
54410
54659
|
var _a;
|
|
@@ -54426,7 +54675,7 @@ var WfoStartProcessPage = ({
|
|
|
54426
54675
|
workflowName: processName,
|
|
54427
54676
|
createdBy: "-"
|
|
54428
54677
|
};
|
|
54429
|
-
return /* @__PURE__ */
|
|
54678
|
+
return /* @__PURE__ */ jsx163(
|
|
54430
54679
|
WfoProcessDetail,
|
|
54431
54680
|
{
|
|
54432
54681
|
pageTitle: processName,
|
|
@@ -54437,16 +54686,16 @@ var WfoStartProcessPage = ({
|
|
|
54437
54686
|
isLoading,
|
|
54438
54687
|
children: /* @__PURE__ */ jsxs92(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
|
|
54439
54688
|
/* @__PURE__ */ jsxs92(EuiFlexGroup21, { css: getStepHeaderStyle(false), children: [
|
|
54440
|
-
/* @__PURE__ */
|
|
54689
|
+
/* @__PURE__ */ jsx163(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
54441
54690
|
/* @__PURE__ */ jsxs92(EuiFlexItem28, { grow: 0, children: [
|
|
54442
|
-
/* @__PURE__ */
|
|
54443
|
-
/* @__PURE__ */
|
|
54691
|
+
/* @__PURE__ */ jsx163(EuiText34, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
54692
|
+
/* @__PURE__ */ jsx163(EuiText34, { children: t(
|
|
54444
54693
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
54445
54694
|
) })
|
|
54446
54695
|
] })
|
|
54447
54696
|
] }),
|
|
54448
|
-
/* @__PURE__ */
|
|
54449
|
-
hasError && /* @__PURE__ */
|
|
54697
|
+
/* @__PURE__ */ jsx163(EuiHorizontalRule6, {}),
|
|
54698
|
+
hasError && /* @__PURE__ */ jsx163(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx163(
|
|
54450
54699
|
UserInputFormWizard_default,
|
|
54451
54700
|
{
|
|
54452
54701
|
stepUserInput,
|
|
@@ -54457,14 +54706,14 @@ var WfoStartProcessPage = ({
|
|
|
54457
54706
|
hasNext,
|
|
54458
54707
|
isTask
|
|
54459
54708
|
}
|
|
54460
|
-
) || /* @__PURE__ */
|
|
54709
|
+
) || /* @__PURE__ */ jsx163(WfoLoading, {})
|
|
54461
54710
|
] })
|
|
54462
54711
|
}
|
|
54463
54712
|
);
|
|
54464
54713
|
};
|
|
54465
54714
|
|
|
54466
54715
|
// src/pages/startPage/WfoStartPage.tsx
|
|
54467
|
-
import { useTranslations as
|
|
54716
|
+
import { useTranslations as useTranslations52 } from "next-intl";
|
|
54468
54717
|
import { EuiFlexItem as EuiFlexItem33 } from "@elastic/eui";
|
|
54469
54718
|
|
|
54470
54719
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
@@ -54524,7 +54773,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
|
|
|
54524
54773
|
};
|
|
54525
54774
|
|
|
54526
54775
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
54527
|
-
import { jsx as
|
|
54776
|
+
import { jsx as jsx164, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
54528
54777
|
var WfoSummaryCardHeader = ({
|
|
54529
54778
|
text,
|
|
54530
54779
|
value,
|
|
@@ -54533,8 +54782,8 @@ var WfoSummaryCardHeader = ({
|
|
|
54533
54782
|
}) => {
|
|
54534
54783
|
const { theme } = useOrchestratorTheme();
|
|
54535
54784
|
const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
|
|
54536
|
-
return /* @__PURE__ */
|
|
54537
|
-
/* @__PURE__ */
|
|
54785
|
+
return /* @__PURE__ */ jsx164(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx164(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs93(EuiFlexGroup22, { children: [
|
|
54786
|
+
/* @__PURE__ */ jsx164(
|
|
54538
54787
|
EuiAvatar2,
|
|
54539
54788
|
{
|
|
54540
54789
|
iconSize: "l",
|
|
@@ -54548,8 +54797,8 @@ var WfoSummaryCardHeader = ({
|
|
|
54548
54797
|
}
|
|
54549
54798
|
),
|
|
54550
54799
|
/* @__PURE__ */ jsxs93("div", { css: totalSectionStyle, children: [
|
|
54551
|
-
/* @__PURE__ */
|
|
54552
|
-
/* @__PURE__ */
|
|
54800
|
+
/* @__PURE__ */ jsx164(EuiText35, { color: "subdued", children: text }),
|
|
54801
|
+
/* @__PURE__ */ jsx164(EuiText35, { css: valueStyle, children: value })
|
|
54553
54802
|
] })
|
|
54554
54803
|
] }) }) });
|
|
54555
54804
|
};
|
|
@@ -54571,15 +54820,15 @@ import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem30, EuiIcon a
|
|
|
54571
54820
|
|
|
54572
54821
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
54573
54822
|
import Link5 from "next/link";
|
|
54574
|
-
import { jsx as
|
|
54823
|
+
import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
|
|
54575
54824
|
var WfoOptionalLink = ({
|
|
54576
54825
|
children,
|
|
54577
54826
|
href
|
|
54578
54827
|
}) => {
|
|
54579
54828
|
if (!href) {
|
|
54580
|
-
return /* @__PURE__ */
|
|
54829
|
+
return /* @__PURE__ */ jsx165("span", { children });
|
|
54581
54830
|
}
|
|
54582
|
-
return /* @__PURE__ */
|
|
54831
|
+
return /* @__PURE__ */ jsx165(Link5, { href, children });
|
|
54583
54832
|
};
|
|
54584
54833
|
|
|
54585
54834
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -54628,7 +54877,7 @@ var getWfoSummaryCardListStyles = (theme) => {
|
|
|
54628
54877
|
};
|
|
54629
54878
|
|
|
54630
54879
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
54631
|
-
import { jsx as
|
|
54880
|
+
import { jsx as jsx166, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
54632
54881
|
var WfoSummaryCardListItem = ({
|
|
54633
54882
|
title,
|
|
54634
54883
|
value,
|
|
@@ -54641,9 +54890,9 @@ var WfoSummaryCardListItem = ({
|
|
|
54641
54890
|
listItemSubtitleStyle,
|
|
54642
54891
|
listItemHighlightIconStyle
|
|
54643
54892
|
} = getWfoSummaryCardListStyles(theme);
|
|
54644
|
-
return /* @__PURE__ */
|
|
54893
|
+
return /* @__PURE__ */ jsx166(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs94(EuiFlexGroup23, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
54645
54894
|
/* @__PURE__ */ jsxs94(EuiFlexItem30, { children: [
|
|
54646
|
-
/* @__PURE__ */
|
|
54895
|
+
/* @__PURE__ */ jsx166(
|
|
54647
54896
|
EuiTextColor,
|
|
54648
54897
|
{
|
|
54649
54898
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -54651,22 +54900,22 @@ var WfoSummaryCardListItem = ({
|
|
|
54651
54900
|
children: title
|
|
54652
54901
|
}
|
|
54653
54902
|
),
|
|
54654
|
-
/* @__PURE__ */
|
|
54903
|
+
/* @__PURE__ */ jsx166(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
54655
54904
|
] }),
|
|
54656
|
-
/* @__PURE__ */
|
|
54905
|
+
/* @__PURE__ */ jsx166(
|
|
54657
54906
|
EuiFlexItem30,
|
|
54658
54907
|
{
|
|
54659
54908
|
className: url ? "highlight-icon" : void 0,
|
|
54660
54909
|
grow: false,
|
|
54661
54910
|
css: listItemHighlightIconStyle,
|
|
54662
|
-
children: /* @__PURE__ */
|
|
54911
|
+
children: /* @__PURE__ */ jsx166(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
54663
54912
|
}
|
|
54664
54913
|
)
|
|
54665
54914
|
] }) });
|
|
54666
54915
|
};
|
|
54667
54916
|
|
|
54668
54917
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
54669
|
-
import { jsx as
|
|
54918
|
+
import { jsx as jsx167, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
54670
54919
|
var WfoSummaryCardList = ({
|
|
54671
54920
|
title,
|
|
54672
54921
|
items,
|
|
@@ -54676,7 +54925,7 @@ var WfoSummaryCardList = ({
|
|
|
54676
54925
|
const router = useRouter11();
|
|
54677
54926
|
const euiScrollBarStyle = useEuiScrollBar2();
|
|
54678
54927
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
54679
|
-
return /* @__PURE__ */
|
|
54928
|
+
return /* @__PURE__ */ jsx167(EuiFlexItem31, { children: /* @__PURE__ */ jsxs95(
|
|
54680
54929
|
EuiPanel8,
|
|
54681
54930
|
{
|
|
54682
54931
|
css: listContainerStyle,
|
|
@@ -54685,10 +54934,10 @@ var WfoSummaryCardList = ({
|
|
|
54685
54934
|
paddingSize: "l",
|
|
54686
54935
|
children: [
|
|
54687
54936
|
/* @__PURE__ */ jsxs95("div", { children: [
|
|
54688
|
-
/* @__PURE__ */
|
|
54689
|
-
/* @__PURE__ */
|
|
54690
|
-
/* @__PURE__ */
|
|
54691
|
-
/* @__PURE__ */
|
|
54937
|
+
/* @__PURE__ */ jsx167("p", { css: listHeaderStyle, children: title }),
|
|
54938
|
+
/* @__PURE__ */ jsx167(EuiSpacer18, { size: "m" }),
|
|
54939
|
+
/* @__PURE__ */ jsx167(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx167("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs95("div", { children: [
|
|
54940
|
+
/* @__PURE__ */ jsx167(
|
|
54692
54941
|
WfoSummaryCardListItem,
|
|
54693
54942
|
{
|
|
54694
54943
|
title: item.title,
|
|
@@ -54696,11 +54945,11 @@ var WfoSummaryCardList = ({
|
|
|
54696
54945
|
url: item.url
|
|
54697
54946
|
}
|
|
54698
54947
|
),
|
|
54699
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
54948
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx167(EuiHorizontalRule7, { margin: "none" })
|
|
54700
54949
|
] }, index)) }) })
|
|
54701
54950
|
] }),
|
|
54702
|
-
/* @__PURE__ */
|
|
54703
|
-
button && /* @__PURE__ */
|
|
54951
|
+
/* @__PURE__ */ jsx167(EuiSpacer18, { size: "m" }),
|
|
54952
|
+
button && /* @__PURE__ */ jsx167(
|
|
54704
54953
|
EuiButton13,
|
|
54705
54954
|
{
|
|
54706
54955
|
fullWidth: true,
|
|
@@ -54726,7 +54975,7 @@ var getWfoSummaryCardsStyles = (theme) => {
|
|
|
54726
54975
|
};
|
|
54727
54976
|
|
|
54728
54977
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
54729
|
-
import { jsx as
|
|
54978
|
+
import { jsx as jsx168, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
54730
54979
|
var WfoSummaryCards = ({ summaryCards }) => {
|
|
54731
54980
|
const { theme } = useOrchestratorTheme();
|
|
54732
54981
|
const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
|
|
@@ -54751,7 +55000,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54751
55000
|
};
|
|
54752
55001
|
}
|
|
54753
55002
|
};
|
|
54754
|
-
return /* @__PURE__ */
|
|
55003
|
+
return /* @__PURE__ */ jsx168(
|
|
54755
55004
|
EuiFlexGrid2,
|
|
54756
55005
|
{
|
|
54757
55006
|
responsive: false,
|
|
@@ -54767,7 +55016,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54767
55016
|
button,
|
|
54768
55017
|
isLoading
|
|
54769
55018
|
}, index) => /* @__PURE__ */ jsxs96(EuiFlexItem32, { css: cardContainerStyle, children: [
|
|
54770
|
-
/* @__PURE__ */
|
|
55019
|
+
/* @__PURE__ */ jsx168(
|
|
54771
55020
|
WfoSummaryCardHeader,
|
|
54772
55021
|
__spreadValues({
|
|
54773
55022
|
text: headerTitle,
|
|
@@ -54776,8 +55025,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54776
55025
|
headerStatus
|
|
54777
55026
|
))
|
|
54778
55027
|
),
|
|
54779
|
-
/* @__PURE__ */
|
|
54780
|
-
/* @__PURE__ */
|
|
55028
|
+
/* @__PURE__ */ jsx168(EuiSpacer19, { size: "m" }),
|
|
55029
|
+
/* @__PURE__ */ jsx168(
|
|
54781
55030
|
WfoSummaryCardList,
|
|
54782
55031
|
{
|
|
54783
55032
|
title: listTitle,
|
|
@@ -54843,10 +55092,10 @@ var subscriptionListSummaryApi = orchestratorApi.injectEndpoints({
|
|
|
54843
55092
|
var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
|
|
54844
55093
|
|
|
54845
55094
|
// src/pages/startPage/WfoStartPage.tsx
|
|
54846
|
-
import { jsx as
|
|
55095
|
+
import { jsx as jsx169, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
54847
55096
|
var WfoStartPage = () => {
|
|
54848
55097
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
54849
|
-
const t =
|
|
55098
|
+
const t = useTranslations52("startPage");
|
|
54850
55099
|
const { isAllowed } = usePolicy();
|
|
54851
55100
|
const {
|
|
54852
55101
|
data: subscriptionsSummaryResult,
|
|
@@ -54958,8 +55207,8 @@ var WfoStartPage = () => {
|
|
|
54958
55207
|
justifyContent: "space-between"
|
|
54959
55208
|
},
|
|
54960
55209
|
children: [
|
|
54961
|
-
/* @__PURE__ */
|
|
54962
|
-
/* @__PURE__ */
|
|
55210
|
+
/* @__PURE__ */ jsx169("div", { children: product.name }),
|
|
55211
|
+
/* @__PURE__ */ jsx169("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
54963
55212
|
]
|
|
54964
55213
|
}
|
|
54965
55214
|
)
|
|
@@ -54976,7 +55225,7 @@ var WfoStartPage = () => {
|
|
|
54976
55225
|
latestActiveSubscriptionsSummaryCard,
|
|
54977
55226
|
productsSummaryCard
|
|
54978
55227
|
];
|
|
54979
|
-
return /* @__PURE__ */
|
|
55228
|
+
return /* @__PURE__ */ jsx169(EuiFlexItem33, { children: /* @__PURE__ */ jsx169(WfoSummaryCards, { summaryCards: allowedSummaryCards }) });
|
|
54980
55229
|
};
|
|
54981
55230
|
var subscriptionsListSummaryQueryVariables = {
|
|
54982
55231
|
first: 5,
|
|
@@ -55064,16 +55313,16 @@ var productsSummaryQueryVariables = {
|
|
|
55064
55313
|
|
|
55065
55314
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
55066
55315
|
import { useRouter as useRouter12 } from "next/router";
|
|
55067
|
-
import { Fragment as
|
|
55316
|
+
import { Fragment as Fragment40, jsx as jsx170 } from "@emotion/react/jsx-runtime";
|
|
55068
55317
|
var WfoSubscriptionDetailPage = () => {
|
|
55069
55318
|
const router = useRouter12();
|
|
55070
55319
|
const { subscriptionId } = router.query;
|
|
55071
|
-
return subscriptionId && /* @__PURE__ */
|
|
55320
|
+
return subscriptionId && /* @__PURE__ */ jsx170(TreeProvider, { children: /* @__PURE__ */ jsx170(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx170(Fragment40, {});
|
|
55072
55321
|
};
|
|
55073
55322
|
|
|
55074
55323
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55075
|
-
import { useEffect as
|
|
55076
|
-
import { useTranslations as
|
|
55324
|
+
import { useEffect as useEffect25, useState as useState39 } from "react";
|
|
55325
|
+
import { useTranslations as useTranslations54 } from "next-intl";
|
|
55077
55326
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
55078
55327
|
import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
55079
55328
|
|
|
@@ -55156,7 +55405,7 @@ var subscriptionListTabs = [
|
|
|
55156
55405
|
];
|
|
55157
55406
|
|
|
55158
55407
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55159
|
-
import { useTranslations as
|
|
55408
|
+
import { useTranslations as useTranslations53 } from "next-intl";
|
|
55160
55409
|
import Link6 from "next/link";
|
|
55161
55410
|
import { useRouter as useRouter13 } from "next/router";
|
|
55162
55411
|
|
|
@@ -55228,7 +55477,7 @@ var subscriptionListApi = orchestratorApi.injectEndpoints({
|
|
|
55228
55477
|
var { useGetSubscriptionListQuery, useLazyGetSubscriptionListQuery } = subscriptionListApi;
|
|
55229
55478
|
|
|
55230
55479
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55231
|
-
import { jsx as
|
|
55480
|
+
import { jsx as jsx171 } from "@emotion/react/jsx-runtime";
|
|
55232
55481
|
var WfoSubscriptionsList = ({
|
|
55233
55482
|
alwaysOnFilters,
|
|
55234
55483
|
dataDisplayParams,
|
|
@@ -55237,34 +55486,34 @@ var WfoSubscriptionsList = ({
|
|
|
55237
55486
|
}) => {
|
|
55238
55487
|
var _a, _b, _c;
|
|
55239
55488
|
const router = useRouter13();
|
|
55240
|
-
const t =
|
|
55241
|
-
const tError =
|
|
55489
|
+
const t = useTranslations53("subscriptions.index");
|
|
55490
|
+
const tError = useTranslations53("errors");
|
|
55242
55491
|
const { showToastMessage } = useShowToastMessage();
|
|
55243
55492
|
const tableColumns = {
|
|
55244
55493
|
subscriptionId: {
|
|
55245
55494
|
field: "subscriptionId",
|
|
55246
55495
|
name: t("id"),
|
|
55247
55496
|
width: "100",
|
|
55248
|
-
render: (value) => /* @__PURE__ */
|
|
55497
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoFirstPartUUID, { UUID: value }),
|
|
55249
55498
|
renderDetails: (value) => value
|
|
55250
55499
|
},
|
|
55251
55500
|
description: {
|
|
55252
55501
|
field: "description",
|
|
55253
55502
|
name: t("description"),
|
|
55254
55503
|
width: "400",
|
|
55255
|
-
render: (value, record) => /* @__PURE__ */
|
|
55504
|
+
render: (value, record) => /* @__PURE__ */ jsx171(Link6, { href: `/subscriptions/${record.subscriptionId}`, children: value })
|
|
55256
55505
|
},
|
|
55257
55506
|
status: {
|
|
55258
55507
|
field: "status",
|
|
55259
55508
|
name: t("status"),
|
|
55260
55509
|
width: "110",
|
|
55261
|
-
render: (value) => /* @__PURE__ */
|
|
55510
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoSubscriptionStatusBadge, { status: value })
|
|
55262
55511
|
},
|
|
55263
55512
|
insync: {
|
|
55264
55513
|
field: "insync",
|
|
55265
55514
|
name: t("insync"),
|
|
55266
55515
|
width: "110",
|
|
55267
|
-
render: (value) => /* @__PURE__ */
|
|
55516
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoInsyncIcon, { inSync: value })
|
|
55268
55517
|
},
|
|
55269
55518
|
productName: {
|
|
55270
55519
|
field: "productName",
|
|
@@ -55289,7 +55538,7 @@ var WfoSubscriptionsList = ({
|
|
|
55289
55538
|
field: "startDate",
|
|
55290
55539
|
name: t("startDate"),
|
|
55291
55540
|
width: "150",
|
|
55292
|
-
render: (value) => /* @__PURE__ */
|
|
55541
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoDateTime, { dateOrIsoString: value }),
|
|
55293
55542
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55294
55543
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55295
55544
|
},
|
|
@@ -55297,7 +55546,7 @@ var WfoSubscriptionsList = ({
|
|
|
55297
55546
|
field: "endDate",
|
|
55298
55547
|
name: t("endDate"),
|
|
55299
55548
|
width: "150",
|
|
55300
|
-
render: (value) => /* @__PURE__ */
|
|
55549
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoDateTime, { dateOrIsoString: value }),
|
|
55301
55550
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55302
55551
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55303
55552
|
},
|
|
@@ -55308,8 +55557,8 @@ var WfoSubscriptionsList = ({
|
|
|
55308
55557
|
metadata: {
|
|
55309
55558
|
field: "metadata",
|
|
55310
55559
|
name: t("metadata"),
|
|
55311
|
-
render: (value) => /* @__PURE__ */
|
|
55312
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
55560
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoInlineJson, { data: value }),
|
|
55561
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx171(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
|
|
55313
55562
|
}
|
|
55314
55563
|
};
|
|
55315
55564
|
const { sortBy, queryString, pageIndex, pageSize } = dataDisplayParams;
|
|
@@ -55343,7 +55592,7 @@ var WfoSubscriptionsList = ({
|
|
|
55343
55592
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
55344
55593
|
totalItemCount: totalItems != null ? totalItems : 0
|
|
55345
55594
|
};
|
|
55346
|
-
return /* @__PURE__ */
|
|
55595
|
+
return /* @__PURE__ */ jsx171(
|
|
55347
55596
|
WfoTableWithFilter,
|
|
55348
55597
|
{
|
|
55349
55598
|
queryString: dataDisplayParams.queryString,
|
|
@@ -55384,15 +55633,15 @@ var WfoSubscriptionsList = ({
|
|
|
55384
55633
|
};
|
|
55385
55634
|
|
|
55386
55635
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55387
|
-
import { Fragment as
|
|
55636
|
+
import { Fragment as Fragment41, jsx as jsx172, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
55388
55637
|
var WfoSubscriptionsListPage = () => {
|
|
55389
55638
|
var _a;
|
|
55390
|
-
const t =
|
|
55391
|
-
const [tableDefaults, setTableDefaults] =
|
|
55639
|
+
const t = useTranslations54("subscriptions.detail");
|
|
55640
|
+
const [tableDefaults, setTableDefaults] = useState39();
|
|
55392
55641
|
const getStoredTableConfig = useStoredTableConfig(
|
|
55393
55642
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
55394
55643
|
);
|
|
55395
|
-
|
|
55644
|
+
useEffect25(() => {
|
|
55396
55645
|
const storedConfig = getStoredTableConfig();
|
|
55397
55646
|
if (storedConfig) {
|
|
55398
55647
|
setTableDefaults(storedConfig);
|
|
@@ -55424,11 +55673,11 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55424
55673
|
const alwaysOnFilters = (_a = subscriptionListTabs.find(
|
|
55425
55674
|
({ id }) => id === activeTab
|
|
55426
55675
|
)) == null ? void 0 : _a.alwaysOnFilters;
|
|
55427
|
-
return /* @__PURE__ */ jsxs98(
|
|
55428
|
-
/* @__PURE__ */
|
|
55429
|
-
/* @__PURE__ */
|
|
55430
|
-
/* @__PURE__ */
|
|
55431
|
-
/* @__PURE__ */
|
|
55676
|
+
return /* @__PURE__ */ jsxs98(Fragment41, { children: [
|
|
55677
|
+
/* @__PURE__ */ jsx172(EuiSpacer20, {}),
|
|
55678
|
+
/* @__PURE__ */ jsx172(EuiPageHeader4, { pageTitle: t("title") }),
|
|
55679
|
+
/* @__PURE__ */ jsx172(EuiSpacer20, { size: "m" }),
|
|
55680
|
+
/* @__PURE__ */ jsx172(
|
|
55432
55681
|
WfoFilterTabs,
|
|
55433
55682
|
{
|
|
55434
55683
|
tabs: subscriptionListTabs,
|
|
@@ -55437,8 +55686,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55437
55686
|
onChangeTab: handleChangeSubscriptionsTab
|
|
55438
55687
|
}
|
|
55439
55688
|
),
|
|
55440
|
-
/* @__PURE__ */
|
|
55441
|
-
/* @__PURE__ */
|
|
55689
|
+
/* @__PURE__ */ jsx172(EuiSpacer20, { size: "xxl" }),
|
|
55690
|
+
/* @__PURE__ */ jsx172(
|
|
55442
55691
|
WfoSubscriptionsList,
|
|
55443
55692
|
{
|
|
55444
55693
|
hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -55451,8 +55700,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55451
55700
|
};
|
|
55452
55701
|
|
|
55453
55702
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55454
|
-
import { useContext as useContext14, useEffect as
|
|
55455
|
-
import { useTranslations as
|
|
55703
|
+
import { useContext as useContext14, useEffect as useEffect26, useState as useState40 } from "react";
|
|
55704
|
+
import { useTranslations as useTranslations55 } from "next-intl";
|
|
55456
55705
|
import Link7 from "next/link";
|
|
55457
55706
|
import { useRouter as useRouter14 } from "next/router";
|
|
55458
55707
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
@@ -55527,16 +55776,16 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
55527
55776
|
};
|
|
55528
55777
|
|
|
55529
55778
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55530
|
-
import { Fragment as
|
|
55779
|
+
import { Fragment as Fragment42, jsx as jsx173, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
55531
55780
|
var WfoTasksListPage = () => {
|
|
55532
55781
|
var _a;
|
|
55533
55782
|
const router = useRouter14();
|
|
55534
|
-
const t =
|
|
55783
|
+
const t = useTranslations55("tasks.page");
|
|
55535
55784
|
const [activeTab, setActiveTab] = useQueryParam3(
|
|
55536
55785
|
"activeTab",
|
|
55537
55786
|
withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
|
|
55538
55787
|
);
|
|
55539
|
-
const [tableDefaults, setTableDefaults] =
|
|
55788
|
+
const [tableDefaults, setTableDefaults] = useState40();
|
|
55540
55789
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
55541
55790
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
55542
55791
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -55544,7 +55793,7 @@ var WfoTasksListPage = () => {
|
|
|
55544
55793
|
const { showConfirmDialog } = useContext14(ConfirmationDialogContext);
|
|
55545
55794
|
const { retryAllProcesses } = useMutateProcess();
|
|
55546
55795
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
55547
|
-
|
|
55796
|
+
useEffect26(() => {
|
|
55548
55797
|
const storedConfig = getStoredTableConfig();
|
|
55549
55798
|
if (storedConfig) {
|
|
55550
55799
|
setTableDefaults(storedConfig);
|
|
@@ -55584,7 +55833,7 @@ var WfoTasksListPage = () => {
|
|
|
55584
55833
|
workflowName: {
|
|
55585
55834
|
field: "workflowName",
|
|
55586
55835
|
name: t("taskName"),
|
|
55587
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
55836
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx173(Link7, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
55588
55837
|
},
|
|
55589
55838
|
lastStep: defaultTableColumns.lastStep,
|
|
55590
55839
|
lastStatus: defaultTableColumns.lastStatus,
|
|
@@ -55600,21 +55849,21 @@ var WfoTasksListPage = () => {
|
|
|
55600
55849
|
startedAt: defaultTableColumns.startedAt,
|
|
55601
55850
|
lastModifiedAt: defaultTableColumns.lastModifiedAt
|
|
55602
55851
|
});
|
|
55603
|
-
return /* @__PURE__ */ jsxs99(
|
|
55604
|
-
/* @__PURE__ */
|
|
55852
|
+
return /* @__PURE__ */ jsxs99(Fragment42, { children: [
|
|
55853
|
+
/* @__PURE__ */ jsx173(EuiSpacer21, {}),
|
|
55605
55854
|
/* @__PURE__ */ jsxs99(EuiFlexGroup24, { children: [
|
|
55606
|
-
/* @__PURE__ */
|
|
55607
|
-
/* @__PURE__ */
|
|
55855
|
+
/* @__PURE__ */ jsx173(EuiFlexItem34, { children: /* @__PURE__ */ jsx173(EuiPageHeader5, { pageTitle: "Tasks" }) }),
|
|
55856
|
+
/* @__PURE__ */ jsx173(EuiFlexItem34, { children: /* @__PURE__ */ jsxs99(EuiFlexGroup24, { justifyContent: "flexEnd", children: [
|
|
55608
55857
|
" ",
|
|
55609
|
-
/* @__PURE__ */
|
|
55858
|
+
/* @__PURE__ */ jsx173(
|
|
55610
55859
|
WfoIsAllowedToRender,
|
|
55611
55860
|
{
|
|
55612
55861
|
resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
|
|
55613
|
-
children: /* @__PURE__ */
|
|
55862
|
+
children: /* @__PURE__ */ jsx173(
|
|
55614
55863
|
EuiButton14,
|
|
55615
55864
|
{
|
|
55616
55865
|
onClick: handleRerunAllButtonClick,
|
|
55617
|
-
iconType: () => /* @__PURE__ */
|
|
55866
|
+
iconType: () => /* @__PURE__ */ jsx173(
|
|
55618
55867
|
WfoRefresh,
|
|
55619
55868
|
{
|
|
55620
55869
|
color: theme.colors.primaryText
|
|
@@ -55625,16 +55874,16 @@ var WfoTasksListPage = () => {
|
|
|
55625
55874
|
)
|
|
55626
55875
|
}
|
|
55627
55876
|
),
|
|
55628
|
-
/* @__PURE__ */
|
|
55877
|
+
/* @__PURE__ */ jsx173(
|
|
55629
55878
|
WfoIsAllowedToRender,
|
|
55630
55879
|
{
|
|
55631
55880
|
resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
|
|
55632
|
-
children: /* @__PURE__ */
|
|
55881
|
+
children: /* @__PURE__ */ jsx173(WfoStartTaskButtonComboBox, {})
|
|
55633
55882
|
}
|
|
55634
55883
|
)
|
|
55635
55884
|
] }) })
|
|
55636
55885
|
] }),
|
|
55637
|
-
/* @__PURE__ */
|
|
55886
|
+
/* @__PURE__ */ jsx173(
|
|
55638
55887
|
WfoFilterTabs,
|
|
55639
55888
|
{
|
|
55640
55889
|
tabs: defaultTasksListTabs,
|
|
@@ -55643,8 +55892,8 @@ var WfoTasksListPage = () => {
|
|
|
55643
55892
|
onChangeTab: handleChangeTasksListTab
|
|
55644
55893
|
}
|
|
55645
55894
|
),
|
|
55646
|
-
/* @__PURE__ */
|
|
55647
|
-
/* @__PURE__ */
|
|
55895
|
+
/* @__PURE__ */ jsx173(EuiSpacer21, { size: "xxl" }),
|
|
55896
|
+
/* @__PURE__ */ jsx173(
|
|
55648
55897
|
WfoProcessesList,
|
|
55649
55898
|
{
|
|
55650
55899
|
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -55659,8 +55908,8 @@ var WfoTasksListPage = () => {
|
|
|
55659
55908
|
};
|
|
55660
55909
|
|
|
55661
55910
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
55662
|
-
import { useEffect as
|
|
55663
|
-
import { useTranslations as
|
|
55911
|
+
import { useEffect as useEffect27, useState as useState41 } from "react";
|
|
55912
|
+
import { useTranslations as useTranslations56 } from "next-intl";
|
|
55664
55913
|
import { useRouter as useRouter15 } from "next/router";
|
|
55665
55914
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
55666
55915
|
import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer22 } from "@elastic/eui";
|
|
@@ -55728,20 +55977,20 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
55728
55977
|
};
|
|
55729
55978
|
|
|
55730
55979
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
55731
|
-
import { Fragment as
|
|
55980
|
+
import { Fragment as Fragment43, jsx as jsx174, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
55732
55981
|
var WfoWorkflowsListPage = () => {
|
|
55733
55982
|
var _a;
|
|
55734
55983
|
const router = useRouter15();
|
|
55735
|
-
const t =
|
|
55984
|
+
const t = useTranslations56("workflows.index");
|
|
55736
55985
|
const [activeTab, setActiveTab] = useQueryParam4(
|
|
55737
55986
|
"activeTab",
|
|
55738
55987
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
55739
55988
|
);
|
|
55740
|
-
const [tableDefaults, setTableDefaults] =
|
|
55989
|
+
const [tableDefaults, setTableDefaults] = useState41();
|
|
55741
55990
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
55742
55991
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
55743
55992
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
55744
|
-
|
|
55993
|
+
useEffect27(() => {
|
|
55745
55994
|
const storedConfig = getStoredTableConfig();
|
|
55746
55995
|
if (storedConfig) {
|
|
55747
55996
|
setTableDefaults(storedConfig);
|
|
@@ -55767,11 +56016,11 @@ var WfoWorkflowsListPage = () => {
|
|
|
55767
56016
|
router.replace(PATH_WORKFLOWS);
|
|
55768
56017
|
return null;
|
|
55769
56018
|
}
|
|
55770
|
-
return /* @__PURE__ */ jsxs100(
|
|
55771
|
-
/* @__PURE__ */
|
|
55772
|
-
/* @__PURE__ */
|
|
55773
|
-
/* @__PURE__ */
|
|
55774
|
-
/* @__PURE__ */
|
|
56019
|
+
return /* @__PURE__ */ jsxs100(Fragment43, { children: [
|
|
56020
|
+
/* @__PURE__ */ jsx174(EuiSpacer22, {}),
|
|
56021
|
+
/* @__PURE__ */ jsx174(EuiPageHeader6, { pageTitle: t("title") }),
|
|
56022
|
+
/* @__PURE__ */ jsx174(EuiSpacer22, { size: "m" }),
|
|
56023
|
+
/* @__PURE__ */ jsx174(
|
|
55775
56024
|
WfoFilterTabs,
|
|
55776
56025
|
{
|
|
55777
56026
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -55780,8 +56029,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
55780
56029
|
onChangeTab: handleChangeWorkflowsListTab
|
|
55781
56030
|
}
|
|
55782
56031
|
),
|
|
55783
|
-
/* @__PURE__ */
|
|
55784
|
-
/* @__PURE__ */
|
|
56032
|
+
/* @__PURE__ */ jsx174(EuiSpacer22, { size: "xxl" }),
|
|
56033
|
+
/* @__PURE__ */ jsx174(
|
|
55785
56034
|
WfoProcessesList,
|
|
55786
56035
|
{
|
|
55787
56036
|
alwaysOnFilters,
|
|
@@ -55891,7 +56140,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
|
|
|
55891
56140
|
}));
|
|
55892
56141
|
|
|
55893
56142
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
55894
|
-
import { jsx as
|
|
56143
|
+
import { jsx as jsx175 } from "@emotion/react/jsx-runtime";
|
|
55895
56144
|
var WfoProcessesList = ({
|
|
55896
56145
|
alwaysOnFilters,
|
|
55897
56146
|
defaultHiddenColumns = [],
|
|
@@ -55901,15 +56150,15 @@ var WfoProcessesList = ({
|
|
|
55901
56150
|
overrideDefaultTableColumns
|
|
55902
56151
|
}) => {
|
|
55903
56152
|
var _a, _b;
|
|
55904
|
-
const t =
|
|
55905
|
-
const tError =
|
|
56153
|
+
const t = useTranslations57("processes.index");
|
|
56154
|
+
const tError = useTranslations57("errors");
|
|
55906
56155
|
const { showToastMessage } = useShowToastMessage();
|
|
55907
56156
|
const defaultTableColumns = {
|
|
55908
56157
|
workflowName: {
|
|
55909
56158
|
field: "workflowName",
|
|
55910
56159
|
name: t("workflowName"),
|
|
55911
56160
|
width: "20%",
|
|
55912
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56161
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx175(Link8, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
|
|
55913
56162
|
},
|
|
55914
56163
|
lastStep: {
|
|
55915
56164
|
field: "lastStep",
|
|
@@ -55920,13 +56169,13 @@ var WfoProcessesList = ({
|
|
|
55920
56169
|
field: "lastStatus",
|
|
55921
56170
|
name: t("status"),
|
|
55922
56171
|
width: "100",
|
|
55923
|
-
render: (cellValue) => /* @__PURE__ */
|
|
56172
|
+
render: (cellValue) => /* @__PURE__ */ jsx175(WfoProcessStatusBadge, { processStatus: cellValue })
|
|
55924
56173
|
},
|
|
55925
56174
|
workflowTarget: {
|
|
55926
56175
|
field: "workflowTarget",
|
|
55927
56176
|
name: t("workflowTarget"),
|
|
55928
56177
|
width: "100",
|
|
55929
|
-
render: (target) => /* @__PURE__ */
|
|
56178
|
+
render: (target) => /* @__PURE__ */ jsx175(WfoWorkflowTargetBadge, { target })
|
|
55930
56179
|
},
|
|
55931
56180
|
tag: {
|
|
55932
56181
|
field: "tag",
|
|
@@ -55952,14 +56201,14 @@ var WfoProcessesList = ({
|
|
|
55952
56201
|
field: "subscriptions",
|
|
55953
56202
|
name: t("subscriptions"),
|
|
55954
56203
|
width: "15%",
|
|
55955
|
-
render: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56204
|
+
render: ({ page: subscriptions }) => /* @__PURE__ */ jsx175(
|
|
55956
56205
|
WfoProcessListSubscriptionsCell,
|
|
55957
56206
|
{
|
|
55958
56207
|
subscriptions,
|
|
55959
56208
|
numberOfSubscriptionsToRender: 1
|
|
55960
56209
|
}
|
|
55961
56210
|
),
|
|
55962
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56211
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx175(
|
|
55963
56212
|
WfoProcessListSubscriptionsCell,
|
|
55964
56213
|
{
|
|
55965
56214
|
subscriptions
|
|
@@ -55981,14 +56230,14 @@ var WfoProcessesList = ({
|
|
|
55981
56230
|
field: "processId",
|
|
55982
56231
|
name: t("processId"),
|
|
55983
56232
|
width: "90",
|
|
55984
|
-
render: (value) => /* @__PURE__ */
|
|
56233
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoFirstPartUUID, { UUID: value }),
|
|
55985
56234
|
renderDetails: (value) => value
|
|
55986
56235
|
},
|
|
55987
56236
|
startedAt: {
|
|
55988
56237
|
field: "startedAt",
|
|
55989
56238
|
name: t("started"),
|
|
55990
56239
|
width: "100",
|
|
55991
|
-
render: (value) => /* @__PURE__ */
|
|
56240
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
55992
56241
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55993
56242
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55994
56243
|
},
|
|
@@ -55996,7 +56245,7 @@ var WfoProcessesList = ({
|
|
|
55996
56245
|
field: "lastModifiedAt",
|
|
55997
56246
|
name: t("lastModified"),
|
|
55998
56247
|
width: "100",
|
|
55999
|
-
render: (value) => /* @__PURE__ */
|
|
56248
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
56000
56249
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56001
56250
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56002
56251
|
}
|
|
@@ -56026,7 +56275,7 @@ var WfoProcessesList = ({
|
|
|
56026
56275
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
56027
56276
|
getQueryVariablesForExport(processListQueryVars)
|
|
56028
56277
|
).unwrap();
|
|
56029
|
-
return /* @__PURE__ */
|
|
56278
|
+
return /* @__PURE__ */ jsx175(
|
|
56030
56279
|
WfoTableWithFilter,
|
|
56031
56280
|
{
|
|
56032
56281
|
queryString,
|
|
@@ -56090,14 +56339,14 @@ var getStyles13 = (theme) => {
|
|
|
56090
56339
|
};
|
|
56091
56340
|
|
|
56092
56341
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
56093
|
-
import { jsx as
|
|
56342
|
+
import { jsx as jsx176 } from "@emotion/react/jsx-runtime";
|
|
56094
56343
|
var WfoJsonCodeBlock = ({
|
|
56095
56344
|
data,
|
|
56096
56345
|
isBasicStyle = false
|
|
56097
56346
|
}) => {
|
|
56098
56347
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles13);
|
|
56099
56348
|
const json = JSON.stringify(data, null, 4);
|
|
56100
|
-
return /* @__PURE__ */
|
|
56349
|
+
return /* @__PURE__ */ jsx176(
|
|
56101
56350
|
EuiCodeBlock2,
|
|
56102
56351
|
{
|
|
56103
56352
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -56110,8 +56359,8 @@ var WfoJsonCodeBlock = ({
|
|
|
56110
56359
|
};
|
|
56111
56360
|
|
|
56112
56361
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
56113
|
-
import { useState as
|
|
56114
|
-
import { useTranslations as
|
|
56362
|
+
import { useState as useState42 } from "react";
|
|
56363
|
+
import { useTranslations as useTranslations58 } from "next-intl";
|
|
56115
56364
|
import {
|
|
56116
56365
|
EuiButton as EuiButton15,
|
|
56117
56366
|
EuiComboBox,
|
|
@@ -56119,11 +56368,11 @@ import {
|
|
|
56119
56368
|
EuiSpacer as EuiSpacer23,
|
|
56120
56369
|
EuiText as EuiText36
|
|
56121
56370
|
} from "@elastic/eui";
|
|
56122
|
-
import { jsx as
|
|
56371
|
+
import { jsx as jsx177, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
56123
56372
|
var WfoFlushSettings = () => {
|
|
56124
56373
|
const [clearCache] = useClearCacheMutation();
|
|
56125
|
-
const t =
|
|
56126
|
-
const [selectedOptions, setSelected] =
|
|
56374
|
+
const t = useTranslations58("settings.page");
|
|
56375
|
+
const [selectedOptions, setSelected] = useState42(
|
|
56127
56376
|
[]
|
|
56128
56377
|
);
|
|
56129
56378
|
const { showToastMessage } = useShowToastMessage();
|
|
@@ -56162,9 +56411,9 @@ var WfoFlushSettings = () => {
|
|
|
56162
56411
|
paddingSize: "l",
|
|
56163
56412
|
style: { width: "50%" },
|
|
56164
56413
|
children: [
|
|
56165
|
-
/* @__PURE__ */
|
|
56166
|
-
/* @__PURE__ */
|
|
56167
|
-
/* @__PURE__ */
|
|
56414
|
+
/* @__PURE__ */ jsx177(EuiText36, { size: "s", children: /* @__PURE__ */ jsx177("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
56415
|
+
/* @__PURE__ */ jsx177(EuiSpacer23, { size: "m" }),
|
|
56416
|
+
/* @__PURE__ */ jsx177(
|
|
56168
56417
|
EuiComboBox,
|
|
56169
56418
|
{
|
|
56170
56419
|
"aria-label": "Flush settings",
|
|
@@ -56176,26 +56425,26 @@ var WfoFlushSettings = () => {
|
|
|
56176
56425
|
fullWidth: true
|
|
56177
56426
|
}
|
|
56178
56427
|
),
|
|
56179
|
-
/* @__PURE__ */
|
|
56180
|
-
/* @__PURE__ */
|
|
56428
|
+
/* @__PURE__ */ jsx177(EuiSpacer23, { size: "m" }),
|
|
56429
|
+
/* @__PURE__ */ jsx177(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
56181
56430
|
]
|
|
56182
56431
|
}
|
|
56183
56432
|
);
|
|
56184
56433
|
};
|
|
56185
56434
|
|
|
56186
56435
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
56187
|
-
import { useTranslations as
|
|
56436
|
+
import { useTranslations as useTranslations59 } from "next-intl";
|
|
56188
56437
|
import { EuiButton as EuiButton16 } from "@elastic/eui";
|
|
56189
|
-
import { jsx as
|
|
56438
|
+
import { jsx as jsx178 } from "@emotion/react/jsx-runtime";
|
|
56190
56439
|
var WfoEngineStatusButton = () => {
|
|
56191
56440
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
56192
56441
|
const { engineStatus } = data || {};
|
|
56193
56442
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
56194
|
-
const t =
|
|
56443
|
+
const t = useTranslations59("settings.page");
|
|
56195
56444
|
if (isLoading || isSettingEngineStatus) {
|
|
56196
|
-
return /* @__PURE__ */
|
|
56445
|
+
return /* @__PURE__ */ jsx178(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
|
|
56197
56446
|
}
|
|
56198
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
56447
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx178(
|
|
56199
56448
|
EuiButton16,
|
|
56200
56449
|
{
|
|
56201
56450
|
onClick: () => setEngineStatus(true),
|
|
@@ -56204,7 +56453,7 @@ var WfoEngineStatusButton = () => {
|
|
|
56204
56453
|
iconType: "pause",
|
|
56205
56454
|
children: t("pauseEngine")
|
|
56206
56455
|
}
|
|
56207
|
-
) : /* @__PURE__ */
|
|
56456
|
+
) : /* @__PURE__ */ jsx178(
|
|
56208
56457
|
EuiButton16,
|
|
56209
56458
|
{
|
|
56210
56459
|
onClick: () => setEngineStatus(false),
|
|
@@ -56217,17 +56466,17 @@ var WfoEngineStatusButton = () => {
|
|
|
56217
56466
|
};
|
|
56218
56467
|
|
|
56219
56468
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56220
|
-
import { useTranslations as
|
|
56469
|
+
import { useTranslations as useTranslations61 } from "next-intl";
|
|
56221
56470
|
import { EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer24, EuiText as EuiText37 } from "@elastic/eui";
|
|
56222
56471
|
|
|
56223
56472
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
56224
|
-
import { useTranslations as
|
|
56473
|
+
import { useTranslations as useTranslations60 } from "next-intl";
|
|
56225
56474
|
import { EuiButton as EuiButton17 } from "@elastic/eui";
|
|
56226
|
-
import { jsx as
|
|
56475
|
+
import { jsx as jsx179 } from "@emotion/react/jsx-runtime";
|
|
56227
56476
|
var WfoResetTextSearchIndexButton = () => {
|
|
56228
56477
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
56229
|
-
const t =
|
|
56230
|
-
return /* @__PURE__ */
|
|
56478
|
+
const t = useTranslations60("settings.page");
|
|
56479
|
+
return /* @__PURE__ */ jsx179(
|
|
56231
56480
|
EuiButton17,
|
|
56232
56481
|
{
|
|
56233
56482
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -56238,9 +56487,9 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
56238
56487
|
};
|
|
56239
56488
|
|
|
56240
56489
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56241
|
-
import { jsx as
|
|
56490
|
+
import { jsx as jsx180, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
56242
56491
|
var WfoModifySettings = () => {
|
|
56243
|
-
const t =
|
|
56492
|
+
const t = useTranslations61("settings.page");
|
|
56244
56493
|
return /* @__PURE__ */ jsxs102(EuiFlexItem35, { children: [
|
|
56245
56494
|
/* @__PURE__ */ jsxs102(
|
|
56246
56495
|
EuiPanel10,
|
|
@@ -56250,13 +56499,13 @@ var WfoModifySettings = () => {
|
|
|
56250
56499
|
paddingSize: "l",
|
|
56251
56500
|
css: { width: "50%" },
|
|
56252
56501
|
children: [
|
|
56253
|
-
/* @__PURE__ */
|
|
56254
|
-
/* @__PURE__ */
|
|
56255
|
-
/* @__PURE__ */
|
|
56502
|
+
/* @__PURE__ */ jsx180(EuiText37, { size: "s", children: /* @__PURE__ */ jsx180("h4", { children: t("resetTextSearchIndex") }) }),
|
|
56503
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, { size: "m" }),
|
|
56504
|
+
/* @__PURE__ */ jsx180(WfoResetTextSearchIndexButton, {})
|
|
56256
56505
|
]
|
|
56257
56506
|
}
|
|
56258
56507
|
),
|
|
56259
|
-
/* @__PURE__ */
|
|
56508
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, {}),
|
|
56260
56509
|
/* @__PURE__ */ jsxs102(
|
|
56261
56510
|
EuiPanel10,
|
|
56262
56511
|
{
|
|
@@ -56265,9 +56514,9 @@ var WfoModifySettings = () => {
|
|
|
56265
56514
|
paddingSize: "l",
|
|
56266
56515
|
css: { width: "50%" },
|
|
56267
56516
|
children: [
|
|
56268
|
-
/* @__PURE__ */
|
|
56269
|
-
/* @__PURE__ */
|
|
56270
|
-
/* @__PURE__ */
|
|
56517
|
+
/* @__PURE__ */ jsx180(EuiText37, { size: "s", children: /* @__PURE__ */ jsx180("h4", { children: t("modifyEngine") }) }),
|
|
56518
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, { size: "m" }),
|
|
56519
|
+
/* @__PURE__ */ jsx180(WfoEngineStatusButton, {})
|
|
56271
56520
|
]
|
|
56272
56521
|
}
|
|
56273
56522
|
)
|
|
@@ -56275,7 +56524,7 @@ var WfoModifySettings = () => {
|
|
|
56275
56524
|
};
|
|
56276
56525
|
|
|
56277
56526
|
// src/components/WfoSettings/WfoStatus.tsx
|
|
56278
|
-
import { useTranslations as
|
|
56527
|
+
import { useTranslations as useTranslations62 } from "next-intl";
|
|
56279
56528
|
import {
|
|
56280
56529
|
EuiFlexGroup as EuiFlexGroup25,
|
|
56281
56530
|
EuiFlexItem as EuiFlexItem36,
|
|
@@ -56283,13 +56532,13 @@ import {
|
|
|
56283
56532
|
EuiSpacer as EuiSpacer25,
|
|
56284
56533
|
EuiText as EuiText38
|
|
56285
56534
|
} from "@elastic/eui";
|
|
56286
|
-
import { jsx as
|
|
56535
|
+
import { jsx as jsx181, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
56287
56536
|
var WfoStatus = () => {
|
|
56288
56537
|
const { theme } = useOrchestratorTheme();
|
|
56289
56538
|
const { data } = useGetEngineStatusQuery();
|
|
56290
56539
|
const { engineStatus, runningProcesses } = data || {};
|
|
56291
56540
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
56292
|
-
const t =
|
|
56541
|
+
const t = useTranslations62("settings.page");
|
|
56293
56542
|
return /* @__PURE__ */ jsxs103(
|
|
56294
56543
|
EuiPanel11,
|
|
56295
56544
|
{
|
|
@@ -56299,20 +56548,20 @@ var WfoStatus = () => {
|
|
|
56299
56548
|
style: { width: "50%" },
|
|
56300
56549
|
children: [
|
|
56301
56550
|
/* @__PURE__ */ jsxs103(EuiFlexGroup25, { children: [
|
|
56302
|
-
/* @__PURE__ */
|
|
56303
|
-
/* @__PURE__ */
|
|
56551
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx181(EuiText38, { size: "s", children: /* @__PURE__ */ jsx181("h4", { children: t("runningProcesses") }) }) }),
|
|
56552
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsx181(EuiText38, { size: "s", children: /* @__PURE__ */ jsx181("p", { children: runningProcesses || "-" }) }) })
|
|
56304
56553
|
] }),
|
|
56305
|
-
/* @__PURE__ */
|
|
56554
|
+
/* @__PURE__ */ jsx181(EuiSpacer25, { size: "m" }),
|
|
56306
56555
|
/* @__PURE__ */ jsxs103(EuiFlexGroup25, { children: [
|
|
56307
|
-
/* @__PURE__ */
|
|
56308
|
-
/* @__PURE__ */
|
|
56309
|
-
/* @__PURE__ */
|
|
56556
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx181(EuiText38, { size: "s", children: /* @__PURE__ */ jsx181("h4", { children: t("engineStatus") }) }) }),
|
|
56557
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs103(EuiFlexGroup25, { gutterSize: "xs", children: [
|
|
56558
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { children: /* @__PURE__ */ jsx181(
|
|
56310
56559
|
WfoStatusDotIcon,
|
|
56311
56560
|
{
|
|
56312
56561
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
56313
56562
|
}
|
|
56314
56563
|
) }),
|
|
56315
|
-
/* @__PURE__ */
|
|
56564
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { children: /* @__PURE__ */ jsx181(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx181("p", { children: engineStatus }) }) })
|
|
56316
56565
|
] }) })
|
|
56317
56566
|
] })
|
|
56318
56567
|
]
|
|
@@ -56321,9 +56570,9 @@ var WfoStatus = () => {
|
|
|
56321
56570
|
};
|
|
56322
56571
|
|
|
56323
56572
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
56324
|
-
import
|
|
56325
|
-
import { jsx as
|
|
56326
|
-
var WfoErrorBoundary = class extends
|
|
56573
|
+
import React58 from "react";
|
|
56574
|
+
import { jsx as jsx182, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
56575
|
+
var WfoErrorBoundary = class extends React58.Component {
|
|
56327
56576
|
constructor(props) {
|
|
56328
56577
|
super(props);
|
|
56329
56578
|
this.state = { hasError: false };
|
|
@@ -56342,7 +56591,7 @@ var WfoErrorBoundary = class extends React57.Component {
|
|
|
56342
56591
|
return /* @__PURE__ */ jsxs104("p", { children: [
|
|
56343
56592
|
"An unexpected error occurred, try to go back to the",
|
|
56344
56593
|
" ",
|
|
56345
|
-
/* @__PURE__ */
|
|
56594
|
+
/* @__PURE__ */ jsx182("a", { href: "/", children: "home page" })
|
|
56346
56595
|
] });
|
|
56347
56596
|
}
|
|
56348
56597
|
return this.props.children;
|
|
@@ -56386,12 +56635,12 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
56386
56635
|
};
|
|
56387
56636
|
|
|
56388
56637
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
56389
|
-
import { useTranslations as
|
|
56638
|
+
import { useTranslations as useTranslations63 } from "next-intl";
|
|
56390
56639
|
import { useRouter as useRouter16 } from "next/router";
|
|
56391
|
-
import { jsx as
|
|
56640
|
+
import { jsx as jsx183 } from "@emotion/react/jsx-runtime";
|
|
56392
56641
|
var WfoStartTaskButtonComboBox = () => {
|
|
56393
56642
|
const router = useRouter16();
|
|
56394
|
-
const t =
|
|
56643
|
+
const t = useTranslations63("common");
|
|
56395
56644
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
56396
56645
|
const { data } = useGetTaskOptionsQuery();
|
|
56397
56646
|
const taskOptions = (data == null ? void 0 : data.startOptions) || [];
|
|
@@ -56411,7 +56660,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
56411
56660
|
});
|
|
56412
56661
|
}
|
|
56413
56662
|
});
|
|
56414
|
-
return /* @__PURE__ */
|
|
56663
|
+
return /* @__PURE__ */ jsx183(
|
|
56415
56664
|
WfoStartButtonComboBox,
|
|
56416
56665
|
{
|
|
56417
56666
|
buttonText: t("newTask"),
|
|
@@ -56433,6 +56682,7 @@ var en_GB_default = {
|
|
|
56433
56682
|
metadataProductblocks: "Product blocks",
|
|
56434
56683
|
metadataResourceTypes: "Resource types",
|
|
56435
56684
|
metadataWorkflows: "Workflows",
|
|
56685
|
+
metadataTasks: "Tasks",
|
|
56436
56686
|
mobileTitle: "Main menu",
|
|
56437
56687
|
settings: "Settings",
|
|
56438
56688
|
start: "Start",
|
|
@@ -56554,7 +56804,8 @@ var en_GB_default = {
|
|
|
56554
56804
|
products: "Products",
|
|
56555
56805
|
productBlocks: "Product blocks",
|
|
56556
56806
|
resourceTypes: "Resource types",
|
|
56557
|
-
workflows: "Workflows"
|
|
56807
|
+
workflows: "Workflows",
|
|
56808
|
+
tasks: "Tasks"
|
|
56558
56809
|
},
|
|
56559
56810
|
products: {
|
|
56560
56811
|
id: "ID",
|
|
@@ -56591,6 +56842,13 @@ var en_GB_default = {
|
|
|
56591
56842
|
target: "Target",
|
|
56592
56843
|
productTags: "Product tags",
|
|
56593
56844
|
createdAt: "Created"
|
|
56845
|
+
},
|
|
56846
|
+
tasks: {
|
|
56847
|
+
name: "Task",
|
|
56848
|
+
description: "Task description",
|
|
56849
|
+
target: "Target",
|
|
56850
|
+
productTags: "Product tags",
|
|
56851
|
+
createdAt: "Created"
|
|
56594
56852
|
}
|
|
56595
56853
|
},
|
|
56596
56854
|
processes: {
|
|
@@ -56820,6 +57078,7 @@ var nl_NL_default = {
|
|
|
56820
57078
|
metadataProductblocks: "Product blocks",
|
|
56821
57079
|
metadataResourceTypes: "Resource types",
|
|
56822
57080
|
metadataWorkflows: "Workflows",
|
|
57081
|
+
metadataTasks: "Taken",
|
|
56823
57082
|
mobileTitle: "Hoofdmenu",
|
|
56824
57083
|
settings: "Settings",
|
|
56825
57084
|
start: "Start",
|
|
@@ -56940,7 +57199,8 @@ var nl_NL_default = {
|
|
|
56940
57199
|
products: "Producten",
|
|
56941
57200
|
productBlocks: "Product blocks",
|
|
56942
57201
|
resourceTypes: "Resource types",
|
|
56943
|
-
workflows: "Workflows"
|
|
57202
|
+
workflows: "Workflows",
|
|
57203
|
+
tasks: "Taken"
|
|
56944
57204
|
},
|
|
56945
57205
|
products: {
|
|
56946
57206
|
id: "ID",
|
|
@@ -56977,6 +57237,13 @@ var nl_NL_default = {
|
|
|
56977
57237
|
target: "Target",
|
|
56978
57238
|
productTags: "Product tags",
|
|
56979
57239
|
createdAt: "Aangemaakt"
|
|
57240
|
+
},
|
|
57241
|
+
tasks: {
|
|
57242
|
+
name: "Taak",
|
|
57243
|
+
description: "Taak beschrijving",
|
|
57244
|
+
target: "Target",
|
|
57245
|
+
productTags: "Product tags",
|
|
57246
|
+
createdAt: "Aangemaakt"
|
|
56980
57247
|
}
|
|
56981
57248
|
},
|
|
56982
57249
|
processes: {
|
|
@@ -57362,6 +57629,7 @@ export {
|
|
|
57362
57629
|
METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY,
|
|
57363
57630
|
METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY,
|
|
57364
57631
|
METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY,
|
|
57632
|
+
METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY,
|
|
57365
57633
|
METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY,
|
|
57366
57634
|
NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS,
|
|
57367
57635
|
NestField,
|
|
@@ -57373,6 +57641,7 @@ export {
|
|
|
57373
57641
|
PATH_METADATA_PRODUCTS,
|
|
57374
57642
|
PATH_METADATA_PRODUCT_BLOCKS,
|
|
57375
57643
|
PATH_METADATA_RESOURCE_TYPES,
|
|
57644
|
+
PATH_METADATA_TASKS,
|
|
57376
57645
|
PATH_METADATA_WORKFLOWS,
|
|
57377
57646
|
PATH_SETTINGS,
|
|
57378
57647
|
PATH_START,
|
|
@@ -57529,6 +57798,7 @@ export {
|
|
|
57529
57798
|
WfoTableWithFilter,
|
|
57530
57799
|
WfoTasksListPage,
|
|
57531
57800
|
WfoTasksListTabType,
|
|
57801
|
+
WfoTasksPage,
|
|
57532
57802
|
WfoTextAnchor,
|
|
57533
57803
|
WfoTimeline,
|
|
57534
57804
|
WfoToastsList,
|
|
@@ -57631,6 +57901,7 @@ export {
|
|
|
57631
57901
|
subscriptionDetailQuery,
|
|
57632
57902
|
subscriptionListTabs,
|
|
57633
57903
|
subscriptionsDropdownOptionsQuery,
|
|
57904
|
+
tasksQuery,
|
|
57634
57905
|
toastMessagesReducer,
|
|
57635
57906
|
toastMessagesSlice,
|
|
57636
57907
|
upperCaseFirstChar,
|
|
@@ -57652,6 +57923,7 @@ export {
|
|
|
57652
57923
|
useGetSubscriptionDetailQuery,
|
|
57653
57924
|
useGetSubscriptionsDropdownOptionsQuery,
|
|
57654
57925
|
useGetTaskOptionsQuery,
|
|
57926
|
+
useGetTasksQuery,
|
|
57655
57927
|
useGetTimeLineItemsQuery,
|
|
57656
57928
|
useGetTranslationMessages,
|
|
57657
57929
|
useGetWorkflowOptionsQuery,
|
|
@@ -57660,6 +57932,7 @@ export {
|
|
|
57660
57932
|
useLazyGetProductBlocksQuery,
|
|
57661
57933
|
useLazyGetProductsQuery,
|
|
57662
57934
|
useLazyGetResourceTypesQuery,
|
|
57935
|
+
useLazyGetTasksQuery,
|
|
57663
57936
|
useLazyGetWorkflowsQuery,
|
|
57664
57937
|
useMutateProcess,
|
|
57665
57938
|
useOrchestratorConfig,
|