@privateaim/client-vue 0.8.2 → 0.8.3
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/dist/components/analysis-node/FAnalysisNodeRunStatus.d.ts.map +1 -1
- package/dist/components/analysis-node/FAnalysisNodesProgress.vue.d.ts.map +1 -1
- package/dist/components/node/FNodeRobot.d.ts +2 -1
- package/dist/components/node/FNodeRobot.d.ts.map +1 -1
- package/dist/core/entity-action-command/utils.d.ts.map +1 -1
- package/dist/index.cjs +160 -122
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +170 -132
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FAnalysisNodeRunStatus.d.ts","sourceRoot":"","sources":["../../../src/components/analysis-node/FAnalysisNodeRunStatus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAWA,
|
|
1
|
+
{"version":3,"file":"FAnalysisNodeRunStatus.d.ts","sourceRoot":"","sources":["../../../src/components/analysis-node/FAnalysisNodeRunStatus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAWA,wBAuDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FAnalysisNodesProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/analysis-node/FAnalysisNodesProgress.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FAnalysisNodesProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/analysis-node/FAnalysisNodesProgress.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAEH,qBAAqB,EACrB,iBAAiB,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;;cASR,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;cAAlB,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;AAJ9C,wBA2CG"}
|
|
@@ -7,13 +7,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
9
|
[key: string]: any;
|
|
10
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "failed"[], "failed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("failed" | "updated")[], "failed" | "updated", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
entity: {
|
|
12
12
|
type: PropType<Node>;
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
}>> & {
|
|
16
16
|
onFailed?: (...args: any[]) => any;
|
|
17
|
+
onUpdated?: (...args: any[]) => any;
|
|
17
18
|
}, {}, {}>;
|
|
18
19
|
export default _default;
|
|
19
20
|
//# sourceMappingURL=FNodeRobot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FNodeRobot.d.ts","sourceRoot":"","sources":["../../../src/components/node/FNodeRobot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FNodeRobot.d.ts","sourceRoot":"","sources":["../../../src/components/node/FNodeRobot.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;;;cAMrB,QAAQ,CAAC,IAAI,CAAC;;;;;;;cAAd,QAAQ,CAAC,IAAI,CAAC;;;;;;;AAH1C,wBAyCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/entity-action-command/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACG,KAAK,EAChB,UAAU,EACb,MAAM,KAAK,CAAC;AAGb,KAAK,OAAO,GAAG;IACX,OAAO,IAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAA;CACf,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/entity-action-command/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACG,KAAK,EAChB,UAAU,EACb,MAAM,KAAK,CAAC;AAGb,KAAK,OAAO,GAAG;IACX,OAAO,IAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAA;CACf,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAI,UAAU,CA8D7D"}
|
package/dist/index.cjs
CHANGED
|
@@ -374,7 +374,7 @@ let customAlphabet = (alphabet, size = 21)=>customRandom(alphabet, size, random)
|
|
|
374
374
|
function hasOwnProperty(obj, prop) {
|
|
375
375
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
376
376
|
}
|
|
377
|
-
function isObject$
|
|
377
|
+
function isObject$3(item) {
|
|
378
378
|
return !!item && typeof item === 'object' && !Array.isArray(item);
|
|
379
379
|
}
|
|
380
380
|
function createNanoID(alphabetOrLen, len) {
|
|
@@ -437,9 +437,11 @@ function renderActionCommand(ctx) {
|
|
|
437
437
|
disabled: ctx.isDisabled
|
|
438
438
|
};
|
|
439
439
|
const iconClasses = [
|
|
440
|
-
ctx.iconClass
|
|
441
|
-
'pe-1'
|
|
440
|
+
ctx.iconClass
|
|
442
441
|
];
|
|
442
|
+
if (ctx.withIcon && ctx.withText) {
|
|
443
|
+
iconClasses.push('pe-1');
|
|
444
|
+
}
|
|
443
445
|
let tag;
|
|
444
446
|
if (ctx.elementType === 'dropDownItem') {
|
|
445
447
|
const component = vue.resolveDynamicComponent('BDropdownItem');
|
|
@@ -873,7 +875,7 @@ const e$1 = globalThis.Blob, o$1 = globalThis.File, a$1 = globalThis.FormData, s
|
|
|
873
875
|
throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!");
|
|
874
876
|
});
|
|
875
877
|
|
|
876
|
-
function isObject$
|
|
878
|
+
function isObject$2(item) {
|
|
877
879
|
return !!item && typeof item === 'object' && !Array.isArray(item);
|
|
878
880
|
}
|
|
879
881
|
function createExtractOptionsFn(fn) {
|
|
@@ -904,7 +906,7 @@ function createExtractOptionsFn(fn) {
|
|
|
904
906
|
};
|
|
905
907
|
}
|
|
906
908
|
function isOptions(input) {
|
|
907
|
-
if (!isObject$
|
|
909
|
+
if (!isObject$2(input)) {
|
|
908
910
|
return false;
|
|
909
911
|
}
|
|
910
912
|
if (typeof input.message !== 'undefined' && typeof input.message !== 'string') {
|
|
@@ -1042,11 +1044,11 @@ function kindOfTest(type, input) {
|
|
|
1042
1044
|
type = type.toLowerCase();
|
|
1043
1045
|
return kindOf(input) === type;
|
|
1044
1046
|
}
|
|
1045
|
-
function isObject(input) {
|
|
1047
|
+
function isObject$1(input) {
|
|
1046
1048
|
return typeof input === 'object' && input !== null && !!input && !Array.isArray(input);
|
|
1047
1049
|
}
|
|
1048
1050
|
function isStream(input) {
|
|
1049
|
-
return isObject(input) && typeof input.pipe === 'function';
|
|
1051
|
+
return isObject$1(input) && typeof input.pipe === 'function';
|
|
1050
1052
|
}
|
|
1051
1053
|
function isFormData(input) {
|
|
1052
1054
|
if (typeof FormData$1 !== 'undefined' && input instanceof FormData$1) {
|
|
@@ -1083,7 +1085,7 @@ function isURLSearchParams(input) {
|
|
|
1083
1085
|
return kindOfTest('URLSearchParams', input);
|
|
1084
1086
|
}
|
|
1085
1087
|
function verifyInstanceBySymbol(input, name) {
|
|
1086
|
-
if (!isObject(input) && typeof input !== 'function') {
|
|
1088
|
+
if (!isObject$1(input) && typeof input !== 'function') {
|
|
1087
1089
|
return false;
|
|
1088
1090
|
}
|
|
1089
1091
|
return input['@instanceof'] === Symbol.for(name);
|
|
@@ -1102,7 +1104,7 @@ function isJSONSerializable(input) {
|
|
|
1102
1104
|
if (Array.isArray(input)) {
|
|
1103
1105
|
return true;
|
|
1104
1106
|
}
|
|
1105
|
-
return isObject(input) || typeof input === 'function' && input.toJSON === 'function';
|
|
1107
|
+
return isObject$1(input) || typeof input === 'function' && input.toJSON === 'function';
|
|
1106
1108
|
}
|
|
1107
1109
|
/*
|
|
1108
1110
|
* Copyright (c) 2023.
|
|
@@ -1200,7 +1202,7 @@ function isClientError(error) {
|
|
|
1200
1202
|
if (error instanceof ClientError) {
|
|
1201
1203
|
return true;
|
|
1202
1204
|
}
|
|
1203
|
-
return isObject(error) && verifyInstanceBySymbol(error, 'ClientError');
|
|
1205
|
+
return isObject$1(error) && verifyInstanceBySymbol(error, 'ClientError');
|
|
1204
1206
|
}
|
|
1205
1207
|
function stringifyAuthorizationHeader(header) {
|
|
1206
1208
|
switch(header.type){
|
|
@@ -1267,13 +1269,13 @@ function isRequestPayloadSupported(method = 'GET') {
|
|
|
1267
1269
|
return method === MethodName.PATCH || method === MethodName.POST || method === MethodName.PUT;
|
|
1268
1270
|
}
|
|
1269
1271
|
function isRequestOptions(input) {
|
|
1270
|
-
if (!isObject(input)) {
|
|
1272
|
+
if (!isObject$1(input)) {
|
|
1271
1273
|
return false;
|
|
1272
1274
|
}
|
|
1273
1275
|
return input.url === 'string';
|
|
1274
1276
|
}
|
|
1275
1277
|
function isResponse(input) {
|
|
1276
|
-
if (!isObject(input)) {
|
|
1278
|
+
if (!isObject$1(input)) {
|
|
1277
1279
|
return false;
|
|
1278
1280
|
}
|
|
1279
1281
|
return typeof input.headers !== 'undefined' && typeof input.ok === 'boolean';
|
|
@@ -2877,21 +2879,7 @@ class AnalysisBucketAPI extends BaseAPI {
|
|
|
2877
2879
|
}
|
|
2878
2880
|
class Client extends Client$1 {
|
|
2879
2881
|
constructor(config){
|
|
2880
|
-
super(config);
|
|
2881
|
-
_define_property(this, "masterImage", void 0);
|
|
2882
|
-
_define_property(this, "masterImageGroup", void 0);
|
|
2883
|
-
_define_property(this, "project", void 0);
|
|
2884
|
-
_define_property(this, "projectNode", void 0);
|
|
2885
|
-
_define_property(this, "registry", void 0);
|
|
2886
|
-
_define_property(this, "registryProject", void 0);
|
|
2887
|
-
_define_property(this, "node", void 0);
|
|
2888
|
-
_define_property(this, "analysis", void 0);
|
|
2889
|
-
_define_property(this, "analysisBucket", void 0);
|
|
2890
|
-
_define_property(this, "analysisBucketFile", void 0);
|
|
2891
|
-
_define_property(this, "analysisLog", void 0);
|
|
2892
|
-
_define_property(this, "analysisNode", void 0);
|
|
2893
|
-
_define_property(this, "analysisPermission", void 0);
|
|
2894
|
-
_define_property(this, "service", void 0);
|
|
2882
|
+
super(config), _define_property(this, "masterImage", void 0), _define_property(this, "masterImageGroup", void 0), _define_property(this, "project", void 0), _define_property(this, "projectNode", void 0), _define_property(this, "registry", void 0), _define_property(this, "registryProject", void 0), _define_property(this, "node", void 0), _define_property(this, "analysis", void 0), _define_property(this, "analysisBucket", void 0), _define_property(this, "analysisBucketFile", void 0), _define_property(this, "analysisLog", void 0), _define_property(this, "analysisNode", void 0), _define_property(this, "analysisPermission", void 0), _define_property(this, "service", void 0);
|
|
2895
2883
|
this.masterImage = new MasterImageAPI({
|
|
2896
2884
|
client: this
|
|
2897
2885
|
});
|
|
@@ -3828,38 +3816,115 @@ function createEntityManager(ctx) {
|
|
|
3828
3816
|
};
|
|
3829
3817
|
}
|
|
3830
3818
|
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3819
|
+
/*
|
|
3820
|
+
* Copyright (c) 2024-2024.
|
|
3821
|
+
* Author Peter Placzek (tada5hi)
|
|
3822
|
+
* For the full copyright and license information,
|
|
3823
|
+
* view the LICENSE file that was distributed with this source code.
|
|
3824
|
+
*/ const BRACKET_NUMBER_REGEX = RegExp("(?<!\\\\)\\[(\\d+)]$");
|
|
3825
|
+
/**
|
|
3826
|
+
* Convert string to property path array.
|
|
3827
|
+
*
|
|
3828
|
+
* @see https://github.com/lodash/lodash/blob/main/src/.internal/stringToPath.ts
|
|
3829
|
+
* @see https://github.com/chaijs/pathval
|
|
3830
|
+
*
|
|
3831
|
+
* @param segment
|
|
3832
|
+
*/ function pathToArray(segment) {
|
|
3833
|
+
const str = segment.replace(/([^\\])\[/g, '$1.[');
|
|
3834
|
+
const parts = str.match(/(\\\.|[^.]+?)+/g);
|
|
3835
|
+
if (!parts) {
|
|
3836
|
+
return [];
|
|
3837
|
+
}
|
|
3838
|
+
const result = [];
|
|
3839
|
+
for(let i = 0; i < parts.length; i++){
|
|
3840
|
+
if (parts[i] === 'constructor' || parts[i] === '__proto__' || parts[i] === 'prototype') {
|
|
3841
|
+
continue;
|
|
3842
|
+
}
|
|
3843
|
+
const regex = BRACKET_NUMBER_REGEX.exec(parts[i]);
|
|
3844
|
+
if (regex) {
|
|
3845
|
+
result.push(regex[1]);
|
|
3846
|
+
} else {
|
|
3847
|
+
result.push(parts[i].replace(/\\([.[\]])/g, '$1'));
|
|
3841
3848
|
}
|
|
3842
|
-
setObjectPathProperty(record[prefix], parts.join('.'), value);
|
|
3843
3849
|
}
|
|
3850
|
+
return result;
|
|
3844
3851
|
}
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3852
|
+
/*
|
|
3853
|
+
* Copyright (c) 2024.
|
|
3854
|
+
* Author Peter Placzek (tada5hi)
|
|
3855
|
+
* For the full copyright and license information,
|
|
3856
|
+
* view the LICENSE file that was distributed with this source code.
|
|
3857
|
+
*/ var Character;
|
|
3858
|
+
(function(Character) {
|
|
3859
|
+
Character["WILDCARD"] = "*";
|
|
3860
|
+
Character["GLOBSTAR"] = "**";
|
|
3861
|
+
})(Character || (Character = {}));
|
|
3862
|
+
/*
|
|
3863
|
+
* Copyright (c) 2024.
|
|
3864
|
+
* Author Peter Placzek (tada5hi)
|
|
3865
|
+
* For the full copyright and license information,
|
|
3866
|
+
* view the LICENSE file that was distributed with this source code.
|
|
3867
|
+
*/ function isObject(input) {
|
|
3868
|
+
return !!input && typeof input === 'object' && !Array.isArray(input);
|
|
3869
|
+
}
|
|
3870
|
+
function getPathValue(data, path) {
|
|
3871
|
+
const parts = Array.isArray(path) ? path : pathToArray(path);
|
|
3872
|
+
let res;
|
|
3873
|
+
let temp = data;
|
|
3874
|
+
let index = 0;
|
|
3875
|
+
while(index < parts.length){
|
|
3876
|
+
if (temp === null || typeof temp === 'undefined') {
|
|
3877
|
+
break;
|
|
3878
|
+
}
|
|
3879
|
+
if (parts[index] in Object(temp)) {
|
|
3880
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3881
|
+
// @ts-expect-error
|
|
3882
|
+
temp = temp[parts[index]];
|
|
3883
|
+
} else {
|
|
3884
|
+
break;
|
|
3885
|
+
}
|
|
3886
|
+
if (index === parts.length - 1) {
|
|
3887
|
+
res = temp;
|
|
3888
|
+
}
|
|
3889
|
+
index++;
|
|
3890
|
+
}
|
|
3891
|
+
return res;
|
|
3892
|
+
}
|
|
3893
|
+
const NUMBER_REGEX = /^\d+$/;
|
|
3894
|
+
function setPathValue(data, path, value) {
|
|
3895
|
+
const parts = Array.isArray(path) ? path : pathToArray(path);
|
|
3896
|
+
let temp = data;
|
|
3897
|
+
let index = 0;
|
|
3898
|
+
while(index < parts.length){
|
|
3899
|
+
/* istanbul ignore next */ if (!Array.isArray(temp) && !isObject(temp)) {
|
|
3900
|
+
break;
|
|
3901
|
+
}
|
|
3902
|
+
const key = parts[index];
|
|
3903
|
+
// [foo, '0']
|
|
3904
|
+
if (typeof temp[key] === 'undefined') {
|
|
3905
|
+
const match = NUMBER_REGEX.test(key);
|
|
3906
|
+
if (match) {
|
|
3907
|
+
temp[key] = [];
|
|
3908
|
+
} else {
|
|
3909
|
+
temp[key] = {};
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
if (index === parts.length - 1) {
|
|
3913
|
+
temp[key] = value;
|
|
3914
|
+
break;
|
|
3915
|
+
}
|
|
3916
|
+
index++;
|
|
3917
|
+
temp = temp[key];
|
|
3853
3918
|
}
|
|
3854
|
-
|
|
3855
|
-
return getObjectPathProperty(data[currentKey], nextKey);
|
|
3919
|
+
return data;
|
|
3856
3920
|
}
|
|
3921
|
+
|
|
3857
3922
|
class MemoryStore {
|
|
3858
3923
|
async get(context) {
|
|
3859
3924
|
if (!this.data[context.locale] || !this.data[context.locale][context.group]) {
|
|
3860
3925
|
return undefined;
|
|
3861
3926
|
}
|
|
3862
|
-
const output =
|
|
3927
|
+
const output = getPathValue(this.data[context.locale][context.group], context.key);
|
|
3863
3928
|
if (typeof output === 'string') {
|
|
3864
3929
|
return output;
|
|
3865
3930
|
}
|
|
@@ -3867,7 +3932,7 @@ class MemoryStore {
|
|
|
3867
3932
|
}
|
|
3868
3933
|
async set(context) {
|
|
3869
3934
|
this.initLines(context.group, context.locale);
|
|
3870
|
-
|
|
3935
|
+
setPathValue(this.data[context.locale][context.group], context.key, context.value);
|
|
3871
3936
|
}
|
|
3872
3937
|
initLines(group, locale) {
|
|
3873
3938
|
if (typeof this.data[locale] === 'undefined') {
|
|
@@ -4205,7 +4270,7 @@ var FEntityDelete = vue.defineComponent({
|
|
|
4205
4270
|
const submit = async ()=>{
|
|
4206
4271
|
if (busy.value) return;
|
|
4207
4272
|
const domainAPI = apiClient[props.entityType];
|
|
4208
|
-
if (!isObject$
|
|
4273
|
+
if (!isObject$3(domainAPI)) {
|
|
4209
4274
|
return;
|
|
4210
4275
|
}
|
|
4211
4276
|
if (typeof domainAPI.delete !== 'function') {
|
|
@@ -6927,31 +6992,17 @@ var FNodeRobot = vue.defineComponent({
|
|
|
6927
6992
|
}
|
|
6928
6993
|
},
|
|
6929
6994
|
emits: [
|
|
6930
|
-
'failed'
|
|
6995
|
+
'failed',
|
|
6996
|
+
'updated'
|
|
6931
6997
|
],
|
|
6932
6998
|
setup (props, { emit }) {
|
|
6933
|
-
const form = vue.reactive({
|
|
6934
|
-
id: '',
|
|
6935
|
-
secret: ''
|
|
6936
|
-
});
|
|
6937
|
-
const $v = useVuelidate({
|
|
6938
|
-
id: {},
|
|
6939
|
-
secret: {
|
|
6940
|
-
minLength: validators.minLength(3),
|
|
6941
|
-
maxLength: validators.maxLength(256)
|
|
6942
|
-
}
|
|
6943
|
-
}, form);
|
|
6944
|
-
const translationsValidation = vuelidate.useTranslationsForNestedValidations($v.value);
|
|
6945
|
-
const translationsSubmit = clientWebKit.createFormSubmitTranslations();
|
|
6946
6999
|
return ()=>vue.h(clientWebKit.ARobot, {
|
|
6947
|
-
onResolved (entity) {
|
|
6948
|
-
if (entity) {
|
|
6949
|
-
initFormAttributesFromSource(form, entity);
|
|
6950
|
-
}
|
|
6951
|
-
},
|
|
6952
7000
|
onFailed: (e)=>{
|
|
6953
7001
|
emit('failed', e);
|
|
6954
7002
|
},
|
|
7003
|
+
queryFields: [
|
|
7004
|
+
'+secret'
|
|
7005
|
+
],
|
|
6955
7006
|
queryFilters: {
|
|
6956
7007
|
id: props.entity.robot_id
|
|
6957
7008
|
}
|
|
@@ -6964,44 +7015,15 @@ var FNodeRobot = vue.defineComponent({
|
|
|
6964
7015
|
'The robot details can not be displayed.'
|
|
6965
7016
|
]);
|
|
6966
7017
|
}
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
disabled: true
|
|
6976
|
-
}
|
|
6977
|
-
})
|
|
6978
|
-
});
|
|
6979
|
-
const secret = formControls.buildFormGroup({
|
|
6980
|
-
validationMessages: translationsValidation.secret.value,
|
|
6981
|
-
validationSeverity: vuelidate.getSeverity($v.value.secret),
|
|
6982
|
-
label: true,
|
|
6983
|
-
labelContent: 'Secret',
|
|
6984
|
-
content: formControls.buildFormInput({
|
|
6985
|
-
value: form.secret,
|
|
6986
|
-
props: {
|
|
6987
|
-
placeholder: '...'
|
|
6988
|
-
},
|
|
6989
|
-
onChange (value) {
|
|
6990
|
-
form.secret = value;
|
|
6991
|
-
}
|
|
6992
|
-
})
|
|
7018
|
+
return vue.h(clientWebKit.ARobotForm, {
|
|
7019
|
+
entity: slotProps.data,
|
|
7020
|
+
name: slotProps.data.name,
|
|
7021
|
+
realmId: slotProps.data.realm_id,
|
|
7022
|
+
onUpdated: (item)=>{
|
|
7023
|
+
emit('updated', item);
|
|
7024
|
+
slotProps.updated(item);
|
|
7025
|
+
}
|
|
6993
7026
|
});
|
|
6994
|
-
const submitNode = clientWebKit.buildFormSubmitWithTranslations({
|
|
6995
|
-
submit: ()=>slotProps.update(form),
|
|
6996
|
-
busy: slotProps.busy,
|
|
6997
|
-
isEditing: !!slotProps.data,
|
|
6998
|
-
invalid: $v.value.$invalid
|
|
6999
|
-
}, translationsSubmit);
|
|
7000
|
-
return vue.h('div', [
|
|
7001
|
-
id,
|
|
7002
|
-
secret,
|
|
7003
|
-
submitNode
|
|
7004
|
-
]);
|
|
7005
7027
|
}
|
|
7006
7028
|
});
|
|
7007
7029
|
}
|
|
@@ -7503,24 +7525,37 @@ var FAnalysisNodeRunStatus = vue.defineComponent({
|
|
|
7503
7525
|
},
|
|
7504
7526
|
setup (props, { slots }) {
|
|
7505
7527
|
const statusText = vue.computed(()=>{
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
return 'arrived';
|
|
7509
|
-
case coreKit.AnalysisNodeRunStatus.DEPARTED:
|
|
7510
|
-
return 'departed';
|
|
7511
|
-
default:
|
|
7512
|
-
return 'none';
|
|
7528
|
+
if (props.status) {
|
|
7529
|
+
return props.status;
|
|
7513
7530
|
}
|
|
7531
|
+
return 'none';
|
|
7514
7532
|
});
|
|
7515
7533
|
const classSuffix = vue.computed(()=>{
|
|
7516
7534
|
switch(props.status){
|
|
7517
|
-
case coreKit.AnalysisNodeRunStatus.
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7535
|
+
case coreKit.AnalysisNodeRunStatus.STARTED:
|
|
7536
|
+
case coreKit.AnalysisNodeRunStatus.STARTING:
|
|
7537
|
+
{
|
|
7538
|
+
return 'primary';
|
|
7539
|
+
}
|
|
7540
|
+
case coreKit.AnalysisNodeRunStatus.FINISHED:
|
|
7541
|
+
{
|
|
7542
|
+
return 'success';
|
|
7543
|
+
}
|
|
7544
|
+
case coreKit.AnalysisNodeRunStatus.RUNNING:
|
|
7545
|
+
{
|
|
7546
|
+
return 'dark';
|
|
7547
|
+
}
|
|
7548
|
+
case coreKit.AnalysisNodeRunStatus.STOPPED:
|
|
7549
|
+
case coreKit.AnalysisNodeRunStatus.STOPPING:
|
|
7550
|
+
{
|
|
7551
|
+
return 'warning';
|
|
7552
|
+
}
|
|
7553
|
+
case coreKit.AnalysisNodeRunStatus.FAILED:
|
|
7554
|
+
{
|
|
7555
|
+
return 'danger';
|
|
7556
|
+
}
|
|
7523
7557
|
}
|
|
7558
|
+
return 'info';
|
|
7524
7559
|
});
|
|
7525
7560
|
if (hasNormalizedSlot('default', slots)) {
|
|
7526
7561
|
return ()=>normalizeSlot('default', {
|
|
@@ -7622,8 +7657,11 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7622
7657
|
"d-flex justify-content-center icon-circle text-light p-1",
|
|
7623
7658
|
{
|
|
7624
7659
|
"bg-secondary": !item.run_status,
|
|
7625
|
-
"bg-
|
|
7626
|
-
"
|
|
7660
|
+
"bg-primary": item.run_status === _ctx.analysisNodeRunStatus.STARTED || item.run_status === _ctx.analysisNodeRunStatus.STARTING,
|
|
7661
|
+
"bg-success": item.run_status === _ctx.analysisNodeRunStatus.FINISHED,
|
|
7662
|
+
"bg-dark": item.run_status === _ctx.analysisNodeRunStatus.RUNNING,
|
|
7663
|
+
"bg-warning": item.run_status === _ctx.analysisNodeRunStatus.STOPPED || item.run_status === _ctx.analysisNodeRunStatus.STOPPING,
|
|
7664
|
+
"bg-danger": item.run_status === _ctx.analysisNodeRunStatus.FAILED
|
|
7627
7665
|
}
|
|
7628
7666
|
])
|
|
7629
7667
|
}, [
|