@orchestrator-ui/orchestrator-ui-components 5.7.1 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +12 -12
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +14 -5
- package/dist/index.js +463 -401
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WfoBadges/WfoWorkflowTargetBadge/WfoWorkflowTargetBadge.tsx +7 -0
- package/src/components/WfoPydanticForm/WfoPydanticForm.tsx +3 -1
- package/src/components/WfoPydanticForm/fields/WfoDropdown.tsx +2 -2
- package/src/components/WfoPydanticForm/fields/WfoInteger.tsx +11 -1
- package/src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx +2 -2
- package/src/components/WfoPydanticForm/fields/WfoRadio.tsx +2 -2
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx +16 -14
- package/src/components/WfoPydanticForm/fields/WfoText.tsx +10 -2
- package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx +109 -110
- package/src/components/WfoSubscription/utils/utils.ts +4 -0
- package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +12 -0
- package/src/configuration/policy-resources.ts +1 -0
- package/src/configuration/version.ts +1 -1
- package/src/messages/en-GB.json +5 -0
- package/src/messages/nl-NL.json +5 -0
- package/src/rtk/endpoints/metadata/workflows.ts +1 -1
- package/src/types/types.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var require_xlink = __commonJS({
|
|
|
241
241
|
xLinkType: null
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
function xlinkTransform(
|
|
244
|
+
function xlinkTransform(_5, prop2) {
|
|
245
245
|
return "xlink:" + prop2.slice(5).toLowerCase();
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -261,7 +261,7 @@ var require_xml = __commonJS({
|
|
|
261
261
|
xmlSpace: null
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
function xmlTransform(
|
|
264
|
+
function xmlTransform(_5, prop2) {
|
|
265
265
|
return "xml:" + prop2.slice(3).toLowerCase();
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -373,7 +373,7 @@ var require_aria = __commonJS({
|
|
|
373
373
|
role: null
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
-
function ariaTransform(
|
|
376
|
+
function ariaTransform(_5, prop2) {
|
|
377
377
|
return prop2 === "role" ? prop2 : "aria-" + prop2.slice(4).toLowerCase();
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -3835,7 +3835,7 @@ var require_prism_core = __commonJS({
|
|
|
3835
3835
|
var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
|
|
3836
3836
|
var uniqueId = 0;
|
|
3837
3837
|
var plainTextGrammar = {};
|
|
3838
|
-
var
|
|
3838
|
+
var _5 = {
|
|
3839
3839
|
/**
|
|
3840
3840
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
3841
3841
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -3944,9 +3944,9 @@ var require_prism_core = __commonJS({
|
|
|
3944
3944
|
visited = visited || {};
|
|
3945
3945
|
var clone;
|
|
3946
3946
|
var id;
|
|
3947
|
-
switch (
|
|
3947
|
+
switch (_5.util.type(o)) {
|
|
3948
3948
|
case "Object":
|
|
3949
|
-
id =
|
|
3949
|
+
id = _5.util.objId(o);
|
|
3950
3950
|
if (visited[id]) {
|
|
3951
3951
|
return visited[id];
|
|
3952
3952
|
}
|
|
@@ -3963,7 +3963,7 @@ var require_prism_core = __commonJS({
|
|
|
3963
3963
|
clone
|
|
3964
3964
|
);
|
|
3965
3965
|
case "Array":
|
|
3966
|
-
id =
|
|
3966
|
+
id = _5.util.objId(o);
|
|
3967
3967
|
if (visited[id]) {
|
|
3968
3968
|
return visited[id];
|
|
3969
3969
|
}
|
|
@@ -4121,7 +4121,7 @@ var require_prism_core = __commonJS({
|
|
|
4121
4121
|
* });
|
|
4122
4122
|
*/
|
|
4123
4123
|
extend: function(id, redef) {
|
|
4124
|
-
var lang2 =
|
|
4124
|
+
var lang2 = _5.util.clone(_5.languages[id]);
|
|
4125
4125
|
for (var key in redef) {
|
|
4126
4126
|
lang2[key] = redef[key];
|
|
4127
4127
|
}
|
|
@@ -4204,7 +4204,7 @@ var require_prism_core = __commonJS({
|
|
|
4204
4204
|
*/
|
|
4205
4205
|
insertBefore: function(inside, before, insert2, root) {
|
|
4206
4206
|
root = root || /** @type {any} */
|
|
4207
|
-
|
|
4207
|
+
_5.languages;
|
|
4208
4208
|
var grammar = root[inside];
|
|
4209
4209
|
var ret = {};
|
|
4210
4210
|
for (var token in grammar) {
|
|
@@ -4223,7 +4223,7 @@ var require_prism_core = __commonJS({
|
|
|
4223
4223
|
}
|
|
4224
4224
|
var old = root[inside];
|
|
4225
4225
|
root[inside] = ret;
|
|
4226
|
-
|
|
4226
|
+
_5.languages.DFS(_5.languages, function(key, value) {
|
|
4227
4227
|
if (value === old && key != inside) {
|
|
4228
4228
|
this[key] = ret;
|
|
4229
4229
|
}
|
|
@@ -4233,12 +4233,12 @@ var require_prism_core = __commonJS({
|
|
|
4233
4233
|
// Traverse a language definition with Depth First Search
|
|
4234
4234
|
DFS: function DFS(o, callback, type, visited) {
|
|
4235
4235
|
visited = visited || {};
|
|
4236
|
-
var objId =
|
|
4236
|
+
var objId = _5.util.objId;
|
|
4237
4237
|
for (var i in o) {
|
|
4238
4238
|
if (o.hasOwnProperty(i)) {
|
|
4239
4239
|
callback.call(o, i, o[i], type || i);
|
|
4240
4240
|
var property = o[i];
|
|
4241
|
-
var propertyType =
|
|
4241
|
+
var propertyType = _5.util.type(property);
|
|
4242
4242
|
if (propertyType === "Object" && !visited[objId(property)]) {
|
|
4243
4243
|
visited[objId(property)] = true;
|
|
4244
4244
|
DFS(property, callback, null, visited);
|
|
@@ -4264,7 +4264,7 @@ var require_prism_core = __commonJS({
|
|
|
4264
4264
|
* @public
|
|
4265
4265
|
*/
|
|
4266
4266
|
highlightAll: function(async, callback) {
|
|
4267
|
-
|
|
4267
|
+
_5.highlightAllUnder(document, async, callback);
|
|
4268
4268
|
},
|
|
4269
4269
|
/**
|
|
4270
4270
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -4287,11 +4287,11 @@ var require_prism_core = __commonJS({
|
|
|
4287
4287
|
container,
|
|
4288
4288
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4289
4289
|
};
|
|
4290
|
-
|
|
4290
|
+
_5.hooks.run("before-highlightall", env);
|
|
4291
4291
|
env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
|
|
4292
|
-
|
|
4292
|
+
_5.hooks.run("before-all-elements-highlight", env);
|
|
4293
4293
|
for (var i = 0, element; element = env.elements[i++]; ) {
|
|
4294
|
-
|
|
4294
|
+
_5.highlightElement(element, async === true, env.callback);
|
|
4295
4295
|
}
|
|
4296
4296
|
},
|
|
4297
4297
|
/**
|
|
@@ -4323,12 +4323,12 @@ var require_prism_core = __commonJS({
|
|
|
4323
4323
|
* @public
|
|
4324
4324
|
*/
|
|
4325
4325
|
highlightElement: function(element, async, callback) {
|
|
4326
|
-
var language =
|
|
4327
|
-
var grammar =
|
|
4328
|
-
|
|
4326
|
+
var language = _5.util.getLanguage(element);
|
|
4327
|
+
var grammar = _5.languages[language];
|
|
4328
|
+
_5.util.setLanguage(element, language);
|
|
4329
4329
|
var parent = element.parentElement;
|
|
4330
4330
|
if (parent && parent.nodeName.toLowerCase() === "pre") {
|
|
4331
|
-
|
|
4331
|
+
_5.util.setLanguage(parent, language);
|
|
4332
4332
|
}
|
|
4333
4333
|
var code = element.textContent;
|
|
4334
4334
|
var env = {
|
|
@@ -4339,29 +4339,29 @@ var require_prism_core = __commonJS({
|
|
|
4339
4339
|
};
|
|
4340
4340
|
function insertHighlightedCode(highlightedCode) {
|
|
4341
4341
|
env.highlightedCode = highlightedCode;
|
|
4342
|
-
|
|
4342
|
+
_5.hooks.run("before-insert", env);
|
|
4343
4343
|
env.element.innerHTML = env.highlightedCode;
|
|
4344
|
-
|
|
4345
|
-
|
|
4344
|
+
_5.hooks.run("after-highlight", env);
|
|
4345
|
+
_5.hooks.run("complete", env);
|
|
4346
4346
|
callback && callback.call(env.element);
|
|
4347
4347
|
}
|
|
4348
|
-
|
|
4348
|
+
_5.hooks.run("before-sanity-check", env);
|
|
4349
4349
|
parent = env.element.parentElement;
|
|
4350
4350
|
if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
|
|
4351
4351
|
parent.setAttribute("tabindex", "0");
|
|
4352
4352
|
}
|
|
4353
4353
|
if (!env.code) {
|
|
4354
|
-
|
|
4354
|
+
_5.hooks.run("complete", env);
|
|
4355
4355
|
callback && callback.call(env.element);
|
|
4356
4356
|
return;
|
|
4357
4357
|
}
|
|
4358
|
-
|
|
4358
|
+
_5.hooks.run("before-highlight", env);
|
|
4359
4359
|
if (!env.grammar) {
|
|
4360
|
-
insertHighlightedCode(
|
|
4360
|
+
insertHighlightedCode(_5.util.encode(env.code));
|
|
4361
4361
|
return;
|
|
4362
4362
|
}
|
|
4363
4363
|
if (async && _self2.Worker) {
|
|
4364
|
-
var worker = new Worker(
|
|
4364
|
+
var worker = new Worker(_5.filename);
|
|
4365
4365
|
worker.onmessage = function(evt) {
|
|
4366
4366
|
insertHighlightedCode(evt.data);
|
|
4367
4367
|
};
|
|
@@ -4371,7 +4371,7 @@ var require_prism_core = __commonJS({
|
|
|
4371
4371
|
immediateClose: true
|
|
4372
4372
|
}));
|
|
4373
4373
|
} else {
|
|
4374
|
-
insertHighlightedCode(
|
|
4374
|
+
insertHighlightedCode(_5.highlight(env.code, env.grammar, env.language));
|
|
4375
4375
|
}
|
|
4376
4376
|
},
|
|
4377
4377
|
/**
|
|
@@ -4400,13 +4400,13 @@ var require_prism_core = __commonJS({
|
|
|
4400
4400
|
grammar,
|
|
4401
4401
|
language
|
|
4402
4402
|
};
|
|
4403
|
-
|
|
4403
|
+
_5.hooks.run("before-tokenize", env);
|
|
4404
4404
|
if (!env.grammar) {
|
|
4405
4405
|
throw new Error('The language "' + env.language + '" has no grammar.');
|
|
4406
4406
|
}
|
|
4407
|
-
env.tokens =
|
|
4408
|
-
|
|
4409
|
-
return Token.stringify(
|
|
4407
|
+
env.tokens = _5.tokenize(env.code, env.grammar);
|
|
4408
|
+
_5.hooks.run("after-tokenize", env);
|
|
4409
|
+
return Token.stringify(_5.util.encode(env.tokens), env.language);
|
|
4410
4410
|
},
|
|
4411
4411
|
/**
|
|
4412
4412
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -4465,7 +4465,7 @@ var require_prism_core = __commonJS({
|
|
|
4465
4465
|
* @public
|
|
4466
4466
|
*/
|
|
4467
4467
|
add: function(name, callback) {
|
|
4468
|
-
var hooks =
|
|
4468
|
+
var hooks = _5.hooks.all;
|
|
4469
4469
|
hooks[name] = hooks[name] || [];
|
|
4470
4470
|
hooks[name].push(callback);
|
|
4471
4471
|
},
|
|
@@ -4479,7 +4479,7 @@ var require_prism_core = __commonJS({
|
|
|
4479
4479
|
* @public
|
|
4480
4480
|
*/
|
|
4481
4481
|
run: function(name, env) {
|
|
4482
|
-
var callbacks =
|
|
4482
|
+
var callbacks = _5.hooks.all[name];
|
|
4483
4483
|
if (!callbacks || !callbacks.length) {
|
|
4484
4484
|
return;
|
|
4485
4485
|
}
|
|
@@ -4490,7 +4490,7 @@ var require_prism_core = __commonJS({
|
|
|
4490
4490
|
},
|
|
4491
4491
|
Token
|
|
4492
4492
|
};
|
|
4493
|
-
_self2.Prism =
|
|
4493
|
+
_self2.Prism = _5;
|
|
4494
4494
|
function Token(type, content, alias, matchedStr) {
|
|
4495
4495
|
this.type = type;
|
|
4496
4496
|
this.content = content;
|
|
@@ -4524,7 +4524,7 @@ var require_prism_core = __commonJS({
|
|
|
4524
4524
|
env.classes.push(aliases);
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
|
-
|
|
4527
|
+
_5.hooks.run("wrap", env);
|
|
4528
4528
|
var attributes = "";
|
|
4529
4529
|
for (var name in env.attributes) {
|
|
4530
4530
|
attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, """) + '"';
|
|
@@ -4620,7 +4620,7 @@ var require_prism_core = __commonJS({
|
|
|
4620
4620
|
pos += before.length;
|
|
4621
4621
|
}
|
|
4622
4622
|
removeRange(tokenList, removeFrom, removeCount);
|
|
4623
|
-
var wrapped = new Token(token, inside ?
|
|
4623
|
+
var wrapped = new Token(token, inside ? _5.tokenize(matchStr, inside) : matchStr, alias, matchStr);
|
|
4624
4624
|
currentNode = addAfter(tokenList, removeFrom, wrapped);
|
|
4625
4625
|
if (after) {
|
|
4626
4626
|
addAfter(tokenList, currentNode, after);
|
|
@@ -4675,35 +4675,35 @@ var require_prism_core = __commonJS({
|
|
|
4675
4675
|
}
|
|
4676
4676
|
if (!_self2.document) {
|
|
4677
4677
|
if (!_self2.addEventListener) {
|
|
4678
|
-
return
|
|
4678
|
+
return _5;
|
|
4679
4679
|
}
|
|
4680
|
-
if (!
|
|
4680
|
+
if (!_5.disableWorkerMessageHandler) {
|
|
4681
4681
|
_self2.addEventListener("message", function(evt) {
|
|
4682
4682
|
var message = JSON.parse(evt.data);
|
|
4683
4683
|
var lang2 = message.language;
|
|
4684
4684
|
var code = message.code;
|
|
4685
4685
|
var immediateClose = message.immediateClose;
|
|
4686
|
-
_self2.postMessage(
|
|
4686
|
+
_self2.postMessage(_5.highlight(code, _5.languages[lang2], lang2));
|
|
4687
4687
|
if (immediateClose) {
|
|
4688
4688
|
_self2.close();
|
|
4689
4689
|
}
|
|
4690
4690
|
}, false);
|
|
4691
4691
|
}
|
|
4692
|
-
return
|
|
4692
|
+
return _5;
|
|
4693
4693
|
}
|
|
4694
|
-
var script =
|
|
4694
|
+
var script = _5.util.currentScript();
|
|
4695
4695
|
if (script) {
|
|
4696
|
-
|
|
4696
|
+
_5.filename = script.src;
|
|
4697
4697
|
if (script.hasAttribute("data-manual")) {
|
|
4698
|
-
|
|
4698
|
+
_5.manual = true;
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
4701
|
function highlightAutomaticallyCallback() {
|
|
4702
|
-
if (!
|
|
4703
|
-
|
|
4702
|
+
if (!_5.manual) {
|
|
4703
|
+
_5.highlightAll();
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
4706
|
-
if (!
|
|
4706
|
+
if (!_5.manual) {
|
|
4707
4707
|
var readyState = document.readyState;
|
|
4708
4708
|
if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
|
|
4709
4709
|
document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
|
|
@@ -4715,7 +4715,7 @@ var require_prism_core = __commonJS({
|
|
|
4715
4715
|
}
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
|
-
return
|
|
4718
|
+
return _5;
|
|
4719
4719
|
}(_self);
|
|
4720
4720
|
if (typeof module !== "undefined" && module.exports) {
|
|
4721
4721
|
module.exports = Prism;
|
|
@@ -26790,6 +26790,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26790
26790
|
PolicyResource2["SUBSCRIPTION_CREATE"] = "/orchestrator/processes/create/process/menu";
|
|
26791
26791
|
PolicyResource2["SUBSCRIPTION_MODIFY"] = "/orchestrator/subscriptions/modify/";
|
|
26792
26792
|
PolicyResource2["SUBSCRIPTION_TERMINATE"] = "/orchestrator/subscriptions/terminate/";
|
|
26793
|
+
PolicyResource2["SUBSCRIPTION_RECONCILE"] = "/orchestrator/subscriptions/reconcile/";
|
|
26793
26794
|
PolicyResource2["SUBSCRIPTION_VALIDATE"] = "/orchestrator/subscriptions/validate/";
|
|
26794
26795
|
PolicyResource2["TASKS_CREATE"] = "/orchestrator/processes/create/task";
|
|
26795
26796
|
PolicyResource2["TASKS_RETRY_ALL"] = "/orchestrator/processes/all-tasks/retry";
|
|
@@ -26800,7 +26801,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26800
26801
|
})(PolicyResource || {});
|
|
26801
26802
|
|
|
26802
26803
|
// src/configuration/version.ts
|
|
26803
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.
|
|
26804
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.8.1";
|
|
26804
26805
|
|
|
26805
26806
|
// src/types/types.ts
|
|
26806
26807
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -26839,6 +26840,7 @@ var WorkflowTarget = /* @__PURE__ */ ((WorkflowTarget2) => {
|
|
|
26839
26840
|
WorkflowTarget2["TERMINATE"] = "terminate";
|
|
26840
26841
|
WorkflowTarget2["SYSTEM"] = "system";
|
|
26841
26842
|
WorkflowTarget2["VALIDATE"] = "validate";
|
|
26843
|
+
WorkflowTarget2["RECONCILE"] = "reconcile";
|
|
26842
26844
|
return WorkflowTarget2;
|
|
26843
26845
|
})(WorkflowTarget || {});
|
|
26844
26846
|
var StepStatus = /* @__PURE__ */ ((StepStatus2) => {
|
|
@@ -28696,7 +28698,7 @@ function createImmutableStateInvariantMiddleware(options = {}) {
|
|
|
28696
28698
|
return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);
|
|
28697
28699
|
}, getSerialize2 = function(serializer, decycler) {
|
|
28698
28700
|
let stack = [], keys = [];
|
|
28699
|
-
if (!decycler) decycler = function(
|
|
28701
|
+
if (!decycler) decycler = function(_5, value) {
|
|
28700
28702
|
if (stack[0] === value) return "[Circular ~]";
|
|
28701
28703
|
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
|
|
28702
28704
|
};
|
|
@@ -29336,7 +29338,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
29336
29338
|
message: "Aborted due to condition callback returning false."
|
|
29337
29339
|
};
|
|
29338
29340
|
}
|
|
29339
|
-
const abortedPromise = new Promise((
|
|
29341
|
+
const abortedPromise = new Promise((_5, reject) => {
|
|
29340
29342
|
abortHandler = () => {
|
|
29341
29343
|
reject({
|
|
29342
29344
|
name: "AbortError",
|
|
@@ -31843,7 +31845,7 @@ var buildCacheLifecycleHandler = ({
|
|
|
31843
31845
|
});
|
|
31844
31846
|
lifecycleMap[queryCacheKey] = lifecycle;
|
|
31845
31847
|
const selector = api.endpoints[endpointName].select(isAnyQueryDefinition(endpointDefinition) ? originalArgs : queryCacheKey);
|
|
31846
|
-
const extra = mwApi.dispatch((
|
|
31848
|
+
const extra = mwApi.dispatch((_5, __, extra2) => extra2);
|
|
31847
31849
|
const lifecycleApi = {
|
|
31848
31850
|
...mwApi,
|
|
31849
31851
|
getCacheEntry: () => selector(mwApi.getState()),
|
|
@@ -32096,7 +32098,7 @@ var buildQueryLifecycleHandler = ({
|
|
|
32096
32098
|
});
|
|
32097
32099
|
lifecycleMap[requestId] = lifecycle;
|
|
32098
32100
|
const selector = api.endpoints[endpointName].select(isAnyQueryDefinition(endpointDefinition) ? originalArgs : requestId);
|
|
32099
|
-
const extra = mwApi.dispatch((
|
|
32101
|
+
const extra = mwApi.dispatch((_5, __, extra2) => extra2);
|
|
32100
32102
|
const lifecycleApi = {
|
|
32101
32103
|
...mwApi,
|
|
32102
32104
|
getCacheEntry: () => selector(mwApi.getState()),
|
|
@@ -32708,8 +32710,8 @@ function buildHooks({
|
|
|
32708
32710
|
createSelector2([
|
|
32709
32711
|
// @ts-ignore
|
|
32710
32712
|
select(stableArg),
|
|
32711
|
-
(
|
|
32712
|
-
(
|
|
32713
|
+
(_5, lastResult) => lastResult,
|
|
32714
|
+
(_5) => stableArg
|
|
32713
32715
|
], preSelector, {
|
|
32714
32716
|
memoizeOptions: {
|
|
32715
32717
|
resultEqualityCheck: shallowEqual2
|
|
@@ -34031,7 +34033,7 @@ query MetadataWorkflows(
|
|
|
34031
34033
|
after: $after
|
|
34032
34034
|
sortBy: $sortBy
|
|
34033
34035
|
query: $query
|
|
34034
|
-
filterBy: { field: "target", value: "CREATE|MODIFY|TERMINATE" }
|
|
34036
|
+
filterBy: { field: "target", value: "CREATE|MODIFY|TERMINATE|RECONCILE" }
|
|
34035
34037
|
) {
|
|
34036
34038
|
page {
|
|
34037
34039
|
workflowId
|
|
@@ -34080,7 +34082,7 @@ var workflowsApi = orchestratorApi.injectEndpoints({
|
|
|
34080
34082
|
document: workflowsDescription,
|
|
34081
34083
|
variables
|
|
34082
34084
|
}),
|
|
34083
|
-
transformResponse: (response,
|
|
34085
|
+
transformResponse: (response, _5, variables) => {
|
|
34084
34086
|
const workflows = response.workflows.page || [];
|
|
34085
34087
|
const workflow = workflows.find(
|
|
34086
34088
|
({ name: name2 }) => name2 === variables.workflowName
|
|
@@ -34864,7 +34866,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
|
|
|
34864
34866
|
queryFn: () => {
|
|
34865
34867
|
return { data: true };
|
|
34866
34868
|
},
|
|
34867
|
-
async onCacheEntryAdded(
|
|
34869
|
+
async onCacheEntryAdded(_5, {
|
|
34868
34870
|
cacheDataLoaded,
|
|
34869
34871
|
cacheEntryRemoved,
|
|
34870
34872
|
dispatch,
|
|
@@ -38237,7 +38239,7 @@ var WfoStartButtonComboBox = ({
|
|
|
38237
38239
|
css: selectableStyle,
|
|
38238
38240
|
searchable: true,
|
|
38239
38241
|
options,
|
|
38240
|
-
onChange: (
|
|
38242
|
+
onChange: (_5, __, changedOption) => onOptionChange(changedOption),
|
|
38241
38243
|
height: 200,
|
|
38242
38244
|
children: (list, search) => /* @__PURE__ */ jsxs41(Fragment3, { children: [
|
|
38243
38245
|
search,
|
|
@@ -39164,7 +39166,9 @@ var WfoWorkflowTargetBadge = ({
|
|
|
39164
39166
|
success,
|
|
39165
39167
|
successText,
|
|
39166
39168
|
warning: warning2,
|
|
39167
|
-
warningText
|
|
39169
|
+
warningText,
|
|
39170
|
+
accent,
|
|
39171
|
+
accentText
|
|
39168
39172
|
} = theme.colors;
|
|
39169
39173
|
switch (_target?.toLowerCase()) {
|
|
39170
39174
|
case "create" /* CREATE */:
|
|
@@ -39188,6 +39192,11 @@ var WfoWorkflowTargetBadge = ({
|
|
|
39188
39192
|
badgeColor: toSecondaryColor(danger),
|
|
39189
39193
|
textColor: dangerText
|
|
39190
39194
|
};
|
|
39195
|
+
case "reconcile" /* RECONCILE */:
|
|
39196
|
+
return {
|
|
39197
|
+
badgeColor: toSecondaryColor(accent),
|
|
39198
|
+
textColor: accentText
|
|
39199
|
+
};
|
|
39191
39200
|
default:
|
|
39192
39201
|
return {
|
|
39193
39202
|
badgeColor: toSecondaryColor(primary),
|
|
@@ -40031,6 +40040,8 @@ var getWorkflowTargetColor = (workflowTarget, theme) => {
|
|
|
40031
40040
|
case "system" /* SYSTEM */:
|
|
40032
40041
|
case "validate" /* VALIDATE */:
|
|
40033
40042
|
return theme.colors.warning;
|
|
40043
|
+
case "reconcile" /* RECONCILE */:
|
|
40044
|
+
return theme.colors.accent;
|
|
40034
40045
|
case "terminate" /* TERMINATE */:
|
|
40035
40046
|
return theme.colors.danger;
|
|
40036
40047
|
}
|
|
@@ -40045,6 +40056,8 @@ var getWorkflowTargetIconContent = (workflowTarget) => {
|
|
|
40045
40056
|
return "T";
|
|
40046
40057
|
case "terminate" /* TERMINATE */:
|
|
40047
40058
|
return "X";
|
|
40059
|
+
case "reconcile" /* RECONCILE */:
|
|
40060
|
+
return "R";
|
|
40048
40061
|
default:
|
|
40049
40062
|
return "M";
|
|
40050
40063
|
}
|
|
@@ -41215,11 +41228,11 @@ var WfoDragHandler = ({
|
|
|
41215
41228
|
const onStart = () => {
|
|
41216
41229
|
setIsDragging(false);
|
|
41217
41230
|
};
|
|
41218
|
-
const onDrag = (
|
|
41231
|
+
const onDrag = (_5, data) => {
|
|
41219
41232
|
setIsDragging(true);
|
|
41220
41233
|
setPosition({ x: data.x, y: data.y });
|
|
41221
41234
|
};
|
|
41222
|
-
const onStop = (
|
|
41235
|
+
const onStop = (_5, data) => {
|
|
41223
41236
|
if (headerRowRef.current && isDragging) {
|
|
41224
41237
|
const newWidth = startWidth + data.x;
|
|
41225
41238
|
onUpdateColumWidth(
|
|
@@ -42380,14 +42393,53 @@ import Link8 from "next/link";
|
|
|
42380
42393
|
import { useRouter as useRouter5 } from "next/router";
|
|
42381
42394
|
import {
|
|
42382
42395
|
EuiButton as EuiButton7,
|
|
42396
|
+
EuiButtonIcon as EuiButtonIcon7,
|
|
42383
42397
|
EuiContextMenuItem,
|
|
42384
42398
|
EuiContextMenuPanel,
|
|
42399
|
+
EuiLoadingSpinner,
|
|
42385
42400
|
EuiPanel,
|
|
42386
42401
|
EuiPopover as EuiPopover4,
|
|
42387
42402
|
EuiTitle,
|
|
42388
42403
|
EuiToolTip as EuiToolTip6
|
|
42389
42404
|
} from "@elastic/eui";
|
|
42390
42405
|
|
|
42406
|
+
// src/icons/WfoDotsHorizontal.tsx
|
|
42407
|
+
import { jsx as jsx121, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
42408
|
+
var WfoDotsHorizontal = ({
|
|
42409
|
+
width = 20,
|
|
42410
|
+
height = 20,
|
|
42411
|
+
color = "currentColor"
|
|
42412
|
+
}) => /* @__PURE__ */ jsxs67(
|
|
42413
|
+
"svg",
|
|
42414
|
+
{
|
|
42415
|
+
width,
|
|
42416
|
+
height,
|
|
42417
|
+
viewBox: "0 0 24 24",
|
|
42418
|
+
version: "1.1",
|
|
42419
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42420
|
+
children: [
|
|
42421
|
+
/* @__PURE__ */ jsx121("title", { children: "icon/dots-horizontal" }),
|
|
42422
|
+
/* @__PURE__ */ jsx121(
|
|
42423
|
+
"g",
|
|
42424
|
+
{
|
|
42425
|
+
id: "Symbols",
|
|
42426
|
+
stroke: "none",
|
|
42427
|
+
strokeWidth: "1",
|
|
42428
|
+
fill: "none",
|
|
42429
|
+
fillRule: "evenodd",
|
|
42430
|
+
children: /* @__PURE__ */ jsx121("g", { id: "icon/dots-horizontal", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx121(
|
|
42431
|
+
"path",
|
|
42432
|
+
{
|
|
42433
|
+
d: "M8,12 C8,13.1046 7.10457,14 6,14 C4.89543,14 4,13.1046 4,12 C4,10.89543 4.89543,10 6,10 C7.10457,10 8,10.89543 8,12 Z M14,12 C14,13.1046 13.1046,14 12,14 C10.89543,14 10,13.1046 10,12 C10,10.89543 10.89543,10 12,10 C13.1046,10 14,10.89543 14,12 Z M18,14 C19.1046,14 20,13.1046 20,12 C20,10.89543 19.1046,10 18,10 C16.8954,10 16,10.89543 16,12 C16,13.1046 16.8954,14 18,14 Z",
|
|
42434
|
+
id: "Combined-Shape"
|
|
42435
|
+
}
|
|
42436
|
+
) })
|
|
42437
|
+
}
|
|
42438
|
+
)
|
|
42439
|
+
]
|
|
42440
|
+
}
|
|
42441
|
+
);
|
|
42442
|
+
|
|
42391
42443
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
|
|
42392
42444
|
import { useState as useState18 } from "react";
|
|
42393
42445
|
import { useTranslations as useTranslations29 } from "next-intl";
|
|
@@ -42458,7 +42510,7 @@ var getSubscriptionActionStyles = ({ theme }) => {
|
|
|
42458
42510
|
};
|
|
42459
42511
|
|
|
42460
42512
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
|
|
42461
|
-
import { jsx as
|
|
42513
|
+
import { jsx as jsx122, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
42462
42514
|
var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLockedRelation, children }) => {
|
|
42463
42515
|
const t = useTranslations29("subscriptions.detail.actions");
|
|
42464
42516
|
const {
|
|
@@ -42470,8 +42522,8 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
42470
42522
|
} = useWithOrchestratorTheme(getSubscriptionActionStyles);
|
|
42471
42523
|
const [isExpanded, setIsExpanded] = useState18(false);
|
|
42472
42524
|
const { locked_relations: lockedRelations } = subscriptionAction;
|
|
42473
|
-
return /* @__PURE__ */
|
|
42474
|
-
/* @__PURE__ */
|
|
42525
|
+
return /* @__PURE__ */ jsxs68("div", { children: [
|
|
42526
|
+
/* @__PURE__ */ jsxs68(
|
|
42475
42527
|
"div",
|
|
42476
42528
|
{
|
|
42477
42529
|
css: [
|
|
@@ -42480,8 +42532,8 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
42480
42532
|
],
|
|
42481
42533
|
onClick: () => setIsExpanded(!isExpanded),
|
|
42482
42534
|
children: [
|
|
42483
|
-
/* @__PURE__ */
|
|
42484
|
-
lockedRelations && /* @__PURE__ */
|
|
42535
|
+
/* @__PURE__ */ jsx122("div", { children }),
|
|
42536
|
+
lockedRelations && /* @__PURE__ */ jsx122(
|
|
42485
42537
|
EuiButtonIcon6,
|
|
42486
42538
|
{
|
|
42487
42539
|
css: expandButtonStyle,
|
|
@@ -42493,9 +42545,9 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
42493
42545
|
]
|
|
42494
42546
|
}
|
|
42495
42547
|
),
|
|
42496
|
-
lockedRelations && isExpanded && /* @__PURE__ */
|
|
42497
|
-
/* @__PURE__ */
|
|
42498
|
-
lockedRelations.map((relation) => /* @__PURE__ */
|
|
42548
|
+
lockedRelations && isExpanded && /* @__PURE__ */ jsxs68("div", { css: expandedContentStyle, children: [
|
|
42549
|
+
/* @__PURE__ */ jsx122(EuiText8, { size: "xs", children: t("lockedBySubscriptions") }),
|
|
42550
|
+
lockedRelations.map((relation) => /* @__PURE__ */ jsx122(EuiText8, { size: "xs", children: /* @__PURE__ */ jsx122(
|
|
42499
42551
|
Link7,
|
|
42500
42552
|
{
|
|
42501
42553
|
css: linkStyle,
|
|
@@ -42510,11 +42562,12 @@ var WfoSubscriptionActionExpandableMenuItem = ({ subscriptionAction, onClickLock
|
|
|
42510
42562
|
};
|
|
42511
42563
|
|
|
42512
42564
|
// src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
|
|
42513
|
-
import { Fragment as Fragment24, jsx as
|
|
42514
|
-
var MenuBlock = ({ title }) => /* @__PURE__ */
|
|
42565
|
+
import { Fragment as Fragment24, jsx as jsx123, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
42566
|
+
var MenuBlock = ({ title }) => /* @__PURE__ */ jsx123(EuiTitle, { size: "xxxs", children: /* @__PURE__ */ jsx123("h3", { children: title }) });
|
|
42515
42567
|
var WfoSubscriptionActions = ({
|
|
42516
42568
|
subscriptionId,
|
|
42517
|
-
isLoading
|
|
42569
|
+
isLoading,
|
|
42570
|
+
compactMode = false
|
|
42518
42571
|
}) => {
|
|
42519
42572
|
const { theme } = useOrchestratorTheme();
|
|
42520
42573
|
const {
|
|
@@ -42527,20 +42580,18 @@ var WfoSubscriptionActions = ({
|
|
|
42527
42580
|
const router = useRouter5();
|
|
42528
42581
|
const t = useTranslations30("subscriptions.detail.actions");
|
|
42529
42582
|
const [isPopoverOpen, setPopover] = useState19(false);
|
|
42530
|
-
const
|
|
42531
|
-
|
|
42532
|
-
|
|
42533
|
-
|
|
42534
|
-
|
|
42583
|
+
const disableQuery = isLoading || !isPopoverOpen && compactMode;
|
|
42584
|
+
const {
|
|
42585
|
+
data: subscriptionActions,
|
|
42586
|
+
isLoading: subscriptionActionsIsLoading
|
|
42587
|
+
} = useGetSubscriptionActionsQuery(
|
|
42588
|
+
{ subscriptionId },
|
|
42589
|
+
{ skip: disableQuery }
|
|
42535
42590
|
);
|
|
42536
42591
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
42537
42592
|
const { isAllowed } = usePolicy();
|
|
42538
|
-
const onButtonClick = () =>
|
|
42539
|
-
|
|
42540
|
-
};
|
|
42541
|
-
const closePopover = () => {
|
|
42542
|
-
setPopover(false);
|
|
42543
|
-
};
|
|
42593
|
+
const onButtonClick = () => setPopover(!isPopoverOpen);
|
|
42594
|
+
const closePopover = () => setPopover(false);
|
|
42544
42595
|
const MenuItem = ({
|
|
42545
42596
|
action,
|
|
42546
42597
|
target,
|
|
@@ -42559,12 +42610,12 @@ var WfoSubscriptionActions = ({
|
|
|
42559
42610
|
router.push(url);
|
|
42560
42611
|
}
|
|
42561
42612
|
};
|
|
42562
|
-
return /* @__PURE__ */
|
|
42613
|
+
return /* @__PURE__ */ jsx123(Link8, { href: url, onClick: handleLinkClick, children: /* @__PURE__ */ jsx123("div", { css: linkMenuItemStyle, children: actionItem }) });
|
|
42563
42614
|
};
|
|
42564
42615
|
const tooltipIt = (actionItem) => {
|
|
42565
42616
|
if (!action.reason) return actionItem;
|
|
42566
42617
|
const tooltipContent = t(action.reason, flattenArrayProps(action));
|
|
42567
|
-
return /* @__PURE__ */
|
|
42618
|
+
return /* @__PURE__ */ jsx123("div", { css: tooltipMenuItemStyle, children: /* @__PURE__ */ jsx123(EuiToolTip6, { position: "top", content: tooltipContent, children: /* @__PURE__ */ jsx123(
|
|
42568
42619
|
WfoSubscriptionActionExpandableMenuItem,
|
|
42569
42620
|
{
|
|
42570
42621
|
subscriptionAction: action,
|
|
@@ -42573,23 +42624,29 @@ var WfoSubscriptionActions = ({
|
|
|
42573
42624
|
}
|
|
42574
42625
|
) }) });
|
|
42575
42626
|
};
|
|
42576
|
-
const getIcon = () => {
|
|
42577
|
-
|
|
42578
|
-
|
|
42579
|
-
|
|
42580
|
-
|
|
42581
|
-
|
|
42582
|
-
|
|
42583
|
-
|
|
42584
|
-
|
|
42585
|
-
|
|
42586
|
-
|
|
42587
|
-
|
|
42588
|
-
};
|
|
42589
|
-
const ActionItem = () => /* @__PURE__ */ jsx122(EuiContextMenuItem, { icon: getIcon(), disabled: !!action.reason, children: action.description });
|
|
42590
|
-
return action?.reason ? tooltipIt(/* @__PURE__ */ jsx122(ActionItem, {})) : linkIt(/* @__PURE__ */ jsx122(ActionItem, {}));
|
|
42627
|
+
const getIcon = () => action.reason ? /* @__PURE__ */ jsxs69("div", { css: disabledIconStyle, children: [
|
|
42628
|
+
/* @__PURE__ */ jsx123(WfoTargetTypeIcon, { target, disabled: true }),
|
|
42629
|
+
/* @__PURE__ */ jsx123("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx123(
|
|
42630
|
+
WfoXCircleFill,
|
|
42631
|
+
{
|
|
42632
|
+
width: 20,
|
|
42633
|
+
height: 20,
|
|
42634
|
+
color: theme.colors.danger
|
|
42635
|
+
}
|
|
42636
|
+
) })
|
|
42637
|
+
] }) : /* @__PURE__ */ jsx123("div", { css: iconStyle, children: /* @__PURE__ */ jsx123(WfoTargetTypeIcon, { target }) });
|
|
42638
|
+
const ActionItem = () => /* @__PURE__ */ jsx123(EuiContextMenuItem, { icon: getIcon(), disabled: !!action.reason, children: action.description });
|
|
42639
|
+
return action?.reason ? tooltipIt(/* @__PURE__ */ jsx123(ActionItem, {})) : linkIt(/* @__PURE__ */ jsx123(ActionItem, {}));
|
|
42591
42640
|
};
|
|
42592
|
-
const button = /* @__PURE__ */
|
|
42641
|
+
const button = compactMode ? /* @__PURE__ */ jsx123(
|
|
42642
|
+
EuiButtonIcon7,
|
|
42643
|
+
{
|
|
42644
|
+
iconType: () => /* @__PURE__ */ jsx123(WfoDotsHorizontal, {}),
|
|
42645
|
+
onClick: onButtonClick,
|
|
42646
|
+
"aria-label": "Row context menu",
|
|
42647
|
+
isLoading
|
|
42648
|
+
}
|
|
42649
|
+
) : /* @__PURE__ */ jsx123(
|
|
42593
42650
|
EuiButton7,
|
|
42594
42651
|
{
|
|
42595
42652
|
iconType: "arrowDown",
|
|
@@ -42599,7 +42656,68 @@ var WfoSubscriptionActions = ({
|
|
|
42599
42656
|
children: t("actions")
|
|
42600
42657
|
}
|
|
42601
42658
|
);
|
|
42602
|
-
|
|
42659
|
+
const {
|
|
42660
|
+
SUBSCRIPTION_VALIDATE,
|
|
42661
|
+
SUBSCRIPTION_RECONCILE,
|
|
42662
|
+
SUBSCRIPTION_MODIFY,
|
|
42663
|
+
SUBSCRIPTION_TERMINATE
|
|
42664
|
+
} = PolicyResource;
|
|
42665
|
+
const compactItems = /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42666
|
+
isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42667
|
+
!compactMode && /* @__PURE__ */ jsx123(MenuBlock, { title: t("tasks") }),
|
|
42668
|
+
subscriptionActions.validate.map((action, index) => /* @__PURE__ */ jsx123(
|
|
42669
|
+
MenuItem,
|
|
42670
|
+
{
|
|
42671
|
+
action,
|
|
42672
|
+
index,
|
|
42673
|
+
target: "validate" /* VALIDATE */,
|
|
42674
|
+
isTask: true
|
|
42675
|
+
},
|
|
42676
|
+
`s_${index}`
|
|
42677
|
+
))
|
|
42678
|
+
] }),
|
|
42679
|
+
isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42680
|
+
!compactMode && /* @__PURE__ */ jsx123(MenuBlock, { title: t("reconcile") }),
|
|
42681
|
+
subscriptionActions?.reconcile.map((action, index) => /* @__PURE__ */ jsx123(
|
|
42682
|
+
MenuItem,
|
|
42683
|
+
{
|
|
42684
|
+
action,
|
|
42685
|
+
index,
|
|
42686
|
+
target: "reconcile" /* RECONCILE */
|
|
42687
|
+
},
|
|
42688
|
+
`r_${index}`
|
|
42689
|
+
))
|
|
42690
|
+
] })
|
|
42691
|
+
] });
|
|
42692
|
+
const fullItems = /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42693
|
+
isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42694
|
+
/* @__PURE__ */ jsx123(MenuBlock, { title: t("modify") }),
|
|
42695
|
+
subscriptionActions.modify.map((action, index) => /* @__PURE__ */ jsx123(
|
|
42696
|
+
MenuItem,
|
|
42697
|
+
{
|
|
42698
|
+
action,
|
|
42699
|
+
index,
|
|
42700
|
+
target: "modify" /* MODIFY */
|
|
42701
|
+
},
|
|
42702
|
+
`m_${index}`
|
|
42703
|
+
))
|
|
42704
|
+
] }),
|
|
42705
|
+
compactItems,
|
|
42706
|
+
isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */ jsxs69(Fragment24, { children: [
|
|
42707
|
+
/* @__PURE__ */ jsx123(MenuBlock, { title: t("terminate") }),
|
|
42708
|
+
subscriptionActions.terminate.map((action, index) => /* @__PURE__ */ jsx123(
|
|
42709
|
+
MenuItem,
|
|
42710
|
+
{
|
|
42711
|
+
action,
|
|
42712
|
+
index,
|
|
42713
|
+
target: "terminate" /* TERMINATE */
|
|
42714
|
+
},
|
|
42715
|
+
`t_${index}`
|
|
42716
|
+
))
|
|
42717
|
+
] })
|
|
42718
|
+
] });
|
|
42719
|
+
const MenuItemsList = () => compactMode ? compactItems : fullItems;
|
|
42720
|
+
return /* @__PURE__ */ jsx123(
|
|
42603
42721
|
EuiPopover4,
|
|
42604
42722
|
{
|
|
42605
42723
|
id: "subscriptionActionPopover",
|
|
@@ -42608,57 +42726,7 @@ var WfoSubscriptionActions = ({
|
|
|
42608
42726
|
closePopover,
|
|
42609
42727
|
panelPaddingSize: "none",
|
|
42610
42728
|
anchorPosition: "downLeft",
|
|
42611
|
-
children: /* @__PURE__ */
|
|
42612
|
-
subscriptionActions && isAllowed(
|
|
42613
|
-
"/orchestrator/subscriptions/modify/" /* SUBSCRIPTION_MODIFY */ + subscriptionId
|
|
42614
|
-
) && subscriptionActions.modify && /* @__PURE__ */ jsxs68(Fragment24, { children: [
|
|
42615
|
-
/* @__PURE__ */ jsx122(MenuBlock, { title: t("modify") }),
|
|
42616
|
-
subscriptionActions.modify.map(
|
|
42617
|
-
(action, index) => /* @__PURE__ */ jsx122(
|
|
42618
|
-
MenuItem,
|
|
42619
|
-
{
|
|
42620
|
-
action,
|
|
42621
|
-
index,
|
|
42622
|
-
target: "modify" /* MODIFY */
|
|
42623
|
-
},
|
|
42624
|
-
`m_${index}`
|
|
42625
|
-
)
|
|
42626
|
-
)
|
|
42627
|
-
] }),
|
|
42628
|
-
subscriptionActions && isAllowed(
|
|
42629
|
-
"/orchestrator/subscriptions/validate/" /* SUBSCRIPTION_VALIDATE */ + subscriptionId
|
|
42630
|
-
) && subscriptionActions.validate && /* @__PURE__ */ jsxs68(Fragment24, { children: [
|
|
42631
|
-
/* @__PURE__ */ jsx122(MenuBlock, { title: t("tasks") }),
|
|
42632
|
-
subscriptionActions.validate.map(
|
|
42633
|
-
(action, index) => /* @__PURE__ */ jsx122(
|
|
42634
|
-
MenuItem,
|
|
42635
|
-
{
|
|
42636
|
-
action,
|
|
42637
|
-
index,
|
|
42638
|
-
target: "validate" /* VALIDATE */,
|
|
42639
|
-
isTask: true
|
|
42640
|
-
},
|
|
42641
|
-
`s_${index}`
|
|
42642
|
-
)
|
|
42643
|
-
)
|
|
42644
|
-
] }),
|
|
42645
|
-
subscriptionActions && isAllowed(
|
|
42646
|
-
"/orchestrator/subscriptions/terminate/" /* SUBSCRIPTION_TERMINATE */ + subscriptionId
|
|
42647
|
-
) && subscriptionActions.terminate && /* @__PURE__ */ jsxs68(Fragment24, { children: [
|
|
42648
|
-
/* @__PURE__ */ jsx122(MenuBlock, { title: t("terminate") }),
|
|
42649
|
-
subscriptionActions.terminate.map(
|
|
42650
|
-
(action, index) => /* @__PURE__ */ jsx122(
|
|
42651
|
-
MenuItem,
|
|
42652
|
-
{
|
|
42653
|
-
action,
|
|
42654
|
-
index,
|
|
42655
|
-
target: "terminate" /* TERMINATE */
|
|
42656
|
-
},
|
|
42657
|
-
`t_${index}`
|
|
42658
|
-
)
|
|
42659
|
-
)
|
|
42660
|
-
] })
|
|
42661
|
-
] }) })
|
|
42729
|
+
children: /* @__PURE__ */ jsx123(EuiContextMenuPanel, { children: /* @__PURE__ */ jsx123(EuiPanel, { color: "transparent", paddingSize: "s", children: subscriptionActionsIsLoading ? /* @__PURE__ */ jsx123(EuiLoadingSpinner, {}) : /* @__PURE__ */ jsx123(MenuItemsList, {}) }) })
|
|
42662
42730
|
}
|
|
42663
42731
|
);
|
|
42664
42732
|
};
|
|
@@ -42680,7 +42748,7 @@ import {
|
|
|
42680
42748
|
// src/components/WfoSubscription/WfoInUseByRelations.tsx
|
|
42681
42749
|
import { useTranslations as useTranslations31 } from "next-intl";
|
|
42682
42750
|
import Link9 from "next/link";
|
|
42683
|
-
import { Fragment as Fragment25, jsx as
|
|
42751
|
+
import { Fragment as Fragment25, jsx as jsx124 } from "@emotion/react/jsx-runtime";
|
|
42684
42752
|
var WfoInUseByRelations = ({
|
|
42685
42753
|
inUseByRelations
|
|
42686
42754
|
}) => {
|
|
@@ -42693,16 +42761,16 @@ var WfoInUseByRelations = ({
|
|
|
42693
42761
|
subscriptionIds
|
|
42694
42762
|
});
|
|
42695
42763
|
if (isError2) {
|
|
42696
|
-
return /* @__PURE__ */
|
|
42764
|
+
return /* @__PURE__ */ jsx124(WfoError, {});
|
|
42697
42765
|
}
|
|
42698
42766
|
if (isLoading) {
|
|
42699
|
-
return /* @__PURE__ */
|
|
42767
|
+
return /* @__PURE__ */ jsx124(WfoLoading, {});
|
|
42700
42768
|
}
|
|
42701
42769
|
const getKeyValues = (inUseByRelationDetails) => {
|
|
42702
42770
|
return [
|
|
42703
42771
|
{
|
|
42704
42772
|
key: t("subscriptionId"),
|
|
42705
|
-
value: /* @__PURE__ */
|
|
42773
|
+
value: /* @__PURE__ */ jsx124(
|
|
42706
42774
|
WfoFirstPartUUID,
|
|
42707
42775
|
{
|
|
42708
42776
|
UUID: inUseByRelationDetails.subscriptionId,
|
|
@@ -42713,7 +42781,7 @@ var WfoInUseByRelations = ({
|
|
|
42713
42781
|
},
|
|
42714
42782
|
{
|
|
42715
42783
|
key: t("description"),
|
|
42716
|
-
value: /* @__PURE__ */
|
|
42784
|
+
value: /* @__PURE__ */ jsx124(
|
|
42717
42785
|
Link9,
|
|
42718
42786
|
{
|
|
42719
42787
|
href: `${PATH_SUBSCRIPTIONS}/${inUseByRelationDetails.subscriptionId}`,
|
|
@@ -42730,9 +42798,9 @@ var WfoInUseByRelations = ({
|
|
|
42730
42798
|
}
|
|
42731
42799
|
];
|
|
42732
42800
|
};
|
|
42733
|
-
return /* @__PURE__ */
|
|
42801
|
+
return /* @__PURE__ */ jsx124(Fragment25, { children: data?.inUseByRelationDetails.map((relation, index) => {
|
|
42734
42802
|
const keyValues = getKeyValues(relation);
|
|
42735
|
-
return /* @__PURE__ */
|
|
42803
|
+
return /* @__PURE__ */ jsx124("div", { css: inUseByRelationDetailsStyle, children: /* @__PURE__ */ jsx124(
|
|
42736
42804
|
WfoKeyValueTable,
|
|
42737
42805
|
{
|
|
42738
42806
|
keyValues,
|
|
@@ -42811,7 +42879,7 @@ var getStyles6 = (wfoTheme) => {
|
|
|
42811
42879
|
};
|
|
42812
42880
|
|
|
42813
42881
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
|
|
42814
|
-
import { Fragment as Fragment26, jsx as
|
|
42882
|
+
import { Fragment as Fragment26, jsx as jsx125, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
42815
42883
|
var HIDDEN_KEYS = ["title", "name", "label", "inUseByIds"];
|
|
42816
42884
|
var WfoSubscriptionProductBlock = ({
|
|
42817
42885
|
productBlock,
|
|
@@ -42839,33 +42907,33 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42839
42907
|
const isEmpty2 = (value) => {
|
|
42840
42908
|
return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
|
|
42841
42909
|
};
|
|
42842
|
-
return /* @__PURE__ */
|
|
42843
|
-
/* @__PURE__ */
|
|
42844
|
-
/* @__PURE__ */
|
|
42910
|
+
return /* @__PURE__ */ jsxs70(Fragment26, { children: [
|
|
42911
|
+
/* @__PURE__ */ jsx125(EuiSpacer14, { size: "m" }),
|
|
42912
|
+
/* @__PURE__ */ jsxs70(
|
|
42845
42913
|
EuiPanel2,
|
|
42846
42914
|
{
|
|
42847
42915
|
color: "transparent",
|
|
42848
42916
|
hasShadow: false,
|
|
42849
42917
|
css: isOutsideCurrentSubscription ? panelStyleOutsideCurrentSubscription : panelStyle,
|
|
42850
42918
|
children: [
|
|
42851
|
-
/* @__PURE__ */
|
|
42852
|
-
/* @__PURE__ */
|
|
42919
|
+
/* @__PURE__ */ jsxs70(EuiFlexGroup11, { children: [
|
|
42920
|
+
/* @__PURE__ */ jsx125(EuiFlexItem8, { grow: false, children: /* @__PURE__ */ jsx125(
|
|
42853
42921
|
"div",
|
|
42854
42922
|
{
|
|
42855
42923
|
css: isOutsideCurrentSubscription ? iconOutsideCurrentSubscriptionStyle : iconStyle,
|
|
42856
|
-
children: /* @__PURE__ */
|
|
42924
|
+
children: /* @__PURE__ */ jsx125(EuiIcon, { type: "filebeatApp", color: "currentColor" })
|
|
42857
42925
|
}
|
|
42858
42926
|
) }),
|
|
42859
|
-
/* @__PURE__ */
|
|
42860
|
-
/* @__PURE__ */
|
|
42927
|
+
/* @__PURE__ */ jsxs70(EuiFlexItem8, { children: [
|
|
42928
|
+
/* @__PURE__ */ jsx125(EuiText9, { grow: true, children: /* @__PURE__ */ jsx125("h3", { children: getProductBlockTitle(
|
|
42861
42929
|
productBlock.productBlockInstanceValues
|
|
42862
42930
|
) }) }),
|
|
42863
|
-
/* @__PURE__ */
|
|
42931
|
+
/* @__PURE__ */ jsx125(EuiText9, { size: "s", children: getFieldFromProductBlockInstanceValues(
|
|
42864
42932
|
productBlock.productBlockInstanceValues,
|
|
42865
42933
|
"name"
|
|
42866
42934
|
) })
|
|
42867
42935
|
] }),
|
|
42868
|
-
/* @__PURE__ */
|
|
42936
|
+
/* @__PURE__ */ jsx125(EuiFlexItem8, { grow: false, children: /* @__PURE__ */ jsx125(
|
|
42869
42937
|
EuiButtonEmpty4,
|
|
42870
42938
|
{
|
|
42871
42939
|
"aria-label": showDetails ? t("hideDetails") : t("showDetails"),
|
|
@@ -42875,15 +42943,15 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42875
42943
|
}
|
|
42876
42944
|
) })
|
|
42877
42945
|
] }),
|
|
42878
|
-
/* @__PURE__ */
|
|
42879
|
-
/* @__PURE__ */
|
|
42880
|
-
isOutsideCurrentSubscription && /* @__PURE__ */
|
|
42881
|
-
/* @__PURE__ */
|
|
42882
|
-
/* @__PURE__ */
|
|
42946
|
+
/* @__PURE__ */ jsx125(EuiSpacer14, { size: "m" }),
|
|
42947
|
+
/* @__PURE__ */ jsx125("table", { width: "100%", children: /* @__PURE__ */ jsxs70("tbody", { children: [
|
|
42948
|
+
isOutsideCurrentSubscription && /* @__PURE__ */ jsxs70("tr", { css: rowStyle, children: [
|
|
42949
|
+
/* @__PURE__ */ jsx125("td", { css: leftColumnStyleWithAlignSelf, children: /* @__PURE__ */ jsx125("b", { children: t("ownerSubscriptionId") }) }),
|
|
42950
|
+
/* @__PURE__ */ jsx125("td", { children: /* @__PURE__ */ jsx125(
|
|
42883
42951
|
WfoValueCell,
|
|
42884
42952
|
{
|
|
42885
|
-
value: /* @__PURE__ */
|
|
42886
|
-
/* @__PURE__ */
|
|
42953
|
+
value: /* @__PURE__ */ jsxs70(Fragment26, { children: [
|
|
42954
|
+
/* @__PURE__ */ jsx125(
|
|
42887
42955
|
"a",
|
|
42888
42956
|
{
|
|
42889
42957
|
href: `${subscriptionPath}/${ownerSubscriptionId}`,
|
|
@@ -42891,7 +42959,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42891
42959
|
children: productBlock.subscription.description
|
|
42892
42960
|
}
|
|
42893
42961
|
),
|
|
42894
|
-
/* @__PURE__ */
|
|
42962
|
+
/* @__PURE__ */ jsx125(
|
|
42895
42963
|
EuiText9,
|
|
42896
42964
|
{
|
|
42897
42965
|
css: outsideSubscriptionIdTextStyle,
|
|
@@ -42908,18 +42976,18 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42908
42976
|
}
|
|
42909
42977
|
) })
|
|
42910
42978
|
] }, -1),
|
|
42911
|
-
showDetails && /* @__PURE__ */
|
|
42912
|
-
/* @__PURE__ */
|
|
42913
|
-
/* @__PURE__ */
|
|
42914
|
-
/* @__PURE__ */
|
|
42979
|
+
showDetails && /* @__PURE__ */ jsxs70(Fragment26, { children: [
|
|
42980
|
+
/* @__PURE__ */ jsxs70("tr", { css: rowStyle, children: [
|
|
42981
|
+
/* @__PURE__ */ jsx125("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx125("b", { children: t("subscriptionInstanceId") }) }),
|
|
42982
|
+
/* @__PURE__ */ jsx125("td", { children: productBlock.subscriptionInstanceId })
|
|
42915
42983
|
] }, -2),
|
|
42916
|
-
!isOutsideCurrentSubscription && /* @__PURE__ */
|
|
42917
|
-
/* @__PURE__ */
|
|
42918
|
-
/* @__PURE__ */
|
|
42984
|
+
!isOutsideCurrentSubscription && /* @__PURE__ */ jsxs70("tr", { css: rowStyle, children: [
|
|
42985
|
+
/* @__PURE__ */ jsx125("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx125("b", { children: t("ownerSubscriptionId") }) }),
|
|
42986
|
+
/* @__PURE__ */ jsx125("td", { children: /* @__PURE__ */ jsx125(Fragment26, { children: /* @__PURE__ */ jsx125(EuiBadge2, { children: t("self") }) }) })
|
|
42919
42987
|
] }, -3),
|
|
42920
|
-
/* @__PURE__ */
|
|
42921
|
-
/* @__PURE__ */
|
|
42922
|
-
/* @__PURE__ */
|
|
42988
|
+
/* @__PURE__ */ jsxs70("tr", { css: rowStyle, children: [
|
|
42989
|
+
/* @__PURE__ */ jsx125("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx125("b", { children: t("inUseByRelations") }) }),
|
|
42990
|
+
/* @__PURE__ */ jsx125("td", { children: inUseByRelations.length === 0 && "None" || /* @__PURE__ */ jsx125(
|
|
42923
42991
|
WfoInUseByRelations,
|
|
42924
42992
|
{
|
|
42925
42993
|
inUseByRelations
|
|
@@ -42945,7 +43013,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42945
43013
|
if (productBlockInstanceValue && (!isEmpty2(
|
|
42946
43014
|
productBlockInstanceValue.value
|
|
42947
43015
|
) || showDetails)) {
|
|
42948
|
-
return /* @__PURE__ */
|
|
43016
|
+
return /* @__PURE__ */ jsx125(
|
|
42949
43017
|
WfoProductBlockKeyValueRow,
|
|
42950
43018
|
{
|
|
42951
43019
|
fieldValue: productBlockInstanceValue,
|
|
@@ -42964,7 +43032,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42964
43032
|
|
|
42965
43033
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
|
|
42966
43034
|
import { EuiBadge as EuiBadge3 } from "@elastic/eui";
|
|
42967
|
-
import { Fragment as Fragment27, jsx as
|
|
43035
|
+
import { Fragment as Fragment27, jsx as jsx126, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
42968
43036
|
var KEY_CELL_CLASS_NAME = "key-cell";
|
|
42969
43037
|
var VALUE_CELL_CLASS_NAME = "value-cell";
|
|
42970
43038
|
var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues, className }) => {
|
|
@@ -42973,17 +43041,17 @@ var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues, className }) =>
|
|
|
42973
43041
|
const { field, value } = fieldValue;
|
|
42974
43042
|
const WfoProductBlockValue = ({ value: value2 }) => {
|
|
42975
43043
|
if (typeof value2 === "boolean") {
|
|
42976
|
-
return /* @__PURE__ */
|
|
43044
|
+
return /* @__PURE__ */ jsx126(EuiBadge3, { children: value2.toString() });
|
|
42977
43045
|
} else if (Array.isArray(value2)) {
|
|
42978
43046
|
const result = value2.join(", ");
|
|
42979
|
-
return /* @__PURE__ */
|
|
43047
|
+
return /* @__PURE__ */ jsx126(Fragment27, { children: result });
|
|
42980
43048
|
} else {
|
|
42981
|
-
return /* @__PURE__ */
|
|
43049
|
+
return /* @__PURE__ */ jsx126(Fragment27, { children: value2 });
|
|
42982
43050
|
}
|
|
42983
43051
|
};
|
|
42984
|
-
return /* @__PURE__ */
|
|
42985
|
-
/* @__PURE__ */
|
|
42986
|
-
/* @__PURE__ */
|
|
43052
|
+
return /* @__PURE__ */ jsxs71("tr", { className, css: rowStyle, children: [
|
|
43053
|
+
/* @__PURE__ */ jsx126("td", { className: KEY_CELL_CLASS_NAME, css: leftColumnStyle, children: /* @__PURE__ */ jsx126("b", { children: camelToHuman(field) }) }),
|
|
43054
|
+
/* @__PURE__ */ jsx126("td", { className: VALUE_CELL_CLASS_NAME, children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx126(WfoProductBlockValue, { value }) })
|
|
42987
43055
|
] });
|
|
42988
43056
|
};
|
|
42989
43057
|
|
|
@@ -43031,7 +43099,7 @@ var getWfoButtonComboBoxStyles = ({ theme }) => {
|
|
|
43031
43099
|
};
|
|
43032
43100
|
|
|
43033
43101
|
// src/components/WfoButtonComboBox/WfoButtonComboBox.tsx
|
|
43034
|
-
import { Fragment as Fragment28, jsx as
|
|
43102
|
+
import { Fragment as Fragment28, jsx as jsx127, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
43035
43103
|
var WfoButtonComboBox = ({
|
|
43036
43104
|
options,
|
|
43037
43105
|
onOptionChange,
|
|
@@ -43049,7 +43117,7 @@ var WfoButtonComboBox = ({
|
|
|
43049
43117
|
setOptionsState(options);
|
|
43050
43118
|
}
|
|
43051
43119
|
}, [isPopoverOpen, options]);
|
|
43052
|
-
return /* @__PURE__ */
|
|
43120
|
+
return /* @__PURE__ */ jsxs72(
|
|
43053
43121
|
EuiPopover5,
|
|
43054
43122
|
{
|
|
43055
43123
|
initialFocus: `.euiSelectable .euiFieldSearch`,
|
|
@@ -43057,25 +43125,25 @@ var WfoButtonComboBox = ({
|
|
|
43057
43125
|
isOpen: isPopoverOpen,
|
|
43058
43126
|
closePopover: () => setPopoverOpen(false),
|
|
43059
43127
|
children: [
|
|
43060
|
-
title && /* @__PURE__ */
|
|
43061
|
-
/* @__PURE__ */
|
|
43062
|
-
/* @__PURE__ */
|
|
43128
|
+
title && /* @__PURE__ */ jsxs72(Fragment28, { children: [
|
|
43129
|
+
/* @__PURE__ */ jsx127(EuiText10, { size: "s", css: titleStyle, children: title }),
|
|
43130
|
+
/* @__PURE__ */ jsx127(EuiSpacer15, { size: "s" })
|
|
43063
43131
|
] }),
|
|
43064
|
-
/* @__PURE__ */
|
|
43132
|
+
/* @__PURE__ */ jsx127(
|
|
43065
43133
|
EuiSelectable2,
|
|
43066
43134
|
{
|
|
43067
43135
|
className,
|
|
43068
43136
|
css: selectableStyle,
|
|
43069
43137
|
options: optionsState,
|
|
43070
43138
|
searchable: true,
|
|
43071
|
-
onChange: (options2,
|
|
43139
|
+
onChange: (options2, _5, changedOption) => {
|
|
43072
43140
|
onOptionChange(changedOption);
|
|
43073
43141
|
setOptionsState(options2);
|
|
43074
43142
|
},
|
|
43075
43143
|
height: 200,
|
|
43076
|
-
children: (list, search) => /* @__PURE__ */
|
|
43144
|
+
children: (list, search) => /* @__PURE__ */ jsxs72(Fragment28, { children: [
|
|
43077
43145
|
search,
|
|
43078
|
-
/* @__PURE__ */
|
|
43146
|
+
/* @__PURE__ */ jsx127(EuiSpacer15, { size: "s" }),
|
|
43079
43147
|
list
|
|
43080
43148
|
] })
|
|
43081
43149
|
}
|
|
@@ -43114,7 +43182,7 @@ import { EuiFlexGroup as EuiFlexGroup13, EuiFlexItem as EuiFlexItem10, EuiIcon a
|
|
|
43114
43182
|
import { useContext as useContext7 } from "react";
|
|
43115
43183
|
import { useTranslations as useTranslations33 } from "next-intl";
|
|
43116
43184
|
import {
|
|
43117
|
-
EuiButtonIcon as
|
|
43185
|
+
EuiButtonIcon as EuiButtonIcon8,
|
|
43118
43186
|
EuiFlexGroup as EuiFlexGroup12,
|
|
43119
43187
|
EuiFlexItem as EuiFlexItem9,
|
|
43120
43188
|
EuiText as EuiText11,
|
|
@@ -43164,11 +43232,11 @@ var getStyles7 = (wfoTheme) => {
|
|
|
43164
43232
|
};
|
|
43165
43233
|
|
|
43166
43234
|
// src/icons/WfoXMarkSmall.tsx
|
|
43167
|
-
import { jsx as
|
|
43235
|
+
import { jsx as jsx128, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
43168
43236
|
var WfoXMarkSmall = ({
|
|
43169
43237
|
width = 20,
|
|
43170
43238
|
height = 20
|
|
43171
|
-
}) => /* @__PURE__ */
|
|
43239
|
+
}) => /* @__PURE__ */ jsxs73(
|
|
43172
43240
|
"svg",
|
|
43173
43241
|
{
|
|
43174
43242
|
width,
|
|
@@ -43177,8 +43245,8 @@ var WfoXMarkSmall = ({
|
|
|
43177
43245
|
version: "1.1",
|
|
43178
43246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43179
43247
|
children: [
|
|
43180
|
-
/* @__PURE__ */
|
|
43181
|
-
/* @__PURE__ */
|
|
43248
|
+
/* @__PURE__ */ jsx128("title", { children: "icon/x-mark" }),
|
|
43249
|
+
/* @__PURE__ */ jsx128(
|
|
43182
43250
|
"g",
|
|
43183
43251
|
{
|
|
43184
43252
|
id: "Symbols",
|
|
@@ -43186,7 +43254,7 @@ var WfoXMarkSmall = ({
|
|
|
43186
43254
|
strokeWidth: "1",
|
|
43187
43255
|
fill: "none",
|
|
43188
43256
|
fillRule: "evenodd",
|
|
43189
|
-
children: /* @__PURE__ */
|
|
43257
|
+
children: /* @__PURE__ */ jsx128("g", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ jsx128("path", { d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z" }) })
|
|
43190
43258
|
}
|
|
43191
43259
|
)
|
|
43192
43260
|
]
|
|
@@ -43194,7 +43262,7 @@ var WfoXMarkSmall = ({
|
|
|
43194
43262
|
);
|
|
43195
43263
|
|
|
43196
43264
|
// src/components/WfoTree/WfoTreeNodeListItem.tsx
|
|
43197
|
-
import { jsx as
|
|
43265
|
+
import { jsx as jsx129, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
43198
43266
|
var WfoTreeNodeListItem = ({
|
|
43199
43267
|
item,
|
|
43200
43268
|
selected
|
|
@@ -43205,7 +43273,7 @@ var WfoTreeNodeListItem = ({
|
|
|
43205
43273
|
const { selectedTreeItemStyle, treeItemStyle } = useWithOrchestratorTheme(getStyles7);
|
|
43206
43274
|
const { isOutsideCurrentSubscription, id, label } = item;
|
|
43207
43275
|
const textLabel = label.toString();
|
|
43208
|
-
return /* @__PURE__ */
|
|
43276
|
+
return /* @__PURE__ */ jsxs74(
|
|
43209
43277
|
EuiFlexGroup12,
|
|
43210
43278
|
{
|
|
43211
43279
|
alignItems: "center",
|
|
@@ -43214,12 +43282,12 @@ var WfoTreeNodeListItem = ({
|
|
|
43214
43282
|
gutterSize: "xs",
|
|
43215
43283
|
justifyContent: "spaceBetween",
|
|
43216
43284
|
children: [
|
|
43217
|
-
/* @__PURE__ */
|
|
43218
|
-
/* @__PURE__ */
|
|
43219
|
-
|
|
43285
|
+
/* @__PURE__ */ jsx129(EuiFlexItem9, { children: /* @__PURE__ */ jsx129(EuiText11, { title: textLabel, children: /* @__PURE__ */ jsx129(EuiTextTruncate, { text: textLabel }) }) }),
|
|
43286
|
+
/* @__PURE__ */ jsx129(EuiFlexItem9, { css: { maxWidth: theme.size.l }, children: /* @__PURE__ */ jsx129(
|
|
43287
|
+
EuiButtonIcon8,
|
|
43220
43288
|
{
|
|
43221
43289
|
color: "primary",
|
|
43222
|
-
iconType: () => /* @__PURE__ */
|
|
43290
|
+
iconType: () => /* @__PURE__ */ jsx129(WfoXMarkSmall, { color: "currentColor" }),
|
|
43223
43291
|
size: "xs",
|
|
43224
43292
|
"aria-label": t("deselect"),
|
|
43225
43293
|
css: { display: selected ? "block" : "none" }
|
|
@@ -43231,7 +43299,7 @@ var WfoTreeNodeListItem = ({
|
|
|
43231
43299
|
};
|
|
43232
43300
|
|
|
43233
43301
|
// src/components/WfoTree/WfoTreeNode.tsx
|
|
43234
|
-
import { jsx as
|
|
43302
|
+
import { jsx as jsx130, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
43235
43303
|
var WfoTreeNode = ({
|
|
43236
43304
|
item,
|
|
43237
43305
|
hasChildren,
|
|
@@ -43243,8 +43311,8 @@ var WfoTreeNode = ({
|
|
|
43243
43311
|
const expanded = expandedIds.includes(item.id);
|
|
43244
43312
|
const selected = selectedIds.includes(item.id);
|
|
43245
43313
|
const expandIcon = expanded ? "arrowDown" : "arrowRight";
|
|
43246
|
-
return /* @__PURE__ */
|
|
43247
|
-
/* @__PURE__ */
|
|
43314
|
+
return /* @__PURE__ */ jsx130("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs75(EuiFlexGroup13, { children: [
|
|
43315
|
+
/* @__PURE__ */ jsx130(EuiFlexItem10, { grow: false, css: treeContainerStyle, children: hasChildren ? /* @__PURE__ */ jsx130(
|
|
43248
43316
|
EuiIcon2,
|
|
43249
43317
|
{
|
|
43250
43318
|
type: expandIcon,
|
|
@@ -43252,13 +43320,13 @@ var WfoTreeNode = ({
|
|
|
43252
43320
|
cursor: "hand",
|
|
43253
43321
|
onClick: () => expanded ? collapseNode(item.id) : expandNode(item.id)
|
|
43254
43322
|
}
|
|
43255
|
-
) : /* @__PURE__ */
|
|
43256
|
-
/* @__PURE__ */
|
|
43323
|
+
) : /* @__PURE__ */ jsx130(EuiToken, { iconType: item.icon }) }),
|
|
43324
|
+
/* @__PURE__ */ jsx130(EuiFlexItem10, { children: /* @__PURE__ */ jsx130(WfoTreeNodeListItem, { item, selected }) })
|
|
43257
43325
|
] }) });
|
|
43258
43326
|
};
|
|
43259
43327
|
|
|
43260
43328
|
// src/components/WfoTree/WfoTreeBranch.tsx
|
|
43261
|
-
import { Fragment as Fragment29, jsx as
|
|
43329
|
+
import { Fragment as Fragment29, jsx as jsx131, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
43262
43330
|
var WfoTreeBranch = ({ item, level }) => {
|
|
43263
43331
|
const { expandedIds } = React35.useContext(TreeContext);
|
|
43264
43332
|
const selected = expandedIds.includes(item.id);
|
|
@@ -43269,18 +43337,18 @@ var WfoTreeBranch = ({ item, level }) => {
|
|
|
43269
43337
|
const renderBranches = () => {
|
|
43270
43338
|
if (hasChildren) {
|
|
43271
43339
|
const newLevel = level + 1;
|
|
43272
|
-
return item.children.map((child) => /* @__PURE__ */
|
|
43340
|
+
return item.children.map((child) => /* @__PURE__ */ jsx131(WfoTreeBranch, { item: child, level: newLevel }, child.id));
|
|
43273
43341
|
}
|
|
43274
43342
|
return null;
|
|
43275
43343
|
};
|
|
43276
|
-
return /* @__PURE__ */
|
|
43277
|
-
/* @__PURE__ */
|
|
43344
|
+
return /* @__PURE__ */ jsxs76(Fragment29, { children: [
|
|
43345
|
+
/* @__PURE__ */ jsx131(
|
|
43278
43346
|
EuiListGroup,
|
|
43279
43347
|
{
|
|
43280
43348
|
flush: true,
|
|
43281
43349
|
color: "primary",
|
|
43282
43350
|
maxWidth: productBlockTreeWidth,
|
|
43283
|
-
children: /* @__PURE__ */
|
|
43351
|
+
children: /* @__PURE__ */ jsx131(
|
|
43284
43352
|
WfoTreeNode,
|
|
43285
43353
|
{
|
|
43286
43354
|
item,
|
|
@@ -43295,13 +43363,13 @@ var WfoTreeBranch = ({ item, level }) => {
|
|
|
43295
43363
|
};
|
|
43296
43364
|
|
|
43297
43365
|
// src/components/WfoTree/WfoTree.tsx
|
|
43298
|
-
import { jsx as
|
|
43366
|
+
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
43299
43367
|
var WfoTree = ({ treeBlocks, depthList }) => {
|
|
43300
43368
|
const { setDepths } = React36.useContext(TreeContext);
|
|
43301
43369
|
useEffect10(() => {
|
|
43302
43370
|
setDepths(depthList);
|
|
43303
43371
|
}, [setDepths, TreeContext]);
|
|
43304
|
-
return /* @__PURE__ */
|
|
43372
|
+
return /* @__PURE__ */ jsx132("div", { style: { width: "500px" }, children: treeBlocks.map((item) => /* @__PURE__ */ jsx132(WfoTreeBranch, { item, level: 0 }, item.id)) });
|
|
43305
43373
|
};
|
|
43306
43374
|
|
|
43307
43375
|
// src/components/WfoTree/treeUtils.ts
|
|
@@ -43365,7 +43433,7 @@ var getPositionInTree = (tree, id) => {
|
|
|
43365
43433
|
};
|
|
43366
43434
|
|
|
43367
43435
|
// src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
|
|
43368
|
-
import { jsx as
|
|
43436
|
+
import { jsx as jsx133, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
43369
43437
|
var EUI_OPTION_CHECKED_STATE_ON = "on";
|
|
43370
43438
|
var WfoSubscriptionDetailTree = ({
|
|
43371
43439
|
productBlockInstances,
|
|
@@ -43457,7 +43525,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43457
43525
|
expandAll();
|
|
43458
43526
|
return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids);
|
|
43459
43527
|
};
|
|
43460
|
-
return /* @__PURE__ */
|
|
43528
|
+
return /* @__PURE__ */ jsxs77(
|
|
43461
43529
|
EuiFlexGroup14,
|
|
43462
43530
|
{
|
|
43463
43531
|
css: {
|
|
@@ -43465,7 +43533,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43465
43533
|
height: `calc(100vh - ${headerHeight}px)`
|
|
43466
43534
|
},
|
|
43467
43535
|
children: [
|
|
43468
|
-
/* @__PURE__ */
|
|
43536
|
+
/* @__PURE__ */ jsx133(
|
|
43469
43537
|
EuiFlexItem11,
|
|
43470
43538
|
{
|
|
43471
43539
|
style: {
|
|
@@ -43475,16 +43543,16 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43475
43543
|
overflowY: "auto"
|
|
43476
43544
|
},
|
|
43477
43545
|
grow: true,
|
|
43478
|
-
children: /* @__PURE__ */
|
|
43479
|
-
/* @__PURE__ */
|
|
43546
|
+
children: /* @__PURE__ */ jsxs77(EuiFlexGroup14, { direction: "column", children: [
|
|
43547
|
+
/* @__PURE__ */ jsx133(EuiFlexItem11, { grow: false, children: /* @__PURE__ */ jsxs77(
|
|
43480
43548
|
EuiFlexGroup14,
|
|
43481
43549
|
{
|
|
43482
43550
|
justifyContent: "spaceBetween",
|
|
43483
43551
|
alignItems: "center",
|
|
43484
43552
|
children: [
|
|
43485
|
-
/* @__PURE__ */
|
|
43486
|
-
/* @__PURE__ */
|
|
43487
|
-
/* @__PURE__ */
|
|
43553
|
+
/* @__PURE__ */ jsx133(EuiFlexItem11, { children: /* @__PURE__ */ jsx133(EuiText12, { children: /* @__PURE__ */ jsx133("h3", { children: t("productBlocks") }) }) }),
|
|
43554
|
+
/* @__PURE__ */ jsx133(EuiFlexItem11, { grow: false, children: /* @__PURE__ */ jsxs77(EuiFlexGroup14, { children: [
|
|
43555
|
+
/* @__PURE__ */ jsx133(
|
|
43488
43556
|
WfoTextAnchor,
|
|
43489
43557
|
{
|
|
43490
43558
|
text: t(
|
|
@@ -43493,7 +43561,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43493
43561
|
onClick: toggleShowAll
|
|
43494
43562
|
}
|
|
43495
43563
|
),
|
|
43496
|
-
/* @__PURE__ */
|
|
43564
|
+
/* @__PURE__ */ jsx133(
|
|
43497
43565
|
WfoButtonComboBox,
|
|
43498
43566
|
{
|
|
43499
43567
|
options: mapProductBlockInstancesToEuiSelectableOptions(
|
|
@@ -43501,7 +43569,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43501
43569
|
),
|
|
43502
43570
|
onOptionChange: handleOptionChange,
|
|
43503
43571
|
title: t("selectByNameTitle"),
|
|
43504
|
-
children: (togglePopover) => /* @__PURE__ */
|
|
43572
|
+
children: (togglePopover) => /* @__PURE__ */ jsx133(
|
|
43505
43573
|
WfoTextAnchor,
|
|
43506
43574
|
{
|
|
43507
43575
|
text: t(
|
|
@@ -43516,9 +43584,9 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43516
43584
|
]
|
|
43517
43585
|
}
|
|
43518
43586
|
) }),
|
|
43519
|
-
/* @__PURE__ */
|
|
43520
|
-
!tree && /* @__PURE__ */
|
|
43521
|
-
tree && /* @__PURE__ */
|
|
43587
|
+
/* @__PURE__ */ jsxs77(EuiFlexItem11, { grow: true, children: [
|
|
43588
|
+
!tree && /* @__PURE__ */ jsx133(WfoLoading, {}),
|
|
43589
|
+
tree && /* @__PURE__ */ jsx133(
|
|
43522
43590
|
WfoTree,
|
|
43523
43591
|
{
|
|
43524
43592
|
treeBlocks: [tree],
|
|
@@ -43529,7 +43597,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43529
43597
|
] })
|
|
43530
43598
|
}
|
|
43531
43599
|
),
|
|
43532
|
-
/* @__PURE__ */
|
|
43600
|
+
/* @__PURE__ */ jsx133(
|
|
43533
43601
|
EuiFlexItem11,
|
|
43534
43602
|
{
|
|
43535
43603
|
css: {
|
|
@@ -43537,10 +43605,10 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43537
43605
|
minWidth: 350
|
|
43538
43606
|
},
|
|
43539
43607
|
grow: true,
|
|
43540
|
-
children: /* @__PURE__ */
|
|
43541
|
-
/* @__PURE__ */
|
|
43608
|
+
children: /* @__PURE__ */ jsxs77("div", { children: [
|
|
43609
|
+
/* @__PURE__ */ jsx133("div", { children: "\xA0" }),
|
|
43542
43610
|
" ",
|
|
43543
|
-
selectedIds.length === 0 && /* @__PURE__ */
|
|
43611
|
+
selectedIds.length === 0 && /* @__PURE__ */ jsx133(
|
|
43544
43612
|
EuiCallOut,
|
|
43545
43613
|
{
|
|
43546
43614
|
css: {
|
|
@@ -43550,7 +43618,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43550
43618
|
size: "m",
|
|
43551
43619
|
title: t("noProductBlockSelected"),
|
|
43552
43620
|
iconType: "inspect",
|
|
43553
|
-
children: /* @__PURE__ */
|
|
43621
|
+
children: /* @__PURE__ */ jsxs77(EuiText12, { children: [
|
|
43554
43622
|
t("ctaSelectProductBlock"),
|
|
43555
43623
|
" "
|
|
43556
43624
|
] })
|
|
@@ -43558,7 +43626,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43558
43626
|
),
|
|
43559
43627
|
selectedIds.length !== 0 && selectedIds.sort(sortByTree).map((id) => {
|
|
43560
43628
|
const block = idToNodeMap[id];
|
|
43561
|
-
return /* @__PURE__ */
|
|
43629
|
+
return /* @__PURE__ */ jsx133(
|
|
43562
43630
|
WfoSubscriptionProductBlock,
|
|
43563
43631
|
{
|
|
43564
43632
|
subscriptionId,
|
|
@@ -43578,7 +43646,7 @@ var WfoSubscriptionDetailTree = ({
|
|
|
43578
43646
|
|
|
43579
43647
|
// src/components/WfoSubscription/WfoSubscriptionGeneral.tsx
|
|
43580
43648
|
import { EuiFlexGrid, EuiFlexItem as EuiFlexItem12 } from "@elastic/eui";
|
|
43581
|
-
import { jsx as
|
|
43649
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
43582
43650
|
var WfoSubscriptionGeneralSections = /* @__PURE__ */ ((WfoSubscriptionGeneralSections2) => {
|
|
43583
43651
|
WfoSubscriptionGeneralSections2["BLOCK_TITLE_SUBSCRIPTION_DETAILS"] = "blockTitleSubscriptionDetails";
|
|
43584
43652
|
WfoSubscriptionGeneralSections2["BLOCK_TITLE_METADATA"] = "metadata";
|
|
@@ -43596,7 +43664,7 @@ var WfoSubscriptionGeneral = ({
|
|
|
43596
43664
|
const defaultConfiguration = [
|
|
43597
43665
|
{
|
|
43598
43666
|
id: "blockTitleSubscriptionDetails" /* BLOCK_TITLE_SUBSCRIPTION_DETAILS */,
|
|
43599
|
-
node: /* @__PURE__ */
|
|
43667
|
+
node: /* @__PURE__ */ jsx134(
|
|
43600
43668
|
WfoSubscriptionDetailSection,
|
|
43601
43669
|
{
|
|
43602
43670
|
subscriptionDetail
|
|
@@ -43606,14 +43674,14 @@ var WfoSubscriptionGeneral = ({
|
|
|
43606
43674
|
...toOptionalArrayEntry(
|
|
43607
43675
|
{
|
|
43608
43676
|
id: "metadata" /* BLOCK_TITLE_METADATA */,
|
|
43609
|
-
node: /* @__PURE__ */
|
|
43677
|
+
node: /* @__PURE__ */ jsx134(WfoSubscriptionMetadataSection, { metadata })
|
|
43610
43678
|
},
|
|
43611
43679
|
hasMetadata
|
|
43612
43680
|
),
|
|
43613
43681
|
...toOptionalArrayEntry(
|
|
43614
43682
|
{
|
|
43615
43683
|
id: "blockTitleFixedInputs" /* BLOCK_TITLE_FIXED_INPUTS */,
|
|
43616
|
-
node: /* @__PURE__ */
|
|
43684
|
+
node: /* @__PURE__ */ jsx134(
|
|
43617
43685
|
WfoSubscriptionFixedInputSection,
|
|
43618
43686
|
{
|
|
43619
43687
|
fixedInputs
|
|
@@ -43624,11 +43692,11 @@ var WfoSubscriptionGeneral = ({
|
|
|
43624
43692
|
),
|
|
43625
43693
|
{
|
|
43626
43694
|
id: "blockTitleProductInfo" /* BLOCK_TITLE_PRODUCT_INFO */,
|
|
43627
|
-
node: /* @__PURE__ */
|
|
43695
|
+
node: /* @__PURE__ */ jsx134(WfoSubscriptionProductInfoSection, { product })
|
|
43628
43696
|
}
|
|
43629
43697
|
];
|
|
43630
43698
|
const configuration = overrideSections?.(defaultConfiguration, subscriptionDetail) || defaultConfiguration;
|
|
43631
|
-
return /* @__PURE__ */
|
|
43699
|
+
return /* @__PURE__ */ jsx134(EuiFlexGrid, { direction: "row", children: configuration.map(({ id, node }) => /* @__PURE__ */ jsx134(EuiFlexItem12, { children: node }, id)) });
|
|
43632
43700
|
};
|
|
43633
43701
|
|
|
43634
43702
|
// src/rtk/endpoints/customerDescriptions.ts
|
|
@@ -43679,7 +43747,7 @@ var {
|
|
|
43679
43747
|
// src/components/WfoInlineEdit/WfoInlineEdit.tsx
|
|
43680
43748
|
import { useEffect as useEffect11, useState as useState23 } from "react";
|
|
43681
43749
|
import { EuiInlineEditText } from "@elastic/eui";
|
|
43682
|
-
import { jsx as
|
|
43750
|
+
import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
|
|
43683
43751
|
var WfoInlineEdit = ({
|
|
43684
43752
|
value,
|
|
43685
43753
|
onlyShowOnHover = false,
|
|
@@ -43699,7 +43767,7 @@ var WfoInlineEdit = ({
|
|
|
43699
43767
|
useEffect11(() => {
|
|
43700
43768
|
setValue(value);
|
|
43701
43769
|
}, [value]);
|
|
43702
|
-
return /* @__PURE__ */
|
|
43770
|
+
return /* @__PURE__ */ jsx135(
|
|
43703
43771
|
"div",
|
|
43704
43772
|
{
|
|
43705
43773
|
css: {
|
|
@@ -43713,14 +43781,14 @@ var WfoInlineEdit = ({
|
|
|
43713
43781
|
width: "100%"
|
|
43714
43782
|
}
|
|
43715
43783
|
},
|
|
43716
|
-
children: /* @__PURE__ */
|
|
43784
|
+
children: /* @__PURE__ */ jsx135(
|
|
43717
43785
|
WfoToolTip,
|
|
43718
43786
|
{
|
|
43719
43787
|
css: {
|
|
43720
43788
|
visibility: isTooltipVisible && note !== INVISIBLE_CHARACTER ? "visible" : "hidden"
|
|
43721
43789
|
},
|
|
43722
43790
|
tooltipContent: note,
|
|
43723
|
-
children: /* @__PURE__ */
|
|
43791
|
+
children: /* @__PURE__ */ jsx135("span", { children: /* @__PURE__ */ jsx135(
|
|
43724
43792
|
EuiInlineEditText,
|
|
43725
43793
|
{
|
|
43726
43794
|
inputAriaLabel: "Edit field",
|
|
@@ -43789,7 +43857,7 @@ var WfoInlineEdit = ({
|
|
|
43789
43857
|
};
|
|
43790
43858
|
|
|
43791
43859
|
// src/components/WfoSubscription/WfoCustomerDescriptionsField.tsx
|
|
43792
|
-
import { jsx as
|
|
43860
|
+
import { jsx as jsx136, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
43793
43861
|
var WfoCustomerDescriptionsField = ({ customerDescriptions, subscriptionCustomerId, subscriptionId }) => {
|
|
43794
43862
|
const {
|
|
43795
43863
|
customerDescriptionsCustomerNameStyle,
|
|
@@ -43826,14 +43894,14 @@ var WfoCustomerDescriptionsField = ({ customerDescriptions, subscriptionCustomer
|
|
|
43826
43894
|
description,
|
|
43827
43895
|
id,
|
|
43828
43896
|
subscriptionId: subscriptionId2
|
|
43829
|
-
}) => /* @__PURE__ */
|
|
43830
|
-
/* @__PURE__ */
|
|
43897
|
+
}) => /* @__PURE__ */ jsxs78("div", { css: { display: "flex" }, children: [
|
|
43898
|
+
/* @__PURE__ */ jsxs78("div", { css: customerDescriptionsCustomerNameStyle, children: [
|
|
43831
43899
|
fullname ?? customerId,
|
|
43832
43900
|
" ",
|
|
43833
43901
|
`${shortcode ?? customerId}`,
|
|
43834
43902
|
":"
|
|
43835
43903
|
] }),
|
|
43836
|
-
/* @__PURE__ */
|
|
43904
|
+
/* @__PURE__ */ jsx136(
|
|
43837
43905
|
WfoInlineEdit,
|
|
43838
43906
|
{
|
|
43839
43907
|
value: description,
|
|
@@ -43848,7 +43916,7 @@ var WfoCustomerDescriptionsField = ({ customerDescriptions, subscriptionCustomer
|
|
|
43848
43916
|
] }, customerId);
|
|
43849
43917
|
const customerDescriptionCreateForm = () => {
|
|
43850
43918
|
if (!subscriptionCustomerId) return;
|
|
43851
|
-
return /* @__PURE__ */
|
|
43919
|
+
return /* @__PURE__ */ jsx136("div", { children: /* @__PURE__ */ jsx136(
|
|
43852
43920
|
WfoInlineEdit,
|
|
43853
43921
|
{
|
|
43854
43922
|
value: INVISIBLE_CHARACTER,
|
|
@@ -43864,7 +43932,7 @@ var WfoCustomerDescriptionsField = ({ customerDescriptions, subscriptionCustomer
|
|
|
43864
43932
|
const currentCustomerSubscriptionDescription = customerDescriptionsWithName.find(
|
|
43865
43933
|
({ customerId }) => customerId === subscriptionCustomerId
|
|
43866
43934
|
);
|
|
43867
|
-
return /* @__PURE__ */
|
|
43935
|
+
return /* @__PURE__ */ jsxs78("div", { css: customerDescriptionsFormStyle, children: [
|
|
43868
43936
|
currentCustomerSubscriptionDescription && customerDescriptionEditForm(
|
|
43869
43937
|
currentCustomerSubscriptionDescription
|
|
43870
43938
|
) || customerDescriptionCreateForm(),
|
|
@@ -43906,7 +43974,7 @@ var getWfoTableSettingsModalStyles = (wfoTheme) => {
|
|
|
43906
43974
|
};
|
|
43907
43975
|
|
|
43908
43976
|
// src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx
|
|
43909
|
-
import { jsx as
|
|
43977
|
+
import { jsx as jsx137, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
43910
43978
|
var TableSettingsModal = ({
|
|
43911
43979
|
tableConfig,
|
|
43912
43980
|
pageSizeOptions,
|
|
@@ -43935,7 +44003,7 @@ var TableSettingsModal = ({
|
|
|
43935
44003
|
);
|
|
43936
44004
|
setColumns(updatedColumns);
|
|
43937
44005
|
};
|
|
43938
|
-
return /* @__PURE__ */
|
|
44006
|
+
return /* @__PURE__ */ jsx137(
|
|
43939
44007
|
WfoSettingsModal,
|
|
43940
44008
|
{
|
|
43941
44009
|
title: t("tableSettings"),
|
|
@@ -43945,15 +44013,15 @@ var TableSettingsModal = ({
|
|
|
43945
44013
|
columns,
|
|
43946
44014
|
selectedPageSize
|
|
43947
44015
|
}),
|
|
43948
|
-
children: /* @__PURE__ */
|
|
43949
|
-
columns.map(({ field, name, isVisible }) => /* @__PURE__ */
|
|
43950
|
-
/* @__PURE__ */
|
|
44016
|
+
children: /* @__PURE__ */ jsxs79(EuiForm2, { children: [
|
|
44017
|
+
columns.map(({ field, name, isVisible }) => /* @__PURE__ */ jsxs79("div", { children: [
|
|
44018
|
+
/* @__PURE__ */ jsx137(
|
|
43951
44019
|
EuiFormRow3,
|
|
43952
44020
|
{
|
|
43953
44021
|
display: "columnCompressed",
|
|
43954
44022
|
label: name,
|
|
43955
44023
|
css: formRowStyle,
|
|
43956
|
-
children: /* @__PURE__ */
|
|
44024
|
+
children: /* @__PURE__ */ jsx137(
|
|
43957
44025
|
EuiSwitch2,
|
|
43958
44026
|
{
|
|
43959
44027
|
showLabel: false,
|
|
@@ -43967,17 +44035,17 @@ var TableSettingsModal = ({
|
|
|
43967
44035
|
)
|
|
43968
44036
|
}
|
|
43969
44037
|
),
|
|
43970
|
-
/* @__PURE__ */
|
|
44038
|
+
/* @__PURE__ */ jsx137(EuiHorizontalRule3, { margin: "xs" })
|
|
43971
44039
|
] }, field.toString())),
|
|
43972
|
-
/* @__PURE__ */
|
|
43973
|
-
/* @__PURE__ */
|
|
44040
|
+
/* @__PURE__ */ jsx137(EuiSpacer16, { size: "xs" }),
|
|
44041
|
+
/* @__PURE__ */ jsx137(
|
|
43974
44042
|
EuiFormRow3,
|
|
43975
44043
|
{
|
|
43976
44044
|
css: formRowStyle,
|
|
43977
44045
|
hasEmptyLabelSpace: true,
|
|
43978
44046
|
label: t("numberOfRows"),
|
|
43979
44047
|
display: "columnCompressed",
|
|
43980
|
-
children: /* @__PURE__ */
|
|
44048
|
+
children: /* @__PURE__ */ jsx137(
|
|
43981
44049
|
EuiSelect,
|
|
43982
44050
|
{
|
|
43983
44051
|
css: selectFieldStyle,
|
|
@@ -44046,12 +44114,12 @@ var getWfoStatusColorFieldStyles = ({ theme }) => {
|
|
|
44046
44114
|
};
|
|
44047
44115
|
|
|
44048
44116
|
// src/components/WfoTable/WfoStatusColorField/WfoStatusColorField.tsx
|
|
44049
|
-
import { jsx as
|
|
44117
|
+
import { jsx as jsx138 } from "@emotion/react/jsx-runtime";
|
|
44050
44118
|
var WfoStatusColorField = ({ color }) => {
|
|
44051
44119
|
const { getStatusColorFieldStyle } = useWithOrchestratorTheme(
|
|
44052
44120
|
getWfoStatusColorFieldStyles
|
|
44053
44121
|
);
|
|
44054
|
-
return /* @__PURE__ */
|
|
44122
|
+
return /* @__PURE__ */ jsx138("div", { css: getStatusColorFieldStyle(color) });
|
|
44055
44123
|
};
|
|
44056
44124
|
|
|
44057
44125
|
// src/components/WfoTable/WfoTableWithFilter/updateQueryString.ts
|
|
@@ -44106,7 +44174,7 @@ var getStyles8 = () => {
|
|
|
44106
44174
|
};
|
|
44107
44175
|
|
|
44108
44176
|
// src/components/WfoTable/WfoSortButtons/WfoSortButton.tsx
|
|
44109
|
-
import { jsx as
|
|
44177
|
+
import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
|
|
44110
44178
|
var WfoSortButton = ({
|
|
44111
44179
|
WfoIconComponent,
|
|
44112
44180
|
isActive,
|
|
@@ -44114,12 +44182,12 @@ var WfoSortButton = ({
|
|
|
44114
44182
|
}) => {
|
|
44115
44183
|
const { theme } = useOrchestratorTheme();
|
|
44116
44184
|
const { getSortButtonStyle } = getStyles8();
|
|
44117
|
-
return /* @__PURE__ */
|
|
44185
|
+
return /* @__PURE__ */ jsx139(
|
|
44118
44186
|
"button",
|
|
44119
44187
|
{
|
|
44120
44188
|
css: getSortButtonStyle(isActive),
|
|
44121
44189
|
onClick: () => isActive && onClick?.(),
|
|
44122
|
-
children: /* @__PURE__ */
|
|
44190
|
+
children: /* @__PURE__ */ jsx139(
|
|
44123
44191
|
WfoIconComponent,
|
|
44124
44192
|
{
|
|
44125
44193
|
color: isActive ? theme.colors.title : theme.colors.lightShade
|
|
@@ -44130,14 +44198,14 @@ var WfoSortButton = ({
|
|
|
44130
44198
|
};
|
|
44131
44199
|
|
|
44132
44200
|
// src/components/WfoTable/WfoSortButtons/WfoSortButtons.tsx
|
|
44133
|
-
import { jsx as
|
|
44201
|
+
import { jsx as jsx140, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
44134
44202
|
var WfoSortButtons = ({
|
|
44135
44203
|
sortOrder,
|
|
44136
44204
|
onChangeSortOrder
|
|
44137
44205
|
}) => {
|
|
44138
44206
|
const { sortButtonsContainerStyle } = getStyles8();
|
|
44139
|
-
return /* @__PURE__ */
|
|
44140
|
-
/* @__PURE__ */
|
|
44207
|
+
return /* @__PURE__ */ jsxs80("div", { css: sortButtonsContainerStyle, children: [
|
|
44208
|
+
/* @__PURE__ */ jsx140(
|
|
44141
44209
|
WfoSortButton,
|
|
44142
44210
|
{
|
|
44143
44211
|
WfoIconComponent: WfoSortAsc,
|
|
@@ -44145,7 +44213,7 @@ var WfoSortButtons = ({
|
|
|
44145
44213
|
onClick: () => onChangeSortOrder("ASC" /* ASC */)
|
|
44146
44214
|
}
|
|
44147
44215
|
),
|
|
44148
|
-
/* @__PURE__ */
|
|
44216
|
+
/* @__PURE__ */ jsx140(
|
|
44149
44217
|
WfoSortButton,
|
|
44150
44218
|
{
|
|
44151
44219
|
WfoIconComponent: WfoSortDesc,
|
|
@@ -44185,22 +44253,22 @@ var getStyles9 = ({ theme }) => {
|
|
|
44185
44253
|
};
|
|
44186
44254
|
|
|
44187
44255
|
// src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx
|
|
44188
|
-
import { jsx as
|
|
44256
|
+
import { jsx as jsx141, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
44189
44257
|
var WfoFirstPartUUID = ({
|
|
44190
44258
|
UUID,
|
|
44191
44259
|
showCopyIcon = true
|
|
44192
44260
|
}) => {
|
|
44193
44261
|
const { uuidFieldStyle, clickable } = useWithOrchestratorTheme(getStyles9);
|
|
44194
44262
|
const { theme } = useOrchestratorTheme();
|
|
44195
|
-
return /* @__PURE__ */
|
|
44263
|
+
return /* @__PURE__ */ jsxs81("span", { css: uuidFieldStyle, children: [
|
|
44196
44264
|
getFirstUuidPart(UUID),
|
|
44197
|
-
showCopyIcon && /* @__PURE__ */
|
|
44265
|
+
showCopyIcon && /* @__PURE__ */ jsx141(EuiCopy2, { textToCopy: UUID, children: (copy) => /* @__PURE__ */ jsx141(
|
|
44198
44266
|
"div",
|
|
44199
44267
|
{
|
|
44200
44268
|
className: COPY_ICON_CLASS,
|
|
44201
44269
|
onClick: copy,
|
|
44202
44270
|
css: clickable,
|
|
44203
|
-
children: /* @__PURE__ */
|
|
44271
|
+
children: /* @__PURE__ */ jsx141(
|
|
44204
44272
|
WfoClipboardCopy,
|
|
44205
44273
|
{
|
|
44206
44274
|
width: 16,
|
|
@@ -44214,61 +44282,22 @@ var WfoFirstPartUUID = ({
|
|
|
44214
44282
|
};
|
|
44215
44283
|
|
|
44216
44284
|
// src/components/WfoTable/WfoInlineJson/WfoInlineJson.tsx
|
|
44217
|
-
import { jsx as
|
|
44285
|
+
import { jsx as jsx142 } from "@emotion/react/jsx-runtime";
|
|
44218
44286
|
var WfoInlineJson = ({ data }) => {
|
|
44219
44287
|
if (!data) {
|
|
44220
44288
|
return null;
|
|
44221
44289
|
}
|
|
44222
44290
|
const valueAsString = JSON.stringify(data);
|
|
44223
|
-
return /* @__PURE__ */
|
|
44291
|
+
return /* @__PURE__ */ jsx142("span", { children: valueAsString });
|
|
44224
44292
|
};
|
|
44225
44293
|
|
|
44226
44294
|
// src/components/WfoTable/WfoRowContextMenu/WfoRowContextMenu.tsx
|
|
44227
44295
|
import { useEffect as useEffect12, useRef as useRef9, useState as useState25 } from "react";
|
|
44228
44296
|
import {
|
|
44229
|
-
EuiButtonIcon as
|
|
44297
|
+
EuiButtonIcon as EuiButtonIcon9,
|
|
44230
44298
|
EuiContextMenu as EuiContextMenu2,
|
|
44231
44299
|
EuiPopover as EuiPopover6
|
|
44232
44300
|
} from "@elastic/eui";
|
|
44233
|
-
|
|
44234
|
-
// src/icons/WfoDotsHorizontal.tsx
|
|
44235
|
-
import { jsx as jsx142, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
44236
|
-
var WfoDotsHorizontal = ({
|
|
44237
|
-
width = 20,
|
|
44238
|
-
height = 20,
|
|
44239
|
-
color = "currentColor"
|
|
44240
|
-
}) => /* @__PURE__ */ jsxs81(
|
|
44241
|
-
"svg",
|
|
44242
|
-
{
|
|
44243
|
-
width,
|
|
44244
|
-
height,
|
|
44245
|
-
viewBox: "0 0 24 24",
|
|
44246
|
-
version: "1.1",
|
|
44247
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44248
|
-
children: [
|
|
44249
|
-
/* @__PURE__ */ jsx142("title", { children: "icon/dots-horizontal" }),
|
|
44250
|
-
/* @__PURE__ */ jsx142(
|
|
44251
|
-
"g",
|
|
44252
|
-
{
|
|
44253
|
-
id: "Symbols",
|
|
44254
|
-
stroke: "none",
|
|
44255
|
-
strokeWidth: "1",
|
|
44256
|
-
fill: "none",
|
|
44257
|
-
fillRule: "evenodd",
|
|
44258
|
-
children: /* @__PURE__ */ jsx142("g", { id: "icon/dots-horizontal", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx142(
|
|
44259
|
-
"path",
|
|
44260
|
-
{
|
|
44261
|
-
d: "M8,12 C8,13.1046 7.10457,14 6,14 C4.89543,14 4,13.1046 4,12 C4,10.89543 4.89543,10 6,10 C7.10457,10 8,10.89543 8,12 Z M14,12 C14,13.1046 13.1046,14 12,14 C10.89543,14 10,13.1046 10,12 C10,10.89543 10.89543,10 12,10 C13.1046,10 14,10.89543 14,12 Z M18,14 C19.1046,14 20,13.1046 20,12 C20,10.89543 19.1046,10 18,10 C16.8954,10 16,10.89543 16,12 C16,13.1046 16.8954,14 18,14 Z",
|
|
44262
|
-
id: "Combined-Shape"
|
|
44263
|
-
}
|
|
44264
|
-
) })
|
|
44265
|
-
}
|
|
44266
|
-
)
|
|
44267
|
-
]
|
|
44268
|
-
}
|
|
44269
|
-
);
|
|
44270
|
-
|
|
44271
|
-
// src/components/WfoTable/WfoRowContextMenu/WfoRowContextMenu.tsx
|
|
44272
44301
|
import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
|
|
44273
44302
|
var WfoRowContextMenu = ({
|
|
44274
44303
|
items,
|
|
@@ -44287,7 +44316,7 @@ var WfoRowContextMenu = ({
|
|
|
44287
44316
|
EuiPopover6,
|
|
44288
44317
|
{
|
|
44289
44318
|
button: /* @__PURE__ */ jsx143(
|
|
44290
|
-
|
|
44319
|
+
EuiButtonIcon9,
|
|
44291
44320
|
{
|
|
44292
44321
|
iconType: () => /* @__PURE__ */ jsx143(WfoDotsHorizontal, {}),
|
|
44293
44322
|
onClick: togglePopover,
|
|
@@ -44348,7 +44377,7 @@ import { useEffect as useEffect13, useState as useState26 } from "react";
|
|
|
44348
44377
|
import { useTranslations as useTranslations36 } from "next-intl";
|
|
44349
44378
|
import {
|
|
44350
44379
|
EuiButton as EuiButton8,
|
|
44351
|
-
EuiButtonIcon as
|
|
44380
|
+
EuiButtonIcon as EuiButtonIcon10,
|
|
44352
44381
|
EuiFlexGroup as EuiFlexGroup15,
|
|
44353
44382
|
EuiFlexItem as EuiFlexItem13,
|
|
44354
44383
|
EuiSpacer as EuiSpacer17,
|
|
@@ -44448,7 +44477,7 @@ var WfoAdvancedTable = ({
|
|
|
44448
44477
|
}
|
|
44449
44478
|
) }),
|
|
44450
44479
|
/* @__PURE__ */ jsx145(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsx145(
|
|
44451
|
-
|
|
44480
|
+
EuiButtonIcon10,
|
|
44452
44481
|
{
|
|
44453
44482
|
onClick: () => setShowSearchModal(true),
|
|
44454
44483
|
iconSize: "xl",
|
|
@@ -47369,7 +47398,7 @@ import {
|
|
|
47369
47398
|
useForm as useForm8
|
|
47370
47399
|
} from "uniforms";
|
|
47371
47400
|
import {
|
|
47372
|
-
EuiButtonIcon as
|
|
47401
|
+
EuiButtonIcon as EuiButtonIcon11,
|
|
47373
47402
|
EuiFlexGroup as EuiFlexGroup16,
|
|
47374
47403
|
EuiFlexItem as EuiFlexItem20,
|
|
47375
47404
|
EuiFormRow as EuiFormRow18,
|
|
@@ -47547,7 +47576,7 @@ function SubscriptionFieldDefinition({
|
|
|
47547
47576
|
gutterSize: "none",
|
|
47548
47577
|
responsive: false,
|
|
47549
47578
|
children: /* @__PURE__ */ jsx178(
|
|
47550
|
-
|
|
47579
|
+
EuiButtonIcon11,
|
|
47551
47580
|
{
|
|
47552
47581
|
className: "reload-subscriptions-icon-button",
|
|
47553
47582
|
id: `refresh-icon-${id}`,
|
|
@@ -47765,7 +47794,7 @@ function Summary({
|
|
|
47765
47794
|
return null;
|
|
47766
47795
|
}
|
|
47767
47796
|
const { headers, labels, columns } = data;
|
|
47768
|
-
const extraColumnsData = columns.filter((
|
|
47797
|
+
const extraColumnsData = columns.filter((_5, index) => index !== 0);
|
|
47769
47798
|
const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs98("tr", { children: [
|
|
47770
47799
|
labels && /* @__PURE__ */ jsx181("td", { className: `label`, children: labels[index] }),
|
|
47771
47800
|
/* @__PURE__ */ jsx181("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx181(
|
|
@@ -47775,7 +47804,7 @@ function Summary({
|
|
|
47775
47804
|
dangerouslySetInnerHTML: { __html: row }
|
|
47776
47805
|
}
|
|
47777
47806
|
) : row }),
|
|
47778
|
-
extraColumnsData && extraColumnsData.map((
|
|
47807
|
+
extraColumnsData && extraColumnsData.map((_5, idx) => /* @__PURE__ */ jsx181("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
|
|
47779
47808
|
] }, index));
|
|
47780
47809
|
const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs98("tr", { children: [
|
|
47781
47810
|
labels && /* @__PURE__ */ jsx181("th", {}),
|
|
@@ -50329,7 +50358,7 @@ var WfoProcessDetailPage = ({
|
|
|
50329
50358
|
};
|
|
50330
50359
|
|
|
50331
50360
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
50332
|
-
import { useCallback as useCallback9, useEffect as useEffect34, useMemo as useMemo7, useState as
|
|
50361
|
+
import { useCallback as useCallback9, useEffect as useEffect34, useMemo as useMemo7, useState as useState51 } from "react";
|
|
50333
50362
|
import { useTranslations as useTranslations69 } from "next-intl";
|
|
50334
50363
|
import { useRouter as useRouter10 } from "next/router";
|
|
50335
50364
|
import {
|
|
@@ -50342,6 +50371,7 @@ import {
|
|
|
50342
50371
|
|
|
50343
50372
|
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
50344
50373
|
import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
|
|
50374
|
+
import _4 from "lodash";
|
|
50345
50375
|
import { useMessages, useTranslations as useTranslations62 } from "next-intl";
|
|
50346
50376
|
import { useRouter as useRouter9 } from "next/router";
|
|
50347
50377
|
import {
|
|
@@ -50527,6 +50557,8 @@ var WfoTextArea = ({
|
|
|
50527
50557
|
};
|
|
50528
50558
|
|
|
50529
50559
|
// src/components/WfoPydanticForm/fields/WfoText.tsx
|
|
50560
|
+
import _2 from "lodash";
|
|
50561
|
+
import { getFormFieldIdWithPath } from "pydantic-forms";
|
|
50530
50562
|
import { EuiFieldText as EuiFieldText4 } from "@elastic/eui";
|
|
50531
50563
|
import { jsx as jsx208 } from "@emotion/react/jsx-runtime";
|
|
50532
50564
|
var WfoText = ({
|
|
@@ -50538,6 +50570,8 @@ var WfoText = ({
|
|
|
50538
50570
|
const { formFieldBaseStyle } = useWithOrchestratorTheme(
|
|
50539
50571
|
getFormFieldsBaseStyle
|
|
50540
50572
|
);
|
|
50573
|
+
const fieldName = getFormFieldIdWithPath(pydanticFormField.id);
|
|
50574
|
+
const fieldValue = _2.isObject(value) && _2.has(value, fieldName) ? _2.get(value, fieldName) : value;
|
|
50541
50575
|
return /* @__PURE__ */ jsx208(
|
|
50542
50576
|
EuiFieldText4,
|
|
50543
50577
|
{
|
|
@@ -50545,7 +50579,7 @@ var WfoText = ({
|
|
|
50545
50579
|
css: formFieldBaseStyle,
|
|
50546
50580
|
disabled,
|
|
50547
50581
|
onChange: (event) => onChange(event.target.value),
|
|
50548
|
-
value:
|
|
50582
|
+
value: fieldValue,
|
|
50549
50583
|
fullWidth: true
|
|
50550
50584
|
}
|
|
50551
50585
|
);
|
|
@@ -50618,7 +50652,7 @@ var WfoSummary = ({ pydanticFormField }) => {
|
|
|
50618
50652
|
const headers = summaryData?.headers;
|
|
50619
50653
|
const labels = summaryData?.labels;
|
|
50620
50654
|
const columns = summaryData?.columns || [];
|
|
50621
|
-
const extraColumnsData = columns.filter((
|
|
50655
|
+
const extraColumnsData = columns.filter((_5, index) => index !== 0);
|
|
50622
50656
|
const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs111("tr", { children: [
|
|
50623
50657
|
labels && /* @__PURE__ */ jsx212("td", { className: `label`, children: getNestedSummaryLabel(labels, index) }),
|
|
50624
50658
|
/* @__PURE__ */ jsx212("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx212(
|
|
@@ -50628,7 +50662,7 @@ var WfoSummary = ({ pydanticFormField }) => {
|
|
|
50628
50662
|
dangerouslySetInnerHTML: { __html: row }
|
|
50629
50663
|
}
|
|
50630
50664
|
) : row }),
|
|
50631
|
-
extraColumnsData && extraColumnsData.map((
|
|
50665
|
+
extraColumnsData && extraColumnsData.map((_5, idx) => /* @__PURE__ */ jsx212("td", { className: `value`, children: extraColumnsData[idx][index].toString() }, idx))
|
|
50632
50666
|
] }, index));
|
|
50633
50667
|
const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs111("tr", { children: [
|
|
50634
50668
|
labels && /* @__PURE__ */ jsx212("th", {}),
|
|
@@ -51463,7 +51497,7 @@ var WfoRadio = ({
|
|
|
51463
51497
|
value,
|
|
51464
51498
|
disabled
|
|
51465
51499
|
}) => {
|
|
51466
|
-
const radioOptions = pydanticFormField.options
|
|
51500
|
+
const radioOptions = pydanticFormField.options?.map((option) => ({
|
|
51467
51501
|
id: option.value,
|
|
51468
51502
|
label: option.label
|
|
51469
51503
|
}));
|
|
@@ -51471,7 +51505,7 @@ var WfoRadio = ({
|
|
|
51471
51505
|
EuiRadioGroup,
|
|
51472
51506
|
{
|
|
51473
51507
|
"data-testid": pydanticFormField.id,
|
|
51474
|
-
options: radioOptions,
|
|
51508
|
+
options: radioOptions || [],
|
|
51475
51509
|
idSelected: value,
|
|
51476
51510
|
onChange: (id) => onChange(id),
|
|
51477
51511
|
name: pydanticFormField.id,
|
|
@@ -51481,6 +51515,8 @@ var WfoRadio = ({
|
|
|
51481
51515
|
};
|
|
51482
51516
|
|
|
51483
51517
|
// src/components/WfoPydanticForm/fields/WfoInteger.tsx
|
|
51518
|
+
import _3 from "lodash";
|
|
51519
|
+
import { getFormFieldIdWithPath as getFormFieldIdWithPath2 } from "pydantic-forms";
|
|
51484
51520
|
import { EuiFieldNumber as EuiFieldNumber2 } from "@elastic/eui";
|
|
51485
51521
|
import { css as css38 } from "@emotion/react";
|
|
51486
51522
|
import { jsx as jsx216 } from "@emotion/react/jsx-runtime";
|
|
@@ -51505,6 +51541,8 @@ var WfoInteger = ({
|
|
|
51505
51541
|
const { formFieldBaseStyle } = useWithOrchestratorTheme(
|
|
51506
51542
|
getFormFieldsBaseStyle2
|
|
51507
51543
|
);
|
|
51544
|
+
const fieldName = getFormFieldIdWithPath2(pydanticFormField.id);
|
|
51545
|
+
const fieldValue = _3.isObject(value) && _3.has(value, fieldName) ? _3.get(value, fieldName) : value;
|
|
51508
51546
|
return /* @__PURE__ */ jsx216(
|
|
51509
51547
|
EuiFieldNumber2,
|
|
51510
51548
|
{
|
|
@@ -51512,16 +51550,16 @@ var WfoInteger = ({
|
|
|
51512
51550
|
css: formFieldBaseStyle,
|
|
51513
51551
|
name: pydanticFormField.id,
|
|
51514
51552
|
onChange: (event) => onChange(parseInt(event.target.value)),
|
|
51515
|
-
value,
|
|
51553
|
+
value: fieldValue,
|
|
51516
51554
|
disabled
|
|
51517
51555
|
}
|
|
51518
51556
|
);
|
|
51519
51557
|
};
|
|
51520
51558
|
|
|
51521
51559
|
// src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
|
|
51522
|
-
import
|
|
51560
|
+
import { useEffect as useEffect30, useState as useState44 } from "react";
|
|
51523
51561
|
import ReactSelect5, { components } from "react-select";
|
|
51524
|
-
import { EuiButtonIcon as
|
|
51562
|
+
import { EuiButtonIcon as EuiButtonIcon12 } from "@elastic/eui";
|
|
51525
51563
|
|
|
51526
51564
|
// src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts
|
|
51527
51565
|
import { css as css39 } from "@emotion/react";
|
|
@@ -51595,16 +51633,18 @@ var WfoReactSelect = ({
|
|
|
51595
51633
|
hasError = false,
|
|
51596
51634
|
refetch
|
|
51597
51635
|
}) => {
|
|
51598
|
-
useEffect30(() => {
|
|
51599
|
-
const selectedValue2 = options.find(
|
|
51600
|
-
(option) => option.value === value
|
|
51601
|
-
);
|
|
51602
|
-
setSelectedValue(selectedValue2 || null);
|
|
51603
|
-
}, [options, value]);
|
|
51604
51636
|
const initialValue = options.find(
|
|
51605
51637
|
(option) => option.value === value
|
|
51606
51638
|
);
|
|
51607
|
-
const [selectedValue, setSelectedValue] =
|
|
51639
|
+
const [selectedValue, setSelectedValue] = useState44(initialValue || null);
|
|
51640
|
+
useEffect30(() => {
|
|
51641
|
+
const preSelectedValue = options.find(
|
|
51642
|
+
(option) => option.value === value
|
|
51643
|
+
);
|
|
51644
|
+
if (preSelectedValue !== selectedValue) {
|
|
51645
|
+
setSelectedValue(preSelectedValue || null);
|
|
51646
|
+
}
|
|
51647
|
+
}, [options, selectedValue, value]);
|
|
51608
51648
|
const {
|
|
51609
51649
|
reactSelectInnerComponentStyles,
|
|
51610
51650
|
containerStyle,
|
|
@@ -51621,7 +51661,7 @@ var WfoReactSelect = ({
|
|
|
51621
51661
|
};
|
|
51622
51662
|
return /* @__PURE__ */ jsxs113("div", { css: containerStyle, children: [
|
|
51623
51663
|
refetch && /* @__PURE__ */ jsx217(
|
|
51624
|
-
|
|
51664
|
+
EuiButtonIcon12,
|
|
51625
51665
|
{
|
|
51626
51666
|
className: "reload-subscriptions-icon-button",
|
|
51627
51667
|
css: refreshButtonStyle,
|
|
@@ -51644,7 +51684,7 @@ var WfoReactSelect = ({
|
|
|
51644
51684
|
onChange: (option) => {
|
|
51645
51685
|
if (option === null) {
|
|
51646
51686
|
setSelectedValue(null);
|
|
51647
|
-
onChange(
|
|
51687
|
+
onChange(null);
|
|
51648
51688
|
} else {
|
|
51649
51689
|
const selectedValue2 = option?.value;
|
|
51650
51690
|
setSelectedValue(option);
|
|
@@ -51675,14 +51715,14 @@ var WfoDropdown = ({
|
|
|
51675
51715
|
pydanticFormField,
|
|
51676
51716
|
value
|
|
51677
51717
|
}) => {
|
|
51678
|
-
const dropDownOptions = pydanticFormField.options
|
|
51718
|
+
const dropDownOptions = pydanticFormField.options?.map((option) => ({
|
|
51679
51719
|
value: option.value,
|
|
51680
51720
|
label: option.label
|
|
51681
51721
|
}));
|
|
51682
51722
|
return /* @__PURE__ */ jsx218(
|
|
51683
51723
|
WfoReactSelect,
|
|
51684
51724
|
{
|
|
51685
|
-
options: dropDownOptions,
|
|
51725
|
+
options: dropDownOptions || [],
|
|
51686
51726
|
onChange,
|
|
51687
51727
|
id: pydanticFormField.id,
|
|
51688
51728
|
value
|
|
@@ -51691,7 +51731,7 @@ var WfoDropdown = ({
|
|
|
51691
51731
|
};
|
|
51692
51732
|
|
|
51693
51733
|
// src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
|
|
51694
|
-
import { useEffect as useEffect31, useState as
|
|
51734
|
+
import { useEffect as useEffect31, useState as useState45 } from "react";
|
|
51695
51735
|
import { EuiCheckboxGroup } from "@elastic/eui";
|
|
51696
51736
|
import { jsx as jsx219 } from "@emotion/react/jsx-runtime";
|
|
51697
51737
|
var WfoMultiCheckboxField = ({
|
|
@@ -51712,9 +51752,9 @@ var WfoMultiCheckboxField = ({
|
|
|
51712
51752
|
};
|
|
51713
51753
|
setCheckboxIdToSelectedMap(getInitialMap());
|
|
51714
51754
|
}, [value]);
|
|
51715
|
-
const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] =
|
|
51755
|
+
const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] = useState45({});
|
|
51716
51756
|
const { options, id } = pydanticFormField;
|
|
51717
|
-
const checkboxes = options
|
|
51757
|
+
const checkboxes = options?.map((option, index) => ({
|
|
51718
51758
|
label: option.label,
|
|
51719
51759
|
id: option.value,
|
|
51720
51760
|
"data-test-id": `${id}-${index}`
|
|
@@ -51735,7 +51775,7 @@ var WfoMultiCheckboxField = ({
|
|
|
51735
51775
|
return /* @__PURE__ */ jsx219(
|
|
51736
51776
|
EuiCheckboxGroup,
|
|
51737
51777
|
{
|
|
51738
|
-
options: checkboxes,
|
|
51778
|
+
options: checkboxes || [],
|
|
51739
51779
|
idToSelectedMap: checkboxIdToSelectedMap,
|
|
51740
51780
|
onChange: (id2) => handleCheckboxChange(id2),
|
|
51741
51781
|
"data-testid": id
|
|
@@ -51848,7 +51888,7 @@ var useWfoPydanticFormConfig = () => {
|
|
|
51848
51888
|
isControlledElement: true
|
|
51849
51889
|
},
|
|
51850
51890
|
matcher(field) {
|
|
51851
|
-
return field.type === PydanticFormFieldType.STRING &&
|
|
51891
|
+
return field.type === PydanticFormFieldType.STRING && _4.isArray(field.options) && field.options.length > 0;
|
|
51852
51892
|
}
|
|
51853
51893
|
},
|
|
51854
51894
|
{
|
|
@@ -51869,7 +51909,7 @@ var useWfoPydanticFormConfig = () => {
|
|
|
51869
51909
|
isControlledElement: true
|
|
51870
51910
|
},
|
|
51871
51911
|
matcher(field) {
|
|
51872
|
-
return field.type === PydanticFormFieldType.ARRAY && field.options?.length > 0 && field.options?.length <= 5;
|
|
51912
|
+
return field.type === PydanticFormFieldType.ARRAY && _4.isArray(field.options) && field.options?.length > 0 && field.options?.length <= 5;
|
|
51873
51913
|
},
|
|
51874
51914
|
validator: zodValidationPresets.multiSelect
|
|
51875
51915
|
},
|
|
@@ -52017,7 +52057,7 @@ var WfoPydanticForm = ({
|
|
|
52017
52057
|
};
|
|
52018
52058
|
|
|
52019
52059
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
52020
|
-
import React72, { useState as
|
|
52060
|
+
import React72, { useState as useState47 } from "react";
|
|
52021
52061
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
52022
52062
|
import {
|
|
52023
52063
|
EuiButton as EuiButton13,
|
|
@@ -52028,7 +52068,7 @@ import {
|
|
|
52028
52068
|
} from "@elastic/eui";
|
|
52029
52069
|
|
|
52030
52070
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepFormOld.tsx
|
|
52031
|
-
import { useState as
|
|
52071
|
+
import { useState as useState46 } from "react";
|
|
52032
52072
|
import { EuiFlexItem as EuiFlexItem25 } from "@elastic/eui";
|
|
52033
52073
|
import { jsx as jsx221 } from "@emotion/react/jsx-runtime";
|
|
52034
52074
|
var WfoStepFormOld = ({
|
|
@@ -52037,8 +52077,8 @@ var WfoStepFormOld = ({
|
|
|
52037
52077
|
processId,
|
|
52038
52078
|
userPermissions
|
|
52039
52079
|
}) => {
|
|
52040
|
-
const [isProcessing, setIsProcessing] =
|
|
52041
|
-
const [hasError, setHasError] =
|
|
52080
|
+
const [isProcessing, setIsProcessing] = useState46(false);
|
|
52081
|
+
const [hasError, setHasError] = useState46(false);
|
|
52042
52082
|
const { theme } = useOrchestratorTheme();
|
|
52043
52083
|
const [resumeProcess] = useResumeProcessMutation();
|
|
52044
52084
|
const submitForm = (processInput) => {
|
|
@@ -52428,7 +52468,7 @@ var WfoStep = React72.forwardRef(
|
|
|
52428
52468
|
userPermissions
|
|
52429
52469
|
}, ref) => {
|
|
52430
52470
|
const { isExpanded, step, userInputForm } = stepListItem;
|
|
52431
|
-
const [tableView, setTableView] =
|
|
52471
|
+
const [tableView, setTableView] = useState47(false);
|
|
52432
52472
|
const { theme } = useOrchestratorTheme();
|
|
52433
52473
|
const {
|
|
52434
52474
|
stepEmailContainerStyle,
|
|
@@ -52668,19 +52708,19 @@ var WfoStepList = React73.forwardRef(
|
|
|
52668
52708
|
WfoStepList.displayName = "WfoStepList";
|
|
52669
52709
|
|
|
52670
52710
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
52671
|
-
import React75, { useEffect as useEffect33, useState as
|
|
52711
|
+
import React75, { useEffect as useEffect33, useState as useState49 } from "react";
|
|
52672
52712
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
52673
52713
|
|
|
52674
52714
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
52675
52715
|
var refractor = __toESM(require_refractor(), 1);
|
|
52676
|
-
import { useCallback as useCallback8, useEffect as useEffect32, useMemo as useMemo6, useState as
|
|
52716
|
+
import { useCallback as useCallback8, useEffect as useEffect32, useMemo as useMemo6, useState as useState48 } from "react";
|
|
52677
52717
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
52678
52718
|
import "react-diff-view/style/index.css";
|
|
52679
52719
|
import { useTranslations as useTranslations65 } from "next-intl";
|
|
52680
52720
|
import "prism-themes/themes/prism-ghcolors.min.css";
|
|
52681
52721
|
import { diffLines, formatLines } from "unidiff";
|
|
52682
52722
|
import {
|
|
52683
|
-
EuiButtonIcon as
|
|
52723
|
+
EuiButtonIcon as EuiButtonIcon13,
|
|
52684
52724
|
EuiFlexGroup as EuiFlexGroup23,
|
|
52685
52725
|
EuiFlexItem as EuiFlexItem29,
|
|
52686
52726
|
EuiSpacer as EuiSpacer20,
|
|
@@ -52730,10 +52770,10 @@ var SMALL_CONTEXT = 3;
|
|
|
52730
52770
|
var FULL_CONTEXT = 1e6;
|
|
52731
52771
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
52732
52772
|
const t = useTranslations65("processes.delta");
|
|
52733
|
-
const [showSplit, setShowSplit] =
|
|
52734
|
-
const [showFull, setShowFull] =
|
|
52773
|
+
const [showSplit, setShowSplit] = useState48(true);
|
|
52774
|
+
const [showFull, setShowFull] = useState48(false);
|
|
52735
52775
|
const { diffStyle } = useWithOrchestratorTheme(getWfoDiffStyles);
|
|
52736
|
-
const [{ type, hunks }, setDiff] =
|
|
52776
|
+
const [{ type, hunks }, setDiff] = useState48({
|
|
52737
52777
|
type: "modify",
|
|
52738
52778
|
hunks: []
|
|
52739
52779
|
});
|
|
@@ -52766,7 +52806,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52766
52806
|
/* @__PURE__ */ jsxs118(EuiFlexGroup23, { gutterSize: "xs", children: [
|
|
52767
52807
|
/* @__PURE__ */ jsx227(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx227(EuiText38, { children: /* @__PURE__ */ jsx227("h3", { children: t("title") }) }) }),
|
|
52768
52808
|
/* @__PURE__ */ jsx227(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx227(
|
|
52769
|
-
|
|
52809
|
+
EuiButtonIcon13,
|
|
52770
52810
|
{
|
|
52771
52811
|
size: "s",
|
|
52772
52812
|
iconType: showSplit ? "continuityAboveBelow" : "continuityWithin",
|
|
@@ -52777,7 +52817,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
52777
52817
|
}
|
|
52778
52818
|
) }),
|
|
52779
52819
|
/* @__PURE__ */ jsx227(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx227(
|
|
52780
|
-
|
|
52820
|
+
EuiButtonIcon13,
|
|
52781
52821
|
{
|
|
52782
52822
|
size: "s",
|
|
52783
52823
|
iconType: showFull ? "fullScreenExit" : "fullScreen",
|
|
@@ -52866,16 +52906,16 @@ var WfoWorkflowStepList = React75.forwardRef(
|
|
|
52866
52906
|
userInputForm,
|
|
52867
52907
|
userPermissions
|
|
52868
52908
|
}, reference) => {
|
|
52869
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
52870
|
-
const [showRaw, setShowRaw] =
|
|
52871
|
-
const [showDelta, setShowDelta] =
|
|
52872
|
-
const [showTraceback, setShowTraceback] =
|
|
52909
|
+
const [showHiddenKeys, setShowHiddenKeys] = useState49(false);
|
|
52910
|
+
const [showRaw, setShowRaw] = useState49(false);
|
|
52911
|
+
const [showDelta, setShowDelta] = useState49(false);
|
|
52912
|
+
const [showTraceback, setShowTraceback] = useState49(false);
|
|
52873
52913
|
const t = useTranslations67("processes.steps");
|
|
52874
52914
|
const initialStepListItems = steps.map((step) => ({
|
|
52875
52915
|
step,
|
|
52876
52916
|
isExpanded: false
|
|
52877
52917
|
}));
|
|
52878
|
-
const [stepListItems, setStepListItems] =
|
|
52918
|
+
const [stepListItems, setStepListItems] = useState49(initialStepListItems);
|
|
52879
52919
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
52880
52920
|
const reversedSteps = [...updatedSteps].reverse();
|
|
52881
52921
|
const lastStepWithSuspendStatusStepId = reversedSteps.find(
|
|
@@ -52971,7 +53011,7 @@ var WfoWorkflowStepList = React75.forwardRef(
|
|
|
52971
53011
|
WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
52972
53012
|
|
|
52973
53013
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
52974
|
-
import { useState as
|
|
53014
|
+
import { useState as useState50 } from "react";
|
|
52975
53015
|
import { useTranslations as useTranslations68 } from "next-intl";
|
|
52976
53016
|
import {
|
|
52977
53017
|
EuiButton as EuiButton14,
|
|
@@ -53034,7 +53074,7 @@ var WfoStepListHeader = ({
|
|
|
53034
53074
|
stepListContentBoldTextStyle,
|
|
53035
53075
|
stepListOptionsContainerStyle
|
|
53036
53076
|
} = useWithOrchestratorTheme(getWorkflowStepsStyles);
|
|
53037
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
53077
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState50(false);
|
|
53038
53078
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
53039
53079
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
53040
53080
|
const viewOptionButton = /* @__PURE__ */ jsx231(
|
|
@@ -53154,9 +53194,9 @@ var WfoStartProcessPage = ({
|
|
|
53154
53194
|
}) => {
|
|
53155
53195
|
const t = useTranslations69("processes.steps");
|
|
53156
53196
|
const router = useRouter10();
|
|
53157
|
-
const [hasError, setHasError] =
|
|
53197
|
+
const [hasError, setHasError] = useState51(false);
|
|
53158
53198
|
const { theme } = useOrchestratorTheme();
|
|
53159
|
-
const [form, setForm] =
|
|
53199
|
+
const [form, setForm] = useState51({});
|
|
53160
53200
|
const { productId, subscriptionId } = router.query;
|
|
53161
53201
|
const {
|
|
53162
53202
|
data: subscriptionDetail,
|
|
@@ -53313,7 +53353,7 @@ var WfoStartProcessPage = ({
|
|
|
53313
53353
|
|
|
53314
53354
|
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
53315
53355
|
import { useTranslations as useTranslations70 } from "next-intl";
|
|
53316
|
-
import { EuiButtonIcon as
|
|
53356
|
+
import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as EuiFlexGroup26, EuiText as EuiText43, EuiToolTip as EuiToolTip8 } from "@elastic/eui";
|
|
53317
53357
|
import { jsx as jsx233, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
53318
53358
|
var WfoProductInformationWithLink = ({
|
|
53319
53359
|
workflowName,
|
|
@@ -53324,7 +53364,7 @@ var WfoProductInformationWithLink = ({
|
|
|
53324
53364
|
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
53325
53365
|
return /* @__PURE__ */ jsxs123(EuiFlexGroup26, { gutterSize: "s", alignItems: "center", children: [
|
|
53326
53366
|
showWorkflowInformationLink && /* @__PURE__ */ jsx233(EuiToolTip8, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx233("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx233(
|
|
53327
|
-
|
|
53367
|
+
EuiButtonIcon14,
|
|
53328
53368
|
{
|
|
53329
53369
|
iconSize: "l",
|
|
53330
53370
|
iconType: "iInCircle",
|
|
@@ -53574,14 +53614,14 @@ var WfoSubscriptionDetailPage = () => {
|
|
|
53574
53614
|
};
|
|
53575
53615
|
|
|
53576
53616
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
53577
|
-
import { useEffect as useEffect35, useState as
|
|
53617
|
+
import { useEffect as useEffect35, useState as useState52 } from "react";
|
|
53578
53618
|
import { useTranslations as useTranslations74 } from "next-intl";
|
|
53579
53619
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
53580
53620
|
import { EuiSpacer as EuiSpacer23 } from "@elastic/eui";
|
|
53581
53621
|
import { Fragment as Fragment58, jsx as jsx238, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
|
|
53582
53622
|
var WfoSubscriptionsListPage = () => {
|
|
53583
53623
|
const t = useTranslations74("subscriptions.detail");
|
|
53584
|
-
const [tableDefaults, setTableDefaults] =
|
|
53624
|
+
const [tableDefaults, setTableDefaults] = useState52();
|
|
53585
53625
|
const getStoredTableConfig = useStoredTableConfig(
|
|
53586
53626
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
53587
53627
|
);
|
|
@@ -53646,7 +53686,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
53646
53686
|
};
|
|
53647
53687
|
|
|
53648
53688
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
53649
|
-
import { useContext as useContext11, useEffect as useEffect36, useState as
|
|
53689
|
+
import { useContext as useContext11, useEffect as useEffect36, useState as useState53 } from "react";
|
|
53650
53690
|
import { useTranslations as useTranslations75 } from "next-intl";
|
|
53651
53691
|
import Link11 from "next/link";
|
|
53652
53692
|
import { useRouter as useRouter12 } from "next/router";
|
|
@@ -53724,7 +53764,7 @@ var WfoTasksListPage = () => {
|
|
|
53724
53764
|
"activeTab",
|
|
53725
53765
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
53726
53766
|
);
|
|
53727
|
-
const [tableDefaults, setTableDefaults] =
|
|
53767
|
+
const [tableDefaults, setTableDefaults] = useState53();
|
|
53728
53768
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
53729
53769
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
53730
53770
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -53833,7 +53873,7 @@ var WfoTasksListPage = () => {
|
|
|
53833
53873
|
};
|
|
53834
53874
|
|
|
53835
53875
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
53836
|
-
import { useEffect as useEffect37, useState as
|
|
53876
|
+
import { useEffect as useEffect37, useState as useState54 } from "react";
|
|
53837
53877
|
import { useTranslations as useTranslations76 } from "next-intl";
|
|
53838
53878
|
import { useRouter as useRouter13 } from "next/router";
|
|
53839
53879
|
import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
|
|
@@ -53910,7 +53950,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
53910
53950
|
"activeTab",
|
|
53911
53951
|
withDefault6(StringParam6, "ACTIVE" /* ACTIVE */)
|
|
53912
53952
|
);
|
|
53913
|
-
const [tableDefaults, setTableDefaults] =
|
|
53953
|
+
const [tableDefaults, setTableDefaults] = useState54();
|
|
53914
53954
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
53915
53955
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
53916
53956
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -54296,7 +54336,7 @@ var WfoJsonCodeBlock = ({
|
|
|
54296
54336
|
};
|
|
54297
54337
|
|
|
54298
54338
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
54299
|
-
import { useState as
|
|
54339
|
+
import { useState as useState55 } from "react";
|
|
54300
54340
|
import { useTranslations as useTranslations78 } from "next-intl";
|
|
54301
54341
|
import {
|
|
54302
54342
|
EuiButton as EuiButton17,
|
|
@@ -54338,7 +54378,7 @@ var WfoFlushSettings = () => {
|
|
|
54338
54378
|
);
|
|
54339
54379
|
const [clearCache] = useClearCacheMutation();
|
|
54340
54380
|
const t = useTranslations78("settings.page");
|
|
54341
|
-
const [selectedOptions, setSelected] =
|
|
54381
|
+
const [selectedOptions, setSelected] = useState55(
|
|
54342
54382
|
[]
|
|
54343
54383
|
);
|
|
54344
54384
|
const { showToastMessage } = useShowToastMessage();
|
|
@@ -54848,6 +54888,18 @@ var WfoSubscriptionsList = ({
|
|
|
54848
54888
|
);
|
|
54849
54889
|
}
|
|
54850
54890
|
},
|
|
54891
|
+
actions: {
|
|
54892
|
+
columnType: "control" /* CONTROL */,
|
|
54893
|
+
label: t("actions"),
|
|
54894
|
+
width: "80px",
|
|
54895
|
+
renderControl: (row) => /* @__PURE__ */ jsx253(
|
|
54896
|
+
WfoSubscriptionActions,
|
|
54897
|
+
{
|
|
54898
|
+
compactMode: true,
|
|
54899
|
+
subscriptionId: row.subscriptionId
|
|
54900
|
+
}
|
|
54901
|
+
)
|
|
54902
|
+
},
|
|
54851
54903
|
metadata: {
|
|
54852
54904
|
columnType: "data" /* DATA */,
|
|
54853
54905
|
label: t("metadata"),
|
|
@@ -54942,7 +54994,7 @@ import {
|
|
|
54942
54994
|
EuiAvatar as EuiAvatar2,
|
|
54943
54995
|
EuiFlexGroup as EuiFlexGroup30,
|
|
54944
54996
|
EuiFlexItem as EuiFlexItem36,
|
|
54945
|
-
EuiLoadingSpinner,
|
|
54997
|
+
EuiLoadingSpinner as EuiLoadingSpinner2,
|
|
54946
54998
|
EuiPanel as EuiPanel12,
|
|
54947
54999
|
EuiText as EuiText50
|
|
54948
55000
|
} from "@elastic/eui";
|
|
@@ -54999,7 +55051,7 @@ var WfoSummaryCardHeader = ({
|
|
|
54999
55051
|
/* @__PURE__ */ jsx254(EuiText50, { color: "subdued", children: text }),
|
|
55000
55052
|
/* @__PURE__ */ jsxs137(EuiFlexGroup30, { gutterSize: "s", alignItems: "center", children: [
|
|
55001
55053
|
/* @__PURE__ */ jsx254(EuiText50, { css: valueStyle, children: value }),
|
|
55002
|
-
isFetching && /* @__PURE__ */ jsx254(
|
|
55054
|
+
isFetching && /* @__PURE__ */ jsx254(EuiLoadingSpinner2, {})
|
|
55003
55055
|
] })
|
|
55004
55056
|
] })
|
|
55005
55057
|
] }) }) });
|
|
@@ -55612,7 +55664,7 @@ var WfoTitleWithWebsocketBadge = ({
|
|
|
55612
55664
|
};
|
|
55613
55665
|
|
|
55614
55666
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
55615
|
-
import { useState as
|
|
55667
|
+
import { useState as useState56 } from "react";
|
|
55616
55668
|
import {
|
|
55617
55669
|
EuiButtonEmpty as EuiButtonEmpty5,
|
|
55618
55670
|
EuiFlexGroup as EuiFlexGroup32,
|
|
@@ -55625,7 +55677,7 @@ var WfoRadioDropdown = ({
|
|
|
55625
55677
|
onUpdateOption,
|
|
55626
55678
|
selectedOption
|
|
55627
55679
|
}) => {
|
|
55628
|
-
const [isOpen, setIsOpen] =
|
|
55680
|
+
const [isOpen, setIsOpen] = useState56(false);
|
|
55629
55681
|
const handleClose = () => {
|
|
55630
55682
|
if (isOpen) {
|
|
55631
55683
|
setIsOpen(false);
|
|
@@ -56191,8 +56243,13 @@ var en_GB_default = {
|
|
|
56191
56243
|
modify: "Modify workflow",
|
|
56192
56244
|
tasks: "Tasks",
|
|
56193
56245
|
terminate: "Terminate workflow",
|
|
56246
|
+
reconcile: "Reconcile workflow",
|
|
56194
56247
|
actions: "Actions",
|
|
56195
56248
|
lockedBySubscriptions: "This action is locked by the following subscriptions:",
|
|
56249
|
+
notAvailable: "Not available",
|
|
56250
|
+
notAvailableForWorkflow: "Not available for this workflow",
|
|
56251
|
+
reconcileSubscription: "Reconcile subscription",
|
|
56252
|
+
validateSubscription: "Validate subscription",
|
|
56196
56253
|
subscription: {
|
|
56197
56254
|
no_modify_deleted_related_objects: "This subscription can not be modified because it contains references to other systems that are deleted.",
|
|
56198
56255
|
no_modify_in_use_by_subscription: "This subscription can not be {action} as it is used in other subscriptions: {unterminated_in_use_by_subscriptions}",
|
|
@@ -56654,6 +56711,11 @@ var nl_NL_default = {
|
|
|
56654
56711
|
modify: "Modify workflow",
|
|
56655
56712
|
tasks: "Taken",
|
|
56656
56713
|
terminate: "Terminate workflow",
|
|
56714
|
+
reconcile: "Reconcile workflow",
|
|
56715
|
+
notAvailable: "Niet beschikbaar",
|
|
56716
|
+
notAvailableForWorkflow: "Niet beschikbaar voor deze workflow",
|
|
56717
|
+
reconcileSubscription: "Reconcile subscription",
|
|
56718
|
+
validateSubscription: "Validate subscription",
|
|
56657
56719
|
actions: "Acties",
|
|
56658
56720
|
lockedBySubscriptions: "Deze actie is geblokkeerd door de volgende subscriptions:",
|
|
56659
56721
|
subscription: {
|