@conduction/nextcloud-vue 2.56.0-beta.74 → 2.56.0-beta.75
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/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue.js +1 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js +12 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js.map +1 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue3.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +10 -8
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +95 -88
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +86 -8
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +137 -121
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js +56 -4
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js +166 -70
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js +123 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js +268 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js +49 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js +41 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js.map +1 -0
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +116 -8
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +110 -58
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +78 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +44 -3
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +90 -75
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +46 -22
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/composables/indexSources.js +24 -4
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/composables/useFlowStore.js +75 -4
- package/dist/esm/composables/useFlowStore.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js +17 -0
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js +9 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue2.js +15 -0
- package/dist/esm/dialogs/CnFlowEditModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue3.js +13 -3
- package/dist/esm/dialogs/CnFlowEditModal.vue3.js.map +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js +13 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue3.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +40 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +39 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +566 -337
- package/dist/esm/utils/dialogWidths.js +6 -4
- package/dist/esm/utils/dialogWidths.js.map +1 -1
- package/dist/esm/utils/flowCondition.js +177 -0
- package/dist/esm/utils/flowCondition.js.map +1 -0
- package/dist/esm/utils/flowRunStatus.js +64 -1
- package/dist/esm/utils/flowRunStatus.js.map +1 -1
- package/dist/esm/utils/flowStepList.js +385 -0
- package/dist/esm/utils/flowStepList.js.map +1 -0
- package/dist/nextcloud-vue.cjs.js +12543 -10668
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +566 -337
- package/l10n/en.json +40 -1
- package/l10n/nl.json +39 -1
- package/package.json +1 -1
- package/src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue +12 -1
- package/src/components/CnCellRenderer/CnCellRenderer.vue +8 -0
- package/src/components/CnFlowDetail/CnFlowDetail.vue +110 -12
- package/src/components/CnFlowDetail/CnFlowDryRunResult.vue +163 -5
- package/src/components/CnFlowDetail/CnFlowStepList.vue +408 -0
- package/src/components/CnFlowDetail/CnFlowViewSwitch.vue +117 -0
- package/src/components/CnFlowDetail/index.js +2 -0
- package/src/components/CnFlowsPage/CnFlowBoard.vue +182 -25
- package/src/components/CnFlowsPage/CnFlowEditorPage.vue +101 -3
- package/src/components/CnIndexPage/CnIndexPage.vue +29 -0
- package/src/components/index.js +1 -1
- package/src/composables/indexSources.js +24 -4
- package/src/composables/useFlowStore.js +75 -4
- package/src/css/index-page.css +4 -0
- package/src/dialogs/CnFlowEdgeEditModal.vue +28 -0
- package/src/dialogs/CnFlowEditModal.vue +26 -6
- package/src/dialogs/CnFlowStepPickerModal.vue +13 -1
- package/src/index.js +2 -0
- package/src/utils/dialogWidths.js +6 -4
- package/src/utils/flowCondition.js +173 -0
- package/src/utils/flowRunStatus.js +63 -0
- package/src/utils/flowStepList.js +381 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode, createSlots, renderList, withKeys, withModifiers } from 'vue';
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode, createSlots, renderList, renderSlot, withKeys, withModifiers } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = { class: "cn-flow-board__header" };
|
|
4
4
|
const _hoisted_2 = { class: "cn-flow-board__heading" };
|
|
@@ -153,8 +153,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153
153
|
const _component_NcActions = resolveComponent("NcActions");
|
|
154
154
|
const _component_Check = resolveComponent("Check");
|
|
155
155
|
const _component_CnResourceSelect = resolveComponent("CnResourceSelect");
|
|
156
|
+
const _component_NcTextArea = resolveComponent("NcTextArea");
|
|
156
157
|
const _component_CnDialog = resolveComponent("CnDialog");
|
|
157
158
|
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
159
|
+
const _component_CnFlowViewSwitch = resolveComponent("CnFlowViewSwitch");
|
|
158
160
|
const _component_NcNoteCard = resolveComponent("NcNoteCard");
|
|
159
161
|
const _component_CnFlowStepPickerModal = resolveComponent("CnFlowStepPickerModal");
|
|
160
162
|
const _component_DockRight = resolveComponent("DockRight");
|
|
@@ -167,11 +169,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167
169
|
const _component_NcTextField = resolveComponent("NcTextField");
|
|
168
170
|
const _component_NcCheckboxRadioSwitch = resolveComponent("NcCheckboxRadioSwitch");
|
|
169
171
|
const _component_NcSelect = resolveComponent("NcSelect");
|
|
170
|
-
const _component_NcTextArea = resolveComponent("NcTextArea");
|
|
171
172
|
const _component_CnFlowSidebar = resolveComponent("CnFlowSidebar");
|
|
172
173
|
|
|
173
174
|
return (openBlock(), createElementBlock("div", {
|
|
174
|
-
class: normalizeClass(["cn-flow-board", { 'cn-flow-board--with-palette': $options.showPalette, 'cn-flow-board--canvas': $options.canvasLayout, 'cn-flow-board--run': $setup.store.inRunView }]),
|
|
175
|
+
class: normalizeClass(["cn-flow-board", { 'cn-flow-board--with-palette': $options.showPalette, 'cn-flow-board--canvas': $options.canvasLayout, 'cn-flow-board--run': $setup.store.inRunView, 'cn-flow-board--list': $options.inList, 'cn-flow-board--list-panel': $options.inList && $options.inspectorShown }]),
|
|
175
176
|
"data-testid": "flow-board"
|
|
176
177
|
}, [
|
|
177
178
|
createElementVNode("header", _hoisted_1, [
|
|
@@ -182,7 +183,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
182
183
|
? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
183
184
|
(!$setup.store.inRunView)
|
|
184
185
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
185
|
-
($options.
|
|
186
|
+
($options.testReady)
|
|
186
187
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
187
188
|
key: 0,
|
|
188
189
|
disabled: $setup.store.dryRunning || !$setup.store.flow.id,
|
|
@@ -358,12 +359,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
358
359
|
key: 0,
|
|
359
360
|
name: $options.testLabel,
|
|
360
361
|
"data-testid": "flow-board-test-dialog",
|
|
361
|
-
onClosing: _cache[
|
|
362
|
+
onClosing: _cache[10] || (_cache[10] = $event => ($data.testOpen = false))
|
|
362
363
|
}, {
|
|
363
364
|
actions: withCtx(() => [
|
|
364
365
|
createVNode(_component_NcButton, {
|
|
365
366
|
"data-testid": "flow-board-test-cancel",
|
|
366
|
-
onClick: _cache[
|
|
367
|
+
onClick: _cache[9] || (_cache[9] = $event => ($data.testOpen = false))
|
|
367
368
|
}, {
|
|
368
369
|
default: withCtx(() => [
|
|
369
370
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Cancel')), 1 /* TEXT */)
|
|
@@ -372,7 +373,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
372
373
|
}),
|
|
373
374
|
createVNode(_component_NcButton, {
|
|
374
375
|
variant: "primary",
|
|
375
|
-
disabled: !$
|
|
376
|
+
disabled: !$options.testCanRun || $setup.store.dryRunning,
|
|
376
377
|
"data-testid": "flow-board-test-run",
|
|
377
378
|
onClick: $options.runTest
|
|
378
379
|
}, {
|
|
@@ -383,16 +384,32 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
383
384
|
}, 8 /* PROPS */, ["disabled", "onClick"])
|
|
384
385
|
]),
|
|
385
386
|
default: withCtx(() => [
|
|
386
|
-
createElementVNode("p", _hoisted_8, toDisplayString($options.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
387
|
+
createElementVNode("p", _hoisted_8, toDisplayString($options.testIntro), 1 /* TEXT */),
|
|
388
|
+
($options.testSubjectReady)
|
|
389
|
+
? (openBlock(), createBlock(_component_CnResourceSelect, {
|
|
390
|
+
key: 0,
|
|
391
|
+
modelValue: $data.testRecord,
|
|
392
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (($data.testRecord) = $event)),
|
|
393
|
+
register: $props.testSubject.register,
|
|
394
|
+
schema: $props.testSubject.schema,
|
|
395
|
+
labelField: $props.testSubject.labelField || 'title',
|
|
396
|
+
inputLabel: $options.t('nextcloud-vue', 'Record'),
|
|
397
|
+
"data-testid": "flow-board-test-record"
|
|
398
|
+
}, null, 8 /* PROPS */, ["modelValue", "register", "schema", "labelField", "inputLabel"]))
|
|
399
|
+
: createCommentVNode("v-if", true),
|
|
400
|
+
($options.payloadTest)
|
|
401
|
+
? (openBlock(), createBlock(_component_NcTextArea, {
|
|
402
|
+
key: 1,
|
|
403
|
+
modelValue: $data.payloadText,
|
|
404
|
+
label: $options.t('nextcloud-vue', 'Example payload'),
|
|
405
|
+
error: $options.payloadInvalid,
|
|
406
|
+
helperText: $options.payloadInvalid ? $options.t('nextcloud-vue', 'This is not a JSON object.') : '',
|
|
407
|
+
resize: "vertical",
|
|
408
|
+
rows: "6",
|
|
409
|
+
"data-testid": "flow-board-test-payload",
|
|
410
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ($data.payloadText = $event))
|
|
411
|
+
}, null, 8 /* PROPS */, ["modelValue", "label", "error", "helperText"]))
|
|
412
|
+
: createCommentVNode("v-if", true)
|
|
396
413
|
]),
|
|
397
414
|
_: 1 /* STABLE */
|
|
398
415
|
}, 8 /* PROPS */, ["name"]))
|
|
@@ -437,7 +454,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
454
|
class: "cn-flow-board__crumb",
|
|
438
455
|
onClick: $event => ($options.onCrumbClick($event, crumb.path))
|
|
439
456
|
}, toDisplayString(crumb.label), 9 /* TEXT, PROPS */, _hoisted_11),
|
|
440
|
-
_cache[
|
|
457
|
+
_cache[26] || (_cache[26] = createElementVNode("span", { "aria-hidden": "true" }, " / ", -1 /* CACHED */))
|
|
441
458
|
], 64 /* STABLE_FRAGMENT */))
|
|
442
459
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
443
460
|
($setup.store.inRunView)
|
|
@@ -445,9 +462,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
445
462
|
createElementVNode("a", {
|
|
446
463
|
href: $options.flowHref,
|
|
447
464
|
class: "cn-flow-board__crumb",
|
|
448
|
-
onClick: _cache[
|
|
465
|
+
onClick: _cache[11] || (_cache[11] = $event => ($options.onCrumbClick($event, $options.flowPath)))
|
|
449
466
|
}, toDisplayString($options.flowName), 9 /* TEXT, PROPS */, _hoisted_12),
|
|
450
|
-
_cache[
|
|
467
|
+
_cache[27] || (_cache[27] = createElementVNode("span", { "aria-hidden": "true" }, " / ", -1 /* CACHED */)),
|
|
451
468
|
createElementVNode("span", null, toDisplayString($options.runCrumb), 1 /* TEXT */)
|
|
452
469
|
], 64 /* STABLE_FRAGMENT */))
|
|
453
470
|
: (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString($options.flowName), 1 /* TEXT */)),
|
|
@@ -455,18 +472,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
455
472
|
? (openBlock(), createElementBlock("span", _hoisted_14, " · " + toDisplayString($options.metaText), 1 /* TEXT */))
|
|
456
473
|
: createCommentVNode("v-if", true)
|
|
457
474
|
]),
|
|
458
|
-
($props.
|
|
459
|
-
? (openBlock(), createBlock(
|
|
475
|
+
($props.listMode)
|
|
476
|
+
? (openBlock(), createBlock(_component_CnFlowViewSwitch, {
|
|
460
477
|
key: 2,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
]),
|
|
467
|
-
_: 1 /* STABLE */
|
|
468
|
-
}))
|
|
478
|
+
modelValue: $data.activeView,
|
|
479
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => (($data.activeView) = $event)),
|
|
480
|
+
class: "cn-flow-board__views",
|
|
481
|
+
note: ""
|
|
482
|
+
}, null, 8 /* PROPS */, ["modelValue"]))
|
|
469
483
|
: createCommentVNode("v-if", true),
|
|
484
|
+
renderSlot(_ctx.$slots, "notice", {}, () => [
|
|
485
|
+
($props.notice && !$setup.store.inRunView)
|
|
486
|
+
? (openBlock(), createBlock(_component_NcNoteCard, {
|
|
487
|
+
key: 0,
|
|
488
|
+
type: $props.noticeLevel,
|
|
489
|
+
class: "cn-flow-board__notice",
|
|
490
|
+
"data-testid": "flow-board-notice"
|
|
491
|
+
}, {
|
|
492
|
+
default: withCtx(() => [
|
|
493
|
+
createTextVNode(toDisplayString($options.noticeText), 1 /* TEXT */)
|
|
494
|
+
]),
|
|
495
|
+
_: 1 /* STABLE */
|
|
496
|
+
}, 8 /* PROPS */, ["type"]))
|
|
497
|
+
: createCommentVNode("v-if", true)
|
|
498
|
+
]),
|
|
470
499
|
createElementVNode("div", _hoisted_15, [
|
|
471
500
|
($options.showPalette)
|
|
472
501
|
? (openBlock(), createElementBlock("aside", {
|
|
@@ -505,7 +534,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
505
534
|
class: "cn-flow-board__palette-more",
|
|
506
535
|
disabled: $setup.store.graphLocked,
|
|
507
536
|
"data-testid": "flow-board-palette-more",
|
|
508
|
-
onClick: _cache[
|
|
537
|
+
onClick: _cache[13] || (_cache[13] = $event => ($data.stepPickerOpen = true))
|
|
509
538
|
}, toDisplayString($options.t('nextcloud-vue', 'More steps')), 9 /* TEXT, PROPS */, _hoisted_20))
|
|
510
539
|
: createCommentVNode("v-if", true),
|
|
511
540
|
($props.paletteFootnote)
|
|
@@ -516,12 +545,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
516
545
|
($data.stepPickerOpen)
|
|
517
546
|
? (openBlock(), createBlock(_component_CnFlowStepPickerModal, {
|
|
518
547
|
key: 1,
|
|
519
|
-
onClose: _cache[
|
|
548
|
+
onClose: _cache[14] || (_cache[14] = $event => ($data.stepPickerOpen = false))
|
|
520
549
|
}))
|
|
521
550
|
: createCommentVNode("v-if", true),
|
|
522
551
|
createElementVNode("section", {
|
|
523
552
|
class: "cn-flow-board__card cn-flow-board__canvas",
|
|
524
|
-
"aria-label": $options.t('nextcloud-vue', 'Flow canvas')
|
|
553
|
+
"aria-label": $options.inList ? $options.t('nextcloud-vue', 'Flow steps') : $options.t('nextcloud-vue', 'Flow canvas')
|
|
525
554
|
}, [
|
|
526
555
|
createVNode(_component_CnFlowDetail, {
|
|
527
556
|
id: $props.id,
|
|
@@ -533,8 +562,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
533
562
|
nodeBadge: $props.nodeLook === 'card' ? $options.nodeBadge : null,
|
|
534
563
|
toolbarActions: false,
|
|
535
564
|
addStep: !$options.showPalette,
|
|
565
|
+
edgeConditions: $props.edgeConditions,
|
|
566
|
+
view: $data.activeView,
|
|
567
|
+
readonlySteps: $options.readonlyStepIds,
|
|
568
|
+
stepPanel: "",
|
|
536
569
|
quietRun: "",
|
|
537
|
-
onSave: _cache[
|
|
570
|
+
onSave: _cache[15] || (_cache[15] = $event => (_ctx.$emit('save'))),
|
|
538
571
|
onRun: $options.onRun
|
|
539
572
|
}, createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
540
573
|
($options.canvasLayout && $setup.store.inRunView)
|
|
@@ -563,7 +596,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
563
596
|
class: "cn-flow-board__legend-pill"
|
|
564
597
|
}, {
|
|
565
598
|
default: withCtx(() => [
|
|
566
|
-
_cache[
|
|
599
|
+
_cache[28] || (_cache[28] = createElementVNode("span", {
|
|
567
600
|
class: "cn-flow-board__legend-swatch",
|
|
568
601
|
"aria-hidden": "true"
|
|
569
602
|
}, null, -1 /* CACHED */)),
|
|
@@ -574,14 +607,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
574
607
|
]))
|
|
575
608
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
576
609
|
createElementVNode("li", _hoisted_26, [
|
|
577
|
-
_cache[
|
|
610
|
+
_cache[29] || (_cache[29] = createElementVNode("span", {
|
|
578
611
|
class: "cn-flow-board__legend-line cn-flow-board__legend-line--taken",
|
|
579
612
|
"aria-hidden": "true"
|
|
580
613
|
}, null, -1 /* CACHED */)),
|
|
581
614
|
createTextVNode(" " + toDisplayString($options.t('nextcloud-vue', 'Taken route')), 1 /* TEXT */)
|
|
582
615
|
]),
|
|
583
616
|
createElementVNode("li", _hoisted_27, [
|
|
584
|
-
_cache[
|
|
617
|
+
_cache[30] || (_cache[30] = createElementVNode("span", {
|
|
585
618
|
class: "cn-flow-board__legend-line",
|
|
586
619
|
"aria-hidden": "true"
|
|
587
620
|
}, null, -1 /* CACHED */)),
|
|
@@ -625,7 +658,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
625
658
|
key: "1"
|
|
626
659
|
}
|
|
627
660
|
: undefined
|
|
628
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["id", "app", "run", "layoutDirection", "fitMaxZoom", "fitInset", "nodeBadge", "addStep", "onRun"]),
|
|
661
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["id", "app", "run", "layoutDirection", "fitMaxZoom", "fitInset", "nodeBadge", "addStep", "edgeConditions", "view", "readonlySteps", "onRun"]),
|
|
629
662
|
($options.canvasLayout && $setup.store.inRunView)
|
|
630
663
|
? (openBlock(), createBlock(_component_CnFlowRunSummary, {
|
|
631
664
|
key: 0,
|
|
@@ -686,8 +719,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
686
719
|
? (openBlock(), createBlock(_component_CnFlowDryRunResult, {
|
|
687
720
|
key: 1,
|
|
688
721
|
result: $setup.store.dryRunResult,
|
|
689
|
-
|
|
690
|
-
|
|
722
|
+
card: $options.payloadTest,
|
|
723
|
+
onAgain: $options.testAgain,
|
|
724
|
+
onClose: _cache[16] || (_cache[16] = $event => ($setup.store.clearDryRun()))
|
|
725
|
+
}, null, 8 /* PROPS */, ["result", "card", "onAgain"]))
|
|
691
726
|
: ($setup.store.inRunView)
|
|
692
727
|
? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
693
728
|
(!$options.canvasLayout)
|
|
@@ -757,7 +792,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
757
792
|
createVNode(_component_NcButton, {
|
|
758
793
|
class: "cn-button--tonal",
|
|
759
794
|
"data-testid": "flow-board-run-play",
|
|
760
|
-
onClick: _cache[
|
|
795
|
+
onClick: _cache[17] || (_cache[17] = $event => ($setup.store.requestReplay()))
|
|
761
796
|
}, {
|
|
762
797
|
icon: withCtx(() => [
|
|
763
798
|
createVNode(_component_Replay, { size: 20 })
|
|
@@ -793,14 +828,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
793
828
|
}, 8 /* PROPS */, ["aria-label", "title", "onClick"])
|
|
794
829
|
]))
|
|
795
830
|
: createCommentVNode("v-if", true),
|
|
831
|
+
renderSlot(_ctx.$slots, "step-notice", {
|
|
832
|
+
node: $setup.store.selectedNode
|
|
833
|
+
}, () => [
|
|
834
|
+
($options.selectedAdminStep)
|
|
835
|
+
? (openBlock(), createBlock(_component_NcNoteCard, {
|
|
836
|
+
key: 0,
|
|
837
|
+
type: "warning",
|
|
838
|
+
"data-testid": "flow-board-admin-step"
|
|
839
|
+
}, {
|
|
840
|
+
default: withCtx(() => [
|
|
841
|
+
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Only admins may use this action. You can read this step, but not change or save it; ask an admin.')), 1 /* TEXT */)
|
|
842
|
+
]),
|
|
843
|
+
_: 1 /* STABLE */
|
|
844
|
+
}))
|
|
845
|
+
: createCommentVNode("v-if", true)
|
|
846
|
+
]),
|
|
796
847
|
($options.canvasLayout)
|
|
797
848
|
? (openBlock(), createBlock(_component_NcTextField, {
|
|
798
849
|
key: 1,
|
|
799
850
|
modelValue: $data.nameDraft === null ? $options.stepName : $data.nameDraft,
|
|
800
851
|
label: $options.t('nextcloud-vue', 'Step name'),
|
|
801
|
-
disabled: $
|
|
852
|
+
disabled: $options.stepLocked,
|
|
802
853
|
"data-testid": "flow-board-step-name-field",
|
|
803
|
-
"onUpdate:modelValue": _cache[
|
|
854
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ($data.nameDraft = $event)),
|
|
804
855
|
onBlur: $options.commitStepName,
|
|
805
856
|
onKeydown: withKeys($options.commitStepName, ["enter"])
|
|
806
857
|
}, null, 8 /* PROPS */, ["modelValue", "label", "disabled", "onBlur", "onKeydown"]))
|
|
@@ -839,7 +890,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
839
890
|
key: 1,
|
|
840
891
|
type: "switch",
|
|
841
892
|
modelValue: field.value === true,
|
|
842
|
-
disabled: $
|
|
893
|
+
disabled: $options.stepLocked,
|
|
843
894
|
"aria-labelledby": `${$data.toggleLabelId}-${field.key}`,
|
|
844
895
|
"onUpdate:modelValue": $event => ($options.setStepField(field, $event))
|
|
845
896
|
}, null, 8 /* PROPS */, ["modelValue", "disabled", "aria-labelledby", "onUpdate:modelValue"]))
|
|
@@ -848,7 +899,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
848
899
|
key: 2,
|
|
849
900
|
type: "switch",
|
|
850
901
|
modelValue: field.value === true,
|
|
851
|
-
disabled: $
|
|
902
|
+
disabled: $options.stepLocked,
|
|
852
903
|
"onUpdate:modelValue": $event => ($options.setStepField(field, $event))
|
|
853
904
|
}, {
|
|
854
905
|
default: withCtx(() => [
|
|
@@ -863,7 +914,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
863
914
|
options: field.options,
|
|
864
915
|
inputLabel: field.label,
|
|
865
916
|
clearable: false,
|
|
866
|
-
disabled: $
|
|
917
|
+
disabled: $options.stepLocked,
|
|
867
918
|
label: "label",
|
|
868
919
|
"onUpdate:modelValue": $event => ($options.setStepField(field, $event ? $event.id : ''))
|
|
869
920
|
}, null, 8 /* PROPS */, ["modelValue", "options", "inputLabel", "disabled", "onUpdate:modelValue"]))
|
|
@@ -872,7 +923,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
872
923
|
key: 4,
|
|
873
924
|
modelValue: $options.fieldDraft(field),
|
|
874
925
|
label: field.label,
|
|
875
|
-
disabled: $
|
|
926
|
+
disabled: $options.stepLocked,
|
|
876
927
|
resize: "vertical",
|
|
877
928
|
"onUpdate:modelValue": $event => ($data.drafts[field.key] = $event),
|
|
878
929
|
onBlur: $event => ($options.commitStepField(field))
|
|
@@ -881,7 +932,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
881
932
|
key: 5,
|
|
882
933
|
modelValue: $options.fieldDraft(field),
|
|
883
934
|
label: field.label,
|
|
884
|
-
disabled: $
|
|
935
|
+
disabled: $options.stepLocked,
|
|
885
936
|
"onUpdate:modelValue": $event => ($data.drafts[field.key] = $event),
|
|
886
937
|
onBlur: $event => ($options.commitStepField(field)),
|
|
887
938
|
onKeydown: withKeys($event => ($options.commitStepField(field)), ["enter"])
|
|
@@ -908,20 +959,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
908
959
|
: createCommentVNode("v-if", true),
|
|
909
960
|
createElementVNode("div", _hoisted_51, [
|
|
910
961
|
createVNode(_component_NcButton, {
|
|
962
|
+
disabled: $options.selectedAdminStep,
|
|
911
963
|
"data-testid": "flow-board-edit-step",
|
|
912
|
-
onClick: _cache[
|
|
964
|
+
onClick: _cache[19] || (_cache[19] = $event => ($setup.store.editingNodeId = $setup.store.selectedNodeId))
|
|
913
965
|
}, {
|
|
914
966
|
default: withCtx(() => [
|
|
915
967
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Edit step')), 1 /* TEXT */)
|
|
916
968
|
]),
|
|
917
969
|
_: 1 /* STABLE */
|
|
918
|
-
}),
|
|
970
|
+
}, 8 /* PROPS */, ["disabled"]),
|
|
919
971
|
($options.lastRunUuid && !$options.canvasLayout)
|
|
920
972
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
921
973
|
key: 0,
|
|
922
974
|
variant: "tertiary",
|
|
923
975
|
"data-testid": "flow-board-open-last-run",
|
|
924
|
-
onClick: _cache[
|
|
976
|
+
onClick: _cache[20] || (_cache[20] = $event => ($options.openRun($options.lastRunUuid)))
|
|
925
977
|
}, {
|
|
926
978
|
default: withCtx(() => [
|
|
927
979
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Open the last run on the canvas')), 1 /* TEXT */)
|
|
@@ -944,7 +996,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
944
996
|
href: $options.hrefOf($options.flowPath) + '?run=' + encodeURIComponent($options.lastRunUuid),
|
|
945
997
|
class: "cn-flow-board__step-log-link",
|
|
946
998
|
"data-testid": "flow-board-open-last-run",
|
|
947
|
-
onClick: _cache[
|
|
999
|
+
onClick: _cache[21] || (_cache[21] = withModifiers($event => ($options.openRun($options.lastRunUuid)), ["prevent"]))
|
|
948
1000
|
}, toDisplayString($options.t('nextcloud-vue', 'Open the last run on the canvas')), 9 /* TEXT, PROPS */, _hoisted_54))
|
|
949
1001
|
: createCommentVNode("v-if", true)
|
|
950
1002
|
]))
|
|
@@ -960,9 +1012,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
960
1012
|
createVNode(_component_NcButton, {
|
|
961
1013
|
variant: "tertiary",
|
|
962
1014
|
class: normalizeClass({ 'cn-flow-board__delete-step': $options.canvasLayout }),
|
|
963
|
-
disabled: $
|
|
1015
|
+
disabled: $options.stepLocked,
|
|
964
1016
|
"data-testid": "flow-board-delete-step",
|
|
965
|
-
onClick: _cache[
|
|
1017
|
+
onClick: _cache[22] || (_cache[22] = $event => ($setup.store.removeNode($setup.store.selectedNodeId)))
|
|
966
1018
|
}, {
|
|
967
1019
|
default: withCtx(() => [
|
|
968
1020
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Delete step')), 1 /* TEXT */)
|
|
@@ -972,7 +1024,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
972
1024
|
createVNode(_component_NcButton, {
|
|
973
1025
|
variant: $options.canvasLayout ? 'primary' : 'secondary',
|
|
974
1026
|
"data-testid": "flow-board-done",
|
|
975
|
-
onClick: _cache[
|
|
1027
|
+
onClick: _cache[23] || (_cache[23] = $event => ($setup.store.selectedNodeId = null))
|
|
976
1028
|
}, {
|
|
977
1029
|
default: withCtx(() => [
|
|
978
1030
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Done')), 1 /* TEXT */)
|
|
@@ -987,7 +1039,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
987
1039
|
variant: "tertiary",
|
|
988
1040
|
class: "cn-flow-board__runs-back",
|
|
989
1041
|
"data-testid": "flow-board-hide-runs",
|
|
990
|
-
onClick: _cache[
|
|
1042
|
+
onClick: _cache[24] || (_cache[24] = $event => ($data.showRuns = false))
|
|
991
1043
|
}, {
|
|
992
1044
|
default: withCtx(() => [
|
|
993
1045
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Back to the step settings')), 1 /* TEXT */)
|
|
@@ -997,11 +1049,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
997
1049
|
createVNode(_component_CnFlowSidebar, { embedded: "" })
|
|
998
1050
|
], 64 /* STABLE_FRAGMENT */))
|
|
999
1051
|
: (openBlock(), createElementBlock("div", _hoisted_58, [
|
|
1000
|
-
createElementVNode("p", null, toDisplayString($options.t('nextcloud-vue', 'Select a step on the canvas to see its settings.')), 1 /* TEXT */),
|
|
1052
|
+
createElementVNode("p", null, toDisplayString($options.inList ? $options.t('nextcloud-vue', 'Edit a step to see its settings.') : $options.t('nextcloud-vue', 'Select a step on the canvas to see its settings.')), 1 /* TEXT */),
|
|
1001
1053
|
createVNode(_component_NcButton, {
|
|
1002
1054
|
variant: "secondary",
|
|
1003
1055
|
"data-testid": "flow-board-show-runs",
|
|
1004
|
-
onClick: _cache[
|
|
1056
|
+
onClick: _cache[25] || (_cache[25] = $event => ($data.showRuns = true))
|
|
1005
1057
|
}, {
|
|
1006
1058
|
default: withCtx(() => [
|
|
1007
1059
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Show runs')), 1 /* TEXT */)
|