refactoring van de cmap structuren bijna compleet

This commit is contained in:
2026-09-03 16:21:21 +02:00
parent 1abc84489f
commit bd1ef6bed0
75 changed files with 2547 additions and 1967 deletions
@@ -46,6 +46,7 @@ export class CmapConceptDialog {
open(record, resources) {
if (!record || record.kind === "phrase") return;
this.record = record;
this.resources = resources;
this.createContext = null;
this.imageSource = record.imageSource || "";
this.imageRead = Promise.resolve();
@@ -72,6 +73,7 @@ export class CmapConceptDialog {
/** Open the dialog for a new concept at the supplied editor context. */
openNew(createContext, resources) {
this.record = null;
this.resources = resources;
this.createContext = createContext;
this.imageSource = "";
this.imageRead = Promise.resolve();
@@ -208,7 +210,8 @@ export class CmapConceptDialog {
const descriptionInput = this.dialog.querySelector("#cmap-concept-description-page");
const descriptionText = descriptionInput.value.trim();
const descriptionPage = descriptionText ? newPageReference(descriptionText) :
pageReference("cmap", splitPageReference(newPageReference(label) || "concept").slug);
pageReference(this.resources?.cmapNamespace || "cmap",
splitPageReference(newPageReference(label) || "concept").slug);
if (!descriptionPage) {
this.tabs.select("content");
descriptionInput.setCustomValidity(