@orchestrator-ui/orchestrator-ui-components 1.22.0 → 1.24.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 +7 -1
- package/.turbo/turbo-test.log +14 -13
- package/CHANGELOG.md +24 -0
- package/dist/index.d.ts +47 -6
- package/dist/index.js +790 -700
- package/package.json +1 -1
- package/src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx +24 -5
- package/src/components/WfoBadges/WfoWebsocketStatusBadge/styles.ts +22 -0
- package/src/components/WfoForms/CreateForm.tsx +1 -1
- package/src/components/WfoForms/UserInputForm.tsx +2 -2
- package/src/components/WfoForms/UserInputFormWizard.tsx +4 -1
- package/src/components/WfoForms/formFields/deprecated/ImsPortIdField.tsx +55 -49
- package/src/components/WfoForms/formFields/deprecated/VlanField.tsx +3 -2
- package/src/components/WfoSubscription/WfoSubscription.tsx +2 -2
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx +52 -38
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts +1 -2
- package/src/components/index.ts +0 -1
- package/src/contexts/OrchestratorConfigContext.tsx +8 -4
- package/src/icons/WfoBoltFill.tsx +2 -2
- package/src/icons/WfoBoltSlashFill.tsx +2 -2
- package/src/messages/en-GB.json +2 -1
- package/src/messages/nl-NL.json +2 -1
- package/src/pages/processes/WfoStartProcessPage.tsx +4 -2
- package/src/rtk/endpoints/customers.ts +41 -2
- package/src/rtk/endpoints/streamMessages.ts +5 -3
- package/src/rtk/storeProvider.tsx +4 -2
- package/src/types/forms.ts +1 -1
- package/src/types/types.ts +12 -0
- package/src/utils/getEnvironmentVariables.spec.ts +51 -0
- package/src/utils/getEnvironmentVariables.ts +33 -0
- package/src/utils/index.ts +1 -0
- package/src/components/WfoRouteChangeListener/WfoRouteChangeListener.tsx +0 -22
- package/src/components/WfoRouteChangeListener/index.tsx +0 -1
package/dist/index.js
CHANGED
|
@@ -12745,10 +12745,10 @@ var require_markup = __commonJS({
|
|
|
12745
12745
|
var require_css = __commonJS({
|
|
12746
12746
|
"../../node_modules/refractor/lang/css.js"(exports, module) {
|
|
12747
12747
|
"use strict";
|
|
12748
|
-
module.exports =
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
function
|
|
12748
|
+
module.exports = css37;
|
|
12749
|
+
css37.displayName = "css";
|
|
12750
|
+
css37.aliases = [];
|
|
12751
|
+
function css37(Prism) {
|
|
12752
12752
|
;
|
|
12753
12753
|
(function(Prism2) {
|
|
12754
12754
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -13015,7 +13015,7 @@ var require_core = __commonJS({
|
|
|
13015
13015
|
var decode = require_parse_entities();
|
|
13016
13016
|
var Prism = require_prism_core();
|
|
13017
13017
|
var markup = require_markup();
|
|
13018
|
-
var
|
|
13018
|
+
var css37 = require_css();
|
|
13019
13019
|
var clike = require_clike();
|
|
13020
13020
|
var js = require_javascript();
|
|
13021
13021
|
restore();
|
|
@@ -13031,7 +13031,7 @@ var require_core = __commonJS({
|
|
|
13031
13031
|
refract.registered = registered;
|
|
13032
13032
|
refract.listLanguages = listLanguages;
|
|
13033
13033
|
register(markup);
|
|
13034
|
-
register(
|
|
13034
|
+
register(css37);
|
|
13035
13035
|
register(clike);
|
|
13036
13036
|
register(js);
|
|
13037
13037
|
refract.util.encode = encode;
|
|
@@ -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 = jsx199;
|
|
23131
|
+
jsx199.displayName = "jsx";
|
|
23132
|
+
jsx199.aliases = [];
|
|
23133
|
+
function jsx199(Prism) {
|
|
23134
23134
|
;
|
|
23135
23135
|
(function(Prism2) {
|
|
23136
23136
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -34574,7 +34574,149 @@ var WfoBadge = (_a) => {
|
|
|
34574
34574
|
};
|
|
34575
34575
|
|
|
34576
34576
|
// src/hooks/useCheckEngineStatus.ts
|
|
34577
|
-
import { useTranslations } from "next-intl";
|
|
34577
|
+
import { useTranslations as useTranslations2 } from "next-intl";
|
|
34578
|
+
|
|
34579
|
+
// src/configuration/constants.ts
|
|
34580
|
+
var MAXIMUM_ITEMS_FOR_BULK_FETCHING = 1e3;
|
|
34581
|
+
var NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS = 1e6;
|
|
34582
|
+
var PROCESSES_ENDPOINT = "processes";
|
|
34583
|
+
var PROCESS_STATUS_COUNTS_ENDPOINT = `${PROCESSES_ENDPOINT}/status-counts`;
|
|
34584
|
+
var PROCESSES_RESUME_ALL_ENDPOINT = `resume-all`;
|
|
34585
|
+
var PROCESS_RESUME_ENDPOINT = `resume`;
|
|
34586
|
+
var PROCESS_ABORT_ENDPOINT = `abort`;
|
|
34587
|
+
var SETTINGS_ENDPOINT = "/settings";
|
|
34588
|
+
var SETTINGS_STATUS_ENDPOINT = `${SETTINGS_ENDPOINT}/status`;
|
|
34589
|
+
var SETTINGS_CACHE_NAMES_ENDPOINT = `${SETTINGS_ENDPOINT}/cache-names`;
|
|
34590
|
+
var SETTINGS_CACHE_ENDPOINT = `${SETTINGS_ENDPOINT}/cache`;
|
|
34591
|
+
var SETTINGS_SEARCH_INDEX_RESET_ENDPOINT = `${SETTINGS_ENDPOINT}/search-index/reset`;
|
|
34592
|
+
var IPAM_ENDPOINT = "surf/ipam";
|
|
34593
|
+
var IPAM_PREFIX_FILTERS_ENDPOINT = `${IPAM_ENDPOINT}/prefix_filters`;
|
|
34594
|
+
var IPAM_IP_BLOCKS_ENDPOINT = `${IPAM_ENDPOINT}/ip_blocks`;
|
|
34595
|
+
var IPAM_FREE_SUBNETS_ENDPOINT = `${IPAM_ENDPOINT}/free_subnets`;
|
|
34596
|
+
var SUBSCRIPTION_ACTIONS_ENDPOINT = "subscriptions/workflows";
|
|
34597
|
+
|
|
34598
|
+
// src/configuration/policy-resources.ts
|
|
34599
|
+
var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
34600
|
+
PolicyResource2["NAVIGATION_METADATA"] = "/orchestrator/metadata/";
|
|
34601
|
+
PolicyResource2["NAVIGATION_SETTINGS"] = "/orchestrator/settings/";
|
|
34602
|
+
PolicyResource2["NAVIGATION_SUBSCRIPTIONS"] = "/orchestrator/subscriptions/";
|
|
34603
|
+
PolicyResource2["NAVIGATION_TASKS"] = "/orchestrator/tasks/";
|
|
34604
|
+
PolicyResource2["NAVIGATION_WORKFLOWS"] = "/orchestrator/processes/";
|
|
34605
|
+
PolicyResource2["PROCESS_ABORT"] = "/orchestrator/processes/abort/";
|
|
34606
|
+
PolicyResource2["PROCESS_DELETE"] = "/orchestrator/processes/delete/";
|
|
34607
|
+
PolicyResource2["PROCESS_DETAILS"] = "/orchestrator/processes/details/";
|
|
34608
|
+
PolicyResource2["PROCESS_RELATED_SUBSCRIPTIONS"] = "/orchestrator/subscriptions/view/from-process";
|
|
34609
|
+
PolicyResource2["PROCESS_RETRY"] = "/orchestrator/processes/retry/";
|
|
34610
|
+
PolicyResource2["PROCESS_USER_INPUT"] = "/orchestrator/processes/user-input/";
|
|
34611
|
+
PolicyResource2["SUBSCRIPTION_CREATE"] = "/orchestrator/processes/create/process/menu";
|
|
34612
|
+
PolicyResource2["SUBSCRIPTION_MODIFY"] = "/orchestrator/subscriptions/modify/";
|
|
34613
|
+
PolicyResource2["SUBSCRIPTION_TERMINATE"] = "/orchestrator/subscriptions/terminate/";
|
|
34614
|
+
PolicyResource2["SUBSCRIPTION_VALIDATE"] = "/orchestrator/subscriptions/validate/";
|
|
34615
|
+
PolicyResource2["TASKS_CREATE"] = "/orchestrator/processes/create/task";
|
|
34616
|
+
PolicyResource2["TASKS_RETRY_ALL"] = "/orchestrator/processes/all-tasks/retry";
|
|
34617
|
+
return PolicyResource2;
|
|
34618
|
+
})(PolicyResource || {});
|
|
34619
|
+
|
|
34620
|
+
// src/types/types.ts
|
|
34621
|
+
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
34622
|
+
EngineStatus3["RUNNING"] = "RUNNING";
|
|
34623
|
+
EngineStatus3["PAUSING"] = "PAUSING";
|
|
34624
|
+
EngineStatus3["PAUSED"] = "PAUSED";
|
|
34625
|
+
EngineStatus3["UNKNOWN"] = "UNKNOWN";
|
|
34626
|
+
return EngineStatus3;
|
|
34627
|
+
})(EngineStatus || {});
|
|
34628
|
+
var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus2) => {
|
|
34629
|
+
ProductLifecycleStatus2["ACTIVE"] = "active";
|
|
34630
|
+
ProductLifecycleStatus2["PRE_PRODUCTION"] = "pre production";
|
|
34631
|
+
ProductLifecycleStatus2["PHASE_OUT"] = "phase out";
|
|
34632
|
+
ProductLifecycleStatus2["END_OF_LIFE"] = "end of life";
|
|
34633
|
+
return ProductLifecycleStatus2;
|
|
34634
|
+
})(ProductLifecycleStatus || {});
|
|
34635
|
+
var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
34636
|
+
BadgeType2["WORKFLOW"] = "workflow";
|
|
34637
|
+
BadgeType2["FIXED_INPUT"] = "fixed_input";
|
|
34638
|
+
BadgeType2["RESOURCE_TYPE"] = "resource_type";
|
|
34639
|
+
BadgeType2["PRODUCT_BLOCK"] = "product_block";
|
|
34640
|
+
BadgeType2["PRODUCT_BLOCK_TAG"] = "product_block_tag";
|
|
34641
|
+
BadgeType2["PRODUCT_TAG"] = "product_tag";
|
|
34642
|
+
BadgeType2["PRODUCT"] = "product";
|
|
34643
|
+
BadgeType2["TASK"] = "task";
|
|
34644
|
+
return BadgeType2;
|
|
34645
|
+
})(BadgeType || {});
|
|
34646
|
+
var WorkflowTarget = /* @__PURE__ */ ((WorkflowTarget2) => {
|
|
34647
|
+
WorkflowTarget2["CREATE"] = "create";
|
|
34648
|
+
WorkflowTarget2["MODIFY"] = "modify";
|
|
34649
|
+
WorkflowTarget2["TERMINATE"] = "terminate";
|
|
34650
|
+
WorkflowTarget2["SYSTEM"] = "system";
|
|
34651
|
+
return WorkflowTarget2;
|
|
34652
|
+
})(WorkflowTarget || {});
|
|
34653
|
+
var StepStatus = /* @__PURE__ */ ((StepStatus2) => {
|
|
34654
|
+
StepStatus2["FORM"] = "form";
|
|
34655
|
+
StepStatus2["SUCCESS"] = "success";
|
|
34656
|
+
StepStatus2["FAILED"] = "failed";
|
|
34657
|
+
StepStatus2["PENDING"] = "pending";
|
|
34658
|
+
StepStatus2["RUNNING"] = "running";
|
|
34659
|
+
StepStatus2["SKIPPED"] = "skipped";
|
|
34660
|
+
StepStatus2["SUSPEND"] = "suspend";
|
|
34661
|
+
StepStatus2["WAITING"] = "waiting";
|
|
34662
|
+
StepStatus2["AWAITING_CALLBACK"] = "awaiting_callback";
|
|
34663
|
+
StepStatus2["ABORT"] = "abort";
|
|
34664
|
+
StepStatus2["COMPLETE"] = "complete";
|
|
34665
|
+
return StepStatus2;
|
|
34666
|
+
})(StepStatus || {});
|
|
34667
|
+
var ProcessStatus = /* @__PURE__ */ ((ProcessStatus3) => {
|
|
34668
|
+
ProcessStatus3["CREATE"] = "create";
|
|
34669
|
+
ProcessStatus3["CREATED"] = "created";
|
|
34670
|
+
ProcessStatus3["RUNNING"] = "running";
|
|
34671
|
+
ProcessStatus3["SUSPENDED"] = "suspended";
|
|
34672
|
+
ProcessStatus3["WAITING"] = "waiting";
|
|
34673
|
+
ProcessStatus3["AWAITING_CALLBACK"] = "awaiting_callback";
|
|
34674
|
+
ProcessStatus3["ABORTED"] = "aborted";
|
|
34675
|
+
ProcessStatus3["FAILED"] = "failed";
|
|
34676
|
+
ProcessStatus3["RESUMED"] = "resumed";
|
|
34677
|
+
ProcessStatus3["API_UNAVAILABLE"] = "api_unavailable";
|
|
34678
|
+
ProcessStatus3["INCONSISTENT_DATA"] = "inconsistent_data";
|
|
34679
|
+
ProcessStatus3["COMPLETED"] = "completed";
|
|
34680
|
+
return ProcessStatus3;
|
|
34681
|
+
})(ProcessStatus || {});
|
|
34682
|
+
var ProcessDoneStatuses = [
|
|
34683
|
+
"completed" /* COMPLETED */,
|
|
34684
|
+
"aborted" /* ABORTED */
|
|
34685
|
+
];
|
|
34686
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
34687
|
+
SortOrder2["ASC"] = "ASC";
|
|
34688
|
+
SortOrder2["DESC"] = "DESC";
|
|
34689
|
+
return SortOrder2;
|
|
34690
|
+
})(SortOrder || {});
|
|
34691
|
+
var Locale = /* @__PURE__ */ ((Locale2) => {
|
|
34692
|
+
Locale2["enGB"] = "en-GB";
|
|
34693
|
+
Locale2["nlNL"] = "nl-NL";
|
|
34694
|
+
return Locale2;
|
|
34695
|
+
})(Locale || {});
|
|
34696
|
+
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
34697
|
+
SubscriptionStatus2["INITIAL"] = "initial";
|
|
34698
|
+
SubscriptionStatus2["ACTIVE"] = "active";
|
|
34699
|
+
SubscriptionStatus2["MIGRATING"] = "migrating";
|
|
34700
|
+
SubscriptionStatus2["DISABLED"] = "disabled";
|
|
34701
|
+
SubscriptionStatus2["TERMINATED"] = "terminated";
|
|
34702
|
+
SubscriptionStatus2["PROVISIONING"] = "provisioning";
|
|
34703
|
+
return SubscriptionStatus2;
|
|
34704
|
+
})(SubscriptionStatus || {});
|
|
34705
|
+
var ToastTypes = /* @__PURE__ */ ((ToastTypes2) => {
|
|
34706
|
+
ToastTypes2["ERROR"] = "ERROR";
|
|
34707
|
+
ToastTypes2["SUCCESS"] = "SUCCESS";
|
|
34708
|
+
return ToastTypes2;
|
|
34709
|
+
})(ToastTypes || {});
|
|
34710
|
+
var Environment = /* @__PURE__ */ ((Environment2) => {
|
|
34711
|
+
Environment2["DEVELOPMENT"] = "Development";
|
|
34712
|
+
Environment2["PRODUCTION"] = "Production";
|
|
34713
|
+
return Environment2;
|
|
34714
|
+
})(Environment || {});
|
|
34715
|
+
var ColorModes = /* @__PURE__ */ ((ColorModes2) => {
|
|
34716
|
+
ColorModes2["LIGHT"] = "LIGHT";
|
|
34717
|
+
ColorModes2["DARK"] = "DARK";
|
|
34718
|
+
return ColorModes2;
|
|
34719
|
+
})(ColorModes || {});
|
|
34578
34720
|
|
|
34579
34721
|
// src/rtk/api.ts
|
|
34580
34722
|
import { getSession, signOut } from "next-auth/react";
|
|
@@ -39795,7 +39937,7 @@ function buildHooks({
|
|
|
39795
39937
|
moduleOptions: {
|
|
39796
39938
|
batch,
|
|
39797
39939
|
hooks: {
|
|
39798
|
-
useDispatch:
|
|
39940
|
+
useDispatch: useDispatch3,
|
|
39799
39941
|
useSelector: useSelector3,
|
|
39800
39942
|
useStore
|
|
39801
39943
|
},
|
|
@@ -39844,7 +39986,7 @@ function buildHooks({
|
|
|
39844
39986
|
});
|
|
39845
39987
|
}
|
|
39846
39988
|
function usePrefetch(endpointName, defaultOptions) {
|
|
39847
|
-
const dispatch =
|
|
39989
|
+
const dispatch = useDispatch3();
|
|
39848
39990
|
const stableDefaultOptions = useShallowStableValue(defaultOptions);
|
|
39849
39991
|
return useCallback((arg, options) => dispatch(api.util.prefetch(endpointName, arg, __spreadValues(__spreadValues({}, stableDefaultOptions), options))), [endpointName, dispatch, stableDefaultOptions]);
|
|
39850
39992
|
}
|
|
@@ -39860,7 +40002,7 @@ function buildHooks({
|
|
|
39860
40002
|
const {
|
|
39861
40003
|
initiate
|
|
39862
40004
|
} = api.endpoints[name];
|
|
39863
|
-
const dispatch =
|
|
40005
|
+
const dispatch = useDispatch3();
|
|
39864
40006
|
const subscriptionSelectorsRef = useRef3();
|
|
39865
40007
|
if (!subscriptionSelectorsRef.current) {
|
|
39866
40008
|
const returnedValue = dispatch(api.internalActions.internal_getRTKQSubscriptions());
|
|
@@ -39959,7 +40101,7 @@ function buildHooks({
|
|
|
39959
40101
|
const {
|
|
39960
40102
|
initiate
|
|
39961
40103
|
} = api.endpoints[name];
|
|
39962
|
-
const dispatch =
|
|
40104
|
+
const dispatch = useDispatch3();
|
|
39963
40105
|
const [arg, setArg] = useState(UNINITIALIZED_VALUE);
|
|
39964
40106
|
const promiseRef = useRef3();
|
|
39965
40107
|
const stableSubscriptionOptions = useShallowStableValue({
|
|
@@ -40080,7 +40222,7 @@ function buildHooks({
|
|
|
40080
40222
|
select,
|
|
40081
40223
|
initiate
|
|
40082
40224
|
} = api.endpoints[name];
|
|
40083
|
-
const dispatch =
|
|
40225
|
+
const dispatch = useDispatch3();
|
|
40084
40226
|
const [promise, setPromise] = useState();
|
|
40085
40227
|
useEffect3(() => () => {
|
|
40086
40228
|
if (!(promise == null ? void 0 : promise.arg.fixedCacheKey)) {
|
|
@@ -40351,6 +40493,20 @@ var customersQuery = `query Customers {
|
|
|
40351
40493
|
}
|
|
40352
40494
|
}
|
|
40353
40495
|
}`;
|
|
40496
|
+
var customersWithSubscriptionCountQuery = `query Customers {
|
|
40497
|
+
customers(first: ${NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS}, after: 0) {
|
|
40498
|
+
page {
|
|
40499
|
+
customerId
|
|
40500
|
+
fullname
|
|
40501
|
+
shortcode
|
|
40502
|
+
subscriptions(filterBy: {field: "status", value: "${"active" /* ACTIVE */}"}) {
|
|
40503
|
+
pageInfo {
|
|
40504
|
+
totalItems
|
|
40505
|
+
}
|
|
40506
|
+
}
|
|
40507
|
+
}
|
|
40508
|
+
}
|
|
40509
|
+
}`;
|
|
40354
40510
|
var customerQuery = `query Customer(
|
|
40355
40511
|
$customerId: String!
|
|
40356
40512
|
$first: Int!
|
|
@@ -40368,6 +40524,12 @@ var customerQuery = `query Customer(
|
|
|
40368
40524
|
}`;
|
|
40369
40525
|
var customersApi = orchestratorApi.injectEndpoints({
|
|
40370
40526
|
endpoints: (build) => ({
|
|
40527
|
+
getCustomersWithSubscriptionCount: build.query({
|
|
40528
|
+
query: () => ({ document: customersWithSubscriptionCountQuery }),
|
|
40529
|
+
transformResponse: (response) => response.customers.page.filter(
|
|
40530
|
+
(customer) => customer.subscriptions.pageInfo.totalItems > 0
|
|
40531
|
+
)
|
|
40532
|
+
}),
|
|
40371
40533
|
getCustomers: build.query({
|
|
40372
40534
|
query: () => ({ document: customersQuery }),
|
|
40373
40535
|
transformResponse: (response) => {
|
|
@@ -40390,7 +40552,11 @@ var customersApi = orchestratorApi.injectEndpoints({
|
|
|
40390
40552
|
})
|
|
40391
40553
|
})
|
|
40392
40554
|
});
|
|
40393
|
-
var {
|
|
40555
|
+
var {
|
|
40556
|
+
useGetCustomersQuery,
|
|
40557
|
+
useGetCustomerQuery,
|
|
40558
|
+
useGetCustomersWithSubscriptionCountQuery
|
|
40559
|
+
} = customersApi;
|
|
40394
40560
|
|
|
40395
40561
|
// src/rtk/endpoints/inSync.ts
|
|
40396
40562
|
var inSyncApi = orchestratorApi.injectEndpoints({
|
|
@@ -40484,9 +40650,290 @@ var getOrchestratorStore = ({
|
|
|
40484
40650
|
};
|
|
40485
40651
|
|
|
40486
40652
|
// src/rtk/storeProvider.tsx
|
|
40487
|
-
import { useState as
|
|
40653
|
+
import { useState as useState5 } from "react";
|
|
40488
40654
|
import { Provider as Provider2 } from "react-redux";
|
|
40489
|
-
|
|
40655
|
+
|
|
40656
|
+
// src/contexts/ConfirmationDialogProvider.tsx
|
|
40657
|
+
import { createContext, useState as useState2 } from "react";
|
|
40658
|
+
|
|
40659
|
+
// src/components/confirmationDialog/WfoConfirmationDialog.tsx
|
|
40660
|
+
import { useTranslations } from "next-intl";
|
|
40661
|
+
import {
|
|
40662
|
+
EuiButton,
|
|
40663
|
+
EuiModal,
|
|
40664
|
+
EuiModalBody,
|
|
40665
|
+
EuiModalFooter,
|
|
40666
|
+
EuiModalHeader,
|
|
40667
|
+
EuiModalHeaderTitle,
|
|
40668
|
+
EuiOverlayMask
|
|
40669
|
+
} from "@elastic/eui";
|
|
40670
|
+
|
|
40671
|
+
// src/components/confirmationDialog/ConfirmationDialogStyling.ts
|
|
40672
|
+
import { css } from "@emotion/react";
|
|
40673
|
+
var confirmationDialogStyling = css`
|
|
40674
|
+
.dialog-content {
|
|
40675
|
+
h2 {
|
|
40676
|
+
margin: 10px 0;
|
|
40677
|
+
line-height: 22px;
|
|
40678
|
+
font-size: 16px;
|
|
40679
|
+
font-weight: normal;
|
|
40680
|
+
}
|
|
40681
|
+
}
|
|
40682
|
+
`;
|
|
40683
|
+
|
|
40684
|
+
// src/components/confirmationDialog/WfoConfirmationDialog.tsx
|
|
40685
|
+
import { jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
40686
|
+
function WfoConfirmationDialog({
|
|
40687
|
+
isOpen = false,
|
|
40688
|
+
cancel,
|
|
40689
|
+
confirm,
|
|
40690
|
+
question = "",
|
|
40691
|
+
leavePage = false,
|
|
40692
|
+
isError: isError2 = false
|
|
40693
|
+
}) {
|
|
40694
|
+
const t = useTranslations("confirmationDialog");
|
|
40695
|
+
const modalContent = /* @__PURE__ */ jsx2("div", { children: leavePage ? /* @__PURE__ */ jsxs(
|
|
40696
|
+
"section",
|
|
40697
|
+
{
|
|
40698
|
+
className: `dialog-content ${isError2 ? " error" : ""}`,
|
|
40699
|
+
children: [
|
|
40700
|
+
/* @__PURE__ */ jsx2("h2", { children: question || t("leavePage") }),
|
|
40701
|
+
!question && /* @__PURE__ */ jsx2("p", { children: t("leavePageSub") })
|
|
40702
|
+
]
|
|
40703
|
+
}
|
|
40704
|
+
) : /* @__PURE__ */ jsx2("section", { className: "dialog-content", children: /* @__PURE__ */ jsx2("h2", { children: question }) }) });
|
|
40705
|
+
let modal;
|
|
40706
|
+
if (isOpen) {
|
|
40707
|
+
modal = /* @__PURE__ */ jsx2(EuiOverlayMask, { children: /* @__PURE__ */ jsxs(
|
|
40708
|
+
EuiModal,
|
|
40709
|
+
{
|
|
40710
|
+
css: confirmationDialogStyling,
|
|
40711
|
+
className: "confirm-modal",
|
|
40712
|
+
onClose: leavePage ? confirm : cancel,
|
|
40713
|
+
initialFocus: "[name=popfirst]",
|
|
40714
|
+
children: [
|
|
40715
|
+
/* @__PURE__ */ jsx2(EuiModalHeader, { children: /* @__PURE__ */ jsx2(EuiModalHeaderTitle, { children: t("title") }) }),
|
|
40716
|
+
/* @__PURE__ */ jsx2(EuiModalBody, { children: modalContent }),
|
|
40717
|
+
/* @__PURE__ */ jsxs(EuiModalFooter, { children: [
|
|
40718
|
+
/* @__PURE__ */ jsx2(
|
|
40719
|
+
EuiButton,
|
|
40720
|
+
{
|
|
40721
|
+
onClick: cancel,
|
|
40722
|
+
id: "dialog-cancel",
|
|
40723
|
+
fill: false,
|
|
40724
|
+
children: leavePage ? t("leave") : t("cancel")
|
|
40725
|
+
}
|
|
40726
|
+
),
|
|
40727
|
+
/* @__PURE__ */ jsx2(EuiButton, { onClick: confirm, fill: true, id: "dialog-confirm", children: leavePage ? t("stay") : t("confirm") })
|
|
40728
|
+
] })
|
|
40729
|
+
]
|
|
40730
|
+
}
|
|
40731
|
+
) });
|
|
40732
|
+
}
|
|
40733
|
+
return /* @__PURE__ */ jsx2("div", { className: "confirmation-dialog-overlay", children: modal });
|
|
40734
|
+
}
|
|
40735
|
+
|
|
40736
|
+
// src/contexts/ConfirmationDialogProvider.tsx
|
|
40737
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
|
|
40738
|
+
var ConfirmationDialogContext = createContext({
|
|
40739
|
+
showConfirmDialog: () => {
|
|
40740
|
+
},
|
|
40741
|
+
closeConfirmDialog: () => {
|
|
40742
|
+
}
|
|
40743
|
+
});
|
|
40744
|
+
var ConfirmationDialogProvider = ConfirmationDialogContext.Provider;
|
|
40745
|
+
function ConfirmationDialogContextWrapper({ children }) {
|
|
40746
|
+
const [confirmationDialogOpen, setConfirmationDialogOpen] = useState2(false);
|
|
40747
|
+
const [state, setState] = useState2({
|
|
40748
|
+
confirmationDialogQuestion: "",
|
|
40749
|
+
confirmDialogAction: () => {
|
|
40750
|
+
},
|
|
40751
|
+
leavePage: false,
|
|
40752
|
+
isError: false
|
|
40753
|
+
});
|
|
40754
|
+
const closeConfirmDialog = () => setConfirmationDialogOpen(false);
|
|
40755
|
+
const showConfirmDialog = ({
|
|
40756
|
+
question,
|
|
40757
|
+
confirmAction,
|
|
40758
|
+
cancelAction,
|
|
40759
|
+
leavePage,
|
|
40760
|
+
isError: isError2
|
|
40761
|
+
}) => {
|
|
40762
|
+
setConfirmationDialogOpen(true);
|
|
40763
|
+
setState({
|
|
40764
|
+
confirmationDialogQuestion: question,
|
|
40765
|
+
leavePage: !!leavePage,
|
|
40766
|
+
isError: !!isError2,
|
|
40767
|
+
confirmDialogAction: (e, cancelConfirm = false) => {
|
|
40768
|
+
closeConfirmDialog();
|
|
40769
|
+
if (!cancelConfirm) {
|
|
40770
|
+
return confirmAction(e);
|
|
40771
|
+
}
|
|
40772
|
+
if (cancelAction) {
|
|
40773
|
+
return cancelAction(e);
|
|
40774
|
+
}
|
|
40775
|
+
}
|
|
40776
|
+
});
|
|
40777
|
+
};
|
|
40778
|
+
return /* @__PURE__ */ jsxs2(
|
|
40779
|
+
ConfirmationDialogProvider,
|
|
40780
|
+
{
|
|
40781
|
+
value: { showConfirmDialog, closeConfirmDialog },
|
|
40782
|
+
children: [
|
|
40783
|
+
/* @__PURE__ */ jsx3(
|
|
40784
|
+
WfoConfirmationDialog,
|
|
40785
|
+
{
|
|
40786
|
+
isOpen: confirmationDialogOpen,
|
|
40787
|
+
cancel: (e) => state.confirmDialogAction(e, true),
|
|
40788
|
+
confirm: state.confirmDialogAction,
|
|
40789
|
+
question: state.confirmationDialogQuestion,
|
|
40790
|
+
leavePage: state.leavePage,
|
|
40791
|
+
isError: state.isError
|
|
40792
|
+
}
|
|
40793
|
+
),
|
|
40794
|
+
children
|
|
40795
|
+
]
|
|
40796
|
+
}
|
|
40797
|
+
);
|
|
40798
|
+
}
|
|
40799
|
+
|
|
40800
|
+
// src/contexts/OrchestratorConfigContext.tsx
|
|
40801
|
+
import { createContext as createContext2 } from "react";
|
|
40802
|
+
|
|
40803
|
+
// src/hooks/useOrchestratorConfig.ts
|
|
40804
|
+
import { useState as useState3 } from "react";
|
|
40805
|
+
var useOrchestratorConfig = (initialOrchestratorConfig) => {
|
|
40806
|
+
const [orchestratorConfig] = useState3(initialOrchestratorConfig);
|
|
40807
|
+
return {
|
|
40808
|
+
orchestratorConfig
|
|
40809
|
+
};
|
|
40810
|
+
};
|
|
40811
|
+
|
|
40812
|
+
// src/contexts/OrchestratorConfigContext.tsx
|
|
40813
|
+
import { jsx as jsx4 } from "@emotion/react/jsx-runtime";
|
|
40814
|
+
var emptyOrchestratorConfig = {
|
|
40815
|
+
environmentName: "",
|
|
40816
|
+
graphqlEndpointCore: "",
|
|
40817
|
+
orchestratorApiBaseUrl: "",
|
|
40818
|
+
orchestratorWebsocketUrl: "",
|
|
40819
|
+
authActive: true,
|
|
40820
|
+
useWebSockets: false,
|
|
40821
|
+
useThemeToggle: false,
|
|
40822
|
+
showWorkflowInformationLink: false,
|
|
40823
|
+
workflowInformationLinkUrl: ""
|
|
40824
|
+
};
|
|
40825
|
+
var OrchestratorConfigContext = createContext2(
|
|
40826
|
+
emptyOrchestratorConfig
|
|
40827
|
+
);
|
|
40828
|
+
var OrchestratorConfigProvider = ({ initialOrchestratorConfig, children }) => {
|
|
40829
|
+
const { orchestratorConfig } = useOrchestratorConfig(
|
|
40830
|
+
initialOrchestratorConfig != null ? initialOrchestratorConfig : emptyOrchestratorConfig
|
|
40831
|
+
);
|
|
40832
|
+
return /* @__PURE__ */ jsx4(OrchestratorConfigContext.Provider, { value: orchestratorConfig, children });
|
|
40833
|
+
};
|
|
40834
|
+
|
|
40835
|
+
// src/contexts/PolicyContext.tsx
|
|
40836
|
+
import { createContext as createContext3 } from "react";
|
|
40837
|
+
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
40838
|
+
var PolicyContext = createContext3({
|
|
40839
|
+
isAllowedHandler: () => true
|
|
40840
|
+
});
|
|
40841
|
+
var PolicyContextProvider = ({
|
|
40842
|
+
isAllowedHandler,
|
|
40843
|
+
children
|
|
40844
|
+
}) => /* @__PURE__ */ jsx5(PolicyContext.Provider, { value: { isAllowedHandler }, children });
|
|
40845
|
+
|
|
40846
|
+
// src/contexts/TreeContext.tsx
|
|
40847
|
+
import * as React3 from "react";
|
|
40848
|
+
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
40849
|
+
var TreeContext = React3.createContext(null);
|
|
40850
|
+
var TreeProvider = ({ children }) => {
|
|
40851
|
+
const [depths, setDepths] = React3.useState([]);
|
|
40852
|
+
const [selectedIds, setSelectedIds] = React3.useState([0]);
|
|
40853
|
+
const [expandedIds, setExpandedIds] = React3.useState([0]);
|
|
40854
|
+
const toggleSelectedId = (id) => {
|
|
40855
|
+
if (selectedIds.includes(id)) {
|
|
40856
|
+
setSelectedIds(
|
|
40857
|
+
(prevSelectedIds) => prevSelectedIds.filter((selectedId) => selectedId !== id).sort((a, b) => a - b)
|
|
40858
|
+
);
|
|
40859
|
+
} else {
|
|
40860
|
+
setSelectedIds(
|
|
40861
|
+
(prevSelectedIds) => [...prevSelectedIds, id].sort((a, b) => a - b)
|
|
40862
|
+
);
|
|
40863
|
+
}
|
|
40864
|
+
};
|
|
40865
|
+
const selectAll = () => {
|
|
40866
|
+
setSelectedIds(Array.from(Array(depths.length).keys()));
|
|
40867
|
+
};
|
|
40868
|
+
const toggleExpandedId = (id) => {
|
|
40869
|
+
if (expandedIds.includes(id)) {
|
|
40870
|
+
setExpandedIds(
|
|
40871
|
+
(prevExpandedIds) => prevExpandedIds.filter((expandedId) => expandedId !== id)
|
|
40872
|
+
);
|
|
40873
|
+
} else {
|
|
40874
|
+
setExpandedIds((prevExpandedIds) => [...prevExpandedIds, id]);
|
|
40875
|
+
}
|
|
40876
|
+
};
|
|
40877
|
+
const expandAll = () => {
|
|
40878
|
+
setExpandedIds(Array.from(Array(depths.length).keys()));
|
|
40879
|
+
};
|
|
40880
|
+
const collapseAll = () => {
|
|
40881
|
+
setExpandedIds([0]);
|
|
40882
|
+
};
|
|
40883
|
+
const expandNode = (itemIndex) => {
|
|
40884
|
+
const initialDepth = depths[itemIndex];
|
|
40885
|
+
const expandedNodeIds = depths.map((depth, i) => {
|
|
40886
|
+
if (i === itemIndex || i > itemIndex && depth > initialDepth) {
|
|
40887
|
+
return i;
|
|
40888
|
+
}
|
|
40889
|
+
return -1;
|
|
40890
|
+
}).filter((nodeId) => nodeId !== -1);
|
|
40891
|
+
setExpandedIds((prevExpandedIds) => [
|
|
40892
|
+
...prevExpandedIds,
|
|
40893
|
+
...expandedNodeIds
|
|
40894
|
+
]);
|
|
40895
|
+
};
|
|
40896
|
+
const collapseNode = (itemIndex) => {
|
|
40897
|
+
const initialDepth = depths[itemIndex];
|
|
40898
|
+
const collapsedNodeIds = [];
|
|
40899
|
+
for (let i = itemIndex; i < depths.length; i++) {
|
|
40900
|
+
if (i === itemIndex)
|
|
40901
|
+
collapsedNodeIds.push(i);
|
|
40902
|
+
else if (depths[i] > initialDepth)
|
|
40903
|
+
collapsedNodeIds.push(i);
|
|
40904
|
+
else if (depths[i] <= initialDepth)
|
|
40905
|
+
break;
|
|
40906
|
+
}
|
|
40907
|
+
setExpandedIds(
|
|
40908
|
+
(prevExpandedIds) => prevExpandedIds.filter((id) => !collapsedNodeIds.includes(id))
|
|
40909
|
+
);
|
|
40910
|
+
};
|
|
40911
|
+
const resetSelection = () => {
|
|
40912
|
+
setSelectedIds([]);
|
|
40913
|
+
};
|
|
40914
|
+
return /* @__PURE__ */ jsx6(
|
|
40915
|
+
TreeContext.Provider,
|
|
40916
|
+
{
|
|
40917
|
+
value: {
|
|
40918
|
+
setDepths,
|
|
40919
|
+
selectedIds,
|
|
40920
|
+
expandedIds,
|
|
40921
|
+
toggleSelectedId,
|
|
40922
|
+
toggleExpandedId,
|
|
40923
|
+
expandNode,
|
|
40924
|
+
collapseNode,
|
|
40925
|
+
expandAll,
|
|
40926
|
+
collapseAll,
|
|
40927
|
+
resetSelection,
|
|
40928
|
+
selectAll
|
|
40929
|
+
},
|
|
40930
|
+
children
|
|
40931
|
+
}
|
|
40932
|
+
);
|
|
40933
|
+
};
|
|
40934
|
+
|
|
40935
|
+
// src/rtk/storeProvider.tsx
|
|
40936
|
+
import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
|
|
40490
40937
|
var StoreProvider = ({
|
|
40491
40938
|
initialOrchestratorConfig,
|
|
40492
40939
|
orchestratorComponentOverride,
|
|
@@ -40494,12 +40941,12 @@ var StoreProvider = ({
|
|
|
40494
40941
|
children
|
|
40495
40942
|
}) => {
|
|
40496
40943
|
const store = getOrchestratorStore({
|
|
40497
|
-
orchestratorConfig: initialOrchestratorConfig,
|
|
40944
|
+
orchestratorConfig: initialOrchestratorConfig != null ? initialOrchestratorConfig : emptyOrchestratorConfig,
|
|
40498
40945
|
orchestratorComponentOverride,
|
|
40499
40946
|
customApis
|
|
40500
40947
|
});
|
|
40501
|
-
const [orchestratorStore] =
|
|
40502
|
-
return /* @__PURE__ */
|
|
40948
|
+
const [orchestratorStore] = useState5(store);
|
|
40949
|
+
return /* @__PURE__ */ jsx7(Provider2, { store: orchestratorStore, children });
|
|
40503
40950
|
};
|
|
40504
40951
|
|
|
40505
40952
|
// src/rtk/endpoints/metadata/productBlocks.ts
|
|
@@ -40864,107 +41311,6 @@ var processApi2 = orchestratorApi.injectEndpoints({
|
|
|
40864
41311
|
});
|
|
40865
41312
|
var { useGetProcessListSummaryQuery } = processApi2;
|
|
40866
41313
|
|
|
40867
|
-
// src/types/types.ts
|
|
40868
|
-
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
40869
|
-
EngineStatus3["RUNNING"] = "RUNNING";
|
|
40870
|
-
EngineStatus3["PAUSING"] = "PAUSING";
|
|
40871
|
-
EngineStatus3["PAUSED"] = "PAUSED";
|
|
40872
|
-
EngineStatus3["UNKNOWN"] = "UNKNOWN";
|
|
40873
|
-
return EngineStatus3;
|
|
40874
|
-
})(EngineStatus || {});
|
|
40875
|
-
var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus2) => {
|
|
40876
|
-
ProductLifecycleStatus2["ACTIVE"] = "active";
|
|
40877
|
-
ProductLifecycleStatus2["PRE_PRODUCTION"] = "pre production";
|
|
40878
|
-
ProductLifecycleStatus2["PHASE_OUT"] = "phase out";
|
|
40879
|
-
ProductLifecycleStatus2["END_OF_LIFE"] = "end of life";
|
|
40880
|
-
return ProductLifecycleStatus2;
|
|
40881
|
-
})(ProductLifecycleStatus || {});
|
|
40882
|
-
var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
40883
|
-
BadgeType2["WORKFLOW"] = "workflow";
|
|
40884
|
-
BadgeType2["FIXED_INPUT"] = "fixed_input";
|
|
40885
|
-
BadgeType2["RESOURCE_TYPE"] = "resource_type";
|
|
40886
|
-
BadgeType2["PRODUCT_BLOCK"] = "product_block";
|
|
40887
|
-
BadgeType2["PRODUCT_BLOCK_TAG"] = "product_block_tag";
|
|
40888
|
-
BadgeType2["PRODUCT_TAG"] = "product_tag";
|
|
40889
|
-
BadgeType2["PRODUCT"] = "product";
|
|
40890
|
-
BadgeType2["TASK"] = "task";
|
|
40891
|
-
return BadgeType2;
|
|
40892
|
-
})(BadgeType || {});
|
|
40893
|
-
var WorkflowTarget = /* @__PURE__ */ ((WorkflowTarget2) => {
|
|
40894
|
-
WorkflowTarget2["CREATE"] = "create";
|
|
40895
|
-
WorkflowTarget2["MODIFY"] = "modify";
|
|
40896
|
-
WorkflowTarget2["TERMINATE"] = "terminate";
|
|
40897
|
-
WorkflowTarget2["SYSTEM"] = "system";
|
|
40898
|
-
return WorkflowTarget2;
|
|
40899
|
-
})(WorkflowTarget || {});
|
|
40900
|
-
var StepStatus = /* @__PURE__ */ ((StepStatus2) => {
|
|
40901
|
-
StepStatus2["FORM"] = "form";
|
|
40902
|
-
StepStatus2["SUCCESS"] = "success";
|
|
40903
|
-
StepStatus2["FAILED"] = "failed";
|
|
40904
|
-
StepStatus2["PENDING"] = "pending";
|
|
40905
|
-
StepStatus2["RUNNING"] = "running";
|
|
40906
|
-
StepStatus2["SKIPPED"] = "skipped";
|
|
40907
|
-
StepStatus2["SUSPEND"] = "suspend";
|
|
40908
|
-
StepStatus2["WAITING"] = "waiting";
|
|
40909
|
-
StepStatus2["AWAITING_CALLBACK"] = "awaiting_callback";
|
|
40910
|
-
StepStatus2["ABORT"] = "abort";
|
|
40911
|
-
StepStatus2["COMPLETE"] = "complete";
|
|
40912
|
-
return StepStatus2;
|
|
40913
|
-
})(StepStatus || {});
|
|
40914
|
-
var ProcessStatus = /* @__PURE__ */ ((ProcessStatus3) => {
|
|
40915
|
-
ProcessStatus3["CREATE"] = "create";
|
|
40916
|
-
ProcessStatus3["CREATED"] = "created";
|
|
40917
|
-
ProcessStatus3["RUNNING"] = "running";
|
|
40918
|
-
ProcessStatus3["SUSPENDED"] = "suspended";
|
|
40919
|
-
ProcessStatus3["WAITING"] = "waiting";
|
|
40920
|
-
ProcessStatus3["AWAITING_CALLBACK"] = "awaiting_callback";
|
|
40921
|
-
ProcessStatus3["ABORTED"] = "aborted";
|
|
40922
|
-
ProcessStatus3["FAILED"] = "failed";
|
|
40923
|
-
ProcessStatus3["RESUMED"] = "resumed";
|
|
40924
|
-
ProcessStatus3["API_UNAVAILABLE"] = "api_unavailable";
|
|
40925
|
-
ProcessStatus3["INCONSISTENT_DATA"] = "inconsistent_data";
|
|
40926
|
-
ProcessStatus3["COMPLETED"] = "completed";
|
|
40927
|
-
return ProcessStatus3;
|
|
40928
|
-
})(ProcessStatus || {});
|
|
40929
|
-
var ProcessDoneStatuses = [
|
|
40930
|
-
"completed" /* COMPLETED */,
|
|
40931
|
-
"aborted" /* ABORTED */
|
|
40932
|
-
];
|
|
40933
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
40934
|
-
SortOrder2["ASC"] = "ASC";
|
|
40935
|
-
SortOrder2["DESC"] = "DESC";
|
|
40936
|
-
return SortOrder2;
|
|
40937
|
-
})(SortOrder || {});
|
|
40938
|
-
var Locale = /* @__PURE__ */ ((Locale2) => {
|
|
40939
|
-
Locale2["enGB"] = "en-GB";
|
|
40940
|
-
Locale2["nlNL"] = "nl-NL";
|
|
40941
|
-
return Locale2;
|
|
40942
|
-
})(Locale || {});
|
|
40943
|
-
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
40944
|
-
SubscriptionStatus2["INITIAL"] = "initial";
|
|
40945
|
-
SubscriptionStatus2["ACTIVE"] = "active";
|
|
40946
|
-
SubscriptionStatus2["MIGRATING"] = "migrating";
|
|
40947
|
-
SubscriptionStatus2["DISABLED"] = "disabled";
|
|
40948
|
-
SubscriptionStatus2["TERMINATED"] = "terminated";
|
|
40949
|
-
SubscriptionStatus2["PROVISIONING"] = "provisioning";
|
|
40950
|
-
return SubscriptionStatus2;
|
|
40951
|
-
})(SubscriptionStatus || {});
|
|
40952
|
-
var ToastTypes = /* @__PURE__ */ ((ToastTypes2) => {
|
|
40953
|
-
ToastTypes2["ERROR"] = "ERROR";
|
|
40954
|
-
ToastTypes2["SUCCESS"] = "SUCCESS";
|
|
40955
|
-
return ToastTypes2;
|
|
40956
|
-
})(ToastTypes || {});
|
|
40957
|
-
var Environment = /* @__PURE__ */ ((Environment2) => {
|
|
40958
|
-
Environment2["DEVELOPMENT"] = "Development";
|
|
40959
|
-
Environment2["PRODUCTION"] = "Production";
|
|
40960
|
-
return Environment2;
|
|
40961
|
-
})(Environment || {});
|
|
40962
|
-
var ColorModes = /* @__PURE__ */ ((ColorModes2) => {
|
|
40963
|
-
ColorModes2["LIGHT"] = "LIGHT";
|
|
40964
|
-
ColorModes2["DARK"] = "DARK";
|
|
40965
|
-
return ColorModes2;
|
|
40966
|
-
})(ColorModes || {});
|
|
40967
|
-
|
|
40968
41314
|
// src/rtk/endpoints/processSteps.ts
|
|
40969
41315
|
var processStepsQuery = `
|
|
40970
41316
|
query ProcessSteps($processName: String!) {
|
|
@@ -41172,47 +41518,6 @@ var relatedSubscriptionsApi = orchestratorApi.injectEndpoints({
|
|
|
41172
41518
|
});
|
|
41173
41519
|
var { useGetRelatedSubscriptionsQuery } = relatedSubscriptionsApi;
|
|
41174
41520
|
|
|
41175
|
-
// src/configuration/constants.ts
|
|
41176
|
-
var MAXIMUM_ITEMS_FOR_BULK_FETCHING = 1e3;
|
|
41177
|
-
var NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS = 1e6;
|
|
41178
|
-
var PROCESSES_ENDPOINT = "processes";
|
|
41179
|
-
var PROCESS_STATUS_COUNTS_ENDPOINT = `${PROCESSES_ENDPOINT}/status-counts`;
|
|
41180
|
-
var PROCESSES_RESUME_ALL_ENDPOINT = `resume-all`;
|
|
41181
|
-
var PROCESS_RESUME_ENDPOINT = `resume`;
|
|
41182
|
-
var PROCESS_ABORT_ENDPOINT = `abort`;
|
|
41183
|
-
var SETTINGS_ENDPOINT = "/settings";
|
|
41184
|
-
var SETTINGS_STATUS_ENDPOINT = `${SETTINGS_ENDPOINT}/status`;
|
|
41185
|
-
var SETTINGS_CACHE_NAMES_ENDPOINT = `${SETTINGS_ENDPOINT}/cache-names`;
|
|
41186
|
-
var SETTINGS_CACHE_ENDPOINT = `${SETTINGS_ENDPOINT}/cache`;
|
|
41187
|
-
var SETTINGS_SEARCH_INDEX_RESET_ENDPOINT = `${SETTINGS_ENDPOINT}/search-index/reset`;
|
|
41188
|
-
var IPAM_ENDPOINT = "surf/ipam";
|
|
41189
|
-
var IPAM_PREFIX_FILTERS_ENDPOINT = `${IPAM_ENDPOINT}/prefix_filters`;
|
|
41190
|
-
var IPAM_IP_BLOCKS_ENDPOINT = `${IPAM_ENDPOINT}/ip_blocks`;
|
|
41191
|
-
var IPAM_FREE_SUBNETS_ENDPOINT = `${IPAM_ENDPOINT}/free_subnets`;
|
|
41192
|
-
var SUBSCRIPTION_ACTIONS_ENDPOINT = "subscriptions/workflows";
|
|
41193
|
-
|
|
41194
|
-
// src/configuration/policy-resources.ts
|
|
41195
|
-
var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
41196
|
-
PolicyResource2["NAVIGATION_METADATA"] = "/orchestrator/metadata/";
|
|
41197
|
-
PolicyResource2["NAVIGATION_SETTINGS"] = "/orchestrator/settings/";
|
|
41198
|
-
PolicyResource2["NAVIGATION_SUBSCRIPTIONS"] = "/orchestrator/subscriptions/";
|
|
41199
|
-
PolicyResource2["NAVIGATION_TASKS"] = "/orchestrator/tasks/";
|
|
41200
|
-
PolicyResource2["NAVIGATION_WORKFLOWS"] = "/orchestrator/processes/";
|
|
41201
|
-
PolicyResource2["PROCESS_ABORT"] = "/orchestrator/processes/abort/";
|
|
41202
|
-
PolicyResource2["PROCESS_DELETE"] = "/orchestrator/processes/delete/";
|
|
41203
|
-
PolicyResource2["PROCESS_DETAILS"] = "/orchestrator/processes/details/";
|
|
41204
|
-
PolicyResource2["PROCESS_RELATED_SUBSCRIPTIONS"] = "/orchestrator/subscriptions/view/from-process";
|
|
41205
|
-
PolicyResource2["PROCESS_RETRY"] = "/orchestrator/processes/retry/";
|
|
41206
|
-
PolicyResource2["PROCESS_USER_INPUT"] = "/orchestrator/processes/user-input/";
|
|
41207
|
-
PolicyResource2["SUBSCRIPTION_CREATE"] = "/orchestrator/processes/create/process/menu";
|
|
41208
|
-
PolicyResource2["SUBSCRIPTION_MODIFY"] = "/orchestrator/subscriptions/modify/";
|
|
41209
|
-
PolicyResource2["SUBSCRIPTION_TERMINATE"] = "/orchestrator/subscriptions/terminate/";
|
|
41210
|
-
PolicyResource2["SUBSCRIPTION_VALIDATE"] = "/orchestrator/subscriptions/validate/";
|
|
41211
|
-
PolicyResource2["TASKS_CREATE"] = "/orchestrator/processes/create/task";
|
|
41212
|
-
PolicyResource2["TASKS_RETRY_ALL"] = "/orchestrator/processes/all-tasks/retry";
|
|
41213
|
-
return PolicyResource2;
|
|
41214
|
-
})(PolicyResource || {});
|
|
41215
|
-
|
|
41216
41521
|
// src/rtk/endpoints/settings.ts
|
|
41217
41522
|
var statusApi = orchestratorApi.injectEndpoints({
|
|
41218
41523
|
endpoints: (build) => ({
|
|
@@ -41389,7 +41694,7 @@ var getToastMessage = (type, text, title) => {
|
|
|
41389
41694
|
// src/rtk/endpoints/streamMessages.ts
|
|
41390
41695
|
var getWebSocket = (url) => __async(void 0, null, function* () {
|
|
41391
41696
|
const session = yield getSession2();
|
|
41392
|
-
const token = (session == null ? void 0 : session.accessToken) ? [session == null ? void 0 : session.accessToken] :
|
|
41697
|
+
const token = (session == null ? void 0 : session.accessToken) ? ["base64.bearer.token", session == null ? void 0 : session.accessToken] : "";
|
|
41393
41698
|
return new WebSocket(url, token);
|
|
41394
41699
|
});
|
|
41395
41700
|
var PING_INTERVAL_MS = 45e3;
|
|
@@ -41411,7 +41716,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
41411
41716
|
const cleanUp = () => {
|
|
41412
41717
|
const message = getToastMessage(
|
|
41413
41718
|
"ERROR" /* ERROR */,
|
|
41414
|
-
"Connection to the server was lost. Please refresh the page to reconnect.",
|
|
41719
|
+
"Connection to the server was lost. Please click the websocket icon or refresh the page to reconnect.",
|
|
41415
41720
|
"WebSocket closed"
|
|
41416
41721
|
);
|
|
41417
41722
|
dispatch(addToastMessage(message));
|
|
@@ -41475,7 +41780,6 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
41475
41780
|
);
|
|
41476
41781
|
webSocket.onerror = (event) => {
|
|
41477
41782
|
console.error("WebSocket error", event);
|
|
41478
|
-
cleanUp();
|
|
41479
41783
|
};
|
|
41480
41784
|
webSocket.onclose = () => {
|
|
41481
41785
|
console.error("WebSocket closed");
|
|
@@ -41795,7 +42099,7 @@ var { useGetSubscriptionsDropdownOptionsQuery } = subscriptionsDropdownOptionsAp
|
|
|
41795
42099
|
var useCheckEngineStatus = () => {
|
|
41796
42100
|
const { data, isLoading, refetch } = useGetEngineStatusQuery();
|
|
41797
42101
|
const { engineStatus } = data || {};
|
|
41798
|
-
const tErrors =
|
|
42102
|
+
const tErrors = useTranslations2("errors");
|
|
41799
42103
|
const { showToastMessage } = useShowToastMessage();
|
|
41800
42104
|
const isEngineRunningNow = () => __async(void 0, null, function* () {
|
|
41801
42105
|
yield refetch();
|
|
@@ -41814,15 +42118,6 @@ var useCheckEngineStatus = () => {
|
|
|
41814
42118
|
};
|
|
41815
42119
|
};
|
|
41816
42120
|
|
|
41817
|
-
// src/hooks/useOrchestratorConfig.ts
|
|
41818
|
-
import { useState as useState3 } from "react";
|
|
41819
|
-
var useOrchestratorConfig = (initialOrchestratorConfig) => {
|
|
41820
|
-
const [orchestratorConfig] = useState3(initialOrchestratorConfig);
|
|
41821
|
-
return {
|
|
41822
|
-
orchestratorConfig
|
|
41823
|
-
};
|
|
41824
|
-
};
|
|
41825
|
-
|
|
41826
42121
|
// src/hooks/useOrchestratorTheme.ts
|
|
41827
42122
|
import {
|
|
41828
42123
|
shade,
|
|
@@ -41847,273 +42142,6 @@ var useOrchestratorTheme = () => {
|
|
|
41847
42142
|
// src/hooks/usePolicy.ts
|
|
41848
42143
|
import { useContext as useContext2 } from "react";
|
|
41849
42144
|
import { useRouter } from "next/router";
|
|
41850
|
-
|
|
41851
|
-
// src/contexts/ConfirmationDialogProvider.tsx
|
|
41852
|
-
import { createContext, useState as useState4 } from "react";
|
|
41853
|
-
|
|
41854
|
-
// src/components/confirmationDialog/WfoConfirmationDialog.tsx
|
|
41855
|
-
import { useTranslations as useTranslations2 } from "next-intl";
|
|
41856
|
-
import {
|
|
41857
|
-
EuiButton,
|
|
41858
|
-
EuiModal,
|
|
41859
|
-
EuiModalBody,
|
|
41860
|
-
EuiModalFooter,
|
|
41861
|
-
EuiModalHeader,
|
|
41862
|
-
EuiModalHeaderTitle,
|
|
41863
|
-
EuiOverlayMask
|
|
41864
|
-
} from "@elastic/eui";
|
|
41865
|
-
|
|
41866
|
-
// src/components/confirmationDialog/ConfirmationDialogStyling.ts
|
|
41867
|
-
import { css } from "@emotion/react";
|
|
41868
|
-
var confirmationDialogStyling = css`
|
|
41869
|
-
.dialog-content {
|
|
41870
|
-
h2 {
|
|
41871
|
-
margin: 10px 0;
|
|
41872
|
-
line-height: 22px;
|
|
41873
|
-
font-size: 16px;
|
|
41874
|
-
font-weight: normal;
|
|
41875
|
-
}
|
|
41876
|
-
}
|
|
41877
|
-
`;
|
|
41878
|
-
|
|
41879
|
-
// src/components/confirmationDialog/WfoConfirmationDialog.tsx
|
|
41880
|
-
import { jsx as jsx3, jsxs } from "@emotion/react/jsx-runtime";
|
|
41881
|
-
function WfoConfirmationDialog({
|
|
41882
|
-
isOpen = false,
|
|
41883
|
-
cancel,
|
|
41884
|
-
confirm,
|
|
41885
|
-
question = "",
|
|
41886
|
-
leavePage = false,
|
|
41887
|
-
isError: isError2 = false
|
|
41888
|
-
}) {
|
|
41889
|
-
const t = useTranslations2("confirmationDialog");
|
|
41890
|
-
const modalContent = /* @__PURE__ */ jsx3("div", { children: leavePage ? /* @__PURE__ */ jsxs(
|
|
41891
|
-
"section",
|
|
41892
|
-
{
|
|
41893
|
-
className: `dialog-content ${isError2 ? " error" : ""}`,
|
|
41894
|
-
children: [
|
|
41895
|
-
/* @__PURE__ */ jsx3("h2", { children: question || t("leavePage") }),
|
|
41896
|
-
!question && /* @__PURE__ */ jsx3("p", { children: t("leavePageSub") })
|
|
41897
|
-
]
|
|
41898
|
-
}
|
|
41899
|
-
) : /* @__PURE__ */ jsx3("section", { className: "dialog-content", children: /* @__PURE__ */ jsx3("h2", { children: question }) }) });
|
|
41900
|
-
let modal;
|
|
41901
|
-
if (isOpen) {
|
|
41902
|
-
modal = /* @__PURE__ */ jsx3(EuiOverlayMask, { children: /* @__PURE__ */ jsxs(
|
|
41903
|
-
EuiModal,
|
|
41904
|
-
{
|
|
41905
|
-
css: confirmationDialogStyling,
|
|
41906
|
-
className: "confirm-modal",
|
|
41907
|
-
onClose: leavePage ? confirm : cancel,
|
|
41908
|
-
initialFocus: "[name=popfirst]",
|
|
41909
|
-
children: [
|
|
41910
|
-
/* @__PURE__ */ jsx3(EuiModalHeader, { children: /* @__PURE__ */ jsx3(EuiModalHeaderTitle, { children: t("title") }) }),
|
|
41911
|
-
/* @__PURE__ */ jsx3(EuiModalBody, { children: modalContent }),
|
|
41912
|
-
/* @__PURE__ */ jsxs(EuiModalFooter, { children: [
|
|
41913
|
-
/* @__PURE__ */ jsx3(
|
|
41914
|
-
EuiButton,
|
|
41915
|
-
{
|
|
41916
|
-
onClick: cancel,
|
|
41917
|
-
id: "dialog-cancel",
|
|
41918
|
-
fill: false,
|
|
41919
|
-
children: leavePage ? t("leave") : t("cancel")
|
|
41920
|
-
}
|
|
41921
|
-
),
|
|
41922
|
-
/* @__PURE__ */ jsx3(EuiButton, { onClick: confirm, fill: true, id: "dialog-confirm", children: leavePage ? t("stay") : t("confirm") })
|
|
41923
|
-
] })
|
|
41924
|
-
]
|
|
41925
|
-
}
|
|
41926
|
-
) });
|
|
41927
|
-
}
|
|
41928
|
-
return /* @__PURE__ */ jsx3("div", { className: "confirmation-dialog-overlay", children: modal });
|
|
41929
|
-
}
|
|
41930
|
-
|
|
41931
|
-
// src/contexts/ConfirmationDialogProvider.tsx
|
|
41932
|
-
import { jsx as jsx4, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
|
|
41933
|
-
var ConfirmationDialogContext = createContext({
|
|
41934
|
-
showConfirmDialog: () => {
|
|
41935
|
-
},
|
|
41936
|
-
closeConfirmDialog: () => {
|
|
41937
|
-
}
|
|
41938
|
-
});
|
|
41939
|
-
var ConfirmationDialogProvider = ConfirmationDialogContext.Provider;
|
|
41940
|
-
function ConfirmationDialogContextWrapper({ children }) {
|
|
41941
|
-
const [confirmationDialogOpen, setConfirmationDialogOpen] = useState4(false);
|
|
41942
|
-
const [state, setState] = useState4({
|
|
41943
|
-
confirmationDialogQuestion: "",
|
|
41944
|
-
confirmDialogAction: () => {
|
|
41945
|
-
},
|
|
41946
|
-
leavePage: false,
|
|
41947
|
-
isError: false
|
|
41948
|
-
});
|
|
41949
|
-
const closeConfirmDialog = () => setConfirmationDialogOpen(false);
|
|
41950
|
-
const showConfirmDialog = ({
|
|
41951
|
-
question,
|
|
41952
|
-
confirmAction,
|
|
41953
|
-
cancelAction,
|
|
41954
|
-
leavePage,
|
|
41955
|
-
isError: isError2
|
|
41956
|
-
}) => {
|
|
41957
|
-
setConfirmationDialogOpen(true);
|
|
41958
|
-
setState({
|
|
41959
|
-
confirmationDialogQuestion: question,
|
|
41960
|
-
leavePage: !!leavePage,
|
|
41961
|
-
isError: !!isError2,
|
|
41962
|
-
confirmDialogAction: (e, cancelConfirm = false) => {
|
|
41963
|
-
closeConfirmDialog();
|
|
41964
|
-
if (!cancelConfirm) {
|
|
41965
|
-
return confirmAction(e);
|
|
41966
|
-
}
|
|
41967
|
-
if (cancelAction) {
|
|
41968
|
-
return cancelAction(e);
|
|
41969
|
-
}
|
|
41970
|
-
}
|
|
41971
|
-
});
|
|
41972
|
-
};
|
|
41973
|
-
return /* @__PURE__ */ jsxs2(
|
|
41974
|
-
ConfirmationDialogProvider,
|
|
41975
|
-
{
|
|
41976
|
-
value: { showConfirmDialog, closeConfirmDialog },
|
|
41977
|
-
children: [
|
|
41978
|
-
/* @__PURE__ */ jsx4(
|
|
41979
|
-
WfoConfirmationDialog,
|
|
41980
|
-
{
|
|
41981
|
-
isOpen: confirmationDialogOpen,
|
|
41982
|
-
cancel: (e) => state.confirmDialogAction(e, true),
|
|
41983
|
-
confirm: state.confirmDialogAction,
|
|
41984
|
-
question: state.confirmationDialogQuestion,
|
|
41985
|
-
leavePage: state.leavePage,
|
|
41986
|
-
isError: state.isError
|
|
41987
|
-
}
|
|
41988
|
-
),
|
|
41989
|
-
children
|
|
41990
|
-
]
|
|
41991
|
-
}
|
|
41992
|
-
);
|
|
41993
|
-
}
|
|
41994
|
-
|
|
41995
|
-
// src/contexts/OrchestratorConfigContext.tsx
|
|
41996
|
-
import { createContext as createContext2 } from "react";
|
|
41997
|
-
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
41998
|
-
var OrchestratorConfigContext = createContext2({
|
|
41999
|
-
environmentName: "",
|
|
42000
|
-
graphqlEndpointCore: "",
|
|
42001
|
-
orchestratorApiBaseUrl: "",
|
|
42002
|
-
orchestratorWebsocketUrl: "",
|
|
42003
|
-
authActive: true,
|
|
42004
|
-
useWebSockets: false,
|
|
42005
|
-
useThemeToggle: false,
|
|
42006
|
-
showWorkflowInformationLink: false,
|
|
42007
|
-
workflowInformationLinkUrl: ""
|
|
42008
|
-
});
|
|
42009
|
-
var OrchestratorConfigProvider = ({ initialOrchestratorConfig, children }) => {
|
|
42010
|
-
const { orchestratorConfig } = useOrchestratorConfig(
|
|
42011
|
-
initialOrchestratorConfig
|
|
42012
|
-
);
|
|
42013
|
-
return /* @__PURE__ */ jsx5(OrchestratorConfigContext.Provider, { value: orchestratorConfig, children });
|
|
42014
|
-
};
|
|
42015
|
-
|
|
42016
|
-
// src/contexts/PolicyContext.tsx
|
|
42017
|
-
import { createContext as createContext3 } from "react";
|
|
42018
|
-
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
42019
|
-
var PolicyContext = createContext3({
|
|
42020
|
-
isAllowedHandler: () => true
|
|
42021
|
-
});
|
|
42022
|
-
var PolicyContextProvider = ({
|
|
42023
|
-
isAllowedHandler,
|
|
42024
|
-
children
|
|
42025
|
-
}) => /* @__PURE__ */ jsx6(PolicyContext.Provider, { value: { isAllowedHandler }, children });
|
|
42026
|
-
|
|
42027
|
-
// src/contexts/TreeContext.tsx
|
|
42028
|
-
import * as React4 from "react";
|
|
42029
|
-
import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
|
|
42030
|
-
var TreeContext = React4.createContext(null);
|
|
42031
|
-
var TreeProvider = ({ children }) => {
|
|
42032
|
-
const [depths, setDepths] = React4.useState([]);
|
|
42033
|
-
const [selectedIds, setSelectedIds] = React4.useState([0]);
|
|
42034
|
-
const [expandedIds, setExpandedIds] = React4.useState([0]);
|
|
42035
|
-
const toggleSelectedId = (id) => {
|
|
42036
|
-
if (selectedIds.includes(id)) {
|
|
42037
|
-
setSelectedIds(
|
|
42038
|
-
(prevSelectedIds) => prevSelectedIds.filter((selectedId) => selectedId !== id).sort((a, b) => a - b)
|
|
42039
|
-
);
|
|
42040
|
-
} else {
|
|
42041
|
-
setSelectedIds(
|
|
42042
|
-
(prevSelectedIds) => [...prevSelectedIds, id].sort((a, b) => a - b)
|
|
42043
|
-
);
|
|
42044
|
-
}
|
|
42045
|
-
};
|
|
42046
|
-
const selectAll = () => {
|
|
42047
|
-
setSelectedIds(Array.from(Array(depths.length).keys()));
|
|
42048
|
-
};
|
|
42049
|
-
const toggleExpandedId = (id) => {
|
|
42050
|
-
if (expandedIds.includes(id)) {
|
|
42051
|
-
setExpandedIds(
|
|
42052
|
-
(prevExpandedIds) => prevExpandedIds.filter((expandedId) => expandedId !== id)
|
|
42053
|
-
);
|
|
42054
|
-
} else {
|
|
42055
|
-
setExpandedIds((prevExpandedIds) => [...prevExpandedIds, id]);
|
|
42056
|
-
}
|
|
42057
|
-
};
|
|
42058
|
-
const expandAll = () => {
|
|
42059
|
-
setExpandedIds(Array.from(Array(depths.length).keys()));
|
|
42060
|
-
};
|
|
42061
|
-
const collapseAll = () => {
|
|
42062
|
-
setExpandedIds([0]);
|
|
42063
|
-
};
|
|
42064
|
-
const expandNode = (itemIndex) => {
|
|
42065
|
-
const initialDepth = depths[itemIndex];
|
|
42066
|
-
const expandedNodeIds = depths.map((depth, i) => {
|
|
42067
|
-
if (i === itemIndex || i > itemIndex && depth > initialDepth) {
|
|
42068
|
-
return i;
|
|
42069
|
-
}
|
|
42070
|
-
return -1;
|
|
42071
|
-
}).filter((nodeId) => nodeId !== -1);
|
|
42072
|
-
setExpandedIds((prevExpandedIds) => [
|
|
42073
|
-
...prevExpandedIds,
|
|
42074
|
-
...expandedNodeIds
|
|
42075
|
-
]);
|
|
42076
|
-
};
|
|
42077
|
-
const collapseNode = (itemIndex) => {
|
|
42078
|
-
const initialDepth = depths[itemIndex];
|
|
42079
|
-
const collapsedNodeIds = [];
|
|
42080
|
-
for (let i = itemIndex; i < depths.length; i++) {
|
|
42081
|
-
if (i === itemIndex)
|
|
42082
|
-
collapsedNodeIds.push(i);
|
|
42083
|
-
else if (depths[i] > initialDepth)
|
|
42084
|
-
collapsedNodeIds.push(i);
|
|
42085
|
-
else if (depths[i] <= initialDepth)
|
|
42086
|
-
break;
|
|
42087
|
-
}
|
|
42088
|
-
setExpandedIds(
|
|
42089
|
-
(prevExpandedIds) => prevExpandedIds.filter((id) => !collapsedNodeIds.includes(id))
|
|
42090
|
-
);
|
|
42091
|
-
};
|
|
42092
|
-
const resetSelection = () => {
|
|
42093
|
-
setSelectedIds([]);
|
|
42094
|
-
};
|
|
42095
|
-
return /* @__PURE__ */ jsx7(
|
|
42096
|
-
TreeContext.Provider,
|
|
42097
|
-
{
|
|
42098
|
-
value: {
|
|
42099
|
-
setDepths,
|
|
42100
|
-
selectedIds,
|
|
42101
|
-
expandedIds,
|
|
42102
|
-
toggleSelectedId,
|
|
42103
|
-
toggleExpandedId,
|
|
42104
|
-
expandNode,
|
|
42105
|
-
collapseNode,
|
|
42106
|
-
expandAll,
|
|
42107
|
-
collapseAll,
|
|
42108
|
-
resetSelection,
|
|
42109
|
-
selectAll
|
|
42110
|
-
},
|
|
42111
|
-
children
|
|
42112
|
-
}
|
|
42113
|
-
);
|
|
42114
|
-
};
|
|
42115
|
-
|
|
42116
|
-
// src/hooks/usePolicy.ts
|
|
42117
42145
|
var usePolicy = () => {
|
|
42118
42146
|
const { isAllowedHandler } = useContext2(PolicyContext);
|
|
42119
42147
|
const router = useRouter();
|
|
@@ -42820,9 +42848,9 @@ var WfoBoltFill = ({
|
|
|
42820
42848
|
children: /* @__PURE__ */ jsx20("g", { id: "icon/bolt-fill", fill: color, children: /* @__PURE__ */ jsx20(
|
|
42821
42849
|
"path",
|
|
42822
42850
|
{
|
|
42823
|
-
|
|
42851
|
+
fillRule: "evenodd",
|
|
42824
42852
|
d: "M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z",
|
|
42825
|
-
|
|
42853
|
+
clipRule: "evenodd"
|
|
42826
42854
|
}
|
|
42827
42855
|
) })
|
|
42828
42856
|
}
|
|
@@ -42860,8 +42888,8 @@ var WfoBoltSlashFill = ({
|
|
|
42860
42888
|
children: /* @__PURE__ */ jsx21("g", { id: "icon/bolt-slash-fill", fill: color, children: /* @__PURE__ */ jsx21(
|
|
42861
42889
|
"path",
|
|
42862
42890
|
{
|
|
42863
|
-
|
|
42864
|
-
|
|
42891
|
+
strokeLinecap: "round",
|
|
42892
|
+
strokeLinejoin: "round",
|
|
42865
42893
|
d: "M11.412 15.655 9.75 21.75l3.745-4.012M9.257 13.5H3.75l2.659-2.849m2.048-2.194L14.25 2.25 12 10.5h8.25l-4.707 5.043M8.457 8.457 3 3m5.457 5.457 7.086 7.086m0 0L21 21"
|
|
42866
42894
|
}
|
|
42867
42895
|
) })
|
|
@@ -43851,7 +43879,7 @@ var WfoHeaderBadge = (_a) => {
|
|
|
43851
43879
|
} = _b, restProps = __objRest(_b, [
|
|
43852
43880
|
"children"
|
|
43853
43881
|
]);
|
|
43854
|
-
const
|
|
43882
|
+
const css37 = restProps.iconType ? {
|
|
43855
43883
|
height: 24,
|
|
43856
43884
|
display: "flex",
|
|
43857
43885
|
paddingLeft: 0
|
|
@@ -43859,7 +43887,7 @@ var WfoHeaderBadge = (_a) => {
|
|
|
43859
43887
|
height: 24,
|
|
43860
43888
|
display: "flex"
|
|
43861
43889
|
};
|
|
43862
|
-
return /* @__PURE__ */ jsx47(WfoBadge, __spreadProps(__spreadValues({}, restProps), { css:
|
|
43890
|
+
return /* @__PURE__ */ jsx47(WfoBadge, __spreadProps(__spreadValues({}, restProps), { css: css37, children }));
|
|
43863
43891
|
};
|
|
43864
43892
|
|
|
43865
43893
|
// src/components/WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx
|
|
@@ -44212,11 +44240,35 @@ var getNumberValueFromEnvironmentVariable = (environmentVariable, defaultValue)
|
|
|
44212
44240
|
return isNaN(valueAsNumber) ? defaultValue : valueAsNumber;
|
|
44213
44241
|
};
|
|
44214
44242
|
|
|
44243
|
+
// src/utils/getEnvironmentVariables.ts
|
|
44244
|
+
import process2 from "process";
|
|
44245
|
+
function getEnvironmentVariables(envVars) {
|
|
44246
|
+
const missingEnvironmentVariables = [];
|
|
44247
|
+
const environmentVariablesWithValues = envVars.reduce(
|
|
44248
|
+
(acc, currentKey) => {
|
|
44249
|
+
const value = process2.env[currentKey.toString()];
|
|
44250
|
+
if (value === void 0) {
|
|
44251
|
+
missingEnvironmentVariables.push(currentKey.toString());
|
|
44252
|
+
}
|
|
44253
|
+
return __spreadProps(__spreadValues({}, acc), {
|
|
44254
|
+
[currentKey]: value || ""
|
|
44255
|
+
});
|
|
44256
|
+
},
|
|
44257
|
+
{}
|
|
44258
|
+
);
|
|
44259
|
+
if (missingEnvironmentVariables.length > 0) {
|
|
44260
|
+
console.warn(
|
|
44261
|
+
`Warning: Missing required environment variables: ${missingEnvironmentVariables.join(", ")}`
|
|
44262
|
+
);
|
|
44263
|
+
}
|
|
44264
|
+
return environmentVariablesWithValues;
|
|
44265
|
+
}
|
|
44266
|
+
|
|
44215
44267
|
// src/utils/getProductNamesFromProcess.ts
|
|
44216
|
-
var getProductNamesFromProcess = (
|
|
44217
|
-
if (!
|
|
44268
|
+
var getProductNamesFromProcess = (process3) => {
|
|
44269
|
+
if (!process3)
|
|
44218
44270
|
return "";
|
|
44219
|
-
const productNames =
|
|
44271
|
+
const productNames = process3 && process3.subscriptions && process3.subscriptions.page ? process3.subscriptions.page.map((page) => page.product.name) : [];
|
|
44220
44272
|
return productNames.filter((name, index) => productNames.indexOf(name) === index).join(", ");
|
|
44221
44273
|
};
|
|
44222
44274
|
|
|
@@ -44561,13 +44613,40 @@ import {
|
|
|
44561
44613
|
} from "@elastic/eui";
|
|
44562
44614
|
|
|
44563
44615
|
// src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx
|
|
44616
|
+
import { useDispatch as useDispatch2 } from "react-redux";
|
|
44564
44617
|
import { useTranslations as useTranslations6 } from "next-intl";
|
|
44565
44618
|
import { EuiToolTip as EuiToolTip2 } from "@elastic/eui";
|
|
44619
|
+
|
|
44620
|
+
// src/components/WfoBadges/WfoWebsocketStatusBadge/styles.ts
|
|
44621
|
+
import { css as css4 } from "@emotion/react";
|
|
44622
|
+
var getStyles3 = ({ theme }) => {
|
|
44623
|
+
const connectedStyle = css4({
|
|
44624
|
+
paddingLeft: theme.base / 2,
|
|
44625
|
+
cursor: "default",
|
|
44626
|
+
backgroundColor: theme.colors.ghost
|
|
44627
|
+
});
|
|
44628
|
+
const disconnectedStyle = css4({
|
|
44629
|
+
paddingLeft: theme.base / 2,
|
|
44630
|
+
cursor: "pointer",
|
|
44631
|
+
backgroundColor: theme.colors.danger
|
|
44632
|
+
});
|
|
44633
|
+
return {
|
|
44634
|
+
connectedStyle,
|
|
44635
|
+
disconnectedStyle
|
|
44636
|
+
};
|
|
44637
|
+
};
|
|
44638
|
+
|
|
44639
|
+
// src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx
|
|
44566
44640
|
import { jsx as jsx59 } from "@emotion/react/jsx-runtime";
|
|
44567
44641
|
var WfoWebsocketStatusBadge = () => {
|
|
44642
|
+
const { connectedStyle, disconnectedStyle } = useWithOrchestratorTheme(getStyles3);
|
|
44643
|
+
const dispatch = useDispatch2();
|
|
44568
44644
|
const t = useTranslations6("main");
|
|
44569
44645
|
const { theme } = useOrchestratorTheme();
|
|
44570
44646
|
const { data: websocketConnected = false } = useStreamMessagesQuery();
|
|
44647
|
+
const reconnect = () => {
|
|
44648
|
+
dispatch(orchestratorApi.util.resetApiState());
|
|
44649
|
+
};
|
|
44571
44650
|
return /* @__PURE__ */ jsx59(
|
|
44572
44651
|
EuiToolTip2,
|
|
44573
44652
|
{
|
|
@@ -44576,10 +44655,17 @@ var WfoWebsocketStatusBadge = () => {
|
|
|
44576
44655
|
children: /* @__PURE__ */ jsx59(
|
|
44577
44656
|
WfoHeaderBadge,
|
|
44578
44657
|
{
|
|
44579
|
-
color: theme.colors.ghost,
|
|
44580
44658
|
textColor: theme.colors.shadow,
|
|
44581
|
-
iconType: () => websocketConnected ? /* @__PURE__ */ jsx59(
|
|
44582
|
-
|
|
44659
|
+
iconType: () => websocketConnected ? /* @__PURE__ */ jsx59(WfoBoltFill, { color: theme.colors.success }) : /* @__PURE__ */ jsx59(WfoBoltSlashFill, { color: "yellow" }),
|
|
44660
|
+
css: websocketConnected ? connectedStyle : disconnectedStyle,
|
|
44661
|
+
onClick: () => {
|
|
44662
|
+
if (!websocketConnected) {
|
|
44663
|
+
reconnect();
|
|
44664
|
+
}
|
|
44665
|
+
},
|
|
44666
|
+
onClickAriaLabel: "undefined",
|
|
44667
|
+
iconOnClick: void 0,
|
|
44668
|
+
iconOnClickAriaLabel: void 0
|
|
44583
44669
|
}
|
|
44584
44670
|
)
|
|
44585
44671
|
}
|
|
@@ -44627,16 +44713,16 @@ var WfoAppLogo = () => /* @__PURE__ */ jsxs43(
|
|
|
44627
44713
|
);
|
|
44628
44714
|
|
|
44629
44715
|
// src/components/WfoPageTemplate/WfoPageHeader/styles.ts
|
|
44630
|
-
import { css as
|
|
44716
|
+
import { css as css5 } from "@emotion/react";
|
|
44631
44717
|
var getWfoPageHeaderStyles = ({ theme }) => {
|
|
44632
44718
|
const navigationBackgroundColor = "#04385F";
|
|
44633
|
-
const appNameStyle =
|
|
44719
|
+
const appNameStyle = css5({
|
|
44634
44720
|
paddingRight: theme.base,
|
|
44635
44721
|
marginRight: theme.base,
|
|
44636
44722
|
borderRight: `${theme.border.width.thick} solid ${theme.colors.subduedText}`
|
|
44637
44723
|
});
|
|
44638
44724
|
const getHeaderStyle = (navigationHeight) => {
|
|
44639
|
-
return
|
|
44725
|
+
return css5({
|
|
44640
44726
|
backgroundColor: navigationBackgroundColor,
|
|
44641
44727
|
height: navigationHeight
|
|
44642
44728
|
});
|
|
@@ -44736,9 +44822,9 @@ import { useRouter as useRouter4 } from "next/router";
|
|
|
44736
44822
|
import { EuiSideNav, EuiSpacer as EuiSpacer3 } from "@elastic/eui";
|
|
44737
44823
|
|
|
44738
44824
|
// src/components/WfoPageTemplate/WfoSidebar/styles.ts
|
|
44739
|
-
import { css as
|
|
44825
|
+
import { css as css6 } from "@emotion/react";
|
|
44740
44826
|
var getCopyrightStyles = ({ theme }) => {
|
|
44741
|
-
const copyrightStyle =
|
|
44827
|
+
const copyrightStyle = css6({
|
|
44742
44828
|
position: "fixed",
|
|
44743
44829
|
bottom: 0,
|
|
44744
44830
|
left: 0,
|
|
@@ -44751,7 +44837,7 @@ var getCopyrightStyles = ({ theme }) => {
|
|
|
44751
44837
|
};
|
|
44752
44838
|
};
|
|
44753
44839
|
var getMenuStyles = ({ theme }) => {
|
|
44754
|
-
const menuStyle =
|
|
44840
|
+
const menuStyle = css6({
|
|
44755
44841
|
".euiSideNavItem--branch": {
|
|
44756
44842
|
"&:after": {
|
|
44757
44843
|
backgroundColor: theme.colors.lightShade
|
|
@@ -44789,21 +44875,21 @@ var getMenuItemStyles = ({ theme }) => {
|
|
|
44789
44875
|
position: "relative"
|
|
44790
44876
|
}
|
|
44791
44877
|
});
|
|
44792
|
-
const menuItemStyle =
|
|
44878
|
+
const menuItemStyle = css6(__spreadProps(__spreadValues({}, baseStyles), {
|
|
44793
44879
|
color: theme.colors.subduedText
|
|
44794
44880
|
}));
|
|
44795
|
-
const selectedMenuItem =
|
|
44881
|
+
const selectedMenuItem = css6(__spreadProps(__spreadValues({}, baseStyles), {
|
|
44796
44882
|
height: `${theme.base * 2.25}px`,
|
|
44797
44883
|
backgroundColor: theme.colors.lightShade,
|
|
44798
44884
|
borderRadius: theme.border.radius.medium,
|
|
44799
44885
|
fontWeight: theme.font.weight.semiBold,
|
|
44800
44886
|
color: theme.colors.darkestShade
|
|
44801
44887
|
}));
|
|
44802
|
-
const selectedSubMenuItem =
|
|
44888
|
+
const selectedSubMenuItem = css6(__spreadProps(__spreadValues({}, baseSubMenuStyles), {
|
|
44803
44889
|
fontWeight: theme.font.weight.medium,
|
|
44804
44890
|
color: theme.colors.darkestShade
|
|
44805
44891
|
}));
|
|
44806
|
-
const subMenuItemStyle =
|
|
44892
|
+
const subMenuItemStyle = css6(__spreadValues({}, baseSubMenuStyles));
|
|
44807
44893
|
return {
|
|
44808
44894
|
menuItemStyle,
|
|
44809
44895
|
selectedMenuItem,
|
|
@@ -44821,10 +44907,10 @@ import { useState as useState6 } from "react";
|
|
|
44821
44907
|
import { EuiButton as EuiButton2, EuiPopover, EuiSelectable, EuiSpacer as EuiSpacer2 } from "@elastic/eui";
|
|
44822
44908
|
|
|
44823
44909
|
// src/components/WfoStartButton/styles.ts
|
|
44824
|
-
import { css as
|
|
44825
|
-
var
|
|
44910
|
+
import { css as css7 } from "@emotion/react";
|
|
44911
|
+
var getStyles4 = ({ theme }) => {
|
|
44826
44912
|
const comboBoxWidth = "300px";
|
|
44827
|
-
const selectableStyle =
|
|
44913
|
+
const selectableStyle = css7({
|
|
44828
44914
|
width: comboBoxWidth,
|
|
44829
44915
|
".euiFieldSearch": {
|
|
44830
44916
|
backgroundColor: theme.colors.body,
|
|
@@ -44852,7 +44938,7 @@ var WfoStartButtonComboBox = ({
|
|
|
44852
44938
|
}) => {
|
|
44853
44939
|
const [isPopoverOpen, setPopoverOpen] = useState6(false);
|
|
44854
44940
|
const { theme, isDarkThemeActive } = useOrchestratorTheme();
|
|
44855
|
-
const { selectableStyle } = useWithOrchestratorTheme(
|
|
44941
|
+
const { selectableStyle } = useWithOrchestratorTheme(getStyles4);
|
|
44856
44942
|
const Button = /* @__PURE__ */ jsx62(
|
|
44857
44943
|
EuiButton2,
|
|
44858
44944
|
{
|
|
@@ -45267,9 +45353,9 @@ import { useTranslations as useTranslations11 } from "next-intl";
|
|
|
45267
45353
|
import { EuiFieldSearch, EuiFormRow } from "@elastic/eui";
|
|
45268
45354
|
|
|
45269
45355
|
// src/theme/baseStyles/formFieldsBaseStyle.ts
|
|
45270
|
-
import { css as
|
|
45356
|
+
import { css as css8 } from "@emotion/react";
|
|
45271
45357
|
var getFormFieldsBaseStyle = ({ theme }) => {
|
|
45272
|
-
const formFieldBaseStyle =
|
|
45358
|
+
const formFieldBaseStyle = css8({
|
|
45273
45359
|
backgroundColor: theme.colors.body,
|
|
45274
45360
|
color: theme.colors.text,
|
|
45275
45361
|
"&:focus": {
|
|
@@ -45577,7 +45663,7 @@ var getLastUncompletedProcess = (processes) => {
|
|
|
45577
45663
|
if (processes.length === 0) {
|
|
45578
45664
|
return;
|
|
45579
45665
|
}
|
|
45580
|
-
const uncompletedProcesses = processes.filter((
|
|
45666
|
+
const uncompletedProcesses = processes.filter((process3) => process3.lastStatus !== "completed" /* COMPLETED */).sort((a, b) => {
|
|
45581
45667
|
const dateA = new Date(a.startedAt);
|
|
45582
45668
|
const dateB = new Date(b.startedAt);
|
|
45583
45669
|
return dateB.getTime() - dateA.getTime();
|
|
@@ -45588,7 +45674,7 @@ var getLatestTaskDate = (processes) => {
|
|
|
45588
45674
|
if (processes.length === 0) {
|
|
45589
45675
|
return "";
|
|
45590
45676
|
}
|
|
45591
|
-
const tasks = processes.filter((
|
|
45677
|
+
const tasks = processes.filter((process3) => process3.isTask).sort((a, b) => {
|
|
45592
45678
|
const dateA = new Date(a.startedAt);
|
|
45593
45679
|
const dateB = new Date(b.startedAt);
|
|
45594
45680
|
return dateB.getTime() - dateA.getTime();
|
|
@@ -45768,42 +45854,42 @@ var WfoTargetTypeIcon = ({
|
|
|
45768
45854
|
};
|
|
45769
45855
|
|
|
45770
45856
|
// src/components/WfoSubscription/styles.ts
|
|
45771
|
-
import { css as
|
|
45772
|
-
var
|
|
45773
|
-
const contentCellStyle =
|
|
45857
|
+
import { css as css9 } from "@emotion/react";
|
|
45858
|
+
var getStyles5 = ({ theme }) => {
|
|
45859
|
+
const contentCellStyle = css9({
|
|
45774
45860
|
padding: theme.base / 4 * 3,
|
|
45775
45861
|
borderBottom: theme.border.thin,
|
|
45776
45862
|
borderBottomColor: theme.colors.lightShade
|
|
45777
45863
|
});
|
|
45778
|
-
const headerCellStyle =
|
|
45864
|
+
const headerCellStyle = css9(__spreadProps(__spreadValues({}, contentCellStyle), {
|
|
45779
45865
|
paddingLeft: 0,
|
|
45780
45866
|
width: theme.base * 16,
|
|
45781
45867
|
fontWeight: theme.font.weight.medium
|
|
45782
45868
|
}));
|
|
45783
|
-
const emptyCellStyle =
|
|
45869
|
+
const emptyCellStyle = css9({
|
|
45784
45870
|
width: theme.base
|
|
45785
45871
|
});
|
|
45786
|
-
const tableStyle =
|
|
45872
|
+
const tableStyle = css9({
|
|
45787
45873
|
backgroundColor: theme.colors.lightestShade,
|
|
45788
45874
|
width: "100%",
|
|
45789
45875
|
borderRadius: theme.border.radius.medium,
|
|
45790
45876
|
marginTop: theme.base / 2
|
|
45791
45877
|
});
|
|
45792
|
-
const timeLineStyle =
|
|
45878
|
+
const timeLineStyle = css9({
|
|
45793
45879
|
paddingLeft: theme.base / 2
|
|
45794
45880
|
});
|
|
45795
|
-
const workflowTargetStyle =
|
|
45796
|
-
const lastContentCellStyle =
|
|
45881
|
+
const workflowTargetStyle = css9({ fontWeight: theme.font.weight.bold });
|
|
45882
|
+
const lastContentCellStyle = css9(__spreadProps(__spreadValues({}, contentCellStyle), {
|
|
45797
45883
|
border: 0
|
|
45798
45884
|
}));
|
|
45799
|
-
const lastHeaderCellStyle =
|
|
45885
|
+
const lastHeaderCellStyle = css9({
|
|
45800
45886
|
padding: theme.base,
|
|
45801
45887
|
paddingLeft: 0,
|
|
45802
45888
|
width: 250,
|
|
45803
45889
|
fontWeight: theme.font.weight.medium,
|
|
45804
45890
|
border: 0
|
|
45805
45891
|
});
|
|
45806
|
-
const inUseByRelationDetailsStyle =
|
|
45892
|
+
const inUseByRelationDetailsStyle = css9({
|
|
45807
45893
|
borderColor: theme.colors.lightShade,
|
|
45808
45894
|
borderStyle: "solid",
|
|
45809
45895
|
borderWidth: "thin",
|
|
@@ -45834,7 +45920,7 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
|
|
|
45834
45920
|
emptyCellStyle,
|
|
45835
45921
|
lastContentCellStyle,
|
|
45836
45922
|
lastHeaderCellStyle
|
|
45837
|
-
} = useWithOrchestratorTheme(
|
|
45923
|
+
} = useWithOrchestratorTheme(getStyles5);
|
|
45838
45924
|
const processUrl = subscriptionDetailProcess.isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
45839
45925
|
return /* @__PURE__ */ jsx77(Fragment10, { children: /* @__PURE__ */ jsx77("table", { css: tableStyle, children: /* @__PURE__ */ jsxs54("tbody", { children: [
|
|
45840
45926
|
/* @__PURE__ */ jsxs54("tr", { children: [
|
|
@@ -45880,7 +45966,7 @@ var WfoRenderSubscriptionProcess = ({
|
|
|
45880
45966
|
subscriptionDetailProcess
|
|
45881
45967
|
}) => {
|
|
45882
45968
|
var _a;
|
|
45883
|
-
const { timeLineStyle, workflowTargetStyle } = useWithOrchestratorTheme(
|
|
45969
|
+
const { timeLineStyle, workflowTargetStyle } = useWithOrchestratorTheme(getStyles5);
|
|
45884
45970
|
return /* @__PURE__ */ jsxs54(
|
|
45885
45971
|
EuiComment,
|
|
45886
45972
|
{
|
|
@@ -45915,7 +46001,7 @@ var WfoProcessesTimeline = ({
|
|
|
45915
46001
|
return /* @__PURE__ */ jsxs54(Fragment10, { children: [
|
|
45916
46002
|
/* @__PURE__ */ jsx77(EuiSpacer8, { size: "m" }),
|
|
45917
46003
|
!subscriptionDetailProcesses && /* @__PURE__ */ jsx77(WfoLoading, {}),
|
|
45918
|
-
/* @__PURE__ */ jsx77(EuiCommentList, { "aria-label": "Processes", children: subscriptionDetailProcesses && /* @__PURE__ */ jsx77(EuiCommentList, { "aria-label": "Processes", children: subscriptionDetailProcesses.filter((
|
|
46004
|
+
/* @__PURE__ */ jsx77(EuiCommentList, { "aria-label": "Processes", children: subscriptionDetailProcesses && /* @__PURE__ */ jsx77(EuiCommentList, { "aria-label": "Processes", children: subscriptionDetailProcesses.filter((process3) => !process3.isTask).map((subscriptionDetailProcess, index) => /* @__PURE__ */ jsx77(
|
|
45919
46005
|
WfoRenderSubscriptionProcess,
|
|
45920
46006
|
{
|
|
45921
46007
|
subscriptionDetailProcess
|
|
@@ -46172,7 +46258,7 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
46172
46258
|
setActiveTab(tab);
|
|
46173
46259
|
};
|
|
46174
46260
|
const subscriptionDetail = data == null ? void 0 : data.subscription;
|
|
46175
|
-
return /* @__PURE__ */ jsx82(Fragment12, { children: isError2 && /* @__PURE__ */ jsx82(WfoError, {}) || isLoading && /* @__PURE__ */ jsx82(WfoLoading, {}) || subscriptionDetail && /* @__PURE__ */ jsxs57(Fragment12, { children: [
|
|
46261
|
+
return /* @__PURE__ */ jsx82(Fragment12, { children: isError2 && /* @__PURE__ */ jsx82(WfoError, {}) || isLoading && /* @__PURE__ */ jsx82(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */ jsxs57(Fragment12, { children: [
|
|
46176
46262
|
/* @__PURE__ */ jsxs57(
|
|
46177
46263
|
EuiFlexGroup7,
|
|
46178
46264
|
{
|
|
@@ -46246,6 +46332,9 @@ var WfoSubscription = ({ subscriptionId }) => {
|
|
|
46246
46332
|
subscriptionId: subscriptionDetail.subscriptionId
|
|
46247
46333
|
}
|
|
46248
46334
|
)
|
|
46335
|
+
] }) || /* @__PURE__ */ jsxs57("h1", { children: [
|
|
46336
|
+
"Unknown subscriptionId: ",
|
|
46337
|
+
subscriptionId
|
|
46249
46338
|
] }) });
|
|
46250
46339
|
};
|
|
46251
46340
|
|
|
@@ -46443,7 +46532,7 @@ var WfoInUseByRelations = ({
|
|
|
46443
46532
|
inUseByRelations
|
|
46444
46533
|
}) => {
|
|
46445
46534
|
const t = useTranslations18("subscriptions.detail");
|
|
46446
|
-
const { inUseByRelationDetailsStyle } = useWithOrchestratorTheme(
|
|
46535
|
+
const { inUseByRelationDetailsStyle } = useWithOrchestratorTheme(getStyles5);
|
|
46447
46536
|
const subscriptionIds = inUseByRelations.map((relation) => relation.subscription_id).join("|");
|
|
46448
46537
|
const { data, isLoading, isError: isError2 } = useGetInUseByRelationDetailsQuery({
|
|
46449
46538
|
subscriptionIds
|
|
@@ -46498,10 +46587,10 @@ var WfoInUseByRelations = ({
|
|
|
46498
46587
|
};
|
|
46499
46588
|
|
|
46500
46589
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts
|
|
46501
|
-
import { css as
|
|
46502
|
-
var
|
|
46590
|
+
import { css as css10 } from "@emotion/react";
|
|
46591
|
+
var getStyles6 = (wfoTheme) => {
|
|
46503
46592
|
const { theme, toSecondaryColor } = wfoTheme;
|
|
46504
|
-
const iconStyle =
|
|
46593
|
+
const iconStyle = css10({
|
|
46505
46594
|
width: 45,
|
|
46506
46595
|
height: 45,
|
|
46507
46596
|
backgroundColor: toSecondaryColor(theme.colors.primary),
|
|
@@ -46509,32 +46598,31 @@ var getStyles5 = (wfoTheme) => {
|
|
|
46509
46598
|
paddingLeft: 15,
|
|
46510
46599
|
borderRadius: 7
|
|
46511
46600
|
});
|
|
46512
|
-
const panelStyle =
|
|
46601
|
+
const panelStyle = css10({
|
|
46513
46602
|
backgroundColor: theme.colors.lightestShade
|
|
46514
46603
|
});
|
|
46515
|
-
const panelStyleOutsideCurrentSubscription =
|
|
46604
|
+
const panelStyleOutsideCurrentSubscription = css10({
|
|
46516
46605
|
backgroundColor: toSecondaryColor(theme.colors.lightestShade),
|
|
46517
46606
|
border: `dashed 1px ${theme.colors.lightShade}`
|
|
46518
46607
|
});
|
|
46519
|
-
const rowStyle =
|
|
46608
|
+
const rowStyle = css10({
|
|
46609
|
+
borderBottom: `solid 1px ${theme.colors.lightShade}`,
|
|
46520
46610
|
"&:first-child": {
|
|
46521
46611
|
borderTop: `solid 1px ${theme.colors.lightShade}`
|
|
46522
46612
|
}
|
|
46523
46613
|
});
|
|
46524
|
-
const leftColumnStyle =
|
|
46614
|
+
const leftColumnStyle = css10({
|
|
46525
46615
|
verticalAlign: "top",
|
|
46526
46616
|
width: 250,
|
|
46527
46617
|
paddingLeft: 0,
|
|
46528
46618
|
paddingTop: 10,
|
|
46529
|
-
paddingBottom: 10
|
|
46530
|
-
borderBottom: `solid 1px ${theme.colors.lightShade}`
|
|
46619
|
+
paddingBottom: 10
|
|
46531
46620
|
});
|
|
46532
|
-
const rightColumnStyle =
|
|
46621
|
+
const rightColumnStyle = css10({
|
|
46533
46622
|
verticalAlign: "top",
|
|
46534
46623
|
paddingLeft: 0,
|
|
46535
46624
|
paddingTop: 10,
|
|
46536
|
-
paddingBottom: 10
|
|
46537
|
-
borderBottom: `solid 1px ${theme.colors.lightShade}`
|
|
46625
|
+
paddingBottom: 10
|
|
46538
46626
|
});
|
|
46539
46627
|
return {
|
|
46540
46628
|
iconStyle,
|
|
@@ -46565,8 +46653,9 @@ var WfoSubscriptionProductBlock = ({
|
|
|
46565
46653
|
leftColumnStyle,
|
|
46566
46654
|
rightColumnStyle,
|
|
46567
46655
|
rowStyle
|
|
46568
|
-
} = useWithOrchestratorTheme(
|
|
46569
|
-
const [
|
|
46656
|
+
} = useWithOrchestratorTheme(getStyles6);
|
|
46657
|
+
const [showDetails, setShowDetails] = useState12(false);
|
|
46658
|
+
const showProductBlockValues = !isOutsideCurrentSubscription || showDetails;
|
|
46570
46659
|
return /* @__PURE__ */ jsxs59(Fragment15, { children: [
|
|
46571
46660
|
/* @__PURE__ */ jsx85(EuiSpacer11, { size: "m" }),
|
|
46572
46661
|
/* @__PURE__ */ jsxs59(
|
|
@@ -46596,31 +46685,35 @@ var WfoSubscriptionProductBlock = ({
|
|
|
46596
46685
|
/* @__PURE__ */ jsx85(EuiFlexItem6, { grow: false, children: /* @__PURE__ */ jsx85(
|
|
46597
46686
|
EuiButtonEmpty3,
|
|
46598
46687
|
{
|
|
46599
|
-
"aria-label":
|
|
46688
|
+
"aria-label": showDetails ? t("hideDetails") : t("showDetails"),
|
|
46600
46689
|
size: "m",
|
|
46601
|
-
onClick: () =>
|
|
46602
|
-
children:
|
|
46690
|
+
onClick: () => setShowDetails(!showDetails),
|
|
46691
|
+
children: showDetails ? t("hideDetails") : t("showDetails")
|
|
46603
46692
|
}
|
|
46604
46693
|
) })
|
|
46605
46694
|
] }),
|
|
46606
46695
|
/* @__PURE__ */ jsx85(EuiSpacer11, { size: "m" }),
|
|
46607
46696
|
/* @__PURE__ */ jsx85("table", { width: "100%", children: /* @__PURE__ */ jsxs59("tbody", { children: [
|
|
46608
|
-
|
|
46697
|
+
isOutsideCurrentSubscription && /* @__PURE__ */ jsxs59("tr", { css: rowStyle, children: [
|
|
46698
|
+
/* @__PURE__ */ jsx85("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx85("b", { children: t("ownerSubscriptionId") }) }),
|
|
46699
|
+
/* @__PURE__ */ jsx85("td", { css: rightColumnStyle, children: /* @__PURE__ */ jsx85(
|
|
46700
|
+
"a",
|
|
46701
|
+
{
|
|
46702
|
+
href: `${PATH_SUBSCRIPTIONS}/${ownerSubscriptionId}`,
|
|
46703
|
+
target: "_blank",
|
|
46704
|
+
children: ownerSubscriptionId
|
|
46705
|
+
}
|
|
46706
|
+
) })
|
|
46707
|
+
] }, -1),
|
|
46708
|
+
showDetails && /* @__PURE__ */ jsxs59(Fragment15, { children: [
|
|
46609
46709
|
/* @__PURE__ */ jsxs59("tr", { css: rowStyle, children: [
|
|
46610
46710
|
/* @__PURE__ */ jsx85("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx85("b", { children: t("subscriptionInstanceId") }) }),
|
|
46611
46711
|
/* @__PURE__ */ jsx85("td", { css: rightColumnStyle, children: subscriptionInstanceId })
|
|
46612
|
-
] }, -3),
|
|
46613
|
-
/* @__PURE__ */ jsxs59("tr", { css: rowStyle, children: [
|
|
46614
|
-
/* @__PURE__ */ jsx85("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx85("b", { children: t("ownerSubscriptionId") }) }),
|
|
46615
|
-
/* @__PURE__ */ jsx85("td", { css: rightColumnStyle, children: !isOutsideCurrentSubscription ? /* @__PURE__ */ jsx85(Fragment15, { children: /* @__PURE__ */ jsx85(EuiBadge2, { children: t("self") }) }) : /* @__PURE__ */ jsx85(
|
|
46616
|
-
"a",
|
|
46617
|
-
{
|
|
46618
|
-
href: `${PATH_SUBSCRIPTIONS}/${ownerSubscriptionId}`,
|
|
46619
|
-
target: "_blank",
|
|
46620
|
-
children: ownerSubscriptionId
|
|
46621
|
-
}
|
|
46622
|
-
) })
|
|
46623
46712
|
] }, -2),
|
|
46713
|
+
!isOutsideCurrentSubscription && /* @__PURE__ */ jsxs59("tr", { css: rowStyle, children: [
|
|
46714
|
+
/* @__PURE__ */ jsx85("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx85("b", { children: t("ownerSubscriptionId") }) }),
|
|
46715
|
+
/* @__PURE__ */ jsx85("td", { css: rightColumnStyle, children: /* @__PURE__ */ jsx85(Fragment15, { children: /* @__PURE__ */ jsx85(EuiBadge2, { children: t("self") }) }) })
|
|
46716
|
+
] }, -3),
|
|
46624
46717
|
/* @__PURE__ */ jsxs59("tr", { css: rowStyle, children: [
|
|
46625
46718
|
/* @__PURE__ */ jsx85("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx85("b", { children: t("inUseByRelations") }) }),
|
|
46626
46719
|
/* @__PURE__ */ jsx85("td", { css: rightColumnStyle, children: inUseByRelations.length === 0 && "None" || /* @__PURE__ */ jsx85(
|
|
@@ -46629,9 +46722,9 @@ var WfoSubscriptionProductBlock = ({
|
|
|
46629
46722
|
inUseByRelations
|
|
46630
46723
|
}
|
|
46631
46724
|
) })
|
|
46632
|
-
] }, -
|
|
46725
|
+
] }, -4)
|
|
46633
46726
|
] }),
|
|
46634
|
-
productBlockInstanceValues.filter(
|
|
46727
|
+
showProductBlockValues && productBlockInstanceValues.filter(
|
|
46635
46728
|
(productBlockInstanceValue) => !HIDDEN_KEYS.includes(
|
|
46636
46729
|
productBlockInstanceValue.field
|
|
46637
46730
|
)
|
|
@@ -46654,7 +46747,7 @@ import { EuiBadge as EuiBadge3 } from "@elastic/eui";
|
|
|
46654
46747
|
import { Fragment as Fragment16, jsx as jsx86, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
46655
46748
|
var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
|
|
46656
46749
|
var _a;
|
|
46657
|
-
const { leftColumnStyle, rightColumnStyle, rowStyle } = useWithOrchestratorTheme(
|
|
46750
|
+
const { leftColumnStyle, rightColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles6);
|
|
46658
46751
|
const { getOverriddenValue } = useSubscriptionDetailValueOverride();
|
|
46659
46752
|
const { field, value } = fieldValue;
|
|
46660
46753
|
const WfoProductBlockValue = ({
|
|
@@ -46705,7 +46798,7 @@ import {
|
|
|
46705
46798
|
} from "@elastic/eui";
|
|
46706
46799
|
|
|
46707
46800
|
// src/components/WfoTree/styles.ts
|
|
46708
|
-
var
|
|
46801
|
+
var getStyles7 = (wfoTheme) => {
|
|
46709
46802
|
const { theme, toSecondaryColor } = wfoTheme;
|
|
46710
46803
|
const expandIconContainerStyle = {
|
|
46711
46804
|
cursor: "pointer"
|
|
@@ -46738,7 +46831,7 @@ var WfoTreeNode = ({
|
|
|
46738
46831
|
expandIconContainerStyle,
|
|
46739
46832
|
treeContainerStyle,
|
|
46740
46833
|
treeItemOtherSubscriptionStyle
|
|
46741
|
-
} = useWithOrchestratorTheme(
|
|
46834
|
+
} = useWithOrchestratorTheme(getStyles7);
|
|
46742
46835
|
const t = useTranslations20("common");
|
|
46743
46836
|
const {
|
|
46744
46837
|
expandedIds,
|
|
@@ -47344,11 +47437,11 @@ import {
|
|
|
47344
47437
|
} from "@elastic/eui";
|
|
47345
47438
|
|
|
47346
47439
|
// src/components/WfoTable/WfoTableSettingsModal/styles.ts
|
|
47347
|
-
import { css as
|
|
47440
|
+
import { css as css11 } from "@emotion/react";
|
|
47348
47441
|
var getWfoTableSettingsModalStyles = (wfoTheme) => {
|
|
47349
47442
|
const { formFieldBaseStyle } = getFormFieldsBaseStyle(wfoTheme);
|
|
47350
47443
|
const { theme } = wfoTheme;
|
|
47351
|
-
const formRowStyle =
|
|
47444
|
+
const formRowStyle = css11({
|
|
47352
47445
|
justifyContent: "space-between",
|
|
47353
47446
|
".euiFormLabel": {
|
|
47354
47447
|
color: theme.colors.text
|
|
@@ -47527,10 +47620,10 @@ import { useTranslations as useTranslations23 } from "next-intl";
|
|
|
47527
47620
|
import { EuiBasicTable } from "@elastic/eui";
|
|
47528
47621
|
|
|
47529
47622
|
// src/components/WfoTable/WfoBasicTable/styles.ts
|
|
47530
|
-
import { css as
|
|
47623
|
+
import { css as css12 } from "@emotion/react";
|
|
47531
47624
|
var getWfoBasicTableStyles = ({ theme }) => {
|
|
47532
47625
|
const radius = theme.border.radius.medium;
|
|
47533
|
-
const basicTableStyle =
|
|
47626
|
+
const basicTableStyle = css12({
|
|
47534
47627
|
table: {
|
|
47535
47628
|
backgroundColor: theme.colors.emptyShade
|
|
47536
47629
|
},
|
|
@@ -47557,7 +47650,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
47557
47650
|
}
|
|
47558
47651
|
}
|
|
47559
47652
|
});
|
|
47560
|
-
const getStatusColumnStyle = (columnNumber) =>
|
|
47653
|
+
const getStatusColumnStyle = (columnNumber) => css12(basicTableStyle, {
|
|
47561
47654
|
[`tbody tr td:nth-child(${columnNumber}) .euiTableCellContent`]: {
|
|
47562
47655
|
padding: 0,
|
|
47563
47656
|
".euiTableCellContent__text": {
|
|
@@ -47568,7 +47661,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
47568
47661
|
}
|
|
47569
47662
|
}
|
|
47570
47663
|
});
|
|
47571
|
-
const dropDownTableStyle =
|
|
47664
|
+
const dropDownTableStyle = css12({
|
|
47572
47665
|
thead: {
|
|
47573
47666
|
backgroundColor: theme.colors.lightestShade,
|
|
47574
47667
|
"tr>:first-child": {
|
|
@@ -47582,7 +47675,7 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
47582
47675
|
backgroundColor: theme.colors.lightestShade
|
|
47583
47676
|
}
|
|
47584
47677
|
});
|
|
47585
|
-
const expandableTableStyle =
|
|
47678
|
+
const expandableTableStyle = css12([
|
|
47586
47679
|
basicTableStyle,
|
|
47587
47680
|
{
|
|
47588
47681
|
"tr.euiTableRow-isExpandedRow": {
|
|
@@ -47590,22 +47683,22 @@ var getWfoBasicTableStyles = ({ theme }) => {
|
|
|
47590
47683
|
}
|
|
47591
47684
|
}
|
|
47592
47685
|
]);
|
|
47593
|
-
const headerCellContentStyle =
|
|
47686
|
+
const headerCellContentStyle = css12({
|
|
47594
47687
|
fontWeight: theme.font.weight.semiBold
|
|
47595
47688
|
});
|
|
47596
|
-
const headerCellPopoverHeaderStyle =
|
|
47689
|
+
const headerCellPopoverHeaderStyle = css12({
|
|
47597
47690
|
margin: theme.size.m,
|
|
47598
47691
|
display: "flex",
|
|
47599
47692
|
justifyContent: "space-between",
|
|
47600
47693
|
alignItems: "center"
|
|
47601
47694
|
});
|
|
47602
|
-
const headerCellPopoverHeaderTitleStyle =
|
|
47695
|
+
const headerCellPopoverHeaderTitleStyle = css12({
|
|
47603
47696
|
fontWeight: theme.font.weight.medium
|
|
47604
47697
|
});
|
|
47605
|
-
const headerCellPopoverContentStyle =
|
|
47698
|
+
const headerCellPopoverContentStyle = css12({
|
|
47606
47699
|
margin: theme.size.m
|
|
47607
47700
|
});
|
|
47608
|
-
const getHeaderCellButtonStyle = (isSortable) =>
|
|
47701
|
+
const getHeaderCellButtonStyle = (isSortable) => css12({
|
|
47609
47702
|
display: "flex",
|
|
47610
47703
|
alignItems: "center",
|
|
47611
47704
|
cursor: isSortable ? "pointer" : "not-allowed"
|
|
@@ -47763,13 +47856,13 @@ import {
|
|
|
47763
47856
|
} from "@elastic/eui";
|
|
47764
47857
|
|
|
47765
47858
|
// src/components/WfoTable/WfoSortButtons/styles.ts
|
|
47766
|
-
import { css as
|
|
47767
|
-
var
|
|
47768
|
-
const sortButtonsContainerStyle =
|
|
47859
|
+
import { css as css13 } from "@emotion/react";
|
|
47860
|
+
var getStyles8 = () => {
|
|
47861
|
+
const sortButtonsContainerStyle = css13({
|
|
47769
47862
|
display: "flex",
|
|
47770
47863
|
alignItems: "center"
|
|
47771
47864
|
});
|
|
47772
|
-
const getSortButtonStyle = (isActive) =>
|
|
47865
|
+
const getSortButtonStyle = (isActive) => css13({
|
|
47773
47866
|
display: "flex",
|
|
47774
47867
|
alignItems: "center",
|
|
47775
47868
|
cursor: isActive ? "pointer" : "not-allowed"
|
|
@@ -47788,7 +47881,7 @@ var WfoSortButton = ({
|
|
|
47788
47881
|
onClick
|
|
47789
47882
|
}) => {
|
|
47790
47883
|
const { theme } = useOrchestratorTheme();
|
|
47791
|
-
const { getSortButtonStyle } =
|
|
47884
|
+
const { getSortButtonStyle } = getStyles8();
|
|
47792
47885
|
return /* @__PURE__ */ jsx97(
|
|
47793
47886
|
"button",
|
|
47794
47887
|
{
|
|
@@ -47810,7 +47903,7 @@ var WfoSortButtons = ({
|
|
|
47810
47903
|
sortOrder,
|
|
47811
47904
|
onChangeSortOrder
|
|
47812
47905
|
}) => {
|
|
47813
|
-
const { sortButtonsContainerStyle } =
|
|
47906
|
+
const { sortButtonsContainerStyle } = getStyles8();
|
|
47814
47907
|
return /* @__PURE__ */ jsxs65("div", { css: sortButtonsContainerStyle, children: [
|
|
47815
47908
|
/* @__PURE__ */ jsx98(
|
|
47816
47909
|
WfoSortButton,
|
|
@@ -48172,9 +48265,9 @@ var WfoTableWithFilter = ({
|
|
|
48172
48265
|
};
|
|
48173
48266
|
|
|
48174
48267
|
// src/components/WfoTable/WfoFirstPartUUID/styles.ts
|
|
48175
|
-
import { css as
|
|
48176
|
-
var
|
|
48177
|
-
const uuidFieldStyle =
|
|
48268
|
+
import { css as css14 } from "@emotion/react";
|
|
48269
|
+
var getStyles9 = ({ theme }) => {
|
|
48270
|
+
const uuidFieldStyle = css14({
|
|
48178
48271
|
fontWeight: theme.font.weight.medium
|
|
48179
48272
|
});
|
|
48180
48273
|
return {
|
|
@@ -48185,7 +48278,7 @@ var getStyles8 = ({ theme }) => {
|
|
|
48185
48278
|
// src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx
|
|
48186
48279
|
import { jsx as jsx102 } from "@emotion/react/jsx-runtime";
|
|
48187
48280
|
var WfoFirstPartUUID = ({ UUID }) => {
|
|
48188
|
-
const { uuidFieldStyle } = useWithOrchestratorTheme(
|
|
48281
|
+
const { uuidFieldStyle } = useWithOrchestratorTheme(getStyles9);
|
|
48189
48282
|
return /* @__PURE__ */ jsx102("span", { css: uuidFieldStyle, title: UUID, children: getFirstUuidPart(UUID) });
|
|
48190
48283
|
};
|
|
48191
48284
|
|
|
@@ -48206,8 +48299,8 @@ import { useEuiScrollBar } from "@elastic/eui";
|
|
|
48206
48299
|
import { EuiToolTip as EuiToolTip4 } from "@elastic/eui";
|
|
48207
48300
|
|
|
48208
48301
|
// src/components/WfoTimeline/styles.ts
|
|
48209
|
-
import { css as
|
|
48210
|
-
var
|
|
48302
|
+
import { css as css15 } from "@emotion/react";
|
|
48303
|
+
var getStyles10 = ({ theme }) => {
|
|
48211
48304
|
const emptyStepOuterDiameter = theme.base;
|
|
48212
48305
|
const emptyStepInnerDiameter = theme.base / 2;
|
|
48213
48306
|
const stepWithValueOuterDiameter = theme.base * 1.5;
|
|
@@ -48237,7 +48330,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
48237
48330
|
return theme.colors.ghost;
|
|
48238
48331
|
}
|
|
48239
48332
|
};
|
|
48240
|
-
const timelinePanelStyle =
|
|
48333
|
+
const timelinePanelStyle = css15({
|
|
48241
48334
|
backgroundColor: theme.colors.body,
|
|
48242
48335
|
borderRadius: theme.border.radius.medium,
|
|
48243
48336
|
overflow: "auto",
|
|
@@ -48254,7 +48347,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
48254
48347
|
flexGrow: 1
|
|
48255
48348
|
}
|
|
48256
48349
|
});
|
|
48257
|
-
const getHorizontalLineStyle = (color) =>
|
|
48350
|
+
const getHorizontalLineStyle = (color) => css15({
|
|
48258
48351
|
content: '""',
|
|
48259
48352
|
height: theme.border.width.thick,
|
|
48260
48353
|
backgroundColor: color,
|
|
@@ -48282,7 +48375,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
48282
48375
|
return theme.colors.lightShade;
|
|
48283
48376
|
}
|
|
48284
48377
|
};
|
|
48285
|
-
return
|
|
48378
|
+
return css15([
|
|
48286
48379
|
!isFirstStep && {
|
|
48287
48380
|
"::before": __spreadValues({}, getHorizontalLineStyle(
|
|
48288
48381
|
getBeforeLineColor(timelinePosition)
|
|
@@ -48295,7 +48388,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
48295
48388
|
}
|
|
48296
48389
|
]);
|
|
48297
48390
|
};
|
|
48298
|
-
const getStepOuterCircleStyle = (hasContent) =>
|
|
48391
|
+
const getStepOuterCircleStyle = (hasContent) => css15({
|
|
48299
48392
|
display: "flex",
|
|
48300
48393
|
justifyContent: "center",
|
|
48301
48394
|
alignItems: "center",
|
|
@@ -48306,7 +48399,7 @@ var getStyles9 = ({ theme }) => {
|
|
|
48306
48399
|
});
|
|
48307
48400
|
const getStepInnerCircleStyle = (stepStatus, hasContent) => {
|
|
48308
48401
|
const diameter = hasContent ? stepWithValueInnerDiameter : emptyStepInnerDiameter;
|
|
48309
|
-
return
|
|
48402
|
+
return css15({
|
|
48310
48403
|
borderRadius: "50%",
|
|
48311
48404
|
backgroundColor: getColorForStepStatus(stepStatus),
|
|
48312
48405
|
height: diameter,
|
|
@@ -48317,15 +48410,15 @@ var getStyles9 = ({ theme }) => {
|
|
|
48317
48410
|
color: getTextColorForStepStatusIcon(stepStatus)
|
|
48318
48411
|
});
|
|
48319
48412
|
};
|
|
48320
|
-
const stepStyle =
|
|
48413
|
+
const stepStyle = css15({
|
|
48321
48414
|
display: "flex",
|
|
48322
48415
|
flexDirection: "row",
|
|
48323
48416
|
alignItems: "center"
|
|
48324
48417
|
});
|
|
48325
|
-
const clickableStyle =
|
|
48418
|
+
const clickableStyle = css15({
|
|
48326
48419
|
cursor: "pointer"
|
|
48327
48420
|
});
|
|
48328
|
-
const notClickableStyle =
|
|
48421
|
+
const notClickableStyle = css15({
|
|
48329
48422
|
cursor: "auto"
|
|
48330
48423
|
});
|
|
48331
48424
|
return {
|
|
@@ -48357,7 +48450,7 @@ var WfoTimelineStep = ({
|
|
|
48357
48450
|
getStepLineStyle,
|
|
48358
48451
|
getStepOuterCircleStyle,
|
|
48359
48452
|
getStepInnerCircleStyle
|
|
48360
|
-
} = useWithOrchestratorTheme(
|
|
48453
|
+
} = useWithOrchestratorTheme(getStyles10);
|
|
48361
48454
|
return /* @__PURE__ */ jsx104(
|
|
48362
48455
|
"button",
|
|
48363
48456
|
{
|
|
@@ -48393,7 +48486,7 @@ var WfoTimeline = ({
|
|
|
48393
48486
|
indexOfCurrentStep = 0,
|
|
48394
48487
|
onStepClick
|
|
48395
48488
|
}) => {
|
|
48396
|
-
const { timelinePanelStyle } = useWithOrchestratorTheme(
|
|
48489
|
+
const { timelinePanelStyle } = useWithOrchestratorTheme(getStyles10);
|
|
48397
48490
|
const mapTimelineItemToStep = (timelineItem, index, allTimelineItems) => {
|
|
48398
48491
|
const { id, stepDetail, processStepStatus, value } = timelineItem;
|
|
48399
48492
|
return /* @__PURE__ */ jsx105(
|
|
@@ -48489,9 +48582,9 @@ import { connectField, filterDOMProps } from "uniforms";
|
|
|
48489
48582
|
import { EuiCheckbox, EuiFlexItem as EuiFlexItem12, EuiText as EuiText10 } from "@elastic/eui";
|
|
48490
48583
|
|
|
48491
48584
|
// src/components/WfoForms/formFields/AcceptFieldStyling.ts
|
|
48492
|
-
import { css as
|
|
48493
|
-
var
|
|
48494
|
-
const acceptFieldStyle =
|
|
48585
|
+
import { css as css16 } from "@emotion/react";
|
|
48586
|
+
var getStyles11 = ({ theme }) => {
|
|
48587
|
+
const acceptFieldStyle = css16({
|
|
48495
48588
|
".acceptField": {
|
|
48496
48589
|
"label.warning": {
|
|
48497
48590
|
color: theme.colors.danger
|
|
@@ -48539,7 +48632,7 @@ function Accept(_a) {
|
|
|
48539
48632
|
"data"
|
|
48540
48633
|
]);
|
|
48541
48634
|
const t = useTranslations26();
|
|
48542
|
-
const { acceptFieldStyle } = useWithOrchestratorTheme(
|
|
48635
|
+
const { acceptFieldStyle } = useWithOrchestratorTheme(getStyles11);
|
|
48543
48636
|
const legacy = !data;
|
|
48544
48637
|
const i18nBaseKey = data ? `pydanticForms.backendTranslations.${name}_accept` : "pydanticForms.backendTranslations";
|
|
48545
48638
|
data = data != null ? data : [
|
|
@@ -48668,9 +48761,9 @@ import { connectField as connectField2, filterDOMProps as filterDOMProps2 } from
|
|
|
48668
48761
|
import { EuiCheckbox as EuiCheckbox2, EuiFlexItem as EuiFlexItem13, EuiFormRow as EuiFormRow3, EuiText as EuiText11 } from "@elastic/eui";
|
|
48669
48762
|
|
|
48670
48763
|
// src/components/WfoForms/formFields/commonStyles.ts
|
|
48671
|
-
import { css as
|
|
48764
|
+
import { css as css17 } from "@emotion/react";
|
|
48672
48765
|
var getCommonFormFieldStyles = ({ theme }) => {
|
|
48673
|
-
const formRowStyle =
|
|
48766
|
+
const formRowStyle = css17({
|
|
48674
48767
|
".euiText": {
|
|
48675
48768
|
color: theme.colors.text
|
|
48676
48769
|
},
|
|
@@ -48687,11 +48780,11 @@ var getCommonFormFieldStyles = ({ theme }) => {
|
|
|
48687
48780
|
};
|
|
48688
48781
|
|
|
48689
48782
|
// src/components/WfoForms/formFields/BoolFieldStyling.ts
|
|
48690
|
-
import { css as
|
|
48783
|
+
import { css as css18 } from "@emotion/react";
|
|
48691
48784
|
var PRIMARY_COLOR = "#0077cc";
|
|
48692
48785
|
var LIGHT_GREY_COLOR = "#eff2f3";
|
|
48693
48786
|
var MEDIUM_GREY_COLOR = "#a6b6be";
|
|
48694
|
-
var boolFieldStyling =
|
|
48787
|
+
var boolFieldStyling = css18`
|
|
48695
48788
|
|
|
48696
48789
|
.bool-field {
|
|
48697
48790
|
.euiCheckbox .euiCheckbox__input ~ .euiCheckbox__label {
|
|
@@ -49027,8 +49120,8 @@ function ListItem({
|
|
|
49027
49120
|
var ListItemField = connectField8(ListItem, { initialValue: false });
|
|
49028
49121
|
|
|
49029
49122
|
// src/components/WfoForms/formFields/listFieldStyling.ts
|
|
49030
|
-
import { css as
|
|
49031
|
-
var listFieldStyling =
|
|
49123
|
+
import { css as css19 } from "@emotion/react";
|
|
49124
|
+
var listFieldStyling = css19`
|
|
49032
49125
|
.list-field {
|
|
49033
49126
|
ul {
|
|
49034
49127
|
display: flex;
|
|
@@ -50046,9 +50139,9 @@ var subscriptionHasTaggedProduct = (subscriptionDetail) => {
|
|
|
50046
50139
|
};
|
|
50047
50140
|
|
|
50048
50141
|
// src/components/WfoForms/formFields/deprecated/ContactPersonAutocompleteStyles.ts
|
|
50049
|
-
import { css as
|
|
50050
|
-
var
|
|
50051
|
-
const contactPersonAutocompleteStyling =
|
|
50142
|
+
import { css as css20 } from "@emotion/react";
|
|
50143
|
+
var getStyles12 = ({ theme }) => {
|
|
50144
|
+
const contactPersonAutocompleteStyling = css20`
|
|
50052
50145
|
.autocomplete-container {
|
|
50053
50146
|
position: relative;
|
|
50054
50147
|
}
|
|
@@ -50094,7 +50187,7 @@ var ContactPersonAutocomplete = ({
|
|
|
50094
50187
|
itemSelected,
|
|
50095
50188
|
suggestions
|
|
50096
50189
|
}) => {
|
|
50097
|
-
const { contactPersonAutocompleteStyling } = useWithOrchestratorTheme(
|
|
50190
|
+
const { contactPersonAutocompleteStyling } = useWithOrchestratorTheme(getStyles12);
|
|
50098
50191
|
const selectedRowRef = useRef5(null);
|
|
50099
50192
|
useEffect9(() => {
|
|
50100
50193
|
if (!isEmpty(suggestions) && selectedRowRef.current) {
|
|
@@ -50398,8 +50491,8 @@ import { connectField as connectField19, filterDOMProps as filterDOMProps19 } fr
|
|
|
50398
50491
|
import { EuiFlexItem as EuiFlexItem16, EuiFormRow as EuiFormRow12, EuiText as EuiText22 } from "@elastic/eui";
|
|
50399
50492
|
|
|
50400
50493
|
// src/components/WfoForms/formFields/deprecated/ImsPortIdFieldStyling.ts
|
|
50401
|
-
import { css as
|
|
50402
|
-
var imsPortIdFieldStyling =
|
|
50494
|
+
import { css as css21 } from "@emotion/react";
|
|
50495
|
+
var imsPortIdFieldStyling = css21`
|
|
50403
50496
|
section.node-port {
|
|
50404
50497
|
display: flex;
|
|
50405
50498
|
flex-direction: row;
|
|
@@ -50518,12 +50611,18 @@ function ImsPortId(_a) {
|
|
|
50518
50611
|
EuiFormRow12,
|
|
50519
50612
|
{
|
|
50520
50613
|
label,
|
|
50521
|
-
labelAppend: /* @__PURE__ */
|
|
50614
|
+
labelAppend: /* @__PURE__ */ jsxs77(EuiText22, { size: "m", children: [
|
|
50615
|
+
description,
|
|
50616
|
+
" "
|
|
50617
|
+
] }),
|
|
50522
50618
|
error: showInlineError ? errorMessage : false,
|
|
50523
50619
|
isInvalid: error,
|
|
50524
50620
|
id,
|
|
50525
50621
|
fullWidth: true,
|
|
50526
|
-
children: /* @__PURE__ */ jsxs77(
|
|
50622
|
+
children: !nodeValue && nodeSubscriptionId && /* @__PURE__ */ jsxs77(EuiText22, { children: [
|
|
50623
|
+
"This Node subscription is missing. Please check the nodes status: ",
|
|
50624
|
+
nodeSubscriptionId
|
|
50625
|
+
] }) || /* @__PURE__ */ jsxs77("section", { className: "node-port", children: [
|
|
50527
50626
|
/* @__PURE__ */ jsx130("div", { className: "node-select", children: /* @__PURE__ */ jsx130(
|
|
50528
50627
|
EuiFormRow12,
|
|
50529
50628
|
{
|
|
@@ -51155,7 +51254,7 @@ function IpNetwork(_a) {
|
|
|
51155
51254
|
var IpNetworkField = connectField20(IpNetwork, { kind: "leaf" });
|
|
51156
51255
|
|
|
51157
51256
|
// src/components/WfoForms/formFields/deprecated/IpPrefixTableFieldStyling.ts
|
|
51158
|
-
import { css as
|
|
51257
|
+
import { css as css22 } from "@emotion/react";
|
|
51159
51258
|
var DARK_GREY_COLOR = "#333333";
|
|
51160
51259
|
var LIGHTER_GREY_COLOR = "#999999";
|
|
51161
51260
|
var LIGHT_GOLD_COLOR = "#fca456";
|
|
@@ -51176,7 +51275,7 @@ function shadeColor(color, percent) {
|
|
|
51176
51275
|
const BB = B.toString(16).length === 1 ? "0" + B.toString(16) : B.toString(16);
|
|
51177
51276
|
return "#" + RR + GG + BB;
|
|
51178
51277
|
}
|
|
51179
|
-
var ipPrefixTableFieldStyling =
|
|
51278
|
+
var ipPrefixTableFieldStyling = css22`
|
|
51180
51279
|
table.ip-blocks {
|
|
51181
51280
|
word-break: break-all;
|
|
51182
51281
|
margin-bottom: 20px;
|
|
@@ -51264,8 +51363,8 @@ var ipPrefixTableFieldStyling = css21`
|
|
|
51264
51363
|
`;
|
|
51265
51364
|
|
|
51266
51365
|
// src/components/WfoForms/formFields/deprecated/SplitPrefixStyling.ts
|
|
51267
|
-
import { css as
|
|
51268
|
-
var splitPrefixStyling =
|
|
51366
|
+
import { css as css23 } from "@emotion/react";
|
|
51367
|
+
var splitPrefixStyling = css23`
|
|
51269
51368
|
section.split-prefix {
|
|
51270
51369
|
display: flex;
|
|
51271
51370
|
flex-direction: column;
|
|
@@ -51476,7 +51575,7 @@ function Vlan(_a) {
|
|
|
51476
51575
|
useEffect15(() => {
|
|
51477
51576
|
if (subscriptionId && isFetched && !portIsTagged && value !== "0") {
|
|
51478
51577
|
onChange("0");
|
|
51479
|
-
} else if (!subscriptionId && value !== "" || subscriptionId && portIsTagged && value === "0") {
|
|
51578
|
+
} else if (!disabled && (!subscriptionId && value !== "" || subscriptionId && portIsTagged && value === "0")) {
|
|
51480
51579
|
onChange("");
|
|
51481
51580
|
}
|
|
51482
51581
|
}, [onChange, subscriptionId, value, isFetched, portIsTagged]);
|
|
@@ -51741,8 +51840,8 @@ var useGetSubscriptionDropdownOptions = (tags = [], statuses = ["active"]) => {
|
|
|
51741
51840
|
};
|
|
51742
51841
|
|
|
51743
51842
|
// src/components/WfoForms/formFields/SubscriptionFieldStyling.ts
|
|
51744
|
-
import { css as
|
|
51745
|
-
var subscriptionFieldStyling =
|
|
51843
|
+
import { css as css24 } from "@emotion/react";
|
|
51844
|
+
var subscriptionFieldStyling = css24`
|
|
51746
51845
|
.subscription-field {
|
|
51747
51846
|
> div {
|
|
51748
51847
|
display: flex;
|
|
@@ -52010,10 +52109,10 @@ import { EuiFlexItem as EuiFlexItem22, EuiFormRow as EuiFormRow19, EuiText as Eu
|
|
|
52010
52109
|
|
|
52011
52110
|
// src/components/WfoForms/formFields/SummaryFieldStyling.ts
|
|
52012
52111
|
import { tint as tint3 } from "@elastic/eui";
|
|
52013
|
-
import { css as
|
|
52014
|
-
var
|
|
52112
|
+
import { css as css25 } from "@emotion/react";
|
|
52113
|
+
var getStyles13 = ({ theme }) => {
|
|
52015
52114
|
const toShadeColor = (color) => tint3(color, 0.9);
|
|
52016
|
-
const summaryFieldStyle =
|
|
52115
|
+
const summaryFieldStyle = css25({
|
|
52017
52116
|
"div.emailMessage": {
|
|
52018
52117
|
td: {
|
|
52019
52118
|
color: theme.colors.text
|
|
@@ -52067,7 +52166,7 @@ function Summary(_a) {
|
|
|
52067
52166
|
"description",
|
|
52068
52167
|
"data"
|
|
52069
52168
|
]);
|
|
52070
|
-
const { summaryFieldStyle } = useWithOrchestratorTheme(
|
|
52169
|
+
const { summaryFieldStyle } = useWithOrchestratorTheme(getStyles13);
|
|
52071
52170
|
if (!data) {
|
|
52072
52171
|
return null;
|
|
52073
52172
|
}
|
|
@@ -52108,7 +52207,7 @@ var SummaryField = connectField26(Summary, { kind: "leaf" });
|
|
|
52108
52207
|
import { useTranslations as useTranslations38 } from "next-intl";
|
|
52109
52208
|
import { connectField as connectField27 } from "uniforms";
|
|
52110
52209
|
import { jsx as jsx140 } from "@emotion/react/jsx-runtime";
|
|
52111
|
-
function
|
|
52210
|
+
function Customer2(_a) {
|
|
52112
52211
|
var props = __objRest(_a, []);
|
|
52113
52212
|
const t = useTranslations38("pydanticForms");
|
|
52114
52213
|
const { data: customers, isLoading } = useGetCustomersQuery();
|
|
@@ -52131,7 +52230,7 @@ function Customer(_a) {
|
|
|
52131
52230
|
})
|
|
52132
52231
|
);
|
|
52133
52232
|
}
|
|
52134
|
-
var CustomerField = connectField27(
|
|
52233
|
+
var CustomerField = connectField27(Customer2, { kind: "leaf" });
|
|
52135
52234
|
|
|
52136
52235
|
// src/components/WfoForms/formFields/ConnectedSelectField.tsx
|
|
52137
52236
|
import { connectField as connectField28 } from "uniforms";
|
|
@@ -52215,9 +52314,9 @@ function autoFieldFunction(props, uniforms) {
|
|
|
52215
52314
|
}
|
|
52216
52315
|
|
|
52217
52316
|
// src/components/WfoForms/UserInputFormStyling.ts
|
|
52218
|
-
import { css as
|
|
52317
|
+
import { css as css26 } from "@emotion/react";
|
|
52219
52318
|
var PRIMARY_COLOR2 = "#0077cc";
|
|
52220
|
-
var userInputFormStyling =
|
|
52319
|
+
var userInputFormStyling = css26`
|
|
52221
52320
|
.user-input-form {
|
|
52222
52321
|
h3 {
|
|
52223
52322
|
padding: 20px 0;
|
|
@@ -52767,8 +52866,12 @@ var UserInputFormWizard = ({
|
|
|
52767
52866
|
newUserInputs.push(currentFormData);
|
|
52768
52867
|
const promise = stepSubmit(newUserInputs);
|
|
52769
52868
|
const callback = (data) => {
|
|
52869
|
+
var _a;
|
|
52770
52870
|
window.scrollTo(0, 0);
|
|
52771
|
-
setForms([
|
|
52871
|
+
setForms([
|
|
52872
|
+
...forms,
|
|
52873
|
+
{ form: data.form, hasNext: (_a = data.meta) == null ? void 0 : _a.hasNext }
|
|
52874
|
+
]);
|
|
52772
52875
|
setUserInputs(newUserInputs);
|
|
52773
52876
|
};
|
|
52774
52877
|
return handlePromiseErrorWithCallback(
|
|
@@ -52878,10 +52981,10 @@ function CreateForm(props) {
|
|
|
52878
52981
|
submit([]),
|
|
52879
52982
|
510,
|
|
52880
52983
|
(json) => {
|
|
52881
|
-
var _a;
|
|
52984
|
+
var _a, _b;
|
|
52882
52985
|
setForm({
|
|
52883
52986
|
stepUserInput: json.form,
|
|
52884
|
-
hasNext: (_a = json.hasNext) != null ?
|
|
52987
|
+
hasNext: (_b = (_a = json.meta) == null ? void 0 : _a.hasNext) != null ? _b : false
|
|
52885
52988
|
});
|
|
52886
52989
|
}
|
|
52887
52990
|
);
|
|
@@ -54174,32 +54277,32 @@ import { EuiFlexGroup as EuiFlexGroup17, EuiFlexItem as EuiFlexItem25, EuiPanel
|
|
|
54174
54277
|
import { EuiFlexItem as EuiFlexItem23 } from "@elastic/eui";
|
|
54175
54278
|
|
|
54176
54279
|
// src/components/WfoWorkflowSteps/styles.ts
|
|
54177
|
-
import { css as
|
|
54178
|
-
var
|
|
54179
|
-
const stepSpacerStyle =
|
|
54280
|
+
import { css as css27 } from "@emotion/react";
|
|
54281
|
+
var getStyles14 = ({ theme, toSecondaryColor }) => {
|
|
54282
|
+
const stepSpacerStyle = css27({
|
|
54180
54283
|
borderLeft: `1px solid ${theme.colors.darkShade}`,
|
|
54181
54284
|
height: "24px",
|
|
54182
54285
|
marginLeft: "36px"
|
|
54183
54286
|
});
|
|
54184
|
-
const stepRowStyle =
|
|
54287
|
+
const stepRowStyle = css27({
|
|
54185
54288
|
flexGrow: 1,
|
|
54186
54289
|
alignItems: "center",
|
|
54187
54290
|
justifyContent: "flex-end"
|
|
54188
54291
|
});
|
|
54189
|
-
const stepListHeaderStyle =
|
|
54292
|
+
const stepListHeaderStyle = css27({
|
|
54190
54293
|
marginBottom: "24px",
|
|
54191
54294
|
marginTop: "60px",
|
|
54192
54295
|
alignItems: "flex-end"
|
|
54193
54296
|
});
|
|
54194
|
-
const stepListContentStyle =
|
|
54297
|
+
const stepListContentStyle = css27({
|
|
54195
54298
|
flexDirection: "row",
|
|
54196
54299
|
alignItems: "center"
|
|
54197
54300
|
});
|
|
54198
|
-
const stepListContentBoldTextStyle =
|
|
54301
|
+
const stepListContentBoldTextStyle = css27({
|
|
54199
54302
|
fontSize: theme.size.base,
|
|
54200
54303
|
fontWeight: theme.font.weight.bold
|
|
54201
54304
|
});
|
|
54202
|
-
const stepListContentAnchorStyle =
|
|
54305
|
+
const stepListContentAnchorStyle = css27({
|
|
54203
54306
|
marginTop: 2,
|
|
54204
54307
|
marginLeft: 0,
|
|
54205
54308
|
fontSize: theme.size.m,
|
|
@@ -54207,7 +54310,7 @@ var getStyles13 = ({ theme, toSecondaryColor }) => {
|
|
|
54207
54310
|
color: theme.colors.link,
|
|
54208
54311
|
cursor: "pointer"
|
|
54209
54312
|
});
|
|
54210
|
-
const stepListOptionsContainerStyle =
|
|
54313
|
+
const stepListOptionsContainerStyle = css27({
|
|
54211
54314
|
flexGrow: 0
|
|
54212
54315
|
});
|
|
54213
54316
|
const stepStateIcon = {
|
|
@@ -54223,32 +54326,32 @@ var getStyles13 = ({ theme, toSecondaryColor }) => {
|
|
|
54223
54326
|
color: theme.colors.disabled,
|
|
54224
54327
|
fontWeight: theme.font.weight.semiBold
|
|
54225
54328
|
};
|
|
54226
|
-
const stepStateSuccessIconStyle =
|
|
54329
|
+
const stepStateSuccessIconStyle = css27(__spreadProps(__spreadValues({}, stepStateIcon), {
|
|
54227
54330
|
backgroundColor: toSecondaryColor(theme.colors.primary)
|
|
54228
54331
|
}));
|
|
54229
|
-
const stepStateSuspendIconStyle =
|
|
54332
|
+
const stepStateSuspendIconStyle = css27(__spreadProps(__spreadValues({}, stepStateIcon), {
|
|
54230
54333
|
backgroundColor: toSecondaryColor(theme.colors.warning)
|
|
54231
54334
|
}));
|
|
54232
|
-
const stepStatePendingIconStyle =
|
|
54335
|
+
const stepStatePendingIconStyle = css27(__spreadProps(__spreadValues({}, stepStateIcon), {
|
|
54233
54336
|
backgroundColor: toSecondaryColor(theme.colors.darkShade)
|
|
54234
54337
|
}));
|
|
54235
|
-
const stepStateFailedIconStyle =
|
|
54338
|
+
const stepStateFailedIconStyle = css27(__spreadProps(__spreadValues({}, stepStateIcon), {
|
|
54236
54339
|
backgroundColor: toSecondaryColor(theme.colors.danger)
|
|
54237
54340
|
}));
|
|
54238
|
-
const stepHeaderRightStyle =
|
|
54341
|
+
const stepHeaderRightStyle = css27({
|
|
54239
54342
|
alignItems: "center"
|
|
54240
54343
|
});
|
|
54241
|
-
const stepEmailContainerStyle =
|
|
54344
|
+
const stepEmailContainerStyle = css27({
|
|
54242
54345
|
paddingLeft: 24,
|
|
54243
54346
|
width: 600,
|
|
54244
54347
|
marginTop: 0
|
|
54245
54348
|
});
|
|
54246
|
-
const getStepHeaderStyle = (isClickable) =>
|
|
54349
|
+
const getStepHeaderStyle = (isClickable) => css27({
|
|
54247
54350
|
gap: 0,
|
|
54248
54351
|
alignItems: "center",
|
|
54249
54352
|
cursor: isClickable ? "pointer" : "default"
|
|
54250
54353
|
});
|
|
54251
|
-
const getStepToggleExpandStyle = (isVisible) =>
|
|
54354
|
+
const getStepToggleExpandStyle = (isVisible) => css27({
|
|
54252
54355
|
marginRight: theme.base / 2,
|
|
54253
54356
|
visibility: isVisible ? "visible" : "hidden"
|
|
54254
54357
|
});
|
|
@@ -54305,7 +54408,7 @@ var WfoStepStatusIcon = ({
|
|
|
54305
54408
|
stepStateSuspendIconStyle,
|
|
54306
54409
|
stepStatePendingIconStyle,
|
|
54307
54410
|
stepStateFailedIconStyle
|
|
54308
|
-
} = useWithOrchestratorTheme(
|
|
54411
|
+
} = useWithOrchestratorTheme(getStyles14);
|
|
54309
54412
|
const [
|
|
54310
54413
|
stepStateStyle,
|
|
54311
54414
|
mainIconColor,
|
|
@@ -54448,7 +54551,7 @@ var WfoStep = React45.forwardRef(
|
|
|
54448
54551
|
stepDurationStyle,
|
|
54449
54552
|
stepRowStyle,
|
|
54450
54553
|
getStepToggleExpandStyle
|
|
54451
|
-
} = useWithOrchestratorTheme(
|
|
54554
|
+
} = useWithOrchestratorTheme(getStyles14);
|
|
54452
54555
|
const t = useTranslations47("processes.steps");
|
|
54453
54556
|
const hasHtmlMail = (_a = step.stateDelta) == null ? void 0 : _a.hasOwnProperty("confirmation_mail");
|
|
54454
54557
|
const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
|
|
@@ -54579,7 +54682,7 @@ var WfoStepList = React46.forwardRef(
|
|
|
54579
54682
|
isTask,
|
|
54580
54683
|
processId
|
|
54581
54684
|
}, reference) => {
|
|
54582
|
-
const { stepSpacerStyle } = useWithOrchestratorTheme(
|
|
54685
|
+
const { stepSpacerStyle } = useWithOrchestratorTheme(getStyles14);
|
|
54583
54686
|
const stepReferences = useRef6(/* @__PURE__ */ new Map());
|
|
54584
54687
|
let stepStartTime = startedAt;
|
|
54585
54688
|
useImperativeHandle(reference, () => ({
|
|
@@ -54659,7 +54762,7 @@ import {
|
|
|
54659
54762
|
|
|
54660
54763
|
// src/components/WfoDiff/styles.ts
|
|
54661
54764
|
import { shade as shade2, tint as tint4 } from "@elastic/eui";
|
|
54662
|
-
import { css as
|
|
54765
|
+
import { css as css28 } from "@emotion/react";
|
|
54663
54766
|
var getWfoDiffStyles = ({
|
|
54664
54767
|
theme,
|
|
54665
54768
|
toSecondaryColor,
|
|
@@ -54671,7 +54774,7 @@ var getWfoDiffStyles = ({
|
|
|
54671
54774
|
const insertCodeColor = isDarkThemeActive ? shade2(insertGutterColor, SHADE_FACTOR) : tint4(insertGutterColor, TINT_FACTOR);
|
|
54672
54775
|
const deleteColor = toSecondaryColor(theme.colors.danger);
|
|
54673
54776
|
const deleteSecondaryColor = isDarkThemeActive ? shade2(deleteColor, SHADE_FACTOR) : tint4(deleteColor, TINT_FACTOR);
|
|
54674
|
-
const diffStyle =
|
|
54777
|
+
const diffStyle = css28({
|
|
54675
54778
|
".diff-code-insert": {
|
|
54676
54779
|
backgroundColor: insertCodeColor
|
|
54677
54780
|
},
|
|
@@ -54779,9 +54882,9 @@ import { useTranslations as useTranslations49 } from "next-intl";
|
|
|
54779
54882
|
import { EuiCodeBlock, EuiText as EuiText32 } from "@elastic/eui";
|
|
54780
54883
|
|
|
54781
54884
|
// src/components/WfoWorkflowSteps/WfoTraceback/styles.ts
|
|
54782
|
-
import { css as
|
|
54783
|
-
var
|
|
54784
|
-
const codeBlockStyle =
|
|
54885
|
+
import { css as css29 } from "@emotion/react";
|
|
54886
|
+
var getStyles15 = ({ theme }) => {
|
|
54887
|
+
const codeBlockStyle = css29({
|
|
54785
54888
|
marginTop: theme.size.m,
|
|
54786
54889
|
marginBottom: theme.size.l,
|
|
54787
54890
|
borderRadius: theme.border.radius.medium
|
|
@@ -54794,7 +54897,7 @@ var getStyles14 = ({ theme }) => {
|
|
|
54794
54897
|
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
54795
54898
|
import { Fragment as Fragment39, jsx as jsx163, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
54796
54899
|
var WfoTraceback = ({ children }) => {
|
|
54797
|
-
const { codeBlockStyle } = useWithOrchestratorTheme(
|
|
54900
|
+
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles15);
|
|
54798
54901
|
const t = useTranslations49("processes.steps");
|
|
54799
54902
|
return /* @__PURE__ */ jsxs92(Fragment39, { children: [
|
|
54800
54903
|
/* @__PURE__ */ jsx163(EuiText32, { children: /* @__PURE__ */ jsx163("h3", { children: t("traceback") }) }),
|
|
@@ -54947,9 +55050,9 @@ import {
|
|
|
54947
55050
|
import { EuiText as EuiText33 } from "@elastic/eui";
|
|
54948
55051
|
|
|
54949
55052
|
// src/components/WfoTextAnchor/styles.ts
|
|
54950
|
-
import { css as
|
|
54951
|
-
var
|
|
54952
|
-
const textAnchorStyle =
|
|
55053
|
+
import { css as css30 } from "@emotion/react";
|
|
55054
|
+
var getStyles16 = ({ theme }) => {
|
|
55055
|
+
const textAnchorStyle = css30({
|
|
54953
55056
|
marginTop: theme.size.xxs,
|
|
54954
55057
|
marginLeft: 0,
|
|
54955
55058
|
fontSize: theme.size.m,
|
|
@@ -54965,7 +55068,7 @@ var getStyles15 = ({ theme }) => {
|
|
|
54965
55068
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
54966
55069
|
import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
|
|
54967
55070
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
54968
|
-
const { textAnchorStyle } = useWithOrchestratorTheme(
|
|
55071
|
+
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles16);
|
|
54969
55072
|
return /* @__PURE__ */ jsx165(EuiText33, { onClick, css: textAnchorStyle, children: text });
|
|
54970
55073
|
};
|
|
54971
55074
|
|
|
@@ -54992,7 +55095,7 @@ var WfoStepListHeader = ({
|
|
|
54992
55095
|
stepListContentStyle,
|
|
54993
55096
|
stepListContentBoldTextStyle,
|
|
54994
55097
|
stepListOptionsContainerStyle
|
|
54995
|
-
} = useWithOrchestratorTheme(
|
|
55098
|
+
} = useWithOrchestratorTheme(getStyles14);
|
|
54996
55099
|
const [isViewOptionOpen, setIsViewOptionOpen] = useState38(false);
|
|
54997
55100
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
54998
55101
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
@@ -55484,7 +55587,7 @@ var WfoProcessDetailPage = ({
|
|
|
55484
55587
|
var _a, _b;
|
|
55485
55588
|
const stepListRef = useRef7(null);
|
|
55486
55589
|
const [fetchInterval, setFetchInterval] = useState39();
|
|
55487
|
-
const [
|
|
55590
|
+
const [process3, setProcess] = useState39();
|
|
55488
55591
|
const { data, isLoading, isError: isError2 } = useGetProcessDetailQuery(
|
|
55489
55592
|
{ processId },
|
|
55490
55593
|
{ pollingInterval: fetchInterval }
|
|
@@ -55495,8 +55598,8 @@ var WfoProcessDetailPage = ({
|
|
|
55495
55598
|
}
|
|
55496
55599
|
}
|
|
55497
55600
|
useEffect25(() => {
|
|
55498
|
-
const
|
|
55499
|
-
const lastStatus =
|
|
55601
|
+
const process4 = data == null ? void 0 : data.processes[0];
|
|
55602
|
+
const lastStatus = process4 == null ? void 0 : process4.lastStatus.toLocaleLowerCase();
|
|
55500
55603
|
const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
|
|
55501
55604
|
setFetchInterval(
|
|
55502
55605
|
isInProgress ? processDetailRefetchInterval : void 0
|
|
@@ -55504,19 +55607,19 @@ var WfoProcessDetailPage = ({
|
|
|
55504
55607
|
}, [data, processDetailRefetchInterval]);
|
|
55505
55608
|
useEffect25(() => {
|
|
55506
55609
|
const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
|
|
55507
|
-
if (!
|
|
55610
|
+
if (!process3) {
|
|
55508
55611
|
setProcess(fetchedProcessDetails);
|
|
55509
55612
|
return;
|
|
55510
55613
|
}
|
|
55511
|
-
const shouldUpdateProcess =
|
|
55614
|
+
const shouldUpdateProcess = process3.lastStatus != (fetchedProcessDetails == null ? void 0 : fetchedProcessDetails.lastStatus) || process3.lastStep !== (fetchedProcessDetails == null ? void 0 : fetchedProcessDetails.lastStep);
|
|
55512
55615
|
if (shouldUpdateProcess) {
|
|
55513
55616
|
setProcess(fetchedProcessDetails);
|
|
55514
55617
|
}
|
|
55515
|
-
}, [data,
|
|
55516
|
-
const steps = (_a =
|
|
55517
|
-
const productNames = getProductNamesFromProcess(
|
|
55518
|
-
const pageTitle = (
|
|
55519
|
-
const isTask = (_b =
|
|
55618
|
+
}, [data, process3]);
|
|
55619
|
+
const steps = (_a = process3 == null ? void 0 : process3.steps) != null ? _a : [];
|
|
55620
|
+
const productNames = getProductNamesFromProcess(process3);
|
|
55621
|
+
const pageTitle = (process3 == null ? void 0 : process3.workflowName) || "";
|
|
55622
|
+
const isTask = (_b = process3 == null ? void 0 : process3.isTask) != null ? _b : false;
|
|
55520
55623
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
55521
55624
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
55522
55625
|
return /* @__PURE__ */ jsx168(
|
|
@@ -55525,7 +55628,7 @@ var WfoProcessDetailPage = ({
|
|
|
55525
55628
|
pageTitle,
|
|
55526
55629
|
productNames,
|
|
55527
55630
|
buttonsAreDisabled: isLoading || isError2,
|
|
55528
|
-
processDetail:
|
|
55631
|
+
processDetail: process3,
|
|
55529
55632
|
timelineItems,
|
|
55530
55633
|
onTimelineItemClick: (id) => {
|
|
55531
55634
|
var _a2;
|
|
@@ -55533,17 +55636,17 @@ var WfoProcessDetailPage = ({
|
|
|
55533
55636
|
},
|
|
55534
55637
|
isLoading,
|
|
55535
55638
|
hasError: isError2,
|
|
55536
|
-
children: isError2 && /* @__PURE__ */ jsx168(WfoError, {}) || isLoading && /* @__PURE__ */ jsx168(WfoLoading, {}) ||
|
|
55639
|
+
children: isError2 && /* @__PURE__ */ jsx168(WfoError, {}) || isLoading && /* @__PURE__ */ jsx168(WfoLoading, {}) || process3 !== void 0 && /* @__PURE__ */ jsx168(
|
|
55537
55640
|
WfoWorkflowStepList,
|
|
55538
55641
|
{
|
|
55539
55642
|
ref: stepListRef,
|
|
55540
|
-
processId:
|
|
55643
|
+
processId: process3.processId,
|
|
55541
55644
|
steps: groupedSteps.flatMap(
|
|
55542
55645
|
(groupedStep) => groupedStep.steps
|
|
55543
55646
|
),
|
|
55544
|
-
traceBack:
|
|
55545
|
-
userInputForm:
|
|
55546
|
-
startedAt:
|
|
55647
|
+
traceBack: process3.traceback,
|
|
55648
|
+
userInputForm: process3.form,
|
|
55649
|
+
startedAt: process3.startedAt,
|
|
55547
55650
|
isTask
|
|
55548
55651
|
}
|
|
55549
55652
|
) || /* @__PURE__ */ jsx168("h1", { children: "Invalid processId" })
|
|
@@ -55595,7 +55698,7 @@ var WfoStartProcessPage = ({
|
|
|
55595
55698
|
[productId, subscriptionId]
|
|
55596
55699
|
);
|
|
55597
55700
|
const { stepUserInput, hasNext } = form;
|
|
55598
|
-
const { getStepHeaderStyle, stepListContentBoldTextStyle } = useWithOrchestratorTheme(
|
|
55701
|
+
const { getStepHeaderStyle, stepListContentBoldTextStyle } = useWithOrchestratorTheme(getStyles14);
|
|
55599
55702
|
const {
|
|
55600
55703
|
data: timeLineItems = [],
|
|
55601
55704
|
isError: isError2,
|
|
@@ -55612,10 +55715,10 @@ var WfoStartProcessPage = ({
|
|
|
55612
55715
|
workflowName: processName,
|
|
55613
55716
|
userInputs: startProcessPayload ? [startProcessPayload, ...processInput] : [...processInput]
|
|
55614
55717
|
}).unwrap().then(
|
|
55615
|
-
(
|
|
55616
|
-
if (
|
|
55718
|
+
(process3) => {
|
|
55719
|
+
if (process3.id) {
|
|
55617
55720
|
const basePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
|
|
55618
|
-
router.push(`${basePath}/${
|
|
55721
|
+
router.push(`${basePath}/${process3.id}`);
|
|
55619
55722
|
}
|
|
55620
55723
|
},
|
|
55621
55724
|
// Reject handler
|
|
@@ -55647,10 +55750,10 @@ var WfoStartProcessPage = ({
|
|
|
55647
55750
|
useEffect26(() => {
|
|
55648
55751
|
if (processName) {
|
|
55649
55752
|
const clientResultCallback = (json) => {
|
|
55650
|
-
var _a;
|
|
55753
|
+
var _a, _b;
|
|
55651
55754
|
setForm({
|
|
55652
55755
|
stepUserInput: json.form,
|
|
55653
|
-
hasNext: (_a = json.hasNext) != null ?
|
|
55756
|
+
hasNext: (_b = (_a = json.meta) == null ? void 0 : _a.hasNext) != null ? _b : false
|
|
55654
55757
|
});
|
|
55655
55758
|
};
|
|
55656
55759
|
handlePromiseErrorWithCallback(
|
|
@@ -55658,6 +55761,9 @@ var WfoStartProcessPage = ({
|
|
|
55658
55761
|
510 /* FormNotComplete */,
|
|
55659
55762
|
clientResultCallback
|
|
55660
55763
|
);
|
|
55764
|
+
return () => {
|
|
55765
|
+
setForm({});
|
|
55766
|
+
};
|
|
55661
55767
|
}
|
|
55662
55768
|
}, [submit, processName]);
|
|
55663
55769
|
const processDetail = {
|
|
@@ -56462,7 +56568,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
56462
56568
|
|
|
56463
56569
|
// src/components/WfoProcessList/processListObjectMappers.ts
|
|
56464
56570
|
var mapGraphQlProcessListResultToPageInfo = (processesResponse) => processesResponse.pageInfo;
|
|
56465
|
-
var mapGraphQlProcessListResultToProcessListItems = (processes) => processes.map((
|
|
56571
|
+
var mapGraphQlProcessListResultToProcessListItems = (processes) => processes.map((process3) => {
|
|
56466
56572
|
const {
|
|
56467
56573
|
workflowName,
|
|
56468
56574
|
lastStep,
|
|
@@ -56477,7 +56583,7 @@ var mapGraphQlProcessListResultToProcessListItems = (processes) => processes.map
|
|
|
56477
56583
|
product,
|
|
56478
56584
|
customer,
|
|
56479
56585
|
isTask
|
|
56480
|
-
} =
|
|
56586
|
+
} = process3;
|
|
56481
56587
|
return {
|
|
56482
56588
|
workflowName,
|
|
56483
56589
|
lastStep,
|
|
@@ -56496,7 +56602,7 @@ var mapGraphQlProcessListResultToProcessListItems = (processes) => processes.map
|
|
|
56496
56602
|
customerAbbreviation: customer.shortcode
|
|
56497
56603
|
};
|
|
56498
56604
|
});
|
|
56499
|
-
var mapGraphQlProcessListExportResultToProcessListItems = (processesResponse) => processesResponse.processes.map((
|
|
56605
|
+
var mapGraphQlProcessListExportResultToProcessListItems = (processesResponse) => processesResponse.processes.map((process3) => {
|
|
56500
56606
|
const {
|
|
56501
56607
|
workflowName,
|
|
56502
56608
|
lastStep,
|
|
@@ -56511,7 +56617,7 @@ var mapGraphQlProcessListExportResultToProcessListItems = (processesResponse) =>
|
|
|
56511
56617
|
product,
|
|
56512
56618
|
customer,
|
|
56513
56619
|
isTask
|
|
56514
|
-
} =
|
|
56620
|
+
} = process3;
|
|
56515
56621
|
return {
|
|
56516
56622
|
workflowName,
|
|
56517
56623
|
lastStep,
|
|
@@ -56732,13 +56838,13 @@ var WfoProcessesList = ({
|
|
|
56732
56838
|
import { EuiCodeBlock as EuiCodeBlock2 } from "@elastic/eui";
|
|
56733
56839
|
|
|
56734
56840
|
// src/components/WfoJsonCodeBlock/styles.ts
|
|
56735
|
-
import { css as
|
|
56736
|
-
var
|
|
56737
|
-
const euiCodeBlockStyle =
|
|
56841
|
+
import { css as css31 } from "@emotion/react";
|
|
56842
|
+
var getStyles17 = ({ theme }) => {
|
|
56843
|
+
const euiCodeBlockStyle = css31({
|
|
56738
56844
|
marginTop: 10,
|
|
56739
56845
|
borderRadius: theme.border.radius.medium
|
|
56740
56846
|
});
|
|
56741
|
-
const euiBasicCodeBlockStyle =
|
|
56847
|
+
const euiBasicCodeBlockStyle = css31({
|
|
56742
56848
|
backgroundColor: "inherit",
|
|
56743
56849
|
".euiCodeBlock__pre": {
|
|
56744
56850
|
paddingTop: 0,
|
|
@@ -56761,7 +56867,7 @@ var WfoJsonCodeBlock = ({
|
|
|
56761
56867
|
data,
|
|
56762
56868
|
isBasicStyle = false
|
|
56763
56869
|
}) => {
|
|
56764
|
-
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(
|
|
56870
|
+
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles17);
|
|
56765
56871
|
const json = JSON.stringify(data, null, 4);
|
|
56766
56872
|
return /* @__PURE__ */ jsx179(
|
|
56767
56873
|
EuiCodeBlock2,
|
|
@@ -56787,10 +56893,10 @@ import {
|
|
|
56787
56893
|
} from "@elastic/eui";
|
|
56788
56894
|
|
|
56789
56895
|
// src/components/WfoSettings/styles.ts
|
|
56790
|
-
import { css as
|
|
56896
|
+
import { css as css32 } from "@emotion/react";
|
|
56791
56897
|
var getWfoFlushSettingsStyle = (wfoTheme) => {
|
|
56792
56898
|
const { theme } = wfoTheme;
|
|
56793
|
-
const comboboxStyle =
|
|
56899
|
+
const comboboxStyle = css32({
|
|
56794
56900
|
// .euiComboBox is needed to override eui styling (more specific)
|
|
56795
56901
|
"&.euiComboBox": {
|
|
56796
56902
|
".euiComboBox__inputWrap": {
|
|
@@ -57013,9 +57119,9 @@ var WfoErrorBoundary = class extends React57.Component {
|
|
|
57013
57119
|
import { EuiFlexGroup as EuiFlexGroup25 } from "@elastic/eui";
|
|
57014
57120
|
|
|
57015
57121
|
// src/components/WfoNoResults/styles.ts
|
|
57016
|
-
import { css as
|
|
57017
|
-
var
|
|
57018
|
-
const panelStyle =
|
|
57122
|
+
import { css as css33 } from "@emotion/react";
|
|
57123
|
+
var getStyles18 = ({ theme }) => {
|
|
57124
|
+
const panelStyle = css33({
|
|
57019
57125
|
display: "flex",
|
|
57020
57126
|
padding: theme.base * 2,
|
|
57021
57127
|
flexDirection: "row",
|
|
@@ -57036,7 +57142,7 @@ var getStyles17 = ({ theme }) => {
|
|
|
57036
57142
|
// src/components/WfoNoResults/WfoNoResults.tsx
|
|
57037
57143
|
import { jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
|
|
57038
57144
|
var WfoNoResults = ({ text, icon }) => {
|
|
57039
|
-
const { panelStyle } = useWithOrchestratorTheme(
|
|
57145
|
+
const { panelStyle } = useWithOrchestratorTheme(getStyles18);
|
|
57040
57146
|
return /* @__PURE__ */ jsxs106(EuiFlexGroup25, { css: panelStyle, children: [
|
|
57041
57147
|
icon,
|
|
57042
57148
|
" ",
|
|
@@ -57107,18 +57213,18 @@ import {
|
|
|
57107
57213
|
} from "@elastic/eui";
|
|
57108
57214
|
|
|
57109
57215
|
// src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
|
|
57110
|
-
import { css as
|
|
57216
|
+
import { css as css34 } from "@emotion/react";
|
|
57111
57217
|
var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
57112
|
-
const avatarStyle =
|
|
57218
|
+
const avatarStyle = css34({
|
|
57113
57219
|
maxHeight: theme.base * 3,
|
|
57114
57220
|
maxWidth: theme.base * 3
|
|
57115
57221
|
});
|
|
57116
|
-
const totalSectionStyle =
|
|
57222
|
+
const totalSectionStyle = css34({
|
|
57117
57223
|
display: "flex",
|
|
57118
57224
|
flexDirection: "column",
|
|
57119
57225
|
justifyContent: "space-between"
|
|
57120
57226
|
});
|
|
57121
|
-
const valueStyle =
|
|
57227
|
+
const valueStyle = css34({
|
|
57122
57228
|
fontSize: theme.size.l,
|
|
57123
57229
|
fontWeight: theme.font.weight.semiBold
|
|
57124
57230
|
});
|
|
@@ -57189,23 +57295,23 @@ var WfoOptionalLink = ({
|
|
|
57189
57295
|
};
|
|
57190
57296
|
|
|
57191
57297
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
57192
|
-
import { css as
|
|
57298
|
+
import { css as css35 } from "@emotion/react";
|
|
57193
57299
|
var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
57194
|
-
const listContainerStyle =
|
|
57300
|
+
const listContainerStyle = css35({
|
|
57195
57301
|
display: "flex",
|
|
57196
57302
|
flexDirection: "column",
|
|
57197
57303
|
justifyContent: "space-between",
|
|
57198
57304
|
flexGrow: 1,
|
|
57199
57305
|
borderColor: theme.colors.lightShade
|
|
57200
57306
|
});
|
|
57201
|
-
const listHeaderStyle =
|
|
57307
|
+
const listHeaderStyle = css35({
|
|
57202
57308
|
fontWeight: theme.font.weight.semiBold
|
|
57203
57309
|
});
|
|
57204
|
-
const listStyle =
|
|
57310
|
+
const listStyle = css35({
|
|
57205
57311
|
height: theme.base * 20,
|
|
57206
57312
|
overflow: "auto"
|
|
57207
57313
|
});
|
|
57208
|
-
const listItemContainerStyle =
|
|
57314
|
+
const listItemContainerStyle = css35({
|
|
57209
57315
|
paddingBlock: theme.size.m,
|
|
57210
57316
|
".highlight-icon": {
|
|
57211
57317
|
visibility: "hidden"
|
|
@@ -57214,13 +57320,13 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
57214
57320
|
visibility: "visible"
|
|
57215
57321
|
}
|
|
57216
57322
|
});
|
|
57217
|
-
const listItemTitleStyle =
|
|
57323
|
+
const listItemTitleStyle = css35({
|
|
57218
57324
|
fontWeight: theme.font.weight.medium
|
|
57219
57325
|
});
|
|
57220
|
-
const listItemSubtitleStyle =
|
|
57326
|
+
const listItemSubtitleStyle = css35({
|
|
57221
57327
|
fontWeight: theme.font.weight.regular
|
|
57222
57328
|
});
|
|
57223
|
-
const listItemHighlightIconStyle =
|
|
57329
|
+
const listItemHighlightIconStyle = css35({
|
|
57224
57330
|
visibility: "hidden"
|
|
57225
57331
|
});
|
|
57226
57332
|
return {
|
|
@@ -57340,9 +57446,9 @@ var WfoSummaryCards = ({ children }) => {
|
|
|
57340
57446
|
import { EuiFlexItem as EuiFlexItem35, EuiSpacer as EuiSpacer25 } from "@elastic/eui";
|
|
57341
57447
|
|
|
57342
57448
|
// src/components/WfoSummary/styles.ts
|
|
57343
|
-
import { css as
|
|
57449
|
+
import { css as css36 } from "@emotion/react";
|
|
57344
57450
|
var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
57345
|
-
const cardContainerStyle =
|
|
57451
|
+
const cardContainerStyle = css36({
|
|
57346
57452
|
height: theme.base * 36,
|
|
57347
57453
|
minWidth: theme.base * 25
|
|
57348
57454
|
});
|
|
@@ -57695,26 +57801,6 @@ var WfoProductsSummaryCard = () => {
|
|
|
57695
57801
|
);
|
|
57696
57802
|
};
|
|
57697
57803
|
|
|
57698
|
-
// src/components/WfoRouteChangeListener/WfoRouteChangeListener.tsx
|
|
57699
|
-
import { useEffect as useEffect30 } from "react";
|
|
57700
|
-
import { getSession as getSession3, signIn } from "next-auth/react";
|
|
57701
|
-
import { useRouter as useRouter16 } from "next/router";
|
|
57702
|
-
import { Fragment as Fragment47, jsx as jsx199 } from "@emotion/react/jsx-runtime";
|
|
57703
|
-
var WfoRouteChangeListener = () => {
|
|
57704
|
-
const router = useRouter16();
|
|
57705
|
-
const { authActive } = useGetOrchestratorConfig();
|
|
57706
|
-
useEffect30(() => {
|
|
57707
|
-
if (authActive) {
|
|
57708
|
-
getSession3().then((session) => {
|
|
57709
|
-
if (!session) {
|
|
57710
|
-
signIn();
|
|
57711
|
-
}
|
|
57712
|
-
});
|
|
57713
|
-
}
|
|
57714
|
-
}, [authActive, router]);
|
|
57715
|
-
return /* @__PURE__ */ jsx199(Fragment47, {});
|
|
57716
|
-
};
|
|
57717
|
-
|
|
57718
57804
|
// src/rtk/endpoints/translations.ts
|
|
57719
57805
|
var TRANSLATIONS_URL = "translations";
|
|
57720
57806
|
var translationsApi = orchestratorApi.injectEndpoints({
|
|
@@ -57756,7 +57842,7 @@ var en_GB_default = {
|
|
|
57756
57842
|
darkMode: "Dark mode",
|
|
57757
57843
|
lightMode: "Light mode",
|
|
57758
57844
|
websocketConnected: "The websocket is connected",
|
|
57759
|
-
websocketDisconnected: "The websocket is disconnected,
|
|
57845
|
+
websocketDisconnected: "The websocket is disconnected, click the icon or refresh the page"
|
|
57760
57846
|
},
|
|
57761
57847
|
common: {
|
|
57762
57848
|
product: "Product",
|
|
@@ -57803,6 +57889,7 @@ var en_GB_default = {
|
|
|
57803
57889
|
cancel: "Cancel",
|
|
57804
57890
|
submit: "Submit",
|
|
57805
57891
|
previous: "Previous",
|
|
57892
|
+
next: "Next",
|
|
57806
57893
|
previousQuestion: "Are you sure you want to leave this page? Any filled form data will be lost",
|
|
57807
57894
|
startTask: "Start task",
|
|
57808
57895
|
startWorkflow: "Start workflow",
|
|
@@ -58168,7 +58255,7 @@ var nl_NL_default = {
|
|
|
58168
58255
|
darkMode: "Dark mode",
|
|
58169
58256
|
lightMode: "Light mode",
|
|
58170
58257
|
websocketConnected: "De websocket is actief",
|
|
58171
|
-
websocketDisconnected: "De websocket verbinding is verbroken,
|
|
58258
|
+
websocketDisconnected: "De websocket verbinding is verbroken, klik op het icoon of ververs de pagina."
|
|
58172
58259
|
},
|
|
58173
58260
|
common: {
|
|
58174
58261
|
product: "Produkt",
|
|
@@ -58215,6 +58302,7 @@ var nl_NL_default = {
|
|
|
58215
58302
|
cancel: "Annuleren",
|
|
58216
58303
|
submit: "Verstuur",
|
|
58217
58304
|
previous: "Vorige",
|
|
58305
|
+
next: "Volgende",
|
|
58218
58306
|
startTask: "Start taak",
|
|
58219
58307
|
previousQuestion: "Weet je zeker dat je deze pagina wilt verlaten? Ingevulde velden worden niet opgeslagen",
|
|
58220
58308
|
startWorkflow: "Start workflow",
|
|
@@ -58783,7 +58871,6 @@ export {
|
|
|
58783
58871
|
WfoRelatedSubscriptions,
|
|
58784
58872
|
WfoResetTextSearchIndexButton,
|
|
58785
58873
|
WfoResourceTypesPage,
|
|
58786
|
-
WfoRouteChangeListener,
|
|
58787
58874
|
WfoSearchField,
|
|
58788
58875
|
WfoSearchStrikethrough,
|
|
58789
58876
|
WfoSettingsModal,
|
|
@@ -58854,6 +58941,7 @@ export {
|
|
|
58854
58941
|
defaultWorkflowsListTabs,
|
|
58855
58942
|
determineNewSortOrder,
|
|
58856
58943
|
determinePageIndex,
|
|
58944
|
+
emptyOrchestratorConfig,
|
|
58857
58945
|
filterDataByCriteria,
|
|
58858
58946
|
flattenArrayProps,
|
|
58859
58947
|
formatDate,
|
|
@@ -58865,6 +58953,7 @@ export {
|
|
|
58865
58953
|
getCustomApiSlice,
|
|
58866
58954
|
getDataSortHandler,
|
|
58867
58955
|
getDate,
|
|
58956
|
+
getEnvironmentVariables,
|
|
58868
58957
|
getFieldFromProductBlockInstanceValues,
|
|
58869
58958
|
getFirstUuidPart,
|
|
58870
58959
|
getFormFieldsBaseStyle,
|
|
@@ -58884,7 +58973,7 @@ export {
|
|
|
58884
58973
|
getSortDirectionFromString,
|
|
58885
58974
|
getStatusBadgeColor,
|
|
58886
58975
|
getStepContent,
|
|
58887
|
-
|
|
58976
|
+
getStyles12 as getStyles,
|
|
58888
58977
|
getTableConfigFromLocalStorage,
|
|
58889
58978
|
getTasksListTabTypeFromString,
|
|
58890
58979
|
getTypedFieldFromObject,
|
|
@@ -58955,6 +59044,7 @@ export {
|
|
|
58955
59044
|
useGetCacheNamesQuery,
|
|
58956
59045
|
useGetCustomerQuery,
|
|
58957
59046
|
useGetCustomersQuery,
|
|
59047
|
+
useGetCustomersWithSubscriptionCountQuery,
|
|
58958
59048
|
useGetEngineStatusQuery,
|
|
58959
59049
|
useGetInUseByRelationDetailsQuery,
|
|
58960
59050
|
useGetOrchestratorConfig,
|