@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
|
@@ -2,7 +2,7 @@ import script from './CnBuildiqEditButton.vue2.js';
|
|
|
2
2
|
import { render } from './CnBuildiqEditButton.vue3.js';
|
|
3
3
|
|
|
4
4
|
script.render = render;
|
|
5
|
-
script.__scopeId = "data-v-
|
|
5
|
+
script.__scopeId = "data-v-590c4483";
|
|
6
6
|
const __sfc_main = script;
|
|
7
7
|
|
|
8
8
|
export { __sfc_main as default };
|
|
@@ -193,6 +193,13 @@ var script = {
|
|
|
193
193
|
return this.activeEditor ? this.unref(this.activeEditor.working) : null
|
|
194
194
|
},
|
|
195
195
|
|
|
196
|
+
/** @return {string} Where flows open in list mode, '' for an app without such a page. */
|
|
197
|
+
flowListRoute() {
|
|
198
|
+
const page = (this.effectiveManifest?.pages || []).find((candidate) => ['flow', 'flow-detail'].includes(candidate?.type) && candidate?.config?.listMode === true);
|
|
199
|
+
|
|
200
|
+
return page ? String(page.route || '').replace(':id', 'new') : ''
|
|
201
|
+
},
|
|
202
|
+
|
|
196
203
|
/** The manifest to read page metadata from: working copy, else the live one. */
|
|
197
204
|
effectiveManifest() {
|
|
198
205
|
return this.workingManifest || this.unref(this.cnManifest) || null
|
|
@@ -568,7 +575,11 @@ var script = {
|
|
|
568
575
|
* store, and there is one editor for it.
|
|
569
576
|
*/
|
|
570
577
|
onEditFlows() {
|
|
571
|
-
this.
|
|
578
|
+
if (this.flowListRoute !== '' && this.$router) {
|
|
579
|
+
this.$router.push({ path: this.flowListRoute, query: { view: 'list' } });
|
|
580
|
+
} else {
|
|
581
|
+
this.showFlowsCanvasModal = true;
|
|
582
|
+
}
|
|
572
583
|
this.menuOpen = false;
|
|
573
584
|
/**
|
|
574
585
|
* @event edit-flows Emitted when the flows editor opens.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CnBuildiqEditButton.vue2.js","sources":["../../../../src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue"],"sourcesContent":["<!--\n CnBuildiqEditButton — the universal in-app edit entry point (ADR-041).\n\n A Conduction-orange icon button bearing the Buildiq glyph, meant to sit\n immediately to the right of a page's refresh control. It renders nothing\n unless `available` is true, and is deliberately Buildiq-agnostic: it never\n imports Buildiq app code and never calls `useAppStatus` — availability is\n passed in (wire it from `useBuildiqEditAvailability()`).\n\n Its action menu drives the shared `useManifestEditor` instance (passed as\n `editor`): Edit page ⇄ Save page, Add widget (disabled unless editing),\n Edit menu…, Edit sidebar…. Save emits `@save(delta)` with the minimal delta.\n-->\n<template>\n\t<!-- `href` without an editor (an admin settings page has no CnAppRoot):\n\t the square is a link that opens the app in edit mode. -->\n\t<div v-if=\"isAvailable && href && !activeEditor\" class=\"cn-buildiq-edit\">\n\t\t<span class=\"cn-buildiq-edit__actions\">\n\t\t\t<NcButton\n\t\t\t\t:href=\"href\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\t:title=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\tdata-testid=\"cn-buildiq-edit-link\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t</span>\n\t</div>\n\t<div v-else-if=\"isAvailable\" class=\"cn-buildiq-edit\">\n\t\t<NcActions\n\t\t\tv-model:open=\"menuOpen\"\n\t\t\taria-label=\"buildiq\"\n\t\t\tclass=\"cn-buildiq-edit__actions\"\n\t\t\t:class=\"[{ 'cn-buildiq-edit__actions--editing': isEditing }]\">\n\t\t\t<template #icon>\n\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\twidth=\"20\"\n\t\t\t\t\theight=\"20\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t</svg>\n\t\t\t</template>\n\n\t\t\t<!-- Save keeps the menu open while persisting so the spinner that\n\t\t\t replaces the save icon stays visible; onToggleEdit closes it\n\t\t\t once the async save settles. -->\n\t\t\t<NcActionButton :closeAfterClick=\"false\" :disabled=\"saving\" @click=\"onToggleEdit\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcLoadingIcon v-if=\"saving\" :size=\"20\" />\n\t\t\t\t\t<Pencil v-else-if=\"!isEditing\" :size=\"20\" />\n\t\t\t\t\t<ContentSave v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ saving ? t('nextcloud-vue', 'Saving…') : (isEditing ? t('nextcloud-vue', 'Save page') : t('nextcloud-vue', 'Edit page')) }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- Widget grids live on dashboard pages and (since the detail-grid\n\t\t\t change) detail pages, whose body is an adjustable grid seeded with\n\t\t\t Data + Related. Index/custom pages have no widget slots, so hide\n\t\t\t Add widget there. -->\n\t\t\t<NcActionButton v-if=\"pageSupportsWidgets\"\n\t\t\t\t:disabled=\"!isEditing\"\n\t\t\t\t:closeAfterClick=\"true\"\n\t\t\t\t@click=\"onAddWidget\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Add widget…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditPages\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FileMultiple :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit pages…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditMenu\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<MenuIcon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit menu…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditSidebar\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<PageLayoutSidebarRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit sidebar…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditActions\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<GestureTapButton :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit actions…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- The four APP-LEVEL editors (settings, setup wizard,\n\t\t\t walkthrough, support & donation) used to sit here. They edit\n\t\t\t the app's chrome rather than the page you are standing on, so\n\t\t\t they now live on the app detail page, where the whole app is\n\t\t\t in view. This menu is page-local: pages, menu, sidebar,\n\t\t\t actions, data, flows.\n\n\t\t\t `onEditSettings` / `onEditSetup` / `onEditWalkthrough` /\n\t\t\t `onEditSupport` and the modals they open are deliberately\n\t\t\t KEPT. They are no longer reachable from this menu, but they\n\t\t\t remain callable on a template ref, so a consumer that wants\n\t\t\t one of these editors on its own surface has it without\n\t\t\t re-implementing the modal. Removing them would be a breaking\n\t\t\t change to that API for a menu-layout decision. -->\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditData\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Database :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit data…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditFlows\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Sitemap :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit flows…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-if=\"isEditing\" :closeAfterClick=\"true\" @click=\"onCancel\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Cancel') }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<CnEditPagesModal\n\t\t\tv-if=\"showPagesModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showPagesModal = false\" />\n\t\t<CnEditMenuModal\n\t\t\tv-if=\"showMenuModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showMenuModal = false\" />\n\t\t<CnEditSettingsModal\n\t\t\tv-if=\"showSettingsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSettingsModal = false\" />\n\t\t<CnEditSidebarModal\n\t\t\tv-if=\"showSidebarModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showSidebarModal = false\" />\n\t\t<CnAddWidgetModal\n\t\t\tv-if=\"showAddWidgetModal\"\n\t\t\t:show=\"showAddWidgetModal\"\n\t\t\t:surface=\"addWidgetSurface\"\n\t\t\t:data-context=\"addWidgetDataContext\"\n\t\t\t@submit=\"onAddWidgetSubmit\"\n\t\t\t@close=\"showAddWidgetModal = false\" />\n\t\t<CnEditActionsModal\n\t\t\tv-if=\"showActionsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showActionsModal = false\" />\n\t\t<CnEditDataModal\n\t\t\tv-if=\"showDataModal\"\n\t\t\t:manifest=\"effectiveManifest\"\n\t\t\t@close=\"showDataModal = false\" />\n\t\t<CnFlowEditModal\n\t\t\tv-if=\"showFlowsCanvasModal\"\n\t\t\t:app=\"flowApp\"\n\t\t\tflowId=\"new\"\n\t\t\t@close=\"showFlowsCanvasModal = false\" />\n\t\t<CnEditSetupModal\n\t\t\tv-if=\"showSetupModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSetupModal = false\" />\n\t\t<CnEditWalkthroughModal\n\t\t\tv-if=\"showWalkthroughModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showWalkthroughModal = false\" />\n\t\t<CnEditSupportModal\n\t\t\tv-if=\"showSupportModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSupportModal = false\" />\n\t</div>\n</template>\n\n<script>\nimport { translate as t } from '@nextcloud/l10n'\nimport { NcActionButton, NcActions, NcButton, NcLoadingIcon } from '@nextcloud/vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport ContentSave from 'vue-material-design-icons/ContentSave.vue'\nimport Database from 'vue-material-design-icons/Database.vue'\nimport FileMultiple from 'vue-material-design-icons/FileMultiple.vue'\nimport GestureTapButton from 'vue-material-design-icons/GestureTapButton.vue'\nimport MenuIcon from 'vue-material-design-icons/Menu.vue'\nimport PageLayoutSidebarRight from 'vue-material-design-icons/PageLayoutSidebarRight.vue'\nimport Pencil from 'vue-material-design-icons/Pencil.vue'\nimport Plus from 'vue-material-design-icons/Plus.vue'\nimport Sitemap from 'vue-material-design-icons/Sitemap.vue'\nimport CnAddWidgetModal from '../../dialogs/CnAddWidgetModal.vue'\nimport CnEditActionsModal from '../../dialogs/CnEditActionsModal.vue'\nimport CnEditDataModal from '../../dialogs/CnEditDataModal.vue'\nimport CnEditMenuModal from '../../dialogs/CnEditMenuModal.vue'\nimport CnEditPagesModal from '../../dialogs/CnEditPagesModal.vue'\nimport CnEditSettingsModal from '../../dialogs/CnEditSettingsModal.vue'\nimport CnEditSetupModal from '../../dialogs/CnEditSetupModal.vue'\nimport CnEditSidebarModal from '../../dialogs/CnEditSidebarModal.vue'\nimport CnEditSupportModal from '../../dialogs/CnEditSupportModal.vue'\nimport CnEditWalkthroughModal from '../../dialogs/CnEditWalkthroughModal.vue'\nimport CnFlowEditModal from '../../dialogs/CnFlowEditModal.vue'\nimport { defaultDetailGrid } from '../../utils/defaultDetailGrid.js'\nimport { getDefaultContent, getWidgetTypeEntry } from '../CnWidgetGrid/dashboardWidgetRegistry.js'\n\nexport default {\n\tname: 'CnBuildiqEditButton',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcButton,\n\t\tNcLoadingIcon,\n\t\tPencil,\n\t\tContentSave,\n\t\tPlus,\n\t\tMenuIcon,\n\t\tClose,\n\t\tFileMultiple,\n\t\tPageLayoutSidebarRight,\n\t\tGestureTapButton,\n\t\tDatabase,\n\t\tSitemap,\n\t\tCnEditMenuModal,\n\t\tCnEditPagesModal,\n\t\tCnEditSettingsModal,\n\t\tCnEditSidebarModal,\n\t\tCnEditActionsModal,\n\t\tCnAddWidgetModal,\n\t\tCnEditDataModal,\n\t\tCnFlowEditModal,\n\t\tCnEditSetupModal,\n\t\tCnEditWalkthroughModal,\n\t\tCnEditSupportModal,\n\t},\n\n\tinject: {\n\t\t/** Shared editor instance published by CnAppRoot; overridden by the `editor` prop. */\n\t\tcnManifestEditor: { default: null },\n\t\t/**\n\t\t * Buildiq availability published by CnAppRoot; overridden by the `available` prop.\n\t\t *\n\t\t * The inject key keeps its `cnOpenBuildAvailable` spelling on purpose: it is a\n\t\t * runtime provide/inject contract that consumer apps may already read, so the\n\t\t * 2026-08-21 OpenBuild → Buildiq rename deliberately left it untouched.\n\t\t */\n\t\tcnOpenBuildAvailable: { default: false },\n\t\t/** The live (published) manifest published by CnAppRoot — read when not editing. */\n\t\tcnManifest: { default: null },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Whether Buildiq is available to this user. When falsey the component\n\t\t * renders nothing. Wire from `useBuildiqEditAvailability()`.\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\tavailable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The shared `useManifestEditor` instance (`{ editing, working, dirty,\n\t\t * enter, cancel, save }`). Falls back to the injected `cnManifestEditor`.\n\t\t *\n\t\t * @type {object|null}\n\t\t */\n\t\teditor: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The active page's id, forwarded to `CnEditSidebarModal` so it edits the\n\t\t * right page's sidebar config.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tpageId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Where the square leads when there is no manifest editor on the page\n\t\t * (an admin settings page): the app with `cn_edit=1`, which CnAppRoot\n\t\t * opens in edit mode. Ignored where an editor is available.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\thref: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'add-widget',\n\t\t'cancel',\n\t\t'edit',\n\t\t'edit-actions',\n\t\t'edit-data',\n\t\t'edit-flows',\n\t\t'edit-menu',\n\t\t'edit-pages',\n\t\t'edit-settings',\n\t\t'edit-setup',\n\t\t'edit-sidebar',\n\t\t'edit-support',\n\t\t'edit-walkthrough',\n\t\t'save',\n\t\t'widget-added',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tshowMenuModal: false,\n\t\t\tshowPagesModal: false,\n\t\t\tshowSettingsModal: false,\n\t\t\tshowSidebarModal: false,\n\t\t\tshowAddWidgetModal: false,\n\t\t\tshowActionsModal: false,\n\t\t\tshowDataModal: false,\n\t\t\tshowFlowsCanvasModal: false,\n\t\t\tshowSetupModal: false,\n\t\t\tshowWalkthroughModal: false,\n\t\t\tshowSupportModal: false,\n\t\t\tmenuOpen: false,\n\t\t\tsaving: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * The app id a flow created from here belongs to.\n\t\t *\n\t\t * Read from Nextcloud's own app context rather than the manifest,\n\t\t * because the manifest describes the PAGES an app renders and does not\n\t\t * carry the app's id. Falling back to `openregister` keeps a new flow in\n\t\t * the shared store rather than in an app namespace that does not exist.\n\t\t *\n\t\t * @return {string} The owning app id.\n\t\t */\n\t\tflowApp() {\n\t\t\treturn (window?.OCA?.Theming?.name && window?.appName) || window?.appName || 'openregister'\n\t\t},\n\n\t\t/** Whether to render — the `available` prop OR the injected availability. */\n\t\tisAvailable() {\n\t\t\treturn Boolean(this.available || this.unref(this.cnOpenBuildAvailable))\n\t\t},\n\n\t\t/** Active page id — the `pageId` prop, else the current route name. */\n\t\teffectivePageId() {\n\t\t\treturn this.pageId || (this.$route && this.$route.name) || ''\n\t\t},\n\n\t\t/** The resolved editor (prop wins over inject). */\n\t\tactiveEditor() {\n\t\t\treturn this.editor ?? this.cnManifestEditor ?? null\n\t\t},\n\n\t\t/** Whether edit mode is active. */\n\t\tisEditing() {\n\t\t\treturn Boolean(this.activeEditor && this.unref(this.activeEditor.editing))\n\t\t},\n\n\t\t/** The working manifest copy (or null when not editing). */\n\t\tworkingManifest() {\n\t\t\treturn this.activeEditor ? this.unref(this.activeEditor.working) : null\n\t\t},\n\n\t\t/** The manifest to read page metadata from: working copy, else the live one. */\n\t\teffectiveManifest() {\n\t\t\treturn this.workingManifest || this.unref(this.cnManifest) || null\n\t\t},\n\n\t\t/** The active page object, resolved from the effective manifest. */\n\t\tcurrentPage() {\n\t\t\tconst m = this.effectiveManifest\n\t\t\tconst pages = (m && Array.isArray(m.pages)) ? m.pages : []\n\t\t\treturn pages.find((p) => p && p.id === this.effectivePageId) || null\n\t\t},\n\n\t\t/** Whether the active page is a dashboard (the only page type with widget slots). */\n\t\tisDashboardPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'dashboard')\n\t\t},\n\n\t\t/** Whether the active page is a detail page (its body is an adjustable grid). */\n\t\tisDetailPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'detail')\n\t\t},\n\n\t\t/**\n\t\t * Whether the active page hosts a widget grid that \"Add widget\" can target.\n\t\t * Only dashboard and detail pages do: their bodies are adjustable widget\n\t\t * grids. A `type:\"custom\"` page is the manifest's escape hatch — it renders\n\t\t * a bespoke `component` (or `slots.main`) and owns its own body, so it has\n\t\t * no widget grid to add to. Widget canvases are dashboard pages.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tpageSupportsWidgets() {\n\t\t\treturn this.isDashboardPage || this.isDetailPage\n\t\t},\n\n\t\t/**\n\t\t * The widget-picker surface for \"Add widget\". Detail pages get\n\t\t * `'detail-page'` so detail-only types (notably a second `data` widget)\n\t\t * appear alongside the universal widgets; dashboards keep the default\n\t\t * dashboard surface.\n\t\t *\n\t\t * @return {string} the surface key.\n\t\t */\n\t\taddWidgetSurface() {\n\t\t\treturn this.isDetailPage ? 'detail-page' : 'app-dashboard'\n\t\t},\n\n\t\t/**\n\t\t * The active detail page's `{ register, schema }` (from its config),\n\t\t * forwarded to the Add-widget modal so the data sub-form resolves the\n\t\t * right schema regardless of the modal's DOM position. Null for non-detail\n\t\t * pages.\n\t\t *\n\t\t * @return {{register: string, schema: string}|null} the page context.\n\t\t */\n\t\taddWidgetDataContext() {\n\t\t\tif (!this.isDetailPage) {\n\t\t\t\treturn null\n\t\t\t}\n\t\t\tconst cfg = (this.currentPage && this.currentPage.config) || {}\n\t\t\treturn { register: cfg.register || '', schema: cfg.schema || '' }\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\t\t/**\n\t\t * Read a value that may be a Vue ref or a plain value.\n\t\t *\n\t\t * @param {unknown} maybeRef A Vue ref or plain value.\n\t\t * @return {unknown} The unwrapped value.\n\t\t */\n\t\tunref(maybeRef) {\n\t\t\treturn maybeRef && typeof maybeRef === 'object' && 'value' in maybeRef ? maybeRef.value : maybeRef\n\t\t},\n\n\t\t/** Enter edit mode, or persist + leave when already editing. */\n\t\tasync onToggleEdit() {\n\t\t\tif (!this.activeEditor || this.saving) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (this.isEditing) {\n\t\t\t\t// Show a spinner in the (kept-open) menu while the save persists,\n\t\t\t\t// then close the menu once it settles — pass or fail.\n\t\t\t\tthis.saving = true\n\t\t\t\ttry {\n\t\t\t\t\tconst delta = await this.activeEditor.save()\n\t\t\t\t\t/**\n\t\t\t\t\t * @event save Emitted after a successful save with the minimal delta.\n\t\t\t\t\t * @type {object}\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('save', delta)\n\t\t\t\t} finally {\n\t\t\t\t\tthis.saving = false\n\t\t\t\t\tthis.menuOpen = false\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\t/**\n\t\t\t\t * @event edit Emitted when edit mode is entered.\n\t\t\t\t */\n\t\t\t\tthis.$emit('edit')\n\t\t\t\tthis.menuOpen = false\n\t\t\t}\n\t\t},\n\n\t\t/** Discard edits and leave edit mode. */\n\t\tonCancel() {\n\t\t\tif (this.activeEditor) {\n\t\t\t\tthis.activeEditor.cancel()\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event cancel Emitted when edits are discarded.\n\t\t\t */\n\t\t\tthis.$emit('cancel')\n\t\t},\n\n\t\t/** Open the Add-widget modal (only in edit mode). */\n\t\tonAddWidget() {\n\t\t\tif (!this.isEditing) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.showAddWidgetModal = true\n\t\t\t/**\n\t\t\t * @event add-widget Emitted when \"Add widget…\" is activated in edit mode.\n\t\t\t */\n\t\t\tthis.$emit('add-widget')\n\t\t},\n\n\t\t/**\n\t\t * Append the chosen widget to the active page's body slot in the working\n\t\t * manifest. The new entry stacks below existing body widgets at full width.\n\t\t *\n\t\t * @param {{ type: string, content: object }} payload The modal's submit payload.\n\t\t */\n\t\tonAddWidgetSubmit(payload) {\n\t\t\tthis.showAddWidgetModal = false\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest || !payload || !payload.type) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? pages[0]\n\t\t\tif (!page) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst content = payload.content && typeof payload.content === 'object' ? { ...payload.content } : (getDefaultContent(payload.type) || {})\n\t\t\tconst wid = `w-${payload.type}-${Date.now()}`\n\n\t\t\t// Appearance (chrome) chosen in the modal — title visibility/label,\n\t\t\t// icon and background — applied to the widget entry the renderer reads.\n\t\t\tconst chrome = payload.chrome && typeof payload.chrome === 'object' ? payload.chrome : {}\n\t\t\tconst entry = getWidgetTypeEntry(payload.type)\n\t\t\tconst isCard = Boolean(entry && entry.card === true)\n\t\t\tconst chromeFields = {\n\t\t\t\t// Never fall back to the raw type key — that shipped widgets titled\n\t\t\t\t// literally \"stat\". A card's own `content.label` is the best name,\n\t\t\t\t// then the registry's display name.\n\t\t\t\ttitle: chrome.customTitle || content.title || content.label\n\t\t\t\t\t|| entry?.displayName || payload.type,\n\n\t\t\t\t// Cards headline themselves via `content.label`, so they default\n\t\t\t\t// headerless unless the modal explicitly asked for a header.\n\t\t\t\tshowTitle: typeof chrome.showTitle === 'boolean' ? chrome.showTitle : !isCard,\n\t\t\t\t...(chrome.customIcon ? { icon: chrome.customIcon } : {}),\n\t\t\t\t...(chrome.backgroundColor ? { styleConfig: { backgroundColor: chrome.backgroundColor } } : {}),\n\t\t\t}\n\n\t\t\t// Dashboard AND detail pages keep widgets in config.widgets +\n\t\t\t// config.layout (a detail page's grid is ejected there on edit — see\n\t\t\t// ejectDetailGridIfNeeded). A v2 page keeps them in pages[].widgets[]\n\t\t\t// (slot-based). Append to whichever this page uses so the new widget\n\t\t\t// lands where the renderer reads.\n\t\t\t// Append IN PLACE (`push`), never by replacing the array. These arrays\n\t\t\t// reach the grid as props via CnPageRenderer's `resolvedProps`, which\n\t\t\t// does NOT re-derive when `config.widgets` / `config.layout` are\n\t\t\t// swapped for new arrays — the page component keeps its original array\n\t\t\t// and the widget never appears at all. Mutating the array the props\n\t\t\t// already point at is what makes the addition visible. (Rendering the\n\t\t\t// new card correctly also needs CnDashboardPage to resolve widget defs\n\t\t\t// through a live lookup rather than a cached map — see getWidgetDef.)\n\t\t\tconst cfg = page.config && typeof page.config === 'object' && !Array.isArray(page.config) ? page.config : null\n\t\t\tif ((page.type === 'dashboard' || page.type === 'detail') && cfg) {\n\t\t\t\tif (!Array.isArray(cfg.widgets)) {\n\t\t\t\t\tcfg.widgets = []\n\t\t\t\t}\n\t\t\t\tif (!Array.isArray(cfg.layout)) {\n\t\t\t\t\tcfg.layout = []\n\t\t\t\t}\n\t\t\t\tconst nextY = cfg.layout.reduce((max, l) => Math.max(max, (l.gridY || 0) + (l.gridHeight || 1)), 0)\n\t\t\t\tcfg.widgets.push({ id: wid, type: payload.type, ...chromeFields, content })\n\t\t\t\tcfg.layout.push({ id: cfg.layout.length + 1, widgetId: wid, gridX: 0, gridY: nextY, gridWidth: 6, gridHeight: 3 })\n\t\t\t} else {\n\t\t\t\tif (!Array.isArray(page.widgets)) {\n\t\t\t\t\tpage.widgets = []\n\t\t\t\t}\n\t\t\t\tconst bodyWidgets = page.widgets.filter((w) => w && w.slot === 'body')\n\t\t\t\tconst nextY = bodyWidgets.reduce((max, w) => Math.max(max, (w.gridY || 0) + (w.gridHeight || 1)), 0)\n\t\t\t\tpage.widgets.push({\n\t\t\t\t\tid: wid,\n\t\t\t\t\twidgetKey: payload.type,\n\t\t\t\t\tslot: 'body',\n\t\t\t\t\tgridX: 0,\n\t\t\t\t\tgridY: nextY,\n\t\t\t\t\tgridWidth: 12,\n\t\t\t\t\tgridHeight: 3,\n\t\t\t\t\t...chromeFields,\n\t\t\t\t\tprops: content,\n\t\t\t\t})\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event widget-added Emitted after a widget is appended to the working manifest.\n\t\t\t * @type {{ type: string, content: object }}\n\t\t\t */\n\t\t\tthis.$emit('widget-added', payload)\n\t\t},\n\n\t\t/**\n\t\t * Ensure an edit session is active so the modals have a `working` copy to\n\t\t * mutate. Opening Edit menu / sidebar / actions enters edit mode if not\n\t\t * already editing (otherwise the modals would bind to a null working copy).\n\t\t */\n\t\tensureEditing() {\n\t\t\tif (this.activeEditor && !this.isEditing) {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\tthis.$emit('edit')\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * \"Eject\" the default detail-page body grid into the working manifest on\n\t\t * first edit: when the active page is a `type:\"detail\"` whose config has no\n\t\t * explicit `widgets`, seed `config.widgets`/`config.layout` with the same\n\t\t * Data + Related defaults CnDetailPage renders in memory. From then on the\n\t\t * grid is manifest-backed, so resize, per-property config and Add widget\n\t\t * all mutate the working manifest in place and persist on Save. Identical\n\t\t * defaults mean ejecting never visually changes the page. No-op for\n\t\t * non-detail pages or pages already carrying a widget grid.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tejectDetailGridIfNeeded() {\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? null\n\t\t\tif (!page || page.type !== 'detail') {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (!page.config || typeof page.config !== 'object' || Array.isArray(page.config)) {\n\t\t\t\tpage.config = {}\n\t\t\t}\n\t\t\tconst cfg = page.config\n\t\t\t// Already customised (ejected before, or a hand-authored grid page).\n\t\t\tif (Array.isArray(cfg.widgets) && cfg.widgets.length > 0) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst grid = defaultDetailGrid({\n\t\t\t\tregister: cfg.register || '',\n\t\t\t\tschema: cfg.schema || '',\n\t\t\t\tshowRelated: cfg.showRelatedObjects !== false,\n\t\t\t})\n\t\t\tcfg.widgets = grid.widgets\n\t\t\tcfg.layout = grid.layout\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the pages editor modal. */\n\t\tonEditPages() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showPagesModal = true\n\t\t\t/**\n\t\t\t * @event edit-pages Emitted when the pages editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-pages')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the menu editor modal. */\n\t\tonEditMenu() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showMenuModal = true\n\t\t\t/**\n\t\t\t * @event edit-menu Emitted when the menu editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-menu')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the settings editor modal. */\n\t\tonEditSettings() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSettingsModal = true\n\t\t\t/**\n\t\t\t * @event edit-settings Emitted when the settings editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-settings')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the sidebar editor modal. */\n\t\tonEditSidebar() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSidebarModal = true\n\t\t\t/**\n\t\t\t * @event edit-sidebar Emitted when the sidebar editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-sidebar')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the actions editor modal. */\n\t\tonEditActions() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showActionsModal = true\n\t\t\t/**\n\t\t\t * @event edit-actions Emitted when the actions editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-actions')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the setup-wizard editor modal. */\n\t\tonEditSetup() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSetupModal = true\n\t\t\t/**\n\t\t\t * @event edit-setup Emitted when the setup-wizard editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-setup')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the walkthrough editor modal. */\n\t\tonEditWalkthrough() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showWalkthroughModal = true\n\t\t\t/**\n\t\t\t * @event edit-walkthrough Emitted when the walkthrough editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-walkthrough')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the support/donation editor modal. */\n\t\tonEditSupport() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSupportModal = true\n\t\t\t/**\n\t\t\t * @event edit-support Emitted when the support/donation editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-support')\n\t\t},\n\n\t\t/**\n\t\t * Open the data (register + schemas) editor. Unlike the manifest editors\n\t\t * this does NOT enter manifest edit mode — it manages OpenRegister\n\t\t * registers/schemas directly via the API.\n\t\t */\n\t\tonEditData() {\n\t\t\tthis.showDataModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-data Emitted when the data (register/schema) editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-data')\n\t\t},\n\n\t\t/**\n\t\t * Open the flow editor. Like Edit data, this edits OpenRegister directly\n\t\t * and does NOT enter manifest edit mode.\n\t\t *\n\t\t * This used to edit a schema's `x-openregister-flows` as a flat\n\t\t * `{name, trigger, actions[]}` list, through two interchangeable editors\n\t\t * (a form and a canvas). That dialect and the service that executed it\n\t\t * are gone: a flow is now a node/edge document in OpenRegister's one flow\n\t\t * store, and there is one editor for it.\n\t\t */\n\t\tonEditFlows() {\n\t\t\tthis.showFlowsCanvasModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-flows Emitted when the flows editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-flows')\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-buildiq-edit {\n\tdisplay: inline-flex;\n}\n\n/* Conduction-orange accent on the trigger (ADR-041 brand exception). Targets the\n NcActions trigger button — `.button-vue` in current @nextcloud/vue (icon-only\n mode renders no `.action-item__menutoggle`), with the legacy class kept too.\n `!important` beats the `button-vue--tertiary` transparent default. */\n.cn-buildiq-edit__actions :deep(.button-vue),\n.cn-buildiq-edit__actions :deep(.action-item__menutoggle) {\n\tbackground-color: var(--cn-buildiq-color, var(--c-orange-knvb, #f36c21)) !important;\n\tcolor: #fff !important;\n\tborder-radius: var(--border-radius-element, var(--border-radius-large, 8px));\n}\n\n/* Center the glyph in the icon-only trigger (button-vue__icon is display:block\n by default, which left-aligns the 20×20 svg). */\n.cn-buildiq-edit__actions :deep(.button-vue__wrapper) {\n\tjustify-content: center;\n}\n\n.cn-buildiq-edit__actions :deep(.button-vue__icon) {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: #fff;\n}\n\n.cn-buildiq-edit__glyph {\n\tcolor: #fff;\n\tdisplay: block;\n\tmargin: auto;\n}\n</style>\n"],"names":["CnEditMenuModal","CnEditPagesModal","CnEditSettingsModal","CnEditSidebarModal","CnEditActionsModal","CnAddWidgetModal","CnEditDataModal","CnFlowEditModal","CnEditSetupModal","CnEditWalkthroughModal","CnEditSupportModal","t"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA,aAAe;CACd,IAAI,EAAE,qBAAqB;;CAE3B,UAAU,EAAE;AACX,EAAA,SAAS;AACT,EAAA,cAAc;AACd,EAAA,QAAQ;EACR,aAAa;AACb,EAAA,MAAM;EACN,WAAW;EACX,IAAI;AACJ,EAAA,QAAQ;EACR,KAAK;EACL,YAAY;EACZ,sBAAsB;AACtB,EAAA,gBAAgB;AAChB,EAAA,QAAQ;AACR,EAAA,OAAO;AACP,mBAAAA,UAAe;AACf,oBAAAC,YAAgB;AAChB,uBAAAC,YAAmB;AACnB,sBAAAC,YAAkB;AAClB,sBAAAC,YAAkB;AAClB,oBAAAC,YAAgB;AAChB,mBAAAC,YAAe;AACf,mBAAAC,YAAe;AACf,oBAAAC,YAAgB;0BAChBC,YAAsB;AACtB,sBAAAC,YAAkB;EAClB;;AAED,CAAA,MAAM,EAAE;AACP;AACA,EAAA,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM;AACnC;AACC;AACA;AACA;AACA;;;AAGD,EAAA,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO;AACxC;EACA,UAAU,EAAE,EAAE,OAAO,EAAE,IAAG,EAAG;EAC7B;;AAED,CAAA,KAAK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qB,GAAE,KAAG;AAC/B,GAAA,IAAI,CAAC,QAAS,GAAE,MAAI;AACpB;;;GAGA,IAAI,CAAC,KAAK,CAAC,YAAY,EAAA;GACvB;EACD;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"CnBuildiqEditButton.vue2.js","sources":["../../../../src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue"],"sourcesContent":["<!--\n CnBuildiqEditButton — the universal in-app edit entry point (ADR-041).\n\n A Conduction-orange icon button bearing the Buildiq glyph, meant to sit\n immediately to the right of a page's refresh control. It renders nothing\n unless `available` is true, and is deliberately Buildiq-agnostic: it never\n imports Buildiq app code and never calls `useAppStatus` — availability is\n passed in (wire it from `useBuildiqEditAvailability()`).\n\n Its action menu drives the shared `useManifestEditor` instance (passed as\n `editor`): Edit page ⇄ Save page, Add widget (disabled unless editing),\n Edit menu…, Edit sidebar…. Save emits `@save(delta)` with the minimal delta.\n-->\n<template>\n\t<!-- `href` without an editor (an admin settings page has no CnAppRoot):\n\t the square is a link that opens the app in edit mode. -->\n\t<div v-if=\"isAvailable && href && !activeEditor\" class=\"cn-buildiq-edit\">\n\t\t<span class=\"cn-buildiq-edit__actions\">\n\t\t\t<NcButton\n\t\t\t\t:href=\"href\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\t:title=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\tdata-testid=\"cn-buildiq-edit-link\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t</span>\n\t</div>\n\t<div v-else-if=\"isAvailable\" class=\"cn-buildiq-edit\">\n\t\t<NcActions\n\t\t\tv-model:open=\"menuOpen\"\n\t\t\taria-label=\"buildiq\"\n\t\t\tclass=\"cn-buildiq-edit__actions\"\n\t\t\t:class=\"[{ 'cn-buildiq-edit__actions--editing': isEditing }]\">\n\t\t\t<template #icon>\n\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\twidth=\"20\"\n\t\t\t\t\theight=\"20\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t</svg>\n\t\t\t</template>\n\n\t\t\t<!-- Save keeps the menu open while persisting so the spinner that\n\t\t\t replaces the save icon stays visible; onToggleEdit closes it\n\t\t\t once the async save settles. -->\n\t\t\t<NcActionButton :closeAfterClick=\"false\" :disabled=\"saving\" @click=\"onToggleEdit\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcLoadingIcon v-if=\"saving\" :size=\"20\" />\n\t\t\t\t\t<Pencil v-else-if=\"!isEditing\" :size=\"20\" />\n\t\t\t\t\t<ContentSave v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ saving ? t('nextcloud-vue', 'Saving…') : (isEditing ? t('nextcloud-vue', 'Save page') : t('nextcloud-vue', 'Edit page')) }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- Widget grids live on dashboard pages and (since the detail-grid\n\t\t\t change) detail pages, whose body is an adjustable grid seeded with\n\t\t\t Data + Related. Index/custom pages have no widget slots, so hide\n\t\t\t Add widget there. -->\n\t\t\t<NcActionButton v-if=\"pageSupportsWidgets\"\n\t\t\t\t:disabled=\"!isEditing\"\n\t\t\t\t:closeAfterClick=\"true\"\n\t\t\t\t@click=\"onAddWidget\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Add widget…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditPages\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FileMultiple :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit pages…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditMenu\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<MenuIcon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit menu…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditSidebar\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<PageLayoutSidebarRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit sidebar…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditActions\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<GestureTapButton :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit actions…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- The four APP-LEVEL editors (settings, setup wizard,\n\t\t\t walkthrough, support & donation) used to sit here. They edit\n\t\t\t the app's chrome rather than the page you are standing on, so\n\t\t\t they now live on the app detail page, where the whole app is\n\t\t\t in view. This menu is page-local: pages, menu, sidebar,\n\t\t\t actions, data, flows.\n\n\t\t\t `onEditSettings` / `onEditSetup` / `onEditWalkthrough` /\n\t\t\t `onEditSupport` and the modals they open are deliberately\n\t\t\t KEPT. They are no longer reachable from this menu, but they\n\t\t\t remain callable on a template ref, so a consumer that wants\n\t\t\t one of these editors on its own surface has it without\n\t\t\t re-implementing the modal. Removing them would be a breaking\n\t\t\t change to that API for a menu-layout decision. -->\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditData\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Database :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit data…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditFlows\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Sitemap :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit flows…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-if=\"isEditing\" :closeAfterClick=\"true\" @click=\"onCancel\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Cancel') }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<CnEditPagesModal\n\t\t\tv-if=\"showPagesModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showPagesModal = false\" />\n\t\t<CnEditMenuModal\n\t\t\tv-if=\"showMenuModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showMenuModal = false\" />\n\t\t<CnEditSettingsModal\n\t\t\tv-if=\"showSettingsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSettingsModal = false\" />\n\t\t<CnEditSidebarModal\n\t\t\tv-if=\"showSidebarModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showSidebarModal = false\" />\n\t\t<CnAddWidgetModal\n\t\t\tv-if=\"showAddWidgetModal\"\n\t\t\t:show=\"showAddWidgetModal\"\n\t\t\t:surface=\"addWidgetSurface\"\n\t\t\t:data-context=\"addWidgetDataContext\"\n\t\t\t@submit=\"onAddWidgetSubmit\"\n\t\t\t@close=\"showAddWidgetModal = false\" />\n\t\t<CnEditActionsModal\n\t\t\tv-if=\"showActionsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showActionsModal = false\" />\n\t\t<CnEditDataModal\n\t\t\tv-if=\"showDataModal\"\n\t\t\t:manifest=\"effectiveManifest\"\n\t\t\t@close=\"showDataModal = false\" />\n\t\t<CnFlowEditModal\n\t\t\tv-if=\"showFlowsCanvasModal\"\n\t\t\t:app=\"flowApp\"\n\t\t\tflowId=\"new\"\n\t\t\t@close=\"showFlowsCanvasModal = false\" />\n\t\t<CnEditSetupModal\n\t\t\tv-if=\"showSetupModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSetupModal = false\" />\n\t\t<CnEditWalkthroughModal\n\t\t\tv-if=\"showWalkthroughModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showWalkthroughModal = false\" />\n\t\t<CnEditSupportModal\n\t\t\tv-if=\"showSupportModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSupportModal = false\" />\n\t</div>\n</template>\n\n<script>\nimport { translate as t } from '@nextcloud/l10n'\nimport { NcActionButton, NcActions, NcButton, NcLoadingIcon } from '@nextcloud/vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport ContentSave from 'vue-material-design-icons/ContentSave.vue'\nimport Database from 'vue-material-design-icons/Database.vue'\nimport FileMultiple from 'vue-material-design-icons/FileMultiple.vue'\nimport GestureTapButton from 'vue-material-design-icons/GestureTapButton.vue'\nimport MenuIcon from 'vue-material-design-icons/Menu.vue'\nimport PageLayoutSidebarRight from 'vue-material-design-icons/PageLayoutSidebarRight.vue'\nimport Pencil from 'vue-material-design-icons/Pencil.vue'\nimport Plus from 'vue-material-design-icons/Plus.vue'\nimport Sitemap from 'vue-material-design-icons/Sitemap.vue'\nimport CnAddWidgetModal from '../../dialogs/CnAddWidgetModal.vue'\nimport CnEditActionsModal from '../../dialogs/CnEditActionsModal.vue'\nimport CnEditDataModal from '../../dialogs/CnEditDataModal.vue'\nimport CnEditMenuModal from '../../dialogs/CnEditMenuModal.vue'\nimport CnEditPagesModal from '../../dialogs/CnEditPagesModal.vue'\nimport CnEditSettingsModal from '../../dialogs/CnEditSettingsModal.vue'\nimport CnEditSetupModal from '../../dialogs/CnEditSetupModal.vue'\nimport CnEditSidebarModal from '../../dialogs/CnEditSidebarModal.vue'\nimport CnEditSupportModal from '../../dialogs/CnEditSupportModal.vue'\nimport CnEditWalkthroughModal from '../../dialogs/CnEditWalkthroughModal.vue'\nimport CnFlowEditModal from '../../dialogs/CnFlowEditModal.vue'\nimport { defaultDetailGrid } from '../../utils/defaultDetailGrid.js'\nimport { getDefaultContent, getWidgetTypeEntry } from '../CnWidgetGrid/dashboardWidgetRegistry.js'\n\nexport default {\n\tname: 'CnBuildiqEditButton',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcButton,\n\t\tNcLoadingIcon,\n\t\tPencil,\n\t\tContentSave,\n\t\tPlus,\n\t\tMenuIcon,\n\t\tClose,\n\t\tFileMultiple,\n\t\tPageLayoutSidebarRight,\n\t\tGestureTapButton,\n\t\tDatabase,\n\t\tSitemap,\n\t\tCnEditMenuModal,\n\t\tCnEditPagesModal,\n\t\tCnEditSettingsModal,\n\t\tCnEditSidebarModal,\n\t\tCnEditActionsModal,\n\t\tCnAddWidgetModal,\n\t\tCnEditDataModal,\n\t\tCnFlowEditModal,\n\t\tCnEditSetupModal,\n\t\tCnEditWalkthroughModal,\n\t\tCnEditSupportModal,\n\t},\n\n\tinject: {\n\t\t/** Shared editor instance published by CnAppRoot; overridden by the `editor` prop. */\n\t\tcnManifestEditor: { default: null },\n\t\t/**\n\t\t * Buildiq availability published by CnAppRoot; overridden by the `available` prop.\n\t\t *\n\t\t * The inject key keeps its `cnOpenBuildAvailable` spelling on purpose: it is a\n\t\t * runtime provide/inject contract that consumer apps may already read, so the\n\t\t * 2026-08-21 OpenBuild → Buildiq rename deliberately left it untouched.\n\t\t */\n\t\tcnOpenBuildAvailable: { default: false },\n\t\t/** The live (published) manifest published by CnAppRoot — read when not editing. */\n\t\tcnManifest: { default: null },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Whether Buildiq is available to this user. When falsey the component\n\t\t * renders nothing. Wire from `useBuildiqEditAvailability()`.\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\tavailable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The shared `useManifestEditor` instance (`{ editing, working, dirty,\n\t\t * enter, cancel, save }`). Falls back to the injected `cnManifestEditor`.\n\t\t *\n\t\t * @type {object|null}\n\t\t */\n\t\teditor: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The active page's id, forwarded to `CnEditSidebarModal` so it edits the\n\t\t * right page's sidebar config.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tpageId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Where the square leads when there is no manifest editor on the page\n\t\t * (an admin settings page): the app with `cn_edit=1`, which CnAppRoot\n\t\t * opens in edit mode. Ignored where an editor is available.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\thref: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'add-widget',\n\t\t'cancel',\n\t\t'edit',\n\t\t'edit-actions',\n\t\t'edit-data',\n\t\t'edit-flows',\n\t\t'edit-menu',\n\t\t'edit-pages',\n\t\t'edit-settings',\n\t\t'edit-setup',\n\t\t'edit-sidebar',\n\t\t'edit-support',\n\t\t'edit-walkthrough',\n\t\t'save',\n\t\t'widget-added',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tshowMenuModal: false,\n\t\t\tshowPagesModal: false,\n\t\t\tshowSettingsModal: false,\n\t\t\tshowSidebarModal: false,\n\t\t\tshowAddWidgetModal: false,\n\t\t\tshowActionsModal: false,\n\t\t\tshowDataModal: false,\n\t\t\tshowFlowsCanvasModal: false,\n\t\t\tshowSetupModal: false,\n\t\t\tshowWalkthroughModal: false,\n\t\t\tshowSupportModal: false,\n\t\t\tmenuOpen: false,\n\t\t\tsaving: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * The app id a flow created from here belongs to.\n\t\t *\n\t\t * Read from Nextcloud's own app context rather than the manifest,\n\t\t * because the manifest describes the PAGES an app renders and does not\n\t\t * carry the app's id. Falling back to `openregister` keeps a new flow in\n\t\t * the shared store rather than in an app namespace that does not exist.\n\t\t *\n\t\t * @return {string} The owning app id.\n\t\t */\n\t\tflowApp() {\n\t\t\treturn (window?.OCA?.Theming?.name && window?.appName) || window?.appName || 'openregister'\n\t\t},\n\n\t\t/** Whether to render — the `available` prop OR the injected availability. */\n\t\tisAvailable() {\n\t\t\treturn Boolean(this.available || this.unref(this.cnOpenBuildAvailable))\n\t\t},\n\n\t\t/** Active page id — the `pageId` prop, else the current route name. */\n\t\teffectivePageId() {\n\t\t\treturn this.pageId || (this.$route && this.$route.name) || ''\n\t\t},\n\n\t\t/** The resolved editor (prop wins over inject). */\n\t\tactiveEditor() {\n\t\t\treturn this.editor ?? this.cnManifestEditor ?? null\n\t\t},\n\n\t\t/** Whether edit mode is active. */\n\t\tisEditing() {\n\t\t\treturn Boolean(this.activeEditor && this.unref(this.activeEditor.editing))\n\t\t},\n\n\t\t/** The working manifest copy (or null when not editing). */\n\t\tworkingManifest() {\n\t\t\treturn this.activeEditor ? this.unref(this.activeEditor.working) : null\n\t\t},\n\n\t\t/** @return {string} Where flows open in list mode, '' for an app without such a page. */\n\t\tflowListRoute() {\n\t\t\tconst page = (this.effectiveManifest?.pages || []).find((candidate) => ['flow', 'flow-detail'].includes(candidate?.type) && candidate?.config?.listMode === true)\n\n\t\t\treturn page ? String(page.route || '').replace(':id', 'new') : ''\n\t\t},\n\n\t\t/** The manifest to read page metadata from: working copy, else the live one. */\n\t\teffectiveManifest() {\n\t\t\treturn this.workingManifest || this.unref(this.cnManifest) || null\n\t\t},\n\n\t\t/** The active page object, resolved from the effective manifest. */\n\t\tcurrentPage() {\n\t\t\tconst m = this.effectiveManifest\n\t\t\tconst pages = (m && Array.isArray(m.pages)) ? m.pages : []\n\t\t\treturn pages.find((p) => p && p.id === this.effectivePageId) || null\n\t\t},\n\n\t\t/** Whether the active page is a dashboard (the only page type with widget slots). */\n\t\tisDashboardPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'dashboard')\n\t\t},\n\n\t\t/** Whether the active page is a detail page (its body is an adjustable grid). */\n\t\tisDetailPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'detail')\n\t\t},\n\n\t\t/**\n\t\t * Whether the active page hosts a widget grid that \"Add widget\" can target.\n\t\t * Only dashboard and detail pages do: their bodies are adjustable widget\n\t\t * grids. A `type:\"custom\"` page is the manifest's escape hatch — it renders\n\t\t * a bespoke `component` (or `slots.main`) and owns its own body, so it has\n\t\t * no widget grid to add to. Widget canvases are dashboard pages.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tpageSupportsWidgets() {\n\t\t\treturn this.isDashboardPage || this.isDetailPage\n\t\t},\n\n\t\t/**\n\t\t * The widget-picker surface for \"Add widget\". Detail pages get\n\t\t * `'detail-page'` so detail-only types (notably a second `data` widget)\n\t\t * appear alongside the universal widgets; dashboards keep the default\n\t\t * dashboard surface.\n\t\t *\n\t\t * @return {string} the surface key.\n\t\t */\n\t\taddWidgetSurface() {\n\t\t\treturn this.isDetailPage ? 'detail-page' : 'app-dashboard'\n\t\t},\n\n\t\t/**\n\t\t * The active detail page's `{ register, schema }` (from its config),\n\t\t * forwarded to the Add-widget modal so the data sub-form resolves the\n\t\t * right schema regardless of the modal's DOM position. Null for non-detail\n\t\t * pages.\n\t\t *\n\t\t * @return {{register: string, schema: string}|null} the page context.\n\t\t */\n\t\taddWidgetDataContext() {\n\t\t\tif (!this.isDetailPage) {\n\t\t\t\treturn null\n\t\t\t}\n\t\t\tconst cfg = (this.currentPage && this.currentPage.config) || {}\n\t\t\treturn { register: cfg.register || '', schema: cfg.schema || '' }\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\t\t/**\n\t\t * Read a value that may be a Vue ref or a plain value.\n\t\t *\n\t\t * @param {unknown} maybeRef A Vue ref or plain value.\n\t\t * @return {unknown} The unwrapped value.\n\t\t */\n\t\tunref(maybeRef) {\n\t\t\treturn maybeRef && typeof maybeRef === 'object' && 'value' in maybeRef ? maybeRef.value : maybeRef\n\t\t},\n\n\t\t/** Enter edit mode, or persist + leave when already editing. */\n\t\tasync onToggleEdit() {\n\t\t\tif (!this.activeEditor || this.saving) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (this.isEditing) {\n\t\t\t\t// Show a spinner in the (kept-open) menu while the save persists,\n\t\t\t\t// then close the menu once it settles — pass or fail.\n\t\t\t\tthis.saving = true\n\t\t\t\ttry {\n\t\t\t\t\tconst delta = await this.activeEditor.save()\n\t\t\t\t\t/**\n\t\t\t\t\t * @event save Emitted after a successful save with the minimal delta.\n\t\t\t\t\t * @type {object}\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('save', delta)\n\t\t\t\t} finally {\n\t\t\t\t\tthis.saving = false\n\t\t\t\t\tthis.menuOpen = false\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\t/**\n\t\t\t\t * @event edit Emitted when edit mode is entered.\n\t\t\t\t */\n\t\t\t\tthis.$emit('edit')\n\t\t\t\tthis.menuOpen = false\n\t\t\t}\n\t\t},\n\n\t\t/** Discard edits and leave edit mode. */\n\t\tonCancel() {\n\t\t\tif (this.activeEditor) {\n\t\t\t\tthis.activeEditor.cancel()\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event cancel Emitted when edits are discarded.\n\t\t\t */\n\t\t\tthis.$emit('cancel')\n\t\t},\n\n\t\t/** Open the Add-widget modal (only in edit mode). */\n\t\tonAddWidget() {\n\t\t\tif (!this.isEditing) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.showAddWidgetModal = true\n\t\t\t/**\n\t\t\t * @event add-widget Emitted when \"Add widget…\" is activated in edit mode.\n\t\t\t */\n\t\t\tthis.$emit('add-widget')\n\t\t},\n\n\t\t/**\n\t\t * Append the chosen widget to the active page's body slot in the working\n\t\t * manifest. The new entry stacks below existing body widgets at full width.\n\t\t *\n\t\t * @param {{ type: string, content: object }} payload The modal's submit payload.\n\t\t */\n\t\tonAddWidgetSubmit(payload) {\n\t\t\tthis.showAddWidgetModal = false\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest || !payload || !payload.type) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? pages[0]\n\t\t\tif (!page) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst content = payload.content && typeof payload.content === 'object' ? { ...payload.content } : (getDefaultContent(payload.type) || {})\n\t\t\tconst wid = `w-${payload.type}-${Date.now()}`\n\n\t\t\t// Appearance (chrome) chosen in the modal — title visibility/label,\n\t\t\t// icon and background — applied to the widget entry the renderer reads.\n\t\t\tconst chrome = payload.chrome && typeof payload.chrome === 'object' ? payload.chrome : {}\n\t\t\tconst entry = getWidgetTypeEntry(payload.type)\n\t\t\tconst isCard = Boolean(entry && entry.card === true)\n\t\t\tconst chromeFields = {\n\t\t\t\t// Never fall back to the raw type key — that shipped widgets titled\n\t\t\t\t// literally \"stat\". A card's own `content.label` is the best name,\n\t\t\t\t// then the registry's display name.\n\t\t\t\ttitle: chrome.customTitle || content.title || content.label\n\t\t\t\t\t|| entry?.displayName || payload.type,\n\n\t\t\t\t// Cards headline themselves via `content.label`, so they default\n\t\t\t\t// headerless unless the modal explicitly asked for a header.\n\t\t\t\tshowTitle: typeof chrome.showTitle === 'boolean' ? chrome.showTitle : !isCard,\n\t\t\t\t...(chrome.customIcon ? { icon: chrome.customIcon } : {}),\n\t\t\t\t...(chrome.backgroundColor ? { styleConfig: { backgroundColor: chrome.backgroundColor } } : {}),\n\t\t\t}\n\n\t\t\t// Dashboard AND detail pages keep widgets in config.widgets +\n\t\t\t// config.layout (a detail page's grid is ejected there on edit — see\n\t\t\t// ejectDetailGridIfNeeded). A v2 page keeps them in pages[].widgets[]\n\t\t\t// (slot-based). Append to whichever this page uses so the new widget\n\t\t\t// lands where the renderer reads.\n\t\t\t// Append IN PLACE (`push`), never by replacing the array. These arrays\n\t\t\t// reach the grid as props via CnPageRenderer's `resolvedProps`, which\n\t\t\t// does NOT re-derive when `config.widgets` / `config.layout` are\n\t\t\t// swapped for new arrays — the page component keeps its original array\n\t\t\t// and the widget never appears at all. Mutating the array the props\n\t\t\t// already point at is what makes the addition visible. (Rendering the\n\t\t\t// new card correctly also needs CnDashboardPage to resolve widget defs\n\t\t\t// through a live lookup rather than a cached map — see getWidgetDef.)\n\t\t\tconst cfg = page.config && typeof page.config === 'object' && !Array.isArray(page.config) ? page.config : null\n\t\t\tif ((page.type === 'dashboard' || page.type === 'detail') && cfg) {\n\t\t\t\tif (!Array.isArray(cfg.widgets)) {\n\t\t\t\t\tcfg.widgets = []\n\t\t\t\t}\n\t\t\t\tif (!Array.isArray(cfg.layout)) {\n\t\t\t\t\tcfg.layout = []\n\t\t\t\t}\n\t\t\t\tconst nextY = cfg.layout.reduce((max, l) => Math.max(max, (l.gridY || 0) + (l.gridHeight || 1)), 0)\n\t\t\t\tcfg.widgets.push({ id: wid, type: payload.type, ...chromeFields, content })\n\t\t\t\tcfg.layout.push({ id: cfg.layout.length + 1, widgetId: wid, gridX: 0, gridY: nextY, gridWidth: 6, gridHeight: 3 })\n\t\t\t} else {\n\t\t\t\tif (!Array.isArray(page.widgets)) {\n\t\t\t\t\tpage.widgets = []\n\t\t\t\t}\n\t\t\t\tconst bodyWidgets = page.widgets.filter((w) => w && w.slot === 'body')\n\t\t\t\tconst nextY = bodyWidgets.reduce((max, w) => Math.max(max, (w.gridY || 0) + (w.gridHeight || 1)), 0)\n\t\t\t\tpage.widgets.push({\n\t\t\t\t\tid: wid,\n\t\t\t\t\twidgetKey: payload.type,\n\t\t\t\t\tslot: 'body',\n\t\t\t\t\tgridX: 0,\n\t\t\t\t\tgridY: nextY,\n\t\t\t\t\tgridWidth: 12,\n\t\t\t\t\tgridHeight: 3,\n\t\t\t\t\t...chromeFields,\n\t\t\t\t\tprops: content,\n\t\t\t\t})\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event widget-added Emitted after a widget is appended to the working manifest.\n\t\t\t * @type {{ type: string, content: object }}\n\t\t\t */\n\t\t\tthis.$emit('widget-added', payload)\n\t\t},\n\n\t\t/**\n\t\t * Ensure an edit session is active so the modals have a `working` copy to\n\t\t * mutate. Opening Edit menu / sidebar / actions enters edit mode if not\n\t\t * already editing (otherwise the modals would bind to a null working copy).\n\t\t */\n\t\tensureEditing() {\n\t\t\tif (this.activeEditor && !this.isEditing) {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\tthis.$emit('edit')\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * \"Eject\" the default detail-page body grid into the working manifest on\n\t\t * first edit: when the active page is a `type:\"detail\"` whose config has no\n\t\t * explicit `widgets`, seed `config.widgets`/`config.layout` with the same\n\t\t * Data + Related defaults CnDetailPage renders in memory. From then on the\n\t\t * grid is manifest-backed, so resize, per-property config and Add widget\n\t\t * all mutate the working manifest in place and persist on Save. Identical\n\t\t * defaults mean ejecting never visually changes the page. No-op for\n\t\t * non-detail pages or pages already carrying a widget grid.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tejectDetailGridIfNeeded() {\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? null\n\t\t\tif (!page || page.type !== 'detail') {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (!page.config || typeof page.config !== 'object' || Array.isArray(page.config)) {\n\t\t\t\tpage.config = {}\n\t\t\t}\n\t\t\tconst cfg = page.config\n\t\t\t// Already customised (ejected before, or a hand-authored grid page).\n\t\t\tif (Array.isArray(cfg.widgets) && cfg.widgets.length > 0) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst grid = defaultDetailGrid({\n\t\t\t\tregister: cfg.register || '',\n\t\t\t\tschema: cfg.schema || '',\n\t\t\t\tshowRelated: cfg.showRelatedObjects !== false,\n\t\t\t})\n\t\t\tcfg.widgets = grid.widgets\n\t\t\tcfg.layout = grid.layout\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the pages editor modal. */\n\t\tonEditPages() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showPagesModal = true\n\t\t\t/**\n\t\t\t * @event edit-pages Emitted when the pages editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-pages')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the menu editor modal. */\n\t\tonEditMenu() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showMenuModal = true\n\t\t\t/**\n\t\t\t * @event edit-menu Emitted when the menu editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-menu')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the settings editor modal. */\n\t\tonEditSettings() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSettingsModal = true\n\t\t\t/**\n\t\t\t * @event edit-settings Emitted when the settings editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-settings')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the sidebar editor modal. */\n\t\tonEditSidebar() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSidebarModal = true\n\t\t\t/**\n\t\t\t * @event edit-sidebar Emitted when the sidebar editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-sidebar')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the actions editor modal. */\n\t\tonEditActions() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showActionsModal = true\n\t\t\t/**\n\t\t\t * @event edit-actions Emitted when the actions editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-actions')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the setup-wizard editor modal. */\n\t\tonEditSetup() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSetupModal = true\n\t\t\t/**\n\t\t\t * @event edit-setup Emitted when the setup-wizard editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-setup')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the walkthrough editor modal. */\n\t\tonEditWalkthrough() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showWalkthroughModal = true\n\t\t\t/**\n\t\t\t * @event edit-walkthrough Emitted when the walkthrough editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-walkthrough')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the support/donation editor modal. */\n\t\tonEditSupport() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSupportModal = true\n\t\t\t/**\n\t\t\t * @event edit-support Emitted when the support/donation editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-support')\n\t\t},\n\n\t\t/**\n\t\t * Open the data (register + schemas) editor. Unlike the manifest editors\n\t\t * this does NOT enter manifest edit mode — it manages OpenRegister\n\t\t * registers/schemas directly via the API.\n\t\t */\n\t\tonEditData() {\n\t\t\tthis.showDataModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-data Emitted when the data (register/schema) editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-data')\n\t\t},\n\n\t\t/**\n\t\t * Open the flow editor. Like Edit data, this edits OpenRegister directly\n\t\t * and does NOT enter manifest edit mode.\n\t\t *\n\t\t * This used to edit a schema's `x-openregister-flows` as a flat\n\t\t * `{name, trigger, actions[]}` list, through two interchangeable editors\n\t\t * (a form and a canvas). That dialect and the service that executed it\n\t\t * are gone: a flow is now a node/edge document in OpenRegister's one flow\n\t\t * store, and there is one editor for it.\n\t\t */\n\t\tonEditFlows() {\n\t\t\tif (this.flowListRoute !== '' && this.$router) {\n\t\t\t\tthis.$router.push({ path: this.flowListRoute, query: { view: 'list' } })\n\t\t\t} else {\n\t\t\t\tthis.showFlowsCanvasModal = true\n\t\t\t}\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-flows Emitted when the flows editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-flows')\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-buildiq-edit {\n\tdisplay: inline-flex;\n}\n\n/* Conduction-orange accent on the trigger (ADR-041 brand exception). Targets the\n NcActions trigger button — `.button-vue` in current @nextcloud/vue (icon-only\n mode renders no `.action-item__menutoggle`), with the legacy class kept too.\n `!important` beats the `button-vue--tertiary` transparent default. */\n.cn-buildiq-edit__actions :deep(.button-vue),\n.cn-buildiq-edit__actions :deep(.action-item__menutoggle) {\n\tbackground-color: var(--cn-buildiq-color, var(--c-orange-knvb, #f36c21)) !important;\n\tcolor: #fff !important;\n\tborder-radius: var(--border-radius-element, var(--border-radius-large, 8px));\n}\n\n/* Center the glyph in the icon-only trigger (button-vue__icon is display:block\n by default, which left-aligns the 20×20 svg). */\n.cn-buildiq-edit__actions :deep(.button-vue__wrapper) {\n\tjustify-content: center;\n}\n\n.cn-buildiq-edit__actions :deep(.button-vue__icon) {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: #fff;\n}\n\n.cn-buildiq-edit__glyph {\n\tcolor: #fff;\n\tdisplay: block;\n\tmargin: auto;\n}\n</style>\n"],"names":["CnEditMenuModal","CnEditPagesModal","CnEditSettingsModal","CnEditSidebarModal","CnEditActionsModal","CnAddWidgetModal","CnEditDataModal","CnFlowEditModal","CnEditSetupModal","CnEditWalkthroughModal","CnEditSupportModal","t"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA,aAAe;CACd,IAAI,EAAE,qBAAqB;;CAE3B,UAAU,EAAE;AACX,EAAA,SAAS;AACT,EAAA,cAAc;AACd,EAAA,QAAQ;EACR,aAAa;AACb,EAAA,MAAM;EACN,WAAW;EACX,IAAI;AACJ,EAAA,QAAQ;EACR,KAAK;EACL,YAAY;EACZ,sBAAsB;AACtB,EAAA,gBAAgB;AAChB,EAAA,QAAQ;AACR,EAAA,OAAO;AACP,mBAAAA,UAAe;AACf,oBAAAC,YAAgB;AAChB,uBAAAC,YAAmB;AACnB,sBAAAC,YAAkB;AAClB,sBAAAC,YAAkB;AAClB,oBAAAC,YAAgB;AAChB,mBAAAC,YAAe;AACf,mBAAAC,YAAe;AACf,oBAAAC,YAAgB;0BAChBC,YAAsB;AACtB,sBAAAC,YAAkB;EAClB;;AAED,CAAA,MAAM,EAAE;AACP;AACA,EAAA,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM;AACnC;AACC;AACA;AACA;AACA;;;AAGD,EAAA,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO;AACxC;EACA,UAAU,EAAE,EAAE,OAAO,EAAE,IAAG,EAAG;EAC7B;;AAED,CAAA,KAAK,EAAE;AACN;;;AAGC;AACA;;EAED,SAAS,EAAE;GACV,IAAI,EAAE,OAAO;GACb,OAAO,EAAE,KAAK;GACd;;AAED;;AAEC;AACA;AACA;;AAED,EAAA,MAAM,EAAE;GACP,IAAI,EAAE,MAAM;GACZ,OAA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;;AAGC;;EAED,UAAU,GAAG;GACZ,IAAI,CAAC,gBAAgB,KAAG;AACxB,GAAA,IAAI,CAAC,QAAS,GAAE,MAAI;AACpB;AACC;;GAED,IAAI,CAAC,KAAK,CAAC,WAAW,EAAA;GACtB;;AAED;;AAEC;AACA;;AAEA;;;AAGA;;EAED,WAAW,GAAG;AACb,GAAA,IAAI,IAAI,CAAC,aAAc,KAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AAC9C,IAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,MAAK,IAAK,EAAA;IACtE,MAAK;IACN,IAAI,CAAC,oBAAqB,GAAE,KAAG;AAChC,IAAA;AACA,GAAA,IAAI,CAAC,QAAS,GAAE,MAAI;AACpB;;;GAGA,IAAI,CAAC,KAAK,CAAC,YAAY,EAAA;GACvB;EACD;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CnBuildiqEditButton.vue3.js","sources":["../../../../src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue?vue&type=template&id=e8e28cd0&lang.js"],"sourcesContent":["<!--\n CnBuildiqEditButton — the universal in-app edit entry point (ADR-041).\n\n A Conduction-orange icon button bearing the Buildiq glyph, meant to sit\n immediately to the right of a page's refresh control. It renders nothing\n unless `available` is true, and is deliberately Buildiq-agnostic: it never\n imports Buildiq app code and never calls `useAppStatus` — availability is\n passed in (wire it from `useBuildiqEditAvailability()`).\n\n Its action menu drives the shared `useManifestEditor` instance (passed as\n `editor`): Edit page ⇄ Save page, Add widget (disabled unless editing),\n Edit menu…, Edit sidebar…. Save emits `@save(delta)` with the minimal delta.\n-->\n<template>\n\t<!-- `href` without an editor (an admin settings page has no CnAppRoot):\n\t the square is a link that opens the app in edit mode. -->\n\t<div v-if=\"isAvailable && href && !activeEditor\" class=\"cn-buildiq-edit\">\n\t\t<span class=\"cn-buildiq-edit__actions\">\n\t\t\t<NcButton\n\t\t\t\t:href=\"href\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\t:title=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\tdata-testid=\"cn-buildiq-edit-link\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t</span>\n\t</div>\n\t<div v-else-if=\"isAvailable\" class=\"cn-buildiq-edit\">\n\t\t<NcActions\n\t\t\tv-model:open=\"menuOpen\"\n\t\t\taria-label=\"buildiq\"\n\t\t\tclass=\"cn-buildiq-edit__actions\"\n\t\t\t:class=\"[{ 'cn-buildiq-edit__actions--editing': isEditing }]\">\n\t\t\t<template #icon>\n\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\twidth=\"20\"\n\t\t\t\t\theight=\"20\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t</svg>\n\t\t\t</template>\n\n\t\t\t<!-- Save keeps the menu open while persisting so the spinner that\n\t\t\t replaces the save icon stays visible; onToggleEdit closes it\n\t\t\t once the async save settles. -->\n\t\t\t<NcActionButton :closeAfterClick=\"false\" :disabled=\"saving\" @click=\"onToggleEdit\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcLoadingIcon v-if=\"saving\" :size=\"20\" />\n\t\t\t\t\t<Pencil v-else-if=\"!isEditing\" :size=\"20\" />\n\t\t\t\t\t<ContentSave v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ saving ? t('nextcloud-vue', 'Saving…') : (isEditing ? t('nextcloud-vue', 'Save page') : t('nextcloud-vue', 'Edit page')) }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- Widget grids live on dashboard pages and (since the detail-grid\n\t\t\t change) detail pages, whose body is an adjustable grid seeded with\n\t\t\t Data + Related. Index/custom pages have no widget slots, so hide\n\t\t\t Add widget there. -->\n\t\t\t<NcActionButton v-if=\"pageSupportsWidgets\"\n\t\t\t\t:disabled=\"!isEditing\"\n\t\t\t\t:closeAfterClick=\"true\"\n\t\t\t\t@click=\"onAddWidget\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Add widget…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditPages\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FileMultiple :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit pages…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditMenu\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<MenuIcon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit menu…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditSidebar\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<PageLayoutSidebarRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit sidebar…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditActions\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<GestureTapButton :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit actions…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- The four APP-LEVEL editors (settings, setup wizard,\n\t\t\t walkthrough, support & donation) used to sit here. They edit\n\t\t\t the app's chrome rather than the page you are standing on, so\n\t\t\t they now live on the app detail page, where the whole app is\n\t\t\t in view. This menu is page-local: pages, menu, sidebar,\n\t\t\t actions, data, flows.\n\n\t\t\t `onEditSettings` / `onEditSetup` / `onEditWalkthrough` /\n\t\t\t `onEditSupport` and the modals they open are deliberately\n\t\t\t KEPT. They are no longer reachable from this menu, but they\n\t\t\t remain callable on a template ref, so a consumer that wants\n\t\t\t one of these editors on its own surface has it without\n\t\t\t re-implementing the modal. Removing them would be a breaking\n\t\t\t change to that API for a menu-layout decision. -->\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditData\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Database :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit data…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditFlows\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Sitemap :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit flows…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-if=\"isEditing\" :closeAfterClick=\"true\" @click=\"onCancel\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Cancel') }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<CnEditPagesModal\n\t\t\tv-if=\"showPagesModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showPagesModal = false\" />\n\t\t<CnEditMenuModal\n\t\t\tv-if=\"showMenuModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showMenuModal = false\" />\n\t\t<CnEditSettingsModal\n\t\t\tv-if=\"showSettingsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSettingsModal = false\" />\n\t\t<CnEditSidebarModal\n\t\t\tv-if=\"showSidebarModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showSidebarModal = false\" />\n\t\t<CnAddWidgetModal\n\t\t\tv-if=\"showAddWidgetModal\"\n\t\t\t:show=\"showAddWidgetModal\"\n\t\t\t:surface=\"addWidgetSurface\"\n\t\t\t:data-context=\"addWidgetDataContext\"\n\t\t\t@submit=\"onAddWidgetSubmit\"\n\t\t\t@close=\"showAddWidgetModal = false\" />\n\t\t<CnEditActionsModal\n\t\t\tv-if=\"showActionsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showActionsModal = false\" />\n\t\t<CnEditDataModal\n\t\t\tv-if=\"showDataModal\"\n\t\t\t:manifest=\"effectiveManifest\"\n\t\t\t@close=\"showDataModal = false\" />\n\t\t<CnFlowEditModal\n\t\t\tv-if=\"showFlowsCanvasModal\"\n\t\t\t:app=\"flowApp\"\n\t\t\tflowId=\"new\"\n\t\t\t@close=\"showFlowsCanvasModal = false\" />\n\t\t<CnEditSetupModal\n\t\t\tv-if=\"showSetupModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSetupModal = false\" />\n\t\t<CnEditWalkthroughModal\n\t\t\tv-if=\"showWalkthroughModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showWalkthroughModal = false\" />\n\t\t<CnEditSupportModal\n\t\t\tv-if=\"showSupportModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSupportModal = false\" />\n\t</div>\n</template>\n\n<script>\nimport { translate as t } from '@nextcloud/l10n'\nimport { NcActionButton, NcActions, NcButton, NcLoadingIcon } from '@nextcloud/vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport ContentSave from 'vue-material-design-icons/ContentSave.vue'\nimport Database from 'vue-material-design-icons/Database.vue'\nimport FileMultiple from 'vue-material-design-icons/FileMultiple.vue'\nimport GestureTapButton from 'vue-material-design-icons/GestureTapButton.vue'\nimport MenuIcon from 'vue-material-design-icons/Menu.vue'\nimport PageLayoutSidebarRight from 'vue-material-design-icons/PageLayoutSidebarRight.vue'\nimport Pencil from 'vue-material-design-icons/Pencil.vue'\nimport Plus from 'vue-material-design-icons/Plus.vue'\nimport Sitemap from 'vue-material-design-icons/Sitemap.vue'\nimport CnAddWidgetModal from '../../dialogs/CnAddWidgetModal.vue'\nimport CnEditActionsModal from '../../dialogs/CnEditActionsModal.vue'\nimport CnEditDataModal from '../../dialogs/CnEditDataModal.vue'\nimport CnEditMenuModal from '../../dialogs/CnEditMenuModal.vue'\nimport CnEditPagesModal from '../../dialogs/CnEditPagesModal.vue'\nimport CnEditSettingsModal from '../../dialogs/CnEditSettingsModal.vue'\nimport CnEditSetupModal from '../../dialogs/CnEditSetupModal.vue'\nimport CnEditSidebarModal from '../../dialogs/CnEditSidebarModal.vue'\nimport CnEditSupportModal from '../../dialogs/CnEditSupportModal.vue'\nimport CnEditWalkthroughModal from '../../dialogs/CnEditWalkthroughModal.vue'\nimport CnFlowEditModal from '../../dialogs/CnFlowEditModal.vue'\nimport { defaultDetailGrid } from '../../utils/defaultDetailGrid.js'\nimport { getDefaultContent, getWidgetTypeEntry } from '../CnWidgetGrid/dashboardWidgetRegistry.js'\n\nexport default {\n\tname: 'CnBuildiqEditButton',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcButton,\n\t\tNcLoadingIcon,\n\t\tPencil,\n\t\tContentSave,\n\t\tPlus,\n\t\tMenuIcon,\n\t\tClose,\n\t\tFileMultiple,\n\t\tPageLayoutSidebarRight,\n\t\tGestureTapButton,\n\t\tDatabase,\n\t\tSitemap,\n\t\tCnEditMenuModal,\n\t\tCnEditPagesModal,\n\t\tCnEditSettingsModal,\n\t\tCnEditSidebarModal,\n\t\tCnEditActionsModal,\n\t\tCnAddWidgetModal,\n\t\tCnEditDataModal,\n\t\tCnFlowEditModal,\n\t\tCnEditSetupModal,\n\t\tCnEditWalkthroughModal,\n\t\tCnEditSupportModal,\n\t},\n\n\tinject: {\n\t\t/** Shared editor instance published by CnAppRoot; overridden by the `editor` prop. */\n\t\tcnManifestEditor: { default: null },\n\t\t/**\n\t\t * Buildiq availability published by CnAppRoot; overridden by the `available` prop.\n\t\t *\n\t\t * The inject key keeps its `cnOpenBuildAvailable` spelling on purpose: it is a\n\t\t * runtime provide/inject contract that consumer apps may already read, so the\n\t\t * 2026-08-21 OpenBuild → Buildiq rename deliberately left it untouched.\n\t\t */\n\t\tcnOpenBuildAvailable: { default: false },\n\t\t/** The live (published) manifest published by CnAppRoot — read when not editing. */\n\t\tcnManifest: { default: null },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Whether Buildiq is available to this user. When falsey the component\n\t\t * renders nothing. Wire from `useBuildiqEditAvailability()`.\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\tavailable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The shared `useManifestEditor` instance (`{ editing, working, dirty,\n\t\t * enter, cancel, save }`). Falls back to the injected `cnManifestEditor`.\n\t\t *\n\t\t * @type {object|null}\n\t\t */\n\t\teditor: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The active page's id, forwarded to `CnEditSidebarModal` so it edits the\n\t\t * right page's sidebar config.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tpageId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Where the square leads when there is no manifest editor on the page\n\t\t * (an admin settings page): the app with `cn_edit=1`, which CnAppRoot\n\t\t * opens in edit mode. Ignored where an editor is available.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\thref: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'add-widget',\n\t\t'cancel',\n\t\t'edit',\n\t\t'edit-actions',\n\t\t'edit-data',\n\t\t'edit-flows',\n\t\t'edit-menu',\n\t\t'edit-pages',\n\t\t'edit-settings',\n\t\t'edit-setup',\n\t\t'edit-sidebar',\n\t\t'edit-support',\n\t\t'edit-walkthrough',\n\t\t'save',\n\t\t'widget-added',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tshowMenuModal: false,\n\t\t\tshowPagesModal: false,\n\t\t\tshowSettingsModal: false,\n\t\t\tshowSidebarModal: false,\n\t\t\tshowAddWidgetModal: false,\n\t\t\tshowActionsModal: false,\n\t\t\tshowDataModal: false,\n\t\t\tshowFlowsCanvasModal: false,\n\t\t\tshowSetupModal: false,\n\t\t\tshowWalkthroughModal: false,\n\t\t\tshowSupportModal: false,\n\t\t\tmenuOpen: false,\n\t\t\tsaving: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * The app id a flow created from here belongs to.\n\t\t *\n\t\t * Read from Nextcloud's own app context rather than the manifest,\n\t\t * because the manifest describes the PAGES an app renders and does not\n\t\t * carry the app's id. Falling back to `openregister` keeps a new flow in\n\t\t * the shared store rather than in an app namespace that does not exist.\n\t\t *\n\t\t * @return {string} The owning app id.\n\t\t */\n\t\tflowApp() {\n\t\t\treturn (window?.OCA?.Theming?.name && window?.appName) || window?.appName || 'openregister'\n\t\t},\n\n\t\t/** Whether to render — the `available` prop OR the injected availability. */\n\t\tisAvailable() {\n\t\t\treturn Boolean(this.available || this.unref(this.cnOpenBuildAvailable))\n\t\t},\n\n\t\t/** Active page id — the `pageId` prop, else the current route name. */\n\t\teffectivePageId() {\n\t\t\treturn this.pageId || (this.$route && this.$route.name) || ''\n\t\t},\n\n\t\t/** The resolved editor (prop wins over inject). */\n\t\tactiveEditor() {\n\t\t\treturn this.editor ?? this.cnManifestEditor ?? null\n\t\t},\n\n\t\t/** Whether edit mode is active. */\n\t\tisEditing() {\n\t\t\treturn Boolean(this.activeEditor && this.unref(this.activeEditor.editing))\n\t\t},\n\n\t\t/** The working manifest copy (or null when not editing). */\n\t\tworkingManifest() {\n\t\t\treturn this.activeEditor ? this.unref(this.activeEditor.working) : null\n\t\t},\n\n\t\t/** The manifest to read page metadata from: working copy, else the live one. */\n\t\teffectiveManifest() {\n\t\t\treturn this.workingManifest || this.unref(this.cnManifest) || null\n\t\t},\n\n\t\t/** The active page object, resolved from the effective manifest. */\n\t\tcurrentPage() {\n\t\t\tconst m = this.effectiveManifest\n\t\t\tconst pages = (m && Array.isArray(m.pages)) ? m.pages : []\n\t\t\treturn pages.find((p) => p && p.id === this.effectivePageId) || null\n\t\t},\n\n\t\t/** Whether the active page is a dashboard (the only page type with widget slots). */\n\t\tisDashboardPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'dashboard')\n\t\t},\n\n\t\t/** Whether the active page is a detail page (its body is an adjustable grid). */\n\t\tisDetailPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'detail')\n\t\t},\n\n\t\t/**\n\t\t * Whether the active page hosts a widget grid that \"Add widget\" can target.\n\t\t * Only dashboard and detail pages do: their bodies are adjustable widget\n\t\t * grids. A `type:\"custom\"` page is the manifest's escape hatch — it renders\n\t\t * a bespoke `component` (or `slots.main`) and owns its own body, so it has\n\t\t * no widget grid to add to. Widget canvases are dashboard pages.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tpageSupportsWidgets() {\n\t\t\treturn this.isDashboardPage || this.isDetailPage\n\t\t},\n\n\t\t/**\n\t\t * The widget-picker surface for \"Add widget\". Detail pages get\n\t\t * `'detail-page'` so detail-only types (notably a second `data` widget)\n\t\t * appear alongside the universal widgets; dashboards keep the default\n\t\t * dashboard surface.\n\t\t *\n\t\t * @return {string} the surface key.\n\t\t */\n\t\taddWidgetSurface() {\n\t\t\treturn this.isDetailPage ? 'detail-page' : 'app-dashboard'\n\t\t},\n\n\t\t/**\n\t\t * The active detail page's `{ register, schema }` (from its config),\n\t\t * forwarded to the Add-widget modal so the data sub-form resolves the\n\t\t * right schema regardless of the modal's DOM position. Null for non-detail\n\t\t * pages.\n\t\t *\n\t\t * @return {{register: string, schema: string}|null} the page context.\n\t\t */\n\t\taddWidgetDataContext() {\n\t\t\tif (!this.isDetailPage) {\n\t\t\t\treturn null\n\t\t\t}\n\t\t\tconst cfg = (this.currentPage && this.currentPage.config) || {}\n\t\t\treturn { register: cfg.register || '', schema: cfg.schema || '' }\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\t\t/**\n\t\t * Read a value that may be a Vue ref or a plain value.\n\t\t *\n\t\t * @param {unknown} maybeRef A Vue ref or plain value.\n\t\t * @return {unknown} The unwrapped value.\n\t\t */\n\t\tunref(maybeRef) {\n\t\t\treturn maybeRef && typeof maybeRef === 'object' && 'value' in maybeRef ? maybeRef.value : maybeRef\n\t\t},\n\n\t\t/** Enter edit mode, or persist + leave when already editing. */\n\t\tasync onToggleEdit() {\n\t\t\tif (!this.activeEditor || this.saving) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (this.isEditing) {\n\t\t\t\t// Show a spinner in the (kept-open) menu while the save persists,\n\t\t\t\t// then close the menu once it settles — pass or fail.\n\t\t\t\tthis.saving = true\n\t\t\t\ttry {\n\t\t\t\t\tconst delta = await this.activeEditor.save()\n\t\t\t\t\t/**\n\t\t\t\t\t * @event save Emitted after a successful save with the minimal delta.\n\t\t\t\t\t * @type {object}\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('save', delta)\n\t\t\t\t} finally {\n\t\t\t\t\tthis.saving = false\n\t\t\t\t\tthis.menuOpen = false\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\t/**\n\t\t\t\t * @event edit Emitted when edit mode is entered.\n\t\t\t\t */\n\t\t\t\tthis.$emit('edit')\n\t\t\t\tthis.menuOpen = false\n\t\t\t}\n\t\t},\n\n\t\t/** Discard edits and leave edit mode. */\n\t\tonCancel() {\n\t\t\tif (this.activeEditor) {\n\t\t\t\tthis.activeEditor.cancel()\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event cancel Emitted when edits are discarded.\n\t\t\t */\n\t\t\tthis.$emit('cancel')\n\t\t},\n\n\t\t/** Open the Add-widget modal (only in edit mode). */\n\t\tonAddWidget() {\n\t\t\tif (!this.isEditing) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.showAddWidgetModal = true\n\t\t\t/**\n\t\t\t * @event add-widget Emitted when \"Add widget…\" is activated in edit mode.\n\t\t\t */\n\t\t\tthis.$emit('add-widget')\n\t\t},\n\n\t\t/**\n\t\t * Append the chosen widget to the active page's body slot in the working\n\t\t * manifest. The new entry stacks below existing body widgets at full width.\n\t\t *\n\t\t * @param {{ type: string, content: object }} payload The modal's submit payload.\n\t\t */\n\t\tonAddWidgetSubmit(payload) {\n\t\t\tthis.showAddWidgetModal = false\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest || !payload || !payload.type) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? pages[0]\n\t\t\tif (!page) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst content = payload.content && typeof payload.content === 'object' ? { ...payload.content } : (getDefaultContent(payload.type) || {})\n\t\t\tconst wid = `w-${payload.type}-${Date.now()}`\n\n\t\t\t// Appearance (chrome) chosen in the modal — title visibility/label,\n\t\t\t// icon and background — applied to the widget entry the renderer reads.\n\t\t\tconst chrome = payload.chrome && typeof payload.chrome === 'object' ? payload.chrome : {}\n\t\t\tconst entry = getWidgetTypeEntry(payload.type)\n\t\t\tconst isCard = Boolean(entry && entry.card === true)\n\t\t\tconst chromeFields = {\n\t\t\t\t// Never fall back to the raw type key — that shipped widgets titled\n\t\t\t\t// literally \"stat\". A card's own `content.label` is the best name,\n\t\t\t\t// then the registry's display name.\n\t\t\t\ttitle: chrome.customTitle || content.title || content.label\n\t\t\t\t\t|| entry?.displayName || payload.type,\n\n\t\t\t\t// Cards headline themselves via `content.label`, so they default\n\t\t\t\t// headerless unless the modal explicitly asked for a header.\n\t\t\t\tshowTitle: typeof chrome.showTitle === 'boolean' ? chrome.showTitle : !isCard,\n\t\t\t\t...(chrome.customIcon ? { icon: chrome.customIcon } : {}),\n\t\t\t\t...(chrome.backgroundColor ? { styleConfig: { backgroundColor: chrome.backgroundColor } } : {}),\n\t\t\t}\n\n\t\t\t// Dashboard AND detail pages keep widgets in config.widgets +\n\t\t\t// config.layout (a detail page's grid is ejected there on edit — see\n\t\t\t// ejectDetailGridIfNeeded). A v2 page keeps them in pages[].widgets[]\n\t\t\t// (slot-based). Append to whichever this page uses so the new widget\n\t\t\t// lands where the renderer reads.\n\t\t\t// Append IN PLACE (`push`), never by replacing the array. These arrays\n\t\t\t// reach the grid as props via CnPageRenderer's `resolvedProps`, which\n\t\t\t// does NOT re-derive when `config.widgets` / `config.layout` are\n\t\t\t// swapped for new arrays — the page component keeps its original array\n\t\t\t// and the widget never appears at all. Mutating the array the props\n\t\t\t// already point at is what makes the addition visible. (Rendering the\n\t\t\t// new card correctly also needs CnDashboardPage to resolve widget defs\n\t\t\t// through a live lookup rather than a cached map — see getWidgetDef.)\n\t\t\tconst cfg = page.config && typeof page.config === 'object' && !Array.isArray(page.config) ? page.config : null\n\t\t\tif ((page.type === 'dashboard' || page.type === 'detail') && cfg) {\n\t\t\t\tif (!Array.isArray(cfg.widgets)) {\n\t\t\t\t\tcfg.widgets = []\n\t\t\t\t}\n\t\t\t\tif (!Array.isArray(cfg.layout)) {\n\t\t\t\t\tcfg.layout = []\n\t\t\t\t}\n\t\t\t\tconst nextY = cfg.layout.reduce((max, l) => Math.max(max, (l.gridY || 0) + (l.gridHeight || 1)), 0)\n\t\t\t\tcfg.widgets.push({ id: wid, type: payload.type, ...chromeFields, content })\n\t\t\t\tcfg.layout.push({ id: cfg.layout.length + 1, widgetId: wid, gridX: 0, gridY: nextY, gridWidth: 6, gridHeight: 3 })\n\t\t\t} else {\n\t\t\t\tif (!Array.isArray(page.widgets)) {\n\t\t\t\t\tpage.widgets = []\n\t\t\t\t}\n\t\t\t\tconst bodyWidgets = page.widgets.filter((w) => w && w.slot === 'body')\n\t\t\t\tconst nextY = bodyWidgets.reduce((max, w) => Math.max(max, (w.gridY || 0) + (w.gridHeight || 1)), 0)\n\t\t\t\tpage.widgets.push({\n\t\t\t\t\tid: wid,\n\t\t\t\t\twidgetKey: payload.type,\n\t\t\t\t\tslot: 'body',\n\t\t\t\t\tgridX: 0,\n\t\t\t\t\tgridY: nextY,\n\t\t\t\t\tgridWidth: 12,\n\t\t\t\t\tgridHeight: 3,\n\t\t\t\t\t...chromeFields,\n\t\t\t\t\tprops: content,\n\t\t\t\t})\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event widget-added Emitted after a widget is appended to the working manifest.\n\t\t\t * @type {{ type: string, content: object }}\n\t\t\t */\n\t\t\tthis.$emit('widget-added', payload)\n\t\t},\n\n\t\t/**\n\t\t * Ensure an edit session is active so the modals have a `working` copy to\n\t\t * mutate. Opening Edit menu / sidebar / actions enters edit mode if not\n\t\t * already editing (otherwise the modals would bind to a null working copy).\n\t\t */\n\t\tensureEditing() {\n\t\t\tif (this.activeEditor && !this.isEditing) {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\tthis.$emit('edit')\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * \"Eject\" the default detail-page body grid into the working manifest on\n\t\t * first edit: when the active page is a `type:\"detail\"` whose config has no\n\t\t * explicit `widgets`, seed `config.widgets`/`config.layout` with the same\n\t\t * Data + Related defaults CnDetailPage renders in memory. From then on the\n\t\t * grid is manifest-backed, so resize, per-property config and Add widget\n\t\t * all mutate the working manifest in place and persist on Save. Identical\n\t\t * defaults mean ejecting never visually changes the page. No-op for\n\t\t * non-detail pages or pages already carrying a widget grid.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tejectDetailGridIfNeeded() {\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? null\n\t\t\tif (!page || page.type !== 'detail') {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (!page.config || typeof page.config !== 'object' || Array.isArray(page.config)) {\n\t\t\t\tpage.config = {}\n\t\t\t}\n\t\t\tconst cfg = page.config\n\t\t\t// Already customised (ejected before, or a hand-authored grid page).\n\t\t\tif (Array.isArray(cfg.widgets) && cfg.widgets.length > 0) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst grid = defaultDetailGrid({\n\t\t\t\tregister: cfg.register || '',\n\t\t\t\tschema: cfg.schema || '',\n\t\t\t\tshowRelated: cfg.showRelatedObjects !== false,\n\t\t\t})\n\t\t\tcfg.widgets = grid.widgets\n\t\t\tcfg.layout = grid.layout\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the pages editor modal. */\n\t\tonEditPages() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showPagesModal = true\n\t\t\t/**\n\t\t\t * @event edit-pages Emitted when the pages editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-pages')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the menu editor modal. */\n\t\tonEditMenu() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showMenuModal = true\n\t\t\t/**\n\t\t\t * @event edit-menu Emitted when the menu editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-menu')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the settings editor modal. */\n\t\tonEditSettings() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSettingsModal = true\n\t\t\t/**\n\t\t\t * @event edit-settings Emitted when the settings editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-settings')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the sidebar editor modal. */\n\t\tonEditSidebar() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSidebarModal = true\n\t\t\t/**\n\t\t\t * @event edit-sidebar Emitted when the sidebar editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-sidebar')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the actions editor modal. */\n\t\tonEditActions() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showActionsModal = true\n\t\t\t/**\n\t\t\t * @event edit-actions Emitted when the actions editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-actions')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the setup-wizard editor modal. */\n\t\tonEditSetup() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSetupModal = true\n\t\t\t/**\n\t\t\t * @event edit-setup Emitted when the setup-wizard editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-setup')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the walkthrough editor modal. */\n\t\tonEditWalkthrough() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showWalkthroughModal = true\n\t\t\t/**\n\t\t\t * @event edit-walkthrough Emitted when the walkthrough editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-walkthrough')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the support/donation editor modal. */\n\t\tonEditSupport() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSupportModal = true\n\t\t\t/**\n\t\t\t * @event edit-support Emitted when the support/donation editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-support')\n\t\t},\n\n\t\t/**\n\t\t * Open the data (register + schemas) editor. Unlike the manifest editors\n\t\t * this does NOT enter manifest edit mode — it manages OpenRegister\n\t\t * registers/schemas directly via the API.\n\t\t */\n\t\tonEditData() {\n\t\t\tthis.showDataModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-data Emitted when the data (register/schema) editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-data')\n\t\t},\n\n\t\t/**\n\t\t * Open the flow editor. Like Edit data, this edits OpenRegister directly\n\t\t * and does NOT enter manifest edit mode.\n\t\t *\n\t\t * This used to edit a schema's `x-openregister-flows` as a flat\n\t\t * `{name, trigger, actions[]}` list, through two interchangeable editors\n\t\t * (a form and a canvas). That dialect and the service that executed it\n\t\t * are gone: a flow is now a node/edge document in OpenRegister's one flow\n\t\t * store, and there is one editor for it.\n\t\t */\n\t\tonEditFlows() {\n\t\t\tthis.showFlowsCanvasModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-flows Emitted when the flows editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-flows')\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-buildiq-edit {\n\tdisplay: inline-flex;\n}\n\n/* Conduction-orange accent on the trigger (ADR-041 brand exception). Targets the\n NcActions trigger button — `.button-vue` in current @nextcloud/vue (icon-only\n mode renders no `.action-item__menutoggle`), with the legacy class kept too.\n `!important` beats the `button-vue--tertiary` transparent default. */\n.cn-buildiq-edit__actions :deep(.button-vue),\n.cn-buildiq-edit__actions :deep(.action-item__menutoggle) {\n\tbackground-color: var(--cn-buildiq-color, var(--c-orange-knvb, #f36c21)) !important;\n\tcolor: #fff !important;\n\tborder-radius: var(--border-radius-element, var(--border-radius-large, 8px));\n}\n\n/* Center the glyph in the icon-only trigger (button-vue__icon is display:block\n by default, which left-aligns the 20×20 svg). */\n.cn-buildiq-edit__actions :deep(.button-vue__wrapper) {\n\tjustify-content: center;\n}\n\n.cn-buildiq-edit__actions :deep(.button-vue__icon) {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: #fff;\n}\n\n.cn-buildiq-edit__glyph {\n\tcolor: #fff;\n\tdisplay: block;\n\tmargin: auto;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createVNode","_createBlock","_toDisplayString","_createTextVNode"],"mappings":";;;;AA6BwB,EAAA,KAAA,EAAA,iBAAA;;AAChB,MAAA,UAAA,GAAA,EAAA,KAAK,EAAC,0BAA0B,GAAA;;;AAmBV,EAAA,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApBvB,QAAW,CAAA,WAAA,IAAC,MAAA,CAAA,IAAA,IAAA,CAAA,QAAA,CAAA,YAAA;AAAlB,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAmBC,OAnBD,UAmBC,EAAA;AAlBD,QAAAC,kBAAA,CAiBG,QAjBH,UAiBG,EAAA;qBADK,CAAA,mBAAA,EAAA;AAdT,YAAA,IAAI,EAAE,MAAG,CAAA,IAAA;AACT,YAAA,YAAQ,EAAA,QAAA,CAAA,CAAA,CAAA,eAAA,EAAA,iBAAA,CAAA;AACR,YAAA,KAAG,EAAA,QAAA,CAAA,CAAA,CAAA,eAAA,EAAA,iBAAA,CAAA;AACJ,YAAA,aAAE,EAAA,sBAAA;;AACS,YAAA,IAAI,UACd,MAOM,CAAA,IAAA,MAAA,CAAA,EAAA,CAAA,KAAA,MAAA,CAAA,EAAA,CAAA,GAAA;cAPNA,kBAOM,CAAA,KAAA,EAAA;AAPD,gBAAA,KAAC,EAAA,wBAAA;AACL,gBAAA,KAAK,EAAC,IAAI;AACV,gBAAA,MAAM,E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AAA;4BADfA,WAIiC,CAAA,6BAAA,EAAA;;AAFhC,gBAAA,OAAO,EAAE,QAAU,CAAA,eAAA;AACnB,gBAAA,MAAM,EAAE,QAAe,CAAA,eAAA;AACvB,gBAAA,OAAK,uCAAE,KAAe,CAAA,gBAAA,GAAA,KAAA,CAAA,CAAA;;;WAEjB,KAAa,CAAA,aAAA;4BADpBA,WAGkC,CAAA,0BAAA,EAAA;;AADhC,gBAAA,QAAQ,EAAE,QAAc,CAAA,iBAAA;AACxB,gBAAA,OAAK,uCAAE,KAAa,CAAA,aAAA,GAAA,KAAA,CAAA,CAAA;;;WAEf,KAAgB,CAAA,oBAAA;4BADvBA,WAII,CAAA,0BAAA,EAAA;;AAFF,gBAAA,GAAG,EAAE,QAAO,CAAA,OAAA;AACb,gBAAA,MAAM,EAAC,KAAK;AACX,gBAAA,OAAE,uCAAA,KAAA,CAAA,oBAAA,GAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"CnBuildiqEditButton.vue3.js","sources":["../../../../src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue?vue&type=template&id=590c4483&lang.js"],"sourcesContent":["<!--\n CnBuildiqEditButton — the universal in-app edit entry point (ADR-041).\n\n A Conduction-orange icon button bearing the Buildiq glyph, meant to sit\n immediately to the right of a page's refresh control. It renders nothing\n unless `available` is true, and is deliberately Buildiq-agnostic: it never\n imports Buildiq app code and never calls `useAppStatus` — availability is\n passed in (wire it from `useBuildiqEditAvailability()`).\n\n Its action menu drives the shared `useManifestEditor` instance (passed as\n `editor`): Edit page ⇄ Save page, Add widget (disabled unless editing),\n Edit menu…, Edit sidebar…. Save emits `@save(delta)` with the minimal delta.\n-->\n<template>\n\t<!-- `href` without an editor (an admin settings page has no CnAppRoot):\n\t the square is a link that opens the app in edit mode. -->\n\t<div v-if=\"isAvailable && href && !activeEditor\" class=\"cn-buildiq-edit\">\n\t\t<span class=\"cn-buildiq-edit__actions\">\n\t\t\t<NcButton\n\t\t\t\t:href=\"href\"\n\t\t\t\t:aria-label=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\t:title=\"t('nextcloud-vue', 'Edit in Buildiq')\"\n\t\t\t\tdata-testid=\"cn-buildiq-edit-link\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</template>\n\t\t\t</NcButton>\n\t\t</span>\n\t</div>\n\t<div v-else-if=\"isAvailable\" class=\"cn-buildiq-edit\">\n\t\t<NcActions\n\t\t\tv-model:open=\"menuOpen\"\n\t\t\taria-label=\"buildiq\"\n\t\t\tclass=\"cn-buildiq-edit__actions\"\n\t\t\t:class=\"[{ 'cn-buildiq-edit__actions--editing': isEditing }]\">\n\t\t\t<template #icon>\n\t\t\t\t<svg class=\"cn-buildiq-edit__glyph\"\n\t\t\t\t\twidth=\"20\"\n\t\t\t\t\theight=\"20\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t<path d=\"M12 0L3 7L4.63 8.27L12 14L19.36 8.27L21 7L12 0M19.37 10.73L12 16.47L4.62 10.74L3 12L12 19L21 12L19.37 10.73M19.37 15.73L12 21.47L4.62 15.74L3 17L12 24L21 17L19.37 15.73Z\" />\n\t\t\t\t</svg>\n\t\t\t</template>\n\n\t\t\t<!-- Save keeps the menu open while persisting so the spinner that\n\t\t\t replaces the save icon stays visible; onToggleEdit closes it\n\t\t\t once the async save settles. -->\n\t\t\t<NcActionButton :closeAfterClick=\"false\" :disabled=\"saving\" @click=\"onToggleEdit\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcLoadingIcon v-if=\"saving\" :size=\"20\" />\n\t\t\t\t\t<Pencil v-else-if=\"!isEditing\" :size=\"20\" />\n\t\t\t\t\t<ContentSave v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ saving ? t('nextcloud-vue', 'Saving…') : (isEditing ? t('nextcloud-vue', 'Save page') : t('nextcloud-vue', 'Edit page')) }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- Widget grids live on dashboard pages and (since the detail-grid\n\t\t\t change) detail pages, whose body is an adjustable grid seeded with\n\t\t\t Data + Related. Index/custom pages have no widget slots, so hide\n\t\t\t Add widget there. -->\n\t\t\t<NcActionButton v-if=\"pageSupportsWidgets\"\n\t\t\t\t:disabled=\"!isEditing\"\n\t\t\t\t:closeAfterClick=\"true\"\n\t\t\t\t@click=\"onAddWidget\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Add widget…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditPages\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FileMultiple :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit pages…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditMenu\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<MenuIcon :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit menu…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditSidebar\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<PageLayoutSidebarRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit sidebar…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditActions\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<GestureTapButton :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit actions…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<!-- The four APP-LEVEL editors (settings, setup wizard,\n\t\t\t walkthrough, support & donation) used to sit here. They edit\n\t\t\t the app's chrome rather than the page you are standing on, so\n\t\t\t they now live on the app detail page, where the whole app is\n\t\t\t in view. This menu is page-local: pages, menu, sidebar,\n\t\t\t actions, data, flows.\n\n\t\t\t `onEditSettings` / `onEditSetup` / `onEditWalkthrough` /\n\t\t\t `onEditSupport` and the modals they open are deliberately\n\t\t\t KEPT. They are no longer reachable from this menu, but they\n\t\t\t remain callable on a template ref, so a consumer that wants\n\t\t\t one of these editors on its own surface has it without\n\t\t\t re-implementing the modal. Removing them would be a breaking\n\t\t\t change to that API for a menu-layout decision. -->\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditData\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Database :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit data…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton :closeAfterClick=\"true\" @click=\"onEditFlows\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Sitemap :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Edit flows…') }}\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-if=\"isEditing\" :closeAfterClick=\"true\" @click=\"onCancel\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ t('nextcloud-vue', 'Cancel') }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<CnEditPagesModal\n\t\t\tv-if=\"showPagesModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showPagesModal = false\" />\n\t\t<CnEditMenuModal\n\t\t\tv-if=\"showMenuModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showMenuModal = false\" />\n\t\t<CnEditSettingsModal\n\t\t\tv-if=\"showSettingsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSettingsModal = false\" />\n\t\t<CnEditSidebarModal\n\t\t\tv-if=\"showSidebarModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showSidebarModal = false\" />\n\t\t<CnAddWidgetModal\n\t\t\tv-if=\"showAddWidgetModal\"\n\t\t\t:show=\"showAddWidgetModal\"\n\t\t\t:surface=\"addWidgetSurface\"\n\t\t\t:data-context=\"addWidgetDataContext\"\n\t\t\t@submit=\"onAddWidgetSubmit\"\n\t\t\t@close=\"showAddWidgetModal = false\" />\n\t\t<CnEditActionsModal\n\t\t\tv-if=\"showActionsModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t:pageId=\"effectivePageId\"\n\t\t\t@close=\"showActionsModal = false\" />\n\t\t<CnEditDataModal\n\t\t\tv-if=\"showDataModal\"\n\t\t\t:manifest=\"effectiveManifest\"\n\t\t\t@close=\"showDataModal = false\" />\n\t\t<CnFlowEditModal\n\t\t\tv-if=\"showFlowsCanvasModal\"\n\t\t\t:app=\"flowApp\"\n\t\t\tflowId=\"new\"\n\t\t\t@close=\"showFlowsCanvasModal = false\" />\n\t\t<CnEditSetupModal\n\t\t\tv-if=\"showSetupModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSetupModal = false\" />\n\t\t<CnEditWalkthroughModal\n\t\t\tv-if=\"showWalkthroughModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showWalkthroughModal = false\" />\n\t\t<CnEditSupportModal\n\t\t\tv-if=\"showSupportModal\"\n\t\t\t:working=\"workingManifest\"\n\t\t\t@close=\"showSupportModal = false\" />\n\t</div>\n</template>\n\n<script>\nimport { translate as t } from '@nextcloud/l10n'\nimport { NcActionButton, NcActions, NcButton, NcLoadingIcon } from '@nextcloud/vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport ContentSave from 'vue-material-design-icons/ContentSave.vue'\nimport Database from 'vue-material-design-icons/Database.vue'\nimport FileMultiple from 'vue-material-design-icons/FileMultiple.vue'\nimport GestureTapButton from 'vue-material-design-icons/GestureTapButton.vue'\nimport MenuIcon from 'vue-material-design-icons/Menu.vue'\nimport PageLayoutSidebarRight from 'vue-material-design-icons/PageLayoutSidebarRight.vue'\nimport Pencil from 'vue-material-design-icons/Pencil.vue'\nimport Plus from 'vue-material-design-icons/Plus.vue'\nimport Sitemap from 'vue-material-design-icons/Sitemap.vue'\nimport CnAddWidgetModal from '../../dialogs/CnAddWidgetModal.vue'\nimport CnEditActionsModal from '../../dialogs/CnEditActionsModal.vue'\nimport CnEditDataModal from '../../dialogs/CnEditDataModal.vue'\nimport CnEditMenuModal from '../../dialogs/CnEditMenuModal.vue'\nimport CnEditPagesModal from '../../dialogs/CnEditPagesModal.vue'\nimport CnEditSettingsModal from '../../dialogs/CnEditSettingsModal.vue'\nimport CnEditSetupModal from '../../dialogs/CnEditSetupModal.vue'\nimport CnEditSidebarModal from '../../dialogs/CnEditSidebarModal.vue'\nimport CnEditSupportModal from '../../dialogs/CnEditSupportModal.vue'\nimport CnEditWalkthroughModal from '../../dialogs/CnEditWalkthroughModal.vue'\nimport CnFlowEditModal from '../../dialogs/CnFlowEditModal.vue'\nimport { defaultDetailGrid } from '../../utils/defaultDetailGrid.js'\nimport { getDefaultContent, getWidgetTypeEntry } from '../CnWidgetGrid/dashboardWidgetRegistry.js'\n\nexport default {\n\tname: 'CnBuildiqEditButton',\n\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcButton,\n\t\tNcLoadingIcon,\n\t\tPencil,\n\t\tContentSave,\n\t\tPlus,\n\t\tMenuIcon,\n\t\tClose,\n\t\tFileMultiple,\n\t\tPageLayoutSidebarRight,\n\t\tGestureTapButton,\n\t\tDatabase,\n\t\tSitemap,\n\t\tCnEditMenuModal,\n\t\tCnEditPagesModal,\n\t\tCnEditSettingsModal,\n\t\tCnEditSidebarModal,\n\t\tCnEditActionsModal,\n\t\tCnAddWidgetModal,\n\t\tCnEditDataModal,\n\t\tCnFlowEditModal,\n\t\tCnEditSetupModal,\n\t\tCnEditWalkthroughModal,\n\t\tCnEditSupportModal,\n\t},\n\n\tinject: {\n\t\t/** Shared editor instance published by CnAppRoot; overridden by the `editor` prop. */\n\t\tcnManifestEditor: { default: null },\n\t\t/**\n\t\t * Buildiq availability published by CnAppRoot; overridden by the `available` prop.\n\t\t *\n\t\t * The inject key keeps its `cnOpenBuildAvailable` spelling on purpose: it is a\n\t\t * runtime provide/inject contract that consumer apps may already read, so the\n\t\t * 2026-08-21 OpenBuild → Buildiq rename deliberately left it untouched.\n\t\t */\n\t\tcnOpenBuildAvailable: { default: false },\n\t\t/** The live (published) manifest published by CnAppRoot — read when not editing. */\n\t\tcnManifest: { default: null },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Whether Buildiq is available to this user. When falsey the component\n\t\t * renders nothing. Wire from `useBuildiqEditAvailability()`.\n\t\t *\n\t\t * @type {boolean}\n\t\t */\n\t\tavailable: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The shared `useManifestEditor` instance (`{ editing, working, dirty,\n\t\t * enter, cancel, save }`). Falls back to the injected `cnManifestEditor`.\n\t\t *\n\t\t * @type {object|null}\n\t\t */\n\t\teditor: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The active page's id, forwarded to `CnEditSidebarModal` so it edits the\n\t\t * right page's sidebar config.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\tpageId: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Where the square leads when there is no manifest editor on the page\n\t\t * (an admin settings page): the app with `cn_edit=1`, which CnAppRoot\n\t\t * opens in edit mode. Ignored where an editor is available.\n\t\t *\n\t\t * @type {string}\n\t\t */\n\t\thref: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: [\n\t\t'add-widget',\n\t\t'cancel',\n\t\t'edit',\n\t\t'edit-actions',\n\t\t'edit-data',\n\t\t'edit-flows',\n\t\t'edit-menu',\n\t\t'edit-pages',\n\t\t'edit-settings',\n\t\t'edit-setup',\n\t\t'edit-sidebar',\n\t\t'edit-support',\n\t\t'edit-walkthrough',\n\t\t'save',\n\t\t'widget-added',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\tshowMenuModal: false,\n\t\t\tshowPagesModal: false,\n\t\t\tshowSettingsModal: false,\n\t\t\tshowSidebarModal: false,\n\t\t\tshowAddWidgetModal: false,\n\t\t\tshowActionsModal: false,\n\t\t\tshowDataModal: false,\n\t\t\tshowFlowsCanvasModal: false,\n\t\t\tshowSetupModal: false,\n\t\t\tshowWalkthroughModal: false,\n\t\t\tshowSupportModal: false,\n\t\t\tmenuOpen: false,\n\t\t\tsaving: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * The app id a flow created from here belongs to.\n\t\t *\n\t\t * Read from Nextcloud's own app context rather than the manifest,\n\t\t * because the manifest describes the PAGES an app renders and does not\n\t\t * carry the app's id. Falling back to `openregister` keeps a new flow in\n\t\t * the shared store rather than in an app namespace that does not exist.\n\t\t *\n\t\t * @return {string} The owning app id.\n\t\t */\n\t\tflowApp() {\n\t\t\treturn (window?.OCA?.Theming?.name && window?.appName) || window?.appName || 'openregister'\n\t\t},\n\n\t\t/** Whether to render — the `available` prop OR the injected availability. */\n\t\tisAvailable() {\n\t\t\treturn Boolean(this.available || this.unref(this.cnOpenBuildAvailable))\n\t\t},\n\n\t\t/** Active page id — the `pageId` prop, else the current route name. */\n\t\teffectivePageId() {\n\t\t\treturn this.pageId || (this.$route && this.$route.name) || ''\n\t\t},\n\n\t\t/** The resolved editor (prop wins over inject). */\n\t\tactiveEditor() {\n\t\t\treturn this.editor ?? this.cnManifestEditor ?? null\n\t\t},\n\n\t\t/** Whether edit mode is active. */\n\t\tisEditing() {\n\t\t\treturn Boolean(this.activeEditor && this.unref(this.activeEditor.editing))\n\t\t},\n\n\t\t/** The working manifest copy (or null when not editing). */\n\t\tworkingManifest() {\n\t\t\treturn this.activeEditor ? this.unref(this.activeEditor.working) : null\n\t\t},\n\n\t\t/** @return {string} Where flows open in list mode, '' for an app without such a page. */\n\t\tflowListRoute() {\n\t\t\tconst page = (this.effectiveManifest?.pages || []).find((candidate) => ['flow', 'flow-detail'].includes(candidate?.type) && candidate?.config?.listMode === true)\n\n\t\t\treturn page ? String(page.route || '').replace(':id', 'new') : ''\n\t\t},\n\n\t\t/** The manifest to read page metadata from: working copy, else the live one. */\n\t\teffectiveManifest() {\n\t\t\treturn this.workingManifest || this.unref(this.cnManifest) || null\n\t\t},\n\n\t\t/** The active page object, resolved from the effective manifest. */\n\t\tcurrentPage() {\n\t\t\tconst m = this.effectiveManifest\n\t\t\tconst pages = (m && Array.isArray(m.pages)) ? m.pages : []\n\t\t\treturn pages.find((p) => p && p.id === this.effectivePageId) || null\n\t\t},\n\n\t\t/** Whether the active page is a dashboard (the only page type with widget slots). */\n\t\tisDashboardPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'dashboard')\n\t\t},\n\n\t\t/** Whether the active page is a detail page (its body is an adjustable grid). */\n\t\tisDetailPage() {\n\t\t\treturn !!(this.currentPage && this.currentPage.type === 'detail')\n\t\t},\n\n\t\t/**\n\t\t * Whether the active page hosts a widget grid that \"Add widget\" can target.\n\t\t * Only dashboard and detail pages do: their bodies are adjustable widget\n\t\t * grids. A `type:\"custom\"` page is the manifest's escape hatch — it renders\n\t\t * a bespoke `component` (or `slots.main`) and owns its own body, so it has\n\t\t * no widget grid to add to. Widget canvases are dashboard pages.\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tpageSupportsWidgets() {\n\t\t\treturn this.isDashboardPage || this.isDetailPage\n\t\t},\n\n\t\t/**\n\t\t * The widget-picker surface for \"Add widget\". Detail pages get\n\t\t * `'detail-page'` so detail-only types (notably a second `data` widget)\n\t\t * appear alongside the universal widgets; dashboards keep the default\n\t\t * dashboard surface.\n\t\t *\n\t\t * @return {string} the surface key.\n\t\t */\n\t\taddWidgetSurface() {\n\t\t\treturn this.isDetailPage ? 'detail-page' : 'app-dashboard'\n\t\t},\n\n\t\t/**\n\t\t * The active detail page's `{ register, schema }` (from its config),\n\t\t * forwarded to the Add-widget modal so the data sub-form resolves the\n\t\t * right schema regardless of the modal's DOM position. Null for non-detail\n\t\t * pages.\n\t\t *\n\t\t * @return {{register: string, schema: string}|null} the page context.\n\t\t */\n\t\taddWidgetDataContext() {\n\t\t\tif (!this.isDetailPage) {\n\t\t\t\treturn null\n\t\t\t}\n\t\t\tconst cfg = (this.currentPage && this.currentPage.config) || {}\n\t\t\treturn { register: cfg.register || '', schema: cfg.schema || '' }\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\t\t/**\n\t\t * Read a value that may be a Vue ref or a plain value.\n\t\t *\n\t\t * @param {unknown} maybeRef A Vue ref or plain value.\n\t\t * @return {unknown} The unwrapped value.\n\t\t */\n\t\tunref(maybeRef) {\n\t\t\treturn maybeRef && typeof maybeRef === 'object' && 'value' in maybeRef ? maybeRef.value : maybeRef\n\t\t},\n\n\t\t/** Enter edit mode, or persist + leave when already editing. */\n\t\tasync onToggleEdit() {\n\t\t\tif (!this.activeEditor || this.saving) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (this.isEditing) {\n\t\t\t\t// Show a spinner in the (kept-open) menu while the save persists,\n\t\t\t\t// then close the menu once it settles — pass or fail.\n\t\t\t\tthis.saving = true\n\t\t\t\ttry {\n\t\t\t\t\tconst delta = await this.activeEditor.save()\n\t\t\t\t\t/**\n\t\t\t\t\t * @event save Emitted after a successful save with the minimal delta.\n\t\t\t\t\t * @type {object}\n\t\t\t\t\t */\n\t\t\t\t\tthis.$emit('save', delta)\n\t\t\t\t} finally {\n\t\t\t\t\tthis.saving = false\n\t\t\t\t\tthis.menuOpen = false\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\t/**\n\t\t\t\t * @event edit Emitted when edit mode is entered.\n\t\t\t\t */\n\t\t\t\tthis.$emit('edit')\n\t\t\t\tthis.menuOpen = false\n\t\t\t}\n\t\t},\n\n\t\t/** Discard edits and leave edit mode. */\n\t\tonCancel() {\n\t\t\tif (this.activeEditor) {\n\t\t\t\tthis.activeEditor.cancel()\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event cancel Emitted when edits are discarded.\n\t\t\t */\n\t\t\tthis.$emit('cancel')\n\t\t},\n\n\t\t/** Open the Add-widget modal (only in edit mode). */\n\t\tonAddWidget() {\n\t\t\tif (!this.isEditing) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.showAddWidgetModal = true\n\t\t\t/**\n\t\t\t * @event add-widget Emitted when \"Add widget…\" is activated in edit mode.\n\t\t\t */\n\t\t\tthis.$emit('add-widget')\n\t\t},\n\n\t\t/**\n\t\t * Append the chosen widget to the active page's body slot in the working\n\t\t * manifest. The new entry stacks below existing body widgets at full width.\n\t\t *\n\t\t * @param {{ type: string, content: object }} payload The modal's submit payload.\n\t\t */\n\t\tonAddWidgetSubmit(payload) {\n\t\t\tthis.showAddWidgetModal = false\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest || !payload || !payload.type) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? pages[0]\n\t\t\tif (!page) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst content = payload.content && typeof payload.content === 'object' ? { ...payload.content } : (getDefaultContent(payload.type) || {})\n\t\t\tconst wid = `w-${payload.type}-${Date.now()}`\n\n\t\t\t// Appearance (chrome) chosen in the modal — title visibility/label,\n\t\t\t// icon and background — applied to the widget entry the renderer reads.\n\t\t\tconst chrome = payload.chrome && typeof payload.chrome === 'object' ? payload.chrome : {}\n\t\t\tconst entry = getWidgetTypeEntry(payload.type)\n\t\t\tconst isCard = Boolean(entry && entry.card === true)\n\t\t\tconst chromeFields = {\n\t\t\t\t// Never fall back to the raw type key — that shipped widgets titled\n\t\t\t\t// literally \"stat\". A card's own `content.label` is the best name,\n\t\t\t\t// then the registry's display name.\n\t\t\t\ttitle: chrome.customTitle || content.title || content.label\n\t\t\t\t\t|| entry?.displayName || payload.type,\n\n\t\t\t\t// Cards headline themselves via `content.label`, so they default\n\t\t\t\t// headerless unless the modal explicitly asked for a header.\n\t\t\t\tshowTitle: typeof chrome.showTitle === 'boolean' ? chrome.showTitle : !isCard,\n\t\t\t\t...(chrome.customIcon ? { icon: chrome.customIcon } : {}),\n\t\t\t\t...(chrome.backgroundColor ? { styleConfig: { backgroundColor: chrome.backgroundColor } } : {}),\n\t\t\t}\n\n\t\t\t// Dashboard AND detail pages keep widgets in config.widgets +\n\t\t\t// config.layout (a detail page's grid is ejected there on edit — see\n\t\t\t// ejectDetailGridIfNeeded). A v2 page keeps them in pages[].widgets[]\n\t\t\t// (slot-based). Append to whichever this page uses so the new widget\n\t\t\t// lands where the renderer reads.\n\t\t\t// Append IN PLACE (`push`), never by replacing the array. These arrays\n\t\t\t// reach the grid as props via CnPageRenderer's `resolvedProps`, which\n\t\t\t// does NOT re-derive when `config.widgets` / `config.layout` are\n\t\t\t// swapped for new arrays — the page component keeps its original array\n\t\t\t// and the widget never appears at all. Mutating the array the props\n\t\t\t// already point at is what makes the addition visible. (Rendering the\n\t\t\t// new card correctly also needs CnDashboardPage to resolve widget defs\n\t\t\t// through a live lookup rather than a cached map — see getWidgetDef.)\n\t\t\tconst cfg = page.config && typeof page.config === 'object' && !Array.isArray(page.config) ? page.config : null\n\t\t\tif ((page.type === 'dashboard' || page.type === 'detail') && cfg) {\n\t\t\t\tif (!Array.isArray(cfg.widgets)) {\n\t\t\t\t\tcfg.widgets = []\n\t\t\t\t}\n\t\t\t\tif (!Array.isArray(cfg.layout)) {\n\t\t\t\t\tcfg.layout = []\n\t\t\t\t}\n\t\t\t\tconst nextY = cfg.layout.reduce((max, l) => Math.max(max, (l.gridY || 0) + (l.gridHeight || 1)), 0)\n\t\t\t\tcfg.widgets.push({ id: wid, type: payload.type, ...chromeFields, content })\n\t\t\t\tcfg.layout.push({ id: cfg.layout.length + 1, widgetId: wid, gridX: 0, gridY: nextY, gridWidth: 6, gridHeight: 3 })\n\t\t\t} else {\n\t\t\t\tif (!Array.isArray(page.widgets)) {\n\t\t\t\t\tpage.widgets = []\n\t\t\t\t}\n\t\t\t\tconst bodyWidgets = page.widgets.filter((w) => w && w.slot === 'body')\n\t\t\t\tconst nextY = bodyWidgets.reduce((max, w) => Math.max(max, (w.gridY || 0) + (w.gridHeight || 1)), 0)\n\t\t\t\tpage.widgets.push({\n\t\t\t\t\tid: wid,\n\t\t\t\t\twidgetKey: payload.type,\n\t\t\t\t\tslot: 'body',\n\t\t\t\t\tgridX: 0,\n\t\t\t\t\tgridY: nextY,\n\t\t\t\t\tgridWidth: 12,\n\t\t\t\t\tgridHeight: 3,\n\t\t\t\t\t...chromeFields,\n\t\t\t\t\tprops: content,\n\t\t\t\t})\n\t\t\t}\n\t\t\t/**\n\t\t\t * @event widget-added Emitted after a widget is appended to the working manifest.\n\t\t\t * @type {{ type: string, content: object }}\n\t\t\t */\n\t\t\tthis.$emit('widget-added', payload)\n\t\t},\n\n\t\t/**\n\t\t * Ensure an edit session is active so the modals have a `working` copy to\n\t\t * mutate. Opening Edit menu / sidebar / actions enters edit mode if not\n\t\t * already editing (otherwise the modals would bind to a null working copy).\n\t\t */\n\t\tensureEditing() {\n\t\t\tif (this.activeEditor && !this.isEditing) {\n\t\t\t\tthis.activeEditor.enter()\n\t\t\t\tthis.ejectDetailGridIfNeeded()\n\t\t\t\tthis.$emit('edit')\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * \"Eject\" the default detail-page body grid into the working manifest on\n\t\t * first edit: when the active page is a `type:\"detail\"` whose config has no\n\t\t * explicit `widgets`, seed `config.widgets`/`config.layout` with the same\n\t\t * Data + Related defaults CnDetailPage renders in memory. From then on the\n\t\t * grid is manifest-backed, so resize, per-property config and Add widget\n\t\t * all mutate the working manifest in place and persist on Save. Identical\n\t\t * defaults mean ejecting never visually changes the page. No-op for\n\t\t * non-detail pages or pages already carrying a widget grid.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tejectDetailGridIfNeeded() {\n\t\t\tconst manifest = this.workingManifest\n\t\t\tif (!manifest) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst pages = Array.isArray(manifest.pages) ? manifest.pages : []\n\t\t\tconst page = pages.find((p) => p && p.id === this.effectivePageId) ?? null\n\t\t\tif (!page || page.type !== 'detail') {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif (!page.config || typeof page.config !== 'object' || Array.isArray(page.config)) {\n\t\t\t\tpage.config = {}\n\t\t\t}\n\t\t\tconst cfg = page.config\n\t\t\t// Already customised (ejected before, or a hand-authored grid page).\n\t\t\tif (Array.isArray(cfg.widgets) && cfg.widgets.length > 0) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst grid = defaultDetailGrid({\n\t\t\t\tregister: cfg.register || '',\n\t\t\t\tschema: cfg.schema || '',\n\t\t\t\tshowRelated: cfg.showRelatedObjects !== false,\n\t\t\t})\n\t\t\tcfg.widgets = grid.widgets\n\t\t\tcfg.layout = grid.layout\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the pages editor modal. */\n\t\tonEditPages() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showPagesModal = true\n\t\t\t/**\n\t\t\t * @event edit-pages Emitted when the pages editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-pages')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the menu editor modal. */\n\t\tonEditMenu() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showMenuModal = true\n\t\t\t/**\n\t\t\t * @event edit-menu Emitted when the menu editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-menu')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the settings editor modal. */\n\t\tonEditSettings() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSettingsModal = true\n\t\t\t/**\n\t\t\t * @event edit-settings Emitted when the settings editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-settings')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the sidebar editor modal. */\n\t\tonEditSidebar() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSidebarModal = true\n\t\t\t/**\n\t\t\t * @event edit-sidebar Emitted when the sidebar editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-sidebar')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the actions editor modal. */\n\t\tonEditActions() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showActionsModal = true\n\t\t\t/**\n\t\t\t * @event edit-actions Emitted when the actions editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-actions')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the setup-wizard editor modal. */\n\t\tonEditSetup() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSetupModal = true\n\t\t\t/**\n\t\t\t * @event edit-setup Emitted when the setup-wizard editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-setup')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the walkthrough editor modal. */\n\t\tonEditWalkthrough() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showWalkthroughModal = true\n\t\t\t/**\n\t\t\t * @event edit-walkthrough Emitted when the walkthrough editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-walkthrough')\n\t\t},\n\n\t\t/** Enter edit mode (if needed) and open the support/donation editor modal. */\n\t\tonEditSupport() {\n\t\t\tthis.ensureEditing()\n\t\t\tthis.showSupportModal = true\n\t\t\t/**\n\t\t\t * @event edit-support Emitted when the support/donation editor modal opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-support')\n\t\t},\n\n\t\t/**\n\t\t * Open the data (register + schemas) editor. Unlike the manifest editors\n\t\t * this does NOT enter manifest edit mode — it manages OpenRegister\n\t\t * registers/schemas directly via the API.\n\t\t */\n\t\tonEditData() {\n\t\t\tthis.showDataModal = true\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-data Emitted when the data (register/schema) editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-data')\n\t\t},\n\n\t\t/**\n\t\t * Open the flow editor. Like Edit data, this edits OpenRegister directly\n\t\t * and does NOT enter manifest edit mode.\n\t\t *\n\t\t * This used to edit a schema's `x-openregister-flows` as a flat\n\t\t * `{name, trigger, actions[]}` list, through two interchangeable editors\n\t\t * (a form and a canvas). That dialect and the service that executed it\n\t\t * are gone: a flow is now a node/edge document in OpenRegister's one flow\n\t\t * store, and there is one editor for it.\n\t\t */\n\t\tonEditFlows() {\n\t\t\tif (this.flowListRoute !== '' && this.$router) {\n\t\t\t\tthis.$router.push({ path: this.flowListRoute, query: { view: 'list' } })\n\t\t\t} else {\n\t\t\t\tthis.showFlowsCanvasModal = true\n\t\t\t}\n\t\t\tthis.menuOpen = false\n\t\t\t/**\n\t\t\t * @event edit-flows Emitted when the flows editor opens.\n\t\t\t */\n\t\t\tthis.$emit('edit-flows')\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-buildiq-edit {\n\tdisplay: inline-flex;\n}\n\n/* Conduction-orange accent on the trigger (ADR-041 brand exception). Targets the\n NcActions trigger button — `.button-vue` in current @nextcloud/vue (icon-only\n mode renders no `.action-item__menutoggle`), with the legacy class kept too.\n `!important` beats the `button-vue--tertiary` transparent default. */\n.cn-buildiq-edit__actions :deep(.button-vue),\n.cn-buildiq-edit__actions :deep(.action-item__menutoggle) {\n\tbackground-color: var(--cn-buildiq-color, var(--c-orange-knvb, #f36c21)) !important;\n\tcolor: #fff !important;\n\tborder-radius: var(--border-radius-element, var(--border-radius-large, 8px));\n}\n\n/* Center the glyph in the icon-only trigger (button-vue__icon is display:block\n by default, which left-aligns the 20×20 svg). */\n.cn-buildiq-edit__actions :deep(.button-vue__wrapper) {\n\tjustify-content: center;\n}\n\n.cn-buildiq-edit__actions :deep(.button-vue__icon) {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: #fff;\n}\n\n.cn-buildiq-edit__glyph {\n\tcolor: #fff;\n\tdisplay: block;\n\tmargin: auto;\n}\n</style>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createVNode","_createBlock","_toDisplayString","_createTextVNode"],"mappings":";;;;AA6BwB,EAAA,KAAA,EAAA,iBAAA;;AAChB,MAAA,UAAA,GAAA,EAAA,KAAK,EAAC,0BAA0B,GAAA;;;AAmBV,EAAA,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApBvB,QAAW,CAAA,WAAA,IAAC,MAAA,CAAA,IAAA,IAAA,CAAA,QAAA,CAAA,YAAA;AAAlB,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAmBC,OAnBD,UAmBC,EAAA;AAlBD,QAAAC,kBAAA,CAiBG,QAjBH,UAiBG,EAAA;qBADK,CAAA,mBAAA,EAAA;AAdT,YAAA,IAAI,EAAE,MAAG,CAAA,IAAA;AACT,YAAA,YAAQ,EAAA,QAAA,CAAA,CAAA,CAAA,eAAA,EAAA,iBAAA,CAAA;AACR,YAAA,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A;4BADxBA,WAMW,CAAA,2BAAA,EAAA;;AAJV,gBAAA,IAAI,EAAE,KAAkB,CAAA,kBAAA;AACxB,gBAAA,OAAO,EAAE,QAAI,CAAA,gBAAA;AACb,gBAAA,cAAY,EAAE,QAAW,CAAA,oBAAA;AACzB,gBAAA,QAAM,EAAE,QAAI,CAAA,iBAAA;AACZ,gBAAA,OAAK,uCAAE,KAAG,CAAA,kBAAA,GAAA,KAAA,CAAA,CAAA;;;WAEL,KAAS,CAAA,gBAAA;4BADfA,WAIiC,CAAA,6BAAA,EAAA;;AAFhC,gBAAA,OAAO,EAAE,QAAU,CAAA,eAAA;AACnB,gBAAA,MAAM,EAAE,QAAe,CAAA,eAAA;AACvB,gBAAA,OAAK,uCAAE,KAAe,CAAA,gBAAA,GAAA,KAAA,CAAA,CAAA;;;WAEjB,KAAa,CAAA,aAAA;4BADpBA,WAGkC,CAAA,0BAAA,EAAA;;AADhC,gBAAA,QAAQ,EAAE,QAAc,CAAA,iBAAA;AACxB,gBAAA,OAAK,uCAAE,KAAa,CAAA,aAAA,GAAA,KAAA,CAAA,CAAA;;;WAEf,KAAgB,CAAA,oBAAA;4BADvBA,WAII,CAAA,0BAAA,EAAA;;AAFF,gBAAA,GAAG,EAAE,QAAO,CAAA,OAAA;AACb,gBAAA,MAAM,EAAC,KAAK;AACX,gBAAA,OAAE,uCAAA,KAAA,CAAA,oBAAA,GAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import script from './CnCellRenderer.vue2.js';
|
|
|
2
2
|
import { render } from './CnCellRenderer.vue3.js';
|
|
3
3
|
|
|
4
4
|
script.render = render;
|
|
5
|
-
script.__scopeId = "data-v-
|
|
5
|
+
script.__scopeId = "data-v-7c9787e2";
|
|
6
6
|
const __sfc_main = script;
|
|
7
7
|
|
|
8
8
|
export { __sfc_main as default };
|
|
@@ -2,9 +2,10 @@ import { getCanonicalLocale, translate } from '@nextcloud/l10n';
|
|
|
2
2
|
import { NcCheckboxRadioSwitch, NcAvatar, NcButton, NcDateTime } from '@nextcloud/vue';
|
|
3
3
|
import CheckBold from 'vue-material-design-icons/CheckBold.vue';
|
|
4
4
|
import Lock from 'vue-material-design-icons/Lock.vue';
|
|
5
|
-
import __sfc_main$
|
|
6
|
-
import __sfc_main from '../
|
|
7
|
-
import __sfc_main$
|
|
5
|
+
import __sfc_main$3 from '../CnFkResolveCell/CnFkResolveCell.vue.js';
|
|
6
|
+
import __sfc_main from '../CnFlowDetail/CnFlowHealthDot.vue.js';
|
|
7
|
+
import __sfc_main$1 from '../CnIcon/CnIcon.vue.js';
|
|
8
|
+
import __sfc_main$4 from './CnGroupNameCell.vue.js';
|
|
8
9
|
import { normalizeLook } from '../../composables/useLook.js';
|
|
9
10
|
import { isBadgeVariant } from '../../utils/badgeVariants.js';
|
|
10
11
|
import { formatBoardDate, formatAge, ageInDays, resolveAgeVariant, formatTimeOfDay, formatRelativeDate, boardDateLocale } from '../../utils/boardDate.js';
|
|
@@ -21,7 +22,7 @@ import { safeHref } from '../../utils/safeHref.js';
|
|
|
21
22
|
import { isGroupProp, formatValue } from '../../utils/schema.js';
|
|
22
23
|
import { userDisplayName } from '../../utils/userDisplayName.js';
|
|
23
24
|
import { isWithheld, withheldReason } from '../../utils/withheldValue.js';
|
|
24
|
-
import __sfc_main$
|
|
25
|
+
import __sfc_main$2 from '../CnStatusBadge/CnStatusBadge.vue.js';
|
|
25
26
|
|
|
26
27
|
/** A uuid in any version, the shape OpenRegister ids take. */
|
|
27
28
|
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -48,11 +49,12 @@ var script = {
|
|
|
48
49
|
name: 'CnCellRenderer',
|
|
49
50
|
|
|
50
51
|
components: {
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
CnFlowHealthDot: __sfc_main,
|
|
53
|
+
CnIcon: __sfc_main$1,
|
|
54
|
+
CnStatusBadge: __sfc_main$2,
|
|
53
55
|
NcCheckboxRadioSwitch,
|
|
54
|
-
CnFkResolveCell: __sfc_main$
|
|
55
|
-
CnGroupNameCell: __sfc_main$
|
|
56
|
+
CnFkResolveCell: __sfc_main$3,
|
|
57
|
+
CnGroupNameCell: __sfc_main$4,
|
|
56
58
|
CheckBold,
|
|
57
59
|
Lock,
|
|
58
60
|
NcAvatar,
|