@orchestrator-ui/orchestrator-ui-components 1.14.2 → 1.15.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 +4 -4
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +9 -9
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +247 -219
- package/package.json +1 -1
- package/src/contexts/OrchestratorConfigContext.tsx +2 -0
- package/src/messages/en-GB.json +2 -1
- package/src/messages/nl-NL.json +2 -1
- package/src/pages/processes/WfoProcessDetail.tsx +9 -5
- package/src/pages/processes/WfoProductInformationWithLink.tsx +34 -0
- package/src/pages/processes/index.ts +1 -0
- package/src/types/types.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -23127,10 +23127,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
23127
23127
|
var require_jsx = __commonJS({
|
|
23128
23128
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
23129
23129
|
"use strict";
|
|
23130
|
-
module.exports =
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
function
|
|
23130
|
+
module.exports = jsx200;
|
|
23131
|
+
jsx200.displayName = "jsx";
|
|
23132
|
+
jsx200.aliases = [];
|
|
23133
|
+
function jsx200(Prism) {
|
|
23134
23134
|
;
|
|
23135
23135
|
(function(Prism2) {
|
|
23136
23136
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -41940,7 +41940,9 @@ var OrchestratorConfigContext = createContext({
|
|
|
41940
41940
|
subscriptionProcessesEndpoint: "",
|
|
41941
41941
|
authActive: true,
|
|
41942
41942
|
useWebSockets: false,
|
|
41943
|
-
useThemeToggle: false
|
|
41943
|
+
useThemeToggle: false,
|
|
41944
|
+
showWorkflowInformationLink: false,
|
|
41945
|
+
workflowInformationLinkUrl: ""
|
|
41944
41946
|
});
|
|
41945
41947
|
var OrchestratorConfigProvider = ({ initialOrchestratorConfig, children }) => {
|
|
41946
41948
|
const { orchestratorConfig } = useOrchestratorConfig(
|
|
@@ -52972,7 +52974,7 @@ var WfoDropdownButton = ({
|
|
|
52972
52974
|
};
|
|
52973
52975
|
|
|
52974
52976
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
52975
|
-
import { useTranslations as
|
|
52977
|
+
import { useTranslations as useTranslations60 } from "next-intl";
|
|
52976
52978
|
import Link9 from "next/link";
|
|
52977
52979
|
|
|
52978
52980
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
@@ -55041,7 +55043,7 @@ var WfoProcessDetail = ({
|
|
|
55041
55043
|
isLoading = false,
|
|
55042
55044
|
hasError = false
|
|
55043
55045
|
}) => {
|
|
55044
|
-
var _a, _b;
|
|
55046
|
+
var _a, _b, _c;
|
|
55045
55047
|
const t = useTranslations53("processes.detail");
|
|
55046
55048
|
const { theme } = useOrchestratorTheme();
|
|
55047
55049
|
const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
|
|
@@ -55107,7 +55109,13 @@ var WfoProcessDetail = ({
|
|
|
55107
55109
|
/* @__PURE__ */ jsxs94(EuiFlexItem27, { children: [
|
|
55108
55110
|
/* @__PURE__ */ jsx168(EuiPageHeader2, { pageTitle }),
|
|
55109
55111
|
/* @__PURE__ */ jsx168(EuiSpacer16, {}),
|
|
55110
|
-
/* @__PURE__ */ jsx168(
|
|
55112
|
+
/* @__PURE__ */ jsx168(
|
|
55113
|
+
WfoProductInformationWithLink,
|
|
55114
|
+
{
|
|
55115
|
+
productNames,
|
|
55116
|
+
workflowName: (_a = processDetail == null ? void 0 : processDetail.workflowName) != null ? _a : ""
|
|
55117
|
+
}
|
|
55118
|
+
)
|
|
55111
55119
|
] }),
|
|
55112
55120
|
/* @__PURE__ */ jsxs94(
|
|
55113
55121
|
EuiFlexGroup20,
|
|
@@ -55204,7 +55212,7 @@ var WfoProcessDetail = ({
|
|
|
55204
55212
|
ProcessHeaderValue,
|
|
55205
55213
|
{
|
|
55206
55214
|
translationKey: "customer",
|
|
55207
|
-
value: (
|
|
55215
|
+
value: (_b = processDetail.customer) == null ? void 0 : _b.fullname
|
|
55208
55216
|
}
|
|
55209
55217
|
),
|
|
55210
55218
|
/* @__PURE__ */ jsx168(
|
|
@@ -55258,7 +55266,7 @@ var WfoProcessDetail = ({
|
|
|
55258
55266
|
children: /* @__PURE__ */ jsx168(
|
|
55259
55267
|
WfoProcessListSubscriptionsCell,
|
|
55260
55268
|
{
|
|
55261
|
-
subscriptions: process && ((
|
|
55269
|
+
subscriptions: process && ((_c = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _c.page.map(
|
|
55262
55270
|
(subscription) => ({
|
|
55263
55271
|
subscriptionId: subscription.subscriptionId,
|
|
55264
55272
|
description: subscription.description
|
|
@@ -55518,19 +55526,36 @@ var WfoStartProcessPage = ({
|
|
|
55518
55526
|
);
|
|
55519
55527
|
};
|
|
55520
55528
|
|
|
55529
|
+
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
55530
|
+
import { useTranslations as useTranslations55 } from "next-intl";
|
|
55531
|
+
import { EuiButtonIcon as EuiButtonIcon7, EuiFlexGroup as EuiFlexGroup22, EuiText as EuiText37, EuiToolTip as EuiToolTip5 } from "@elastic/eui";
|
|
55532
|
+
import { jsx as jsx171, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
55533
|
+
var WfoProductInformationWithLink = ({
|
|
55534
|
+
workflowName,
|
|
55535
|
+
productNames
|
|
55536
|
+
}) => {
|
|
55537
|
+
const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
|
|
55538
|
+
const t = useTranslations55("processes.detail");
|
|
55539
|
+
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
55540
|
+
return /* @__PURE__ */ jsxs96(EuiFlexGroup22, { gutterSize: "s", alignItems: "center", children: [
|
|
55541
|
+
showWorkflowInformationLink && /* @__PURE__ */ jsx171(EuiToolTip5, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx171("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx171(EuiButtonIcon7, { iconSize: "l", iconType: "iInCircle" }) }) }),
|
|
55542
|
+
/* @__PURE__ */ jsx171(EuiText37, { size: "s", children: productNames })
|
|
55543
|
+
] });
|
|
55544
|
+
};
|
|
55545
|
+
|
|
55521
55546
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
55522
55547
|
import { EuiHorizontalRule as EuiHorizontalRule6, EuiPageHeader as EuiPageHeader3, EuiSpacer as EuiSpacer17 } from "@elastic/eui";
|
|
55523
|
-
import { Fragment as Fragment42, jsx as
|
|
55548
|
+
import { Fragment as Fragment42, jsx as jsx172, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
55524
55549
|
var WfoSettingsPage = () => {
|
|
55525
|
-
return /* @__PURE__ */
|
|
55526
|
-
/* @__PURE__ */
|
|
55527
|
-
/* @__PURE__ */
|
|
55528
|
-
/* @__PURE__ */
|
|
55529
|
-
/* @__PURE__ */
|
|
55530
|
-
/* @__PURE__ */
|
|
55531
|
-
/* @__PURE__ */
|
|
55532
|
-
/* @__PURE__ */
|
|
55533
|
-
/* @__PURE__ */
|
|
55550
|
+
return /* @__PURE__ */ jsxs97(Fragment42, { children: [
|
|
55551
|
+
/* @__PURE__ */ jsx172(EuiSpacer17, {}),
|
|
55552
|
+
/* @__PURE__ */ jsx172(EuiPageHeader3, { pageTitle: "Settings" }),
|
|
55553
|
+
/* @__PURE__ */ jsx172(EuiHorizontalRule6, {}),
|
|
55554
|
+
/* @__PURE__ */ jsx172(WfoFlushSettings, {}),
|
|
55555
|
+
/* @__PURE__ */ jsx172(EuiSpacer17, {}),
|
|
55556
|
+
/* @__PURE__ */ jsx172(WfoModifySettings, {}),
|
|
55557
|
+
/* @__PURE__ */ jsx172(EuiSpacer17, {}),
|
|
55558
|
+
/* @__PURE__ */ jsx172(WfoStatus, {})
|
|
55534
55559
|
] });
|
|
55535
55560
|
};
|
|
55536
55561
|
|
|
@@ -55548,7 +55573,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
|
|
|
55548
55573
|
};
|
|
55549
55574
|
|
|
55550
55575
|
// src/pages/startPage/WfoStartPage.tsx
|
|
55551
|
-
import { jsx as
|
|
55576
|
+
import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
|
|
55552
55577
|
var WfoStartPage = () => {
|
|
55553
55578
|
var _a, _b;
|
|
55554
55579
|
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
@@ -55557,20 +55582,20 @@ var WfoStartPage = () => {
|
|
|
55557
55582
|
const username = (_b = (_a = session == null ? void 0 : session.user) == null ? void 0 : _a.name) != null ? _b : "";
|
|
55558
55583
|
const defaultSummaryCards = [
|
|
55559
55584
|
...toOptionalArrayEntry(
|
|
55560
|
-
/* @__PURE__ */
|
|
55585
|
+
/* @__PURE__ */ jsx173(WfoMyWorkflowsSummaryCard, { username: "Todo" }, "myWorkflows"),
|
|
55561
55586
|
!!username
|
|
55562
55587
|
),
|
|
55563
|
-
/* @__PURE__ */
|
|
55588
|
+
/* @__PURE__ */ jsx173(WfoActiveWorkflowsSummaryCard, {}, "activeWorkflows"),
|
|
55564
55589
|
...toOptionalArrayEntry(
|
|
55565
|
-
/* @__PURE__ */
|
|
55590
|
+
/* @__PURE__ */ jsx173(WfoFailedTasksSummaryCard, {}, "failedTasks"),
|
|
55566
55591
|
isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */)
|
|
55567
55592
|
),
|
|
55568
|
-
/* @__PURE__ */
|
|
55569
|
-
/* @__PURE__ */
|
|
55570
|
-
/* @__PURE__ */
|
|
55593
|
+
/* @__PURE__ */ jsx173(WfoLatestOutOfSyncSubscriptionSummaryCard, {}, "latestOutOfSyncSubscription"),
|
|
55594
|
+
/* @__PURE__ */ jsx173(WfoLatestActiveSubscriptionsSummaryCard, {}, "latestActiveSubscriptions"),
|
|
55595
|
+
/* @__PURE__ */ jsx173(WfoProductsSummaryCard, {}, "products")
|
|
55571
55596
|
];
|
|
55572
55597
|
const summaryCards = (overrideSummaryCards == null ? void 0 : overrideSummaryCards(defaultSummaryCards)) || defaultSummaryCards;
|
|
55573
|
-
return /* @__PURE__ */
|
|
55598
|
+
return /* @__PURE__ */ jsx173(WfoSummaryCards, { children: summaryCards });
|
|
55574
55599
|
};
|
|
55575
55600
|
|
|
55576
55601
|
// src/pages/startPage/mappers.ts
|
|
@@ -55587,16 +55612,16 @@ var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
|
|
|
55587
55612
|
|
|
55588
55613
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
55589
55614
|
import { useRouter as useRouter11 } from "next/router";
|
|
55590
|
-
import { Fragment as Fragment43, jsx as
|
|
55615
|
+
import { Fragment as Fragment43, jsx as jsx174 } from "@emotion/react/jsx-runtime";
|
|
55591
55616
|
var WfoSubscriptionDetailPage = () => {
|
|
55592
55617
|
const router = useRouter11();
|
|
55593
55618
|
const { subscriptionId } = router.query;
|
|
55594
|
-
return subscriptionId && /* @__PURE__ */
|
|
55619
|
+
return subscriptionId && /* @__PURE__ */ jsx174(TreeProvider, { children: /* @__PURE__ */ jsx174(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx174(Fragment43, {});
|
|
55595
55620
|
};
|
|
55596
55621
|
|
|
55597
55622
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55598
55623
|
import { useEffect as useEffect25, useState as useState39 } from "react";
|
|
55599
|
-
import { useTranslations as
|
|
55624
|
+
import { useTranslations as useTranslations57 } from "next-intl";
|
|
55600
55625
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
55601
55626
|
import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer18 } from "@elastic/eui";
|
|
55602
55627
|
|
|
@@ -55679,10 +55704,10 @@ var subscriptionListTabs = [
|
|
|
55679
55704
|
];
|
|
55680
55705
|
|
|
55681
55706
|
// src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
|
|
55682
|
-
import { useTranslations as
|
|
55707
|
+
import { useTranslations as useTranslations56 } from "next-intl";
|
|
55683
55708
|
import Link7 from "next/link";
|
|
55684
55709
|
import { useRouter as useRouter12 } from "next/router";
|
|
55685
|
-
import { jsx as
|
|
55710
|
+
import { jsx as jsx175 } from "@emotion/react/jsx-runtime";
|
|
55686
55711
|
var WfoSubscriptionsList = ({
|
|
55687
55712
|
alwaysOnFilters,
|
|
55688
55713
|
dataDisplayParams,
|
|
@@ -55691,34 +55716,34 @@ var WfoSubscriptionsList = ({
|
|
|
55691
55716
|
}) => {
|
|
55692
55717
|
var _a, _b, _c;
|
|
55693
55718
|
const router = useRouter12();
|
|
55694
|
-
const t =
|
|
55695
|
-
const tError =
|
|
55719
|
+
const t = useTranslations56("subscriptions.index");
|
|
55720
|
+
const tError = useTranslations56("errors");
|
|
55696
55721
|
const { showToastMessage } = useShowToastMessage();
|
|
55697
55722
|
const tableColumns = {
|
|
55698
55723
|
subscriptionId: {
|
|
55699
55724
|
field: "subscriptionId",
|
|
55700
55725
|
name: t("id"),
|
|
55701
55726
|
width: "100",
|
|
55702
|
-
render: (value) => /* @__PURE__ */
|
|
55727
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoFirstPartUUID, { UUID: value }),
|
|
55703
55728
|
renderDetails: (value) => value
|
|
55704
55729
|
},
|
|
55705
55730
|
description: {
|
|
55706
55731
|
field: "description",
|
|
55707
55732
|
name: t("description"),
|
|
55708
55733
|
width: "400",
|
|
55709
|
-
render: (value, record) => /* @__PURE__ */
|
|
55734
|
+
render: (value, record) => /* @__PURE__ */ jsx175(Link7, { href: `/subscriptions/${record.subscriptionId}`, children: value })
|
|
55710
55735
|
},
|
|
55711
55736
|
status: {
|
|
55712
55737
|
field: "status",
|
|
55713
55738
|
name: t("status"),
|
|
55714
55739
|
width: "110",
|
|
55715
|
-
render: (value) => /* @__PURE__ */
|
|
55740
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoSubscriptionStatusBadge, { status: value })
|
|
55716
55741
|
},
|
|
55717
55742
|
insync: {
|
|
55718
55743
|
field: "insync",
|
|
55719
55744
|
name: t("insync"),
|
|
55720
55745
|
width: "110",
|
|
55721
|
-
render: (value) => /* @__PURE__ */
|
|
55746
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoInsyncIcon, { inSync: value })
|
|
55722
55747
|
},
|
|
55723
55748
|
productName: {
|
|
55724
55749
|
field: "productName",
|
|
@@ -55743,7 +55768,7 @@ var WfoSubscriptionsList = ({
|
|
|
55743
55768
|
field: "startDate",
|
|
55744
55769
|
name: t("startDate"),
|
|
55745
55770
|
width: "150",
|
|
55746
|
-
render: (value) => /* @__PURE__ */
|
|
55771
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
55747
55772
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55748
55773
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55749
55774
|
},
|
|
@@ -55751,7 +55776,7 @@ var WfoSubscriptionsList = ({
|
|
|
55751
55776
|
field: "endDate",
|
|
55752
55777
|
name: t("endDate"),
|
|
55753
55778
|
width: "150",
|
|
55754
|
-
render: (value) => /* @__PURE__ */
|
|
55779
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoDateTime, { dateOrIsoString: value }),
|
|
55755
55780
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55756
55781
|
clipboardText: parseDateToLocaleDateTimeString
|
|
55757
55782
|
},
|
|
@@ -55762,8 +55787,8 @@ var WfoSubscriptionsList = ({
|
|
|
55762
55787
|
metadata: {
|
|
55763
55788
|
field: "metadata",
|
|
55764
55789
|
name: t("metadata"),
|
|
55765
|
-
render: (value) => /* @__PURE__ */
|
|
55766
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
55790
|
+
render: (value) => /* @__PURE__ */ jsx175(WfoInlineJson, { data: value }),
|
|
55791
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx175(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
|
|
55767
55792
|
}
|
|
55768
55793
|
};
|
|
55769
55794
|
const { sortBy, queryString, pageIndex, pageSize } = dataDisplayParams;
|
|
@@ -55797,7 +55822,7 @@ var WfoSubscriptionsList = ({
|
|
|
55797
55822
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
55798
55823
|
totalItemCount: totalItems != null ? totalItems : 0
|
|
55799
55824
|
};
|
|
55800
|
-
return /* @__PURE__ */
|
|
55825
|
+
return /* @__PURE__ */ jsx175(
|
|
55801
55826
|
WfoTableWithFilter,
|
|
55802
55827
|
{
|
|
55803
55828
|
queryString: dataDisplayParams.queryString,
|
|
@@ -55838,10 +55863,10 @@ var WfoSubscriptionsList = ({
|
|
|
55838
55863
|
};
|
|
55839
55864
|
|
|
55840
55865
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
55841
|
-
import { Fragment as Fragment44, jsx as
|
|
55866
|
+
import { Fragment as Fragment44, jsx as jsx176, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
55842
55867
|
var WfoSubscriptionsListPage = () => {
|
|
55843
55868
|
var _a;
|
|
55844
|
-
const t =
|
|
55869
|
+
const t = useTranslations57("subscriptions.detail");
|
|
55845
55870
|
const [tableDefaults, setTableDefaults] = useState39();
|
|
55846
55871
|
const getStoredTableConfig = useStoredTableConfig(
|
|
55847
55872
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
@@ -55878,11 +55903,11 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55878
55903
|
const alwaysOnFilters = (_a = subscriptionListTabs.find(
|
|
55879
55904
|
({ id }) => id === activeTab
|
|
55880
55905
|
)) == null ? void 0 : _a.alwaysOnFilters;
|
|
55881
|
-
return /* @__PURE__ */
|
|
55882
|
-
/* @__PURE__ */
|
|
55883
|
-
/* @__PURE__ */
|
|
55884
|
-
/* @__PURE__ */
|
|
55885
|
-
/* @__PURE__ */
|
|
55906
|
+
return /* @__PURE__ */ jsxs98(Fragment44, { children: [
|
|
55907
|
+
/* @__PURE__ */ jsx176(EuiSpacer18, {}),
|
|
55908
|
+
/* @__PURE__ */ jsx176(EuiPageHeader4, { pageTitle: t("title") }),
|
|
55909
|
+
/* @__PURE__ */ jsx176(EuiSpacer18, { size: "m" }),
|
|
55910
|
+
/* @__PURE__ */ jsx176(
|
|
55886
55911
|
WfoFilterTabs,
|
|
55887
55912
|
{
|
|
55888
55913
|
tabs: subscriptionListTabs,
|
|
@@ -55891,8 +55916,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55891
55916
|
onChangeTab: handleChangeSubscriptionsTab
|
|
55892
55917
|
}
|
|
55893
55918
|
),
|
|
55894
|
-
/* @__PURE__ */
|
|
55895
|
-
/* @__PURE__ */
|
|
55919
|
+
/* @__PURE__ */ jsx176(EuiSpacer18, { size: "xxl" }),
|
|
55920
|
+
/* @__PURE__ */ jsx176(
|
|
55896
55921
|
WfoSubscriptionsList,
|
|
55897
55922
|
{
|
|
55898
55923
|
hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -55906,13 +55931,13 @@ var WfoSubscriptionsListPage = () => {
|
|
|
55906
55931
|
|
|
55907
55932
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55908
55933
|
import { useContext as useContext14, useEffect as useEffect26, useState as useState40 } from "react";
|
|
55909
|
-
import { useTranslations as
|
|
55934
|
+
import { useTranslations as useTranslations58 } from "next-intl";
|
|
55910
55935
|
import Link8 from "next/link";
|
|
55911
55936
|
import { useRouter as useRouter13 } from "next/router";
|
|
55912
55937
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
55913
55938
|
import {
|
|
55914
55939
|
EuiButton as EuiButton13,
|
|
55915
|
-
EuiFlexGroup as
|
|
55940
|
+
EuiFlexGroup as EuiFlexGroup23,
|
|
55916
55941
|
EuiFlexItem as EuiFlexItem29,
|
|
55917
55942
|
EuiPageHeader as EuiPageHeader5,
|
|
55918
55943
|
EuiSpacer as EuiSpacer19
|
|
@@ -55981,11 +56006,11 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
55981
56006
|
};
|
|
55982
56007
|
|
|
55983
56008
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
55984
|
-
import { Fragment as Fragment45, jsx as
|
|
56009
|
+
import { Fragment as Fragment45, jsx as jsx177, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
55985
56010
|
var WfoTasksListPage = () => {
|
|
55986
56011
|
var _a;
|
|
55987
56012
|
const router = useRouter13();
|
|
55988
|
-
const t =
|
|
56013
|
+
const t = useTranslations58("tasks.page");
|
|
55989
56014
|
const [activeTab, setActiveTab] = useQueryParam3(
|
|
55990
56015
|
"activeTab",
|
|
55991
56016
|
withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
|
|
@@ -56038,7 +56063,7 @@ var WfoTasksListPage = () => {
|
|
|
56038
56063
|
workflowName: {
|
|
56039
56064
|
field: "workflowName",
|
|
56040
56065
|
name: t("taskName"),
|
|
56041
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56066
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx177(Link8, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
56042
56067
|
},
|
|
56043
56068
|
lastStep: defaultTableColumns.lastStep,
|
|
56044
56069
|
lastStatus: defaultTableColumns.lastStatus,
|
|
@@ -56054,21 +56079,21 @@ var WfoTasksListPage = () => {
|
|
|
56054
56079
|
startedAt: defaultTableColumns.startedAt,
|
|
56055
56080
|
lastModifiedAt: defaultTableColumns.lastModifiedAt
|
|
56056
56081
|
});
|
|
56057
|
-
return /* @__PURE__ */
|
|
56058
|
-
/* @__PURE__ */
|
|
56059
|
-
/* @__PURE__ */
|
|
56060
|
-
/* @__PURE__ */
|
|
56061
|
-
/* @__PURE__ */
|
|
56082
|
+
return /* @__PURE__ */ jsxs99(Fragment45, { children: [
|
|
56083
|
+
/* @__PURE__ */ jsx177(EuiSpacer19, {}),
|
|
56084
|
+
/* @__PURE__ */ jsxs99(EuiFlexGroup23, { children: [
|
|
56085
|
+
/* @__PURE__ */ jsx177(EuiFlexItem29, { children: /* @__PURE__ */ jsx177(EuiPageHeader5, { pageTitle: "Tasks" }) }),
|
|
56086
|
+
/* @__PURE__ */ jsx177(EuiFlexItem29, { children: /* @__PURE__ */ jsxs99(EuiFlexGroup23, { justifyContent: "flexEnd", children: [
|
|
56062
56087
|
" ",
|
|
56063
|
-
/* @__PURE__ */
|
|
56088
|
+
/* @__PURE__ */ jsx177(
|
|
56064
56089
|
WfoIsAllowedToRender,
|
|
56065
56090
|
{
|
|
56066
56091
|
resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
|
|
56067
|
-
children: /* @__PURE__ */
|
|
56092
|
+
children: /* @__PURE__ */ jsx177(
|
|
56068
56093
|
EuiButton13,
|
|
56069
56094
|
{
|
|
56070
56095
|
onClick: handleRerunAllButtonClick,
|
|
56071
|
-
iconType: () => /* @__PURE__ */
|
|
56096
|
+
iconType: () => /* @__PURE__ */ jsx177(
|
|
56072
56097
|
WfoRefresh,
|
|
56073
56098
|
{
|
|
56074
56099
|
color: theme.colors.primaryText
|
|
@@ -56079,16 +56104,16 @@ var WfoTasksListPage = () => {
|
|
|
56079
56104
|
)
|
|
56080
56105
|
}
|
|
56081
56106
|
),
|
|
56082
|
-
/* @__PURE__ */
|
|
56107
|
+
/* @__PURE__ */ jsx177(
|
|
56083
56108
|
WfoIsAllowedToRender,
|
|
56084
56109
|
{
|
|
56085
56110
|
resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
|
|
56086
|
-
children: /* @__PURE__ */
|
|
56111
|
+
children: /* @__PURE__ */ jsx177(WfoStartTaskButtonComboBox, {})
|
|
56087
56112
|
}
|
|
56088
56113
|
)
|
|
56089
56114
|
] }) })
|
|
56090
56115
|
] }),
|
|
56091
|
-
/* @__PURE__ */
|
|
56116
|
+
/* @__PURE__ */ jsx177(
|
|
56092
56117
|
WfoFilterTabs,
|
|
56093
56118
|
{
|
|
56094
56119
|
tabs: defaultTasksListTabs,
|
|
@@ -56097,8 +56122,8 @@ var WfoTasksListPage = () => {
|
|
|
56097
56122
|
onChangeTab: handleChangeTasksListTab
|
|
56098
56123
|
}
|
|
56099
56124
|
),
|
|
56100
|
-
/* @__PURE__ */
|
|
56101
|
-
/* @__PURE__ */
|
|
56125
|
+
/* @__PURE__ */ jsx177(EuiSpacer19, { size: "xxl" }),
|
|
56126
|
+
/* @__PURE__ */ jsx177(
|
|
56102
56127
|
WfoProcessesList,
|
|
56103
56128
|
{
|
|
56104
56129
|
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -56114,7 +56139,7 @@ var WfoTasksListPage = () => {
|
|
|
56114
56139
|
|
|
56115
56140
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
56116
56141
|
import { useEffect as useEffect27, useState as useState41 } from "react";
|
|
56117
|
-
import { useTranslations as
|
|
56142
|
+
import { useTranslations as useTranslations59 } from "next-intl";
|
|
56118
56143
|
import { useRouter as useRouter14 } from "next/router";
|
|
56119
56144
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
56120
56145
|
import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
@@ -56182,11 +56207,11 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
56182
56207
|
};
|
|
56183
56208
|
|
|
56184
56209
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
56185
|
-
import { Fragment as Fragment46, jsx as
|
|
56210
|
+
import { Fragment as Fragment46, jsx as jsx178, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
56186
56211
|
var WfoWorkflowsListPage = () => {
|
|
56187
56212
|
var _a;
|
|
56188
56213
|
const router = useRouter14();
|
|
56189
|
-
const t =
|
|
56214
|
+
const t = useTranslations59("workflows.index");
|
|
56190
56215
|
const [activeTab, setActiveTab] = useQueryParam4(
|
|
56191
56216
|
"activeTab",
|
|
56192
56217
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
@@ -56221,11 +56246,11 @@ var WfoWorkflowsListPage = () => {
|
|
|
56221
56246
|
router.replace(PATH_WORKFLOWS);
|
|
56222
56247
|
return null;
|
|
56223
56248
|
}
|
|
56224
|
-
return /* @__PURE__ */
|
|
56225
|
-
/* @__PURE__ */
|
|
56226
|
-
/* @__PURE__ */
|
|
56227
|
-
/* @__PURE__ */
|
|
56228
|
-
/* @__PURE__ */
|
|
56249
|
+
return /* @__PURE__ */ jsxs100(Fragment46, { children: [
|
|
56250
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, {}),
|
|
56251
|
+
/* @__PURE__ */ jsx178(EuiPageHeader6, { pageTitle: t("title") }),
|
|
56252
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, { size: "m" }),
|
|
56253
|
+
/* @__PURE__ */ jsx178(
|
|
56229
56254
|
WfoFilterTabs,
|
|
56230
56255
|
{
|
|
56231
56256
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -56234,8 +56259,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
56234
56259
|
onChangeTab: handleChangeWorkflowsListTab
|
|
56235
56260
|
}
|
|
56236
56261
|
),
|
|
56237
|
-
/* @__PURE__ */
|
|
56238
|
-
/* @__PURE__ */
|
|
56262
|
+
/* @__PURE__ */ jsx178(EuiSpacer20, { size: "xxl" }),
|
|
56263
|
+
/* @__PURE__ */ jsx178(
|
|
56239
56264
|
WfoProcessesList,
|
|
56240
56265
|
{
|
|
56241
56266
|
alwaysOnFilters,
|
|
@@ -56345,7 +56370,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
|
|
|
56345
56370
|
}));
|
|
56346
56371
|
|
|
56347
56372
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
56348
|
-
import { jsx as
|
|
56373
|
+
import { jsx as jsx179 } from "@emotion/react/jsx-runtime";
|
|
56349
56374
|
var WfoProcessesList = ({
|
|
56350
56375
|
alwaysOnFilters,
|
|
56351
56376
|
defaultHiddenColumns = [],
|
|
@@ -56355,15 +56380,15 @@ var WfoProcessesList = ({
|
|
|
56355
56380
|
overrideDefaultTableColumns
|
|
56356
56381
|
}) => {
|
|
56357
56382
|
var _a, _b;
|
|
56358
|
-
const t =
|
|
56359
|
-
const tError =
|
|
56383
|
+
const t = useTranslations60("processes.index");
|
|
56384
|
+
const tError = useTranslations60("errors");
|
|
56360
56385
|
const { showToastMessage } = useShowToastMessage();
|
|
56361
56386
|
const defaultTableColumns = {
|
|
56362
56387
|
workflowName: {
|
|
56363
56388
|
field: "workflowName",
|
|
56364
56389
|
name: t("workflowName"),
|
|
56365
56390
|
width: "20%",
|
|
56366
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
56391
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx179(Link9, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
|
|
56367
56392
|
},
|
|
56368
56393
|
lastStep: {
|
|
56369
56394
|
field: "lastStep",
|
|
@@ -56374,13 +56399,13 @@ var WfoProcessesList = ({
|
|
|
56374
56399
|
field: "lastStatus",
|
|
56375
56400
|
name: t("status"),
|
|
56376
56401
|
width: "100",
|
|
56377
|
-
render: (cellValue) => /* @__PURE__ */
|
|
56402
|
+
render: (cellValue) => /* @__PURE__ */ jsx179(WfoProcessStatusBadge, { processStatus: cellValue })
|
|
56378
56403
|
},
|
|
56379
56404
|
workflowTarget: {
|
|
56380
56405
|
field: "workflowTarget",
|
|
56381
56406
|
name: t("workflowTarget"),
|
|
56382
56407
|
width: "100",
|
|
56383
|
-
render: (target) => /* @__PURE__ */
|
|
56408
|
+
render: (target) => /* @__PURE__ */ jsx179(WfoWorkflowTargetBadge, { target })
|
|
56384
56409
|
},
|
|
56385
56410
|
tag: {
|
|
56386
56411
|
field: "tag",
|
|
@@ -56406,14 +56431,14 @@ var WfoProcessesList = ({
|
|
|
56406
56431
|
field: "subscriptions",
|
|
56407
56432
|
name: t("subscriptions"),
|
|
56408
56433
|
width: "15%",
|
|
56409
|
-
render: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56434
|
+
render: ({ page: subscriptions }) => /* @__PURE__ */ jsx179(
|
|
56410
56435
|
WfoProcessListSubscriptionsCell,
|
|
56411
56436
|
{
|
|
56412
56437
|
subscriptions,
|
|
56413
56438
|
numberOfSubscriptionsToRender: 1
|
|
56414
56439
|
}
|
|
56415
56440
|
),
|
|
56416
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
56441
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx179(
|
|
56417
56442
|
WfoProcessListSubscriptionsCell,
|
|
56418
56443
|
{
|
|
56419
56444
|
subscriptions
|
|
@@ -56435,14 +56460,14 @@ var WfoProcessesList = ({
|
|
|
56435
56460
|
field: "processId",
|
|
56436
56461
|
name: t("processId"),
|
|
56437
56462
|
width: "90",
|
|
56438
|
-
render: (value) => /* @__PURE__ */
|
|
56463
|
+
render: (value) => /* @__PURE__ */ jsx179(WfoFirstPartUUID, { UUID: value }),
|
|
56439
56464
|
renderDetails: (value) => value
|
|
56440
56465
|
},
|
|
56441
56466
|
startedAt: {
|
|
56442
56467
|
field: "startedAt",
|
|
56443
56468
|
name: t("started"),
|
|
56444
56469
|
width: "100",
|
|
56445
|
-
render: (value) => /* @__PURE__ */
|
|
56470
|
+
render: (value) => /* @__PURE__ */ jsx179(WfoDateTime, { dateOrIsoString: value }),
|
|
56446
56471
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56447
56472
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56448
56473
|
},
|
|
@@ -56450,7 +56475,7 @@ var WfoProcessesList = ({
|
|
|
56450
56475
|
field: "lastModifiedAt",
|
|
56451
56476
|
name: t("lastModified"),
|
|
56452
56477
|
width: "100",
|
|
56453
|
-
render: (value) => /* @__PURE__ */
|
|
56478
|
+
render: (value) => /* @__PURE__ */ jsx179(WfoDateTime, { dateOrIsoString: value }),
|
|
56454
56479
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56455
56480
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56456
56481
|
}
|
|
@@ -56480,7 +56505,7 @@ var WfoProcessesList = ({
|
|
|
56480
56505
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
56481
56506
|
getQueryVariablesForExport(processListQueryVars)
|
|
56482
56507
|
).unwrap();
|
|
56483
|
-
return /* @__PURE__ */
|
|
56508
|
+
return /* @__PURE__ */ jsx179(
|
|
56484
56509
|
WfoTableWithFilter,
|
|
56485
56510
|
{
|
|
56486
56511
|
queryString,
|
|
@@ -56544,14 +56569,14 @@ var getStyles16 = (theme) => {
|
|
|
56544
56569
|
};
|
|
56545
56570
|
|
|
56546
56571
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
56547
|
-
import { jsx as
|
|
56572
|
+
import { jsx as jsx180 } from "@emotion/react/jsx-runtime";
|
|
56548
56573
|
var WfoJsonCodeBlock = ({
|
|
56549
56574
|
data,
|
|
56550
56575
|
isBasicStyle = false
|
|
56551
56576
|
}) => {
|
|
56552
56577
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles16);
|
|
56553
56578
|
const json = JSON.stringify(data, null, 4);
|
|
56554
|
-
return /* @__PURE__ */
|
|
56579
|
+
return /* @__PURE__ */ jsx180(
|
|
56555
56580
|
EuiCodeBlock2,
|
|
56556
56581
|
{
|
|
56557
56582
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -56565,18 +56590,18 @@ var WfoJsonCodeBlock = ({
|
|
|
56565
56590
|
|
|
56566
56591
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
56567
56592
|
import { useState as useState42 } from "react";
|
|
56568
|
-
import { useTranslations as
|
|
56593
|
+
import { useTranslations as useTranslations61 } from "next-intl";
|
|
56569
56594
|
import {
|
|
56570
56595
|
EuiButton as EuiButton14,
|
|
56571
56596
|
EuiComboBox,
|
|
56572
56597
|
EuiPanel as EuiPanel7,
|
|
56573
56598
|
EuiSpacer as EuiSpacer21,
|
|
56574
|
-
EuiText as
|
|
56599
|
+
EuiText as EuiText38
|
|
56575
56600
|
} from "@elastic/eui";
|
|
56576
|
-
import { jsx as
|
|
56601
|
+
import { jsx as jsx181, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
56577
56602
|
var WfoFlushSettings = () => {
|
|
56578
56603
|
const [clearCache] = useClearCacheMutation();
|
|
56579
|
-
const t =
|
|
56604
|
+
const t = useTranslations61("settings.page");
|
|
56580
56605
|
const [selectedOptions, setSelected] = useState42(
|
|
56581
56606
|
[]
|
|
56582
56607
|
);
|
|
@@ -56608,7 +56633,7 @@ var WfoFlushSettings = () => {
|
|
|
56608
56633
|
);
|
|
56609
56634
|
});
|
|
56610
56635
|
};
|
|
56611
|
-
return /* @__PURE__ */
|
|
56636
|
+
return /* @__PURE__ */ jsxs101(
|
|
56612
56637
|
EuiPanel7,
|
|
56613
56638
|
{
|
|
56614
56639
|
hasShadow: false,
|
|
@@ -56616,9 +56641,9 @@ var WfoFlushSettings = () => {
|
|
|
56616
56641
|
paddingSize: "l",
|
|
56617
56642
|
style: { width: "50%" },
|
|
56618
56643
|
children: [
|
|
56619
|
-
/* @__PURE__ */
|
|
56620
|
-
/* @__PURE__ */
|
|
56621
|
-
/* @__PURE__ */
|
|
56644
|
+
/* @__PURE__ */ jsx181(EuiText38, { size: "s", children: /* @__PURE__ */ jsx181("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
56645
|
+
/* @__PURE__ */ jsx181(EuiSpacer21, { size: "m" }),
|
|
56646
|
+
/* @__PURE__ */ jsx181(
|
|
56622
56647
|
EuiComboBox,
|
|
56623
56648
|
{
|
|
56624
56649
|
"aria-label": "Flush settings",
|
|
@@ -56630,26 +56655,26 @@ var WfoFlushSettings = () => {
|
|
|
56630
56655
|
fullWidth: true
|
|
56631
56656
|
}
|
|
56632
56657
|
),
|
|
56633
|
-
/* @__PURE__ */
|
|
56634
|
-
/* @__PURE__ */
|
|
56658
|
+
/* @__PURE__ */ jsx181(EuiSpacer21, { size: "m" }),
|
|
56659
|
+
/* @__PURE__ */ jsx181(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
56635
56660
|
]
|
|
56636
56661
|
}
|
|
56637
56662
|
);
|
|
56638
56663
|
};
|
|
56639
56664
|
|
|
56640
56665
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
56641
|
-
import { useTranslations as
|
|
56666
|
+
import { useTranslations as useTranslations62 } from "next-intl";
|
|
56642
56667
|
import { EuiButton as EuiButton15 } from "@elastic/eui";
|
|
56643
|
-
import { jsx as
|
|
56668
|
+
import { jsx as jsx182 } from "@emotion/react/jsx-runtime";
|
|
56644
56669
|
var WfoEngineStatusButton = () => {
|
|
56645
56670
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
56646
56671
|
const { engineStatus } = data || {};
|
|
56647
56672
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
56648
|
-
const t =
|
|
56673
|
+
const t = useTranslations62("settings.page");
|
|
56649
56674
|
if (isLoading || isSettingEngineStatus) {
|
|
56650
|
-
return /* @__PURE__ */
|
|
56675
|
+
return /* @__PURE__ */ jsx182(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
|
|
56651
56676
|
}
|
|
56652
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
56677
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx182(
|
|
56653
56678
|
EuiButton15,
|
|
56654
56679
|
{
|
|
56655
56680
|
onClick: () => setEngineStatus(true),
|
|
@@ -56658,7 +56683,7 @@ var WfoEngineStatusButton = () => {
|
|
|
56658
56683
|
iconType: "pause",
|
|
56659
56684
|
children: t("pauseEngine")
|
|
56660
56685
|
}
|
|
56661
|
-
) : /* @__PURE__ */
|
|
56686
|
+
) : /* @__PURE__ */ jsx182(
|
|
56662
56687
|
EuiButton15,
|
|
56663
56688
|
{
|
|
56664
56689
|
onClick: () => setEngineStatus(false),
|
|
@@ -56671,17 +56696,17 @@ var WfoEngineStatusButton = () => {
|
|
|
56671
56696
|
};
|
|
56672
56697
|
|
|
56673
56698
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56674
|
-
import { useTranslations as
|
|
56675
|
-
import { EuiFlexItem as EuiFlexItem30, EuiPanel as EuiPanel8, EuiSpacer as EuiSpacer22, EuiText as
|
|
56699
|
+
import { useTranslations as useTranslations64 } from "next-intl";
|
|
56700
|
+
import { EuiFlexItem as EuiFlexItem30, EuiPanel as EuiPanel8, EuiSpacer as EuiSpacer22, EuiText as EuiText39 } from "@elastic/eui";
|
|
56676
56701
|
|
|
56677
56702
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
56678
|
-
import { useTranslations as
|
|
56703
|
+
import { useTranslations as useTranslations63 } from "next-intl";
|
|
56679
56704
|
import { EuiButton as EuiButton16 } from "@elastic/eui";
|
|
56680
|
-
import { jsx as
|
|
56705
|
+
import { jsx as jsx183 } from "@emotion/react/jsx-runtime";
|
|
56681
56706
|
var WfoResetTextSearchIndexButton = () => {
|
|
56682
56707
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
56683
|
-
const t =
|
|
56684
|
-
return /* @__PURE__ */
|
|
56708
|
+
const t = useTranslations63("settings.page");
|
|
56709
|
+
return /* @__PURE__ */ jsx183(
|
|
56685
56710
|
EuiButton16,
|
|
56686
56711
|
{
|
|
56687
56712
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -56692,11 +56717,11 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
56692
56717
|
};
|
|
56693
56718
|
|
|
56694
56719
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
56695
|
-
import { jsx as
|
|
56720
|
+
import { jsx as jsx184, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
56696
56721
|
var WfoModifySettings = () => {
|
|
56697
|
-
const t =
|
|
56698
|
-
return /* @__PURE__ */
|
|
56699
|
-
/* @__PURE__ */
|
|
56722
|
+
const t = useTranslations64("settings.page");
|
|
56723
|
+
return /* @__PURE__ */ jsxs102(EuiFlexItem30, { children: [
|
|
56724
|
+
/* @__PURE__ */ jsxs102(
|
|
56700
56725
|
EuiPanel8,
|
|
56701
56726
|
{
|
|
56702
56727
|
hasShadow: false,
|
|
@@ -56704,14 +56729,14 @@ var WfoModifySettings = () => {
|
|
|
56704
56729
|
paddingSize: "l",
|
|
56705
56730
|
css: { width: "50%" },
|
|
56706
56731
|
children: [
|
|
56707
|
-
/* @__PURE__ */
|
|
56708
|
-
/* @__PURE__ */
|
|
56709
|
-
/* @__PURE__ */
|
|
56732
|
+
/* @__PURE__ */ jsx184(EuiText39, { size: "s", children: /* @__PURE__ */ jsx184("h4", { children: t("resetTextSearchIndex") }) }),
|
|
56733
|
+
/* @__PURE__ */ jsx184(EuiSpacer22, { size: "m" }),
|
|
56734
|
+
/* @__PURE__ */ jsx184(WfoResetTextSearchIndexButton, {})
|
|
56710
56735
|
]
|
|
56711
56736
|
}
|
|
56712
56737
|
),
|
|
56713
|
-
/* @__PURE__ */
|
|
56714
|
-
/* @__PURE__ */
|
|
56738
|
+
/* @__PURE__ */ jsx184(EuiSpacer22, {}),
|
|
56739
|
+
/* @__PURE__ */ jsxs102(
|
|
56715
56740
|
EuiPanel8,
|
|
56716
56741
|
{
|
|
56717
56742
|
hasShadow: false,
|
|
@@ -56719,9 +56744,9 @@ var WfoModifySettings = () => {
|
|
|
56719
56744
|
paddingSize: "l",
|
|
56720
56745
|
css: { width: "50%" },
|
|
56721
56746
|
children: [
|
|
56722
|
-
/* @__PURE__ */
|
|
56723
|
-
/* @__PURE__ */
|
|
56724
|
-
/* @__PURE__ */
|
|
56747
|
+
/* @__PURE__ */ jsx184(EuiText39, { size: "s", children: /* @__PURE__ */ jsx184("h4", { children: t("modifyEngine") }) }),
|
|
56748
|
+
/* @__PURE__ */ jsx184(EuiSpacer22, { size: "m" }),
|
|
56749
|
+
/* @__PURE__ */ jsx184(WfoEngineStatusButton, {})
|
|
56725
56750
|
]
|
|
56726
56751
|
}
|
|
56727
56752
|
)
|
|
@@ -56729,22 +56754,22 @@ var WfoModifySettings = () => {
|
|
|
56729
56754
|
};
|
|
56730
56755
|
|
|
56731
56756
|
// src/components/WfoSettings/WfoStatus.tsx
|
|
56732
|
-
import { useTranslations as
|
|
56757
|
+
import { useTranslations as useTranslations65 } from "next-intl";
|
|
56733
56758
|
import {
|
|
56734
|
-
EuiFlexGroup as
|
|
56759
|
+
EuiFlexGroup as EuiFlexGroup24,
|
|
56735
56760
|
EuiFlexItem as EuiFlexItem31,
|
|
56736
56761
|
EuiPanel as EuiPanel9,
|
|
56737
56762
|
EuiSpacer as EuiSpacer23,
|
|
56738
|
-
EuiText as
|
|
56763
|
+
EuiText as EuiText40
|
|
56739
56764
|
} from "@elastic/eui";
|
|
56740
|
-
import { jsx as
|
|
56765
|
+
import { jsx as jsx185, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
56741
56766
|
var WfoStatus = () => {
|
|
56742
56767
|
const { theme } = useOrchestratorTheme();
|
|
56743
56768
|
const { data } = useGetEngineStatusQuery();
|
|
56744
56769
|
const { engineStatus, runningProcesses } = data || {};
|
|
56745
56770
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
56746
|
-
const t =
|
|
56747
|
-
return /* @__PURE__ */
|
|
56771
|
+
const t = useTranslations65("settings.page");
|
|
56772
|
+
return /* @__PURE__ */ jsxs103(
|
|
56748
56773
|
EuiPanel9,
|
|
56749
56774
|
{
|
|
56750
56775
|
hasShadow: false,
|
|
@@ -56752,21 +56777,21 @@ var WfoStatus = () => {
|
|
|
56752
56777
|
paddingSize: "l",
|
|
56753
56778
|
style: { width: "50%" },
|
|
56754
56779
|
children: [
|
|
56755
|
-
/* @__PURE__ */
|
|
56756
|
-
/* @__PURE__ */
|
|
56757
|
-
/* @__PURE__ */
|
|
56780
|
+
/* @__PURE__ */ jsxs103(EuiFlexGroup24, { children: [
|
|
56781
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx185(EuiText40, { size: "s", children: /* @__PURE__ */ jsx185("h4", { children: t("runningProcesses") }) }) }),
|
|
56782
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { grow: false, children: /* @__PURE__ */ jsx185(EuiText40, { size: "s", children: /* @__PURE__ */ jsx185("p", { children: runningProcesses || "-" }) }) })
|
|
56758
56783
|
] }),
|
|
56759
|
-
/* @__PURE__ */
|
|
56760
|
-
/* @__PURE__ */
|
|
56761
|
-
/* @__PURE__ */
|
|
56762
|
-
/* @__PURE__ */
|
|
56763
|
-
/* @__PURE__ */
|
|
56784
|
+
/* @__PURE__ */ jsx185(EuiSpacer23, { size: "m" }),
|
|
56785
|
+
/* @__PURE__ */ jsxs103(EuiFlexGroup24, { children: [
|
|
56786
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx185(EuiText40, { size: "s", children: /* @__PURE__ */ jsx185("h4", { children: t("engineStatus") }) }) }),
|
|
56787
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { grow: false, children: /* @__PURE__ */ jsxs103(EuiFlexGroup24, { gutterSize: "xs", children: [
|
|
56788
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { children: /* @__PURE__ */ jsx185(
|
|
56764
56789
|
WfoStatusDotIcon,
|
|
56765
56790
|
{
|
|
56766
56791
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
56767
56792
|
}
|
|
56768
56793
|
) }),
|
|
56769
|
-
/* @__PURE__ */
|
|
56794
|
+
/* @__PURE__ */ jsx185(EuiFlexItem31, { children: /* @__PURE__ */ jsx185(EuiText40, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx185("p", { children: engineStatus }) }) })
|
|
56770
56795
|
] }) })
|
|
56771
56796
|
] })
|
|
56772
56797
|
]
|
|
@@ -56776,7 +56801,7 @@ var WfoStatus = () => {
|
|
|
56776
56801
|
|
|
56777
56802
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
56778
56803
|
import React58 from "react";
|
|
56779
|
-
import { jsx as
|
|
56804
|
+
import { jsx as jsx186, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
56780
56805
|
var WfoErrorBoundary = class extends React58.Component {
|
|
56781
56806
|
constructor(props) {
|
|
56782
56807
|
super(props);
|
|
@@ -56793,10 +56818,10 @@ var WfoErrorBoundary = class extends React58.Component {
|
|
|
56793
56818
|
if (this.props.fallback) {
|
|
56794
56819
|
return this.props.fallback;
|
|
56795
56820
|
}
|
|
56796
|
-
return /* @__PURE__ */
|
|
56821
|
+
return /* @__PURE__ */ jsxs104("p", { children: [
|
|
56797
56822
|
"An unexpected error occurred, try to go back to the",
|
|
56798
56823
|
" ",
|
|
56799
|
-
/* @__PURE__ */
|
|
56824
|
+
/* @__PURE__ */ jsx186("a", { href: "/", children: "home page" })
|
|
56800
56825
|
] });
|
|
56801
56826
|
}
|
|
56802
56827
|
return this.props.children;
|
|
@@ -56804,7 +56829,7 @@ var WfoErrorBoundary = class extends React58.Component {
|
|
|
56804
56829
|
};
|
|
56805
56830
|
|
|
56806
56831
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
56807
|
-
import { EuiFlexGroup as
|
|
56832
|
+
import { EuiFlexGroup as EuiFlexGroup25 } from "@elastic/eui";
|
|
56808
56833
|
|
|
56809
56834
|
// src/components/WfoNoResults/styles.ts
|
|
56810
56835
|
import { css as css27 } from "@emotion/react";
|
|
@@ -56828,11 +56853,11 @@ var getStyles17 = (theme) => {
|
|
|
56828
56853
|
};
|
|
56829
56854
|
|
|
56830
56855
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
56831
|
-
import { jsxs as
|
|
56856
|
+
import { jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
|
|
56832
56857
|
var WfoNoResults = ({ text, icon }) => {
|
|
56833
56858
|
const { theme } = useOrchestratorTheme();
|
|
56834
56859
|
const { panelStyle } = getStyles17(theme);
|
|
56835
|
-
return /* @__PURE__ */
|
|
56860
|
+
return /* @__PURE__ */ jsxs105(EuiFlexGroup25, { css: panelStyle, children: [
|
|
56836
56861
|
icon,
|
|
56837
56862
|
" ",
|
|
56838
56863
|
text
|
|
@@ -56840,12 +56865,12 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
56840
56865
|
};
|
|
56841
56866
|
|
|
56842
56867
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
56843
|
-
import { useTranslations as
|
|
56868
|
+
import { useTranslations as useTranslations66 } from "next-intl";
|
|
56844
56869
|
import { useRouter as useRouter15 } from "next/router";
|
|
56845
|
-
import { jsx as
|
|
56870
|
+
import { jsx as jsx187 } from "@emotion/react/jsx-runtime";
|
|
56846
56871
|
var WfoStartTaskButtonComboBox = () => {
|
|
56847
56872
|
const router = useRouter15();
|
|
56848
|
-
const t =
|
|
56873
|
+
const t = useTranslations66("common");
|
|
56849
56874
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
56850
56875
|
const { data } = useGetTaskOptionsQuery();
|
|
56851
56876
|
const taskOptions = (data == null ? void 0 : data.startOptions) || [];
|
|
@@ -56865,7 +56890,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
56865
56890
|
});
|
|
56866
56891
|
}
|
|
56867
56892
|
});
|
|
56868
|
-
return /* @__PURE__ */
|
|
56893
|
+
return /* @__PURE__ */ jsx187(
|
|
56869
56894
|
WfoStartButtonComboBox,
|
|
56870
56895
|
{
|
|
56871
56896
|
buttonText: t("newTask"),
|
|
@@ -56895,10 +56920,10 @@ var getNumberOfColumns = (currentBreakpoint) => {
|
|
|
56895
56920
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
56896
56921
|
import {
|
|
56897
56922
|
EuiAvatar as EuiAvatar2,
|
|
56898
|
-
EuiFlexGroup as
|
|
56923
|
+
EuiFlexGroup as EuiFlexGroup26,
|
|
56899
56924
|
EuiFlexItem as EuiFlexItem32,
|
|
56900
56925
|
EuiPanel as EuiPanel10,
|
|
56901
|
-
EuiText as
|
|
56926
|
+
EuiText as EuiText41
|
|
56902
56927
|
} from "@elastic/eui";
|
|
56903
56928
|
|
|
56904
56929
|
// src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
|
|
@@ -56925,7 +56950,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
|
|
|
56925
56950
|
};
|
|
56926
56951
|
|
|
56927
56952
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
56928
|
-
import { jsx as
|
|
56953
|
+
import { jsx as jsx188, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
|
|
56929
56954
|
var WfoSummaryCardHeader = ({
|
|
56930
56955
|
text,
|
|
56931
56956
|
value,
|
|
@@ -56934,8 +56959,8 @@ var WfoSummaryCardHeader = ({
|
|
|
56934
56959
|
}) => {
|
|
56935
56960
|
const { theme } = useOrchestratorTheme();
|
|
56936
56961
|
const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
|
|
56937
|
-
return /* @__PURE__ */
|
|
56938
|
-
/* @__PURE__ */
|
|
56962
|
+
return /* @__PURE__ */ jsx188(EuiFlexItem32, { grow: 0, children: /* @__PURE__ */ jsx188(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs106(EuiFlexGroup26, { children: [
|
|
56963
|
+
/* @__PURE__ */ jsx188(
|
|
56939
56964
|
EuiAvatar2,
|
|
56940
56965
|
{
|
|
56941
56966
|
iconSize: "l",
|
|
@@ -56948,9 +56973,9 @@ var WfoSummaryCardHeader = ({
|
|
|
56948
56973
|
color: iconColor
|
|
56949
56974
|
}
|
|
56950
56975
|
),
|
|
56951
|
-
/* @__PURE__ */
|
|
56952
|
-
/* @__PURE__ */
|
|
56953
|
-
/* @__PURE__ */
|
|
56976
|
+
/* @__PURE__ */ jsxs106("div", { css: totalSectionStyle, children: [
|
|
56977
|
+
/* @__PURE__ */ jsx188(EuiText41, { color: "subdued", children: text }),
|
|
56978
|
+
/* @__PURE__ */ jsx188(EuiText41, { css: valueStyle, children: value })
|
|
56954
56979
|
] })
|
|
56955
56980
|
] }) }) });
|
|
56956
56981
|
};
|
|
@@ -56968,19 +56993,19 @@ import {
|
|
|
56968
56993
|
} from "@elastic/eui";
|
|
56969
56994
|
|
|
56970
56995
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
56971
|
-
import { EuiFlexGroup as
|
|
56996
|
+
import { EuiFlexGroup as EuiFlexGroup27, EuiFlexItem as EuiFlexItem33, EuiIcon as EuiIcon5, EuiTextColor } from "@elastic/eui";
|
|
56972
56997
|
|
|
56973
56998
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
56974
56999
|
import Link10 from "next/link";
|
|
56975
|
-
import { jsx as
|
|
57000
|
+
import { jsx as jsx189 } from "@emotion/react/jsx-runtime";
|
|
56976
57001
|
var WfoOptionalLink = ({
|
|
56977
57002
|
children,
|
|
56978
57003
|
href
|
|
56979
57004
|
}) => {
|
|
56980
57005
|
if (!href) {
|
|
56981
|
-
return /* @__PURE__ */
|
|
57006
|
+
return /* @__PURE__ */ jsx189("span", { children });
|
|
56982
57007
|
}
|
|
56983
|
-
return /* @__PURE__ */
|
|
57008
|
+
return /* @__PURE__ */ jsx189(Link10, { href, children });
|
|
56984
57009
|
};
|
|
56985
57010
|
|
|
56986
57011
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -57029,7 +57054,7 @@ var getWfoSummaryCardListStyles = (theme) => {
|
|
|
57029
57054
|
};
|
|
57030
57055
|
|
|
57031
57056
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
57032
|
-
import { jsx as
|
|
57057
|
+
import { jsx as jsx190, jsxs as jsxs107 } from "@emotion/react/jsx-runtime";
|
|
57033
57058
|
var WfoSummaryCardListItem = ({
|
|
57034
57059
|
title,
|
|
57035
57060
|
value,
|
|
@@ -57042,9 +57067,9 @@ var WfoSummaryCardListItem = ({
|
|
|
57042
57067
|
listItemSubtitleStyle,
|
|
57043
57068
|
listItemHighlightIconStyle
|
|
57044
57069
|
} = getWfoSummaryCardListStyles(theme);
|
|
57045
|
-
return /* @__PURE__ */
|
|
57046
|
-
/* @__PURE__ */
|
|
57047
|
-
/* @__PURE__ */
|
|
57070
|
+
return /* @__PURE__ */ jsx190(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs107(EuiFlexGroup27, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
57071
|
+
/* @__PURE__ */ jsxs107(EuiFlexItem33, { children: [
|
|
57072
|
+
/* @__PURE__ */ jsx190(
|
|
57048
57073
|
EuiTextColor,
|
|
57049
57074
|
{
|
|
57050
57075
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -57052,22 +57077,22 @@ var WfoSummaryCardListItem = ({
|
|
|
57052
57077
|
children: title
|
|
57053
57078
|
}
|
|
57054
57079
|
),
|
|
57055
|
-
/* @__PURE__ */
|
|
57080
|
+
/* @__PURE__ */ jsx190(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
57056
57081
|
] }),
|
|
57057
|
-
/* @__PURE__ */
|
|
57082
|
+
/* @__PURE__ */ jsx190(
|
|
57058
57083
|
EuiFlexItem33,
|
|
57059
57084
|
{
|
|
57060
57085
|
className: url ? "highlight-icon" : void 0,
|
|
57061
57086
|
grow: false,
|
|
57062
57087
|
css: listItemHighlightIconStyle,
|
|
57063
|
-
children: /* @__PURE__ */
|
|
57088
|
+
children: /* @__PURE__ */ jsx190(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
57064
57089
|
}
|
|
57065
57090
|
)
|
|
57066
57091
|
] }) });
|
|
57067
57092
|
};
|
|
57068
57093
|
|
|
57069
57094
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
57070
|
-
import { jsx as
|
|
57095
|
+
import { jsx as jsx191, jsxs as jsxs108 } from "@emotion/react/jsx-runtime";
|
|
57071
57096
|
var WfoSummaryCardList = ({
|
|
57072
57097
|
title,
|
|
57073
57098
|
items,
|
|
@@ -57077,7 +57102,7 @@ var WfoSummaryCardList = ({
|
|
|
57077
57102
|
const router = useRouter16();
|
|
57078
57103
|
const euiScrollBarStyle = useEuiScrollBar2();
|
|
57079
57104
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
57080
|
-
return /* @__PURE__ */
|
|
57105
|
+
return /* @__PURE__ */ jsx191(EuiFlexItem34, { children: /* @__PURE__ */ jsxs108(
|
|
57081
57106
|
EuiPanel11,
|
|
57082
57107
|
{
|
|
57083
57108
|
css: listContainerStyle,
|
|
@@ -57085,11 +57110,11 @@ var WfoSummaryCardList = ({
|
|
|
57085
57110
|
hasBorder: true,
|
|
57086
57111
|
paddingSize: "l",
|
|
57087
57112
|
children: [
|
|
57088
|
-
/* @__PURE__ */
|
|
57089
|
-
/* @__PURE__ */
|
|
57090
|
-
/* @__PURE__ */
|
|
57091
|
-
/* @__PURE__ */
|
|
57092
|
-
/* @__PURE__ */
|
|
57113
|
+
/* @__PURE__ */ jsxs108("div", { children: [
|
|
57114
|
+
/* @__PURE__ */ jsx191("p", { css: listHeaderStyle, children: title }),
|
|
57115
|
+
/* @__PURE__ */ jsx191(EuiSpacer24, { size: "m" }),
|
|
57116
|
+
/* @__PURE__ */ jsx191(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx191("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs108("div", { children: [
|
|
57117
|
+
/* @__PURE__ */ jsx191(
|
|
57093
57118
|
WfoSummaryCardListItem,
|
|
57094
57119
|
{
|
|
57095
57120
|
title: item.title,
|
|
@@ -57097,11 +57122,11 @@ var WfoSummaryCardList = ({
|
|
|
57097
57122
|
url: item.url
|
|
57098
57123
|
}
|
|
57099
57124
|
),
|
|
57100
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
57125
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx191(EuiHorizontalRule7, { margin: "none" })
|
|
57101
57126
|
] }, index)) }) })
|
|
57102
57127
|
] }),
|
|
57103
|
-
/* @__PURE__ */
|
|
57104
|
-
button && /* @__PURE__ */
|
|
57128
|
+
/* @__PURE__ */ jsx191(EuiSpacer24, { size: "m" }),
|
|
57129
|
+
button && /* @__PURE__ */ jsx191(
|
|
57105
57130
|
EuiButton17,
|
|
57106
57131
|
{
|
|
57107
57132
|
fullWidth: true,
|
|
@@ -57116,10 +57141,10 @@ var WfoSummaryCardList = ({
|
|
|
57116
57141
|
|
|
57117
57142
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
57118
57143
|
import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
|
|
57119
|
-
import { jsx as
|
|
57144
|
+
import { jsx as jsx192 } from "@emotion/react/jsx-runtime";
|
|
57120
57145
|
var WfoSummaryCards = ({ children }) => {
|
|
57121
57146
|
const currentBreakpoint = useCurrentEuiBreakpoint();
|
|
57122
|
-
return /* @__PURE__ */
|
|
57147
|
+
return /* @__PURE__ */ jsx192(
|
|
57123
57148
|
EuiFlexGrid2,
|
|
57124
57149
|
{
|
|
57125
57150
|
responsive: false,
|
|
@@ -57146,7 +57171,7 @@ var getWfoSummaryCardsStyles = (theme) => {
|
|
|
57146
57171
|
};
|
|
57147
57172
|
|
|
57148
57173
|
// src/components/WfoSummary/WfoSummaryCard.tsx
|
|
57149
|
-
import { jsx as
|
|
57174
|
+
import { jsx as jsx193, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
|
|
57150
57175
|
var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
|
|
57151
57176
|
SummaryCardStatus2["Success"] = "Success";
|
|
57152
57177
|
SummaryCardStatus2["Error"] = "Error";
|
|
@@ -57184,16 +57209,16 @@ var WfoSummaryCard = ({
|
|
|
57184
57209
|
};
|
|
57185
57210
|
}
|
|
57186
57211
|
};
|
|
57187
|
-
return /* @__PURE__ */
|
|
57188
|
-
/* @__PURE__ */
|
|
57212
|
+
return /* @__PURE__ */ jsxs109(EuiFlexItem35, { css: cardContainerStyle, children: [
|
|
57213
|
+
/* @__PURE__ */ jsx193(
|
|
57189
57214
|
WfoSummaryCardHeader,
|
|
57190
57215
|
__spreadValues({
|
|
57191
57216
|
text: headerTitle,
|
|
57192
57217
|
value: headerValue
|
|
57193
57218
|
}, getIconTypeAndColorForHeaderStatus(headerStatus))
|
|
57194
57219
|
),
|
|
57195
|
-
/* @__PURE__ */
|
|
57196
|
-
/* @__PURE__ */
|
|
57220
|
+
/* @__PURE__ */ jsx193(EuiSpacer25, { size: "m" }),
|
|
57221
|
+
/* @__PURE__ */ jsx193(
|
|
57197
57222
|
WfoSummaryCardList,
|
|
57198
57223
|
{
|
|
57199
57224
|
title: listTitle,
|
|
@@ -57206,7 +57231,7 @@ var WfoSummaryCard = ({
|
|
|
57206
57231
|
};
|
|
57207
57232
|
|
|
57208
57233
|
// src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
|
|
57209
|
-
import { useTranslations as
|
|
57234
|
+
import { useTranslations as useTranslations67 } from "next-intl";
|
|
57210
57235
|
|
|
57211
57236
|
// src/pages/startPage/queryVariables.ts
|
|
57212
57237
|
var baseQueryVariables = {
|
|
@@ -57290,15 +57315,15 @@ var productsSummaryQueryVariables = {
|
|
|
57290
57315
|
};
|
|
57291
57316
|
|
|
57292
57317
|
// src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
|
|
57293
|
-
import { jsx as
|
|
57318
|
+
import { jsx as jsx194 } from "@emotion/react/jsx-runtime";
|
|
57294
57319
|
var WfoActiveWorkflowsSummaryCard = () => {
|
|
57295
57320
|
var _a;
|
|
57296
|
-
const t =
|
|
57321
|
+
const t = useTranslations67("startPage.activeWorkflows");
|
|
57297
57322
|
const {
|
|
57298
57323
|
data: activeWorkflowsSummaryResponse,
|
|
57299
57324
|
isFetching: activeWorkflowsSummaryIsFetching
|
|
57300
57325
|
} = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
|
|
57301
|
-
return /* @__PURE__ */
|
|
57326
|
+
return /* @__PURE__ */ jsx194(
|
|
57302
57327
|
WfoSummaryCard,
|
|
57303
57328
|
{
|
|
57304
57329
|
headerTitle: t("headerTitle"),
|
|
@@ -57316,16 +57341,16 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
57316
57341
|
};
|
|
57317
57342
|
|
|
57318
57343
|
// src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
|
|
57319
|
-
import { useTranslations as
|
|
57320
|
-
import { jsx as
|
|
57344
|
+
import { useTranslations as useTranslations68 } from "next-intl";
|
|
57345
|
+
import { jsx as jsx195 } from "@emotion/react/jsx-runtime";
|
|
57321
57346
|
var WfoFailedTasksSummaryCard = () => {
|
|
57322
57347
|
var _a;
|
|
57323
|
-
const t =
|
|
57348
|
+
const t = useTranslations68("startPage.failedTasks");
|
|
57324
57349
|
const {
|
|
57325
57350
|
data: failedTasksSummaryResponse,
|
|
57326
57351
|
isFetching: failedTasksSummaryIsFetching
|
|
57327
57352
|
} = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
|
|
57328
|
-
return /* @__PURE__ */
|
|
57353
|
+
return /* @__PURE__ */ jsx195(
|
|
57329
57354
|
WfoSummaryCard,
|
|
57330
57355
|
{
|
|
57331
57356
|
headerTitle: t("headerTitle"),
|
|
@@ -57343,18 +57368,18 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
57343
57368
|
};
|
|
57344
57369
|
|
|
57345
57370
|
// src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
|
|
57346
|
-
import { useTranslations as
|
|
57347
|
-
import { jsx as
|
|
57371
|
+
import { useTranslations as useTranslations69 } from "next-intl";
|
|
57372
|
+
import { jsx as jsx196 } from "@emotion/react/jsx-runtime";
|
|
57348
57373
|
var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
57349
57374
|
var _a;
|
|
57350
|
-
const t =
|
|
57375
|
+
const t = useTranslations69("startPage.activeSubscriptions");
|
|
57351
57376
|
const {
|
|
57352
57377
|
data: subscriptionsSummaryResult,
|
|
57353
57378
|
isLoading: subscriptionsSummaryIsFetching
|
|
57354
57379
|
} = useGetSubscriptionSummaryListQuery(
|
|
57355
57380
|
subscriptionsListSummaryQueryVariables
|
|
57356
57381
|
);
|
|
57357
|
-
return /* @__PURE__ */
|
|
57382
|
+
return /* @__PURE__ */ jsx196(
|
|
57358
57383
|
WfoSummaryCard,
|
|
57359
57384
|
{
|
|
57360
57385
|
headerTitle: t("headerTitle"),
|
|
@@ -57372,18 +57397,18 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
57372
57397
|
};
|
|
57373
57398
|
|
|
57374
57399
|
// src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
|
|
57375
|
-
import { useTranslations as
|
|
57376
|
-
import { jsx as
|
|
57400
|
+
import { useTranslations as useTranslations70 } from "next-intl";
|
|
57401
|
+
import { jsx as jsx197 } from "@emotion/react/jsx-runtime";
|
|
57377
57402
|
var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
57378
57403
|
var _a;
|
|
57379
|
-
const t =
|
|
57404
|
+
const t = useTranslations70("startPage.outOfSyncSubscriptions");
|
|
57380
57405
|
const {
|
|
57381
57406
|
data: outOfSyncSubscriptionsSummaryResult,
|
|
57382
57407
|
isLoading: outOfSyncsubscriptionsSummaryIsFetching
|
|
57383
57408
|
} = useGetSubscriptionSummaryListQuery(
|
|
57384
57409
|
outOfSyncSubscriptionsListSummaryQueryVariables
|
|
57385
57410
|
);
|
|
57386
|
-
return /* @__PURE__ */
|
|
57411
|
+
return /* @__PURE__ */ jsx197(
|
|
57387
57412
|
WfoSummaryCard,
|
|
57388
57413
|
{
|
|
57389
57414
|
headerTitle: t("headerTitle"),
|
|
@@ -57404,20 +57429,20 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
57404
57429
|
};
|
|
57405
57430
|
|
|
57406
57431
|
// src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
|
|
57407
|
-
import { useTranslations as
|
|
57408
|
-
import { jsx as
|
|
57432
|
+
import { useTranslations as useTranslations71 } from "next-intl";
|
|
57433
|
+
import { jsx as jsx198 } from "@emotion/react/jsx-runtime";
|
|
57409
57434
|
var WfoMyWorkflowsSummaryCard = ({
|
|
57410
57435
|
username
|
|
57411
57436
|
}) => {
|
|
57412
57437
|
var _a;
|
|
57413
|
-
const t =
|
|
57438
|
+
const t = useTranslations71("startPage.myWorkflows");
|
|
57414
57439
|
const {
|
|
57415
57440
|
data: myWorkflowsSummaryResponse,
|
|
57416
57441
|
isFetching: myWorkflowsSummaryIsFetching
|
|
57417
57442
|
} = useGetProcessListSummaryQuery(
|
|
57418
57443
|
getMyWorkflowListSummaryQueryVariables(username)
|
|
57419
57444
|
);
|
|
57420
|
-
return /* @__PURE__ */
|
|
57445
|
+
return /* @__PURE__ */ jsx198(
|
|
57421
57446
|
WfoSummaryCard,
|
|
57422
57447
|
{
|
|
57423
57448
|
headerTitle: t("headerTitle"),
|
|
@@ -57438,11 +57463,11 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
57438
57463
|
};
|
|
57439
57464
|
|
|
57440
57465
|
// src/components/WfoSummary/WfoProductsSummaryCard.tsx
|
|
57441
|
-
import { useTranslations as
|
|
57442
|
-
import { jsx as
|
|
57466
|
+
import { useTranslations as useTranslations72 } from "next-intl";
|
|
57467
|
+
import { jsx as jsx199, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
|
|
57443
57468
|
var WfoProductsSummaryCard = () => {
|
|
57444
57469
|
var _a, _b, _c;
|
|
57445
|
-
const t =
|
|
57470
|
+
const t = useTranslations72("startPage.products");
|
|
57446
57471
|
const {
|
|
57447
57472
|
data: productsSummaryResult,
|
|
57448
57473
|
isLoading: productsSummaryIsFetching
|
|
@@ -57454,7 +57479,7 @@ var WfoProductsSummaryCard = () => {
|
|
|
57454
57479
|
}
|
|
57455
57480
|
).map((product) => ({
|
|
57456
57481
|
title: "",
|
|
57457
|
-
value: /* @__PURE__ */
|
|
57482
|
+
value: /* @__PURE__ */ jsxs110(
|
|
57458
57483
|
"div",
|
|
57459
57484
|
{
|
|
57460
57485
|
css: {
|
|
@@ -57462,13 +57487,13 @@ var WfoProductsSummaryCard = () => {
|
|
|
57462
57487
|
justifyContent: "space-between"
|
|
57463
57488
|
},
|
|
57464
57489
|
children: [
|
|
57465
|
-
/* @__PURE__ */
|
|
57466
|
-
/* @__PURE__ */
|
|
57490
|
+
/* @__PURE__ */ jsx199("div", { children: product.name }),
|
|
57491
|
+
/* @__PURE__ */ jsx199("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
57467
57492
|
]
|
|
57468
57493
|
}
|
|
57469
57494
|
)
|
|
57470
57495
|
}))) != null ? _b : [];
|
|
57471
|
-
return /* @__PURE__ */
|
|
57496
|
+
return /* @__PURE__ */ jsx199(
|
|
57472
57497
|
WfoSummaryCard,
|
|
57473
57498
|
{
|
|
57474
57499
|
headerTitle: t("headerTitle"),
|
|
@@ -57697,7 +57722,8 @@ var en_GB_default = {
|
|
|
57697
57722
|
lastUpdate: "Last update",
|
|
57698
57723
|
relatedSubscriptions: "Related subscriptions",
|
|
57699
57724
|
subscriptions: "{count, plural, =0 {0 subscriptions} =1 {1 subscription} other {# subscriptions}}",
|
|
57700
|
-
customer: "Customer"
|
|
57725
|
+
customer: "Customer",
|
|
57726
|
+
openWorkflowTaskInfo: "open workflow/task information in a new tab"
|
|
57701
57727
|
},
|
|
57702
57728
|
steps: {
|
|
57703
57729
|
taskSteps: "Task steps",
|
|
@@ -58103,7 +58129,8 @@ var nl_NL_default = {
|
|
|
58103
58129
|
lastUpdate: "Laatste update",
|
|
58104
58130
|
relatedSubscriptions: "Gerelateerde subscriptions",
|
|
58105
58131
|
subscriptions: "{count, plural, =0 {0 subscriptions} =1 {1 subscriptie} other {# subscriptions}}",
|
|
58106
|
-
customer: "Customer"
|
|
58132
|
+
customer: "Customer",
|
|
58133
|
+
openWorkflowTaskInfo: "open workflow-/taakinformatie op een nieuw tabblad"
|
|
58107
58134
|
},
|
|
58108
58135
|
steps: {
|
|
58109
58136
|
steps: "Workflow stappen",
|
|
@@ -58597,6 +58624,7 @@ export {
|
|
|
58597
58624
|
WfoProductBlockBadge,
|
|
58598
58625
|
WfoProductBlockKeyValueRow,
|
|
58599
58626
|
WfoProductBlocksPage,
|
|
58627
|
+
WfoProductInformationWithLink,
|
|
58600
58628
|
WfoProductStatusBadge,
|
|
58601
58629
|
WfoProductsPage,
|
|
58602
58630
|
WfoProductsSummaryCard,
|