@conduction/nextcloud-vue 2.171.0 → 2.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue.js +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js +3 -2
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js +2 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js +39 -0
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +22 -3
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js +75 -4
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +7 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +34 -4
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +42 -34
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +21 -6
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js +54 -4
- package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +32 -26
- package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue.js +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue2.js +28 -4
- package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +4 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
- package/dist/esm/composables/aiChatConfig.js +13 -1
- package/dist/esm/composables/aiChatConfig.js.map +1 -1
- package/dist/esm/composables/useAiChatStream.js +53 -1
- package/dist/esm/composables/useAiChatStream.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +745 -403
- package/dist/esm/utils/builtInFormatters.js +19 -1
- package/dist/esm/utils/builtInFormatters.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +919 -569
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +745 -403
- package/package.json +1 -1
- package/src/components/CnActionDialog/CnActionDialog.vue +4 -1
- package/src/components/CnAiCompanion/CnAiChatWidget.md +1 -0
- package/src/components/CnAiCompanion/CnAiChatWidget.vue +4 -2
- package/src/components/CnAiCompanion/CnAiCompanion.md +1 -0
- package/src/components/CnAiCompanion/CnAiCompanion.vue +39 -0
- package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +24 -3
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +5 -2
- package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +75 -4
- package/src/components/CnFactsWidget/CnFactsWidget.vue +7 -3
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +45 -4
- package/src/components/CnFlowsPage/CnFlowBoard.vue +27 -6
- package/src/components/CnTreeView/CnTreeNode.vue +69 -6
- package/src/components/CnTreeView/CnTreeView.vue +31 -4
- package/src/composables/aiChatConfig.js +12 -0
- package/src/composables/useAiChatStream.js +53 -0
- package/src/css/look-board-detail.css +200 -6
- package/src/css/look-board-index.css +7 -6
- package/src/css/look-board.css +118 -0
- package/src/css/patches.css +4 -1
- package/src/utils/builtInFormatters.js +18 -0
|
@@ -2,7 +2,7 @@ import script from './CnFlowBoard.vue2.js';
|
|
|
2
2
|
import { render } from './CnFlowBoard.vue3.js';
|
|
3
3
|
|
|
4
4
|
script.render = render;
|
|
5
|
-
script.__scopeId = "data-v-
|
|
5
|
+
script.__scopeId = "data-v-2f060685";
|
|
6
6
|
const __sfc_main = script;
|
|
7
7
|
|
|
8
8
|
export { __sfc_main as default };
|
|
@@ -486,7 +486,8 @@ var script = {
|
|
|
486
486
|
const options = field.optionsFrom
|
|
487
487
|
? [...(this.loadedOptions[field.optionsFrom] || [])]
|
|
488
488
|
: normaliseSelectOptions(field.options);
|
|
489
|
-
|
|
489
|
+
const listed = (o) => o.id === value || (o.key !== undefined && o.key === value);
|
|
490
|
+
if (isSet(value) && typeof value !== 'object' && options.length > 0 && !options.some(listed)) {
|
|
490
491
|
options.push({ id: value, label: String(value) });
|
|
491
492
|
}
|
|
492
493
|
let widget = 'text';
|
|
@@ -504,7 +505,7 @@ var script = {
|
|
|
504
505
|
widget,
|
|
505
506
|
value,
|
|
506
507
|
options,
|
|
507
|
-
option: options.find((o) => o.id === value) || null,
|
|
508
|
+
option: options.find((o) => o.id === value) || options.find(listed) || null,
|
|
508
509
|
isObject: value !== null && typeof value === 'object',
|
|
509
510
|
}
|
|
510
511
|
})
|
|
@@ -512,8 +513,10 @@ var script = {
|
|
|
512
513
|
|
|
513
514
|
/**
|
|
514
515
|
* Where the selected step goes next: each outgoing line by its name
|
|
515
|
-
* ("Ja", "Nee"), else
|
|
516
|
+
* ("Ja", "Nee"), else by the exit it leaves by (its label, else its id
|
|
517
|
+
* with a capital), else "Next", with the step it leads to.
|
|
516
518
|
*
|
|
519
|
+
* @spec openspec/changes/flow-board-inspector-fields/specs/flow-board/spec.md#requirement-the-flow-board-inspector-edits-the-selected-steps-settings-and-names-its-outcomes
|
|
517
520
|
* @return {Array<{id: string, label: string, target: string}>} The outcomes.
|
|
518
521
|
*/
|
|
519
522
|
stepOutcomes() {
|
|
@@ -525,9 +528,18 @@ var script = {
|
|
|
525
528
|
const node = this.store.nodes.find((item) => item.id === target);
|
|
526
529
|
return (node && (node.name || node.label)) || target
|
|
527
530
|
};
|
|
531
|
+
const exits = (this.store.selectedNode && Array.isArray(this.store.selectedNode.exits)) ? this.store.selectedNode.exits : [];
|
|
532
|
+
const exitName = (line) => {
|
|
533
|
+
const exitId = line.data && line.data.edge && line.data.edge.fromExit;
|
|
534
|
+
if (!exitId) {
|
|
535
|
+
return ''
|
|
536
|
+
}
|
|
537
|
+
const exit = exits.find((item) => item && item.id === exitId);
|
|
538
|
+
return (exit && exit.label) || String(exitId).charAt(0).toUpperCase() + String(exitId).slice(1)
|
|
539
|
+
};
|
|
528
540
|
return (this.store.canvasEdges || [])
|
|
529
541
|
.filter((line) => line.source === id)
|
|
530
|
-
.map((line) => ({ id: line.id, label: (line.data && line.data.label) || this.t('nextcloud-vue', 'Next'), target: nameOf(line.target) }))
|
|
542
|
+
.map((line) => ({ id: line.id, label: (line.data && line.data.label) || exitName(line) || this.t('nextcloud-vue', 'Next'), target: nameOf(line.target) }))
|
|
531
543
|
},
|
|
532
544
|
|
|
533
545
|
/**
|
|
@@ -704,8 +716,9 @@ var script = {
|
|
|
704
716
|
|
|
705
717
|
/**
|
|
706
718
|
* Load the choices of the selected step's select fields that name a
|
|
707
|
-
* url (`optionsFrom`), once per url.
|
|
719
|
+
* url (`optionsFrom`), once per url. A row's `key` stays on its option.
|
|
708
720
|
*
|
|
721
|
+
* @spec openspec/changes/flow-board-inspector-fields/specs/flow-board/spec.md#requirement-the-flow-board-inspector-edits-the-selected-steps-settings-and-names-its-outcomes
|
|
709
722
|
* @return {Promise<void>}
|
|
710
723
|
*/
|
|
711
724
|
async loadStepOptions() {
|
|
@@ -724,7 +737,9 @@ var script = {
|
|
|
724
737
|
try {
|
|
725
738
|
const response = await axios.get(url.startsWith('/') && !url.startsWith('/apps') && !url.startsWith('/index.php') ? generateUrl(url) : url);
|
|
726
739
|
const rows = Array.isArray(response.data) ? response.data : (response.data?.results || []);
|
|
727
|
-
|
|
740
|
+
const keys = new Map(rows.filter((row) => row && typeof row === 'object' && row.key).map((row) => [row.id ?? row.value ?? row['@self']?.uuid ?? row.uuid, row.key]));
|
|
741
|
+
const options = normaliseSelectOptions(rows).map((option) => (keys.has(option.id) ? { ...option, key: keys.get(option.id) } : option));
|
|
742
|
+
this.loadedOptions = { ...this.loadedOptions, [url]: options };
|
|
728
743
|
} catch (error) {
|
|
729
744
|
// The field then shows the stored value; Edit step still reaches everything.
|
|
730
745
|
// eslint-disable-next-line no-console -- diagnostic for a failure this degrades from
|