@orchestrator-ui/orchestrator-ui-components 1.6.0 → 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 +9 -8
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts +1282 -1143
- package/dist/index.js +686 -333
- 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/WfoProcessList/WfoProcessesList.tsx +5 -1
- package/src/components/WfoProcessList/processListObjectMappers.ts +7 -4
- package/src/components/WfoSubscription/WfoSubscriptionGeneral.tsx +10 -6
- package/src/components/WfoTable/utils/constants.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/messages/en-GB.json +11 -1
- package/src/messages/nl-NL.json +10 -1
- package/src/pages/metadata/WfoMetadataPageLayout.tsx +10 -5
- package/src/pages/metadata/WfoProductBlocksPage.tsx +25 -1
- package/src/pages/metadata/WfoProductsPage.tsx +27 -1
- package/src/pages/metadata/WfoResourceTypesPage.tsx +23 -4
- package/src/pages/metadata/WfoTasksPage.tsx +226 -0
- package/src/pages/metadata/WfoWorkflowsPage.tsx +29 -6
- package/src/pages/metadata/index.ts +3 -0
- package/src/pages/metadata/taskListObjectMapper.ts +40 -0
- package/src/pages/subscriptions/WfoSubscriptionDetailPage.tsx +2 -2
- package/src/pages/subscriptions/WfoSubscriptionsListPage.tsx +1 -1
- package/src/pages/workflows/index.ts +2 -0
- package/src/rtk/endpoints/metadata/index.ts +1 -0
- package/src/rtk/endpoints/metadata/tasks.ts +74 -0
- package/src/types/types.ts +15 -2
- package/src/utils/getDefaultTableConfig.ts +2 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/resultFlattener.spec.ts +51 -0
- package/src/utils/resultFlattener.ts +25 -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),
|
|
@@ -44098,6 +44157,20 @@ var onlyUnique = (value, index, array) => {
|
|
|
44098
44157
|
return array.indexOf(value) === index;
|
|
44099
44158
|
};
|
|
44100
44159
|
|
|
44160
|
+
// src/utils/resultFlattener.ts
|
|
44161
|
+
var getConcatenatedPagedResult = (pagedResult, fields) => {
|
|
44162
|
+
const results = pagedResult.page || [];
|
|
44163
|
+
return getConcatenatedResult(results, fields);
|
|
44164
|
+
};
|
|
44165
|
+
var getConcatenatedResult = (results, fields) => {
|
|
44166
|
+
return results.reduce((accumulator, result, index) => {
|
|
44167
|
+
const resultFields = fields.reduce((accumulator2, field, index2) => {
|
|
44168
|
+
return accumulator2 + `${result[field]}${index2 !== fields.length - 1 ? ": " : ""}`;
|
|
44169
|
+
}, "");
|
|
44170
|
+
return `${accumulator}${resultFields}${index !== results.length - 1 ? " - " : ""}`;
|
|
44171
|
+
}, "");
|
|
44172
|
+
};
|
|
44173
|
+
|
|
44101
44174
|
// src/components/WfoPageTemplate/WfoBreadcrumbs/WfoBreadcrumbs.tsx
|
|
44102
44175
|
import { Fragment as Fragment2, jsx as jsx50, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
44103
44176
|
var WfoBreadcrumbs = () => {
|
|
@@ -44646,6 +44719,7 @@ var PATH_METADATA_PRODUCTS = "/metadata/products";
|
|
|
44646
44719
|
var PATH_METADATA_PRODUCT_BLOCKS = "/metadata/productblocks";
|
|
44647
44720
|
var PATH_METADATA_RESOURCE_TYPES = "/metadata/resource-types";
|
|
44648
44721
|
var PATH_METADATA_WORKFLOWS = "/metadata/workflows";
|
|
44722
|
+
var PATH_METADATA_TASKS = "/metadata/tasks";
|
|
44649
44723
|
var PATH_TASKS = "/tasks";
|
|
44650
44724
|
var PATH_SETTINGS = "/settings";
|
|
44651
44725
|
|
|
@@ -44768,6 +44842,15 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
44768
44842
|
e.preventDefault();
|
|
44769
44843
|
router.push(PATH_METADATA_WORKFLOWS);
|
|
44770
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
|
+
}
|
|
44771
44854
|
}
|
|
44772
44855
|
]
|
|
44773
44856
|
},
|
|
@@ -46487,6 +46570,7 @@ var WfoSubscriptionGeneral = ({
|
|
|
46487
46570
|
}
|
|
46488
46571
|
];
|
|
46489
46572
|
};
|
|
46573
|
+
const hasMetadata = Object.entries(subscriptionDetail.metadata).length > 0;
|
|
46490
46574
|
return /* @__PURE__ */ jsx86(EuiFlexGrid, { direction: "row", children: /* @__PURE__ */ jsxs60(Fragment16, { children: [
|
|
46491
46575
|
/* @__PURE__ */ jsx86(EuiFlexItem9, { children: /* @__PURE__ */ jsx86(
|
|
46492
46576
|
SubscriptionKeyValueBlock,
|
|
@@ -46495,7 +46579,7 @@ var WfoSubscriptionGeneral = ({
|
|
|
46495
46579
|
keyValues: getSubscriptionDetailBlockData()
|
|
46496
46580
|
}
|
|
46497
46581
|
) }),
|
|
46498
|
-
/* @__PURE__ */ jsx86(EuiFlexItem9, { children: /* @__PURE__ */ jsx86(
|
|
46582
|
+
hasMetadata && /* @__PURE__ */ jsx86(EuiFlexItem9, { children: /* @__PURE__ */ jsx86(
|
|
46499
46583
|
SubscriptionKeyValueBlock,
|
|
46500
46584
|
{
|
|
46501
46585
|
title: t("metadata"),
|
|
@@ -46536,6 +46620,7 @@ var METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY = "metadataResourceTypesTabl
|
|
|
46536
46620
|
var METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY = "metadataProductBlocksTable";
|
|
46537
46621
|
var METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY = "metadataProductTable";
|
|
46538
46622
|
var METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY = "metadataWorkflowsTable";
|
|
46623
|
+
var METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY = "metadataTasksTable";
|
|
46539
46624
|
var SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY = "subscriptionsTable";
|
|
46540
46625
|
|
|
46541
46626
|
// src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.ts
|
|
@@ -52163,7 +52248,7 @@ var WfoDropdownButton = ({
|
|
|
52163
52248
|
};
|
|
52164
52249
|
|
|
52165
52250
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
52166
|
-
import { useTranslations as
|
|
52251
|
+
import { useTranslations as useTranslations57 } from "next-intl";
|
|
52167
52252
|
import Link8 from "next/link";
|
|
52168
52253
|
|
|
52169
52254
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
@@ -52193,9 +52278,14 @@ var metaDataTabs = [
|
|
|
52193
52278
|
path: "/metadata/resource-types"
|
|
52194
52279
|
},
|
|
52195
52280
|
{
|
|
52196
|
-
id:
|
|
52281
|
+
id: 4,
|
|
52197
52282
|
translationKey: "workflows",
|
|
52198
52283
|
path: "/metadata/workflows"
|
|
52284
|
+
},
|
|
52285
|
+
{
|
|
52286
|
+
id: 5,
|
|
52287
|
+
translationKey: "tasks",
|
|
52288
|
+
path: "/metadata/tasks"
|
|
52199
52289
|
}
|
|
52200
52290
|
];
|
|
52201
52291
|
var WfoMetadataPageLayout = ({
|
|
@@ -52203,18 +52293,18 @@ var WfoMetadataPageLayout = ({
|
|
|
52203
52293
|
tabs = metaDataTabs
|
|
52204
52294
|
}) => {
|
|
52205
52295
|
const router = useRouter8();
|
|
52206
|
-
const t = useTranslations40("metadata
|
|
52296
|
+
const t = useTranslations40("metadata");
|
|
52207
52297
|
const currentPath = router.pathname;
|
|
52208
52298
|
return /* @__PURE__ */ jsxs83(Fragment29, { children: [
|
|
52209
52299
|
/* @__PURE__ */ jsx146(EuiSpacer15, {}),
|
|
52210
|
-
/* @__PURE__ */ jsx146(EuiPageHeader2, { pageTitle: "
|
|
52300
|
+
/* @__PURE__ */ jsx146(EuiPageHeader2, { pageTitle: t("title") }),
|
|
52211
52301
|
/* @__PURE__ */ jsx146(EuiSpacer15, { size: "m" }),
|
|
52212
52302
|
/* @__PURE__ */ jsx146(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx146(
|
|
52213
52303
|
EuiTab2,
|
|
52214
52304
|
{
|
|
52215
52305
|
isSelected: path === currentPath,
|
|
52216
52306
|
onClick: () => router.push(path),
|
|
52217
|
-
children: t(name)
|
|
52307
|
+
children: t(`tabs.${name}`)
|
|
52218
52308
|
},
|
|
52219
52309
|
id
|
|
52220
52310
|
)) }),
|
|
@@ -52362,6 +52452,16 @@ var WfoProductBlocksPage = () => {
|
|
|
52362
52452
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
52363
52453
|
totalItemCount: totalItems ? totalItems : 0
|
|
52364
52454
|
};
|
|
52455
|
+
const mapToExportItems = (productBlocksResponse) => {
|
|
52456
|
+
const { productBlocks } = productBlocksResponse;
|
|
52457
|
+
return productBlocks.map((productBlock) => __spreadProps(__spreadValues({}, productBlock), {
|
|
52458
|
+
resourceTypes: getConcatenatedResult(productBlock.resourceTypes, [
|
|
52459
|
+
"resourceType",
|
|
52460
|
+
"description"
|
|
52461
|
+
]),
|
|
52462
|
+
dependsOn: getConcatenatedResult(productBlock.dependsOn, ["name"])
|
|
52463
|
+
}));
|
|
52464
|
+
};
|
|
52365
52465
|
return /* @__PURE__ */ jsx147(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx147(
|
|
52366
52466
|
WfoTableWithFilter,
|
|
52367
52467
|
{
|
|
@@ -52389,7 +52489,7 @@ var WfoProductBlocksPage = () => {
|
|
|
52389
52489
|
localStorageKey: METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY,
|
|
52390
52490
|
onExportData: csvDownloadHandler(
|
|
52391
52491
|
getProductBlocksForExport,
|
|
52392
|
-
|
|
52492
|
+
mapToExportItems,
|
|
52393
52493
|
(data2) => data2.pageInfo,
|
|
52394
52494
|
Object.keys(tableColumns),
|
|
52395
52495
|
getCsvFileNameWithDate("ProductBlocks"),
|
|
@@ -52500,6 +52600,15 @@ var WfoResourceTypesPage = () => {
|
|
|
52500
52600
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
52501
52601
|
totalItemCount: totalItems ? totalItems : 0
|
|
52502
52602
|
};
|
|
52603
|
+
const mapToExportItems = (resourceTypesResponse) => {
|
|
52604
|
+
const { resourceTypes } = resourceTypesResponse;
|
|
52605
|
+
return resourceTypes.map((resourceType) => __spreadProps(__spreadValues({}, resourceType), {
|
|
52606
|
+
productBlocks: getConcatenatedResult(resourceType.productBlocks, [
|
|
52607
|
+
"productBlockId",
|
|
52608
|
+
"name"
|
|
52609
|
+
])
|
|
52610
|
+
}));
|
|
52611
|
+
};
|
|
52503
52612
|
return /* @__PURE__ */ jsx148(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx148(
|
|
52504
52613
|
WfoTableWithFilter,
|
|
52505
52614
|
{
|
|
@@ -52527,7 +52636,7 @@ var WfoResourceTypesPage = () => {
|
|
|
52527
52636
|
localStorageKey: METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY,
|
|
52528
52637
|
onExportData: csvDownloadHandler(
|
|
52529
52638
|
getResourceTypesForExport,
|
|
52530
|
-
|
|
52639
|
+
mapToExportItems,
|
|
52531
52640
|
(data2) => data2.pageInfo,
|
|
52532
52641
|
Object.keys(tableColumns),
|
|
52533
52642
|
getCsvFileNameWithDate("ResourceTypes"),
|
|
@@ -52670,6 +52779,18 @@ var WfoProductsPage = () => {
|
|
|
52670
52779
|
field: (_b = sortBy == null ? void 0 : sortBy.field) != null ? _b : PRODUCT_FIELD_NAME,
|
|
52671
52780
|
sortOrder: (_c = sortBy == null ? void 0 : sortBy.order) != null ? _c : "ASC" /* ASC */
|
|
52672
52781
|
};
|
|
52782
|
+
const mapToExportItems = (productsResponse) => {
|
|
52783
|
+
const { products: products2 } = productsResponse;
|
|
52784
|
+
return products2.map((product) => __spreadProps(__spreadValues({}, product), {
|
|
52785
|
+
fixedInputs: getConcatenatedResult(product.fixedInputs, [
|
|
52786
|
+
"name",
|
|
52787
|
+
"value"
|
|
52788
|
+
]),
|
|
52789
|
+
productBlocks: getConcatenatedResult(product.productBlocks, [
|
|
52790
|
+
"name"
|
|
52791
|
+
])
|
|
52792
|
+
}));
|
|
52793
|
+
};
|
|
52673
52794
|
return /* @__PURE__ */ jsx149(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx149(
|
|
52674
52795
|
WfoTableWithFilter,
|
|
52675
52796
|
{
|
|
@@ -52697,10 +52818,7 @@ var WfoProductsPage = () => {
|
|
|
52697
52818
|
localStorageKey: METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY,
|
|
52698
52819
|
onExportData: csvDownloadHandler(
|
|
52699
52820
|
getProductsForExport,
|
|
52700
|
-
|
|
52701
|
-
var _a2;
|
|
52702
|
-
return (_a2 = data2 == null ? void 0 : data2.products) != null ? _a2 : [];
|
|
52703
|
-
},
|
|
52821
|
+
mapToExportItems,
|
|
52704
52822
|
(data2) => (data2 == null ? void 0 : data2.pageInfo) || {},
|
|
52705
52823
|
Object.keys(tableColumns),
|
|
52706
52824
|
getCsvFileNameWithDate("Products"),
|
|
@@ -52777,23 +52895,24 @@ var WfoWorkflowsPage = () => {
|
|
|
52777
52895
|
name: {
|
|
52778
52896
|
field: "name",
|
|
52779
52897
|
name: t("name"),
|
|
52780
|
-
width: "
|
|
52898
|
+
width: "20%",
|
|
52781
52899
|
render: (name) => /* @__PURE__ */ jsx150(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
|
|
52782
52900
|
},
|
|
52783
52901
|
description: {
|
|
52784
52902
|
field: "description",
|
|
52785
52903
|
name: t("description"),
|
|
52786
|
-
width: "
|
|
52904
|
+
width: "40%"
|
|
52787
52905
|
},
|
|
52788
52906
|
target: {
|
|
52789
52907
|
field: "target",
|
|
52790
52908
|
name: t("target"),
|
|
52791
|
-
width: "
|
|
52909
|
+
width: "15%",
|
|
52792
52910
|
render: (target) => /* @__PURE__ */ jsx150(WfoWorkflowTargetBadge, { target })
|
|
52793
52911
|
},
|
|
52794
52912
|
productTags: {
|
|
52795
52913
|
field: "productTags",
|
|
52796
52914
|
name: t("productTags"),
|
|
52915
|
+
width: "20%",
|
|
52797
52916
|
render: (productTags) => /* @__PURE__ */ jsx150(Fragment33, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx150(
|
|
52798
52917
|
WfoProductBlockBadge,
|
|
52799
52918
|
{
|
|
@@ -52814,7 +52933,7 @@ var WfoWorkflowsPage = () => {
|
|
|
52814
52933
|
createdAt: {
|
|
52815
52934
|
field: "createdAt",
|
|
52816
52935
|
name: t("createdAt"),
|
|
52817
|
-
width: "
|
|
52936
|
+
width: "15%",
|
|
52818
52937
|
render: (date) => /* @__PURE__ */ jsx150(WfoDateTime, { dateOrIsoString: date }),
|
|
52819
52938
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
52820
52939
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
@@ -52845,6 +52964,15 @@ var WfoWorkflowsPage = () => {
|
|
|
52845
52964
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
52846
52965
|
totalItemCount: totalItems ? totalItems : 0
|
|
52847
52966
|
};
|
|
52967
|
+
const mapToExportItems = (workflowsResponse) => {
|
|
52968
|
+
const { workflows } = workflowsResponse;
|
|
52969
|
+
return workflows.map((workflow) => __spreadProps(__spreadValues({}, workflow), {
|
|
52970
|
+
productTags: getConcatenatedResult(workflow.products, [
|
|
52971
|
+
"tag",
|
|
52972
|
+
"name"
|
|
52973
|
+
])
|
|
52974
|
+
}));
|
|
52975
|
+
};
|
|
52848
52976
|
return /* @__PURE__ */ jsx150(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx150(
|
|
52849
52977
|
WfoTableWithFilter,
|
|
52850
52978
|
{
|
|
@@ -52874,7 +53002,7 @@ var WfoWorkflowsPage = () => {
|
|
|
52874
53002
|
localStorageKey: METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY,
|
|
52875
53003
|
onExportData: csvDownloadHandler(
|
|
52876
53004
|
getWorkflowsForExport,
|
|
52877
|
-
|
|
53005
|
+
mapToExportItems,
|
|
52878
53006
|
(data2) => data2.pageInfo,
|
|
52879
53007
|
Object.keys(tableColumns),
|
|
52880
53008
|
getCsvFileNameWithDate("Workflows"),
|
|
@@ -52886,10 +53014,183 @@ var WfoWorkflowsPage = () => {
|
|
|
52886
53014
|
) });
|
|
52887
53015
|
};
|
|
52888
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
|
+
|
|
52889
53190
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
52890
53191
|
import Link4 from "next/link";
|
|
52891
53192
|
import { EuiFlexGroup as EuiFlexGroup16 } from "@elastic/eui";
|
|
52892
|
-
import { Fragment as
|
|
53193
|
+
import { Fragment as Fragment35, jsx as jsx152, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
52893
53194
|
var RENDER_ALL = "RENDER_ALL";
|
|
52894
53195
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
52895
53196
|
RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
|
|
@@ -52907,13 +53208,13 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
52907
53208
|
}
|
|
52908
53209
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
52909
53210
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
52910
|
-
return /* @__PURE__ */
|
|
53211
|
+
return /* @__PURE__ */ jsx152(Fragment35, { children: /* @__PURE__ */ jsxs84(
|
|
52911
53212
|
EuiFlexGroup16,
|
|
52912
53213
|
{
|
|
52913
53214
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
52914
53215
|
gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "m" : "xs",
|
|
52915
53216
|
children: [
|
|
52916
|
-
visibleSubscriptions.map((subscription) => /* @__PURE__ */
|
|
53217
|
+
visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx152(
|
|
52917
53218
|
Link4,
|
|
52918
53219
|
{
|
|
52919
53220
|
href: `/subscriptions/${subscription.subscriptionId}`,
|
|
@@ -52925,14 +53226,14 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
52925
53226
|
},
|
|
52926
53227
|
subscription.subscriptionId
|
|
52927
53228
|
)),
|
|
52928
|
-
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */
|
|
53229
|
+
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx152("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
|
|
52929
53230
|
]
|
|
52930
53231
|
}
|
|
52931
53232
|
) });
|
|
52932
53233
|
};
|
|
52933
53234
|
|
|
52934
53235
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
52935
|
-
import { useEffect as
|
|
53236
|
+
import { useEffect as useEffect23, useRef as useRef7, useState as useState37 } from "react";
|
|
52936
53237
|
|
|
52937
53238
|
// src/rtk/endpoints/processDetail.ts
|
|
52938
53239
|
var processDetailQuery = `query ProcessDetail($processId: String!) {
|
|
@@ -52988,8 +53289,8 @@ var processDetailApi = orchestratorApi.injectEndpoints({
|
|
|
52988
53289
|
var { useGetProcessDetailQuery } = processDetailApi;
|
|
52989
53290
|
|
|
52990
53291
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
52991
|
-
import
|
|
52992
|
-
import { useTranslations as
|
|
53292
|
+
import React46 from "react";
|
|
53293
|
+
import { useTranslations as useTranslations46 } from "next-intl";
|
|
52993
53294
|
import { EuiFlexGroup as EuiFlexGroup17, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel4, EuiText as EuiText29 } from "@elastic/eui";
|
|
52994
53295
|
|
|
52995
53296
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
@@ -53095,26 +53396,26 @@ var getStyles11 = (theme) => {
|
|
|
53095
53396
|
};
|
|
53096
53397
|
|
|
53097
53398
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
53098
|
-
import { jsx as
|
|
53399
|
+
import { jsx as jsx153, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
53099
53400
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
53100
53401
|
switch (stepStatus) {
|
|
53101
53402
|
case "suspend" /* SUSPEND */:
|
|
53102
|
-
return /* @__PURE__ */
|
|
53403
|
+
return /* @__PURE__ */ jsx153(WfoMinusCircleFill, { color });
|
|
53103
53404
|
case "failed" /* FAILED */:
|
|
53104
|
-
return /* @__PURE__ */
|
|
53405
|
+
return /* @__PURE__ */ jsx153(WfoXCircleFill, { color });
|
|
53105
53406
|
default:
|
|
53106
|
-
return /* @__PURE__ */
|
|
53407
|
+
return /* @__PURE__ */ jsx153(WfoCheckmarkCircleFill, { color });
|
|
53107
53408
|
}
|
|
53108
53409
|
};
|
|
53109
53410
|
var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
|
|
53110
53411
|
if (isStartStep) {
|
|
53111
|
-
return /* @__PURE__ */
|
|
53412
|
+
return /* @__PURE__ */ jsx153(WfoPlayFill, { color });
|
|
53112
53413
|
}
|
|
53113
53414
|
switch (stepStatus) {
|
|
53114
53415
|
case "form" /* FORM */:
|
|
53115
|
-
return /* @__PURE__ */
|
|
53416
|
+
return /* @__PURE__ */ jsx153(WfoPencilAlt, { color });
|
|
53116
53417
|
default:
|
|
53117
|
-
return /* @__PURE__ */
|
|
53418
|
+
return /* @__PURE__ */ jsx153(WfoCogFill, { color, width: 16, height: 16 });
|
|
53118
53419
|
}
|
|
53119
53420
|
};
|
|
53120
53421
|
var WfoStepStatusIcon = ({
|
|
@@ -53165,7 +53466,7 @@ var WfoStepStatusIcon = ({
|
|
|
53165
53466
|
}
|
|
53166
53467
|
})();
|
|
53167
53468
|
return /* @__PURE__ */ jsxs85(EuiFlexItem23, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
53168
|
-
/* @__PURE__ */
|
|
53469
|
+
/* @__PURE__ */ jsx153("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx153(
|
|
53169
53470
|
MainIcon,
|
|
53170
53471
|
{
|
|
53171
53472
|
color: mainIconColor,
|
|
@@ -53173,7 +53474,7 @@ var WfoStepStatusIcon = ({
|
|
|
53173
53474
|
isStartStep
|
|
53174
53475
|
}
|
|
53175
53476
|
) }),
|
|
53176
|
-
/* @__PURE__ */
|
|
53477
|
+
/* @__PURE__ */ jsx153(
|
|
53177
53478
|
"div",
|
|
53178
53479
|
{
|
|
53179
53480
|
css: {
|
|
@@ -53181,7 +53482,7 @@ var WfoStepStatusIcon = ({
|
|
|
53181
53482
|
width: `${theme.base}`,
|
|
53182
53483
|
visibility: hasSubIcon ? "visible" : "hidden"
|
|
53183
53484
|
},
|
|
53184
|
-
children: /* @__PURE__ */
|
|
53485
|
+
children: /* @__PURE__ */ jsx153(SubIcon, { color: subIconColor, stepStatus })
|
|
53185
53486
|
}
|
|
53186
53487
|
)
|
|
53187
53488
|
] });
|
|
@@ -53209,15 +53510,15 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
53209
53510
|
};
|
|
53210
53511
|
|
|
53211
53512
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
53212
|
-
import { useState as
|
|
53513
|
+
import { useState as useState33 } from "react";
|
|
53213
53514
|
import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
|
|
53214
|
-
import { jsx as
|
|
53515
|
+
import { jsx as jsx154 } from "@emotion/react/jsx-runtime";
|
|
53215
53516
|
var WfoStepForm = ({
|
|
53216
53517
|
userInputForm,
|
|
53217
53518
|
isTask,
|
|
53218
53519
|
processId
|
|
53219
53520
|
}) => {
|
|
53220
|
-
const [isProcessing, setIsProcessing] =
|
|
53521
|
+
const [isProcessing, setIsProcessing] = useState33(false);
|
|
53221
53522
|
const { theme } = useOrchestratorTheme();
|
|
53222
53523
|
const apiClient = useAxiosApiClient();
|
|
53223
53524
|
const submitForm = (processInput) => {
|
|
@@ -53228,7 +53529,7 @@ var WfoStepForm = ({
|
|
|
53228
53529
|
setIsProcessing(true);
|
|
53229
53530
|
});
|
|
53230
53531
|
};
|
|
53231
|
-
return /* @__PURE__ */
|
|
53532
|
+
return /* @__PURE__ */ jsx154(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx154(WfoLoading, {}) || /* @__PURE__ */ jsx154(
|
|
53232
53533
|
UserInputFormWizard,
|
|
53233
53534
|
{
|
|
53234
53535
|
stepUserInput: userInputForm,
|
|
@@ -53241,8 +53542,8 @@ var WfoStepForm = ({
|
|
|
53241
53542
|
};
|
|
53242
53543
|
|
|
53243
53544
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
53244
|
-
import { Fragment as
|
|
53245
|
-
var WfoStep =
|
|
53545
|
+
import { Fragment as Fragment36, jsx as jsx155, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
53546
|
+
var WfoStep = React46.forwardRef(
|
|
53246
53547
|
({
|
|
53247
53548
|
stepListItem,
|
|
53248
53549
|
onToggleStepDetail,
|
|
@@ -53264,7 +53565,7 @@ var WfoStep = React45.forwardRef(
|
|
|
53264
53565
|
stepRowStyle,
|
|
53265
53566
|
getStepToggleExpandStyle
|
|
53266
53567
|
} = getStyles11(theme);
|
|
53267
|
-
const t =
|
|
53568
|
+
const t = useTranslations46("processes.steps");
|
|
53268
53569
|
const hasHtmlMail = (_a = step.stateDelta) == null ? void 0 : _a.hasOwnProperty("confirmation_mail");
|
|
53269
53570
|
const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
|
|
53270
53571
|
const hasStepContent = hasHtmlMail || Object.keys(stepContent).length > 0;
|
|
@@ -53273,28 +53574,28 @@ var WfoStep = React45.forwardRef(
|
|
|
53273
53574
|
return "";
|
|
53274
53575
|
}
|
|
53275
53576
|
return /* @__PURE__ */ jsxs86(EuiText29, { size: "s", children: [
|
|
53276
|
-
/* @__PURE__ */
|
|
53277
|
-
/* @__PURE__ */
|
|
53577
|
+
/* @__PURE__ */ jsx155("h4", { children: "To" }),
|
|
53578
|
+
/* @__PURE__ */ jsx155("p", { children: value.to.map(
|
|
53278
53579
|
(v, i) => /* @__PURE__ */ jsxs86("div", { children: [
|
|
53279
53580
|
v.name,
|
|
53280
53581
|
" <",
|
|
53281
|
-
/* @__PURE__ */
|
|
53582
|
+
/* @__PURE__ */ jsx155("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53282
53583
|
">"
|
|
53283
53584
|
] }, `to-${i}`)
|
|
53284
53585
|
) }),
|
|
53285
|
-
/* @__PURE__ */
|
|
53286
|
-
/* @__PURE__ */
|
|
53586
|
+
/* @__PURE__ */ jsx155("h4", { children: "CC" }),
|
|
53587
|
+
/* @__PURE__ */ jsx155("p", { children: value.cc.map(
|
|
53287
53588
|
(v, i) => /* @__PURE__ */ jsxs86("div", { children: [
|
|
53288
53589
|
v.name,
|
|
53289
53590
|
" <",
|
|
53290
|
-
/* @__PURE__ */
|
|
53591
|
+
/* @__PURE__ */ jsx155("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53291
53592
|
">"
|
|
53292
53593
|
] }, `cc-${i}`)
|
|
53293
53594
|
) }),
|
|
53294
|
-
/* @__PURE__ */
|
|
53295
|
-
/* @__PURE__ */
|
|
53296
|
-
/* @__PURE__ */
|
|
53297
|
-
/* @__PURE__ */
|
|
53595
|
+
/* @__PURE__ */ jsx155("h4", { children: "Subject" }),
|
|
53596
|
+
/* @__PURE__ */ jsx155("p", { children: value.subject }),
|
|
53597
|
+
/* @__PURE__ */ jsx155("h4", { children: "Message" }),
|
|
53598
|
+
/* @__PURE__ */ jsx155(
|
|
53298
53599
|
"div",
|
|
53299
53600
|
{
|
|
53300
53601
|
className: "emailMessage",
|
|
@@ -53303,14 +53604,14 @@ var WfoStep = React45.forwardRef(
|
|
|
53303
53604
|
)
|
|
53304
53605
|
] });
|
|
53305
53606
|
};
|
|
53306
|
-
return /* @__PURE__ */
|
|
53607
|
+
return /* @__PURE__ */ jsx155("div", { ref, children: /* @__PURE__ */ jsxs86(EuiPanel4, { children: [
|
|
53307
53608
|
/* @__PURE__ */ jsxs86(
|
|
53308
53609
|
EuiFlexGroup17,
|
|
53309
53610
|
{
|
|
53310
53611
|
css: getStepHeaderStyle(hasStepContent),
|
|
53311
53612
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
53312
53613
|
children: [
|
|
53313
|
-
/* @__PURE__ */
|
|
53614
|
+
/* @__PURE__ */ jsx155(
|
|
53314
53615
|
WfoStepStatusIcon,
|
|
53315
53616
|
{
|
|
53316
53617
|
stepStatus: step.status,
|
|
@@ -53318,47 +53619,47 @@ var WfoStep = React45.forwardRef(
|
|
|
53318
53619
|
}
|
|
53319
53620
|
),
|
|
53320
53621
|
/* @__PURE__ */ jsxs86(EuiFlexItem25, { grow: 0, children: [
|
|
53321
|
-
/* @__PURE__ */
|
|
53622
|
+
/* @__PURE__ */ jsx155(EuiText29, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
53322
53623
|
/* @__PURE__ */ jsxs86(EuiText29, { children: [
|
|
53323
53624
|
step.status,
|
|
53324
53625
|
" ",
|
|
53325
53626
|
step.executed && `- ${formatDate(step.executed)}`
|
|
53326
53627
|
] })
|
|
53327
53628
|
] }),
|
|
53328
|
-
/* @__PURE__ */
|
|
53629
|
+
/* @__PURE__ */ jsx155(EuiFlexGroup17, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs86(Fragment36, { children: [
|
|
53329
53630
|
/* @__PURE__ */ jsxs86(
|
|
53330
53631
|
EuiFlexItem25,
|
|
53331
53632
|
{
|
|
53332
53633
|
grow: 0,
|
|
53333
53634
|
css: stepHeaderRightStyle,
|
|
53334
53635
|
children: [
|
|
53335
|
-
/* @__PURE__ */
|
|
53336
|
-
/* @__PURE__ */
|
|
53636
|
+
/* @__PURE__ */ jsx155(EuiText29, { css: stepDurationStyle, children: t("duration") }),
|
|
53637
|
+
/* @__PURE__ */ jsx155(EuiText29, { size: "m", children: calculateTimeDifference(
|
|
53337
53638
|
startedAt,
|
|
53338
53639
|
step.executed
|
|
53339
53640
|
) })
|
|
53340
53641
|
]
|
|
53341
53642
|
}
|
|
53342
53643
|
),
|
|
53343
|
-
/* @__PURE__ */
|
|
53644
|
+
/* @__PURE__ */ jsx155(
|
|
53344
53645
|
EuiFlexItem25,
|
|
53345
53646
|
{
|
|
53346
53647
|
grow: 0,
|
|
53347
53648
|
css: getStepToggleExpandStyle(
|
|
53348
53649
|
hasStepContent
|
|
53349
53650
|
),
|
|
53350
|
-
children: isExpanded && /* @__PURE__ */
|
|
53651
|
+
children: isExpanded && /* @__PURE__ */ jsx155(WfoChevronUp, {}) || /* @__PURE__ */ jsx155(WfoChevronDown, {})
|
|
53351
53652
|
}
|
|
53352
53653
|
)
|
|
53353
53654
|
] }) })
|
|
53354
53655
|
]
|
|
53355
53656
|
}
|
|
53356
53657
|
),
|
|
53357
|
-
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */
|
|
53358
|
-
isExpanded && hasHtmlMail && /* @__PURE__ */
|
|
53658
|
+
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx155(WfoJsonCodeBlock, { data: stepContent }),
|
|
53659
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx155("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
|
|
53359
53660
|
step.stateDelta.confirmation_mail
|
|
53360
53661
|
) }),
|
|
53361
|
-
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */
|
|
53662
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx155(
|
|
53362
53663
|
WfoStepForm,
|
|
53363
53664
|
{
|
|
53364
53665
|
userInputForm,
|
|
@@ -53372,9 +53673,9 @@ var WfoStep = React45.forwardRef(
|
|
|
53372
53673
|
WfoStep.displayName = "WfoStep";
|
|
53373
53674
|
|
|
53374
53675
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
53375
|
-
import
|
|
53376
|
-
import { Fragment as
|
|
53377
|
-
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(
|
|
53378
53679
|
({
|
|
53379
53680
|
stepListItems,
|
|
53380
53681
|
showHiddenKeys,
|
|
@@ -53415,10 +53716,10 @@ var WfoStepList = React46.forwardRef(
|
|
|
53415
53716
|
})
|
|
53416
53717
|
}));
|
|
53417
53718
|
const getReferenceCallbackForStepId = (stepId) => (node) => node ? stepReferences.current.set(stepId, node) : stepReferences.current.delete(stepId);
|
|
53418
|
-
return /* @__PURE__ */
|
|
53719
|
+
return /* @__PURE__ */ jsx156(Fragment37, { children: stepListItems.map((stepListItem, index) => {
|
|
53419
53720
|
const stepComponent = /* @__PURE__ */ jsxs87("div", { children: [
|
|
53420
|
-
index !== 0 && /* @__PURE__ */
|
|
53421
|
-
/* @__PURE__ */
|
|
53721
|
+
index !== 0 && /* @__PURE__ */ jsx156("div", { css: stepSpacerStyle }),
|
|
53722
|
+
/* @__PURE__ */ jsx156(
|
|
53422
53723
|
WfoStep,
|
|
53423
53724
|
{
|
|
53424
53725
|
ref: getReferenceCallbackForStepId(
|
|
@@ -53444,15 +53745,15 @@ var WfoStepList = React46.forwardRef(
|
|
|
53444
53745
|
WfoStepList.displayName = "WfoStepList";
|
|
53445
53746
|
|
|
53446
53747
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53447
|
-
import
|
|
53448
|
-
import { useTranslations as
|
|
53748
|
+
import React50, { useEffect as useEffect22, useState as useState36 } from "react";
|
|
53749
|
+
import { useTranslations as useTranslations49 } from "next-intl";
|
|
53449
53750
|
|
|
53450
53751
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
53451
53752
|
var refractor = __toESM(require_refractor(), 1);
|
|
53452
|
-
import { useCallback as useCallback5, useEffect as
|
|
53753
|
+
import { useCallback as useCallback5, useEffect as useEffect21, useMemo as useMemo4, useState as useState34 } from "react";
|
|
53453
53754
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
53454
53755
|
import "react-diff-view/style/index.css";
|
|
53455
|
-
import { useTranslations as
|
|
53756
|
+
import { useTranslations as useTranslations47 } from "next-intl";
|
|
53456
53757
|
import "prism-themes/themes/prism-ghcolors.min.css";
|
|
53457
53758
|
import { diffLines, formatLines } from "unidiff";
|
|
53458
53759
|
import {
|
|
@@ -53462,15 +53763,15 @@ import {
|
|
|
53462
53763
|
EuiSpacer as EuiSpacer16,
|
|
53463
53764
|
EuiText as EuiText30
|
|
53464
53765
|
} from "@elastic/eui";
|
|
53465
|
-
import { jsx as
|
|
53766
|
+
import { jsx as jsx157, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
53466
53767
|
var EMPTY_HUNKS = [];
|
|
53467
53768
|
var SMALL_CONTEXT = 3;
|
|
53468
53769
|
var FULL_CONTEXT = 1e6;
|
|
53469
53770
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
53470
|
-
const t =
|
|
53471
|
-
const [showSplit, setShowSplit] =
|
|
53472
|
-
const [showFull, setShowFull] =
|
|
53473
|
-
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({
|
|
53474
53775
|
type: "modify",
|
|
53475
53776
|
hunks: []
|
|
53476
53777
|
});
|
|
@@ -53496,13 +53797,13 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53496
53797
|
return void 0;
|
|
53497
53798
|
}
|
|
53498
53799
|
}, [hunks, syntax]);
|
|
53499
|
-
|
|
53800
|
+
useEffect21(() => {
|
|
53500
53801
|
updateDiffText();
|
|
53501
53802
|
}, [updateDiffText, showFull]);
|
|
53502
53803
|
return /* @__PURE__ */ jsxs88("div", { children: [
|
|
53503
53804
|
/* @__PURE__ */ jsxs88(EuiFlexGroup18, { gutterSize: "xs", children: [
|
|
53504
|
-
/* @__PURE__ */
|
|
53505
|
-
/* @__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(
|
|
53506
53807
|
EuiButtonIcon4,
|
|
53507
53808
|
{
|
|
53508
53809
|
size: "s",
|
|
@@ -53510,7 +53811,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53510
53811
|
onClick: () => setShowSplit(!showSplit)
|
|
53511
53812
|
}
|
|
53512
53813
|
) }),
|
|
53513
|
-
/* @__PURE__ */
|
|
53814
|
+
/* @__PURE__ */ jsx157(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx157(
|
|
53514
53815
|
EuiButtonIcon4,
|
|
53515
53816
|
{
|
|
53516
53817
|
size: "s",
|
|
@@ -53519,15 +53820,15 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53519
53820
|
}
|
|
53520
53821
|
) })
|
|
53521
53822
|
] }),
|
|
53522
|
-
/* @__PURE__ */
|
|
53523
|
-
/* @__PURE__ */
|
|
53823
|
+
/* @__PURE__ */ jsx157(EuiSpacer16, {}),
|
|
53824
|
+
/* @__PURE__ */ jsx157(
|
|
53524
53825
|
Diff,
|
|
53525
53826
|
{
|
|
53526
53827
|
viewType: showSplit ? "split" : "unified",
|
|
53527
53828
|
diffType: type,
|
|
53528
53829
|
hunks: hunks || EMPTY_HUNKS,
|
|
53529
53830
|
tokens,
|
|
53530
|
-
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */
|
|
53831
|
+
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx157(Hunk, { hunk }, hunk.content))
|
|
53531
53832
|
}
|
|
53532
53833
|
)
|
|
53533
53834
|
] });
|
|
@@ -53535,8 +53836,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53535
53836
|
var WfoDiff_default = WfoDiff;
|
|
53536
53837
|
|
|
53537
53838
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53538
|
-
import { useState as
|
|
53539
|
-
import { useTranslations as
|
|
53839
|
+
import { useState as useState35 } from "react";
|
|
53840
|
+
import { useTranslations as useTranslations48 } from "next-intl";
|
|
53540
53841
|
import {
|
|
53541
53842
|
EuiButton as EuiButton11,
|
|
53542
53843
|
EuiFlexGroup as EuiFlexGroup19,
|
|
@@ -53567,14 +53868,14 @@ var getStyles12 = (theme) => {
|
|
|
53567
53868
|
};
|
|
53568
53869
|
|
|
53569
53870
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
53570
|
-
import { jsx as
|
|
53871
|
+
import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
|
|
53571
53872
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
53572
53873
|
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles12);
|
|
53573
|
-
return /* @__PURE__ */
|
|
53874
|
+
return /* @__PURE__ */ jsx158(EuiText31, { onClick, css: textAnchorStyle, children: text });
|
|
53574
53875
|
};
|
|
53575
53876
|
|
|
53576
53877
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53577
|
-
import { jsx as
|
|
53878
|
+
import { jsx as jsx159, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
53578
53879
|
var WfoStepListHeader = ({
|
|
53579
53880
|
showHiddenKeys,
|
|
53580
53881
|
showRaw,
|
|
@@ -53586,7 +53887,7 @@ var WfoStepListHeader = ({
|
|
|
53586
53887
|
onToggleAllDetailsIsOpen,
|
|
53587
53888
|
isTask
|
|
53588
53889
|
}) => {
|
|
53589
|
-
const t =
|
|
53890
|
+
const t = useTranslations48("processes.steps");
|
|
53590
53891
|
const { theme } = useOrchestratorTheme();
|
|
53591
53892
|
const {
|
|
53592
53893
|
stepListHeaderStyle,
|
|
@@ -53594,14 +53895,14 @@ var WfoStepListHeader = ({
|
|
|
53594
53895
|
stepListContentBoldTextStyle,
|
|
53595
53896
|
stepListOptionsContainerStyle
|
|
53596
53897
|
} = getStyles11(theme);
|
|
53597
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
53898
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState35(false);
|
|
53598
53899
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
53599
53900
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
53600
|
-
const viewOptionButton = /* @__PURE__ */
|
|
53901
|
+
const viewOptionButton = /* @__PURE__ */ jsx159(
|
|
53601
53902
|
EuiButton11,
|
|
53602
53903
|
{
|
|
53603
53904
|
onClick: onViewOptionClick,
|
|
53604
|
-
iconType: () => /* @__PURE__ */
|
|
53905
|
+
iconType: () => /* @__PURE__ */ jsx159(WfoEyeFill, { color: theme.colors.link }),
|
|
53605
53906
|
iconSide: "right",
|
|
53606
53907
|
size: "s",
|
|
53607
53908
|
children: t("viewOptions")
|
|
@@ -53609,8 +53910,8 @@ var WfoStepListHeader = ({
|
|
|
53609
53910
|
);
|
|
53610
53911
|
return /* @__PURE__ */ jsxs89(EuiFlexGroup19, { css: stepListHeaderStyle, children: [
|
|
53611
53912
|
/* @__PURE__ */ jsxs89(EuiFlexGroup19, { css: stepListContentStyle, children: [
|
|
53612
|
-
/* @__PURE__ */
|
|
53613
|
-
!showRaw && /* @__PURE__ */
|
|
53913
|
+
/* @__PURE__ */ jsx159(EuiText32, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
53914
|
+
!showRaw && /* @__PURE__ */ jsx159(
|
|
53614
53915
|
WfoTextAnchor,
|
|
53615
53916
|
{
|
|
53616
53917
|
text: allDetailToggleText,
|
|
@@ -53626,25 +53927,25 @@ var WfoStepListHeader = ({
|
|
|
53626
53927
|
css: stepListOptionsContainerStyle,
|
|
53627
53928
|
gutterSize: "s",
|
|
53628
53929
|
children: [
|
|
53629
|
-
!showRaw && /* @__PURE__ */
|
|
53930
|
+
!showRaw && /* @__PURE__ */ jsx159(
|
|
53630
53931
|
EuiButton11,
|
|
53631
53932
|
{
|
|
53632
53933
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
53633
53934
|
iconSide: "right",
|
|
53634
53935
|
size: "s",
|
|
53635
|
-
iconType: () => /* @__PURE__ */
|
|
53936
|
+
iconType: () => /* @__PURE__ */ jsx159(WfoCode, { color: theme.colors.link }),
|
|
53636
53937
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
53637
53938
|
}
|
|
53638
53939
|
),
|
|
53639
|
-
/* @__PURE__ */
|
|
53940
|
+
/* @__PURE__ */ jsx159(
|
|
53640
53941
|
EuiPopover5,
|
|
53641
53942
|
{
|
|
53642
53943
|
button: viewOptionButton,
|
|
53643
53944
|
isOpen: isViewOptionOpen,
|
|
53644
53945
|
closePopover: closeViewOption,
|
|
53645
53946
|
display: "block",
|
|
53646
|
-
children: /* @__PURE__ */
|
|
53647
|
-
/* @__PURE__ */
|
|
53947
|
+
children: /* @__PURE__ */ jsx159("div", { children: /* @__PURE__ */ jsxs89(EuiForm2, { component: "form", children: [
|
|
53948
|
+
/* @__PURE__ */ jsx159(EuiFormRow20, { children: /* @__PURE__ */ jsx159(
|
|
53648
53949
|
EuiSwitch3,
|
|
53649
53950
|
{
|
|
53650
53951
|
label: "Hidden keys",
|
|
@@ -53657,7 +53958,7 @@ var WfoStepListHeader = ({
|
|
|
53657
53958
|
}
|
|
53658
53959
|
}
|
|
53659
53960
|
) }),
|
|
53660
|
-
/* @__PURE__ */
|
|
53961
|
+
/* @__PURE__ */ jsx159(EuiFormRow20, { children: /* @__PURE__ */ jsx159(
|
|
53661
53962
|
EuiSwitch3,
|
|
53662
53963
|
{
|
|
53663
53964
|
label: "Raw JSON data",
|
|
@@ -53678,10 +53979,10 @@ var WfoStepListHeader = ({
|
|
|
53678
53979
|
};
|
|
53679
53980
|
|
|
53680
53981
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53681
|
-
import { Fragment as
|
|
53982
|
+
import { Fragment as Fragment38, jsx as jsx160, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
53682
53983
|
var WfoProcessRawData = ({ processId }) => {
|
|
53683
53984
|
const { data, isFetching } = useRawProcessDetails(processId);
|
|
53684
|
-
return isFetching ? /* @__PURE__ */
|
|
53985
|
+
return isFetching ? /* @__PURE__ */ jsx160(WfoLoading, {}) : /* @__PURE__ */ jsx160(WfoJsonCodeBlock, { data: data || {} });
|
|
53685
53986
|
};
|
|
53686
53987
|
var WfoProcessSubscriptionDelta = ({
|
|
53687
53988
|
processId
|
|
@@ -53691,7 +53992,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53691
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 : "";
|
|
53692
53993
|
const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
|
|
53693
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;
|
|
53694
|
-
return isFetching ? /* @__PURE__ */
|
|
53995
|
+
return isFetching ? /* @__PURE__ */ jsx160(WfoLoading, {}) : /* @__PURE__ */ jsx160(
|
|
53695
53996
|
WfoDiff_default,
|
|
53696
53997
|
{
|
|
53697
53998
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -53700,7 +54001,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53700
54001
|
}
|
|
53701
54002
|
);
|
|
53702
54003
|
};
|
|
53703
|
-
var WfoWorkflowStepList =
|
|
54004
|
+
var WfoWorkflowStepList = React50.forwardRef(
|
|
53704
54005
|
({
|
|
53705
54006
|
steps = [],
|
|
53706
54007
|
startedAt,
|
|
@@ -53708,15 +54009,15 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53708
54009
|
isTask,
|
|
53709
54010
|
userInputForm
|
|
53710
54011
|
}, reference) => {
|
|
53711
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
53712
|
-
const [showRaw, setShowRaw] =
|
|
53713
|
-
const [showDelta, setShowDelta] =
|
|
53714
|
-
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");
|
|
53715
54016
|
const initialStepListItems = steps.map((step) => ({
|
|
53716
54017
|
step,
|
|
53717
54018
|
isExpanded: false
|
|
53718
54019
|
}));
|
|
53719
|
-
const [stepListItems, setStepListItems] =
|
|
54020
|
+
const [stepListItems, setStepListItems] = useState36(initialStepListItems);
|
|
53720
54021
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
53721
54022
|
var _a;
|
|
53722
54023
|
const reversedSteps = [...updatedSteps].reverse();
|
|
@@ -53734,7 +54035,7 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53734
54035
|
};
|
|
53735
54036
|
});
|
|
53736
54037
|
};
|
|
53737
|
-
|
|
54038
|
+
useEffect22(() => {
|
|
53738
54039
|
setStepListItems(
|
|
53739
54040
|
(previousStepListItems) => persistStepListItemState(
|
|
53740
54041
|
previousStepListItems,
|
|
@@ -53764,8 +54065,8 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53764
54065
|
const handleExpandStepListItem = (stepListItem) => updateStepListItem(stepListItem, (item) => __spreadProps(__spreadValues({}, item), {
|
|
53765
54066
|
isExpanded: true
|
|
53766
54067
|
}));
|
|
53767
|
-
return /* @__PURE__ */ jsxs90(
|
|
53768
|
-
/* @__PURE__ */
|
|
54068
|
+
return /* @__PURE__ */ jsxs90(Fragment38, { children: [
|
|
54069
|
+
/* @__PURE__ */ jsx160(
|
|
53769
54070
|
WfoStepListHeader,
|
|
53770
54071
|
{
|
|
53771
54072
|
showHiddenKeys,
|
|
@@ -53779,9 +54080,9 @@ var WfoWorkflowStepList = React49.forwardRef(
|
|
|
53779
54080
|
isTask
|
|
53780
54081
|
}
|
|
53781
54082
|
),
|
|
53782
|
-
showRaw && /* @__PURE__ */
|
|
53783
|
-
showDelta && /* @__PURE__ */
|
|
53784
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
54083
|
+
showRaw && /* @__PURE__ */ jsx160(WfoProcessRawData, { processId }),
|
|
54084
|
+
showDelta && /* @__PURE__ */ jsx160(WfoProcessSubscriptionDelta, { processId }),
|
|
54085
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx160(
|
|
53785
54086
|
WfoStepList,
|
|
53786
54087
|
{
|
|
53787
54088
|
ref: reference,
|
|
@@ -53801,7 +54102,7 @@ WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
|
53801
54102
|
|
|
53802
54103
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
53803
54104
|
import { useContext as useContext13 } from "react";
|
|
53804
|
-
import { useTranslations as
|
|
54105
|
+
import { useTranslations as useTranslations50 } from "next-intl";
|
|
53805
54106
|
import { useRouter as useRouter9 } from "next/router";
|
|
53806
54107
|
import {
|
|
53807
54108
|
EuiButton as EuiButton12,
|
|
@@ -53888,12 +54189,12 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
53888
54189
|
};
|
|
53889
54190
|
|
|
53890
54191
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
53891
|
-
import { Fragment as
|
|
54192
|
+
import { Fragment as Fragment39, jsx as jsx161, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
53892
54193
|
var ProcessHeaderValue = ({
|
|
53893
54194
|
translationKey,
|
|
53894
54195
|
value = ""
|
|
53895
54196
|
}) => {
|
|
53896
|
-
const t =
|
|
54197
|
+
const t = useTranslations50("processes.detail");
|
|
53897
54198
|
const { theme } = useOrchestratorTheme();
|
|
53898
54199
|
return /* @__PURE__ */ jsxs91(
|
|
53899
54200
|
EuiFlexGroup20,
|
|
@@ -53906,8 +54207,8 @@ var ProcessHeaderValue = ({
|
|
|
53906
54207
|
overflow: "hidden"
|
|
53907
54208
|
},
|
|
53908
54209
|
children: [
|
|
53909
|
-
/* @__PURE__ */
|
|
53910
|
-
/* @__PURE__ */
|
|
54210
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "xs", children: t(translationKey) }),
|
|
54211
|
+
/* @__PURE__ */ jsx161(
|
|
53911
54212
|
EuiText33,
|
|
53912
54213
|
{
|
|
53913
54214
|
css: {
|
|
@@ -53935,7 +54236,7 @@ var WfoProcessDetail = ({
|
|
|
53935
54236
|
hasError = false
|
|
53936
54237
|
}) => {
|
|
53937
54238
|
var _a, _b;
|
|
53938
|
-
const t =
|
|
54239
|
+
const t = useTranslations50("processes.detail");
|
|
53939
54240
|
const { theme } = useOrchestratorTheme();
|
|
53940
54241
|
const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
|
|
53941
54242
|
const { deleteProcess, abortProcess, retryProcess } = useMutateProcess();
|
|
@@ -53994,12 +54295,12 @@ var WfoProcessDetail = ({
|
|
|
53994
54295
|
router.push(PATH_TASKS);
|
|
53995
54296
|
}
|
|
53996
54297
|
});
|
|
53997
|
-
return /* @__PURE__ */ jsxs91(
|
|
54298
|
+
return /* @__PURE__ */ jsxs91(Fragment39, { children: [
|
|
53998
54299
|
/* @__PURE__ */ jsxs91(EuiFlexGroup20, { children: [
|
|
53999
54300
|
/* @__PURE__ */ jsxs91(EuiFlexItem27, { children: [
|
|
54000
|
-
/* @__PURE__ */
|
|
54001
|
-
/* @__PURE__ */
|
|
54002
|
-
/* @__PURE__ */
|
|
54301
|
+
/* @__PURE__ */ jsx161(EuiPageHeader3, { pageTitle }),
|
|
54302
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, {}),
|
|
54303
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "s", children: productNames })
|
|
54003
54304
|
] }),
|
|
54004
54305
|
/* @__PURE__ */ jsxs91(
|
|
54005
54306
|
EuiFlexGroup20,
|
|
@@ -54009,15 +54310,15 @@ var WfoProcessDetail = ({
|
|
|
54009
54310
|
css: { flexGrow: 0 },
|
|
54010
54311
|
gutterSize: "s",
|
|
54011
54312
|
children: [
|
|
54012
|
-
/* @__PURE__ */
|
|
54313
|
+
/* @__PURE__ */ jsx161(
|
|
54013
54314
|
WfoIsAllowedToRender,
|
|
54014
54315
|
{
|
|
54015
54316
|
resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */,
|
|
54016
|
-
children: /* @__PURE__ */
|
|
54317
|
+
children: /* @__PURE__ */ jsx161(
|
|
54017
54318
|
EuiButton12,
|
|
54018
54319
|
{
|
|
54019
54320
|
onClick: handleActionButtonClick(retryAction),
|
|
54020
|
-
iconType: () => /* @__PURE__ */
|
|
54321
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54021
54322
|
WfoRefresh,
|
|
54022
54323
|
{
|
|
54023
54324
|
color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
|
|
@@ -54029,15 +54330,15 @@ var WfoProcessDetail = ({
|
|
|
54029
54330
|
)
|
|
54030
54331
|
}
|
|
54031
54332
|
),
|
|
54032
|
-
/* @__PURE__ */
|
|
54333
|
+
/* @__PURE__ */ jsx161(
|
|
54033
54334
|
WfoIsAllowedToRender,
|
|
54034
54335
|
{
|
|
54035
54336
|
resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */,
|
|
54036
|
-
children: /* @__PURE__ */
|
|
54337
|
+
children: /* @__PURE__ */ jsx161(
|
|
54037
54338
|
EuiButton12,
|
|
54038
54339
|
{
|
|
54039
54340
|
onClick: handleActionButtonClick(abortAction),
|
|
54040
|
-
iconType: () => /* @__PURE__ */
|
|
54341
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54041
54342
|
WfoXCircleFill,
|
|
54042
54343
|
{
|
|
54043
54344
|
color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54050,11 +54351,11 @@ var WfoProcessDetail = ({
|
|
|
54050
54351
|
)
|
|
54051
54352
|
}
|
|
54052
54353
|
),
|
|
54053
|
-
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */
|
|
54354
|
+
processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx161(
|
|
54054
54355
|
EuiButton12,
|
|
54055
54356
|
{
|
|
54056
54357
|
onClick: handleActionButtonClick(deleteAction),
|
|
54057
|
-
iconType: () => /* @__PURE__ */
|
|
54358
|
+
iconType: () => /* @__PURE__ */ jsx161(
|
|
54058
54359
|
WfoXCircleFill,
|
|
54059
54360
|
{
|
|
54060
54361
|
color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -54069,44 +54370,44 @@ var WfoProcessDetail = ({
|
|
|
54069
54370
|
}
|
|
54070
54371
|
)
|
|
54071
54372
|
] }),
|
|
54072
|
-
/* @__PURE__ */
|
|
54073
|
-
/* @__PURE__ */
|
|
54373
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, {}),
|
|
54374
|
+
/* @__PURE__ */ jsx161(
|
|
54074
54375
|
EuiPanel5,
|
|
54075
54376
|
{
|
|
54076
54377
|
hasShadow: false,
|
|
54077
54378
|
hasBorder: false,
|
|
54078
54379
|
color: "subdued",
|
|
54079
54380
|
element: "div",
|
|
54080
|
-
children: isLoading && !hasError && /* @__PURE__ */
|
|
54081
|
-
/* @__PURE__ */
|
|
54381
|
+
children: isLoading && !hasError && /* @__PURE__ */ jsx161(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs91(EuiFlexGroup20, { direction: "row", gutterSize: "m", children: [
|
|
54382
|
+
/* @__PURE__ */ jsx161(
|
|
54082
54383
|
ProcessHeaderValue,
|
|
54083
54384
|
{
|
|
54084
54385
|
translationKey: "status",
|
|
54085
54386
|
value: processDetail.lastStatus
|
|
54086
54387
|
}
|
|
54087
54388
|
),
|
|
54088
|
-
/* @__PURE__ */
|
|
54389
|
+
/* @__PURE__ */ jsx161(
|
|
54089
54390
|
ProcessHeaderValue,
|
|
54090
54391
|
{
|
|
54091
54392
|
translationKey: "lastStep",
|
|
54092
54393
|
value: processDetail == null ? void 0 : processDetail.lastStep
|
|
54093
54394
|
}
|
|
54094
54395
|
),
|
|
54095
|
-
processDetail.customer && /* @__PURE__ */
|
|
54396
|
+
processDetail.customer && /* @__PURE__ */ jsx161(
|
|
54096
54397
|
ProcessHeaderValue,
|
|
54097
54398
|
{
|
|
54098
54399
|
translationKey: "customer",
|
|
54099
54400
|
value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
|
|
54100
54401
|
}
|
|
54101
54402
|
),
|
|
54102
|
-
/* @__PURE__ */
|
|
54403
|
+
/* @__PURE__ */ jsx161(
|
|
54103
54404
|
ProcessHeaderValue,
|
|
54104
54405
|
{
|
|
54105
54406
|
translationKey: "startedBy",
|
|
54106
54407
|
value: processDetail == null ? void 0 : processDetail.createdBy
|
|
54107
54408
|
}
|
|
54108
54409
|
),
|
|
54109
|
-
/* @__PURE__ */
|
|
54410
|
+
/* @__PURE__ */ jsx161(
|
|
54110
54411
|
ProcessHeaderValue,
|
|
54111
54412
|
{
|
|
54112
54413
|
translationKey: "startedOn",
|
|
@@ -54115,7 +54416,7 @@ var WfoProcessDetail = ({
|
|
|
54115
54416
|
)(processDetail == null ? void 0 : processDetail.startedAt) : ""
|
|
54116
54417
|
}
|
|
54117
54418
|
),
|
|
54118
|
-
/* @__PURE__ */
|
|
54419
|
+
/* @__PURE__ */ jsx161(
|
|
54119
54420
|
ProcessHeaderValue,
|
|
54120
54421
|
{
|
|
54121
54422
|
translationKey: "lastUpdate",
|
|
@@ -54136,8 +54437,8 @@ var WfoProcessDetail = ({
|
|
|
54136
54437
|
overflow: "hidden"
|
|
54137
54438
|
},
|
|
54138
54439
|
children: [
|
|
54139
|
-
/* @__PURE__ */
|
|
54140
|
-
/* @__PURE__ */
|
|
54440
|
+
/* @__PURE__ */ jsx161(EuiText33, { size: "xs", children: t("relatedSubscriptions") }),
|
|
54441
|
+
/* @__PURE__ */ jsx161(
|
|
54141
54442
|
EuiText33,
|
|
54142
54443
|
{
|
|
54143
54444
|
css: {
|
|
@@ -54147,7 +54448,7 @@ var WfoProcessDetail = ({
|
|
|
54147
54448
|
textOverflow: "ellipsis",
|
|
54148
54449
|
fontSize: theme.size.m
|
|
54149
54450
|
},
|
|
54150
|
-
children: /* @__PURE__ */
|
|
54451
|
+
children: /* @__PURE__ */ jsx161(
|
|
54151
54452
|
WfoProcessListSubscriptionsCell,
|
|
54152
54453
|
{
|
|
54153
54454
|
subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
|
|
@@ -54167,8 +54468,8 @@ var WfoProcessDetail = ({
|
|
|
54167
54468
|
] })
|
|
54168
54469
|
}
|
|
54169
54470
|
),
|
|
54170
|
-
/* @__PURE__ */
|
|
54171
|
-
/* @__PURE__ */
|
|
54471
|
+
/* @__PURE__ */ jsx161(EuiSpacer17, { size: "s" }),
|
|
54472
|
+
/* @__PURE__ */ jsx161(
|
|
54172
54473
|
WfoTimeline,
|
|
54173
54474
|
{
|
|
54174
54475
|
timelineItems,
|
|
@@ -54181,7 +54482,7 @@ var WfoProcessDetail = ({
|
|
|
54181
54482
|
};
|
|
54182
54483
|
|
|
54183
54484
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
54184
|
-
import { jsx as
|
|
54485
|
+
import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
|
|
54185
54486
|
var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
|
|
54186
54487
|
var WfoProcessDetailPage = ({
|
|
54187
54488
|
processId,
|
|
@@ -54189,8 +54490,8 @@ var WfoProcessDetailPage = ({
|
|
|
54189
54490
|
}) => {
|
|
54190
54491
|
var _a, _b;
|
|
54191
54492
|
const stepListRef = useRef7(null);
|
|
54192
|
-
const [fetchInterval, setFetchInterval] =
|
|
54193
|
-
const [process2, setProcess] =
|
|
54493
|
+
const [fetchInterval, setFetchInterval] = useState37();
|
|
54494
|
+
const [process2, setProcess] = useState37();
|
|
54194
54495
|
const { data, isLoading, isError: isError3 } = useGetProcessDetailQuery(
|
|
54195
54496
|
{ processId },
|
|
54196
54497
|
{ pollingInterval: fetchInterval }
|
|
@@ -54200,7 +54501,7 @@ var WfoProcessDetailPage = ({
|
|
|
54200
54501
|
setFetchInterval(void 0);
|
|
54201
54502
|
}
|
|
54202
54503
|
}
|
|
54203
|
-
|
|
54504
|
+
useEffect23(() => {
|
|
54204
54505
|
const process3 = data == null ? void 0 : data.processes[0];
|
|
54205
54506
|
const lastStatus = process3 == null ? void 0 : process3.lastStatus.toLocaleLowerCase();
|
|
54206
54507
|
const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
|
|
@@ -54208,7 +54509,7 @@ var WfoProcessDetailPage = ({
|
|
|
54208
54509
|
isInProgress ? processDetailRefetchInterval : void 0
|
|
54209
54510
|
);
|
|
54210
54511
|
}, [data, processDetailRefetchInterval]);
|
|
54211
|
-
|
|
54512
|
+
useEffect23(() => {
|
|
54212
54513
|
const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
|
|
54213
54514
|
if (!process2) {
|
|
54214
54515
|
setProcess(fetchedProcessDetails);
|
|
@@ -54225,7 +54526,7 @@ var WfoProcessDetailPage = ({
|
|
|
54225
54526
|
const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
|
|
54226
54527
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
54227
54528
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
54228
|
-
return /* @__PURE__ */
|
|
54529
|
+
return /* @__PURE__ */ jsx162(
|
|
54229
54530
|
WfoProcessDetail,
|
|
54230
54531
|
{
|
|
54231
54532
|
pageTitle,
|
|
@@ -54239,7 +54540,7 @@ var WfoProcessDetailPage = ({
|
|
|
54239
54540
|
},
|
|
54240
54541
|
isLoading,
|
|
54241
54542
|
hasError: isError3,
|
|
54242
|
-
children: isError3 && /* @__PURE__ */
|
|
54543
|
+
children: isError3 && /* @__PURE__ */ jsx162(WfoError, {}) || isLoading && /* @__PURE__ */ jsx162(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx162(
|
|
54243
54544
|
WfoWorkflowStepList,
|
|
54244
54545
|
{
|
|
54245
54546
|
ref: stepListRef,
|
|
@@ -54251,14 +54552,14 @@ var WfoProcessDetailPage = ({
|
|
|
54251
54552
|
startedAt: process2.startedAt,
|
|
54252
54553
|
isTask
|
|
54253
54554
|
}
|
|
54254
|
-
) || /* @__PURE__ */
|
|
54555
|
+
) || /* @__PURE__ */ jsx162("h1", { children: "Invalid processId" })
|
|
54255
54556
|
}
|
|
54256
54557
|
);
|
|
54257
54558
|
};
|
|
54258
54559
|
|
|
54259
54560
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
54260
|
-
import { useCallback as useCallback6, useEffect as
|
|
54261
|
-
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";
|
|
54262
54563
|
import { useRouter as useRouter10 } from "next/router";
|
|
54263
54564
|
import {
|
|
54264
54565
|
EuiFlexGroup as EuiFlexGroup21,
|
|
@@ -54267,7 +54568,7 @@ import {
|
|
|
54267
54568
|
EuiPanel as EuiPanel6,
|
|
54268
54569
|
EuiText as EuiText34
|
|
54269
54570
|
} from "@elastic/eui";
|
|
54270
|
-
import { jsx as
|
|
54571
|
+
import { jsx as jsx163, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
54271
54572
|
var getInitialProcessPayload = ({
|
|
54272
54573
|
productId,
|
|
54273
54574
|
subscriptionId
|
|
@@ -54289,11 +54590,11 @@ var WfoStartProcessPage = ({
|
|
|
54289
54590
|
isTask = false
|
|
54290
54591
|
}) => {
|
|
54291
54592
|
const apiClient = useAxiosApiClient();
|
|
54292
|
-
const t =
|
|
54593
|
+
const t = useTranslations51("processes.steps");
|
|
54293
54594
|
const router = useRouter10();
|
|
54294
|
-
const [hasError, setHasError] =
|
|
54595
|
+
const [hasError, setHasError] = useState38(false);
|
|
54295
54596
|
const { theme } = useOrchestratorTheme();
|
|
54296
|
-
const [form, setForm] =
|
|
54597
|
+
const [form, setForm] = useState38({});
|
|
54297
54598
|
const { productId, subscriptionId } = router.query;
|
|
54298
54599
|
const startProcessPayload = useMemo5(
|
|
54299
54600
|
() => getInitialProcessPayload({ productId, subscriptionId }),
|
|
@@ -54352,7 +54653,7 @@ var WfoStartProcessPage = ({
|
|
|
54352
54653
|
},
|
|
54353
54654
|
[apiClient, processName, startProcessPayload, isTask, router]
|
|
54354
54655
|
);
|
|
54355
|
-
|
|
54656
|
+
useEffect24(() => {
|
|
54356
54657
|
if (processName) {
|
|
54357
54658
|
const clientResultCallback = (json) => {
|
|
54358
54659
|
var _a;
|
|
@@ -54374,7 +54675,7 @@ var WfoStartProcessPage = ({
|
|
|
54374
54675
|
workflowName: processName,
|
|
54375
54676
|
createdBy: "-"
|
|
54376
54677
|
};
|
|
54377
|
-
return /* @__PURE__ */
|
|
54678
|
+
return /* @__PURE__ */ jsx163(
|
|
54378
54679
|
WfoProcessDetail,
|
|
54379
54680
|
{
|
|
54380
54681
|
pageTitle: processName,
|
|
@@ -54385,16 +54686,16 @@ var WfoStartProcessPage = ({
|
|
|
54385
54686
|
isLoading,
|
|
54386
54687
|
children: /* @__PURE__ */ jsxs92(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
|
|
54387
54688
|
/* @__PURE__ */ jsxs92(EuiFlexGroup21, { css: getStepHeaderStyle(false), children: [
|
|
54388
|
-
/* @__PURE__ */
|
|
54689
|
+
/* @__PURE__ */ jsx163(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
54389
54690
|
/* @__PURE__ */ jsxs92(EuiFlexItem28, { grow: 0, children: [
|
|
54390
|
-
/* @__PURE__ */
|
|
54391
|
-
/* @__PURE__ */
|
|
54691
|
+
/* @__PURE__ */ jsx163(EuiText34, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
54692
|
+
/* @__PURE__ */ jsx163(EuiText34, { children: t(
|
|
54392
54693
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
54393
54694
|
) })
|
|
54394
54695
|
] })
|
|
54395
54696
|
] }),
|
|
54396
|
-
/* @__PURE__ */
|
|
54397
|
-
hasError && /* @__PURE__ */
|
|
54697
|
+
/* @__PURE__ */ jsx163(EuiHorizontalRule6, {}),
|
|
54698
|
+
hasError && /* @__PURE__ */ jsx163(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx163(
|
|
54398
54699
|
UserInputFormWizard_default,
|
|
54399
54700
|
{
|
|
54400
54701
|
stepUserInput,
|
|
@@ -54405,14 +54706,14 @@ var WfoStartProcessPage = ({
|
|
|
54405
54706
|
hasNext,
|
|
54406
54707
|
isTask
|
|
54407
54708
|
}
|
|
54408
|
-
) || /* @__PURE__ */
|
|
54709
|
+
) || /* @__PURE__ */ jsx163(WfoLoading, {})
|
|
54409
54710
|
] })
|
|
54410
54711
|
}
|
|
54411
54712
|
);
|
|
54412
54713
|
};
|
|
54413
54714
|
|
|
54414
54715
|
// src/pages/startPage/WfoStartPage.tsx
|
|
54415
|
-
import { useTranslations as
|
|
54716
|
+
import { useTranslations as useTranslations52 } from "next-intl";
|
|
54416
54717
|
import { EuiFlexItem as EuiFlexItem33 } from "@elastic/eui";
|
|
54417
54718
|
|
|
54418
54719
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
@@ -54472,7 +54773,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
|
|
|
54472
54773
|
};
|
|
54473
54774
|
|
|
54474
54775
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
54475
|
-
import { jsx as
|
|
54776
|
+
import { jsx as jsx164, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
54476
54777
|
var WfoSummaryCardHeader = ({
|
|
54477
54778
|
text,
|
|
54478
54779
|
value,
|
|
@@ -54481,8 +54782,8 @@ var WfoSummaryCardHeader = ({
|
|
|
54481
54782
|
}) => {
|
|
54482
54783
|
const { theme } = useOrchestratorTheme();
|
|
54483
54784
|
const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
|
|
54484
|
-
return /* @__PURE__ */
|
|
54485
|
-
/* @__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(
|
|
54486
54787
|
EuiAvatar2,
|
|
54487
54788
|
{
|
|
54488
54789
|
iconSize: "l",
|
|
@@ -54496,8 +54797,8 @@ var WfoSummaryCardHeader = ({
|
|
|
54496
54797
|
}
|
|
54497
54798
|
),
|
|
54498
54799
|
/* @__PURE__ */ jsxs93("div", { css: totalSectionStyle, children: [
|
|
54499
|
-
/* @__PURE__ */
|
|
54500
|
-
/* @__PURE__ */
|
|
54800
|
+
/* @__PURE__ */ jsx164(EuiText35, { color: "subdued", children: text }),
|
|
54801
|
+
/* @__PURE__ */ jsx164(EuiText35, { css: valueStyle, children: value })
|
|
54501
54802
|
] })
|
|
54502
54803
|
] }) }) });
|
|
54503
54804
|
};
|
|
@@ -54519,15 +54820,15 @@ import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem30, EuiIcon a
|
|
|
54519
54820
|
|
|
54520
54821
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
54521
54822
|
import Link5 from "next/link";
|
|
54522
|
-
import { jsx as
|
|
54823
|
+
import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
|
|
54523
54824
|
var WfoOptionalLink = ({
|
|
54524
54825
|
children,
|
|
54525
54826
|
href
|
|
54526
54827
|
}) => {
|
|
54527
54828
|
if (!href) {
|
|
54528
|
-
return /* @__PURE__ */
|
|
54829
|
+
return /* @__PURE__ */ jsx165("span", { children });
|
|
54529
54830
|
}
|
|
54530
|
-
return /* @__PURE__ */
|
|
54831
|
+
return /* @__PURE__ */ jsx165(Link5, { href, children });
|
|
54531
54832
|
};
|
|
54532
54833
|
|
|
54533
54834
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -54576,7 +54877,7 @@ var getWfoSummaryCardListStyles = (theme) => {
|
|
|
54576
54877
|
};
|
|
54577
54878
|
|
|
54578
54879
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
54579
|
-
import { jsx as
|
|
54880
|
+
import { jsx as jsx166, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
54580
54881
|
var WfoSummaryCardListItem = ({
|
|
54581
54882
|
title,
|
|
54582
54883
|
value,
|
|
@@ -54589,9 +54890,9 @@ var WfoSummaryCardListItem = ({
|
|
|
54589
54890
|
listItemSubtitleStyle,
|
|
54590
54891
|
listItemHighlightIconStyle
|
|
54591
54892
|
} = getWfoSummaryCardListStyles(theme);
|
|
54592
|
-
return /* @__PURE__ */
|
|
54893
|
+
return /* @__PURE__ */ jsx166(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs94(EuiFlexGroup23, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
54593
54894
|
/* @__PURE__ */ jsxs94(EuiFlexItem30, { children: [
|
|
54594
|
-
/* @__PURE__ */
|
|
54895
|
+
/* @__PURE__ */ jsx166(
|
|
54595
54896
|
EuiTextColor,
|
|
54596
54897
|
{
|
|
54597
54898
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -54599,22 +54900,22 @@ var WfoSummaryCardListItem = ({
|
|
|
54599
54900
|
children: title
|
|
54600
54901
|
}
|
|
54601
54902
|
),
|
|
54602
|
-
/* @__PURE__ */
|
|
54903
|
+
/* @__PURE__ */ jsx166(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
54603
54904
|
] }),
|
|
54604
|
-
/* @__PURE__ */
|
|
54905
|
+
/* @__PURE__ */ jsx166(
|
|
54605
54906
|
EuiFlexItem30,
|
|
54606
54907
|
{
|
|
54607
54908
|
className: url ? "highlight-icon" : void 0,
|
|
54608
54909
|
grow: false,
|
|
54609
54910
|
css: listItemHighlightIconStyle,
|
|
54610
|
-
children: /* @__PURE__ */
|
|
54911
|
+
children: /* @__PURE__ */ jsx166(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
54611
54912
|
}
|
|
54612
54913
|
)
|
|
54613
54914
|
] }) });
|
|
54614
54915
|
};
|
|
54615
54916
|
|
|
54616
54917
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
54617
|
-
import { jsx as
|
|
54918
|
+
import { jsx as jsx167, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
54618
54919
|
var WfoSummaryCardList = ({
|
|
54619
54920
|
title,
|
|
54620
54921
|
items,
|
|
@@ -54624,7 +54925,7 @@ var WfoSummaryCardList = ({
|
|
|
54624
54925
|
const router = useRouter11();
|
|
54625
54926
|
const euiScrollBarStyle = useEuiScrollBar2();
|
|
54626
54927
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
54627
|
-
return /* @__PURE__ */
|
|
54928
|
+
return /* @__PURE__ */ jsx167(EuiFlexItem31, { children: /* @__PURE__ */ jsxs95(
|
|
54628
54929
|
EuiPanel8,
|
|
54629
54930
|
{
|
|
54630
54931
|
css: listContainerStyle,
|
|
@@ -54633,10 +54934,10 @@ var WfoSummaryCardList = ({
|
|
|
54633
54934
|
paddingSize: "l",
|
|
54634
54935
|
children: [
|
|
54635
54936
|
/* @__PURE__ */ jsxs95("div", { children: [
|
|
54636
|
-
/* @__PURE__ */
|
|
54637
|
-
/* @__PURE__ */
|
|
54638
|
-
/* @__PURE__ */
|
|
54639
|
-
/* @__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(
|
|
54640
54941
|
WfoSummaryCardListItem,
|
|
54641
54942
|
{
|
|
54642
54943
|
title: item.title,
|
|
@@ -54644,11 +54945,11 @@ var WfoSummaryCardList = ({
|
|
|
54644
54945
|
url: item.url
|
|
54645
54946
|
}
|
|
54646
54947
|
),
|
|
54647
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
54948
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx167(EuiHorizontalRule7, { margin: "none" })
|
|
54648
54949
|
] }, index)) }) })
|
|
54649
54950
|
] }),
|
|
54650
|
-
/* @__PURE__ */
|
|
54651
|
-
button && /* @__PURE__ */
|
|
54951
|
+
/* @__PURE__ */ jsx167(EuiSpacer18, { size: "m" }),
|
|
54952
|
+
button && /* @__PURE__ */ jsx167(
|
|
54652
54953
|
EuiButton13,
|
|
54653
54954
|
{
|
|
54654
54955
|
fullWidth: true,
|
|
@@ -54674,7 +54975,7 @@ var getWfoSummaryCardsStyles = (theme) => {
|
|
|
54674
54975
|
};
|
|
54675
54976
|
|
|
54676
54977
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
54677
|
-
import { jsx as
|
|
54978
|
+
import { jsx as jsx168, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
54678
54979
|
var WfoSummaryCards = ({ summaryCards }) => {
|
|
54679
54980
|
const { theme } = useOrchestratorTheme();
|
|
54680
54981
|
const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
|
|
@@ -54699,7 +55000,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54699
55000
|
};
|
|
54700
55001
|
}
|
|
54701
55002
|
};
|
|
54702
|
-
return /* @__PURE__ */
|
|
55003
|
+
return /* @__PURE__ */ jsx168(
|
|
54703
55004
|
EuiFlexGrid2,
|
|
54704
55005
|
{
|
|
54705
55006
|
responsive: false,
|
|
@@ -54715,7 +55016,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54715
55016
|
button,
|
|
54716
55017
|
isLoading
|
|
54717
55018
|
}, index) => /* @__PURE__ */ jsxs96(EuiFlexItem32, { css: cardContainerStyle, children: [
|
|
54718
|
-
/* @__PURE__ */
|
|
55019
|
+
/* @__PURE__ */ jsx168(
|
|
54719
55020
|
WfoSummaryCardHeader,
|
|
54720
55021
|
__spreadValues({
|
|
54721
55022
|
text: headerTitle,
|
|
@@ -54724,8 +55025,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
54724
55025
|
headerStatus
|
|
54725
55026
|
))
|
|
54726
55027
|
),
|
|
54727
|
-
/* @__PURE__ */
|
|
54728
|
-
/* @__PURE__ */
|
|
55028
|
+
/* @__PURE__ */ jsx168(EuiSpacer19, { size: "m" }),
|
|
55029
|
+
/* @__PURE__ */ jsx168(
|
|
54729
55030
|
WfoSummaryCardList,
|
|
54730
55031
|
{
|
|
54731
55032
|
title: listTitle,
|
|
@@ -54791,10 +55092,10 @@ var subscriptionListSummaryApi = orchestratorApi.injectEndpoints({
|
|
|
54791
55092
|
var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
|
|
54792
55093
|
|
|
54793
55094
|
// src/pages/startPage/WfoStartPage.tsx
|
|
54794
|
-
import { jsx as
|
|
55095
|
+
import { jsx as jsx169, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
54795
55096
|
var WfoStartPage = () => {
|
|
54796
55097
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
54797
|
-
const t =
|
|
55098
|
+
const t = useTranslations52("startPage");
|
|
54798
55099
|
const { isAllowed } = usePolicy();
|
|
54799
55100
|
const {
|
|
54800
55101
|
data: subscriptionsSummaryResult,
|
|
@@ -54906,8 +55207,8 @@ var WfoStartPage = () => {
|
|
|
54906
55207
|
justifyContent: "space-between"
|
|
54907
55208
|
},
|
|
54908
55209
|
children: [
|
|
54909
|
-
/* @__PURE__ */
|
|
54910
|
-
/* @__PURE__ */
|
|
55210
|
+
/* @__PURE__ */ jsx169("div", { children: product.name }),
|
|
55211
|
+
/* @__PURE__ */ jsx169("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
54911
55212
|
]
|
|
54912
55213
|
}
|
|
54913
55214
|
)
|
|
@@ -54924,7 +55225,7 @@ var WfoStartPage = () => {
|
|
|
54924
55225
|
latestActiveSubscriptionsSummaryCard,
|
|
54925
55226
|
productsSummaryCard
|
|
54926
55227
|
];
|
|
54927
|
-
return /* @__PURE__ */
|
|
55228
|
+
return /* @__PURE__ */ jsx169(EuiFlexItem33, { children: /* @__PURE__ */ jsx169(WfoSummaryCards, { summaryCards: allowedSummaryCards }) });
|
|
54928
55229
|
};
|
|
54929
55230
|
var subscriptionsListSummaryQueryVariables = {
|
|
54930
55231
|
first: 5,
|
|
@@ -55012,16 +55313,16 @@ var productsSummaryQueryVariables = {
|
|
|
55012
55313
|
|
|
55013
55314
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
55014
55315
|
import { useRouter as useRouter12 } from "next/router";
|
|
55015
|
-
import { Fragment as
|
|
55316
|
+
import { Fragment as Fragment40, jsx as jsx170 } from "@emotion/react/jsx-runtime";
|
|
55016
55317
|
var WfoSubscriptionDetailPage = () => {
|
|
55017
55318
|
const router = useRouter12();
|
|
55018
55319
|
const { subscriptionId } = router.query;
|
|
55019
|
-
return subscriptionId && /* @__PURE__ */
|
|
55320
|
+
return subscriptionId && /* @__PURE__ */ jsx170(TreeProvider, { children: /* @__PURE__ */ jsx170(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx170(Fragment40, {});
|
|
55020
55321
|
};
|
|
55021
55322
|
|
|
55022
55323
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55023
|
-
import { useEffect as
|
|
55024
|
-
import { useTranslations as
|
|
55324
|
+
import { useEffect as useEffect25, useState as useState39 } from "react";
|
|
55325
|
+
import { useTranslations as useTranslations54 } from "next-intl";
|
|
55025
55326
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
55026
55327
|
import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
55027
55328
|
|
|
@@ -55059,6 +55360,13 @@ var mapGraphQlSubscriptionsResultToSubscriptionListItems = (graphqlResponse) =>
|
|
|
55059
55360
|
});
|
|
55060
55361
|
|
|
55061
55362
|
// src/components/WfoSubscriptionsList/subscriptionListTabs.ts
|
|
55363
|
+
var WfoSubscriptionListTab = /* @__PURE__ */ ((WfoSubscriptionListTab2) => {
|
|
55364
|
+
WfoSubscriptionListTab2["ACTIVE"] = "ACTIVE";
|
|
55365
|
+
WfoSubscriptionListTab2["TERMINATED"] = "TERMINATED";
|
|
55366
|
+
WfoSubscriptionListTab2["TRANSIENT"] = "TRANSIENT";
|
|
55367
|
+
WfoSubscriptionListTab2["ALL"] = "ALL";
|
|
55368
|
+
return WfoSubscriptionListTab2;
|
|
55369
|
+
})(WfoSubscriptionListTab || {});
|
|
55062
55370
|
var subscriptionListTabs = [
|
|
55063
55371
|
{
|
|
55064
55372
|
id: "ACTIVE" /* ACTIVE */,
|
|
@@ -55097,7 +55405,7 @@ var subscriptionListTabs = [
|
|
|
55097
55405
|
];
|
|
55098
55406
|
|
|
55099
55407
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55100
|
-
import { useTranslations as
|
|
55408
|
+
import { useTranslations as useTranslations53 } from "next-intl";
|
|
55101
55409
|
import Link6 from "next/link";
|
|
55102
55410
|
import { useRouter as useRouter13 } from "next/router";
|
|
55103
55411
|
|
|
@@ -55169,7 +55477,7 @@ var subscriptionListApi = orchestratorApi.injectEndpoints({
|
|
|
55169
55477
|
var { useGetSubscriptionListQuery, useLazyGetSubscriptionListQuery } = subscriptionListApi;
|
|
55170
55478
|
|
|
55171
55479
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55172
|
-
import { jsx as
|
|
55480
|
+
import { jsx as jsx171 } from "@emotion/react/jsx-runtime";
|
|
55173
55481
|
var WfoSubscriptionsList = ({
|
|
55174
55482
|
alwaysOnFilters,
|
|
55175
55483
|
dataDisplayParams,
|
|
@@ -55178,34 +55486,34 @@ var WfoSubscriptionsList = ({
|
|
|
55178
55486
|
}) => {
|
|
55179
55487
|
var _a, _b, _c;
|
|
55180
55488
|
const router = useRouter13();
|
|
55181
|
-
const t =
|
|
55182
|
-
const tError =
|
|
55489
|
+
const t = useTranslations53("subscriptions.index");
|
|
55490
|
+
const tError = useTranslations53("errors");
|
|
55183
55491
|
const { showToastMessage } = useShowToastMessage();
|
|
55184
55492
|
const tableColumns = {
|
|
55185
55493
|
subscriptionId: {
|
|
55186
55494
|
field: "subscriptionId",
|
|
55187
55495
|
name: t("id"),
|
|
55188
55496
|
width: "100",
|
|
55189
|
-
render: (value) => /* @__PURE__ */
|
|
55497
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoFirstPartUUID, { UUID: value }),
|
|
55190
55498
|
renderDetails: (value) => value
|
|
55191
55499
|
},
|
|
55192
55500
|
description: {
|
|
55193
55501
|
field: "description",
|
|
55194
55502
|
name: t("description"),
|
|
55195
55503
|
width: "400",
|
|
55196
|
-
render: (value, record) => /* @__PURE__ */
|
|
55504
|
+
render: (value, record) => /* @__PURE__ */ jsx171(Link6, { href: `/subscriptions/${record.subscriptionId}`, children: value })
|
|
55197
55505
|
},
|
|
55198
55506
|
status: {
|
|
55199
55507
|
field: "status",
|
|
55200
55508
|
name: t("status"),
|
|
55201
55509
|
width: "110",
|
|
55202
|
-
render: (value) => /* @__PURE__ */
|
|
55510
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoSubscriptionStatusBadge, { status: value })
|
|
55203
55511
|
},
|
|
55204
55512
|
insync: {
|
|
55205
55513
|
field: "insync",
|
|
55206
55514
|
name: t("insync"),
|
|
55207
55515
|
width: "110",
|
|
55208
|
-
render: (value) => /* @__PURE__ */
|
|
55516
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoInsyncIcon, { inSync: value })
|
|
55209
55517
|
},
|
|
55210
55518
|
productName: {
|
|
55211
55519
|
field: "productName",
|
|
@@ -55230,7 +55538,7 @@ var WfoSubscriptionsList = ({
|
|
|
55230
55538
|
field: "startDate",
|
|
55231
55539
|
name: t("startDate"),
|
|
55232
55540
|
width: "150",
|
|
55233
|
-
render: (value) => /* @__PURE__ */
|
|
55541
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoDateTime, { dateOrIsoString: value }),
|
|
55234
55542
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55235
55543
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55236
55544
|
},
|
|
@@ -55238,7 +55546,7 @@ var WfoSubscriptionsList = ({
|
|
|
55238
55546
|
field: "endDate",
|
|
55239
55547
|
name: t("endDate"),
|
|
55240
55548
|
width: "150",
|
|
55241
|
-
render: (value) => /* @__PURE__ */
|
|
55549
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoDateTime, { dateOrIsoString: value }),
|
|
55242
55550
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55243
55551
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55244
55552
|
},
|
|
@@ -55249,8 +55557,8 @@ var WfoSubscriptionsList = ({
|
|
|
55249
55557
|
metadata: {
|
|
55250
55558
|
field: "metadata",
|
|
55251
55559
|
name: t("metadata"),
|
|
55252
|
-
render: (value) => /* @__PURE__ */
|
|
55253
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
55560
|
+
render: (value) => /* @__PURE__ */ jsx171(WfoInlineJson, { data: value }),
|
|
55561
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx171(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
|
|
55254
55562
|
}
|
|
55255
55563
|
};
|
|
55256
55564
|
const { sortBy, queryString, pageIndex, pageSize } = dataDisplayParams;
|
|
@@ -55284,7 +55592,7 @@ var WfoSubscriptionsList = ({
|
|
|
55284
55592
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
55285
55593
|
totalItemCount: totalItems != null ? totalItems : 0
|
|
55286
55594
|
};
|
|
55287
|
-
return /* @__PURE__ */
|
|
55595
|
+
return /* @__PURE__ */ jsx171(
|
|
55288
55596
|
WfoTableWithFilter,
|
|
55289
55597
|
{
|
|
55290
55598
|
queryString: dataDisplayParams.queryString,
|
|
@@ -55325,15 +55633,15 @@ var WfoSubscriptionsList = ({
|
|
|
55325
55633
|
};
|
|
55326
55634
|
|
|
55327
55635
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55328
|
-
import { Fragment as
|
|
55636
|
+
import { Fragment as Fragment41, jsx as jsx172, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
55329
55637
|
var WfoSubscriptionsListPage = () => {
|
|
55330
55638
|
var _a;
|
|
55331
|
-
const t =
|
|
55332
|
-
const [tableDefaults, setTableDefaults] =
|
|
55639
|
+
const t = useTranslations54("subscriptions.detail");
|
|
55640
|
+
const [tableDefaults, setTableDefaults] = useState39();
|
|
55333
55641
|
const getStoredTableConfig = useStoredTableConfig(
|
|
55334
55642
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
55335
55643
|
);
|
|
55336
|
-
|
|
55644
|
+
useEffect25(() => {
|
|
55337
55645
|
const storedConfig = getStoredTableConfig();
|
|
55338
55646
|
if (storedConfig) {
|
|
55339
55647
|
setTableDefaults(storedConfig);
|
|
@@ -55365,11 +55673,11 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55365
55673
|
const alwaysOnFilters = (_a = subscriptionListTabs.find(
|
|
55366
55674
|
({ id }) => id === activeTab
|
|
55367
55675
|
)) == null ? void 0 : _a.alwaysOnFilters;
|
|
55368
|
-
return /* @__PURE__ */ jsxs98(
|
|
55369
|
-
/* @__PURE__ */
|
|
55370
|
-
/* @__PURE__ */
|
|
55371
|
-
/* @__PURE__ */
|
|
55372
|
-
/* @__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(
|
|
55373
55681
|
WfoFilterTabs,
|
|
55374
55682
|
{
|
|
55375
55683
|
tabs: subscriptionListTabs,
|
|
@@ -55378,8 +55686,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55378
55686
|
onChangeTab: handleChangeSubscriptionsTab
|
|
55379
55687
|
}
|
|
55380
55688
|
),
|
|
55381
|
-
/* @__PURE__ */
|
|
55382
|
-
/* @__PURE__ */
|
|
55689
|
+
/* @__PURE__ */ jsx172(EuiSpacer20, { size: "xxl" }),
|
|
55690
|
+
/* @__PURE__ */ jsx172(
|
|
55383
55691
|
WfoSubscriptionsList,
|
|
55384
55692
|
{
|
|
55385
55693
|
hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -55392,8 +55700,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55392
55700
|
};
|
|
55393
55701
|
|
|
55394
55702
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55395
|
-
import { useContext as useContext14, useEffect as
|
|
55396
|
-
import { useTranslations as
|
|
55703
|
+
import { useContext as useContext14, useEffect as useEffect26, useState as useState40 } from "react";
|
|
55704
|
+
import { useTranslations as useTranslations55 } from "next-intl";
|
|
55397
55705
|
import Link7 from "next/link";
|
|
55398
55706
|
import { useRouter as useRouter14 } from "next/router";
|
|
55399
55707
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
@@ -55468,16 +55776,16 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
55468
55776
|
};
|
|
55469
55777
|
|
|
55470
55778
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55471
|
-
import { Fragment as
|
|
55779
|
+
import { Fragment as Fragment42, jsx as jsx173, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
55472
55780
|
var WfoTasksListPage = () => {
|
|
55473
55781
|
var _a;
|
|
55474
55782
|
const router = useRouter14();
|
|
55475
|
-
const t =
|
|
55783
|
+
const t = useTranslations55("tasks.page");
|
|
55476
55784
|
const [activeTab, setActiveTab] = useQueryParam3(
|
|
55477
55785
|
"activeTab",
|
|
55478
55786
|
withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
|
|
55479
55787
|
);
|
|
55480
|
-
const [tableDefaults, setTableDefaults] =
|
|
55788
|
+
const [tableDefaults, setTableDefaults] = useState40();
|
|
55481
55789
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
55482
55790
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
55483
55791
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -55485,7 +55793,7 @@ var WfoTasksListPage = () => {
|
|
|
55485
55793
|
const { showConfirmDialog } = useContext14(ConfirmationDialogContext);
|
|
55486
55794
|
const { retryAllProcesses } = useMutateProcess();
|
|
55487
55795
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
55488
|
-
|
|
55796
|
+
useEffect26(() => {
|
|
55489
55797
|
const storedConfig = getStoredTableConfig();
|
|
55490
55798
|
if (storedConfig) {
|
|
55491
55799
|
setTableDefaults(storedConfig);
|
|
@@ -55525,7 +55833,7 @@ var WfoTasksListPage = () => {
|
|
|
55525
55833
|
workflowName: {
|
|
55526
55834
|
field: "workflowName",
|
|
55527
55835
|
name: t("taskName"),
|
|
55528
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
55836
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx173(Link7, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
55529
55837
|
},
|
|
55530
55838
|
lastStep: defaultTableColumns.lastStep,
|
|
55531
55839
|
lastStatus: defaultTableColumns.lastStatus,
|
|
@@ -55541,21 +55849,21 @@ var WfoTasksListPage = () => {
|
|
|
55541
55849
|
startedAt: defaultTableColumns.startedAt,
|
|
55542
55850
|
lastModifiedAt: defaultTableColumns.lastModifiedAt
|
|
55543
55851
|
});
|
|
55544
|
-
return /* @__PURE__ */ jsxs99(
|
|
55545
|
-
/* @__PURE__ */
|
|
55852
|
+
return /* @__PURE__ */ jsxs99(Fragment42, { children: [
|
|
55853
|
+
/* @__PURE__ */ jsx173(EuiSpacer21, {}),
|
|
55546
55854
|
/* @__PURE__ */ jsxs99(EuiFlexGroup24, { children: [
|
|
55547
|
-
/* @__PURE__ */
|
|
55548
|
-
/* @__PURE__ */
|
|
55855
|
+
/* @__PURE__ */ jsx173(EuiFlexItem34, { children: /* @__PURE__ */ jsx173(EuiPageHeader5, { pageTitle: "Tasks" }) }),
|
|
55856
|
+
/* @__PURE__ */ jsx173(EuiFlexItem34, { children: /* @__PURE__ */ jsxs99(EuiFlexGroup24, { justifyContent: "flexEnd", children: [
|
|
55549
55857
|
" ",
|
|
55550
|
-
/* @__PURE__ */
|
|
55858
|
+
/* @__PURE__ */ jsx173(
|
|
55551
55859
|
WfoIsAllowedToRender,
|
|
55552
55860
|
{
|
|
55553
55861
|
resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
|
|
55554
|
-
children: /* @__PURE__ */
|
|
55862
|
+
children: /* @__PURE__ */ jsx173(
|
|
55555
55863
|
EuiButton14,
|
|
55556
55864
|
{
|
|
55557
55865
|
onClick: handleRerunAllButtonClick,
|
|
55558
|
-
iconType: () => /* @__PURE__ */
|
|
55866
|
+
iconType: () => /* @__PURE__ */ jsx173(
|
|
55559
55867
|
WfoRefresh,
|
|
55560
55868
|
{
|
|
55561
55869
|
color: theme.colors.primaryText
|
|
@@ -55566,16 +55874,16 @@ var WfoTasksListPage = () => {
|
|
|
55566
55874
|
)
|
|
55567
55875
|
}
|
|
55568
55876
|
),
|
|
55569
|
-
/* @__PURE__ */
|
|
55877
|
+
/* @__PURE__ */ jsx173(
|
|
55570
55878
|
WfoIsAllowedToRender,
|
|
55571
55879
|
{
|
|
55572
55880
|
resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
|
|
55573
|
-
children: /* @__PURE__ */
|
|
55881
|
+
children: /* @__PURE__ */ jsx173(WfoStartTaskButtonComboBox, {})
|
|
55574
55882
|
}
|
|
55575
55883
|
)
|
|
55576
55884
|
] }) })
|
|
55577
55885
|
] }),
|
|
55578
|
-
/* @__PURE__ */
|
|
55886
|
+
/* @__PURE__ */ jsx173(
|
|
55579
55887
|
WfoFilterTabs,
|
|
55580
55888
|
{
|
|
55581
55889
|
tabs: defaultTasksListTabs,
|
|
@@ -55584,8 +55892,8 @@ var WfoTasksListPage = () => {
|
|
|
55584
55892
|
onChangeTab: handleChangeTasksListTab
|
|
55585
55893
|
}
|
|
55586
55894
|
),
|
|
55587
|
-
/* @__PURE__ */
|
|
55588
|
-
/* @__PURE__ */
|
|
55895
|
+
/* @__PURE__ */ jsx173(EuiSpacer21, { size: "xxl" }),
|
|
55896
|
+
/* @__PURE__ */ jsx173(
|
|
55589
55897
|
WfoProcessesList,
|
|
55590
55898
|
{
|
|
55591
55899
|
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -55600,13 +55908,18 @@ var WfoTasksListPage = () => {
|
|
|
55600
55908
|
};
|
|
55601
55909
|
|
|
55602
55910
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
55603
|
-
import { useEffect as
|
|
55604
|
-
import { useTranslations as
|
|
55911
|
+
import { useEffect as useEffect27, useState as useState41 } from "react";
|
|
55912
|
+
import { useTranslations as useTranslations56 } from "next-intl";
|
|
55605
55913
|
import { useRouter as useRouter15 } from "next/router";
|
|
55606
55914
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
55607
55915
|
import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer22 } from "@elastic/eui";
|
|
55608
55916
|
|
|
55609
55917
|
// src/pages/workflows/tabConfig.ts
|
|
55918
|
+
var WfoWorkflowsListTabType = /* @__PURE__ */ ((WfoWorkflowsListTabType2) => {
|
|
55919
|
+
WfoWorkflowsListTabType2["ACTIVE"] = "ACTIVE";
|
|
55920
|
+
WfoWorkflowsListTabType2["COMPLETED"] = "COMPLETED";
|
|
55921
|
+
return WfoWorkflowsListTabType2;
|
|
55922
|
+
})(WfoWorkflowsListTabType || {});
|
|
55610
55923
|
var defaultWorkflowsListTabs = [
|
|
55611
55924
|
{
|
|
55612
55925
|
id: "ACTIVE" /* ACTIVE */,
|
|
@@ -55664,20 +55977,20 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
55664
55977
|
};
|
|
55665
55978
|
|
|
55666
55979
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
55667
|
-
import { Fragment as
|
|
55980
|
+
import { Fragment as Fragment43, jsx as jsx174, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
55668
55981
|
var WfoWorkflowsListPage = () => {
|
|
55669
55982
|
var _a;
|
|
55670
55983
|
const router = useRouter15();
|
|
55671
|
-
const t =
|
|
55984
|
+
const t = useTranslations56("workflows.index");
|
|
55672
55985
|
const [activeTab, setActiveTab] = useQueryParam4(
|
|
55673
55986
|
"activeTab",
|
|
55674
55987
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
55675
55988
|
);
|
|
55676
|
-
const [tableDefaults, setTableDefaults] =
|
|
55989
|
+
const [tableDefaults, setTableDefaults] = useState41();
|
|
55677
55990
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
55678
55991
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
55679
55992
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
55680
|
-
|
|
55993
|
+
useEffect27(() => {
|
|
55681
55994
|
const storedConfig = getStoredTableConfig();
|
|
55682
55995
|
if (storedConfig) {
|
|
55683
55996
|
setTableDefaults(storedConfig);
|
|
@@ -55703,11 +56016,11 @@ var WfoWorkflowsListPage = () => {
|
|
|
55703
56016
|
router.replace(PATH_WORKFLOWS);
|
|
55704
56017
|
return null;
|
|
55705
56018
|
}
|
|
55706
|
-
return /* @__PURE__ */ jsxs100(
|
|
55707
|
-
/* @__PURE__ */
|
|
55708
|
-
/* @__PURE__ */
|
|
55709
|
-
/* @__PURE__ */
|
|
55710
|
-
/* @__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(
|
|
55711
56024
|
WfoFilterTabs,
|
|
55712
56025
|
{
|
|
55713
56026
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -55716,8 +56029,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
55716
56029
|
onChangeTab: handleChangeWorkflowsListTab
|
|
55717
56030
|
}
|
|
55718
56031
|
),
|
|
55719
|
-
/* @__PURE__ */
|
|
55720
|
-
/* @__PURE__ */
|
|
56032
|
+
/* @__PURE__ */ jsx174(EuiSpacer22, { size: "xxl" }),
|
|
56033
|
+
/* @__PURE__ */ jsx174(
|
|
55721
56034
|
WfoProcessesList,
|
|
55722
56035
|
{
|
|
55723
56036
|
alwaysOnFilters,
|
|
@@ -55793,7 +56106,7 @@ var mapGraphQlProcessListExportResultToProcessListItems = (processesResponse) =>
|
|
|
55793
56106
|
isTask,
|
|
55794
56107
|
startedAt: new Date(startedAt),
|
|
55795
56108
|
lastModifiedAt: new Date(lastModifiedAt),
|
|
55796
|
-
subscriptions,
|
|
56109
|
+
subscriptions: getConcatenatedPagedResult(subscriptions, ["subscriptionId", "description"]),
|
|
55797
56110
|
productName: product == null ? void 0 : product.name,
|
|
55798
56111
|
productTag: product == null ? void 0 : product.tag,
|
|
55799
56112
|
customer: customer.fullname,
|
|
@@ -55827,7 +56140,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
|
|
|
55827
56140
|
}));
|
|
55828
56141
|
|
|
55829
56142
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
55830
|
-
import { jsx as
|
|
56143
|
+
import { jsx as jsx175 } from "@emotion/react/jsx-runtime";
|
|
55831
56144
|
var WfoProcessesList = ({
|
|
55832
56145
|
alwaysOnFilters,
|
|
55833
56146
|
defaultHiddenColumns = [],
|
|
@@ -55837,15 +56150,15 @@ var WfoProcessesList = ({
|
|
|
55837
56150
|
overrideDefaultTableColumns
|
|
55838
56151
|
}) => {
|
|
55839
56152
|
var _a, _b;
|
|
55840
|
-
const t =
|
|
55841
|
-
const tError =
|
|
56153
|
+
const t = useTranslations57("processes.index");
|
|
56154
|
+
const tError = useTranslations57("errors");
|
|
55842
56155
|
const { showToastMessage } = useShowToastMessage();
|
|
55843
56156
|
const defaultTableColumns = {
|
|
55844
56157
|
workflowName: {
|
|
55845
56158
|
field: "workflowName",
|
|
55846
56159
|
name: t("workflowName"),
|
|
55847
56160
|
width: "20%",
|
|
55848
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56161
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx175(Link8, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
|
|
55849
56162
|
},
|
|
55850
56163
|
lastStep: {
|
|
55851
56164
|
field: "lastStep",
|
|
@@ -55856,13 +56169,13 @@ var WfoProcessesList = ({
|
|
|
55856
56169
|
field: "lastStatus",
|
|
55857
56170
|
name: t("status"),
|
|
55858
56171
|
width: "100",
|
|
55859
|
-
render: (cellValue) => /* @__PURE__ */
|
|
56172
|
+
render: (cellValue) => /* @__PURE__ */ jsx175(WfoProcessStatusBadge, { processStatus: cellValue })
|
|
55860
56173
|
},
|
|
55861
56174
|
workflowTarget: {
|
|
55862
56175
|
field: "workflowTarget",
|
|
55863
56176
|
name: t("workflowTarget"),
|
|
55864
56177
|
width: "100",
|
|
55865
|
-
render: (target) => /* @__PURE__ */
|
|
56178
|
+
render: (target) => /* @__PURE__ */ jsx175(WfoWorkflowTargetBadge, { target })
|
|
55866
56179
|
},
|
|
55867
56180
|
tag: {
|
|
55868
56181
|
field: "tag",
|
|
@@ -55888,14 +56201,14 @@ var WfoProcessesList = ({
|
|
|
55888
56201
|
field: "subscriptions",
|
|
55889
56202
|
name: t("subscriptions"),
|
|
55890
56203
|
width: "15%",
|
|
55891
|
-
render: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56204
|
+
render: ({ page: subscriptions }) => /* @__PURE__ */ jsx175(
|
|
55892
56205
|
WfoProcessListSubscriptionsCell,
|
|
55893
56206
|
{
|
|
55894
56207
|
subscriptions,
|
|
55895
56208
|
numberOfSubscriptionsToRender: 1
|
|
55896
56209
|
}
|
|
55897
56210
|
),
|
|
55898
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56211
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx175(
|
|
55899
56212
|
WfoProcessListSubscriptionsCell,
|
|
55900
56213
|
{
|
|
55901
56214
|
subscriptions
|
|
@@ -55917,14 +56230,14 @@ var WfoProcessesList = ({
|
|
|
55917
56230
|
field: "processId",
|
|
55918
56231
|
name: t("processId"),
|
|
55919
56232
|
width: "90",
|
|
55920
|
-
render: (value) => /* @__PURE__ */
|
|
56233
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoFirstPartUUID, { UUID: value }),
|
|
55921
56234
|
renderDetails: (value) => value
|
|
55922
56235
|
},
|
|
55923
56236
|
startedAt: {
|
|
55924
56237
|
field: "startedAt",
|
|
55925
56238
|
name: t("started"),
|
|
55926
56239
|
width: "100",
|
|
55927
|
-
render: (value) => /* @__PURE__ */
|
|
56240
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
55928
56241
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55929
56242
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55930
56243
|
},
|
|
@@ -55932,7 +56245,7 @@ var WfoProcessesList = ({
|
|
|
55932
56245
|
field: "lastModifiedAt",
|
|
55933
56246
|
name: t("lastModified"),
|
|
55934
56247
|
width: "100",
|
|
55935
|
-
render: (value) => /* @__PURE__ */
|
|
56248
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
55936
56249
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55937
56250
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55938
56251
|
}
|
|
@@ -55962,7 +56275,7 @@ var WfoProcessesList = ({
|
|
|
55962
56275
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
55963
56276
|
getQueryVariablesForExport(processListQueryVars)
|
|
55964
56277
|
).unwrap();
|
|
55965
|
-
return /* @__PURE__ */
|
|
56278
|
+
return /* @__PURE__ */ jsx175(
|
|
55966
56279
|
WfoTableWithFilter,
|
|
55967
56280
|
{
|
|
55968
56281
|
queryString,
|
|
@@ -56026,14 +56339,14 @@ var getStyles13 = (theme) => {
|
|
|
56026
56339
|
};
|
|
56027
56340
|
|
|
56028
56341
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
56029
|
-
import { jsx as
|
|
56342
|
+
import { jsx as jsx176 } from "@emotion/react/jsx-runtime";
|
|
56030
56343
|
var WfoJsonCodeBlock = ({
|
|
56031
56344
|
data,
|
|
56032
56345
|
isBasicStyle = false
|
|
56033
56346
|
}) => {
|
|
56034
56347
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles13);
|
|
56035
56348
|
const json = JSON.stringify(data, null, 4);
|
|
56036
|
-
return /* @__PURE__ */
|
|
56349
|
+
return /* @__PURE__ */ jsx176(
|
|
56037
56350
|
EuiCodeBlock2,
|
|
56038
56351
|
{
|
|
56039
56352
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -56046,8 +56359,8 @@ var WfoJsonCodeBlock = ({
|
|
|
56046
56359
|
};
|
|
56047
56360
|
|
|
56048
56361
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
56049
|
-
import { useState as
|
|
56050
|
-
import { useTranslations as
|
|
56362
|
+
import { useState as useState42 } from "react";
|
|
56363
|
+
import { useTranslations as useTranslations58 } from "next-intl";
|
|
56051
56364
|
import {
|
|
56052
56365
|
EuiButton as EuiButton15,
|
|
56053
56366
|
EuiComboBox,
|
|
@@ -56055,11 +56368,11 @@ import {
|
|
|
56055
56368
|
EuiSpacer as EuiSpacer23,
|
|
56056
56369
|
EuiText as EuiText36
|
|
56057
56370
|
} from "@elastic/eui";
|
|
56058
|
-
import { jsx as
|
|
56371
|
+
import { jsx as jsx177, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
56059
56372
|
var WfoFlushSettings = () => {
|
|
56060
56373
|
const [clearCache] = useClearCacheMutation();
|
|
56061
|
-
const t =
|
|
56062
|
-
const [selectedOptions, setSelected] =
|
|
56374
|
+
const t = useTranslations58("settings.page");
|
|
56375
|
+
const [selectedOptions, setSelected] = useState42(
|
|
56063
56376
|
[]
|
|
56064
56377
|
);
|
|
56065
56378
|
const { showToastMessage } = useShowToastMessage();
|
|
@@ -56098,9 +56411,9 @@ var WfoFlushSettings = () => {
|
|
|
56098
56411
|
paddingSize: "l",
|
|
56099
56412
|
style: { width: "50%" },
|
|
56100
56413
|
children: [
|
|
56101
|
-
/* @__PURE__ */
|
|
56102
|
-
/* @__PURE__ */
|
|
56103
|
-
/* @__PURE__ */
|
|
56414
|
+
/* @__PURE__ */ jsx177(EuiText36, { size: "s", children: /* @__PURE__ */ jsx177("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
56415
|
+
/* @__PURE__ */ jsx177(EuiSpacer23, { size: "m" }),
|
|
56416
|
+
/* @__PURE__ */ jsx177(
|
|
56104
56417
|
EuiComboBox,
|
|
56105
56418
|
{
|
|
56106
56419
|
"aria-label": "Flush settings",
|
|
@@ -56112,26 +56425,26 @@ var WfoFlushSettings = () => {
|
|
|
56112
56425
|
fullWidth: true
|
|
56113
56426
|
}
|
|
56114
56427
|
),
|
|
56115
|
-
/* @__PURE__ */
|
|
56116
|
-
/* @__PURE__ */
|
|
56428
|
+
/* @__PURE__ */ jsx177(EuiSpacer23, { size: "m" }),
|
|
56429
|
+
/* @__PURE__ */ jsx177(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
56117
56430
|
]
|
|
56118
56431
|
}
|
|
56119
56432
|
);
|
|
56120
56433
|
};
|
|
56121
56434
|
|
|
56122
56435
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
56123
|
-
import { useTranslations as
|
|
56436
|
+
import { useTranslations as useTranslations59 } from "next-intl";
|
|
56124
56437
|
import { EuiButton as EuiButton16 } from "@elastic/eui";
|
|
56125
|
-
import { jsx as
|
|
56438
|
+
import { jsx as jsx178 } from "@emotion/react/jsx-runtime";
|
|
56126
56439
|
var WfoEngineStatusButton = () => {
|
|
56127
56440
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
56128
56441
|
const { engineStatus } = data || {};
|
|
56129
56442
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
56130
|
-
const t =
|
|
56443
|
+
const t = useTranslations59("settings.page");
|
|
56131
56444
|
if (isLoading || isSettingEngineStatus) {
|
|
56132
|
-
return /* @__PURE__ */
|
|
56445
|
+
return /* @__PURE__ */ jsx178(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
|
|
56133
56446
|
}
|
|
56134
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
56447
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx178(
|
|
56135
56448
|
EuiButton16,
|
|
56136
56449
|
{
|
|
56137
56450
|
onClick: () => setEngineStatus(true),
|
|
@@ -56140,7 +56453,7 @@ var WfoEngineStatusButton = () => {
|
|
|
56140
56453
|
iconType: "pause",
|
|
56141
56454
|
children: t("pauseEngine")
|
|
56142
56455
|
}
|
|
56143
|
-
) : /* @__PURE__ */
|
|
56456
|
+
) : /* @__PURE__ */ jsx178(
|
|
56144
56457
|
EuiButton16,
|
|
56145
56458
|
{
|
|
56146
56459
|
onClick: () => setEngineStatus(false),
|
|
@@ -56153,17 +56466,17 @@ var WfoEngineStatusButton = () => {
|
|
|
56153
56466
|
};
|
|
56154
56467
|
|
|
56155
56468
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56156
|
-
import { useTranslations as
|
|
56469
|
+
import { useTranslations as useTranslations61 } from "next-intl";
|
|
56157
56470
|
import { EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer24, EuiText as EuiText37 } from "@elastic/eui";
|
|
56158
56471
|
|
|
56159
56472
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
56160
|
-
import { useTranslations as
|
|
56473
|
+
import { useTranslations as useTranslations60 } from "next-intl";
|
|
56161
56474
|
import { EuiButton as EuiButton17 } from "@elastic/eui";
|
|
56162
|
-
import { jsx as
|
|
56475
|
+
import { jsx as jsx179 } from "@emotion/react/jsx-runtime";
|
|
56163
56476
|
var WfoResetTextSearchIndexButton = () => {
|
|
56164
56477
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
56165
|
-
const t =
|
|
56166
|
-
return /* @__PURE__ */
|
|
56478
|
+
const t = useTranslations60("settings.page");
|
|
56479
|
+
return /* @__PURE__ */ jsx179(
|
|
56167
56480
|
EuiButton17,
|
|
56168
56481
|
{
|
|
56169
56482
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -56174,9 +56487,9 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
56174
56487
|
};
|
|
56175
56488
|
|
|
56176
56489
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56177
|
-
import { jsx as
|
|
56490
|
+
import { jsx as jsx180, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
56178
56491
|
var WfoModifySettings = () => {
|
|
56179
|
-
const t =
|
|
56492
|
+
const t = useTranslations61("settings.page");
|
|
56180
56493
|
return /* @__PURE__ */ jsxs102(EuiFlexItem35, { children: [
|
|
56181
56494
|
/* @__PURE__ */ jsxs102(
|
|
56182
56495
|
EuiPanel10,
|
|
@@ -56186,13 +56499,13 @@ var WfoModifySettings = () => {
|
|
|
56186
56499
|
paddingSize: "l",
|
|
56187
56500
|
css: { width: "50%" },
|
|
56188
56501
|
children: [
|
|
56189
|
-
/* @__PURE__ */
|
|
56190
|
-
/* @__PURE__ */
|
|
56191
|
-
/* @__PURE__ */
|
|
56502
|
+
/* @__PURE__ */ jsx180(EuiText37, { size: "s", children: /* @__PURE__ */ jsx180("h4", { children: t("resetTextSearchIndex") }) }),
|
|
56503
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, { size: "m" }),
|
|
56504
|
+
/* @__PURE__ */ jsx180(WfoResetTextSearchIndexButton, {})
|
|
56192
56505
|
]
|
|
56193
56506
|
}
|
|
56194
56507
|
),
|
|
56195
|
-
/* @__PURE__ */
|
|
56508
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, {}),
|
|
56196
56509
|
/* @__PURE__ */ jsxs102(
|
|
56197
56510
|
EuiPanel10,
|
|
56198
56511
|
{
|
|
@@ -56201,9 +56514,9 @@ var WfoModifySettings = () => {
|
|
|
56201
56514
|
paddingSize: "l",
|
|
56202
56515
|
css: { width: "50%" },
|
|
56203
56516
|
children: [
|
|
56204
|
-
/* @__PURE__ */
|
|
56205
|
-
/* @__PURE__ */
|
|
56206
|
-
/* @__PURE__ */
|
|
56517
|
+
/* @__PURE__ */ jsx180(EuiText37, { size: "s", children: /* @__PURE__ */ jsx180("h4", { children: t("modifyEngine") }) }),
|
|
56518
|
+
/* @__PURE__ */ jsx180(EuiSpacer24, { size: "m" }),
|
|
56519
|
+
/* @__PURE__ */ jsx180(WfoEngineStatusButton, {})
|
|
56207
56520
|
]
|
|
56208
56521
|
}
|
|
56209
56522
|
)
|
|
@@ -56211,7 +56524,7 @@ var WfoModifySettings = () => {
|
|
|
56211
56524
|
};
|
|
56212
56525
|
|
|
56213
56526
|
// src/components/WfoSettings/WfoStatus.tsx
|
|
56214
|
-
import { useTranslations as
|
|
56527
|
+
import { useTranslations as useTranslations62 } from "next-intl";
|
|
56215
56528
|
import {
|
|
56216
56529
|
EuiFlexGroup as EuiFlexGroup25,
|
|
56217
56530
|
EuiFlexItem as EuiFlexItem36,
|
|
@@ -56219,13 +56532,13 @@ import {
|
|
|
56219
56532
|
EuiSpacer as EuiSpacer25,
|
|
56220
56533
|
EuiText as EuiText38
|
|
56221
56534
|
} from "@elastic/eui";
|
|
56222
|
-
import { jsx as
|
|
56535
|
+
import { jsx as jsx181, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
56223
56536
|
var WfoStatus = () => {
|
|
56224
56537
|
const { theme } = useOrchestratorTheme();
|
|
56225
56538
|
const { data } = useGetEngineStatusQuery();
|
|
56226
56539
|
const { engineStatus, runningProcesses } = data || {};
|
|
56227
56540
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
56228
|
-
const t =
|
|
56541
|
+
const t = useTranslations62("settings.page");
|
|
56229
56542
|
return /* @__PURE__ */ jsxs103(
|
|
56230
56543
|
EuiPanel11,
|
|
56231
56544
|
{
|
|
@@ -56235,20 +56548,20 @@ var WfoStatus = () => {
|
|
|
56235
56548
|
style: { width: "50%" },
|
|
56236
56549
|
children: [
|
|
56237
56550
|
/* @__PURE__ */ jsxs103(EuiFlexGroup25, { children: [
|
|
56238
|
-
/* @__PURE__ */
|
|
56239
|
-
/* @__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 || "-" }) }) })
|
|
56240
56553
|
] }),
|
|
56241
|
-
/* @__PURE__ */
|
|
56554
|
+
/* @__PURE__ */ jsx181(EuiSpacer25, { size: "m" }),
|
|
56242
56555
|
/* @__PURE__ */ jsxs103(EuiFlexGroup25, { children: [
|
|
56243
|
-
/* @__PURE__ */
|
|
56244
|
-
/* @__PURE__ */
|
|
56245
|
-
/* @__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(
|
|
56246
56559
|
WfoStatusDotIcon,
|
|
56247
56560
|
{
|
|
56248
56561
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
56249
56562
|
}
|
|
56250
56563
|
) }),
|
|
56251
|
-
/* @__PURE__ */
|
|
56564
|
+
/* @__PURE__ */ jsx181(EuiFlexItem36, { children: /* @__PURE__ */ jsx181(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx181("p", { children: engineStatus }) }) })
|
|
56252
56565
|
] }) })
|
|
56253
56566
|
] })
|
|
56254
56567
|
]
|
|
@@ -56257,9 +56570,9 @@ var WfoStatus = () => {
|
|
|
56257
56570
|
};
|
|
56258
56571
|
|
|
56259
56572
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
56260
|
-
import
|
|
56261
|
-
import { jsx as
|
|
56262
|
-
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 {
|
|
56263
56576
|
constructor(props) {
|
|
56264
56577
|
super(props);
|
|
56265
56578
|
this.state = { hasError: false };
|
|
@@ -56278,7 +56591,7 @@ var WfoErrorBoundary = class extends React57.Component {
|
|
|
56278
56591
|
return /* @__PURE__ */ jsxs104("p", { children: [
|
|
56279
56592
|
"An unexpected error occurred, try to go back to the",
|
|
56280
56593
|
" ",
|
|
56281
|
-
/* @__PURE__ */
|
|
56594
|
+
/* @__PURE__ */ jsx182("a", { href: "/", children: "home page" })
|
|
56282
56595
|
] });
|
|
56283
56596
|
}
|
|
56284
56597
|
return this.props.children;
|
|
@@ -56322,12 +56635,12 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
56322
56635
|
};
|
|
56323
56636
|
|
|
56324
56637
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
56325
|
-
import { useTranslations as
|
|
56638
|
+
import { useTranslations as useTranslations63 } from "next-intl";
|
|
56326
56639
|
import { useRouter as useRouter16 } from "next/router";
|
|
56327
|
-
import { jsx as
|
|
56640
|
+
import { jsx as jsx183 } from "@emotion/react/jsx-runtime";
|
|
56328
56641
|
var WfoStartTaskButtonComboBox = () => {
|
|
56329
56642
|
const router = useRouter16();
|
|
56330
|
-
const t =
|
|
56643
|
+
const t = useTranslations63("common");
|
|
56331
56644
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
56332
56645
|
const { data } = useGetTaskOptionsQuery();
|
|
56333
56646
|
const taskOptions = (data == null ? void 0 : data.startOptions) || [];
|
|
@@ -56347,7 +56660,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
56347
56660
|
});
|
|
56348
56661
|
}
|
|
56349
56662
|
});
|
|
56350
|
-
return /* @__PURE__ */
|
|
56663
|
+
return /* @__PURE__ */ jsx183(
|
|
56351
56664
|
WfoStartButtonComboBox,
|
|
56352
56665
|
{
|
|
56353
56666
|
buttonText: t("newTask"),
|
|
@@ -56369,6 +56682,7 @@ var en_GB_default = {
|
|
|
56369
56682
|
metadataProductblocks: "Product blocks",
|
|
56370
56683
|
metadataResourceTypes: "Resource types",
|
|
56371
56684
|
metadataWorkflows: "Workflows",
|
|
56685
|
+
metadataTasks: "Tasks",
|
|
56372
56686
|
mobileTitle: "Main menu",
|
|
56373
56687
|
settings: "Settings",
|
|
56374
56688
|
start: "Start",
|
|
@@ -56485,11 +56799,13 @@ var en_GB_default = {
|
|
|
56485
56799
|
}
|
|
56486
56800
|
},
|
|
56487
56801
|
metadata: {
|
|
56802
|
+
title: "Metadata",
|
|
56488
56803
|
tabs: {
|
|
56489
56804
|
products: "Products",
|
|
56490
56805
|
productBlocks: "Product blocks",
|
|
56491
56806
|
resourceTypes: "Resource types",
|
|
56492
|
-
workflows: "Workflows"
|
|
56807
|
+
workflows: "Workflows",
|
|
56808
|
+
tasks: "Tasks"
|
|
56493
56809
|
},
|
|
56494
56810
|
products: {
|
|
56495
56811
|
id: "ID",
|
|
@@ -56526,6 +56842,13 @@ var en_GB_default = {
|
|
|
56526
56842
|
target: "Target",
|
|
56527
56843
|
productTags: "Product tags",
|
|
56528
56844
|
createdAt: "Created"
|
|
56845
|
+
},
|
|
56846
|
+
tasks: {
|
|
56847
|
+
name: "Task",
|
|
56848
|
+
description: "Task description",
|
|
56849
|
+
target: "Target",
|
|
56850
|
+
productTags: "Product tags",
|
|
56851
|
+
createdAt: "Created"
|
|
56529
56852
|
}
|
|
56530
56853
|
},
|
|
56531
56854
|
processes: {
|
|
@@ -56755,6 +57078,7 @@ var nl_NL_default = {
|
|
|
56755
57078
|
metadataProductblocks: "Product blocks",
|
|
56756
57079
|
metadataResourceTypes: "Resource types",
|
|
56757
57080
|
metadataWorkflows: "Workflows",
|
|
57081
|
+
metadataTasks: "Taken",
|
|
56758
57082
|
mobileTitle: "Hoofdmenu",
|
|
56759
57083
|
settings: "Settings",
|
|
56760
57084
|
start: "Start",
|
|
@@ -56875,7 +57199,8 @@ var nl_NL_default = {
|
|
|
56875
57199
|
products: "Producten",
|
|
56876
57200
|
productBlocks: "Product blocks",
|
|
56877
57201
|
resourceTypes: "Resource types",
|
|
56878
|
-
workflows: "Workflows"
|
|
57202
|
+
workflows: "Workflows",
|
|
57203
|
+
tasks: "Taken"
|
|
56879
57204
|
},
|
|
56880
57205
|
products: {
|
|
56881
57206
|
id: "ID",
|
|
@@ -56912,6 +57237,13 @@ var nl_NL_default = {
|
|
|
56912
57237
|
target: "Target",
|
|
56913
57238
|
productTags: "Product tags",
|
|
56914
57239
|
createdAt: "Aangemaakt"
|
|
57240
|
+
},
|
|
57241
|
+
tasks: {
|
|
57242
|
+
name: "Taak",
|
|
57243
|
+
description: "Taak beschrijving",
|
|
57244
|
+
target: "Target",
|
|
57245
|
+
productTags: "Product tags",
|
|
57246
|
+
createdAt: "Aangemaakt"
|
|
56915
57247
|
}
|
|
56916
57248
|
},
|
|
56917
57249
|
processes: {
|
|
@@ -57297,6 +57629,7 @@ export {
|
|
|
57297
57629
|
METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY,
|
|
57298
57630
|
METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY,
|
|
57299
57631
|
METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY,
|
|
57632
|
+
METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY,
|
|
57300
57633
|
METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY,
|
|
57301
57634
|
NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS,
|
|
57302
57635
|
NestField,
|
|
@@ -57308,6 +57641,7 @@ export {
|
|
|
57308
57641
|
PATH_METADATA_PRODUCTS,
|
|
57309
57642
|
PATH_METADATA_PRODUCT_BLOCKS,
|
|
57310
57643
|
PATH_METADATA_RESOURCE_TYPES,
|
|
57644
|
+
PATH_METADATA_TASKS,
|
|
57311
57645
|
PATH_METADATA_WORKFLOWS,
|
|
57312
57646
|
PATH_SETTINGS,
|
|
57313
57647
|
PATH_START,
|
|
@@ -57396,6 +57730,7 @@ export {
|
|
|
57396
57730
|
WfoKeyValueTable,
|
|
57397
57731
|
WfoLoading,
|
|
57398
57732
|
WfoLogoutIcon,
|
|
57733
|
+
WfoMetadataPageLayout,
|
|
57399
57734
|
WfoMinusCircleFill,
|
|
57400
57735
|
WfoMinusCircleOutline,
|
|
57401
57736
|
WfoModifySettings,
|
|
@@ -57454,13 +57789,16 @@ export {
|
|
|
57454
57789
|
WfoSubscriptionDetailPage,
|
|
57455
57790
|
WfoSubscriptionDetailTree,
|
|
57456
57791
|
WfoSubscriptionGeneral,
|
|
57792
|
+
WfoSubscriptionListTab,
|
|
57457
57793
|
WfoSubscriptionProductBlock,
|
|
57458
57794
|
WfoSubscriptionStatusBadge,
|
|
57795
|
+
WfoSubscriptionsList,
|
|
57459
57796
|
WfoSubscriptionsListPage,
|
|
57460
57797
|
WfoTableHeaderCell,
|
|
57461
57798
|
WfoTableWithFilter,
|
|
57462
57799
|
WfoTasksListPage,
|
|
57463
57800
|
WfoTasksListTabType,
|
|
57801
|
+
WfoTasksPage,
|
|
57464
57802
|
WfoTextAnchor,
|
|
57465
57803
|
WfoTimeline,
|
|
57466
57804
|
WfoToastsList,
|
|
@@ -57470,6 +57808,7 @@ export {
|
|
|
57470
57808
|
WfoWorkflowStepList,
|
|
57471
57809
|
WfoWorkflowTargetBadge,
|
|
57472
57810
|
WfoWorkflowsListPage,
|
|
57811
|
+
WfoWorkflowsListTabType,
|
|
57473
57812
|
WfoWorkflowsPage,
|
|
57474
57813
|
WfoXCircleFill,
|
|
57475
57814
|
WorkflowTarget,
|
|
@@ -57480,6 +57819,7 @@ export {
|
|
|
57480
57819
|
csvDownloadHandler,
|
|
57481
57820
|
defaultOrchestratorTheme,
|
|
57482
57821
|
defaultTasksListTabs,
|
|
57822
|
+
defaultWorkflowsListTabs,
|
|
57483
57823
|
determineNewSortOrder,
|
|
57484
57824
|
determinePageIndex,
|
|
57485
57825
|
filterDataByCriteria,
|
|
@@ -57487,6 +57827,8 @@ export {
|
|
|
57487
57827
|
formatDate,
|
|
57488
57828
|
formatDateCetWithUtc,
|
|
57489
57829
|
getApiClient,
|
|
57830
|
+
getConcatenatedPagedResult,
|
|
57831
|
+
getConcatenatedResult,
|
|
57490
57832
|
getCsvFileNameWithDate,
|
|
57491
57833
|
getCurrentBrowserLocale,
|
|
57492
57834
|
getCustomApiSlice,
|
|
@@ -57515,6 +57857,8 @@ export {
|
|
|
57515
57857
|
getWfoBasicTableStyles,
|
|
57516
57858
|
getWorkflowTargetColor,
|
|
57517
57859
|
getWorkflowTargetIconContent,
|
|
57860
|
+
getWorkflowsListTabTypeFromString,
|
|
57861
|
+
graphQlWorkflowListMapper,
|
|
57518
57862
|
imsPortIdFieldStyling,
|
|
57519
57863
|
initiateCsvFileDownload,
|
|
57520
57864
|
ipPrefixTableFieldStyling,
|
|
@@ -57524,7 +57868,11 @@ export {
|
|
|
57524
57868
|
isValidLocalStorageTableConfig,
|
|
57525
57869
|
localMomentToUtcTimestamp,
|
|
57526
57870
|
mapColumnSortToEuiDataGridSorting,
|
|
57871
|
+
mapGraphQlSubscriptionsResultToPageInfo,
|
|
57872
|
+
mapGraphQlSubscriptionsResultToSubscriptionListItems,
|
|
57527
57873
|
mapSortableAndFilterableValuesToTableColumnConfig,
|
|
57874
|
+
mapWorkflowDefinitionToWorkflowListItem,
|
|
57875
|
+
metaDataTabs,
|
|
57528
57876
|
onlyUnique,
|
|
57529
57877
|
orchestratorApi,
|
|
57530
57878
|
parseDate,
|
|
@@ -57551,7 +57899,9 @@ export {
|
|
|
57551
57899
|
splitPrefixStyling,
|
|
57552
57900
|
stop,
|
|
57553
57901
|
subscriptionDetailQuery,
|
|
57902
|
+
subscriptionListTabs,
|
|
57554
57903
|
subscriptionsDropdownOptionsQuery,
|
|
57904
|
+
tasksQuery,
|
|
57555
57905
|
toastMessagesReducer,
|
|
57556
57906
|
toastMessagesSlice,
|
|
57557
57907
|
upperCaseFirstChar,
|
|
@@ -57573,6 +57923,7 @@ export {
|
|
|
57573
57923
|
useGetSubscriptionDetailQuery,
|
|
57574
57924
|
useGetSubscriptionsDropdownOptionsQuery,
|
|
57575
57925
|
useGetTaskOptionsQuery,
|
|
57926
|
+
useGetTasksQuery,
|
|
57576
57927
|
useGetTimeLineItemsQuery,
|
|
57577
57928
|
useGetTranslationMessages,
|
|
57578
57929
|
useGetWorkflowOptionsQuery,
|
|
@@ -57581,6 +57932,7 @@ export {
|
|
|
57581
57932
|
useLazyGetProductBlocksQuery,
|
|
57582
57933
|
useLazyGetProductsQuery,
|
|
57583
57934
|
useLazyGetResourceTypesQuery,
|
|
57935
|
+
useLazyGetTasksQuery,
|
|
57584
57936
|
useLazyGetWorkflowsQuery,
|
|
57585
57937
|
useMutateProcess,
|
|
57586
57938
|
useOrchestratorConfig,
|
|
@@ -57599,6 +57951,7 @@ export {
|
|
|
57599
57951
|
useWfoSession,
|
|
57600
57952
|
useWithOrchestratorTheme,
|
|
57601
57953
|
utcTimestampToLocalMoment,
|
|
57954
|
+
workflowFieldMapper,
|
|
57602
57955
|
workflowsQuery
|
|
57603
57956
|
};
|
|
57604
57957
|
/*! Bundled license information:
|