@orchestrator-ui/orchestrator-ui-components 0.0.1-alpha.7 → 0.0.1-alpha.9
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/index.js +1587 -1501
- package/package.json +6 -7
- package/src/index.d.ts +4 -15
- package/src/lib/components/Badges/Badge/index.d.ts +1 -0
- package/src/lib/components/Badges/EngineStatusBadge/EngineStatusBadge.d.ts +1 -0
- package/src/lib/components/Badges/EngineStatusBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/EnvironmentBadge/EnvironmentBadge.d.ts +1 -0
- package/src/lib/components/Badges/EnvironmentBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/FailedTasksBadge/FailedTasksBadge.d.ts +1 -0
- package/src/lib/components/Badges/FailedTasksBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/HeaderBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/SubscriptionStatusBadge/index.d.ts +1 -0
- package/src/lib/components/Badges/index.d.ts +6 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader/OrchestratorPageHeader.d.ts +7 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageTemplate/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorSidebar/index.d.ts +1 -0
- package/src/lib/components/OrchestratorPageTemplate/index.d.ts +3 -0
- package/src/lib/components/StartPage/ListItemStartPage.d.ts +1 -0
- package/src/lib/components/StartPage/index.d.ts +6 -0
- package/src/lib/components/Table/columns.d.ts +1 -0
- package/src/lib/components/Table/index.d.ts +2 -0
- package/src/lib/components/index.d.ts +4 -0
- package/src/lib/contexts/index.d.ts +1 -0
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/useQueryWithGraphql.d.ts +1 -0
- package/src/lib/theme/index.d.ts +1 -0
- package/src/lib/utils/date.d.ts +1 -0
- package/src/lib/utils/getTypedFieldFromObject.d.ts +1 -1
- package/src/lib/utils/index.d.ts +3 -0
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader.d.ts +0 -10
- /package/src/lib/components/{Badge → Badges/Badge}/Badge.d.ts +0 -0
- /package/src/lib/components/{OrchestratorPageTemplate → Badges/HeaderBadge}/HeaderBadge.d.ts +0 -0
- /package/src/lib/components/{Badge → Badges/SubscriptionStatusBadge}/SubscriptionStatusBadge.d.ts +0 -0
- /package/src/lib/components/OrchestratorPageTemplate/{OrchestratorPageTemplate.d.ts → OrchestratorPageTemplate/OrchestratorPageTemplate.d.ts} +0 -0
- /package/src/lib/components/OrchestratorPageTemplate/{OrchestratorSidebar.d.ts → OrchestratorSidebar/OrchestratorSidebar.d.ts} +0 -0
package/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { EuiBadge, EuiText, useEuiTheme, tint, EuiToolTip, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiSideNav, EuiButton, EuiSpacer, EuiPageTemplate, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiTextColor, EuiPanel, EuiHorizontalRule, EuiFieldSearch, EuiAvatar, EuiDataGrid } from '@elastic/eui';
|
|
3
3
|
import { useState, createContext, useContext, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { GraphQLClient, request } from 'graphql-request';
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
|
-
import { GraphQLClient } from 'graphql-request';
|
|
7
6
|
import moment from 'moment';
|
|
8
7
|
import Link from 'next/link';
|
|
9
8
|
|
|
@@ -14,7 +13,7 @@ var check = function (it) {
|
|
|
14
13
|
};
|
|
15
14
|
|
|
16
15
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
17
|
-
var global$
|
|
16
|
+
var global$i =
|
|
18
17
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
19
18
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
20
19
|
check(typeof window == 'object' && window) ||
|
|
@@ -22,11 +21,11 @@ var global$g =
|
|
|
22
21
|
check(typeof self == 'object' && self) ||
|
|
23
22
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
24
23
|
// eslint-disable-next-line no-new-func -- fallback
|
|
25
|
-
(function () { return this; })() || Function('return this')();
|
|
24
|
+
(function () { return this; })() || commonjsGlobal || Function('return this')();
|
|
26
25
|
|
|
27
26
|
var objectGetOwnPropertyDescriptor = {};
|
|
28
27
|
|
|
29
|
-
var fails$
|
|
28
|
+
var fails$i = function (exec) {
|
|
30
29
|
try {
|
|
31
30
|
return !!exec();
|
|
32
31
|
} catch (error) {
|
|
@@ -34,17 +33,17 @@ var fails$h = function (exec) {
|
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
var fails$
|
|
36
|
+
var fails$h = fails$i;
|
|
38
37
|
|
|
39
38
|
// Detect IE8's incomplete defineProperty implementation
|
|
40
|
-
var descriptors = !fails$
|
|
39
|
+
var descriptors = !fails$h(function () {
|
|
41
40
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
42
41
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
43
42
|
});
|
|
44
43
|
|
|
45
|
-
var fails$
|
|
44
|
+
var fails$g = fails$i;
|
|
46
45
|
|
|
47
|
-
var functionBindNative = !fails$
|
|
46
|
+
var functionBindNative = !fails$g(function () {
|
|
48
47
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
49
48
|
var test = (function () { /* empty */ }).bind();
|
|
50
49
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -96,24 +95,24 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
|
96
95
|
};
|
|
97
96
|
};
|
|
98
97
|
|
|
99
|
-
var uncurryThis$
|
|
98
|
+
var uncurryThis$i = functionUncurryThis;
|
|
100
99
|
|
|
101
|
-
var toString$
|
|
102
|
-
var stringSlice$1 = uncurryThis$
|
|
100
|
+
var toString$6 = uncurryThis$i({}.toString);
|
|
101
|
+
var stringSlice$1 = uncurryThis$i(''.slice);
|
|
103
102
|
|
|
104
103
|
var classofRaw$2 = function (it) {
|
|
105
|
-
return stringSlice$1(toString$
|
|
104
|
+
return stringSlice$1(toString$6(it), 8, -1);
|
|
106
105
|
};
|
|
107
106
|
|
|
108
|
-
var uncurryThis$
|
|
109
|
-
var fails$
|
|
107
|
+
var uncurryThis$h = functionUncurryThis;
|
|
108
|
+
var fails$f = fails$i;
|
|
110
109
|
var classof$6 = classofRaw$2;
|
|
111
110
|
|
|
112
111
|
var $Object$4 = Object;
|
|
113
|
-
var split = uncurryThis$
|
|
112
|
+
var split = uncurryThis$h(''.split);
|
|
114
113
|
|
|
115
114
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
116
|
-
var indexedObject = fails$
|
|
115
|
+
var indexedObject = fails$f(function () {
|
|
117
116
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
118
117
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
119
118
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -133,17 +132,17 @@ var $TypeError$e = TypeError;
|
|
|
133
132
|
|
|
134
133
|
// `RequireObjectCoercible` abstract operation
|
|
135
134
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
136
|
-
var requireObjectCoercible$
|
|
135
|
+
var requireObjectCoercible$4 = function (it) {
|
|
137
136
|
if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
|
|
138
137
|
return it;
|
|
139
138
|
};
|
|
140
139
|
|
|
141
140
|
// toObject with fallback for non-array-like ES3 strings
|
|
142
141
|
var IndexedObject$1 = indexedObject;
|
|
143
|
-
var requireObjectCoercible$
|
|
142
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
144
143
|
|
|
145
144
|
var toIndexedObject$5 = function (it) {
|
|
146
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
145
|
+
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
147
146
|
};
|
|
148
147
|
|
|
149
148
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -180,7 +179,7 @@ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
180
179
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
181
180
|
};
|
|
182
181
|
|
|
183
|
-
var global$
|
|
182
|
+
var global$h = global$i;
|
|
184
183
|
var isCallable$i = isCallable$k;
|
|
185
184
|
|
|
186
185
|
var aFunction = function (argument) {
|
|
@@ -188,20 +187,20 @@ var aFunction = function (argument) {
|
|
|
188
187
|
};
|
|
189
188
|
|
|
190
189
|
var getBuiltIn$7 = function (namespace, method) {
|
|
191
|
-
return arguments.length < 2 ? aFunction(global$
|
|
190
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
192
191
|
};
|
|
193
192
|
|
|
194
|
-
var uncurryThis$
|
|
193
|
+
var uncurryThis$g = functionUncurryThis;
|
|
195
194
|
|
|
196
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
195
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
197
196
|
|
|
198
197
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
199
198
|
|
|
200
|
-
var global$
|
|
199
|
+
var global$g = global$i;
|
|
201
200
|
var userAgent$5 = engineUserAgent;
|
|
202
201
|
|
|
203
|
-
var process$4 = global$
|
|
204
|
-
var Deno$1 = global$
|
|
202
|
+
var process$4 = global$g.process;
|
|
203
|
+
var Deno$1 = global$g.Deno;
|
|
205
204
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
206
205
|
var v8 = versions && versions.v8;
|
|
207
206
|
var match, version;
|
|
@@ -228,14 +227,19 @@ var engineV8Version = version;
|
|
|
228
227
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
229
228
|
|
|
230
229
|
var V8_VERSION$1 = engineV8Version;
|
|
231
|
-
var fails$
|
|
230
|
+
var fails$e = fails$i;
|
|
231
|
+
var global$f = global$i;
|
|
232
|
+
|
|
233
|
+
var $String$5 = global$f.String;
|
|
232
234
|
|
|
233
235
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
234
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
236
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
235
237
|
var symbol = Symbol();
|
|
236
238
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
237
239
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
238
|
-
|
|
240
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
241
|
+
// of course, fail.
|
|
242
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
239
243
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
240
244
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
241
245
|
});
|
|
@@ -311,24 +315,24 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
311
315
|
|
|
312
316
|
var shared$3 = {exports: {}};
|
|
313
317
|
|
|
314
|
-
var global$
|
|
318
|
+
var global$e = global$i;
|
|
315
319
|
|
|
316
320
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
317
321
|
var defineProperty$6 = Object.defineProperty;
|
|
318
322
|
|
|
319
323
|
var defineGlobalProperty$3 = function (key, value) {
|
|
320
324
|
try {
|
|
321
|
-
defineProperty$6(global$
|
|
325
|
+
defineProperty$6(global$e, key, { value: value, configurable: true, writable: true });
|
|
322
326
|
} catch (error) {
|
|
323
|
-
global$
|
|
327
|
+
global$e[key] = value;
|
|
324
328
|
} return value;
|
|
325
329
|
};
|
|
326
330
|
|
|
327
|
-
var global$
|
|
331
|
+
var global$d = global$i;
|
|
328
332
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
329
333
|
|
|
330
334
|
var SHARED = '__core-js_shared__';
|
|
331
|
-
var store$3 = global$
|
|
335
|
+
var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
332
336
|
|
|
333
337
|
var sharedStore = store$3;
|
|
334
338
|
|
|
@@ -337,27 +341,27 @@ var store$2 = sharedStore;
|
|
|
337
341
|
(shared$3.exports = function (key, value) {
|
|
338
342
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
339
343
|
})('versions', []).push({
|
|
340
|
-
version: '3.
|
|
344
|
+
version: '3.30.2',
|
|
341
345
|
mode: 'global',
|
|
342
346
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
343
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
347
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
|
|
344
348
|
source: 'https://github.com/zloirock/core-js'
|
|
345
349
|
});
|
|
346
350
|
|
|
347
|
-
var requireObjectCoercible$
|
|
351
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
348
352
|
|
|
349
353
|
var $Object$2 = Object;
|
|
350
354
|
|
|
351
355
|
// `ToObject` abstract operation
|
|
352
356
|
// https://tc39.es/ecma262/#sec-toobject
|
|
353
357
|
var toObject$4 = function (argument) {
|
|
354
|
-
return $Object$2(requireObjectCoercible$
|
|
358
|
+
return $Object$2(requireObjectCoercible$2(argument));
|
|
355
359
|
};
|
|
356
360
|
|
|
357
|
-
var uncurryThis$
|
|
361
|
+
var uncurryThis$f = functionUncurryThis;
|
|
358
362
|
var toObject$3 = toObject$4;
|
|
359
363
|
|
|
360
|
-
var hasOwnProperty = uncurryThis$
|
|
364
|
+
var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
|
|
361
365
|
|
|
362
366
|
// `HasOwnProperty` abstract operation
|
|
363
367
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -366,31 +370,31 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
366
370
|
return hasOwnProperty(toObject$3(it), key);
|
|
367
371
|
};
|
|
368
372
|
|
|
369
|
-
var uncurryThis$
|
|
373
|
+
var uncurryThis$e = functionUncurryThis;
|
|
370
374
|
|
|
371
375
|
var id = 0;
|
|
372
376
|
var postfix = Math.random();
|
|
373
|
-
var toString$
|
|
377
|
+
var toString$5 = uncurryThis$e(1.0.toString);
|
|
374
378
|
|
|
375
379
|
var uid$2 = function (key) {
|
|
376
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
380
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
377
381
|
};
|
|
378
382
|
|
|
379
|
-
var global$
|
|
383
|
+
var global$c = global$i;
|
|
380
384
|
var shared$2 = shared$3.exports;
|
|
381
385
|
var hasOwn$a = hasOwnProperty_1;
|
|
382
386
|
var uid$1 = uid$2;
|
|
383
387
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
384
388
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
385
389
|
|
|
386
|
-
var Symbol$
|
|
390
|
+
var Symbol$2 = global$c.Symbol;
|
|
387
391
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
388
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$
|
|
392
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
389
393
|
|
|
390
394
|
var wellKnownSymbol$g = function (name) {
|
|
391
395
|
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
392
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$
|
|
393
|
-
? Symbol$
|
|
396
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)
|
|
397
|
+
? Symbol$2[name]
|
|
394
398
|
: createWellKnownSymbol('Symbol.' + name);
|
|
395
399
|
} return WellKnownSymbolsStore[name];
|
|
396
400
|
};
|
|
@@ -431,10 +435,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
431
435
|
return isSymbol(key) ? key : key + '';
|
|
432
436
|
};
|
|
433
437
|
|
|
434
|
-
var global$
|
|
438
|
+
var global$b = global$i;
|
|
435
439
|
var isObject$6 = isObject$9;
|
|
436
440
|
|
|
437
|
-
var document$3 = global$
|
|
441
|
+
var document$3 = global$b.document;
|
|
438
442
|
// typeof document.createElement is 'object' in old IE
|
|
439
443
|
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
440
444
|
|
|
@@ -443,11 +447,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
443
447
|
};
|
|
444
448
|
|
|
445
449
|
var DESCRIPTORS$a = descriptors;
|
|
446
|
-
var fails$
|
|
450
|
+
var fails$d = fails$i;
|
|
447
451
|
var createElement$1 = documentCreateElement$2;
|
|
448
452
|
|
|
449
453
|
// Thanks to IE8 for its funny defineProperty
|
|
450
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
454
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
|
|
451
455
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
452
456
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
453
457
|
get: function () { return 7; }
|
|
@@ -480,11 +484,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
480
484
|
var objectDefineProperty = {};
|
|
481
485
|
|
|
482
486
|
var DESCRIPTORS$8 = descriptors;
|
|
483
|
-
var fails$
|
|
487
|
+
var fails$c = fails$i;
|
|
484
488
|
|
|
485
489
|
// V8 ~ Chrome 36-
|
|
486
490
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
487
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
491
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
|
|
488
492
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
489
493
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
490
494
|
value: 42,
|
|
@@ -578,11 +582,11 @@ var functionName = {
|
|
|
578
582
|
CONFIGURABLE: CONFIGURABLE
|
|
579
583
|
};
|
|
580
584
|
|
|
581
|
-
var uncurryThis$
|
|
585
|
+
var uncurryThis$d = functionUncurryThis;
|
|
582
586
|
var isCallable$e = isCallable$k;
|
|
583
587
|
var store$1 = sharedStore;
|
|
584
588
|
|
|
585
|
-
var functionToString = uncurryThis$
|
|
589
|
+
var functionToString = uncurryThis$d(Function.toString);
|
|
586
590
|
|
|
587
591
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
588
592
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -593,10 +597,10 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
593
597
|
|
|
594
598
|
var inspectSource$3 = store$1.inspectSource;
|
|
595
599
|
|
|
596
|
-
var global$
|
|
600
|
+
var global$a = global$i;
|
|
597
601
|
var isCallable$d = isCallable$k;
|
|
598
602
|
|
|
599
|
-
var WeakMap$1 = global$
|
|
603
|
+
var WeakMap$1 = global$a.WeakMap;
|
|
600
604
|
|
|
601
605
|
var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
602
606
|
|
|
@@ -612,7 +616,7 @@ var sharedKey$3 = function (key) {
|
|
|
612
616
|
var hiddenKeys$4 = {};
|
|
613
617
|
|
|
614
618
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
615
|
-
var global$
|
|
619
|
+
var global$9 = global$i;
|
|
616
620
|
var isObject$4 = isObject$9;
|
|
617
621
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
618
622
|
var hasOwn$7 = hasOwnProperty_1;
|
|
@@ -621,8 +625,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
621
625
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
622
626
|
|
|
623
627
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
624
|
-
var TypeError$2 = global$
|
|
625
|
-
var WeakMap = global$
|
|
628
|
+
var TypeError$2 = global$9.TypeError;
|
|
629
|
+
var WeakMap = global$9.WeakMap;
|
|
626
630
|
var set$1, get, has;
|
|
627
631
|
|
|
628
632
|
var enforce = function (it) {
|
|
@@ -682,8 +686,8 @@ var internalState = {
|
|
|
682
686
|
getterFor: getterFor
|
|
683
687
|
};
|
|
684
688
|
|
|
685
|
-
var uncurryThis$
|
|
686
|
-
var fails$
|
|
689
|
+
var uncurryThis$c = functionUncurryThis;
|
|
690
|
+
var fails$b = fails$i;
|
|
687
691
|
var isCallable$c = isCallable$k;
|
|
688
692
|
var hasOwn$6 = hasOwnProperty_1;
|
|
689
693
|
var DESCRIPTORS$4 = descriptors;
|
|
@@ -696,11 +700,11 @@ var getInternalState$1 = InternalStateModule$2.get;
|
|
|
696
700
|
var $String$2 = String;
|
|
697
701
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
698
702
|
var defineProperty$5 = Object.defineProperty;
|
|
699
|
-
var stringSlice = uncurryThis$
|
|
700
|
-
var replace = uncurryThis$
|
|
701
|
-
var join = uncurryThis$
|
|
703
|
+
var stringSlice = uncurryThis$c(''.slice);
|
|
704
|
+
var replace$1 = uncurryThis$c(''.replace);
|
|
705
|
+
var join = uncurryThis$c([].join);
|
|
702
706
|
|
|
703
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
707
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
|
|
704
708
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
705
709
|
});
|
|
706
710
|
|
|
@@ -708,7 +712,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
708
712
|
|
|
709
713
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
710
714
|
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
711
|
-
name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
715
|
+
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
712
716
|
}
|
|
713
717
|
if (options && options.getter) name = 'get ' + name;
|
|
714
718
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -824,7 +828,7 @@ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
|
824
828
|
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
825
829
|
|
|
826
830
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
827
|
-
var createMethod = function (IS_INCLUDES) {
|
|
831
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
828
832
|
return function ($this, el, fromIndex) {
|
|
829
833
|
var O = toIndexedObject$3($this);
|
|
830
834
|
var length = lengthOfArrayLike$3(O);
|
|
@@ -846,19 +850,19 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
846
850
|
var arrayIncludes = {
|
|
847
851
|
// `Array.prototype.includes` method
|
|
848
852
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
849
|
-
includes: createMethod(true),
|
|
853
|
+
includes: createMethod$1(true),
|
|
850
854
|
// `Array.prototype.indexOf` method
|
|
851
855
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
852
|
-
indexOf: createMethod(false)
|
|
856
|
+
indexOf: createMethod$1(false)
|
|
853
857
|
};
|
|
854
858
|
|
|
855
|
-
var uncurryThis$
|
|
859
|
+
var uncurryThis$b = functionUncurryThis;
|
|
856
860
|
var hasOwn$5 = hasOwnProperty_1;
|
|
857
861
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
858
862
|
var indexOf = arrayIncludes.indexOf;
|
|
859
863
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
860
864
|
|
|
861
|
-
var push$1 = uncurryThis$
|
|
865
|
+
var push$1 = uncurryThis$b([].push);
|
|
862
866
|
|
|
863
867
|
var objectKeysInternal = function (object, names) {
|
|
864
868
|
var O = toIndexedObject$2(object);
|
|
@@ -902,12 +906,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
902
906
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
903
907
|
|
|
904
908
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
905
|
-
var uncurryThis$
|
|
909
|
+
var uncurryThis$a = functionUncurryThis;
|
|
906
910
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
907
911
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
908
912
|
var anObject$a = anObject$c;
|
|
909
913
|
|
|
910
|
-
var concat$1 = uncurryThis$
|
|
914
|
+
var concat$1 = uncurryThis$a([].concat);
|
|
911
915
|
|
|
912
916
|
// all object keys, includes non-enumerable and symbols
|
|
913
917
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -933,7 +937,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
933
937
|
}
|
|
934
938
|
};
|
|
935
939
|
|
|
936
|
-
var fails$
|
|
940
|
+
var fails$a = fails$i;
|
|
937
941
|
var isCallable$a = isCallable$k;
|
|
938
942
|
|
|
939
943
|
var replacement = /#|\.prototype\./;
|
|
@@ -942,7 +946,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
942
946
|
var value = data[normalize(feature)];
|
|
943
947
|
return value == POLYFILL ? true
|
|
944
948
|
: value == NATIVE ? false
|
|
945
|
-
: isCallable$a(detection) ? fails$
|
|
949
|
+
: isCallable$a(detection) ? fails$a(detection)
|
|
946
950
|
: !!detection;
|
|
947
951
|
};
|
|
948
952
|
|
|
@@ -956,7 +960,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
956
960
|
|
|
957
961
|
var isForced_1 = isForced$2;
|
|
958
962
|
|
|
959
|
-
var global$
|
|
963
|
+
var global$8 = global$i;
|
|
960
964
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
961
965
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
962
966
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -985,11 +989,11 @@ var _export = function (options, source) {
|
|
|
985
989
|
var STATIC = options.stat;
|
|
986
990
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
987
991
|
if (GLOBAL) {
|
|
988
|
-
target = global$
|
|
992
|
+
target = global$8;
|
|
989
993
|
} else if (STATIC) {
|
|
990
|
-
target = global$
|
|
994
|
+
target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
|
|
991
995
|
} else {
|
|
992
|
-
target = (global$
|
|
996
|
+
target = (global$8[TARGET] || {}).prototype;
|
|
993
997
|
}
|
|
994
998
|
if (target) for (key in source) {
|
|
995
999
|
sourceProperty = source[key];
|
|
@@ -1022,9 +1026,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1022
1026
|
};
|
|
1023
1027
|
|
|
1024
1028
|
var DESCRIPTORS$3 = descriptors;
|
|
1025
|
-
var uncurryThis$
|
|
1029
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1026
1030
|
var call$a = functionCall;
|
|
1027
|
-
var fails$
|
|
1031
|
+
var fails$9 = fails$i;
|
|
1028
1032
|
var objectKeys$1 = objectKeys$2;
|
|
1029
1033
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1030
1034
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1035,11 +1039,11 @@ var IndexedObject = indexedObject;
|
|
|
1035
1039
|
var $assign = Object.assign;
|
|
1036
1040
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1037
1041
|
var defineProperty$4 = Object.defineProperty;
|
|
1038
|
-
var concat = uncurryThis$
|
|
1042
|
+
var concat = uncurryThis$9([].concat);
|
|
1039
1043
|
|
|
1040
1044
|
// `Object.assign` method
|
|
1041
1045
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1042
|
-
var objectAssign = !$assign || fails$
|
|
1046
|
+
var objectAssign = !$assign || fails$9(function () {
|
|
1043
1047
|
// should have correct order of operations (Edge bug)
|
|
1044
1048
|
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1045
1049
|
enumerable: true,
|
|
@@ -1078,34 +1082,67 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
1078
1082
|
} return T;
|
|
1079
1083
|
} : $assign;
|
|
1080
1084
|
|
|
1081
|
-
var $$
|
|
1085
|
+
var $$b = _export;
|
|
1082
1086
|
var assign = objectAssign;
|
|
1083
1087
|
|
|
1084
1088
|
// `Object.assign` method
|
|
1085
1089
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1086
1090
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1087
|
-
$$
|
|
1091
|
+
$$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1088
1092
|
assign: assign
|
|
1089
1093
|
});
|
|
1090
1094
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1095
|
+
/******************************************************************************
|
|
1096
|
+
Copyright (c) Microsoft Corporation.
|
|
1097
|
+
|
|
1098
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1099
|
+
purpose with or without fee is hereby granted.
|
|
1100
|
+
|
|
1101
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1102
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1103
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1104
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1105
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1106
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1107
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1108
|
+
***************************************************************************** */
|
|
1109
|
+
|
|
1110
|
+
function __rest(s, e) {
|
|
1111
|
+
var t = {};
|
|
1112
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1113
|
+
t[p] = s[p];
|
|
1114
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1115
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1116
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1117
|
+
t[p[i]] = s[p[i]];
|
|
1118
|
+
}
|
|
1119
|
+
return t;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1123
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1124
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1125
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1126
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1127
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1128
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
const Badge = _a => {
|
|
1133
|
+
var {
|
|
1134
|
+
textColor,
|
|
1135
|
+
children
|
|
1136
|
+
} = _a,
|
|
1137
|
+
restProps = __rest(_a, ["textColor", "children"]);
|
|
1138
|
+
return jsx(EuiBadge, Object.assign({}, restProps, {
|
|
1139
|
+
children: jsx(EuiText, Object.assign({
|
|
1140
|
+
color: textColor,
|
|
1141
|
+
size: "xs"
|
|
1107
1142
|
}, {
|
|
1108
|
-
children:
|
|
1143
|
+
children: jsx("b", {
|
|
1144
|
+
children: children
|
|
1145
|
+
})
|
|
1109
1146
|
}))
|
|
1110
1147
|
}));
|
|
1111
1148
|
};
|
|
@@ -1245,9 +1282,9 @@ var addToUnscopables$2 = function (key) {
|
|
|
1245
1282
|
|
|
1246
1283
|
var iterators = {};
|
|
1247
1284
|
|
|
1248
|
-
var fails$
|
|
1285
|
+
var fails$8 = fails$i;
|
|
1249
1286
|
|
|
1250
|
-
var correctPrototypeGetter = !fails$
|
|
1287
|
+
var correctPrototypeGetter = !fails$8(function () {
|
|
1251
1288
|
function F() { /* empty */ }
|
|
1252
1289
|
F.prototype.constructor = null;
|
|
1253
1290
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1276,14 +1313,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1276
1313
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1277
1314
|
};
|
|
1278
1315
|
|
|
1279
|
-
var fails$
|
|
1316
|
+
var fails$7 = fails$i;
|
|
1280
1317
|
var isCallable$8 = isCallable$k;
|
|
1281
1318
|
var isObject$3 = isObject$9;
|
|
1282
1319
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1283
1320
|
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1284
1321
|
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
1285
1322
|
|
|
1286
|
-
var ITERATOR$
|
|
1323
|
+
var ITERATOR$6 = wellKnownSymbol$d('iterator');
|
|
1287
1324
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1288
1325
|
|
|
1289
1326
|
// `%IteratorPrototype%` object
|
|
@@ -1301,18 +1338,18 @@ if ([].keys) {
|
|
|
1301
1338
|
}
|
|
1302
1339
|
}
|
|
1303
1340
|
|
|
1304
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1341
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$7(function () {
|
|
1305
1342
|
var test = {};
|
|
1306
1343
|
// FF44- legacy iterators case
|
|
1307
|
-
return IteratorPrototype$2[ITERATOR$
|
|
1344
|
+
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
1308
1345
|
});
|
|
1309
1346
|
|
|
1310
1347
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1311
1348
|
|
|
1312
1349
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1313
1350
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1314
|
-
if (!isCallable$8(IteratorPrototype$2[ITERATOR$
|
|
1315
|
-
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$
|
|
1351
|
+
if (!isCallable$8(IteratorPrototype$2[ITERATOR$6])) {
|
|
1352
|
+
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1316
1353
|
return this;
|
|
1317
1354
|
});
|
|
1318
1355
|
}
|
|
@@ -1351,13 +1388,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1351
1388
|
return IteratorConstructor;
|
|
1352
1389
|
};
|
|
1353
1390
|
|
|
1354
|
-
var uncurryThis$
|
|
1391
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1355
1392
|
var aCallable$7 = aCallable$9;
|
|
1356
1393
|
|
|
1357
1394
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1358
1395
|
try {
|
|
1359
1396
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1360
|
-
return uncurryThis$
|
|
1397
|
+
return uncurryThis$8(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1361
1398
|
} catch (error) { /* empty */ }
|
|
1362
1399
|
};
|
|
1363
1400
|
|
|
@@ -1399,7 +1436,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1399
1436
|
};
|
|
1400
1437
|
}() : undefined);
|
|
1401
1438
|
|
|
1402
|
-
var $$
|
|
1439
|
+
var $$a = _export;
|
|
1403
1440
|
var call$9 = functionCall;
|
|
1404
1441
|
var FunctionName = functionName;
|
|
1405
1442
|
var isCallable$6 = isCallable$k;
|
|
@@ -1417,7 +1454,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
|
1417
1454
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1418
1455
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1419
1456
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1420
|
-
var ITERATOR$
|
|
1457
|
+
var ITERATOR$5 = wellKnownSymbol$b('iterator');
|
|
1421
1458
|
var KEYS = 'keys';
|
|
1422
1459
|
var VALUES = 'values';
|
|
1423
1460
|
var ENTRIES = 'entries';
|
|
@@ -1440,7 +1477,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1440
1477
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1441
1478
|
var INCORRECT_VALUES_NAME = false;
|
|
1442
1479
|
var IterablePrototype = Iterable.prototype;
|
|
1443
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
1480
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
1444
1481
|
|| IterablePrototype['@@iterator']
|
|
1445
1482
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1446
1483
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -1454,8 +1491,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1454
1491
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1455
1492
|
if (setPrototypeOf$1) {
|
|
1456
1493
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1457
|
-
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$
|
|
1458
|
-
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$
|
|
1494
|
+
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1495
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1459
1496
|
}
|
|
1460
1497
|
}
|
|
1461
1498
|
// Set @@toStringTag to native iterators
|
|
@@ -1484,12 +1521,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1484
1521
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1485
1522
|
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1486
1523
|
}
|
|
1487
|
-
} else $$
|
|
1524
|
+
} else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1488
1525
|
}
|
|
1489
1526
|
|
|
1490
1527
|
// define iterator
|
|
1491
|
-
if (IterablePrototype[ITERATOR$
|
|
1492
|
-
defineBuiltIn$3(IterablePrototype, ITERATOR$
|
|
1528
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1529
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1493
1530
|
}
|
|
1494
1531
|
Iterators$3[NAME] = defaultIterator;
|
|
1495
1532
|
|
|
@@ -1607,24 +1644,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1607
1644
|
|
|
1608
1645
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1609
1646
|
|
|
1610
|
-
var global$
|
|
1647
|
+
var global$7 = global$i;
|
|
1611
1648
|
var DOMIterables = domIterables;
|
|
1612
1649
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1613
1650
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1614
1651
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1615
1652
|
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
1616
1653
|
|
|
1617
|
-
var ITERATOR$
|
|
1654
|
+
var ITERATOR$4 = wellKnownSymbol$a('iterator');
|
|
1618
1655
|
var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
|
|
1619
1656
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1620
1657
|
|
|
1621
1658
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1622
1659
|
if (CollectionPrototype) {
|
|
1623
1660
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1624
|
-
if (CollectionPrototype[ITERATOR$
|
|
1625
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR$
|
|
1661
|
+
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1662
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1626
1663
|
} catch (error) {
|
|
1627
|
-
CollectionPrototype[ITERATOR$
|
|
1664
|
+
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1628
1665
|
}
|
|
1629
1666
|
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
|
1630
1667
|
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
|
@@ -1641,205 +1678,67 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1641
1678
|
};
|
|
1642
1679
|
|
|
1643
1680
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1644
|
-
handlePrototype(global$
|
|
1681
|
+
handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1645
1682
|
}
|
|
1646
1683
|
|
|
1647
1684
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1648
1685
|
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
const
|
|
1686
|
+
var Environment;
|
|
1687
|
+
(function (Environment) {
|
|
1688
|
+
Environment["DEVELOPMENT"] = "Development";
|
|
1689
|
+
Environment["PRODUCTION"] = "Production";
|
|
1690
|
+
})(Environment || (Environment = {}));
|
|
1691
|
+
const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
1692
|
+
const [orchestratorConfig] = useState(initialOrchestratorConfig);
|
|
1656
1693
|
return {
|
|
1657
|
-
|
|
1658
|
-
multiplyByBaseUnit,
|
|
1659
|
-
toSecondaryColor
|
|
1694
|
+
orchestratorConfig
|
|
1660
1695
|
};
|
|
1661
1696
|
};
|
|
1662
1697
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
var t = {};
|
|
1680
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1681
|
-
t[p] = s[p];
|
|
1682
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1683
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1684
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1685
|
-
t[p[i]] = s[p[i]];
|
|
1686
|
-
}
|
|
1687
|
-
return t;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1691
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1692
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1693
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1694
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1695
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1696
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1697
|
-
});
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
const Badge = _a => {
|
|
1701
|
-
var {
|
|
1702
|
-
textColor,
|
|
1703
|
-
children
|
|
1704
|
-
} = _a,
|
|
1705
|
-
restProps = __rest(_a, ["textColor", "children"]);
|
|
1706
|
-
return jsx(EuiBadge, Object.assign({}, restProps, {
|
|
1707
|
-
children: jsx(EuiText, Object.assign({
|
|
1708
|
-
color: textColor,
|
|
1709
|
-
size: "xs"
|
|
1710
|
-
}, {
|
|
1711
|
-
children: jsx("b", {
|
|
1712
|
-
children: children
|
|
1713
|
-
})
|
|
1714
|
-
}))
|
|
1715
|
-
}));
|
|
1716
|
-
};
|
|
1717
|
-
|
|
1718
|
-
const HeaderBadge = _a => {
|
|
1719
|
-
var {
|
|
1720
|
-
children
|
|
1721
|
-
} = _a,
|
|
1722
|
-
restProps = __rest(_a, ["children"]);
|
|
1723
|
-
const css = restProps.iconType ? {
|
|
1724
|
-
height: 24,
|
|
1725
|
-
display: 'flex',
|
|
1726
|
-
paddingLeft: 0
|
|
1727
|
-
} : {
|
|
1728
|
-
height: 24,
|
|
1729
|
-
display: 'flex'
|
|
1730
|
-
};
|
|
1731
|
-
return jsx(Badge, Object.assign({}, restProps, {
|
|
1732
|
-
css: css
|
|
1698
|
+
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
1699
|
+
orchestratorApiBaseUrl: '',
|
|
1700
|
+
engineStatusEndpoint: '',
|
|
1701
|
+
processStatusCountsEndpoint: '',
|
|
1702
|
+
environmentName: '',
|
|
1703
|
+
graphqlEndpoint: ''
|
|
1704
|
+
});
|
|
1705
|
+
const OrchestratorConfigProvider = ({
|
|
1706
|
+
initialOrchestratorConfig,
|
|
1707
|
+
children
|
|
1708
|
+
}) => {
|
|
1709
|
+
const {
|
|
1710
|
+
orchestratorConfig
|
|
1711
|
+
} = useOrchestratorConfig(initialOrchestratorConfig);
|
|
1712
|
+
return jsx(OrchestratorConfigContext.Provider, Object.assign({
|
|
1713
|
+
value: orchestratorConfig
|
|
1733
1714
|
}, {
|
|
1734
1715
|
children: children
|
|
1735
1716
|
}));
|
|
1736
1717
|
};
|
|
1737
1718
|
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
fillRule: "nonzero"
|
|
1762
|
-
}, {
|
|
1763
|
-
children: [jsx("circle", {
|
|
1764
|
-
id: "Oval",
|
|
1765
|
-
opacity: "0.25",
|
|
1766
|
-
cx: "12",
|
|
1767
|
-
cy: "12",
|
|
1768
|
-
r: "8"
|
|
1769
|
-
}), jsx("circle", {
|
|
1770
|
-
id: "Oval",
|
|
1771
|
-
cx: "12",
|
|
1772
|
-
cy: "12",
|
|
1773
|
-
r: "4"
|
|
1774
|
-
})]
|
|
1775
|
-
}))
|
|
1776
|
-
}))]
|
|
1777
|
-
}));
|
|
1778
|
-
|
|
1779
|
-
const XCircleFill = ({
|
|
1780
|
-
width: _width = 24,
|
|
1781
|
-
height: _height = 24,
|
|
1782
|
-
color: _color = '#000000'
|
|
1783
|
-
}) => jsxs("svg", Object.assign({
|
|
1784
|
-
width: _width,
|
|
1785
|
-
height: _height,
|
|
1786
|
-
viewBox: "0 0 24 24",
|
|
1787
|
-
version: "1.1",
|
|
1788
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1789
|
-
}, {
|
|
1790
|
-
children: [jsx("title", {
|
|
1791
|
-
children: "icon/x-circle-fill"
|
|
1792
|
-
}), jsx("g", Object.assign({
|
|
1793
|
-
id: "Symbols",
|
|
1794
|
-
stroke: "none",
|
|
1795
|
-
strokeWidth: "1",
|
|
1796
|
-
fill: "none",
|
|
1797
|
-
fillRule: "evenodd"
|
|
1798
|
-
}, {
|
|
1799
|
-
children: jsx("g", Object.assign({
|
|
1800
|
-
id: "icon/x-circle-fill",
|
|
1801
|
-
fill: _color
|
|
1802
|
-
}, {
|
|
1803
|
-
children: jsx("path", {
|
|
1804
|
-
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
|
|
1805
|
-
id: "Shape"
|
|
1806
|
-
})
|
|
1807
|
-
}))
|
|
1808
|
-
}))]
|
|
1809
|
-
}));
|
|
1810
|
-
|
|
1811
|
-
const LogoutIcon = ({
|
|
1812
|
-
width: _width = 24,
|
|
1813
|
-
height: _height = 24,
|
|
1814
|
-
color: _color = '#000000'
|
|
1815
|
-
}) => jsxs("svg", Object.assign({
|
|
1816
|
-
width: _width,
|
|
1817
|
-
height: _height,
|
|
1818
|
-
viewBox: "0 0 24 24",
|
|
1819
|
-
version: "1.1",
|
|
1820
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1821
|
-
}, {
|
|
1822
|
-
children: [jsx("title", {
|
|
1823
|
-
children: "icon/logout"
|
|
1824
|
-
}), jsx("g", Object.assign({
|
|
1825
|
-
id: "Symbols",
|
|
1826
|
-
stroke: "none",
|
|
1827
|
-
strokeWidth: "1",
|
|
1828
|
-
fill: "none",
|
|
1829
|
-
fillRule: "evenodd"
|
|
1830
|
-
}, {
|
|
1831
|
-
children: jsx("g", Object.assign({
|
|
1832
|
-
id: "icon/logout",
|
|
1833
|
-
fill: _color,
|
|
1834
|
-
fillRule: "nonzero"
|
|
1835
|
-
}, {
|
|
1836
|
-
children: jsx("path", {
|
|
1837
|
-
d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
|
|
1838
|
-
id: "Combined-Shape"
|
|
1839
|
-
})
|
|
1840
|
-
}))
|
|
1841
|
-
}))]
|
|
1842
|
-
}));
|
|
1719
|
+
const useQueryWithGraphql = (query, queryVars) => {
|
|
1720
|
+
const {
|
|
1721
|
+
graphqlEndpoint
|
|
1722
|
+
} = useContext(OrchestratorConfigContext);
|
|
1723
|
+
const graphQLClient = new GraphQLClient(graphqlEndpoint);
|
|
1724
|
+
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1725
|
+
// TS-Ignore because queryVars does not seem to be accepted by the client
|
|
1726
|
+
// The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
|
|
1727
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1728
|
+
// @ts-ignore
|
|
1729
|
+
return yield graphQLClient.request(query, queryVars);
|
|
1730
|
+
});
|
|
1731
|
+
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
1732
|
+
};
|
|
1733
|
+
const useStringQueryWithGraphql = (query, queryVars) => {
|
|
1734
|
+
const {
|
|
1735
|
+
graphqlEndpoint
|
|
1736
|
+
} = useContext(OrchestratorConfigContext);
|
|
1737
|
+
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1738
|
+
return yield request(graphqlEndpoint, query, queryVars);
|
|
1739
|
+
});
|
|
1740
|
+
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
1741
|
+
};
|
|
1843
1742
|
|
|
1844
1743
|
var classof$5 = classofRaw$2;
|
|
1845
1744
|
|
|
@@ -1920,8 +1819,8 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1920
1819
|
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1921
1820
|
};
|
|
1922
1821
|
|
|
1923
|
-
var uncurryThis$
|
|
1924
|
-
var fails$
|
|
1822
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1823
|
+
var fails$6 = fails$i;
|
|
1925
1824
|
var isCallable$4 = isCallable$k;
|
|
1926
1825
|
var classof$3 = classof$4;
|
|
1927
1826
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
@@ -1931,7 +1830,7 @@ var noop = function () { /* empty */ };
|
|
|
1931
1830
|
var empty = [];
|
|
1932
1831
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
1933
1832
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1934
|
-
var exec = uncurryThis$
|
|
1833
|
+
var exec$1 = uncurryThis$7(constructorRegExp.exec);
|
|
1935
1834
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1936
1835
|
|
|
1937
1836
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1955,7 +1854,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
1955
1854
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1956
1855
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1957
1856
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1958
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
1857
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
1959
1858
|
} catch (error) {
|
|
1960
1859
|
return true;
|
|
1961
1860
|
}
|
|
@@ -1965,7 +1864,7 @@ isConstructorLegacy.sham = true;
|
|
|
1965
1864
|
|
|
1966
1865
|
// `IsConstructor` abstract operation
|
|
1967
1866
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1968
|
-
var isConstructor$1 = !construct || fails$
|
|
1867
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
1969
1868
|
var called;
|
|
1970
1869
|
return isConstructorModern(isConstructorModern.call)
|
|
1971
1870
|
|| !isConstructorModern(Object)
|
|
@@ -2011,20 +1910,20 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
|
|
|
2011
1910
|
});
|
|
2012
1911
|
|
|
2013
1912
|
var classofRaw = classofRaw$2;
|
|
2014
|
-
var uncurryThis$
|
|
1913
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2015
1914
|
|
|
2016
1915
|
var functionUncurryThisClause = function (fn) {
|
|
2017
1916
|
// Nashorn bug:
|
|
2018
1917
|
// https://github.com/zloirock/core-js/issues/1128
|
|
2019
1918
|
// https://github.com/zloirock/core-js/issues/1130
|
|
2020
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1919
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
|
|
2021
1920
|
};
|
|
2022
1921
|
|
|
2023
|
-
var uncurryThis$
|
|
1922
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
2024
1923
|
var aCallable$6 = aCallable$9;
|
|
2025
1924
|
var NATIVE_BIND = functionBindNative;
|
|
2026
1925
|
|
|
2027
|
-
var bind$4 = uncurryThis$
|
|
1926
|
+
var bind$4 = uncurryThis$5(uncurryThis$5.bind);
|
|
2028
1927
|
|
|
2029
1928
|
// optional / simple context binding
|
|
2030
1929
|
var functionBindContext = function (fn, that) {
|
|
@@ -2034,9 +1933,9 @@ var functionBindContext = function (fn, that) {
|
|
|
2034
1933
|
};
|
|
2035
1934
|
};
|
|
2036
1935
|
|
|
2037
|
-
var uncurryThis$
|
|
1936
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2038
1937
|
|
|
2039
|
-
var arraySlice$2 = uncurryThis$
|
|
1938
|
+
var arraySlice$2 = uncurryThis$4([].slice);
|
|
2040
1939
|
|
|
2041
1940
|
var $TypeError$5 = TypeError;
|
|
2042
1941
|
|
|
@@ -2050,12 +1949,12 @@ var userAgent$4 = engineUserAgent;
|
|
|
2050
1949
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2051
1950
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
|
|
2052
1951
|
|
|
2053
|
-
var global$
|
|
1952
|
+
var global$6 = global$i;
|
|
2054
1953
|
var apply = functionApply;
|
|
2055
1954
|
var bind$3 = functionBindContext;
|
|
2056
1955
|
var isCallable$3 = isCallable$k;
|
|
2057
1956
|
var hasOwn$1 = hasOwnProperty_1;
|
|
2058
|
-
var fails$
|
|
1957
|
+
var fails$5 = fails$i;
|
|
2059
1958
|
var html = html$2;
|
|
2060
1959
|
var arraySlice$1 = arraySlice$2;
|
|
2061
1960
|
var createElement = documentCreateElement$2;
|
|
@@ -2063,21 +1962,21 @@ var validateArgumentsLength = validateArgumentsLength$1;
|
|
|
2063
1962
|
var IS_IOS$1 = engineIsIos;
|
|
2064
1963
|
var IS_NODE$3 = engineIsNode;
|
|
2065
1964
|
|
|
2066
|
-
var set = global$
|
|
2067
|
-
var clear = global$
|
|
2068
|
-
var process$3 = global$
|
|
2069
|
-
var Dispatch = global$
|
|
2070
|
-
var Function$1 = global$
|
|
2071
|
-
var MessageChannel = global$
|
|
2072
|
-
var String$1 = global$
|
|
1965
|
+
var set = global$6.setImmediate;
|
|
1966
|
+
var clear = global$6.clearImmediate;
|
|
1967
|
+
var process$3 = global$6.process;
|
|
1968
|
+
var Dispatch = global$6.Dispatch;
|
|
1969
|
+
var Function$1 = global$6.Function;
|
|
1970
|
+
var MessageChannel = global$6.MessageChannel;
|
|
1971
|
+
var String$1 = global$6.String;
|
|
2073
1972
|
var counter = 0;
|
|
2074
1973
|
var queue$2 = {};
|
|
2075
1974
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2076
1975
|
var $location, defer, channel, port;
|
|
2077
1976
|
|
|
2078
|
-
fails$
|
|
1977
|
+
fails$5(function () {
|
|
2079
1978
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2080
|
-
$location = global$
|
|
1979
|
+
$location = global$6.location;
|
|
2081
1980
|
});
|
|
2082
1981
|
|
|
2083
1982
|
var run = function (id) {
|
|
@@ -2100,7 +1999,7 @@ var eventListener = function (event) {
|
|
|
2100
1999
|
|
|
2101
2000
|
var globalPostMessageDefer = function (id) {
|
|
2102
2001
|
// old engines have not location.origin
|
|
2103
|
-
global$
|
|
2002
|
+
global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2104
2003
|
};
|
|
2105
2004
|
|
|
2106
2005
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -2138,14 +2037,14 @@ if (!set || !clear) {
|
|
|
2138
2037
|
// Browsers with postMessage, skip WebWorkers
|
|
2139
2038
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2140
2039
|
} else if (
|
|
2141
|
-
global$
|
|
2142
|
-
isCallable$3(global$
|
|
2143
|
-
!global$
|
|
2040
|
+
global$6.addEventListener &&
|
|
2041
|
+
isCallable$3(global$6.postMessage) &&
|
|
2042
|
+
!global$6.importScripts &&
|
|
2144
2043
|
$location && $location.protocol !== 'file:' &&
|
|
2145
|
-
!fails$
|
|
2044
|
+
!fails$5(globalPostMessageDefer)
|
|
2146
2045
|
) {
|
|
2147
2046
|
defer = globalPostMessageDefer;
|
|
2148
|
-
global$
|
|
2047
|
+
global$6.addEventListener('message', eventListener, false);
|
|
2149
2048
|
// IE8-
|
|
2150
2049
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2151
2050
|
defer = function (id) {
|
|
@@ -2200,7 +2099,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
2200
2099
|
|
|
2201
2100
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
|
|
2202
2101
|
|
|
2203
|
-
var global$
|
|
2102
|
+
var global$5 = global$i;
|
|
2204
2103
|
var bind$2 = functionBindContext;
|
|
2205
2104
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2206
2105
|
var macrotask = task$1.set;
|
|
@@ -2210,12 +2109,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
2210
2109
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2211
2110
|
var IS_NODE$2 = engineIsNode;
|
|
2212
2111
|
|
|
2213
|
-
var MutationObserver = global$
|
|
2214
|
-
var document$2 = global$
|
|
2215
|
-
var process$2 = global$
|
|
2216
|
-
var Promise$1 = global$
|
|
2112
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
2113
|
+
var document$2 = global$5.document;
|
|
2114
|
+
var process$2 = global$5.process;
|
|
2115
|
+
var Promise$1 = global$5.Promise;
|
|
2217
2116
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
2218
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
2117
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
|
|
2219
2118
|
var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
2220
2119
|
var notify$1, toggle, node, promise, then;
|
|
2221
2120
|
|
|
@@ -2267,7 +2166,7 @@ if (!microtask$1) {
|
|
|
2267
2166
|
// - setTimeout
|
|
2268
2167
|
} else {
|
|
2269
2168
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2270
|
-
macrotask = bind$2(macrotask, global$
|
|
2169
|
+
macrotask = bind$2(macrotask, global$5);
|
|
2271
2170
|
notify$1 = function () {
|
|
2272
2171
|
macrotask(flush);
|
|
2273
2172
|
};
|
|
@@ -2296,9 +2195,9 @@ var perform$3 = function (exec) {
|
|
|
2296
2195
|
}
|
|
2297
2196
|
};
|
|
2298
2197
|
|
|
2299
|
-
var global$
|
|
2198
|
+
var global$4 = global$i;
|
|
2300
2199
|
|
|
2301
|
-
var promiseNativeConstructor = global$
|
|
2200
|
+
var promiseNativeConstructor = global$4.Promise;
|
|
2302
2201
|
|
|
2303
2202
|
/* global Deno -- Deno case */
|
|
2304
2203
|
|
|
@@ -2311,7 +2210,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
2311
2210
|
&& typeof window == 'object'
|
|
2312
2211
|
&& typeof document == 'object';
|
|
2313
2212
|
|
|
2314
|
-
var global$
|
|
2213
|
+
var global$3 = global$i;
|
|
2315
2214
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2316
2215
|
var isCallable$2 = isCallable$k;
|
|
2317
2216
|
var isForced = isForced_1;
|
|
@@ -2324,7 +2223,7 @@ var V8_VERSION = engineV8Version;
|
|
|
2324
2223
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2325
2224
|
var SPECIES = wellKnownSymbol$5('species');
|
|
2326
2225
|
var SUBCLASSING = false;
|
|
2327
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$
|
|
2226
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
|
|
2328
2227
|
|
|
2329
2228
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2330
2229
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -2379,9 +2278,9 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2379
2278
|
return new PromiseCapability(C);
|
|
2380
2279
|
};
|
|
2381
2280
|
|
|
2382
|
-
var $$
|
|
2281
|
+
var $$9 = _export;
|
|
2383
2282
|
var IS_NODE = engineIsNode;
|
|
2384
|
-
var global$
|
|
2283
|
+
var global$2 = global$i;
|
|
2385
2284
|
var call$7 = functionCall;
|
|
2386
2285
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2387
2286
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -2411,13 +2310,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
2411
2310
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2412
2311
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2413
2312
|
var PromisePrototype = NativePromisePrototype$1;
|
|
2414
|
-
var TypeError$1 = global$
|
|
2415
|
-
var document$1 = global$
|
|
2416
|
-
var process$1 = global$
|
|
2313
|
+
var TypeError$1 = global$2.TypeError;
|
|
2314
|
+
var document$1 = global$2.document;
|
|
2315
|
+
var process$1 = global$2.process;
|
|
2417
2316
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2418
2317
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2419
2318
|
|
|
2420
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
2319
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
|
|
2421
2320
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2422
2321
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2423
2322
|
var PENDING = 0;
|
|
@@ -2490,14 +2389,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2490
2389
|
event.promise = promise;
|
|
2491
2390
|
event.reason = reason;
|
|
2492
2391
|
event.initEvent(name, false, true);
|
|
2493
|
-
global$
|
|
2392
|
+
global$2.dispatchEvent(event);
|
|
2494
2393
|
} else event = { promise: promise, reason: reason };
|
|
2495
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
2394
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
|
|
2496
2395
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2497
2396
|
};
|
|
2498
2397
|
|
|
2499
2398
|
var onUnhandled = function (state) {
|
|
2500
|
-
call$7(task, global$
|
|
2399
|
+
call$7(task, global$2, function () {
|
|
2501
2400
|
var promise = state.facade;
|
|
2502
2401
|
var value = state.value;
|
|
2503
2402
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2520,7 +2419,7 @@ var isUnhandled = function (state) {
|
|
|
2520
2419
|
};
|
|
2521
2420
|
|
|
2522
2421
|
var onHandleUnhandled = function (state) {
|
|
2523
|
-
call$7(task, global$
|
|
2422
|
+
call$7(task, global$2, function () {
|
|
2524
2423
|
var promise = state.facade;
|
|
2525
2424
|
if (IS_NODE) {
|
|
2526
2425
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -2659,7 +2558,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2659
2558
|
}
|
|
2660
2559
|
}
|
|
2661
2560
|
|
|
2662
|
-
$$
|
|
2561
|
+
$$9({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2663
2562
|
Promise: PromiseConstructor
|
|
2664
2563
|
});
|
|
2665
2564
|
|
|
@@ -2669,12 +2568,12 @@ setSpecies(PROMISE);
|
|
|
2669
2568
|
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
2670
2569
|
var Iterators$1 = iterators;
|
|
2671
2570
|
|
|
2672
|
-
var ITERATOR$
|
|
2571
|
+
var ITERATOR$3 = wellKnownSymbol$4('iterator');
|
|
2673
2572
|
var ArrayPrototype = Array.prototype;
|
|
2674
2573
|
|
|
2675
2574
|
// check on default Array iterator
|
|
2676
2575
|
var isArrayIteratorMethod$1 = function (it) {
|
|
2677
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$
|
|
2576
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
|
|
2678
2577
|
};
|
|
2679
2578
|
|
|
2680
2579
|
var classof$2 = classof$4;
|
|
@@ -2683,10 +2582,10 @@ var isNullOrUndefined = isNullOrUndefined$4;
|
|
|
2683
2582
|
var Iterators = iterators;
|
|
2684
2583
|
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
2685
2584
|
|
|
2686
|
-
var ITERATOR$
|
|
2585
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
2687
2586
|
|
|
2688
2587
|
var getIteratorMethod$2 = function (it) {
|
|
2689
|
-
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$
|
|
2588
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
|
|
2690
2589
|
|| getMethod$1(it, '@@iterator')
|
|
2691
2590
|
|| Iterators[classof$2(it)];
|
|
2692
2591
|
};
|
|
@@ -2800,7 +2699,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2800
2699
|
|
|
2801
2700
|
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
2802
2701
|
|
|
2803
|
-
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
2702
|
+
var ITERATOR$1 = wellKnownSymbol$2('iterator');
|
|
2804
2703
|
var SAFE_CLOSING = false;
|
|
2805
2704
|
|
|
2806
2705
|
try {
|
|
@@ -2813,7 +2712,7 @@ try {
|
|
|
2813
2712
|
SAFE_CLOSING = true;
|
|
2814
2713
|
}
|
|
2815
2714
|
};
|
|
2816
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
2715
|
+
iteratorWithReturn[ITERATOR$1] = function () {
|
|
2817
2716
|
return this;
|
|
2818
2717
|
};
|
|
2819
2718
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
@@ -2825,7 +2724,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
2825
2724
|
var ITERATION_SUPPORT = false;
|
|
2826
2725
|
try {
|
|
2827
2726
|
var object = {};
|
|
2828
|
-
object[ITERATOR] = function () {
|
|
2727
|
+
object[ITERATOR$1] = function () {
|
|
2829
2728
|
return {
|
|
2830
2729
|
next: function () {
|
|
2831
2730
|
return { done: ITERATION_SUPPORT = true };
|
|
@@ -2845,7 +2744,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2845
2744
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2846
2745
|
});
|
|
2847
2746
|
|
|
2848
|
-
var $$
|
|
2747
|
+
var $$8 = _export;
|
|
2849
2748
|
var call$3 = functionCall;
|
|
2850
2749
|
var aCallable$2 = aCallable$9;
|
|
2851
2750
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
@@ -2855,7 +2754,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2855
2754
|
|
|
2856
2755
|
// `Promise.all` method
|
|
2857
2756
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2858
|
-
$$
|
|
2757
|
+
$$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2859
2758
|
all: function all(iterable) {
|
|
2860
2759
|
var C = this;
|
|
2861
2760
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -2884,7 +2783,7 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2884
2783
|
}
|
|
2885
2784
|
});
|
|
2886
2785
|
|
|
2887
|
-
var $$
|
|
2786
|
+
var $$7 = _export;
|
|
2888
2787
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2889
2788
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2890
2789
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
@@ -2895,7 +2794,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
2895
2794
|
|
|
2896
2795
|
// `Promise.prototype.catch` method
|
|
2897
2796
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2898
|
-
$$
|
|
2797
|
+
$$7({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2899
2798
|
'catch': function (onRejected) {
|
|
2900
2799
|
return this.then(undefined, onRejected);
|
|
2901
2800
|
}
|
|
@@ -2909,7 +2808,7 @@ if (isCallable(NativePromiseConstructor)) {
|
|
|
2909
2808
|
}
|
|
2910
2809
|
}
|
|
2911
2810
|
|
|
2912
|
-
var $$
|
|
2811
|
+
var $$6 = _export;
|
|
2913
2812
|
var call$2 = functionCall;
|
|
2914
2813
|
var aCallable$1 = aCallable$9;
|
|
2915
2814
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
@@ -2919,7 +2818,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2919
2818
|
|
|
2920
2819
|
// `Promise.race` method
|
|
2921
2820
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2922
|
-
$$
|
|
2821
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2923
2822
|
race: function race(iterable) {
|
|
2924
2823
|
var C = this;
|
|
2925
2824
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -2935,14 +2834,14 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2935
2834
|
}
|
|
2936
2835
|
});
|
|
2937
2836
|
|
|
2938
|
-
var $$
|
|
2837
|
+
var $$5 = _export;
|
|
2939
2838
|
var call$1 = functionCall;
|
|
2940
2839
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2941
2840
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2942
2841
|
|
|
2943
2842
|
// `Promise.reject` method
|
|
2944
2843
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2945
|
-
$$
|
|
2844
|
+
$$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2946
2845
|
reject: function reject(r) {
|
|
2947
2846
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2948
2847
|
call$1(capability.reject, undefined, r);
|
|
@@ -2963,7 +2862,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
2963
2862
|
return promiseCapability.promise;
|
|
2964
2863
|
};
|
|
2965
2864
|
|
|
2966
|
-
var $$
|
|
2865
|
+
var $$4 = _export;
|
|
2967
2866
|
var getBuiltIn = getBuiltIn$7;
|
|
2968
2867
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2969
2868
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2972,45 +2871,12 @@ getBuiltIn('Promise');
|
|
|
2972
2871
|
|
|
2973
2872
|
// `Promise.resolve` method
|
|
2974
2873
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2975
|
-
$$
|
|
2874
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2976
2875
|
resolve: function resolve(x) {
|
|
2977
2876
|
return promiseResolve(this, x);
|
|
2978
2877
|
}
|
|
2979
2878
|
});
|
|
2980
2879
|
|
|
2981
|
-
var Environment;
|
|
2982
|
-
(function (Environment) {
|
|
2983
|
-
Environment["DEVELOPMENT"] = "Development";
|
|
2984
|
-
Environment["PRODUCTION"] = "Production";
|
|
2985
|
-
})(Environment || (Environment = {}));
|
|
2986
|
-
const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
2987
|
-
const [orchestratorConfig] = useState(initialOrchestratorConfig);
|
|
2988
|
-
return {
|
|
2989
|
-
orchestratorConfig
|
|
2990
|
-
};
|
|
2991
|
-
};
|
|
2992
|
-
|
|
2993
|
-
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
2994
|
-
orchestratorApiBaseUrl: '',
|
|
2995
|
-
engineStatusEndpoint: '',
|
|
2996
|
-
processStatusCountsEndpoint: '',
|
|
2997
|
-
environmentName: '',
|
|
2998
|
-
graphqlEndpoint: ''
|
|
2999
|
-
});
|
|
3000
|
-
const OrchestratorConfigProvider = ({
|
|
3001
|
-
initialOrchestratorConfig,
|
|
3002
|
-
children
|
|
3003
|
-
}) => {
|
|
3004
|
-
const {
|
|
3005
|
-
orchestratorConfig
|
|
3006
|
-
} = useOrchestratorConfig(initialOrchestratorConfig);
|
|
3007
|
-
return jsx(OrchestratorConfigContext.Provider, Object.assign({
|
|
3008
|
-
value: orchestratorConfig
|
|
3009
|
-
}, {
|
|
3010
|
-
children: children
|
|
3011
|
-
}));
|
|
3012
|
-
};
|
|
3013
|
-
|
|
3014
2880
|
const useEngineStatusQuery = () => {
|
|
3015
2881
|
const {
|
|
3016
2882
|
engineStatusEndpoint
|
|
@@ -3024,6 +2890,20 @@ const useEngineStatusQuery = () => {
|
|
|
3024
2890
|
return useQuery('engineStatus', fetchEngineStatus);
|
|
3025
2891
|
};
|
|
3026
2892
|
|
|
2893
|
+
const useOrchestratorTheme = () => {
|
|
2894
|
+
const {
|
|
2895
|
+
euiTheme
|
|
2896
|
+
} = useEuiTheme();
|
|
2897
|
+
const baseUnit = euiTheme.base;
|
|
2898
|
+
const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
|
|
2899
|
+
const toSecondaryColor = color => tint(color, 0.8);
|
|
2900
|
+
return {
|
|
2901
|
+
theme: euiTheme,
|
|
2902
|
+
multiplyByBaseUnit,
|
|
2903
|
+
toSecondaryColor
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
|
|
3027
2907
|
var ProcessStatus;
|
|
3028
2908
|
(function (ProcessStatus) {
|
|
3029
2909
|
ProcessStatus["CREATED"] = "created";
|
|
@@ -3049,112 +2929,198 @@ const useProcessStatusCountsQuery = () => {
|
|
|
3049
2929
|
return useQuery('processStatusCounts', fetchProcessStatusCounts);
|
|
3050
2930
|
};
|
|
3051
2931
|
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
2932
|
+
function getFavouriteSubscriptions(apiUrl) {
|
|
2933
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2934
|
+
console.log('api url', apiUrl);
|
|
2935
|
+
const response = yield fetch(apiUrl + '/subscriptions/?range=10%2C15');
|
|
2936
|
+
return yield response.json();
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
function getProcessesNeedingAttention(apiUrl) {
|
|
2940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2941
|
+
const response = yield fetch(apiUrl + '/processes/?range=100%2C105');
|
|
2942
|
+
return yield response.json();
|
|
2943
|
+
});
|
|
2944
|
+
}
|
|
2945
|
+
function getRecentProcesses(apiUrl) {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2947
|
+
const response = yield fetch(apiUrl + '/processes/?range=106%2C111');
|
|
2948
|
+
return yield response.json();
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
const useFavouriteSubscriptions = () => {
|
|
2952
|
+
const {
|
|
2953
|
+
orchestratorApiBaseUrl
|
|
2954
|
+
} = useContext(OrchestratorConfigContext);
|
|
2955
|
+
const {
|
|
2956
|
+
data,
|
|
2957
|
+
isLoading
|
|
2958
|
+
} = useQuery(['favouriteSubscriptions'], () => getFavouriteSubscriptions(orchestratorApiBaseUrl));
|
|
2959
|
+
const initialData = {
|
|
2960
|
+
buttonName: 'Show all favourites',
|
|
2961
|
+
items: [],
|
|
2962
|
+
title: 'Favourite Subscriptions',
|
|
2963
|
+
type: 'subscription'
|
|
3061
2964
|
};
|
|
2965
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
2966
|
+
items: data
|
|
2967
|
+
});
|
|
3062
2968
|
};
|
|
3063
|
-
const
|
|
3064
|
-
navigationHeight,
|
|
3065
|
-
getAppLogo,
|
|
3066
|
-
handleLogoutClick
|
|
3067
|
-
}) => {
|
|
2969
|
+
const useProcessesAttention = () => {
|
|
3068
2970
|
const {
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
children: jsx(EnvironmentBadge, {})
|
|
3085
|
-
})]
|
|
3086
|
-
}), jsx(EuiHeaderSection, {
|
|
3087
|
-
children: jsxs(EuiHeaderSectionItem, {
|
|
3088
|
-
children: [jsxs(EuiBadgeGroup, Object.assign({
|
|
3089
|
-
css: {
|
|
3090
|
-
marginRight: multiplyByBaseUnit(2)
|
|
3091
|
-
}
|
|
3092
|
-
}, {
|
|
3093
|
-
children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
|
|
3094
|
-
})), jsx(EuiButtonIcon, {
|
|
3095
|
-
"aria-label": "Logout",
|
|
3096
|
-
display: "empty",
|
|
3097
|
-
iconType: () => jsx(LogoutIcon, {
|
|
3098
|
-
color: theme.colors.emptyShade
|
|
3099
|
-
}),
|
|
3100
|
-
css: {
|
|
3101
|
-
width: 48,
|
|
3102
|
-
height: 48
|
|
3103
|
-
},
|
|
3104
|
-
color: "ghost",
|
|
3105
|
-
onClick: () => handleLogoutClick()
|
|
3106
|
-
})]
|
|
3107
|
-
})
|
|
3108
|
-
})]
|
|
3109
|
-
}));
|
|
2971
|
+
orchestratorApiBaseUrl
|
|
2972
|
+
} = useContext(OrchestratorConfigContext);
|
|
2973
|
+
const {
|
|
2974
|
+
data,
|
|
2975
|
+
isLoading
|
|
2976
|
+
} = useQuery(['processesAttention'], () => getProcessesNeedingAttention(orchestratorApiBaseUrl));
|
|
2977
|
+
const initialData = {
|
|
2978
|
+
type: 'process',
|
|
2979
|
+
title: 'Processes that need attention',
|
|
2980
|
+
items: [],
|
|
2981
|
+
buttonName: 'Show all active processes'
|
|
2982
|
+
};
|
|
2983
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
2984
|
+
items: data
|
|
2985
|
+
});
|
|
3110
2986
|
};
|
|
3111
|
-
const
|
|
2987
|
+
const useRecentProcesses = () => {
|
|
3112
2988
|
const {
|
|
3113
|
-
|
|
2989
|
+
orchestratorApiBaseUrl
|
|
3114
2990
|
} = useContext(OrchestratorConfigContext);
|
|
2991
|
+
const {
|
|
2992
|
+
data,
|
|
2993
|
+
isLoading
|
|
2994
|
+
} = useQuery(['recentProcesses'], () => getRecentProcesses(orchestratorApiBaseUrl));
|
|
2995
|
+
const initialData = {
|
|
2996
|
+
type: 'process',
|
|
2997
|
+
title: 'Recently completed processes',
|
|
2998
|
+
items: [],
|
|
2999
|
+
buttonName: 'Show all completed processes'
|
|
3000
|
+
};
|
|
3001
|
+
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
3002
|
+
items: data
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
const SubscriptionStatusBadge = ({
|
|
3007
|
+
subscriptionStatus
|
|
3008
|
+
}) => {
|
|
3115
3009
|
const {
|
|
3116
3010
|
theme,
|
|
3117
3011
|
toSecondaryColor
|
|
3118
3012
|
} = useOrchestratorTheme();
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
};
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3013
|
+
const getBadgeColorFromSubscriptionStatus = status => {
|
|
3014
|
+
const {
|
|
3015
|
+
primary,
|
|
3016
|
+
darkestShade,
|
|
3017
|
+
lightShade,
|
|
3018
|
+
primaryText,
|
|
3019
|
+
success,
|
|
3020
|
+
successText
|
|
3021
|
+
} = theme.colors;
|
|
3022
|
+
switch (status) {
|
|
3023
|
+
case 'active':
|
|
3024
|
+
return {
|
|
3025
|
+
badgeColor: toSecondaryColor(success),
|
|
3026
|
+
textColor: successText
|
|
3027
|
+
};
|
|
3028
|
+
case 'terminated':
|
|
3029
|
+
return {
|
|
3030
|
+
badgeColor: lightShade,
|
|
3031
|
+
textColor: darkestShade
|
|
3032
|
+
};
|
|
3033
|
+
default:
|
|
3034
|
+
return {
|
|
3035
|
+
badgeColor: toSecondaryColor(primary),
|
|
3036
|
+
textColor: primaryText
|
|
3037
|
+
};
|
|
3038
|
+
}
|
|
3039
|
+
};
|
|
3138
3040
|
const {
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
return jsx(
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
iconType: () => jsx(StatusDotIcon, {
|
|
3146
|
-
color: theme.colors.success
|
|
3147
|
-
})
|
|
3041
|
+
badgeColor,
|
|
3042
|
+
textColor
|
|
3043
|
+
} = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
|
|
3044
|
+
return jsx(Badge, Object.assign({
|
|
3045
|
+
textColor: textColor,
|
|
3046
|
+
color: badgeColor
|
|
3148
3047
|
}, {
|
|
3149
|
-
children:
|
|
3048
|
+
children: subscriptionStatus
|
|
3049
|
+
}));
|
|
3050
|
+
};
|
|
3051
|
+
|
|
3052
|
+
const HeaderBadge = _a => {
|
|
3053
|
+
var {
|
|
3054
|
+
children
|
|
3055
|
+
} = _a,
|
|
3056
|
+
restProps = __rest(_a, ["children"]);
|
|
3057
|
+
const css = restProps.iconType ? {
|
|
3058
|
+
height: 24,
|
|
3059
|
+
display: 'flex',
|
|
3060
|
+
paddingLeft: 0
|
|
3061
|
+
} : {
|
|
3062
|
+
height: 24,
|
|
3063
|
+
display: 'flex'
|
|
3064
|
+
};
|
|
3065
|
+
return jsx(Badge, Object.assign({}, restProps, {
|
|
3066
|
+
css: css
|
|
3067
|
+
}, {
|
|
3068
|
+
children: children
|
|
3150
3069
|
}));
|
|
3151
3070
|
};
|
|
3071
|
+
|
|
3072
|
+
const XCircleFill = ({
|
|
3073
|
+
width: _width = 24,
|
|
3074
|
+
height: _height = 24,
|
|
3075
|
+
color: _color = '#000000'
|
|
3076
|
+
}) => jsxs("svg", Object.assign({
|
|
3077
|
+
width: _width,
|
|
3078
|
+
height: _height,
|
|
3079
|
+
viewBox: "0 0 24 24",
|
|
3080
|
+
version: "1.1",
|
|
3081
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3082
|
+
}, {
|
|
3083
|
+
children: [jsx("title", {
|
|
3084
|
+
children: "icon/x-circle-fill"
|
|
3085
|
+
}), jsx("g", Object.assign({
|
|
3086
|
+
id: "Symbols",
|
|
3087
|
+
stroke: "none",
|
|
3088
|
+
strokeWidth: "1",
|
|
3089
|
+
fill: "none",
|
|
3090
|
+
fillRule: "evenodd"
|
|
3091
|
+
}, {
|
|
3092
|
+
children: jsx("g", Object.assign({
|
|
3093
|
+
id: "icon/x-circle-fill",
|
|
3094
|
+
fill: _color
|
|
3095
|
+
}, {
|
|
3096
|
+
children: jsx("path", {
|
|
3097
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M10.70711,9.29289 C10.31658,8.90237 9.68342,8.90237 9.29289,9.29289 C8.90237,9.68342 8.90237,10.31658 9.29289,10.70711 L10.58579,12 L9.29289,13.2929 C8.90237,13.6834 8.90237,14.3166 9.29289,14.7071 C9.68342,15.0976 10.31658,15.0976 10.70711,14.7071 L12,13.4142 L13.2929,14.7071 C13.6834,15.0976 14.3166,15.0976 14.7071,14.7071 C15.0976,14.3166 15.0976,13.6834 14.7071,13.2929 L13.4142,12 L14.7071,10.70711 C15.0976,10.31658 15.0976,9.68342 14.7071,9.29289 C14.3166,8.90237 13.6834,8.90237 13.2929,9.29289 L12,10.58579 L10.70711,9.29289 Z",
|
|
3098
|
+
id: "Shape"
|
|
3099
|
+
})
|
|
3100
|
+
}))
|
|
3101
|
+
}))]
|
|
3102
|
+
}));
|
|
3103
|
+
|
|
3104
|
+
const getTaskCountsSummary = processStatusCounts => {
|
|
3105
|
+
const failed = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.failed) || 0;
|
|
3106
|
+
const inconsistentData = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.inconsistent_data) || 0;
|
|
3107
|
+
const apiUnavailable = (processStatusCounts === null || processStatusCounts === void 0 ? void 0 : processStatusCounts.task_counts.api_unavailable) || 0;
|
|
3108
|
+
return {
|
|
3109
|
+
failed,
|
|
3110
|
+
inconsistentData,
|
|
3111
|
+
apiUnavailable,
|
|
3112
|
+
total: failed + inconsistentData + apiUnavailable
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3152
3115
|
const FailedTasksBadge = () => {
|
|
3153
3116
|
const {
|
|
3154
3117
|
theme
|
|
3155
3118
|
} = useOrchestratorTheme();
|
|
3156
|
-
|
|
3157
|
-
|
|
3119
|
+
const {
|
|
3120
|
+
data: processStatusCounts
|
|
3121
|
+
} = useProcessStatusCountsQuery();
|
|
3122
|
+
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
3123
|
+
console.log(processStatusCounts);
|
|
3158
3124
|
return jsx(EuiToolTip, Object.assign({
|
|
3159
3125
|
position: "bottom",
|
|
3160
3126
|
content: jsxs(Fragment, {
|
|
@@ -3179,171 +3145,608 @@ const FailedTasksBadge = () => {
|
|
|
3179
3145
|
}));
|
|
3180
3146
|
};
|
|
3181
3147
|
|
|
3182
|
-
const
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
isOpenOnMobile: false,
|
|
3187
|
-
items: [{
|
|
3188
|
-
renderItem: () => jsxs(Fragment, {
|
|
3189
|
-
children: [jsx(EuiButton, Object.assign({
|
|
3190
|
-
onClick: e => {
|
|
3191
|
-
e.preventDefault();
|
|
3192
|
-
routeTo('/new-process');
|
|
3193
|
-
},
|
|
3194
|
-
iconType: "plus",
|
|
3195
|
-
fullWidth: true
|
|
3196
|
-
}, {
|
|
3197
|
-
children: "New Process"
|
|
3198
|
-
})), jsx(EuiSpacer, {
|
|
3199
|
-
size: "m"
|
|
3200
|
-
})]
|
|
3201
|
-
}),
|
|
3202
|
-
name: 'Menu',
|
|
3203
|
-
id: 1,
|
|
3204
|
-
items: [{
|
|
3205
|
-
name: 'Start',
|
|
3206
|
-
id: 2,
|
|
3207
|
-
onClick: e => {
|
|
3208
|
-
e.preventDefault();
|
|
3209
|
-
routeTo('/');
|
|
3210
|
-
},
|
|
3211
|
-
href: '/'
|
|
3212
|
-
}, {
|
|
3213
|
-
name: 'Subscriptions',
|
|
3214
|
-
id: 3,
|
|
3215
|
-
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3216
|
-
onClick: e => {
|
|
3217
|
-
e.preventDefault();
|
|
3218
|
-
routeTo('/subscriptions');
|
|
3219
|
-
},
|
|
3220
|
-
href: '/subscriptions'
|
|
3221
|
-
}]
|
|
3222
|
-
}]
|
|
3223
|
-
});
|
|
3224
|
-
|
|
3225
|
-
const OrchestratorPageTemplate = ({
|
|
3226
|
-
children,
|
|
3227
|
-
routeTo,
|
|
3228
|
-
getAppLogo
|
|
3229
|
-
}) => {
|
|
3148
|
+
const EnvironmentBadge = () => {
|
|
3149
|
+
const {
|
|
3150
|
+
environmentName
|
|
3151
|
+
} = useContext(OrchestratorConfigContext);
|
|
3230
3152
|
const {
|
|
3231
3153
|
theme,
|
|
3232
|
-
|
|
3154
|
+
toSecondaryColor
|
|
3233
3155
|
} = useOrchestratorTheme();
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
getAppLogo: getAppLogo,
|
|
3239
|
-
navigationHeight: navigationHeight,
|
|
3240
|
-
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
3241
|
-
}), jsxs(EuiPageTemplate, Object.assign({
|
|
3242
|
-
panelled: false,
|
|
3243
|
-
grow: false,
|
|
3244
|
-
contentBorder: false,
|
|
3245
|
-
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
3246
|
-
restrictWidth: false
|
|
3156
|
+
if (environmentName !== Environment.PRODUCTION) {
|
|
3157
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3158
|
+
color: "warning",
|
|
3159
|
+
textColor: theme.colors.shadow
|
|
3247
3160
|
}, {
|
|
3248
|
-
children:
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
css: {
|
|
3258
|
-
backgroundColor: theme.colors.emptyShade
|
|
3259
|
-
}
|
|
3260
|
-
}, {
|
|
3261
|
-
children: children
|
|
3262
|
-
}))]
|
|
3263
|
-
}))]
|
|
3264
|
-
});
|
|
3265
|
-
};
|
|
3266
|
-
|
|
3267
|
-
var classof$1 = classof$4;
|
|
3268
|
-
|
|
3269
|
-
var $String = String;
|
|
3270
|
-
|
|
3271
|
-
var toString$2 = function (argument) {
|
|
3272
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
3273
|
-
return $String(argument);
|
|
3161
|
+
children: environmentName
|
|
3162
|
+
}));
|
|
3163
|
+
}
|
|
3164
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3165
|
+
color: toSecondaryColor(theme.colors.primary),
|
|
3166
|
+
textColor: theme.colors.primary
|
|
3167
|
+
}, {
|
|
3168
|
+
children: environmentName
|
|
3169
|
+
}));
|
|
3274
3170
|
};
|
|
3275
3171
|
|
|
3276
|
-
|
|
3172
|
+
const StatusDotIcon = ({
|
|
3173
|
+
width: _width = 24,
|
|
3174
|
+
height: _height = 24,
|
|
3175
|
+
color: _color = '#000000'
|
|
3176
|
+
}) => jsxs("svg", Object.assign({
|
|
3177
|
+
width: _width,
|
|
3178
|
+
height: _height,
|
|
3179
|
+
viewBox: "0 0 24 24",
|
|
3180
|
+
version: "1.1",
|
|
3181
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3182
|
+
}, {
|
|
3183
|
+
children: [jsx("title", {
|
|
3184
|
+
children: "icon/statusdot"
|
|
3185
|
+
}), jsx("g", Object.assign({
|
|
3186
|
+
id: "Symbols",
|
|
3187
|
+
stroke: "none",
|
|
3188
|
+
strokeWidth: "1",
|
|
3189
|
+
fill: "none",
|
|
3190
|
+
fillRule: "evenodd"
|
|
3191
|
+
}, {
|
|
3192
|
+
children: jsxs("g", Object.assign({
|
|
3193
|
+
id: "icon/statusdot",
|
|
3194
|
+
fill: _color,
|
|
3195
|
+
fillRule: "nonzero"
|
|
3196
|
+
}, {
|
|
3197
|
+
children: [jsx("circle", {
|
|
3198
|
+
id: "Oval",
|
|
3199
|
+
opacity: "0.25",
|
|
3200
|
+
cx: "12",
|
|
3201
|
+
cy: "12",
|
|
3202
|
+
r: "8"
|
|
3203
|
+
}), jsx("circle", {
|
|
3204
|
+
id: "Oval",
|
|
3205
|
+
cx: "12",
|
|
3206
|
+
cy: "12",
|
|
3207
|
+
r: "4"
|
|
3208
|
+
})]
|
|
3209
|
+
}))
|
|
3210
|
+
}))]
|
|
3211
|
+
}));
|
|
3277
3212
|
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3213
|
+
const EngineStatusBadge = () => {
|
|
3214
|
+
const {
|
|
3215
|
+
theme
|
|
3216
|
+
} = useOrchestratorTheme();
|
|
3217
|
+
const {
|
|
3218
|
+
data: engineStatus
|
|
3219
|
+
} = useEngineStatusQuery();
|
|
3220
|
+
const engineStatusText = (engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : 'Engine status is unavailable';
|
|
3221
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3222
|
+
color: theme.colors.emptyShade,
|
|
3223
|
+
textColor: theme.colors.shadow,
|
|
3224
|
+
iconType: () => jsx(StatusDotIcon, {
|
|
3225
|
+
color: theme.colors.success
|
|
3226
|
+
})
|
|
3227
|
+
}, {
|
|
3228
|
+
children: engineStatusText
|
|
3229
|
+
}));
|
|
3292
3230
|
};
|
|
3293
3231
|
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3232
|
+
const LogoutIcon = ({
|
|
3233
|
+
width: _width = 24,
|
|
3234
|
+
height: _height = 24,
|
|
3235
|
+
color: _color = '#000000'
|
|
3236
|
+
}) => jsxs("svg", Object.assign({
|
|
3237
|
+
width: _width,
|
|
3238
|
+
height: _height,
|
|
3239
|
+
viewBox: "0 0 24 24",
|
|
3240
|
+
version: "1.1",
|
|
3241
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3242
|
+
}, {
|
|
3243
|
+
children: [jsx("title", {
|
|
3244
|
+
children: "icon/logout"
|
|
3245
|
+
}), jsx("g", Object.assign({
|
|
3246
|
+
id: "Symbols",
|
|
3247
|
+
stroke: "none",
|
|
3248
|
+
strokeWidth: "1",
|
|
3249
|
+
fill: "none",
|
|
3250
|
+
fillRule: "evenodd"
|
|
3251
|
+
}, {
|
|
3252
|
+
children: jsx("g", Object.assign({
|
|
3253
|
+
id: "icon/logout",
|
|
3254
|
+
fill: _color,
|
|
3255
|
+
fillRule: "nonzero"
|
|
3256
|
+
}, {
|
|
3257
|
+
children: jsx("path", {
|
|
3258
|
+
d: "M10,3 C12.2091701,3 14,4.79085056 14,7 L14,8 C14,8.55228475 13.5522847,9 13,9 C12.4477153,9 12,8.55228475 12,8 L12,7 C12,5.8954149 11.1045954,5 10,5 L6,5 C4.89543475,5 4,5.89543475 4,7 L4,17 C4,18.1045954 4.8954149,19 6,19 L10,19 C11.1046153,19 12,18.1046153 12,17 L12,16 C12,15.4477153 12.4477153,15 13,15 C13.5522847,15 14,15.4477153 14,16 L14,17 C14,19.2091847 12.2091847,21 10,21 L6,21 C3.79085056,21 2,19.2091701 2,17 L2,7 C2,4.79086525 3.79086525,3 6,3 L10,3 Z M17.7071068,7.29289322 L21.7071068,11.2928932 L21.7485042,11.336853 L21.757,11.347 L21.787214,11.3832499 L21.779,11.374 L21.8036654,11.4046934 C21.8215099,11.4288693 21.8382813,11.453725 21.8539326,11.4793398 L21.8753288,11.5159379 C21.8862061,11.5357061 21.8966234,11.5561086 21.9063462,11.5769009 L21.9287745,11.628664 C21.9366843,11.6484208 21.9438775,11.6682023 21.9504533,11.6882636 C21.9552713,11.7031487 21.9599023,11.7185367 21.9641549,11.734007 C21.9701664,11.7555635 21.9753602,11.7772539 21.9798348,11.7992059 C21.9832978,11.8166247 21.9863719,11.834051 21.9889822,11.8515331 C21.9920328,11.8714753 21.9944666,11.892114 21.9962623,11.912935 C21.9978436,11.9317345 21.9989053,11.9497336 21.9994829,11.9677454 C21.9998183,11.9777892 22,11.9888734 22,12 L21.996384,12.0852242 L21.9889807,12.1489612 C21.9863719,12.165949 21.9832978,12.1833753 21.9797599,12.2007258 C21.9753602,12.2227461 21.9701664,12.2444365 21.964279,12.2658396 C21.9599023,12.2814633 21.9552713,12.2968513 21.9502619,12.3121425 C21.9438775,12.3317977 21.9366843,12.3515792 21.928896,12.3710585 L21.9063266,12.4232215 C21.8966234,12.4438914 21.8862061,12.4642939 21.8751242,12.484277 C21.8685012,12.4963944 21.8613931,12.5086131 21.8540045,12.5207088 C21.8382813,12.546275 21.8215099,12.5711307 21.8036865,12.5951593 L21.7870723,12.6170223 C21.7849289,12.6196628 21.7826279,12.6225624 21.7803112,12.625449 L21.7071068,12.7071068 L17.7071068,16.7071068 C17.3165825,17.0976311 16.6834175,17.0976311 16.2928932,16.7071068 C15.9023689,16.3165825 15.9023689,15.6834175 16.2928932,15.2928932 L18.585,13 L7,13 C6.44771525,13 6,12.5522847 6,12 C6,11.4477153 6.44771525,11 7,11 L18.585,11 L16.2928932,8.70710678 C15.9023689,8.31658249 15.9023689,7.68341751 16.2928932,7.29289322 C16.6834175,6.90236893 17.3165825,6.90236893 17.7071068,7.29289322 Z",
|
|
3259
|
+
id: "Combined-Shape"
|
|
3260
|
+
})
|
|
3261
|
+
}))
|
|
3262
|
+
}))]
|
|
3263
|
+
}));
|
|
3300
3264
|
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3265
|
+
const OrchestratorPageHeader = ({
|
|
3266
|
+
navigationHeight,
|
|
3267
|
+
getAppLogo,
|
|
3268
|
+
handleLogoutClick
|
|
3269
|
+
}) => {
|
|
3270
|
+
const {
|
|
3271
|
+
theme,
|
|
3272
|
+
multiplyByBaseUnit
|
|
3273
|
+
} = useOrchestratorTheme();
|
|
3274
|
+
return jsxs(EuiHeader, Object.assign({
|
|
3275
|
+
css: {
|
|
3276
|
+
backgroundColor: theme.colors.primary,
|
|
3277
|
+
height: navigationHeight
|
|
3278
|
+
}
|
|
3279
|
+
}, {
|
|
3280
|
+
children: [jsxs(EuiHeaderSection, {
|
|
3281
|
+
children: [jsx(EuiHeaderSectionItem, {
|
|
3282
|
+
children: jsx(EuiHeaderLogo, {
|
|
3283
|
+
iconType: () => getAppLogo(navigationHeight)
|
|
3284
|
+
})
|
|
3285
|
+
}), jsx(EuiHeaderSectionItem, {
|
|
3286
|
+
children: jsx(EnvironmentBadge, {})
|
|
3287
|
+
})]
|
|
3288
|
+
}), jsx(EuiHeaderSection, {
|
|
3289
|
+
children: jsxs(EuiHeaderSectionItem, {
|
|
3290
|
+
children: [jsxs(EuiBadgeGroup, Object.assign({
|
|
3291
|
+
css: {
|
|
3292
|
+
marginRight: multiplyByBaseUnit(2)
|
|
3293
|
+
}
|
|
3294
|
+
}, {
|
|
3295
|
+
children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
|
|
3296
|
+
})), jsx(EuiButtonIcon, {
|
|
3297
|
+
"aria-label": "Logout",
|
|
3298
|
+
display: "empty",
|
|
3299
|
+
iconType: () => jsx(LogoutIcon, {
|
|
3300
|
+
color: theme.colors.emptyShade
|
|
3301
|
+
}),
|
|
3302
|
+
css: {
|
|
3303
|
+
width: 48,
|
|
3304
|
+
height: 48
|
|
3305
|
+
},
|
|
3306
|
+
color: "ghost",
|
|
3307
|
+
onClick: () => handleLogoutClick()
|
|
3308
|
+
})]
|
|
3309
|
+
})
|
|
3310
|
+
})]
|
|
3311
|
+
}));
|
|
3305
3312
|
};
|
|
3306
3313
|
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3314
|
+
const OrchestratorSidebar = ({
|
|
3315
|
+
routeTo
|
|
3316
|
+
}) => jsx(EuiSideNav, {
|
|
3317
|
+
mobileTitle: "Nav Items",
|
|
3318
|
+
isOpenOnMobile: false,
|
|
3319
|
+
items: [{
|
|
3320
|
+
renderItem: () => jsxs(Fragment, {
|
|
3321
|
+
children: [jsx(EuiButton, Object.assign({
|
|
3322
|
+
onClick: e => {
|
|
3323
|
+
e.preventDefault();
|
|
3324
|
+
routeTo('/new-process');
|
|
3325
|
+
},
|
|
3326
|
+
iconType: "plus",
|
|
3327
|
+
fullWidth: true
|
|
3328
|
+
}, {
|
|
3329
|
+
children: "New Process"
|
|
3330
|
+
})), jsx(EuiSpacer, {
|
|
3331
|
+
size: "m"
|
|
3332
|
+
})]
|
|
3333
|
+
}),
|
|
3334
|
+
name: 'Menu',
|
|
3335
|
+
id: 1,
|
|
3336
|
+
items: [{
|
|
3337
|
+
name: 'Start',
|
|
3338
|
+
id: 2,
|
|
3339
|
+
onClick: e => {
|
|
3340
|
+
e.preventDefault();
|
|
3341
|
+
routeTo('/');
|
|
3342
|
+
},
|
|
3343
|
+
href: '/'
|
|
3344
|
+
}, {
|
|
3345
|
+
name: 'Subscriptions',
|
|
3346
|
+
id: 3,
|
|
3347
|
+
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3348
|
+
onClick: e => {
|
|
3349
|
+
e.preventDefault();
|
|
3350
|
+
routeTo('/subscriptions');
|
|
3351
|
+
},
|
|
3352
|
+
href: '/subscriptions'
|
|
3353
|
+
}]
|
|
3354
|
+
}]
|
|
3355
|
+
});
|
|
3336
3356
|
|
|
3337
|
-
|
|
3338
|
-
|
|
3357
|
+
const OrchestratorPageTemplate = ({
|
|
3358
|
+
children,
|
|
3359
|
+
routeTo,
|
|
3360
|
+
getAppLogo
|
|
3361
|
+
}) => {
|
|
3362
|
+
const {
|
|
3363
|
+
theme,
|
|
3364
|
+
multiplyByBaseUnit
|
|
3365
|
+
} = useOrchestratorTheme();
|
|
3366
|
+
const [isSideMenuVisible, setIsSideMenuVisible] = useState(true);
|
|
3367
|
+
const navigationHeight = multiplyByBaseUnit(3);
|
|
3368
|
+
return jsxs(Fragment, {
|
|
3369
|
+
children: [jsx(OrchestratorPageHeader, {
|
|
3370
|
+
getAppLogo: getAppLogo,
|
|
3371
|
+
navigationHeight: navigationHeight,
|
|
3372
|
+
handleLogoutClick: () => setIsSideMenuVisible(!isSideMenuVisible)
|
|
3373
|
+
}), jsxs(EuiPageTemplate, Object.assign({
|
|
3374
|
+
panelled: false,
|
|
3375
|
+
grow: false,
|
|
3376
|
+
contentBorder: false,
|
|
3377
|
+
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
3378
|
+
restrictWidth: false
|
|
3379
|
+
}, {
|
|
3380
|
+
children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
|
|
3381
|
+
css: {
|
|
3382
|
+
backgroundColor: theme.colors.body
|
|
3383
|
+
}
|
|
3384
|
+
}, {
|
|
3385
|
+
children: jsx(OrchestratorSidebar, {
|
|
3386
|
+
routeTo: routeTo
|
|
3387
|
+
})
|
|
3388
|
+
})), jsx(EuiPageTemplate.Section, Object.assign({
|
|
3389
|
+
css: {
|
|
3390
|
+
backgroundColor: theme.colors.emptyShade
|
|
3391
|
+
}
|
|
3392
|
+
}, {
|
|
3393
|
+
children: children
|
|
3394
|
+
}))]
|
|
3395
|
+
}))]
|
|
3396
|
+
});
|
|
3339
3397
|
};
|
|
3340
3398
|
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3399
|
+
const FrequentlyUsed = ({
|
|
3400
|
+
values
|
|
3401
|
+
}) => {
|
|
3402
|
+
return jsx(EuiFlexGroup, Object.assign({
|
|
3403
|
+
wrap: true,
|
|
3404
|
+
gutterSize: "m"
|
|
3405
|
+
}, {
|
|
3406
|
+
children: values.map((value, index) => jsx(EuiFlexItem, Object.assign({
|
|
3407
|
+
grow: false
|
|
3408
|
+
}, {
|
|
3409
|
+
children: jsx(EuiButton, Object.assign({
|
|
3410
|
+
size: "xs",
|
|
3411
|
+
style: {
|
|
3412
|
+
minWidth: 0
|
|
3413
|
+
}
|
|
3414
|
+
}, {
|
|
3415
|
+
children: value
|
|
3416
|
+
}))
|
|
3417
|
+
}), index))
|
|
3418
|
+
}));
|
|
3419
|
+
};
|
|
3344
3420
|
|
|
3345
|
-
|
|
3346
|
-
|
|
3421
|
+
const ListItemStartPage = ({
|
|
3422
|
+
item,
|
|
3423
|
+
type
|
|
3424
|
+
}) => {
|
|
3425
|
+
const [hoverState, setHoverState] = useState(false);
|
|
3426
|
+
console.log(item);
|
|
3427
|
+
console.log(type);
|
|
3428
|
+
const renderItem = (item, type) => {
|
|
3429
|
+
if (type === 'subscription') {
|
|
3430
|
+
item = item;
|
|
3431
|
+
return jsxs(EuiFlexItem, {
|
|
3432
|
+
children: [jsx(EuiTextColor, Object.assign({
|
|
3433
|
+
color: hoverState ? '#397dc2' : 'black',
|
|
3434
|
+
style: {
|
|
3435
|
+
fontWeight: 500,
|
|
3436
|
+
transition: '0.2s'
|
|
3437
|
+
}
|
|
3438
|
+
}, {
|
|
3439
|
+
children: item.product.name
|
|
3440
|
+
})), jsx(EuiTextColor, Object.assign({
|
|
3441
|
+
style: {
|
|
3442
|
+
fontWeight: 400
|
|
3443
|
+
}
|
|
3444
|
+
}, {
|
|
3445
|
+
children: item.subscription_id.slice(0, 8)
|
|
3446
|
+
}))]
|
|
3447
|
+
});
|
|
3448
|
+
} else if (type === 'process') {
|
|
3449
|
+
item = item;
|
|
3450
|
+
const date = new Date(item.last_modified_at * 1000);
|
|
3451
|
+
const formattedDate = moment(date).format('DD-MM-YYYY, HH:mm');
|
|
3452
|
+
return jsxs(EuiFlexItem, {
|
|
3453
|
+
children: [jsx(EuiTextColor, Object.assign({
|
|
3454
|
+
color: hoverState ? '#397dc2' : 'black',
|
|
3455
|
+
style: {
|
|
3456
|
+
fontWeight: 500,
|
|
3457
|
+
transition: '0.2s'
|
|
3458
|
+
}
|
|
3459
|
+
}, {
|
|
3460
|
+
children: item.workflow
|
|
3461
|
+
})), jsxs(EuiTextColor, Object.assign({
|
|
3462
|
+
style: {
|
|
3463
|
+
fontWeight: 400
|
|
3464
|
+
}
|
|
3465
|
+
}, {
|
|
3466
|
+
children: [formattedDate, " for", ' ', jsx("span", Object.assign({
|
|
3467
|
+
style: {
|
|
3468
|
+
color: '#397dc2'
|
|
3469
|
+
}
|
|
3470
|
+
}, {
|
|
3471
|
+
children: "KLM"
|
|
3472
|
+
}))]
|
|
3473
|
+
}))]
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
};
|
|
3477
|
+
return jsx(Link, Object.assign({
|
|
3478
|
+
href: `/subscriptions/${'subscription_id' in item ? item.subscription_id : ''}`
|
|
3479
|
+
}, {
|
|
3480
|
+
children: jsxs(EuiFlexGroup, Object.assign({
|
|
3481
|
+
style: {
|
|
3482
|
+
cursor: 'pointer',
|
|
3483
|
+
paddingBlock: 10
|
|
3484
|
+
},
|
|
3485
|
+
onMouseOver: () => setHoverState(true),
|
|
3486
|
+
onMouseLeave: () => setHoverState(false)
|
|
3487
|
+
}, {
|
|
3488
|
+
children: [renderItem(item, type), jsx(EuiFlexItem, Object.assign({
|
|
3489
|
+
grow: false,
|
|
3490
|
+
style: {
|
|
3491
|
+
display: hoverState ? 'block' : 'none'
|
|
3492
|
+
}
|
|
3493
|
+
}, {
|
|
3494
|
+
children: jsx(EuiIcon, {
|
|
3495
|
+
type: "sortRight",
|
|
3496
|
+
color: "primary"
|
|
3497
|
+
})
|
|
3498
|
+
}))]
|
|
3499
|
+
}))
|
|
3500
|
+
}));
|
|
3501
|
+
};
|
|
3502
|
+
|
|
3503
|
+
function ListStartPage({
|
|
3504
|
+
list
|
|
3505
|
+
}) {
|
|
3506
|
+
return list && jsx(EuiFlexItem, Object.assign({
|
|
3507
|
+
style: {
|
|
3508
|
+
minWidth: 300
|
|
3509
|
+
}
|
|
3510
|
+
}, {
|
|
3511
|
+
children: jsxs(EuiPanel, Object.assign({
|
|
3512
|
+
hasShadow: false,
|
|
3513
|
+
hasBorder: true,
|
|
3514
|
+
paddingSize: "l"
|
|
3515
|
+
}, {
|
|
3516
|
+
children: [jsx("p", Object.assign({
|
|
3517
|
+
style: {
|
|
3518
|
+
fontWeight: 600
|
|
3519
|
+
}
|
|
3520
|
+
}, {
|
|
3521
|
+
children: list.title
|
|
3522
|
+
})), jsx(EuiSpacer, {
|
|
3523
|
+
size: "m"
|
|
3524
|
+
}), list.items.map((item, index) => jsxs(Fragment, {
|
|
3525
|
+
children: [jsx(ListItemStartPage, {
|
|
3526
|
+
item: item,
|
|
3527
|
+
type: list.type
|
|
3528
|
+
}), index === list.items.length - 1 ? null : jsx(EuiHorizontalRule, {
|
|
3529
|
+
margin: "none"
|
|
3530
|
+
})]
|
|
3531
|
+
})), jsx(EuiSpacer, {
|
|
3532
|
+
size: "m"
|
|
3533
|
+
}), jsx(EuiButton, Object.assign({
|
|
3534
|
+
fullWidth: true
|
|
3535
|
+
}, {
|
|
3536
|
+
children: list.buttonName
|
|
3537
|
+
}))]
|
|
3538
|
+
}))
|
|
3539
|
+
}));
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
const MultiListSection = () => {
|
|
3543
|
+
const favouriteSubscriptionsList = useFavouriteSubscriptions();
|
|
3544
|
+
const processesAttentionList = useProcessesAttention();
|
|
3545
|
+
const completedProcessesList = useRecentProcesses();
|
|
3546
|
+
return jsxs(EuiFlexGroup, Object.assign({
|
|
3547
|
+
wrap: true
|
|
3548
|
+
}, {
|
|
3549
|
+
children: [jsx(ListStartPage, {
|
|
3550
|
+
list: favouriteSubscriptionsList
|
|
3551
|
+
}), jsx(ListStartPage, {
|
|
3552
|
+
list: processesAttentionList
|
|
3553
|
+
}), jsx(ListStartPage, {
|
|
3554
|
+
list: completedProcessesList
|
|
3555
|
+
})]
|
|
3556
|
+
}));
|
|
3557
|
+
};
|
|
3558
|
+
|
|
3559
|
+
const NewProcessPanel = () => {
|
|
3560
|
+
const [value, setValue] = useState('');
|
|
3561
|
+
const onChange = e => {
|
|
3562
|
+
setValue(e.target.value);
|
|
3563
|
+
};
|
|
3564
|
+
const frequentlyUsedValues = ['IP Prefix', 'SN8 LightPath', 'NL8 MSC', 'NL8 Service Port 100G', 'SN8 AGGSP'];
|
|
3565
|
+
return jsxs(EuiPanel, Object.assign({
|
|
3566
|
+
hasShadow: false,
|
|
3567
|
+
color: "subdued",
|
|
3568
|
+
paddingSize: "l"
|
|
3569
|
+
}, {
|
|
3570
|
+
children: [jsx(EuiText, {
|
|
3571
|
+
children: jsx("b", {
|
|
3572
|
+
children: "Start a new process"
|
|
3573
|
+
})
|
|
3574
|
+
}), jsx(EuiSpacer, {
|
|
3575
|
+
size: "m"
|
|
3576
|
+
}), jsx(EuiFieldSearch, {
|
|
3577
|
+
fullWidth: true,
|
|
3578
|
+
placeholder: "Search and select process",
|
|
3579
|
+
value: value,
|
|
3580
|
+
onChange: e => onChange(e),
|
|
3581
|
+
"aria-label": "Search and select process"
|
|
3582
|
+
}), jsx(EuiSpacer, {
|
|
3583
|
+
size: "m"
|
|
3584
|
+
}), jsx(EuiTextColor, Object.assign({
|
|
3585
|
+
color: "subdued"
|
|
3586
|
+
}, {
|
|
3587
|
+
children: "Frequently used:"
|
|
3588
|
+
})), jsx(EuiSpacer, {
|
|
3589
|
+
size: "s"
|
|
3590
|
+
}), jsx(FrequentlyUsed, {
|
|
3591
|
+
values: frequentlyUsedValues
|
|
3592
|
+
})]
|
|
3593
|
+
}));
|
|
3594
|
+
};
|
|
3595
|
+
|
|
3596
|
+
const totalStats = [{
|
|
3597
|
+
icon: 'kubernetesPod',
|
|
3598
|
+
name: 'subscriptions',
|
|
3599
|
+
value: 24864,
|
|
3600
|
+
color: 'primary'
|
|
3601
|
+
}, {
|
|
3602
|
+
icon: 'error',
|
|
3603
|
+
name: 'processes failed',
|
|
3604
|
+
value: 462252,
|
|
3605
|
+
color: 'danger'
|
|
3606
|
+
}, {
|
|
3607
|
+
icon: 'checkInCircleFilled',
|
|
3608
|
+
name: 'processes completed',
|
|
3609
|
+
value: 1353632,
|
|
3610
|
+
color: 'success'
|
|
3611
|
+
}];
|
|
3612
|
+
const StatCards = () => {
|
|
3613
|
+
const [stats] = useState(totalStats);
|
|
3614
|
+
const {
|
|
3615
|
+
theme
|
|
3616
|
+
} = useOrchestratorTheme();
|
|
3617
|
+
return jsx(EuiFlexGroup, Object.assign({
|
|
3618
|
+
wrap: true
|
|
3619
|
+
}, {
|
|
3620
|
+
children: stats.map((stat, index) => jsx(EuiFlexItem, {
|
|
3621
|
+
children: jsx(EuiPanel, Object.assign({
|
|
3622
|
+
hasShadow: false,
|
|
3623
|
+
color: "subdued",
|
|
3624
|
+
paddingSize: "l"
|
|
3625
|
+
}, {
|
|
3626
|
+
children: jsxs(EuiFlexGroup, {
|
|
3627
|
+
children: [jsx(EuiFlexItem, Object.assign({
|
|
3628
|
+
grow: false
|
|
3629
|
+
}, {
|
|
3630
|
+
children: jsx(EuiAvatar, {
|
|
3631
|
+
iconSize: "l",
|
|
3632
|
+
size: "xl",
|
|
3633
|
+
type: "space",
|
|
3634
|
+
name: stat.name,
|
|
3635
|
+
style: {
|
|
3636
|
+
maxHeight: 55,
|
|
3637
|
+
maxWidth: 55
|
|
3638
|
+
},
|
|
3639
|
+
iconType: stat.icon,
|
|
3640
|
+
iconColor: theme.colors.ghost,
|
|
3641
|
+
color: theme.colors[stat.color]
|
|
3642
|
+
})
|
|
3643
|
+
})), jsxs(EuiFlexItem, {
|
|
3644
|
+
children: [jsx(EuiText, Object.assign({
|
|
3645
|
+
color: "subdued"
|
|
3646
|
+
}, {
|
|
3647
|
+
children: jsxs("h4", Object.assign({
|
|
3648
|
+
style: {
|
|
3649
|
+
fontWeight: 300
|
|
3650
|
+
}
|
|
3651
|
+
}, {
|
|
3652
|
+
children: ["Total ", stat.name]
|
|
3653
|
+
}))
|
|
3654
|
+
})), jsx(EuiText, {
|
|
3655
|
+
children: jsx("h2", Object.assign({
|
|
3656
|
+
style: {
|
|
3657
|
+
fontWeight: 500
|
|
3658
|
+
}
|
|
3659
|
+
}, {
|
|
3660
|
+
children: stat.value.toLocaleString('de-DE')
|
|
3661
|
+
}))
|
|
3662
|
+
})]
|
|
3663
|
+
})]
|
|
3664
|
+
})
|
|
3665
|
+
}))
|
|
3666
|
+
}, index))
|
|
3667
|
+
}));
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
var classof$1 = classof$4;
|
|
3671
|
+
|
|
3672
|
+
var $String = String;
|
|
3673
|
+
|
|
3674
|
+
var toString$4 = function (argument) {
|
|
3675
|
+
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
3676
|
+
return $String(argument);
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
var anObject$1 = anObject$c;
|
|
3680
|
+
|
|
3681
|
+
// `RegExp.prototype.flags` getter implementation
|
|
3682
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3683
|
+
var regexpFlags = function () {
|
|
3684
|
+
var that = anObject$1(this);
|
|
3685
|
+
var result = '';
|
|
3686
|
+
if (that.hasIndices) result += 'd';
|
|
3687
|
+
if (that.global) result += 'g';
|
|
3688
|
+
if (that.ignoreCase) result += 'i';
|
|
3689
|
+
if (that.multiline) result += 'm';
|
|
3690
|
+
if (that.dotAll) result += 's';
|
|
3691
|
+
if (that.unicode) result += 'u';
|
|
3692
|
+
if (that.unicodeSets) result += 'v';
|
|
3693
|
+
if (that.sticky) result += 'y';
|
|
3694
|
+
return result;
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
var call = functionCall;
|
|
3698
|
+
var hasOwn = hasOwnProperty_1;
|
|
3699
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3700
|
+
var regExpFlags = regexpFlags;
|
|
3701
|
+
|
|
3702
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
3703
|
+
|
|
3704
|
+
var regexpGetFlags = function (R) {
|
|
3705
|
+
var flags = R.flags;
|
|
3706
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3707
|
+
? call(regExpFlags, R) : flags;
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3711
|
+
var defineBuiltIn = defineBuiltIn$6;
|
|
3712
|
+
var anObject = anObject$c;
|
|
3713
|
+
var $toString = toString$4;
|
|
3714
|
+
var fails$4 = fails$i;
|
|
3715
|
+
var getRegExpFlags = regexpGetFlags;
|
|
3716
|
+
|
|
3717
|
+
var TO_STRING = 'toString';
|
|
3718
|
+
var RegExpPrototype = RegExp.prototype;
|
|
3719
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3720
|
+
|
|
3721
|
+
var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3722
|
+
// FF44- RegExp#toString has a wrong name
|
|
3723
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
|
|
3724
|
+
|
|
3725
|
+
// `RegExp.prototype.toString` method
|
|
3726
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3727
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3728
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
3729
|
+
var R = anObject(this);
|
|
3730
|
+
var pattern = $toString(R.source);
|
|
3731
|
+
var flags = $toString(getRegExpFlags(R));
|
|
3732
|
+
return '/' + pattern + '/' + flags;
|
|
3733
|
+
}, { unsafe: true });
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
var tryToString = tryToString$5;
|
|
3737
|
+
|
|
3738
|
+
var $TypeError$1 = TypeError;
|
|
3739
|
+
|
|
3740
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
3741
|
+
if (!delete O[P]) throw $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
var toPropertyKey = toPropertyKey$3;
|
|
3745
|
+
var definePropertyModule = objectDefineProperty;
|
|
3746
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3747
|
+
|
|
3748
|
+
var createProperty$1 = function (object, key, value) {
|
|
3749
|
+
var propertyKey = toPropertyKey(key);
|
|
3347
3750
|
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
3348
3751
|
else object[propertyKey] = value;
|
|
3349
3752
|
};
|
|
@@ -3409,908 +3812,591 @@ var merge = function (array, left, right, comparefn) {
|
|
|
3409
3812
|
};
|
|
3410
3813
|
|
|
3411
3814
|
var arraySort = mergeSort;
|
|
3412
|
-
|
|
3413
|
-
var fails$
|
|
3414
|
-
|
|
3415
|
-
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
3416
|
-
var method = [][METHOD_NAME];
|
|
3417
|
-
return !!method && fails$
|
|
3418
|
-
// eslint-disable-next-line no-useless-call -- required for testing
|
|
3419
|
-
method.call(null, argument || function () { return 1; }, 1);
|
|
3420
|
-
});
|
|
3421
|
-
};
|
|
3422
|
-
|
|
3423
|
-
var userAgent$1 = engineUserAgent;
|
|
3424
|
-
|
|
3425
|
-
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
|
3426
|
-
|
|
3427
|
-
var engineFfVersion = !!firefox && +firefox[1];
|
|
3428
|
-
|
|
3429
|
-
var UA = engineUserAgent;
|
|
3430
|
-
|
|
3431
|
-
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
3432
|
-
|
|
3433
|
-
var userAgent = engineUserAgent;
|
|
3434
|
-
|
|
3435
|
-
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
3436
|
-
|
|
3437
|
-
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3438
|
-
|
|
3439
|
-
var $$2 = _export;
|
|
3440
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
3441
|
-
var aCallable = aCallable$9;
|
|
3442
|
-
var toObject = toObject$4;
|
|
3443
|
-
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
3444
|
-
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
3445
|
-
var toString$1 = toString$2;
|
|
3446
|
-
var fails$1 = fails$h;
|
|
3447
|
-
var internalSort = arraySort;
|
|
3448
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
3449
|
-
var FF = engineFfVersion;
|
|
3450
|
-
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
3451
|
-
var V8 = engineV8Version;
|
|
3452
|
-
var WEBKIT = engineWebkitVersion;
|
|
3453
|
-
|
|
3454
|
-
var test = [];
|
|
3455
|
-
var nativeSort = uncurryThis$1(test.sort);
|
|
3456
|
-
var push = uncurryThis$1(test.push);
|
|
3457
|
-
|
|
3458
|
-
// IE8-
|
|
3459
|
-
var FAILS_ON_UNDEFINED = fails$1(function () {
|
|
3460
|
-
test.sort(undefined);
|
|
3461
|
-
});
|
|
3462
|
-
// V8 bug
|
|
3463
|
-
var FAILS_ON_NULL = fails$1(function () {
|
|
3464
|
-
test.sort(null);
|
|
3465
|
-
});
|
|
3466
|
-
// Old WebKit
|
|
3467
|
-
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
3468
|
-
|
|
3469
|
-
var STABLE_SORT = !fails$1(function () {
|
|
3470
|
-
// feature detection can be too slow, so check engines versions
|
|
3471
|
-
if (V8) return V8 < 70;
|
|
3472
|
-
if (FF && FF > 3) return;
|
|
3473
|
-
if (IE_OR_EDGE) return true;
|
|
3474
|
-
if (WEBKIT) return WEBKIT < 603;
|
|
3475
|
-
|
|
3476
|
-
var result = '';
|
|
3477
|
-
var code, chr, value, index;
|
|
3478
|
-
|
|
3479
|
-
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
3480
|
-
for (code = 65; code < 76; code++) {
|
|
3481
|
-
chr = String.fromCharCode(code);
|
|
3482
|
-
|
|
3483
|
-
switch (code) {
|
|
3484
|
-
case 66: case 69: case 70: case 72: value = 3; break;
|
|
3485
|
-
case 68: case 71: value = 4; break;
|
|
3486
|
-
default: value = 2;
|
|
3487
|
-
}
|
|
3488
|
-
|
|
3489
|
-
for (index = 0; index < 47; index++) {
|
|
3490
|
-
test.push({ k: chr + index, v: value });
|
|
3491
|
-
}
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
test.sort(function (a, b) { return b.v - a.v; });
|
|
3495
|
-
|
|
3496
|
-
for (index = 0; index < test.length; index++) {
|
|
3497
|
-
chr = test[index].k.charAt(0);
|
|
3498
|
-
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
return result !== 'DGBEFHACIJK';
|
|
3502
|
-
});
|
|
3503
|
-
|
|
3504
|
-
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
3505
|
-
|
|
3506
|
-
var getSortCompare = function (comparefn) {
|
|
3507
|
-
return function (x, y) {
|
|
3508
|
-
if (y === undefined) return -1;
|
|
3509
|
-
if (x === undefined) return 1;
|
|
3510
|
-
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
3511
|
-
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
3512
|
-
};
|
|
3513
|
-
};
|
|
3514
|
-
|
|
3515
|
-
// `Array.prototype.sort` method
|
|
3516
|
-
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3517
|
-
$$2({ target: 'Array', proto: true, forced: FORCED }, {
|
|
3518
|
-
sort: function sort(comparefn) {
|
|
3519
|
-
if (comparefn !== undefined) aCallable(comparefn);
|
|
3520
|
-
|
|
3521
|
-
var array = toObject(this);
|
|
3522
|
-
|
|
3523
|
-
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
3524
|
-
|
|
3525
|
-
var items = [];
|
|
3526
|
-
var arrayLength = lengthOfArrayLike(array);
|
|
3527
|
-
var itemsLength, index;
|
|
3528
|
-
|
|
3529
|
-
for (index = 0; index < arrayLength; index++) {
|
|
3530
|
-
if (index in array) push(items, array[index]);
|
|
3531
|
-
}
|
|
3532
|
-
|
|
3533
|
-
internalSort(items, getSortCompare(comparefn));
|
|
3534
|
-
|
|
3535
|
-
itemsLength = lengthOfArrayLike(items);
|
|
3536
|
-
index = 0;
|
|
3537
|
-
|
|
3538
|
-
while (index < itemsLength) array[index] = items[index++];
|
|
3539
|
-
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
3540
|
-
|
|
3541
|
-
return array;
|
|
3542
|
-
}
|
|
3543
|
-
});
|
|
3544
|
-
|
|
3545
|
-
var SortDirection;
|
|
3546
|
-
(function (SortDirection) {
|
|
3547
|
-
SortDirection["Asc"] = "ASC";
|
|
3548
|
-
SortDirection["Desc"] = "DESC";
|
|
3549
|
-
})(SortDirection || (SortDirection = {}));
|
|
3550
|
-
function getInitialColumnOrder(columns, initialColumnOrder) {
|
|
3551
|
-
const euiDataGridColumns = Object.keys(columns).map(colKey => {
|
|
3552
|
-
const column = columns[colKey];
|
|
3553
|
-
return Object.assign({
|
|
3554
|
-
id: colKey,
|
|
3555
|
-
isExpandable: false
|
|
3556
|
-
}, column);
|
|
3557
|
-
});
|
|
3558
|
-
const columnOrderIds = initialColumnOrder.map(columnId => columnId.toString());
|
|
3559
|
-
return euiDataGridColumns.slice().sort((left, right) => columnOrderIds.indexOf(left.id) - columnOrderIds.indexOf(right.id));
|
|
3560
|
-
}
|
|
3561
|
-
function columnSortToEuiDataGridSorting(columnSort, updateColumnSort) {
|
|
3562
|
-
return {
|
|
3563
|
-
columns: columnSort ? [{
|
|
3564
|
-
id: columnSort.columnId.toString(),
|
|
3565
|
-
direction: columnSort.sortDirection === SortDirection.Asc ? 'asc' : 'desc'
|
|
3566
|
-
}] : [],
|
|
3567
|
-
onSort: columns => {
|
|
3568
|
-
const lastSortData = columns.slice(-1)[0];
|
|
3569
|
-
if (updateColumnSort && lastSortData) {
|
|
3570
|
-
updateColumnSort({
|
|
3571
|
-
columnId: lastSortData.id,
|
|
3572
|
-
sortDirection: lastSortData.direction === 'asc' ? SortDirection.Asc : SortDirection.Desc
|
|
3573
|
-
});
|
|
3574
|
-
}
|
|
3575
|
-
}
|
|
3576
|
-
};
|
|
3577
|
-
}
|
|
3578
|
-
|
|
3579
|
-
// Total height of grid button bar, table header and pagination bar
|
|
3580
|
-
const EUI_DATA_GRID_HEIGHT_OFFSET = 103;
|
|
3581
|
-
const GRID_STYLE = {
|
|
3582
|
-
border: 'horizontal',
|
|
3583
|
-
stripes: false,
|
|
3584
|
-
rowHover: 'highlight',
|
|
3585
|
-
header: 'shade',
|
|
3586
|
-
cellPadding: 'l',
|
|
3587
|
-
fontSize: 'm',
|
|
3588
|
-
footer: 'overline'
|
|
3589
|
-
};
|
|
3590
|
-
const Table = ({
|
|
3591
|
-
data,
|
|
3592
|
-
pagination,
|
|
3593
|
-
columns,
|
|
3594
|
-
leadingControlColumns,
|
|
3595
|
-
trailingControlColumns,
|
|
3596
|
-
initialColumnOrder,
|
|
3597
|
-
dataSorting,
|
|
3598
|
-
handleRowClick,
|
|
3599
|
-
updateDataSorting
|
|
3600
|
-
}) => {
|
|
3601
|
-
const initialColumnOrderRef = useRef(getInitialColumnOrder(columns, initialColumnOrder));
|
|
3602
|
-
const defaultVisibleColumns = initialColumnOrder.filter(columnId => !columns[columnId].isHiddenByDefault).map(columnId => columnId.toString());
|
|
3603
|
-
const [visibleColumns, setVisibleColumns] = useState(defaultVisibleColumns);
|
|
3604
|
-
const renderCellValue = ({
|
|
3605
|
-
rowIndex,
|
|
3606
|
-
columnId,
|
|
3607
|
-
setCellProps
|
|
3608
|
-
}) => {
|
|
3609
|
-
const {
|
|
3610
|
-
pageSize,
|
|
3611
|
-
pageIndex
|
|
3612
|
-
} = pagination;
|
|
3613
|
-
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
3614
|
-
const dataRow = data[rowIndexOnPage];
|
|
3615
|
-
if (!dataRow) {
|
|
3616
|
-
return;
|
|
3617
|
-
}
|
|
3618
|
-
const column = columns[columnId];
|
|
3619
|
-
const cellValue = dataRow[columnId];
|
|
3620
|
-
handleRowClick && setCellProps({
|
|
3621
|
-
css: {
|
|
3622
|
-
cursor: 'pointer'
|
|
3623
|
-
},
|
|
3624
|
-
onClick: () => handleRowClick(dataRow)
|
|
3625
|
-
});
|
|
3626
|
-
return column.renderCell ? column.renderCell(cellValue, dataRow) : `${cellValue}`;
|
|
3627
|
-
};
|
|
3628
|
-
const controlColumnToEuiDataGridControlColumnMapper = ({
|
|
3629
|
-
id,
|
|
3630
|
-
width,
|
|
3631
|
-
rowCellRender
|
|
3632
|
-
}) => ({
|
|
3633
|
-
id,
|
|
3634
|
-
width,
|
|
3635
|
-
headerCellRender: props => null,
|
|
3636
|
-
rowCellRender: ({
|
|
3637
|
-
rowIndex
|
|
3638
|
-
}) => {
|
|
3639
|
-
const {
|
|
3640
|
-
pageSize,
|
|
3641
|
-
pageIndex
|
|
3642
|
-
} = pagination;
|
|
3643
|
-
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
3644
|
-
const dataRow = data[rowIndexOnPage];
|
|
3645
|
-
return rowCellRender(dataRow);
|
|
3646
|
-
}
|
|
3647
|
-
});
|
|
3648
|
-
const euiDataGridLeadingControlColumns = leadingControlColumns === null || leadingControlColumns === void 0 ? void 0 : leadingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
3649
|
-
const euiDataGridTrailingControlColumns = trailingControlColumns === null || trailingControlColumns === void 0 ? void 0 : trailingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
3650
|
-
const gridHeightValue = pagination.pageSize * 40 + EUI_DATA_GRID_HEIGHT_OFFSET;
|
|
3651
|
-
return jsx(EuiDataGrid, {
|
|
3652
|
-
"aria-label": "Data Grid",
|
|
3653
|
-
columns: initialColumnOrderRef.current,
|
|
3654
|
-
leadingControlColumns: euiDataGridLeadingControlColumns,
|
|
3655
|
-
trailingControlColumns: euiDataGridTrailingControlColumns,
|
|
3656
|
-
height: `${gridHeightValue}px`,
|
|
3657
|
-
gridStyle: GRID_STYLE,
|
|
3658
|
-
columnVisibility: {
|
|
3659
|
-
visibleColumns,
|
|
3660
|
-
setVisibleColumns
|
|
3661
|
-
},
|
|
3662
|
-
pagination: pagination,
|
|
3663
|
-
sorting: columnSortToEuiDataGridSorting(dataSorting, updateDataSorting),
|
|
3664
|
-
rowCount: pagination.totalRecords,
|
|
3665
|
-
renderCellValue: renderCellValue
|
|
3666
|
-
});
|
|
3667
|
-
};
|
|
3668
|
-
|
|
3669
|
-
const useQueryWithGraphql = (query, queryVars) => {
|
|
3670
|
-
const {
|
|
3671
|
-
graphqlEndpoint
|
|
3672
|
-
} = useContext(OrchestratorConfigContext);
|
|
3673
|
-
const graphQLClient = new GraphQLClient(graphqlEndpoint);
|
|
3674
|
-
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3675
|
-
// TS-Ignore because queryVars does not seem to be accepted by the client
|
|
3676
|
-
// The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
|
|
3677
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3678
|
-
// @ts-ignore
|
|
3679
|
-
return yield graphQLClient.request(query, queryVars);
|
|
3815
|
+
|
|
3816
|
+
var fails$3 = fails$i;
|
|
3817
|
+
|
|
3818
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
3819
|
+
var method = [][METHOD_NAME];
|
|
3820
|
+
return !!method && fails$3(function () {
|
|
3821
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
3822
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
3680
3823
|
});
|
|
3681
|
-
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
3682
3824
|
};
|
|
3683
3825
|
|
|
3684
|
-
|
|
3685
|
-
subscriptionStatus
|
|
3686
|
-
}) => {
|
|
3687
|
-
const {
|
|
3688
|
-
theme,
|
|
3689
|
-
toSecondaryColor
|
|
3690
|
-
} = useOrchestratorTheme();
|
|
3691
|
-
const getBadgeColorFromSubscriptionStatus = status => {
|
|
3692
|
-
const {
|
|
3693
|
-
primary,
|
|
3694
|
-
darkestShade,
|
|
3695
|
-
lightShade,
|
|
3696
|
-
primaryText,
|
|
3697
|
-
success,
|
|
3698
|
-
successText
|
|
3699
|
-
} = theme.colors;
|
|
3700
|
-
switch (status) {
|
|
3701
|
-
case 'active':
|
|
3702
|
-
return {
|
|
3703
|
-
badgeColor: toSecondaryColor(success),
|
|
3704
|
-
textColor: successText
|
|
3705
|
-
};
|
|
3706
|
-
case 'terminated':
|
|
3707
|
-
return {
|
|
3708
|
-
badgeColor: lightShade,
|
|
3709
|
-
textColor: darkestShade
|
|
3710
|
-
};
|
|
3711
|
-
default:
|
|
3712
|
-
return {
|
|
3713
|
-
badgeColor: toSecondaryColor(primary),
|
|
3714
|
-
textColor: primaryText
|
|
3715
|
-
};
|
|
3716
|
-
}
|
|
3717
|
-
};
|
|
3718
|
-
const {
|
|
3719
|
-
badgeColor,
|
|
3720
|
-
textColor
|
|
3721
|
-
} = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
|
|
3722
|
-
return jsx(Badge, Object.assign({
|
|
3723
|
-
textColor: textColor,
|
|
3724
|
-
color: badgeColor
|
|
3725
|
-
}, {
|
|
3726
|
-
children: subscriptionStatus
|
|
3727
|
-
}));
|
|
3728
|
-
};
|
|
3826
|
+
var userAgent$1 = engineUserAgent;
|
|
3729
3827
|
|
|
3730
|
-
|
|
3731
|
-
width: _width = 24,
|
|
3732
|
-
height: _height = 24,
|
|
3733
|
-
color: _color = '#000000'
|
|
3734
|
-
}) => jsxs("svg", Object.assign({
|
|
3735
|
-
width: _width,
|
|
3736
|
-
height: _height,
|
|
3737
|
-
viewBox: "0 0 24 24",
|
|
3738
|
-
version: "1.1",
|
|
3739
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3740
|
-
}, {
|
|
3741
|
-
children: [jsx("title", {
|
|
3742
|
-
children: "icon/checkmark-circle-fill"
|
|
3743
|
-
}), jsx("g", Object.assign({
|
|
3744
|
-
id: "Symbols",
|
|
3745
|
-
stroke: "none",
|
|
3746
|
-
strokeWidth: "1",
|
|
3747
|
-
fill: "none",
|
|
3748
|
-
fillRule: "evenodd"
|
|
3749
|
-
}, {
|
|
3750
|
-
children: jsx("g", Object.assign({
|
|
3751
|
-
id: "icon/checkmark-circle-fill",
|
|
3752
|
-
fill: _color
|
|
3753
|
-
}, {
|
|
3754
|
-
children: jsx("path", {
|
|
3755
|
-
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M15.7071,10.70711 C16.0976,10.31658 16.0976,9.68342 15.7071,9.29289 C15.3166,8.90237 14.6834,8.90237 14.2929,9.29289 L11,12.5858 L9.70711,11.29289 C9.31658,10.90237 8.68342,10.90237 8.29289,11.29289 C7.90237,11.68342 7.90237,12.3166 8.29289,12.7071 L10.29289,14.7071 C10.68342,15.0976 11.31658,15.0976 11.70711,14.7071 L15.7071,10.70711 Z",
|
|
3756
|
-
id: "Shape"
|
|
3757
|
-
})
|
|
3758
|
-
}))
|
|
3759
|
-
}))]
|
|
3760
|
-
}));
|
|
3828
|
+
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
|
3761
3829
|
|
|
3762
|
-
|
|
3763
|
-
width: _width = 24,
|
|
3764
|
-
height: _height = 24,
|
|
3765
|
-
color: _color = '#000000'
|
|
3766
|
-
}) => jsxs("svg", Object.assign({
|
|
3767
|
-
width: _width,
|
|
3768
|
-
height: _height,
|
|
3769
|
-
viewBox: "0 0 24 24",
|
|
3770
|
-
version: "1.1",
|
|
3771
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3772
|
-
}, {
|
|
3773
|
-
children: [jsx("title", {
|
|
3774
|
-
children: "icon/minus-circle-outline"
|
|
3775
|
-
}), jsx("g", Object.assign({
|
|
3776
|
-
id: "Symbols",
|
|
3777
|
-
stroke: "none",
|
|
3778
|
-
strokeWidth: "1",
|
|
3779
|
-
fill: "none",
|
|
3780
|
-
fillRule: "evenodd"
|
|
3781
|
-
}, {
|
|
3782
|
-
children: jsx("g", Object.assign({
|
|
3783
|
-
id: "icon/minus-circle-outline",
|
|
3784
|
-
fill: _color,
|
|
3785
|
-
fillRule: "nonzero"
|
|
3786
|
-
}, {
|
|
3787
|
-
children: jsx("path", {
|
|
3788
|
-
d: "M12,4 C16.4183,4 20,7.58172 20,12 C20,16.4183 16.4183,20 12,20 C7.58172,20 4,16.4183 4,12 C4,7.58172 7.58172,4 12,4 Z M12,6 C8.6862895,6 6,8.6862895 6,12 C6,15.3137228 8.68628182,18 12,18 C15.3137305,18 18,15.3137305 18,12 C18,8.68628182 15.3137228,6 12,6 Z M15,11 C15.5523,11 16,11.44772 16,12 C16,12.5523 15.5523,13 15,13 L9,13 C8.44772,13 8,12.5523 8,12 C8,11.44772 8.44772,11 9,11 Z",
|
|
3789
|
-
id: "Combined-Shape"
|
|
3790
|
-
})
|
|
3791
|
-
}))
|
|
3792
|
-
}))]
|
|
3793
|
-
}));
|
|
3830
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
3794
3831
|
|
|
3795
|
-
|
|
3796
|
-
width: _width = 24,
|
|
3797
|
-
height: _height = 24,
|
|
3798
|
-
color: _color = '#000000'
|
|
3799
|
-
}) => jsxs("svg", Object.assign({
|
|
3800
|
-
width: _width,
|
|
3801
|
-
height: _height,
|
|
3802
|
-
viewBox: "0 0 24 24",
|
|
3803
|
-
version: "1.1",
|
|
3804
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3805
|
-
}, {
|
|
3806
|
-
children: [jsx("title", {
|
|
3807
|
-
children: "icon/plus-circle-fill"
|
|
3808
|
-
}), jsx("g", Object.assign({
|
|
3809
|
-
id: "Symbols",
|
|
3810
|
-
stroke: "none",
|
|
3811
|
-
strokeWidth: "1",
|
|
3812
|
-
fill: "none",
|
|
3813
|
-
fillRule: "evenodd"
|
|
3814
|
-
}, {
|
|
3815
|
-
children: jsx("g", Object.assign({
|
|
3816
|
-
id: "icon/plus-circle-fill",
|
|
3817
|
-
fill: _color
|
|
3818
|
-
}, {
|
|
3819
|
-
children: jsx("path", {
|
|
3820
|
-
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M13,9 C13,8.44772 12.5523,8 12,8 C11.44772,8 11,8.44772 11,9 L11,11 L9,11 C8.44772,11 8,11.44771 8,12 C8,12.5523 8.44772,13 9,13 L11,13 L11,15 C11,15.5523 11.44772,16 12,16 C12.5523,16 13,15.5523 13,15 L13,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.44772 15.5523,11 15,11 L13,11 L13,9 Z",
|
|
3821
|
-
id: "Shape"
|
|
3822
|
-
})
|
|
3823
|
-
}))
|
|
3824
|
-
}))]
|
|
3825
|
-
}));
|
|
3832
|
+
var UA = engineUserAgent;
|
|
3826
3833
|
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3834
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
3835
|
+
|
|
3836
|
+
var userAgent = engineUserAgent;
|
|
3837
|
+
|
|
3838
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
3839
|
+
|
|
3840
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3841
|
+
|
|
3842
|
+
var $$3 = _export;
|
|
3843
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
3844
|
+
var aCallable = aCallable$9;
|
|
3845
|
+
var toObject = toObject$4;
|
|
3846
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
3847
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
3848
|
+
var toString$3 = toString$4;
|
|
3849
|
+
var fails$2 = fails$i;
|
|
3850
|
+
var internalSort = arraySort;
|
|
3851
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
3852
|
+
var FF = engineFfVersion;
|
|
3853
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
3854
|
+
var V8 = engineV8Version;
|
|
3855
|
+
var WEBKIT = engineWebkitVersion;
|
|
3856
|
+
|
|
3857
|
+
var test = [];
|
|
3858
|
+
var nativeSort = uncurryThis$3(test.sort);
|
|
3859
|
+
var push = uncurryThis$3(test.push);
|
|
3860
|
+
|
|
3861
|
+
// IE8-
|
|
3862
|
+
var FAILS_ON_UNDEFINED = fails$2(function () {
|
|
3863
|
+
test.sort(undefined);
|
|
3864
|
+
});
|
|
3865
|
+
// V8 bug
|
|
3866
|
+
var FAILS_ON_NULL = fails$2(function () {
|
|
3867
|
+
test.sort(null);
|
|
3868
|
+
});
|
|
3869
|
+
// Old WebKit
|
|
3870
|
+
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
3871
|
+
|
|
3872
|
+
var STABLE_SORT = !fails$2(function () {
|
|
3873
|
+
// feature detection can be too slow, so check engines versions
|
|
3874
|
+
if (V8) return V8 < 70;
|
|
3875
|
+
if (FF && FF > 3) return;
|
|
3876
|
+
if (IE_OR_EDGE) return true;
|
|
3877
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
3878
|
+
|
|
3879
|
+
var result = '';
|
|
3880
|
+
var code, chr, value, index;
|
|
3881
|
+
|
|
3882
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
3883
|
+
for (code = 65; code < 76; code++) {
|
|
3884
|
+
chr = String.fromCharCode(code);
|
|
3885
|
+
|
|
3886
|
+
switch (code) {
|
|
3887
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
|
3888
|
+
case 68: case 71: value = 4; break;
|
|
3889
|
+
default: value = 2;
|
|
3857
3890
|
}
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
regular: 400,
|
|
3862
|
-
medium: 500,
|
|
3863
|
-
semiBold: 600,
|
|
3864
|
-
bold: 700
|
|
3891
|
+
|
|
3892
|
+
for (index = 0; index < 47; index++) {
|
|
3893
|
+
test.push({ k: chr + index, v: value });
|
|
3865
3894
|
}
|
|
3866
3895
|
}
|
|
3867
|
-
};
|
|
3868
|
-
|
|
3869
|
-
var $$1 = _export;
|
|
3870
|
-
var $includes = arrayIncludes.includes;
|
|
3871
|
-
var fails = fails$h;
|
|
3872
|
-
var addToUnscopables = addToUnscopables$2;
|
|
3873
3896
|
|
|
3874
|
-
|
|
3875
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
|
3876
|
-
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
3877
|
-
return !Array(1).includes();
|
|
3878
|
-
});
|
|
3897
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
3879
3898
|
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3884
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3899
|
+
for (index = 0; index < test.length; index++) {
|
|
3900
|
+
chr = test[index].k.charAt(0);
|
|
3901
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
3885
3902
|
}
|
|
3886
|
-
});
|
|
3887
|
-
|
|
3888
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3889
|
-
addToUnscopables('includes');
|
|
3890
3903
|
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3904
|
+
return result !== 'DGBEFHACIJK';
|
|
3905
|
+
});
|
|
3894
3906
|
|
|
3895
|
-
var
|
|
3907
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
3896
3908
|
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3909
|
+
var getSortCompare = function (comparefn) {
|
|
3910
|
+
return function (x, y) {
|
|
3911
|
+
if (y === undefined) return -1;
|
|
3912
|
+
if (x === undefined) return 1;
|
|
3913
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
3914
|
+
return toString$3(x) > toString$3(y) ? 1 : -1;
|
|
3915
|
+
};
|
|
3902
3916
|
};
|
|
3903
3917
|
|
|
3904
|
-
|
|
3918
|
+
// `Array.prototype.sort` method
|
|
3919
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3920
|
+
$$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
3921
|
+
sort: function sort(comparefn) {
|
|
3922
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
|
3905
3923
|
|
|
3906
|
-
var
|
|
3924
|
+
var array = toObject(this);
|
|
3907
3925
|
|
|
3908
|
-
|
|
3909
|
-
if (isRegExp(it)) {
|
|
3910
|
-
throw $TypeError("The method doesn't accept regular expressions");
|
|
3911
|
-
} return it;
|
|
3912
|
-
};
|
|
3926
|
+
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
3913
3927
|
|
|
3914
|
-
var
|
|
3928
|
+
var items = [];
|
|
3929
|
+
var arrayLength = lengthOfArrayLike(array);
|
|
3930
|
+
var itemsLength, index;
|
|
3915
3931
|
|
|
3916
|
-
|
|
3932
|
+
for (index = 0; index < arrayLength; index++) {
|
|
3933
|
+
if (index in array) push(items, array[index]);
|
|
3934
|
+
}
|
|
3917
3935
|
|
|
3918
|
-
|
|
3919
|
-
var regexp = /./;
|
|
3920
|
-
try {
|
|
3921
|
-
'/./'[METHOD_NAME](regexp);
|
|
3922
|
-
} catch (error1) {
|
|
3923
|
-
try {
|
|
3924
|
-
regexp[MATCH] = false;
|
|
3925
|
-
return '/./'[METHOD_NAME](regexp);
|
|
3926
|
-
} catch (error2) { /* empty */ }
|
|
3927
|
-
} return false;
|
|
3928
|
-
};
|
|
3936
|
+
internalSort(items, getSortCompare(comparefn));
|
|
3929
3937
|
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
var notARegExp = notARegexp;
|
|
3933
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
3934
|
-
var toString = toString$2;
|
|
3935
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
3938
|
+
itemsLength = lengthOfArrayLike(items);
|
|
3939
|
+
index = 0;
|
|
3936
3940
|
|
|
3937
|
-
|
|
3941
|
+
while (index < itemsLength) array[index] = items[index++];
|
|
3942
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
3938
3943
|
|
|
3939
|
-
|
|
3940
|
-
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3941
|
-
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
3942
|
-
includes: function includes(searchString /* , position = 0 */) {
|
|
3943
|
-
return !!~stringIndexOf(
|
|
3944
|
-
toString(requireObjectCoercible(this)),
|
|
3945
|
-
toString(notARegExp(searchString)),
|
|
3946
|
-
arguments.length > 1 ? arguments[1] : undefined
|
|
3947
|
-
);
|
|
3944
|
+
return array;
|
|
3948
3945
|
}
|
|
3949
3946
|
});
|
|
3950
3947
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3948
|
+
var SortDirection;
|
|
3949
|
+
(function (SortDirection) {
|
|
3950
|
+
SortDirection["Asc"] = "ASC";
|
|
3951
|
+
SortDirection["Desc"] = "DESC";
|
|
3952
|
+
})(SortDirection || (SortDirection = {}));
|
|
3953
|
+
function getInitialColumnOrder(columns, initialColumnOrder) {
|
|
3954
|
+
const euiDataGridColumns = Object.keys(columns).map(colKey => {
|
|
3955
|
+
const column = columns[colKey];
|
|
3956
|
+
return Object.assign({
|
|
3957
|
+
id: colKey,
|
|
3958
|
+
isExpandable: false
|
|
3959
|
+
}, column);
|
|
3960
|
+
});
|
|
3961
|
+
const columnOrderIds = initialColumnOrder.map(columnId => columnId.toString());
|
|
3962
|
+
return euiDataGridColumns.slice().sort((left, right) => columnOrderIds.indexOf(left.id) - columnOrderIds.indexOf(right.id));
|
|
3956
3963
|
}
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3964
|
+
function columnSortToEuiDataGridSorting(columnSort, updateColumnSort) {
|
|
3965
|
+
return {
|
|
3966
|
+
columns: columnSort ? [{
|
|
3967
|
+
id: columnSort.columnId.toString(),
|
|
3968
|
+
direction: columnSort.sortDirection === SortDirection.Asc ? 'asc' : 'desc'
|
|
3969
|
+
}] : [],
|
|
3970
|
+
onSort: columns => {
|
|
3971
|
+
const lastSortData = columns.slice(-1)[0];
|
|
3972
|
+
if (updateColumnSort && lastSortData) {
|
|
3973
|
+
updateColumnSort({
|
|
3974
|
+
columnId: lastSortData.id,
|
|
3975
|
+
sortDirection: lastSortData.direction === 'asc' ? SortDirection.Asc : SortDirection.Desc
|
|
3976
|
+
});
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3965
3979
|
};
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3980
|
+
}
|
|
3981
|
+
const getSortDirectionFromString = sortOrder => {
|
|
3982
|
+
if (!sortOrder) {
|
|
3983
|
+
return undefined;
|
|
3984
|
+
}
|
|
3985
|
+
switch (sortOrder.toUpperCase()) {
|
|
3986
|
+
case SortDirection.Asc.toString():
|
|
3987
|
+
return SortDirection.Asc;
|
|
3988
|
+
case SortDirection.Desc.toString():
|
|
3989
|
+
return SortDirection.Desc;
|
|
3990
|
+
default:
|
|
3991
|
+
return undefined;
|
|
3992
|
+
}
|
|
3971
3993
|
};
|
|
3972
3994
|
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3995
|
+
// Total height of grid button bar, table header and pagination bar
|
|
3996
|
+
const EUI_DATA_GRID_HEIGHT_OFFSET = 103;
|
|
3997
|
+
const GRID_STYLE = {
|
|
3998
|
+
border: 'horizontal',
|
|
3999
|
+
stripes: false,
|
|
4000
|
+
rowHover: 'highlight',
|
|
4001
|
+
header: 'shade',
|
|
4002
|
+
cellPadding: 'l',
|
|
4003
|
+
fontSize: 'm',
|
|
4004
|
+
footer: 'overline'
|
|
4005
|
+
};
|
|
4006
|
+
const Table = ({
|
|
4007
|
+
data,
|
|
4008
|
+
pagination,
|
|
4009
|
+
columns,
|
|
4010
|
+
leadingControlColumns,
|
|
4011
|
+
trailingControlColumns,
|
|
4012
|
+
initialColumnOrder,
|
|
4013
|
+
dataSorting,
|
|
4014
|
+
handleRowClick,
|
|
4015
|
+
updateDataSorting
|
|
3976
4016
|
}) => {
|
|
3977
|
-
const
|
|
3978
|
-
const
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
}
|
|
3994
|
-
}, {
|
|
3995
|
-
children: item.subscription_id.slice(0, 8)
|
|
3996
|
-
}))]
|
|
3997
|
-
});
|
|
3998
|
-
} else if (type === 'process') {
|
|
3999
|
-
item = item;
|
|
4000
|
-
const date = new Date(item.last_modified_at * 1000);
|
|
4001
|
-
const formattedDate = moment(date).format('DD-MM-YYYY, HH:mm');
|
|
4002
|
-
return jsxs(EuiFlexItem, {
|
|
4003
|
-
children: [jsx(EuiTextColor, Object.assign({
|
|
4004
|
-
color: hoverState ? '#397dc2' : 'black',
|
|
4005
|
-
style: {
|
|
4006
|
-
fontWeight: 500,
|
|
4007
|
-
transition: '0.2s'
|
|
4008
|
-
}
|
|
4009
|
-
}, {
|
|
4010
|
-
children: item.workflow
|
|
4011
|
-
})), jsxs(EuiTextColor, Object.assign({
|
|
4012
|
-
style: {
|
|
4013
|
-
fontWeight: 400
|
|
4014
|
-
}
|
|
4015
|
-
}, {
|
|
4016
|
-
children: [formattedDate, " for", ' ', jsx("span", Object.assign({
|
|
4017
|
-
style: {
|
|
4018
|
-
color: '#397dc2'
|
|
4019
|
-
}
|
|
4020
|
-
}, {
|
|
4021
|
-
children: "KLM"
|
|
4022
|
-
}))]
|
|
4023
|
-
}))]
|
|
4024
|
-
});
|
|
4017
|
+
const initialColumnOrderRef = useRef(getInitialColumnOrder(columns, initialColumnOrder));
|
|
4018
|
+
const defaultVisibleColumns = initialColumnOrder.filter(columnId => !columns[columnId].isHiddenByDefault).map(columnId => columnId.toString());
|
|
4019
|
+
const [visibleColumns, setVisibleColumns] = useState(defaultVisibleColumns);
|
|
4020
|
+
const renderCellValue = ({
|
|
4021
|
+
rowIndex,
|
|
4022
|
+
columnId,
|
|
4023
|
+
setCellProps
|
|
4024
|
+
}) => {
|
|
4025
|
+
const {
|
|
4026
|
+
pageSize,
|
|
4027
|
+
pageIndex
|
|
4028
|
+
} = pagination;
|
|
4029
|
+
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
4030
|
+
const dataRow = data[rowIndexOnPage];
|
|
4031
|
+
if (!dataRow) {
|
|
4032
|
+
return;
|
|
4025
4033
|
}
|
|
4034
|
+
const column = columns[columnId];
|
|
4035
|
+
const cellValue = dataRow[columnId];
|
|
4036
|
+
handleRowClick && setCellProps({
|
|
4037
|
+
css: {
|
|
4038
|
+
cursor: 'pointer'
|
|
4039
|
+
},
|
|
4040
|
+
onClick: () => handleRowClick(dataRow)
|
|
4041
|
+
});
|
|
4042
|
+
return column.renderCell ? column.renderCell(cellValue, dataRow) : `${cellValue}`;
|
|
4026
4043
|
};
|
|
4027
|
-
|
|
4028
|
-
|
|
4044
|
+
const controlColumnToEuiDataGridControlColumnMapper = ({
|
|
4045
|
+
id,
|
|
4046
|
+
width,
|
|
4047
|
+
rowCellRender
|
|
4048
|
+
}) => ({
|
|
4049
|
+
id,
|
|
4050
|
+
width,
|
|
4051
|
+
headerCellRender: props => null,
|
|
4052
|
+
rowCellRender: ({
|
|
4053
|
+
rowIndex
|
|
4054
|
+
}) => {
|
|
4055
|
+
const {
|
|
4056
|
+
pageSize,
|
|
4057
|
+
pageIndex
|
|
4058
|
+
} = pagination;
|
|
4059
|
+
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
4060
|
+
const dataRow = data[rowIndexOnPage];
|
|
4061
|
+
return rowCellRender(dataRow);
|
|
4062
|
+
}
|
|
4063
|
+
});
|
|
4064
|
+
const euiDataGridLeadingControlColumns = leadingControlColumns === null || leadingControlColumns === void 0 ? void 0 : leadingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
4065
|
+
const euiDataGridTrailingControlColumns = trailingControlColumns === null || trailingControlColumns === void 0 ? void 0 : trailingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
4066
|
+
const gridHeightValue = pagination.pageSize * 40 + EUI_DATA_GRID_HEIGHT_OFFSET;
|
|
4067
|
+
return jsx(EuiDataGrid, {
|
|
4068
|
+
"aria-label": "Data Grid",
|
|
4069
|
+
columns: initialColumnOrderRef.current,
|
|
4070
|
+
leadingControlColumns: euiDataGridLeadingControlColumns,
|
|
4071
|
+
trailingControlColumns: euiDataGridTrailingControlColumns,
|
|
4072
|
+
height: `${gridHeightValue}px`,
|
|
4073
|
+
gridStyle: GRID_STYLE,
|
|
4074
|
+
columnVisibility: {
|
|
4075
|
+
visibleColumns,
|
|
4076
|
+
setVisibleColumns
|
|
4077
|
+
},
|
|
4078
|
+
pagination: pagination,
|
|
4079
|
+
sorting: columnSortToEuiDataGridSorting(dataSorting, updateDataSorting),
|
|
4080
|
+
rowCount: pagination.totalRecords,
|
|
4081
|
+
renderCellValue: renderCellValue
|
|
4082
|
+
});
|
|
4083
|
+
};
|
|
4084
|
+
|
|
4085
|
+
const CheckmarkCircleFill = ({
|
|
4086
|
+
width: _width = 24,
|
|
4087
|
+
height: _height = 24,
|
|
4088
|
+
color: _color = '#000000'
|
|
4089
|
+
}) => jsxs("svg", Object.assign({
|
|
4090
|
+
width: _width,
|
|
4091
|
+
height: _height,
|
|
4092
|
+
viewBox: "0 0 24 24",
|
|
4093
|
+
version: "1.1",
|
|
4094
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4095
|
+
}, {
|
|
4096
|
+
children: [jsx("title", {
|
|
4097
|
+
children: "icon/checkmark-circle-fill"
|
|
4098
|
+
}), jsx("g", Object.assign({
|
|
4099
|
+
id: "Symbols",
|
|
4100
|
+
stroke: "none",
|
|
4101
|
+
strokeWidth: "1",
|
|
4102
|
+
fill: "none",
|
|
4103
|
+
fillRule: "evenodd"
|
|
4029
4104
|
}, {
|
|
4030
|
-
children:
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
paddingBlock: 10
|
|
4034
|
-
},
|
|
4035
|
-
onMouseOver: () => setHoverState(true),
|
|
4036
|
-
onMouseLeave: () => setHoverState(false)
|
|
4105
|
+
children: jsx("g", Object.assign({
|
|
4106
|
+
id: "icon/checkmark-circle-fill",
|
|
4107
|
+
fill: _color
|
|
4037
4108
|
}, {
|
|
4038
|
-
children:
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
}
|
|
4043
|
-
}, {
|
|
4044
|
-
children: jsx(EuiIcon, {
|
|
4045
|
-
type: "sortRight",
|
|
4046
|
-
color: "primary"
|
|
4047
|
-
})
|
|
4048
|
-
}))]
|
|
4109
|
+
children: jsx("path", {
|
|
4110
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M15.7071,10.70711 C16.0976,10.31658 16.0976,9.68342 15.7071,9.29289 C15.3166,8.90237 14.6834,8.90237 14.2929,9.29289 L11,12.5858 L9.70711,11.29289 C9.31658,10.90237 8.68342,10.90237 8.29289,11.29289 C7.90237,11.68342 7.90237,12.3166 8.29289,12.7071 L10.29289,14.7071 C10.68342,15.0976 11.31658,15.0976 11.70711,14.7071 L15.7071,10.70711 Z",
|
|
4111
|
+
id: "Shape"
|
|
4112
|
+
})
|
|
4049
4113
|
}))
|
|
4050
|
-
}))
|
|
4051
|
-
};
|
|
4114
|
+
}))]
|
|
4115
|
+
}));
|
|
4052
4116
|
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4117
|
+
const MinusCircleOutline = ({
|
|
4118
|
+
width: _width = 24,
|
|
4119
|
+
height: _height = 24,
|
|
4120
|
+
color: _color = '#000000'
|
|
4121
|
+
}) => jsxs("svg", Object.assign({
|
|
4122
|
+
width: _width,
|
|
4123
|
+
height: _height,
|
|
4124
|
+
viewBox: "0 0 24 24",
|
|
4125
|
+
version: "1.1",
|
|
4126
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4127
|
+
}, {
|
|
4128
|
+
children: [jsx("title", {
|
|
4129
|
+
children: "icon/minus-circle-outline"
|
|
4130
|
+
}), jsx("g", Object.assign({
|
|
4131
|
+
id: "Symbols",
|
|
4132
|
+
stroke: "none",
|
|
4133
|
+
strokeWidth: "1",
|
|
4134
|
+
fill: "none",
|
|
4135
|
+
fillRule: "evenodd"
|
|
4060
4136
|
}, {
|
|
4061
|
-
children:
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4137
|
+
children: jsx("g", Object.assign({
|
|
4138
|
+
id: "icon/minus-circle-outline",
|
|
4139
|
+
fill: _color,
|
|
4140
|
+
fillRule: "nonzero"
|
|
4065
4141
|
}, {
|
|
4066
|
-
children:
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
}, {
|
|
4071
|
-
children: list.title
|
|
4072
|
-
})), jsx(EuiSpacer, {
|
|
4073
|
-
size: "m"
|
|
4074
|
-
}), list.items.map((item, index) => jsxs(Fragment, {
|
|
4075
|
-
children: [jsx(ListItemStartPage, {
|
|
4076
|
-
item: item,
|
|
4077
|
-
type: list.type
|
|
4078
|
-
}), index === list.items.length - 1 ? null : jsx(EuiHorizontalRule, {
|
|
4079
|
-
margin: "none"
|
|
4080
|
-
})]
|
|
4081
|
-
})), jsx(EuiSpacer, {
|
|
4082
|
-
size: "m"
|
|
4083
|
-
}), jsx(EuiButton, Object.assign({
|
|
4084
|
-
fullWidth: true
|
|
4085
|
-
}, {
|
|
4086
|
-
children: list.buttonName
|
|
4087
|
-
}))]
|
|
4142
|
+
children: jsx("path", {
|
|
4143
|
+
d: "M12,4 C16.4183,4 20,7.58172 20,12 C20,16.4183 16.4183,20 12,20 C7.58172,20 4,16.4183 4,12 C4,7.58172 7.58172,4 12,4 Z M12,6 C8.6862895,6 6,8.6862895 6,12 C6,15.3137228 8.68628182,18 12,18 C15.3137305,18 18,15.3137305 18,12 C18,8.68628182 15.3137228,6 12,6 Z M15,11 C15.5523,11 16,11.44772 16,12 C16,12.5523 15.5523,13 15,13 L9,13 C8.44772,13 8,12.5523 8,12 C8,11.44772 8.44772,11 9,11 Z",
|
|
4144
|
+
id: "Combined-Shape"
|
|
4145
|
+
})
|
|
4088
4146
|
}))
|
|
4089
|
-
}))
|
|
4090
|
-
}
|
|
4147
|
+
}))]
|
|
4148
|
+
}));
|
|
4091
4149
|
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4150
|
+
const PlusCircleFill = ({
|
|
4151
|
+
width: _width = 24,
|
|
4152
|
+
height: _height = 24,
|
|
4153
|
+
color: _color = '#000000'
|
|
4154
|
+
}) => jsxs("svg", Object.assign({
|
|
4155
|
+
width: _width,
|
|
4156
|
+
height: _height,
|
|
4157
|
+
viewBox: "0 0 24 24",
|
|
4158
|
+
version: "1.1",
|
|
4159
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4160
|
+
}, {
|
|
4161
|
+
children: [jsx("title", {
|
|
4162
|
+
children: "icon/plus-circle-fill"
|
|
4163
|
+
}), jsx("g", Object.assign({
|
|
4164
|
+
id: "Symbols",
|
|
4165
|
+
stroke: "none",
|
|
4166
|
+
strokeWidth: "1",
|
|
4167
|
+
fill: "none",
|
|
4168
|
+
fillRule: "evenodd"
|
|
4169
|
+
}, {
|
|
4170
|
+
children: jsx("g", Object.assign({
|
|
4171
|
+
id: "icon/plus-circle-fill",
|
|
4172
|
+
fill: _color
|
|
4173
|
+
}, {
|
|
4174
|
+
children: jsx("path", {
|
|
4175
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M13,9 C13,8.44772 12.5523,8 12,8 C11.44772,8 11,8.44772 11,9 L11,11 L9,11 C8.44772,11 8,11.44771 8,12 C8,12.5523 8.44772,13 9,13 L11,13 L11,15 C11,15.5523 11.44772,16 12,16 C12.5523,16 13,15.5523 13,15 L13,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.44772 15.5523,11 15,11 L13,11 L13,9 Z",
|
|
4176
|
+
id: "Shape"
|
|
4177
|
+
})
|
|
4178
|
+
}))
|
|
4179
|
+
}))]
|
|
4180
|
+
}));
|
|
4181
|
+
|
|
4182
|
+
const defaultOrchestratorTheme = {
|
|
4183
|
+
colors: {
|
|
4184
|
+
DARK: {},
|
|
4185
|
+
LIGHT: {
|
|
4186
|
+
primary: '#0077C8',
|
|
4187
|
+
accent: '#E67300',
|
|
4188
|
+
success: '#008939',
|
|
4189
|
+
warning: '#FFC514',
|
|
4190
|
+
danger: '#BD271F',
|
|
4191
|
+
primaryText: '#0067AC',
|
|
4192
|
+
accentText: '#B05200',
|
|
4193
|
+
successText: '#007832',
|
|
4194
|
+
warningText: '#8E6A00',
|
|
4195
|
+
dangerText: '#AC0A01',
|
|
4196
|
+
emptyShade: '#FFFFFF',
|
|
4197
|
+
lightestShade: '#F1F5F9',
|
|
4198
|
+
lightShade: '#CCD5E2',
|
|
4199
|
+
mediumShade: '#94A4B8',
|
|
4200
|
+
darkShade: '#64758B',
|
|
4201
|
+
darkestShade: '#334255',
|
|
4202
|
+
fullShade: '#0F172B',
|
|
4203
|
+
text: '#334255',
|
|
4204
|
+
title: '#0F172B',
|
|
4205
|
+
subduedText: '#64758B',
|
|
4206
|
+
link: '#0067AC',
|
|
4207
|
+
body: '#F1F5F9',
|
|
4208
|
+
highlight: '#FFF6DE',
|
|
4209
|
+
disabled: '#94A4B8',
|
|
4210
|
+
disabledText: '#94A4B8',
|
|
4211
|
+
shadow: '#000000'
|
|
4212
|
+
}
|
|
4213
|
+
},
|
|
4214
|
+
font: {
|
|
4215
|
+
weight: {
|
|
4216
|
+
regular: 400,
|
|
4217
|
+
medium: 500,
|
|
4218
|
+
semiBold: 600,
|
|
4219
|
+
bold: 700
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
// a string of all valid unicode whitespaces
|
|
4225
|
+
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
4226
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
4227
|
+
|
|
4228
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
4229
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
4230
|
+
var toString$2 = toString$4;
|
|
4231
|
+
var whitespaces$1 = whitespaces$2;
|
|
4232
|
+
|
|
4233
|
+
var replace = uncurryThis$2(''.replace);
|
|
4234
|
+
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
4235
|
+
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
4236
|
+
|
|
4237
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
4238
|
+
var createMethod = function (TYPE) {
|
|
4239
|
+
return function ($this) {
|
|
4240
|
+
var string = toString$2(requireObjectCoercible$1($this));
|
|
4241
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
4242
|
+
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
4243
|
+
return string;
|
|
4160
4244
|
};
|
|
4161
|
-
return isLoading ? initialData : Object.assign(Object.assign({}, initialData), {
|
|
4162
|
-
items: data
|
|
4163
|
-
});
|
|
4164
4245
|
};
|
|
4165
4246
|
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
list: processesAttentionList
|
|
4177
|
-
}), jsx(ListStartPage, {
|
|
4178
|
-
list: completedProcessesList
|
|
4179
|
-
})]
|
|
4180
|
-
}));
|
|
4247
|
+
var stringTrim = {
|
|
4248
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
4249
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
4250
|
+
start: createMethod(1),
|
|
4251
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
4252
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
4253
|
+
end: createMethod(2),
|
|
4254
|
+
// `String.prototype.trim` method
|
|
4255
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
4256
|
+
trim: createMethod(3)
|
|
4181
4257
|
};
|
|
4182
4258
|
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4259
|
+
var global$1 = global$i;
|
|
4260
|
+
var fails$1 = fails$i;
|
|
4261
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
4262
|
+
var toString$1 = toString$4;
|
|
4263
|
+
var trim = stringTrim.trim;
|
|
4264
|
+
var whitespaces = whitespaces$2;
|
|
4265
|
+
|
|
4266
|
+
var $parseInt$1 = global$1.parseInt;
|
|
4267
|
+
var Symbol$1 = global$1.Symbol;
|
|
4268
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
4269
|
+
var hex = /^[+-]?0x/i;
|
|
4270
|
+
var exec = uncurryThis$1(hex.exec);
|
|
4271
|
+
var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
4272
|
+
// MS Edge 18- broken with boxed symbols
|
|
4273
|
+
|| (ITERATOR && !fails$1(function () { $parseInt$1(Object(ITERATOR)); }));
|
|
4274
|
+
|
|
4275
|
+
// `parseInt` method
|
|
4276
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
4277
|
+
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
4278
|
+
var S = trim(toString$1(string));
|
|
4279
|
+
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
4280
|
+
} : $parseInt$1;
|
|
4281
|
+
|
|
4282
|
+
var $$2 = _export;
|
|
4283
|
+
var $parseInt = numberParseInt;
|
|
4284
|
+
|
|
4285
|
+
// `parseInt` method
|
|
4286
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
4287
|
+
$$2({ global: true, forced: parseInt != $parseInt }, {
|
|
4288
|
+
parseInt: $parseInt
|
|
4289
|
+
});
|
|
4290
|
+
|
|
4291
|
+
const parseDate = date => {
|
|
4292
|
+
if (date === null || date === '') {
|
|
4293
|
+
return null;
|
|
4294
|
+
}
|
|
4295
|
+
return new Date(parseInt(date) * 1000);
|
|
4203
4296
|
};
|
|
4204
4297
|
|
|
4205
|
-
const
|
|
4206
|
-
const
|
|
4207
|
-
|
|
4208
|
-
|
|
4298
|
+
const getStatusBadgeColor = status => {
|
|
4299
|
+
const statusColors = {
|
|
4300
|
+
terminated: 'danger',
|
|
4301
|
+
active: 'success',
|
|
4302
|
+
provisioning: 'primary',
|
|
4303
|
+
migrating: 'primary',
|
|
4304
|
+
initial: 'danger'
|
|
4209
4305
|
};
|
|
4210
|
-
|
|
4211
|
-
return
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
}, {
|
|
4216
|
-
children: [jsx(EuiText, {
|
|
4217
|
-
children: jsx("b", {
|
|
4218
|
-
children: "Start a new process"
|
|
4219
|
-
})
|
|
4220
|
-
}), jsx(EuiSpacer, {
|
|
4221
|
-
size: "m"
|
|
4222
|
-
}), jsx(EuiFieldSearch, {
|
|
4223
|
-
fullWidth: true,
|
|
4224
|
-
placeholder: "Search and select process",
|
|
4225
|
-
value: value,
|
|
4226
|
-
onChange: e => onChange(e),
|
|
4227
|
-
"aria-label": "Search and select process"
|
|
4228
|
-
}), jsx(EuiSpacer, {
|
|
4229
|
-
size: "m"
|
|
4230
|
-
}), jsx(EuiTextColor, Object.assign({
|
|
4231
|
-
color: "subdued"
|
|
4232
|
-
}, {
|
|
4233
|
-
children: "Frequently used:"
|
|
4234
|
-
})), jsx(EuiSpacer, {
|
|
4235
|
-
size: "s"
|
|
4236
|
-
}), jsx(FrequentlyUsed, {
|
|
4237
|
-
values: frequentlyUsedValues
|
|
4238
|
-
})]
|
|
4239
|
-
}));
|
|
4306
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
4307
|
+
return statusColors.hasOwnProperty(status) ?
|
|
4308
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4309
|
+
// @ts-ignore
|
|
4310
|
+
statusColors[status] : 'primary';
|
|
4240
4311
|
};
|
|
4241
4312
|
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
children: jsx("h2", Object.assign({
|
|
4302
|
-
style: {
|
|
4303
|
-
fontWeight: 500
|
|
4304
|
-
}
|
|
4305
|
-
}, {
|
|
4306
|
-
children: stat.value.toLocaleString('de-DE')
|
|
4307
|
-
}))
|
|
4308
|
-
})]
|
|
4309
|
-
})]
|
|
4310
|
-
})
|
|
4311
|
-
}))
|
|
4312
|
-
}, index))
|
|
4313
|
-
}));
|
|
4313
|
+
var $$1 = _export;
|
|
4314
|
+
var $includes = arrayIncludes.includes;
|
|
4315
|
+
var fails = fails$i;
|
|
4316
|
+
var addToUnscopables = addToUnscopables$2;
|
|
4317
|
+
|
|
4318
|
+
// FF99+ bug
|
|
4319
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
4320
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
4321
|
+
return !Array(1).includes();
|
|
4322
|
+
});
|
|
4323
|
+
|
|
4324
|
+
// `Array.prototype.includes` method
|
|
4325
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4326
|
+
$$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4327
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4328
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4329
|
+
}
|
|
4330
|
+
});
|
|
4331
|
+
|
|
4332
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4333
|
+
addToUnscopables('includes');
|
|
4334
|
+
|
|
4335
|
+
var isObject = isObject$9;
|
|
4336
|
+
var classof = classofRaw$2;
|
|
4337
|
+
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
4338
|
+
|
|
4339
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
4340
|
+
|
|
4341
|
+
// `IsRegExp` abstract operation
|
|
4342
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
4343
|
+
var isRegexp = function (it) {
|
|
4344
|
+
var isRegExp;
|
|
4345
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4348
|
+
var isRegExp = isRegexp;
|
|
4349
|
+
|
|
4350
|
+
var $TypeError = TypeError;
|
|
4351
|
+
|
|
4352
|
+
var notARegexp = function (it) {
|
|
4353
|
+
if (isRegExp(it)) {
|
|
4354
|
+
throw $TypeError("The method doesn't accept regular expressions");
|
|
4355
|
+
} return it;
|
|
4356
|
+
};
|
|
4357
|
+
|
|
4358
|
+
var wellKnownSymbol = wellKnownSymbol$g;
|
|
4359
|
+
|
|
4360
|
+
var MATCH = wellKnownSymbol('match');
|
|
4361
|
+
|
|
4362
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
4363
|
+
var regexp = /./;
|
|
4364
|
+
try {
|
|
4365
|
+
'/./'[METHOD_NAME](regexp);
|
|
4366
|
+
} catch (error1) {
|
|
4367
|
+
try {
|
|
4368
|
+
regexp[MATCH] = false;
|
|
4369
|
+
return '/./'[METHOD_NAME](regexp);
|
|
4370
|
+
} catch (error2) { /* empty */ }
|
|
4371
|
+
} return false;
|
|
4314
4372
|
};
|
|
4315
4373
|
|
|
4316
|
-
|
|
4374
|
+
var $ = _export;
|
|
4375
|
+
var uncurryThis = functionUncurryThis;
|
|
4376
|
+
var notARegExp = notARegexp;
|
|
4377
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
4378
|
+
var toString = toString$4;
|
|
4379
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
4380
|
+
|
|
4381
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
4382
|
+
|
|
4383
|
+
// `String.prototype.includes` method
|
|
4384
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
4385
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
4386
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
4387
|
+
return !!~stringIndexOf(
|
|
4388
|
+
toString(requireObjectCoercible(this)),
|
|
4389
|
+
toString(notARegExp(searchString)),
|
|
4390
|
+
arguments.length > 1 ? arguments[1] : undefined
|
|
4391
|
+
);
|
|
4392
|
+
}
|
|
4393
|
+
});
|
|
4394
|
+
|
|
4395
|
+
function getTypedFieldFromObject(field, object) {
|
|
4396
|
+
if (!Object.keys(object).includes(field)) {
|
|
4397
|
+
return null;
|
|
4398
|
+
}
|
|
4399
|
+
return field;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
export { Badge, CheckmarkCircleFill, EngineStatusBadge, Environment, EnvironmentBadge, FailedTasksBadge, FrequentlyUsed, HeaderBadge, ListItemStartPage, LogoutIcon, MinusCircleOutline, MultiListSection, NewProcessPanel, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageHeader, OrchestratorPageTemplate, OrchestratorSidebar, PlusCircleFill, ProcessStatus, SortDirection, StatCards, StatusDotIcon, SubscriptionStatusBadge, Table, XCircleFill, columnSortToEuiDataGridSorting, defaultOrchestratorTheme, getInitialColumnOrder, getSortDirectionFromString, getStatusBadgeColor, getTypedFieldFromObject, parseDate, useEngineStatusQuery, useFavouriteSubscriptions, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useProcessesAttention, useQueryWithGraphql, useRecentProcesses, useStringQueryWithGraphql };
|