@knkcs/importhub-ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +7 -2
- package/dist/importhub-client-fCWgKH03.js +29 -0
- package/dist/importhub-client-fCWgKH03.js.map +1 -0
- package/dist/index.d.ts +457 -0
- package/dist/index.js +1547 -849
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +161 -0
- package/dist/mapping-editor.js +1 -1
- package/dist/{mapping-page-v0GJAPjW.js → mapping-page-D92XwUq5.js} +426 -418
- package/dist/mapping-page-D92XwUq5.js.map +1 -0
- package/dist/testing.d.ts +192 -0
- package/dist/testing.js +548 -270
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-CrS-3Zuu.js +0 -23
- package/dist/importhub-client-CrS-3Zuu.js.map +0 -1
- package/dist/mapping-page-v0GJAPjW.js.map +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as n, jsxs as g, Fragment as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Modal as oe, StatusBadgeCell as Pe, ContextRail as Z, Card as se, TruncatedTextCell as
|
|
4
|
-
import { InputField as
|
|
1
|
+
import { jsx as n, jsxs as g, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { Button as x, EmptyState as ve, StatusBadge as Y } from "@knkcs/anker/atoms";
|
|
3
|
+
import { Modal as oe, StatusBadgeCell as Pe, ContextRail as Z, Card as se, TruncatedTextCell as xe, IdentityCell as Ae, DateCell as Ne, ActionCell as ze, DataTable as He } from "@knkcs/anker/components";
|
|
4
|
+
import { InputField as J, BaseSelectField as Ke, TextareaField as Oe } from "@knkcs/anker/forms";
|
|
5
5
|
import { useHostIdentity as H } from "@knkcs/anker/host";
|
|
6
|
-
import { Tabs as
|
|
6
|
+
import { Tabs as U, Stack as k, Text as I, Alert as C, List as A, Link as ue, HStack as Q, Box as B, Center as Be, Spinner as _e, Table as z, Code as ee } from "@knkcs/anker/primitives";
|
|
7
7
|
import { DetailPageTemplate as Re, usePageRail as Ve } from "@knkcs/anker/templates";
|
|
8
|
-
import { useMutation as X, useQueryClient as
|
|
9
|
-
import { CircleAlert as
|
|
10
|
-
import { createContext as Ie, useContext as
|
|
11
|
-
import { useForm as
|
|
12
|
-
import { useTranslation as
|
|
13
|
-
import { useSearchParams as
|
|
14
|
-
import { C as Ye, R as et } from "./importhub-client-
|
|
15
|
-
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, lt = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, at = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, ct = { failed: "Die Änderungen konnten nicht gespeichert werden." }, dt = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, vt = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, St = { tabs: { fields: "Felder", versions: "Source Key & Source Versions", output: "Ausgabe" }, reasonsHere: "importhub hat hier einen Fehler gefunden:", tree: { label: "Felder des Blueprint-Release", mapped: "gemappt", unmapped: "nicht gemappt", invalid: "ungültig", toggle: "Felder von {{label}} ein- oder ausblenden", outside: "Gemappt, nicht in diesem Release", noLookup: "Dieser Host kann die Felder des Blueprint-Release nicht lesen, daher sind nur die Felder aufgeführt, die das Mapping mappt.", loadFailed: "Die Felder des Blueprint-Release konnten nicht gelesen werden.", selectField: "Wählen Sie ein Feld, um es zu mappen." }, field: { title: "Feld-Mapping", notMapped: "Das Mapping mappt dieses Feld nicht.", map: "Feld mappen", remove: "Mapping entfernen", selector: "XPath", selectorHelp: "Relativ zum Element; die Felder eines Fieldsets relativ zu dessen.", type: "Typ", optional: "Optional", optionalHelp: "Ein Element ohne diesen Wert ist kein Fehler.", dateFormat: "Datumsformat", dateFormatHelp: "Ein Go-Zeitlayout wie 02.01.2006; leer: ISO-Daten (2006-01-02).", dateFormats: "Weitere Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach nach dem Datumsformat versucht.", autoDetectDateFormat: "Gängige Datumsformate erkennen", numberLocale: "Zahlenformat", locale: { de: "Deutsch (1.234,56)", en: "Englisch (1,234.56)", ch: "Schweiz (1'234.56)" }, stripCurrency: "Währungszeichen entfernen", skipInvalid: "Ungültige Werte überspringen", skipInvalidHelp: "Ein nicht lesbarer Wert lässt das Feld leer, statt ein Problem zu melden.", selectOptions: "Auswahloptionen", selectOptionsHelp: "Eine pro Zeile: Schlüssel = Bezeichnung, etwa 0 = Gesetz.", textWrapperElement: "Text-Wrapper-Element", ignoreElements: "Ignorierte Elemente", passThroughElements: "Durchgereichte Elemente", elementsHelp: "Ein Elementname pro Zeile.", normalizeWhitespace: "Leerraum normalisieren", convertNewlinesToBreaks: "Zeilenumbrüche übernehmen", richTextMore: "Node- und Mark-Mappings und die übrigen Rich-Text-Einstellungen stehen unter Erweitert (JSON).", refBlueprintId: "ID des referenzierten Blueprints", refIdTemplate: "Vorlage der Referenz-ID", refIdTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern; sie müssen den Source Key des Ziels bilden.", refIdExtractPattern: "Extraktionsmuster der Referenz-ID", refIdExtractSeparator: "Trennzeichen der Referenz-ID", refIdExtractSeparatorHelp: "Verbindet die Gruppen des Musters; ohne Angabe -.", concatSelectors: "Verkettete XPaths", concatSelectorsHelp: "Ein XPath pro Zeile, der Reihe nach verbunden.", normalizeUnicode: "Unicode normalisieren", childrenHelp: "Seine Felder werden einzeln gemappt: wählen Sie sie im Baum.", elementBlueprintMap: "Blueprint je Element", elementBlueprintMapHelp: "Eine pro Zeile: Elementname = ID des referenzierten Blueprints, für einen Selektor, der mehrere Elemente trifft.", elementRefIdTemplateMap: "Vorlage der Referenz-ID je Element", elementRefIdTemplateMapHelp: "Eine pro Zeile: Elementname = Vorlage der Referenz-ID." }, json: { title: "Erweitert (JSON)", help: "Alle xmlmapper-Einstellungen des Feld-Mappings. Schlüssel, für die das Formular oben kein Eingabefeld hat, bleiben beim Speichern erhalten.", label: "Feld-Mapping als JSON", apply: "JSON übernehmen", notJson: "Das ist kein gültiges JSON.", notObject: "Ein Feld-Mapping ist ein JSON-Objekt.", unapplied: "Noch nicht übernommen: JSON übernehmen setzt es ins Formular, Speichern speichert es." }, sourceKey: { title: "Extraktion des Source Key", help: "Selektor und Vorlage des Source Key stehen unter Einstellungen.", extractPattern: "Extraktionsmuster", extractPatternHelp: "Ein regulärer Ausdruck auf den Wert jedes Platzhalters; seine Gruppen ersetzen einen passenden Wert.", extractSeparator: "Trennzeichen", extractSeparatorHelp: "Verbindet die Gruppen; - solange nicht gesetzt. Einmal gesetzt und geleert, verbindet es sie ohne Zeichen.", normalize: "Allen Leerraum aus dem Source Key entfernen" }, versionMatch: { title: "Version Match", help: "Eine Source Version entspricht einem bestehenden Release, dessen Werte alle gleich sind. Ohne Angabe ist jedes Element eine einzige Source Version, verglichen mit dem Stand von Main.", validityPeriod: "Gültigkeitszeitraum vergleichen", releaseSpecFields: "Zu vergleichende Release-Spec-Felder", noReleaseSpecFields: "Das Release hat keine Release-Spec-Felder.", contentFields: "Zu vergleichende Inhaltsfelder", noContentFields: "Das Mapping mappt noch kein Feld." }, validityPeriod: { title: "Gültigkeitszeitraum", validFrom: "XPath für gültig ab", validTo: "XPath für gültig bis", validToHelp: "Leer für unbefristet.", dateFormats: "Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach versucht; leer: ISO-Daten." }, releaseSpec: { title: "Quellen der Release Spec", none: "Kein Release-Spec-Wert wird aus der Quelle gelesen.", field: "Release-Spec-Feld {{index}}", selector: "XPath {{index}}", remove: "Release-Spec-Quelle {{index}} entfernen", add: "Release-Spec-Quelle hinzufügen" }, changedVersion: { title: "Changed Version", label: "Wenn eine Source Version zu einem Release passt, ihre gemappten Daten aber abweichen", help: "Ohne Auswahl: Korrigieren.", correct: "Korrigieren: ein Planned Release, das das passende ersetzt", keep: "Bestehendes Release behalten", fail: "Import fehlschlagen lassen" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Legt für jeden Source Key, für den es noch keinen Inhalt gibt, einen Inhalt nur mit Content Key und den gemappten Feldern an und ändert nie bestehende Inhalte." }, naming: { title: "Name und Collections", displayNameTemplate: "Vorlage des Anzeigenamens", displayNameTemplateHelp: "Feldpfade in geschweiften Klammern, etwa {titelnum} — {titel}.", collections: "Ziel-Collections", collectionsHelp: "Ein Collection-Schlüssel pro Zeile; jeder Inhalt wird in jede abgelegt." }, routing: { title: "Collection-Routing", help: "Leitet eine Collection pro Inhalt ab: den Wert des Selektors, übersetzt; sonst den Treffer des ID-Musters in der Vorlage; sonst die Ersatz-Collection.", selector: "XPath", collectionMap: "Collection-Zuordnung", collectionMapHelp: "Eine pro Zeile: Wert = Collection-Schlüssel. Leer: der Wert ist der Schlüssel.", idPattern: "ID-Muster", collectionTemplate: "Collection-Vorlage", collectionTemplateHelp: "Mit {match} und {suffix}.", suffix: "Suffix", fallback: "Ersatz-Collection" }, titles: { title: "Title Contributions", help: "Schreibt Daten je Ausgabe auf den Title, dessen Content Key der Ausgabe-Code ist.", none: "Keine Title Contributions.", item: "Title Contribution {{index}}", remove: "Title Contribution {{index}} entfernen", add: "Title Contribution hinzufügen", selector: "XPath der Ausgabe-Elemente", selectorHelp: "Wählt die Elemente, die je die Daten einer Ausgabe tragen.", ausgabeCodeSelector: "XPath des Ausgabe-Codes", referenceSpecValues: "Reference-Spec-Werte", valueField: "Reference-Spec-Feld {{index}}", valueSelector: "XPath des Werts {{index}}", removeValue: "Reference-Spec-Wert {{index}} entfernen", addValue: "Reference-Spec-Wert hinzufügen", referenceFilterSelector: "XPath des Referenzfilters", intent: "Absicht", intents: { none: "Keine", exclude: "Ausschließen", replace: "Ersetzen", annotate: "Anmerken" }, intentTextSelector: "XPath des Absichtstexts", intentTextSelectorHelp: "Der Ersatz- oder Anmerkungstext." }, assets: { title: "Placeholder Assets", help: "Macht die Dateiverweise der Quelle zu mediahub-Assets ohne Datei.", none: "Keine Dateiverweise werden zu Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Placeholder Assets {{index}} entfernen", add: "Placeholder Assets hinzufügen", selector: "XPath der Dateiverweise", selectorHelp: "Etwa .//grafik.", assetType: "Asset-Typ", keyParts: "Schlüsselteile", keyPartsHelp: "Ein XPath pro Zeile, relativ zum Verweis; ihre Werte, mit / verbunden, bilden den Schlüssel des Assets.", nameSelector: "XPath des Namens", descriptionSelector: "XPath der Beschreibung", metadata: "Metadaten", metadataHelp: "Eine pro Zeile: Metadatenfeld = XPath.", folderRoot: "Wurzelordner", folderPathSelector: "XPath des Ordnerpfads", folderPathSelectorHelp: "Der Pfad der Datei, als Ordner unter dem Wurzelordner gespiegelt." } }, Pt = {
|
|
8
|
+
import { useMutation as X, useQueryClient as ae, useQuery as _, useQueries as We, useInfiniteQuery as Le } from "@tanstack/react-query";
|
|
9
|
+
import { CircleAlert as qe, Tag as Xe, RotateCcw as $e, History as Qe, Trash2 as je, ArrowRightLeft as Ge } from "lucide-react";
|
|
10
|
+
import { createContext as Ie, useContext as we, useEffect as $, useState as W, useMemo as V, useCallback as Ue } from "react";
|
|
11
|
+
import { useForm as Ee, useWatch as Ze, FormProvider as Ce } from "react-hook-form";
|
|
12
|
+
import { useTranslation as w } from "react-i18next";
|
|
13
|
+
import { useSearchParams as Je, Link as me } from "react-router";
|
|
14
|
+
import { C as Ye, R as et } from "./importhub-client-fCWgKH03.js";
|
|
15
|
+
const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es noch keine Importe." }, profiles: { title: "Importprofile", summary_zero: "In diesem Workspace gibt es noch keine Importprofile.", summary_one: "In diesem Workspace gibt es ein Importprofil.", summary_other: "In diesem Workspace gibt es {{count}} Importprofile." }, mappings: { title: "Mappings", empty: "In diesem Workspace gibt es noch keine Mappings." }, entitySets: { title: "Entity Sets", summary_zero: "In diesem Workspace gibt es noch keine Entity Sets.", summary_one: "In diesem Workspace gibt es ein Entity Set.", summary_other: "In diesem Workspace gibt es {{count}} Entity Sets." }, processors: { title: "Prozessoren", summary_zero: "importhub bietet keine Prozessoren an.", summary_one: "importhub bietet einen Prozessor an.", summary_other: "importhub bietet {{count}} Prozessoren an." } }, nt = { loading: "Wird geladen…", error: "Das konnte nicht geladen werden. Versuchen Sie es gleich noch einmal." }, it = { open: "Change Set in contenthub öffnen" }, rt = { cancel: "Abbrechen", delete: "Löschen", create: "Anlegen", save: "Speichern", apply: "Übernehmen", close: "Schließen" }, st = { name: "Name", description: "Beschreibung" }, ot = { column: "Gültigkeit", valid: "Gültig", invalid: "Ungültig", invalidTitle: "Diese Konfiguration ist ungültig und kann nicht freigegeben werden:" }, at = { column: "Letztes Release", number: "Release {{number}}", none: "Noch kein Release", state: { none: "Noch nicht freigegeben", differs: "Entwurf weicht von Release {{number}} ab", current: "Release {{number}} ist aktuell" } }, lt = { nameTaken: "Dieser Name ist schon vergeben.", nameRequired: "Ein Name ist erforderlich.", failed: "Es konnte nicht angelegt werden. Versuchen Sie es gleich noch einmal." }, dt = { failed: "Die Änderungen konnten nicht gespeichert werden." }, ct = { title: "Details", actions: "Aktionen" }, pt = { moveUp: "{{name}} nach oben", moveDown: "{{name}} nach unten", remove: "{{name}} entfernen" }, ut = { new: "Neues Importprofil", empty: "In diesem Workspace gibt es noch keine Importprofile.", general: "Allgemein", entitySet: "Entity Set", entitySetHelp: "Die externen Zeichen-Entities, mit denen die Quelldatei gelesen wird.", noEntitySet: "Keines", autoPublish: "Automatisch veröffentlichen", autoPublishHelp: "Das Change Set eines Imports ohne Item Problems veröffentlichen.", deleteOnSuccess: "Quelldatei nach Erfolg löschen", deleteOnSuccessHelp: "Die Quelldatei löschen, sobald ein Import ohne Item Problems erfolgreich ist, statt nach der Aufbewahrungsfrist.", preprocessors: "Präprozessoren", mappings: "Mappings", postProcessors: "Postprozessoren", noPreprocessors: "Keine Präprozessoren: Die Quelldatei wird gemappt, wie sie ist.", noPostProcessors: "Keine Postprozessoren.", noMappings: "Es enthält noch kein Mapping.", addPreprocessor: "Präprozessor hinzufügen", addPostProcessor: "Postprozessor hinzufügen", addMapping: "Mapping hinzufügen", missingMapping: "Ein Mapping, das es nicht mehr gibt", delete: "Importprofil löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Importprofil wird gelöscht, und kein Import kann es mehr ausführen. Importe, die es ausgeführt hat, bleiben erhalten." }, mt = { empty: "importhub bietet keine Prozessoren an.", kindColumn: "Art", targetColumn: "Konfiguriert in", settingsColumn: "Einstellungen", noSettings: "Keine Einstellungen", kind: { preprocessor: "Präprozessor", post_processor: "Postprozessor" }, target: { source_file: "Importprofil", rich_text_field: "Rich-Text-Feld eines Mappings" }, unknown: "Nicht im Katalog", settingsOf: "Einstellungen von {{name}}", configure: "{{name}} konfigurieren", viewSettings: "Einstellungen von {{name}}", settingsCount_zero: "Keine Einstellungen gesetzt", settingsCount_one: "Eine Einstellung", settingsCount_other: "{{count}} Einstellungen" }, ht = { new: "Neues Mapping", empty: "In diesem Workspace gibt es noch keine Mappings.", general: "Allgemein", blueprint: "Ziel-Blueprint", release: "Blueprint-Release", blueprintId: "Blueprint-ID", releaseId: "Blueprint-Release-ID", idsHelp: "Wie blueprinthub sie nennt.", newRelease: "Neues Blueprint-Release", newReleaseId: "Neue Blueprint-Release-ID", elementSelector: "Element-Selektor", elementSelectorHelp: "Der XPath, der die Elemente wählt, aus denen je ein Content wird.", sourceKeySelector: "Source-Key-Selektor", sourceKeyTemplate: "Source-Key-Vorlage", sourceKeyTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern, etwa {ancestor::gesetz/@refid}-{@nr}; hat Vorrang vor dem Selektor.", fieldCount_zero: "Es mappt noch kein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_one: "Es mappt ein Feld. Feld-Mappings werden im Mapping-Editor bearbeitet.", fieldCount_other: "Es mappt {{count}} Felder. Feld-Mappings werden im Mapping-Editor bearbeitet.", target: "Ziel", move: "Auf ein anderes Release umstellen", moveTitle: "Auf ein anderes Blueprint-Release umstellen", check: "Prüfen", checkFailed: "Das Release konnte nicht geprüft werden.", nothingLost: "Jeden gemappten Feldpfad gibt es auch in diesem Release.", lost_one: "Ein gemappter Pfad fehlt in diesem Release:", lost_other: "{{count}} gemappte Pfade fehlen in diesem Release:", lostFields: "Feldpfade", lostReleaseSpec: "Release-Spec-Felder", moveConfirm: "Umstellen", includedBy: "Importprofile, die es enthalten", noProfiles: "Kein Importprofil enthält es.", delete: "Mapping löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Mapping wird gelöscht. importhub lehnt das ab, solange ein Importprofil es enthält." }, gt = { new: "Neues Entity Set", empty: "In diesem Workspace gibt es noch keine Entity Sets.", general: "Allgemein", entities: "Entities", entity: "Entity", noEntities: "Es definiert noch keine Entity.", entityName: "Entity {{index}}", entityText: "Steht für (Entity {{index}})", addEntity: "Entity hinzufügen", removeEntity: "Entity {{index}} entfernen", delete: "Entity Set löschen", deleteTitle: "{{name}} löschen?", deleteMessage: "Das Entity Set wird gelöscht. importhub lehnt das ab, solange ein Importprofil es nennt." }, ft = { settings: "Einstellungen", history: "Verlauf" }, bt = { action: "Release erstellen", title: "Release erstellen", confirm: "Release erstellen", message: "Der gespeicherte Entwurf wird als Release {{number}} freigegeben. Echte Importe verwenden ihn ab ihrem nächsten Start.", unchanged: "Der Entwurf entspricht Release {{number}}: Es gibt nichts freizugeben.", unsaved: "Nicht gespeicherte Änderungen auf dieser Seite gehören nicht zum Release. Speichern Sie sie zuerst, um sie freizugeben.", profilesIntro: "Diese Importprofile enthalten das Mapping und übernehmen das Release bei ihrem nächsten Import:", profiles: "Importprofile, die dieses Release übernehmen", noProfiles: "Noch kein Importprofil enthält das Mapping.", refused: "importhub hat das Release nicht erstellt:", failed: "Das Release konnte nicht erstellt werden. Versuchen Sie es gleich noch einmal.", done: "Release {{number}} ist erstellt.", doneBody: "Echte Importe verwenden es ab ihrem nächsten Start." }, yt = { hint: "Jedes Speichern ist eine Revision. Wählen Sie zwei aus, um sie nebeneinander zu vergleichen.", none: "Noch keine Revisionen.", loadMore: "Ältere Revisionen laden", columns: { revision: "Revision", release: "Release", savedBy: "Gespeichert von", savedAt: "Gespeichert" }, draft: "Entwurf", revision: "Früherer Entwurf", revisionOf: "Revision vom {{time}}", restoredFrom: "Wiederhergestellt aus {{revision}}", cutBy: "Erstellt von {{name}}, {{time}}.", unknownPerson: "Jemand, der nicht mehr im Workspace ist", restore: "Als Entwurf wiederherstellen", restoreTitle: "{{revision}} wiederherstellen?", restoreConfirm: "Wiederherstellen", restoreMessage: "Ihr Inhalt wird als neuer Entwurf gespeichert. Echte Importe verwenden weiter das neueste Release, bis Sie ein neues erstellen.", restoreFailed: "Sie konnte nicht wiederhergestellt werden.", olderRelease: "{{release}} wurde von {{name}} am {{time}} aus einer älteren Revision erstellt: Laden Sie ältere Revisionen, um sie zu sehen.", earlierRevision: "Eine frühere Revision" }, St = { title: "Vergleich", between: "{{from}} verglichen mit {{to}}", field: "Feld", same: "Die beiden Revisionen sind gleich.", differing_one: "Ein Feld unterscheidet sich.", differing_other: "{{count}} Felder unterscheiden sich.", status: { unchanged: "Unverändert", added: "Hinzugefügt", removed: "Entfernt", changed: "Geändert" }, absent: "Nicht gesetzt", missingEntitySet: "Ein Entity Set, das nicht mehr existiert", yes: "Ja", no: "Nein" }, vt = { tabs: { fields: "Felder", versions: "Source Key & Source Versions", output: "Ausgabe" }, reasonsHere: "importhub hat hier einen Fehler gefunden:", tree: { label: "Felder des Blueprint-Release", mapped: "gemappt", unmapped: "nicht gemappt", invalid: "ungültig", toggle: "Felder von {{label}} ein- oder ausblenden", outside: "Gemappt, nicht in diesem Release", noLookup: "Dieser Host kann die Felder des Blueprint-Release nicht lesen, daher sind nur die Felder aufgeführt, die das Mapping mappt.", loadFailed: "Die Felder des Blueprint-Release konnten nicht gelesen werden.", selectField: "Wählen Sie ein Feld, um es zu mappen." }, field: { title: "Feld-Mapping", notMapped: "Das Mapping mappt dieses Feld nicht.", map: "Feld mappen", remove: "Mapping entfernen", selector: "XPath", selectorHelp: "Relativ zum Element; die Felder eines Fieldsets relativ zu dessen.", type: "Typ", optional: "Optional", optionalHelp: "Ein Element ohne diesen Wert ist kein Fehler.", dateFormat: "Datumsformat", dateFormatHelp: "Ein Go-Zeitlayout wie 02.01.2006; leer: ISO-Daten (2006-01-02).", dateFormats: "Weitere Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach nach dem Datumsformat versucht.", autoDetectDateFormat: "Gängige Datumsformate erkennen", numberLocale: "Zahlenformat", locale: { de: "Deutsch (1.234,56)", en: "Englisch (1,234.56)", ch: "Schweiz (1'234.56)" }, stripCurrency: "Währungszeichen entfernen", skipInvalid: "Ungültige Werte überspringen", skipInvalidHelp: "Ein nicht lesbarer Wert lässt das Feld leer, statt ein Problem zu melden.", selectOptions: "Auswahloptionen", selectOptionsHelp: "Eine pro Zeile: Schlüssel = Bezeichnung, etwa 0 = Gesetz.", textWrapperElement: "Text-Wrapper-Element", ignoreElements: "Ignorierte Elemente", passThroughElements: "Durchgereichte Elemente", elementsHelp: "Ein Elementname pro Zeile.", normalizeWhitespace: "Leerraum normalisieren", convertNewlinesToBreaks: "Zeilenumbrüche übernehmen", richTextMore: "Node- und Mark-Mappings und die übrigen Rich-Text-Einstellungen stehen unter Erweitert (JSON).", refBlueprintId: "ID des referenzierten Blueprints", refIdTemplate: "Vorlage der Referenz-ID", refIdTemplateHelp: "XPath-Ausdrücke in geschweiften Klammern; sie müssen den Source Key des Ziels bilden.", refIdExtractPattern: "Extraktionsmuster der Referenz-ID", refIdExtractSeparator: "Trennzeichen der Referenz-ID", refIdExtractSeparatorHelp: "Verbindet die Gruppen des Musters; ohne Angabe -.", concatSelectors: "Verkettete XPaths", concatSelectorsHelp: "Ein XPath pro Zeile, der Reihe nach verbunden.", normalizeUnicode: "Unicode normalisieren", childrenHelp: "Seine Felder werden einzeln gemappt: wählen Sie sie im Baum.", elementBlueprintMap: "Blueprint je Element", elementBlueprintMapHelp: "Eine pro Zeile: Elementname = ID des referenzierten Blueprints, für einen Selektor, der mehrere Elemente trifft.", elementRefIdTemplateMap: "Vorlage der Referenz-ID je Element", elementRefIdTemplateMapHelp: "Eine pro Zeile: Elementname = Vorlage der Referenz-ID." }, json: { title: "Erweitert (JSON)", help: "Alle xmlmapper-Einstellungen des Feld-Mappings. Schlüssel, für die das Formular oben kein Eingabefeld hat, bleiben beim Speichern erhalten.", label: "Feld-Mapping als JSON", apply: "JSON übernehmen", notJson: "Das ist kein gültiges JSON.", notObject: "Ein Feld-Mapping ist ein JSON-Objekt.", unapplied: "Noch nicht übernommen: JSON übernehmen setzt es ins Formular, Speichern speichert es." }, sourceKey: { title: "Extraktion des Source Key", help: "Selektor und Vorlage des Source Key stehen unter Einstellungen.", extractPattern: "Extraktionsmuster", extractPatternHelp: "Ein regulärer Ausdruck auf den Wert jedes Platzhalters; seine Gruppen ersetzen einen passenden Wert.", extractSeparator: "Trennzeichen", extractSeparatorHelp: "Verbindet die Gruppen; - solange nicht gesetzt. Einmal gesetzt und geleert, verbindet es sie ohne Zeichen.", normalize: "Allen Leerraum aus dem Source Key entfernen" }, versionMatch: { title: "Version Match", help: "Eine Source Version entspricht einem bestehenden Release, dessen Werte alle gleich sind. Ohne Angabe ist jedes Element eine einzige Source Version, verglichen mit dem Stand von Main.", validityPeriod: "Gültigkeitszeitraum vergleichen", releaseSpecFields: "Zu vergleichende Release-Spec-Felder", noReleaseSpecFields: "Das Release hat keine Release-Spec-Felder.", contentFields: "Zu vergleichende Inhaltsfelder", noContentFields: "Das Mapping mappt noch kein Feld." }, validityPeriod: { title: "Gültigkeitszeitraum", validFrom: "XPath für gültig ab", validTo: "XPath für gültig bis", validToHelp: "Leer für unbefristet.", dateFormats: "Datumsformate", dateFormatsHelp: "Ein Go-Zeitlayout pro Zeile, der Reihe nach versucht; leer: ISO-Daten." }, releaseSpec: { title: "Quellen der Release Spec", none: "Kein Release-Spec-Wert wird aus der Quelle gelesen.", field: "Release-Spec-Feld {{index}}", selector: "XPath {{index}}", remove: "Release-Spec-Quelle {{index}} entfernen", add: "Release-Spec-Quelle hinzufügen" }, changedVersion: { title: "Changed Version", label: "Wenn eine Source Version zu einem Release passt, ihre gemappten Daten aber abweichen", help: "Ohne Auswahl: Korrigieren.", correct: "Korrigieren: ein Planned Release, das das passende ersetzt", keep: "Bestehendes Release behalten", fail: "Import fehlschlagen lassen" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Legt für jeden Source Key, für den es noch keinen Inhalt gibt, einen Inhalt nur mit Content Key und den gemappten Feldern an und ändert nie bestehende Inhalte." }, naming: { title: "Name und Collections", displayNameTemplate: "Vorlage des Anzeigenamens", displayNameTemplateHelp: "Feldpfade in geschweiften Klammern, etwa {titelnum} — {titel}.", collections: "Ziel-Collections", collectionsHelp: "Ein Collection-Schlüssel pro Zeile; jeder Inhalt wird in jede abgelegt." }, routing: { title: "Collection-Routing", help: "Leitet eine Collection pro Inhalt ab: den Wert des Selektors, übersetzt; sonst den Treffer des ID-Musters in der Vorlage; sonst die Ersatz-Collection.", selector: "XPath", collectionMap: "Collection-Zuordnung", collectionMapHelp: "Eine pro Zeile: Wert = Collection-Schlüssel. Leer: der Wert ist der Schlüssel.", idPattern: "ID-Muster", collectionTemplate: "Collection-Vorlage", collectionTemplateHelp: "Mit {match} und {suffix}.", suffix: "Suffix", fallback: "Ersatz-Collection" }, titles: { title: "Title Contributions", help: "Schreibt Daten je Ausgabe auf den Title, dessen Content Key der Ausgabe-Code ist.", none: "Keine Title Contributions.", item: "Title Contribution {{index}}", remove: "Title Contribution {{index}} entfernen", add: "Title Contribution hinzufügen", selector: "XPath der Ausgabe-Elemente", selectorHelp: "Wählt die Elemente, die je die Daten einer Ausgabe tragen.", ausgabeCodeSelector: "XPath des Ausgabe-Codes", referenceSpecValues: "Reference-Spec-Werte", valueField: "Reference-Spec-Feld {{index}}", valueSelector: "XPath des Werts {{index}}", removeValue: "Reference-Spec-Wert {{index}} entfernen", addValue: "Reference-Spec-Wert hinzufügen", referenceFilterSelector: "XPath des Referenzfilters", intent: "Absicht", intents: { none: "Keine", exclude: "Ausschließen", replace: "Ersetzen", annotate: "Anmerken" }, intentTextSelector: "XPath des Absichtstexts", intentTextSelectorHelp: "Der Ersatz- oder Anmerkungstext." }, assets: { title: "Placeholder Assets", help: "Macht die Dateiverweise der Quelle zu mediahub-Assets ohne Datei.", none: "Keine Dateiverweise werden zu Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Placeholder Assets {{index}} entfernen", add: "Placeholder Assets hinzufügen", selector: "XPath der Dateiverweise", selectorHelp: "Etwa .//grafik.", assetType: "Asset-Typ", keyParts: "Schlüsselteile", keyPartsHelp: "Ein XPath pro Zeile, relativ zum Verweis; ihre Werte, mit / verbunden, bilden den Schlüssel des Assets.", nameSelector: "XPath des Namens", descriptionSelector: "XPath der Beschreibung", metadata: "Metadaten", metadataHelp: "Eine pro Zeile: Metadatenfeld = XPath.", folderRoot: "Wurzelordner", folderPathSelector: "XPath des Ordnerpfads", folderPathSelectorHelp: "Der Pfad der Datei, als Ordner unter dem Wurzelordner gespiegelt." } }, Pt = { start: "Import starten", empty: "In diesem Workspace lief noch kein Import.", profile: "Importprofil", startedBy: "Gestartet von", started: "Gestartet", ended: "Beendet", matched: "Gefunden", created: "Angelegt", problems: "Probleme", planned: "Geplante Releases", corrected: "Korrigiert", kept: "Beibehalten", unchanged: "Unverändert", loadMore: "Mehr laden", phase: { queued: "Wartet", reading: "Liest", writing: "Schreibt", cancelling: "Wird abgebrochen" }, outcome: { succeeded: "Erfolgreich", succeeded_with_problems: "Erfolgreich mit Problemen", failed: "Fehlgeschlagen", cancelled: "Abgebrochen" }, progressTitle: "Fortschritt", phaseLong: { reading: "Liest die Quelldatei", writing: "Schreibt das Change Set in contenthub" }, progressOf: "{{done}} von {{total}} Einträgen", progressUnknown: "Zählt die Einträge…", queuedBody: "Er wartet, bis der laufende Import des Workspace beendet ist.", failedTitle: "Der Import ist fehlgeschlagen", cancelledBody: "{{person}} hat ihn abgebrochen. Das Change Set, das er geöffnet hatte, wurde verworfen.", cancellingBody: "{{person}} hat den Abbruch angefordert. Er hält beim nächsten Eintrag an.", problemsBody_one: "{{count}} Quellversion konnte nicht gespeichert werden und wurde übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", problemsBody_other: "{{count}} Quellversionen konnten nicht gespeichert werden und wurden übersprungen. Das Change Set bleibt erhalten, damit die Redaktion den Rest korrigiert.", details: "Details", effectiveDate: "Stichtag", source: "Quelle", sourceValue: "{{reference}}, {{date}}", none: "Keine", changeSet: "Change Set", counts: "Zahlen", releases: "Verwendete Releases", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Import abbrechen", cancelTitle: "Diesen Import abbrechen?", cancelMessage: "Er hält beim nächsten Eintrag an, und das Change Set, das er geöffnet hat, wird verworfen. Das lässt sich nicht rückgängig machen.", cancelConfirm: "Import abbrechen", keepRunning: "Weiterlaufen lassen", cancelFailed: "importhub hat den Import nicht abgebrochen: {{message}}", itemProblems: "Probleme je Eintrag", noItemProblems: "Keine Probleme.", noMatchingProblems: "Kein Problem passt.", searchSourceKey: "Nach Quellschlüssel suchen", filterMapping: "Nach Mapping filtern", allMappings: "Alle Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} von {{total}}", sourceKey: "Quellschlüssel", field: "Feld", reason: "Grund", wholeVersion: "Die ganze Quellversion", noSourceKey: "Kein Quellschlüssel", subtitle: "Gestartet von {{person}}, {{time}}", outcomeColumn: "Ergebnis", someone: "Jemand", mappings: "Mappings" }, Rt = { title: "Import starten", fileCard: "Profil und Quelldatei", profile: "Importprofil", profileHelp: "Nur Profile mit einem Release stehen zur Wahl: Ein Import verwendet das neueste Release, nie einen Entwurf.", profileOption: "{{name}} (Release {{number}})", file: "Quelldatei", fileHelp: "Eine XML-Datei. Sie geht direkt in den Speicher von importhub.", dropHint: "XML-Datei hierher ziehen", dragActive: "Zum Hochladen loslassen", chooseFile: "Datei wählen", uploading: "{{name}} wird hochgeladen", uploaded: "{{name}} ist hochgeladen.", uploadFailed: "Das Hochladen von {{name}} ist fehlgeschlagen: {{message}}", notXml: "{{name}} ist keine XML-Datei.", datesCard: "Daten", datesHelp: "Für eine Datei ohne Daten: Ihre datierten Inhalte übernehmen diese. Ein Datum aus der Datei geht immer vor.", effectiveDate: "Stichtag", effectiveDateHelp: "Der Tag, an dem die geplanten Releases beginnen.", sourceDate: "Quelle: Datum", sourceReference: "Quelle: Fundstelle", sourceReferenceHelp: "Wie die Veröffentlichung zitiert wird, etwa „BGBl. 2026 I Nr. 270“.", sourceIncomplete: "Eine Quelle braucht Datum und Fundstelle.", profileRequired: "Wählen Sie ein Importprofil.", consentTitle: "Der Import handelt in Ihrem Namen", consent: "Mit dem Start erhält importhub für bis zu 24 Stunden Zugriff in Ihrem Namen. Damit liest importhub Blueprints in blueprinthub, legt Platzhalter-Assets in mediahub an und schreibt das Change Set des Imports in contenthub, mit Ihren Rechten und unter Ihrem Namen. Der Zugriff endet, wenn der Import endet.", refused: "importhub hat den Import nicht gestartet", notAllowed: "Sie dürfen Importe ansehen, aber nicht starten.", noProfiles: "Noch kein Importprofil hat ein Release. Ein Admin muss erst eines freigeben." }, It = {
|
|
16
16
|
section: tt,
|
|
17
17
|
startPage: nt,
|
|
18
18
|
changeSet: it,
|
|
19
19
|
common: rt,
|
|
20
20
|
fields: st,
|
|
21
21
|
validity: ot,
|
|
22
|
-
release:
|
|
22
|
+
release: at,
|
|
23
23
|
delete: { inUse: "Es kann nicht gelöscht werden, solange diese Importprofile es verwenden:", failed: "Es konnte nicht gelöscht werden. Versuchen Sie es gleich noch einmal." },
|
|
24
|
-
create:
|
|
25
|
-
save:
|
|
26
|
-
rail:
|
|
24
|
+
create: lt,
|
|
25
|
+
save: dt,
|
|
26
|
+
rail: ct,
|
|
27
27
|
order: pt,
|
|
28
28
|
profiles: ut,
|
|
29
29
|
processors: mt,
|
|
@@ -32,34 +32,38 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
32
32
|
tabs: ft,
|
|
33
33
|
cut: bt,
|
|
34
34
|
history: yt,
|
|
35
|
-
compare:
|
|
36
|
-
editor:
|
|
37
|
-
}, Rt = { imports: { title: "Imports", empty: "No Imports in this workspace yet." }, profiles: { title: "Import Profiles", summary_zero: "No Import Profiles in this workspace yet.", summary_one: "This workspace has one Import Profile.", summary_other: "This workspace has {{count}} Import Profiles." }, mappings: { title: "Mappings", empty: "No Mappings in this workspace yet." }, entitySets: { title: "Entity Sets", summary_zero: "No Entity Sets in this workspace yet.", summary_one: "This workspace has one Entity Set.", summary_other: "This workspace has {{count}} Entity Sets." }, processors: { title: "Processors", summary_zero: "importhub offers no Processors.", summary_one: "importhub offers one Processor.", summary_other: "importhub offers {{count}} Processors." } }, It = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, Et = { open: "Open the Change Set in contenthub" }, wt = { cancel: "Cancel", delete: "Delete", create: "Create", save: "Save", apply: "Apply", close: "Close" }, Ct = { name: "Name", description: "Description" }, kt = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, Tt = { column: "Latest Release", number: "Release {{number}}", none: "No Release yet", state: { none: "Not released yet", differs: "Draft differs from Release {{number}}", current: "Release {{number}} is current" } }, Mt = { nameTaken: "Another one already has this name.", nameRequired: "A name is required.", failed: "It could not be created. Try again in a moment." }, Ft = { failed: "The changes could not be saved." }, xt = { title: "Details", actions: "Actions" }, Dt = { moveUp: "Move {{name}} up", moveDown: "Move {{name}} down", remove: "Remove {{name}}" }, At = { new: "New Import Profile", empty: "No Import Profiles in this workspace yet.", general: "General", entitySet: "Entity Set", entitySetHelp: "The external character entities the Source File is read with.", noEntitySet: "None", autoPublish: "Auto-publish", autoPublishHelp: "Publish the Change Set of an Import that succeeds without Item Problems.", deleteOnSuccess: "Delete the Source File on success", deleteOnSuccessHelp: "Delete the Source File as soon as an Import succeeds without Item Problems, instead of after the retention period.", preprocessors: "Preprocessors", mappings: "Mappings", postProcessors: "Post-processors", noPreprocessors: "No Preprocessors: the Source File is mapped as it is.", noPostProcessors: "No Post-processors.", noMappings: "It includes no Mapping yet.", addPreprocessor: "Add Preprocessor", addPostProcessor: "Add Post-processor", addMapping: "Add Mapping", missingMapping: "A Mapping that no longer exists", delete: "Delete Import Profile", deleteTitle: "Delete {{name}}?", deleteMessage: "The Import Profile is deleted, and no Import can run it any more. Imports it ran keep their record." }, Nt = { empty: "importhub offers no Processors.", kindColumn: "Kind", targetColumn: "Configured on", settingsColumn: "Settings", noSettings: "No settings", kind: { preprocessor: "Preprocessor", post_processor: "Post-processor" }, target: { source_file: "Import Profile", rich_text_field: "Rich-text field of a Mapping" }, unknown: "Not in the catalogue", settingsOf: "Settings of {{name}}", configure: "Configure {{name}}", viewSettings: "Settings of {{name}}", settingsCount_zero: "No settings set", settingsCount_one: "One setting", settingsCount_other: "{{count}} settings" }, zt = { new: "New Mapping", empty: "No Mappings in this workspace yet.", general: "General", blueprint: "Target Blueprint", release: "Blueprint Release", blueprintId: "Blueprint ID", releaseId: "Blueprint Release ID", idsHelp: "As blueprinthub names them.", newRelease: "New Blueprint Release", newReleaseId: "New Blueprint Release ID", elementSelector: "Element selector", elementSelectorHelp: "The XPath selecting the elements that each become one Content.", sourceKeySelector: "Source Key selector", sourceKeyTemplate: "Source Key template", sourceKeyTemplateHelp: "XPath expressions in braces, such as {ancestor::gesetz/@refid}-{@nr}; wins over the selector.", fieldCount_zero: "It maps no field yet. Field mappings are edited in the Mapping editor.", fieldCount_one: "It maps one field. Field mappings are edited in the Mapping editor.", fieldCount_other: "It maps {{count}} fields. Field mappings are edited in the Mapping editor.", target: "Target", move: "Move to another Release", moveTitle: "Move to another Blueprint Release", check: "Check", checkFailed: "The Release could not be checked.", nothingLost: "Every mapped field path exists in this Release.", lost_one: "One mapped path does not exist in this Release:", lost_other: "{{count}} mapped paths do not exist in this Release:", lostFields: "Field paths", lostReleaseSpec: "Release Spec fields", moveConfirm: "Move", includedBy: "Import Profiles that include it", noProfiles: "No Import Profile includes it.", delete: "Delete Mapping", deleteTitle: "Delete {{name}}?", deleteMessage: "The Mapping is deleted. importhub refuses while an Import Profile includes it." }, Ht = { new: "New Entity Set", empty: "No Entity Sets in this workspace yet.", general: "General", entities: "Entities", entity: "Entity", noEntities: "It defines no entity yet.", entityName: "Entity {{index}}", entityText: "Stands for (entity {{index}})", addEntity: "Add entity", removeEntity: "Remove entity {{index}}", delete: "Delete Entity Set", deleteTitle: "Delete {{name}}?", deleteMessage: "The Entity Set is deleted. importhub refuses while an Import Profile names it." }, Ot = { settings: "Settings", history: "History" }, _t = { action: "Cut Release", title: "Cut a Release", confirm: "Cut Release", message: "The saved draft is released as Release {{number}}. Real Imports run it from their next Start.", unchanged: "The draft is the same as Release {{number}}: there is nothing to release.", unsaved: "Unsaved changes on this page are not part of the Release. Save them first to release them.", profilesIntro: "These Import Profiles include the Mapping and take the Release at their next Import:", profiles: "Import Profiles that take this Release", noProfiles: "No Import Profile includes the Mapping yet.", refused: "importhub did not cut the Release:", failed: "The Release could not be cut. Try again in a moment.", done: "Release {{number}} is cut.", doneBody: "Real Imports run it from their next Start." }, Kt = { hint: "Every save is a Revision. Choose two to compare them side by side.", none: "No Revisions yet.", loadMore: "Load older Revisions", columns: { revision: "Revision", release: "Release", savedBy: "Saved by", savedAt: "Saved" }, draft: "Draft", revision: "Earlier draft", revisionOf: "Revision of {{time}}", restoredFrom: "Restored from {{revision}}", cutBy: "Cut by {{name}}, {{time}}.", unknownPerson: "Someone no longer in the workspace", restore: "Restore as draft", restoreTitle: "Restore {{revision}}?", restoreConfirm: "Restore", restoreMessage: "Its content is saved as a new draft. Real Imports keep running the latest Release until you cut another.", restoreFailed: "It could not be restored.", olderRelease: "{{release}} was cut by {{name}}, {{time}}, from an older Revision: load older Revisions to see it.", earlierRevision: "An earlier Revision" }, Bt = { title: "Comparison", between: "{{from}} compared with {{to}}", field: "Field", same: "The two Revisions are the same.", differing_one: "One field differs.", differing_other: "{{count}} fields differ.", status: { unchanged: "Unchanged", added: "Added", removed: "Removed", changed: "Changed" }, absent: "Not set", missingEntitySet: "An Entity Set that no longer exists", yes: "Yes", no: "No" }, Vt = { tabs: { fields: "Fields", versions: "Source Key & Source Versions", output: "Output" }, reasonsHere: "importhub found this wrong here:", tree: { label: "Fields of the Blueprint Release", mapped: "mapped", unmapped: "not mapped", invalid: "invalid", toggle: "Show or hide the fields of {{label}}", outside: "Mapped, not in this Release", noLookup: "This host cannot read the Blueprint Release's fields, so only the fields the Mapping maps are listed.", loadFailed: "The Blueprint Release's fields could not be read.", selectField: "Select a field to map it." }, field: { title: "Field mapping", notMapped: "The Mapping does not map this field.", map: "Map this field", remove: "Remove mapping", selector: "XPath", selectorHelp: "Relative to the element; a fieldset's children relative to the fieldset's.", type: "Type", optional: "Optional", optionalHelp: "An element without it is not an error.", dateFormat: "Date format", dateFormatHelp: "A Go time layout, such as 02.01.2006; ISO dates (2006-01-02) when empty.", dateFormats: "Further date formats", dateFormatsHelp: "One Go time layout per line, tried in order after the date format.", autoDetectDateFormat: "Detect common date formats", numberLocale: "Number format", locale: { de: "German (1.234,56)", en: "English (1,234.56)", ch: "Swiss (1'234.56)" }, stripCurrency: "Strip currency symbols", skipInvalid: "Skip invalid values", skipInvalidHelp: "A value that cannot be read leaves the field empty instead of reporting a problem.", selectOptions: "Select options", selectOptionsHelp: "One per line: key = label, such as 0 = Gesetz.", textWrapperElement: "Text wrapper element", ignoreElements: "Ignored elements", passThroughElements: "Pass-through elements", elementsHelp: "One element name per line.", normalizeWhitespace: "Normalize whitespace", convertNewlinesToBreaks: "Turn newlines into line breaks", richTextMore: "Node and mark mappings and the other rich-text settings are in Advanced (JSON).", refBlueprintId: "Referenced Blueprint ID", refIdTemplate: "Reference ID template", refIdTemplateHelp: "XPath expressions in braces; it must build the target's Source Key.", refIdExtractPattern: "Reference ID extract pattern", refIdExtractSeparator: "Reference ID separator", refIdExtractSeparatorHelp: "Joins the pattern's groups; - when left out.", concatSelectors: "Concatenated XPaths", concatSelectorsHelp: "One XPath per line, joined in order.", normalizeUnicode: "Normalize Unicode", childrenHelp: "Its fields are mapped on their own: select them in the tree.", elementBlueprintMap: "Blueprint by element", elementBlueprintMapHelp: "One per line: element name = referenced Blueprint ID, for a selector matching several elements.", elementRefIdTemplateMap: "Reference ID template by element", elementRefIdTemplateMapHelp: "One per line: element name = reference ID template." }, json: { title: "Advanced (JSON)", help: "The field mapping's full xmlmapper settings. Keys the form above has no input for are kept when you save.", label: "Field mapping as JSON", apply: "Apply JSON", notJson: "This is not valid JSON.", notObject: "A field mapping is a JSON object.", unapplied: "Not applied yet: Apply JSON puts it into the form, and Save saves it." }, sourceKey: { title: "Source Key extraction", help: "The Source Key's selector and template are under Settings.", extractPattern: "Extract pattern", extractPatternHelp: "A regular expression applied to each placeholder's value; its groups replace a value it matches.", extractSeparator: "Extract separator", extractSeparatorHelp: "Joins the groups; - while left unset. Emptied once set, it joins them with nothing.", normalize: "Remove all whitespace from the Source Key" }, versionMatch: { title: "Version Match", help: "A Source Version matches an existing Release whose values are all equal. Unset, each element is a single Source Version, compared with Main's head.", validityPeriod: "Compare the Validity Period", releaseSpecFields: "Release Spec fields to compare", noReleaseSpecFields: "The Release has no Release Spec fields.", contentFields: "Content fields to compare", noContentFields: "The Mapping maps no field yet." }, validityPeriod: { title: "Validity Period", validFrom: "Valid from XPath", validTo: "Valid to XPath", validToHelp: "Empty for open-ended.", dateFormats: "Date formats", dateFormatsHelp: "One Go time layout per line, tried in order; ISO dates when empty." }, releaseSpec: { title: "Release Spec sources", none: "No Release Spec value is read from the source.", field: "Release Spec field {{index}}", selector: "XPath {{index}}", remove: "Remove Release Spec source {{index}}", add: "Add Release Spec source" }, changedVersion: { title: "Changed Version", label: "When a Source Version matches a Release but its mapped data differs", help: "Correct when nothing is chosen.", correct: "Correct: a Planned Release that Supersedes the matched one", keep: "Keep the existing Release", fail: "Fail the Import" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Creates Content holding only the Content Key and the fields it maps for each Source Key no Content has yet, and never changes existing Content." }, naming: { title: "Name and Collections", displayNameTemplate: "Display-name template", displayNameTemplateHelp: "Field paths in braces, such as {titelnum} — {titel}.", collections: "Target Collections", collectionsHelp: "One Collection key per line; every Content is filed into each." }, routing: { title: "Collection routing", help: "Derives one Collection per Content: the selector's value, mapped; else the ID pattern's match in the template; else the fallback.", selector: "XPath", collectionMap: "Collection map", collectionMapHelp: "One per line: value = Collection key. Empty: the value is the key.", idPattern: "ID pattern", collectionTemplate: "Collection template", collectionTemplateHelp: "With {match} and {suffix}.", suffix: "Suffix", fallback: "Fallback Collection" }, titles: { title: "Title Contributions", help: "Writes per-Ausgabe data onto the Title whose Content Key is the Ausgabe code.", none: "No Title Contributions.", item: "Title Contribution {{index}}", remove: "Remove Title Contribution {{index}}", add: "Add Title Contribution", selector: "Ausgabe elements XPath", selectorHelp: "Selects the elements that carry one Ausgabe's data each.", ausgabeCodeSelector: "Ausgabe code XPath", referenceSpecValues: "Reference Spec values", valueField: "Reference Spec field {{index}}", valueSelector: "Value XPath {{index}}", removeValue: "Remove Reference Spec value {{index}}", addValue: "Add Reference Spec value", referenceFilterSelector: "Reference filter XPath", intent: "Intent", intents: { none: "None", exclude: "Exclude", replace: "Replace", annotate: "Annotate" }, intentTextSelector: "Intent text XPath", intentTextSelectorHelp: "The replacement or annotation text." }, assets: { title: "Placeholder Assets", help: "Turns the file references the source names into mediahub assets without a file.", none: "No file references become Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Remove Placeholder Assets {{index}}", add: "Add Placeholder Assets", selector: "File references XPath", selectorHelp: "Such as .//grafik.", assetType: "Asset type", keyParts: "Key parts", keyPartsHelp: "One XPath per line, relative to the reference; their values joined by / form the asset's key.", nameSelector: "Name XPath", descriptionSelector: "Description XPath", metadata: "Metadata", metadataHelp: "One per line: metadata field = XPath.", folderRoot: "Folder root", folderPathSelector: "Folder path XPath", folderPathSelectorHelp: "The file's path, mirrored as folders under the root." } }, Wt = {
|
|
38
|
-
|
|
39
|
-
startPage: It,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
compare: St,
|
|
36
|
+
editor: vt,
|
|
37
|
+
imports: Pt,
|
|
38
|
+
startImport: Rt
|
|
39
|
+
}, wt = { imports: { title: "Imports", empty: "No Imports in this workspace yet." }, profiles: { title: "Import Profiles", summary_zero: "No Import Profiles in this workspace yet.", summary_one: "This workspace has one Import Profile.", summary_other: "This workspace has {{count}} Import Profiles." }, mappings: { title: "Mappings", empty: "No Mappings in this workspace yet." }, entitySets: { title: "Entity Sets", summary_zero: "No Entity Sets in this workspace yet.", summary_one: "This workspace has one Entity Set.", summary_other: "This workspace has {{count}} Entity Sets." }, processors: { title: "Processors", summary_zero: "importhub offers no Processors.", summary_one: "importhub offers one Processor.", summary_other: "importhub offers {{count}} Processors." } }, Et = { loading: "Loading…", error: "This could not be loaded. Try again in a moment." }, Ct = { open: "Open the Change Set in contenthub" }, kt = { cancel: "Cancel", delete: "Delete", create: "Create", save: "Save", apply: "Apply", close: "Close" }, Mt = { name: "Name", description: "Description" }, Tt = { column: "Validity", valid: "Valid", invalid: "Invalid", invalidTitle: "This configuration is invalid and cannot be released:" }, Ft = { column: "Latest Release", number: "Release {{number}}", none: "No Release yet", state: { none: "Not released yet", differs: "Draft differs from Release {{number}}", current: "Release {{number}} is current" } }, Dt = { nameTaken: "Another one already has this name.", nameRequired: "A name is required.", failed: "It could not be created. Try again in a moment." }, xt = { failed: "The changes could not be saved." }, At = { title: "Details", actions: "Actions" }, Nt = { moveUp: "Move {{name}} up", moveDown: "Move {{name}} down", remove: "Remove {{name}}" }, zt = { new: "New Import Profile", empty: "No Import Profiles in this workspace yet.", general: "General", entitySet: "Entity Set", entitySetHelp: "The external character entities the Source File is read with.", noEntitySet: "None", autoPublish: "Auto-publish", autoPublishHelp: "Publish the Change Set of an Import that succeeds without Item Problems.", deleteOnSuccess: "Delete the Source File on success", deleteOnSuccessHelp: "Delete the Source File as soon as an Import succeeds without Item Problems, instead of after the retention period.", preprocessors: "Preprocessors", mappings: "Mappings", postProcessors: "Post-processors", noPreprocessors: "No Preprocessors: the Source File is mapped as it is.", noPostProcessors: "No Post-processors.", noMappings: "It includes no Mapping yet.", addPreprocessor: "Add Preprocessor", addPostProcessor: "Add Post-processor", addMapping: "Add Mapping", missingMapping: "A Mapping that no longer exists", delete: "Delete Import Profile", deleteTitle: "Delete {{name}}?", deleteMessage: "The Import Profile is deleted, and no Import can run it any more. Imports it ran keep their record." }, Ht = { empty: "importhub offers no Processors.", kindColumn: "Kind", targetColumn: "Configured on", settingsColumn: "Settings", noSettings: "No settings", kind: { preprocessor: "Preprocessor", post_processor: "Post-processor" }, target: { source_file: "Import Profile", rich_text_field: "Rich-text field of a Mapping" }, unknown: "Not in the catalogue", settingsOf: "Settings of {{name}}", configure: "Configure {{name}}", viewSettings: "Settings of {{name}}", settingsCount_zero: "No settings set", settingsCount_one: "One setting", settingsCount_other: "{{count}} settings" }, Kt = { new: "New Mapping", empty: "No Mappings in this workspace yet.", general: "General", blueprint: "Target Blueprint", release: "Blueprint Release", blueprintId: "Blueprint ID", releaseId: "Blueprint Release ID", idsHelp: "As blueprinthub names them.", newRelease: "New Blueprint Release", newReleaseId: "New Blueprint Release ID", elementSelector: "Element selector", elementSelectorHelp: "The XPath selecting the elements that each become one Content.", sourceKeySelector: "Source Key selector", sourceKeyTemplate: "Source Key template", sourceKeyTemplateHelp: "XPath expressions in braces, such as {ancestor::gesetz/@refid}-{@nr}; wins over the selector.", fieldCount_zero: "It maps no field yet. Field mappings are edited in the Mapping editor.", fieldCount_one: "It maps one field. Field mappings are edited in the Mapping editor.", fieldCount_other: "It maps {{count}} fields. Field mappings are edited in the Mapping editor.", target: "Target", move: "Move to another Release", moveTitle: "Move to another Blueprint Release", check: "Check", checkFailed: "The Release could not be checked.", nothingLost: "Every mapped field path exists in this Release.", lost_one: "One mapped path does not exist in this Release:", lost_other: "{{count}} mapped paths do not exist in this Release:", lostFields: "Field paths", lostReleaseSpec: "Release Spec fields", moveConfirm: "Move", includedBy: "Import Profiles that include it", noProfiles: "No Import Profile includes it.", delete: "Delete Mapping", deleteTitle: "Delete {{name}}?", deleteMessage: "The Mapping is deleted. importhub refuses while an Import Profile includes it." }, Ot = { new: "New Entity Set", empty: "No Entity Sets in this workspace yet.", general: "General", entities: "Entities", entity: "Entity", noEntities: "It defines no entity yet.", entityName: "Entity {{index}}", entityText: "Stands for (entity {{index}})", addEntity: "Add entity", removeEntity: "Remove entity {{index}}", delete: "Delete Entity Set", deleteTitle: "Delete {{name}}?", deleteMessage: "The Entity Set is deleted. importhub refuses while an Import Profile names it." }, Bt = { settings: "Settings", history: "History" }, _t = { action: "Cut Release", title: "Cut a Release", confirm: "Cut Release", message: "The saved draft is released as Release {{number}}. Real Imports run it from their next Start.", unchanged: "The draft is the same as Release {{number}}: there is nothing to release.", unsaved: "Unsaved changes on this page are not part of the Release. Save them first to release them.", profilesIntro: "These Import Profiles include the Mapping and take the Release at their next Import:", profiles: "Import Profiles that take this Release", noProfiles: "No Import Profile includes the Mapping yet.", refused: "importhub did not cut the Release:", failed: "The Release could not be cut. Try again in a moment.", done: "Release {{number}} is cut.", doneBody: "Real Imports run it from their next Start." }, Vt = { hint: "Every save is a Revision. Choose two to compare them side by side.", none: "No Revisions yet.", loadMore: "Load older Revisions", columns: { revision: "Revision", release: "Release", savedBy: "Saved by", savedAt: "Saved" }, draft: "Draft", revision: "Earlier draft", revisionOf: "Revision of {{time}}", restoredFrom: "Restored from {{revision}}", cutBy: "Cut by {{name}}, {{time}}.", unknownPerson: "Someone no longer in the workspace", restore: "Restore as draft", restoreTitle: "Restore {{revision}}?", restoreConfirm: "Restore", restoreMessage: "Its content is saved as a new draft. Real Imports keep running the latest Release until you cut another.", restoreFailed: "It could not be restored.", olderRelease: "{{release}} was cut by {{name}}, {{time}}, from an older Revision: load older Revisions to see it.", earlierRevision: "An earlier Revision" }, Wt = { title: "Comparison", between: "{{from}} compared with {{to}}", field: "Field", same: "The two Revisions are the same.", differing_one: "One field differs.", differing_other: "{{count}} fields differ.", status: { unchanged: "Unchanged", added: "Added", removed: "Removed", changed: "Changed" }, absent: "Not set", missingEntitySet: "An Entity Set that no longer exists", yes: "Yes", no: "No" }, Lt = { tabs: { fields: "Fields", versions: "Source Key & Source Versions", output: "Output" }, reasonsHere: "importhub found this wrong here:", tree: { label: "Fields of the Blueprint Release", mapped: "mapped", unmapped: "not mapped", invalid: "invalid", toggle: "Show or hide the fields of {{label}}", outside: "Mapped, not in this Release", noLookup: "This host cannot read the Blueprint Release's fields, so only the fields the Mapping maps are listed.", loadFailed: "The Blueprint Release's fields could not be read.", selectField: "Select a field to map it." }, field: { title: "Field mapping", notMapped: "The Mapping does not map this field.", map: "Map this field", remove: "Remove mapping", selector: "XPath", selectorHelp: "Relative to the element; a fieldset's children relative to the fieldset's.", type: "Type", optional: "Optional", optionalHelp: "An element without it is not an error.", dateFormat: "Date format", dateFormatHelp: "A Go time layout, such as 02.01.2006; ISO dates (2006-01-02) when empty.", dateFormats: "Further date formats", dateFormatsHelp: "One Go time layout per line, tried in order after the date format.", autoDetectDateFormat: "Detect common date formats", numberLocale: "Number format", locale: { de: "German (1.234,56)", en: "English (1,234.56)", ch: "Swiss (1'234.56)" }, stripCurrency: "Strip currency symbols", skipInvalid: "Skip invalid values", skipInvalidHelp: "A value that cannot be read leaves the field empty instead of reporting a problem.", selectOptions: "Select options", selectOptionsHelp: "One per line: key = label, such as 0 = Gesetz.", textWrapperElement: "Text wrapper element", ignoreElements: "Ignored elements", passThroughElements: "Pass-through elements", elementsHelp: "One element name per line.", normalizeWhitespace: "Normalize whitespace", convertNewlinesToBreaks: "Turn newlines into line breaks", richTextMore: "Node and mark mappings and the other rich-text settings are in Advanced (JSON).", refBlueprintId: "Referenced Blueprint ID", refIdTemplate: "Reference ID template", refIdTemplateHelp: "XPath expressions in braces; it must build the target's Source Key.", refIdExtractPattern: "Reference ID extract pattern", refIdExtractSeparator: "Reference ID separator", refIdExtractSeparatorHelp: "Joins the pattern's groups; - when left out.", concatSelectors: "Concatenated XPaths", concatSelectorsHelp: "One XPath per line, joined in order.", normalizeUnicode: "Normalize Unicode", childrenHelp: "Its fields are mapped on their own: select them in the tree.", elementBlueprintMap: "Blueprint by element", elementBlueprintMapHelp: "One per line: element name = referenced Blueprint ID, for a selector matching several elements.", elementRefIdTemplateMap: "Reference ID template by element", elementRefIdTemplateMapHelp: "One per line: element name = reference ID template." }, json: { title: "Advanced (JSON)", help: "The field mapping's full xmlmapper settings. Keys the form above has no input for are kept when you save.", label: "Field mapping as JSON", apply: "Apply JSON", notJson: "This is not valid JSON.", notObject: "A field mapping is a JSON object.", unapplied: "Not applied yet: Apply JSON puts it into the form, and Save saves it." }, sourceKey: { title: "Source Key extraction", help: "The Source Key's selector and template are under Settings.", extractPattern: "Extract pattern", extractPatternHelp: "A regular expression applied to each placeholder's value; its groups replace a value it matches.", extractSeparator: "Extract separator", extractSeparatorHelp: "Joins the groups; - while left unset. Emptied once set, it joins them with nothing.", normalize: "Remove all whitespace from the Source Key" }, versionMatch: { title: "Version Match", help: "A Source Version matches an existing Release whose values are all equal. Unset, each element is a single Source Version, compared with Main's head.", validityPeriod: "Compare the Validity Period", releaseSpecFields: "Release Spec fields to compare", noReleaseSpecFields: "The Release has no Release Spec fields.", contentFields: "Content fields to compare", noContentFields: "The Mapping maps no field yet." }, validityPeriod: { title: "Validity Period", validFrom: "Valid from XPath", validTo: "Valid to XPath", validToHelp: "Empty for open-ended.", dateFormats: "Date formats", dateFormatsHelp: "One Go time layout per line, tried in order; ISO dates when empty." }, releaseSpec: { title: "Release Spec sources", none: "No Release Spec value is read from the source.", field: "Release Spec field {{index}}", selector: "XPath {{index}}", remove: "Remove Release Spec source {{index}}", add: "Add Release Spec source" }, changedVersion: { title: "Changed Version", label: "When a Source Version matches a Release but its mapped data differs", help: "Correct when nothing is chosen.", correct: "Correct: a Planned Release that Supersedes the matched one", keep: "Keep the existing Release", fail: "Fail the Import" }, stub: { title: "Stub Mapping", label: "Stub Mapping", help: "Creates Content holding only the Content Key and the fields it maps for each Source Key no Content has yet, and never changes existing Content." }, naming: { title: "Name and Collections", displayNameTemplate: "Display-name template", displayNameTemplateHelp: "Field paths in braces, such as {titelnum} — {titel}.", collections: "Target Collections", collectionsHelp: "One Collection key per line; every Content is filed into each." }, routing: { title: "Collection routing", help: "Derives one Collection per Content: the selector's value, mapped; else the ID pattern's match in the template; else the fallback.", selector: "XPath", collectionMap: "Collection map", collectionMapHelp: "One per line: value = Collection key. Empty: the value is the key.", idPattern: "ID pattern", collectionTemplate: "Collection template", collectionTemplateHelp: "With {match} and {suffix}.", suffix: "Suffix", fallback: "Fallback Collection" }, titles: { title: "Title Contributions", help: "Writes per-Ausgabe data onto the Title whose Content Key is the Ausgabe code.", none: "No Title Contributions.", item: "Title Contribution {{index}}", remove: "Remove Title Contribution {{index}}", add: "Add Title Contribution", selector: "Ausgabe elements XPath", selectorHelp: "Selects the elements that carry one Ausgabe's data each.", ausgabeCodeSelector: "Ausgabe code XPath", referenceSpecValues: "Reference Spec values", valueField: "Reference Spec field {{index}}", valueSelector: "Value XPath {{index}}", removeValue: "Remove Reference Spec value {{index}}", addValue: "Add Reference Spec value", referenceFilterSelector: "Reference filter XPath", intent: "Intent", intents: { none: "None", exclude: "Exclude", replace: "Replace", annotate: "Annotate" }, intentTextSelector: "Intent text XPath", intentTextSelectorHelp: "The replacement or annotation text." }, assets: { title: "Placeholder Assets", help: "Turns the file references the source names into mediahub assets without a file.", none: "No file references become Placeholder Assets.", item: "Placeholder Assets {{index}}", remove: "Remove Placeholder Assets {{index}}", add: "Add Placeholder Assets", selector: "File references XPath", selectorHelp: "Such as .//grafik.", assetType: "Asset type", keyParts: "Key parts", keyPartsHelp: "One XPath per line, relative to the reference; their values joined by / form the asset's key.", nameSelector: "Name XPath", descriptionSelector: "Description XPath", metadata: "Metadata", metadataHelp: "One per line: metadata field = XPath.", folderRoot: "Folder root", folderPathSelector: "Folder path XPath", folderPathSelectorHelp: "The file's path, mirrored as folders under the root." } }, qt = { start: "Start Import", empty: "No Import has run in this workspace yet.", profile: "Import Profile", startedBy: "Started by", started: "Started", ended: "Ended", matched: "Matched", created: "Created", problems: "Problems", planned: "Planned Releases", corrected: "Corrected", kept: "Kept", unchanged: "Unchanged", loadMore: "Load more", phase: { queued: "Queued", reading: "Reading", writing: "Writing", cancelling: "Cancelling" }, outcome: { succeeded: "Succeeded", succeeded_with_problems: "Succeeded with problems", failed: "Failed", cancelled: "Cancelled" }, progressTitle: "Progress", phaseLong: { reading: "Reading the Source File", writing: "Writing the Change Set in contenthub" }, progressOf: "{{done}} of {{total}} items", progressUnknown: "Counting the items…", queuedBody: "It waits until the workspace's running Import has ended.", failedTitle: "The Import failed", cancelledBody: "{{person}} cancelled it. The Change Set it opened was discarded.", cancellingBody: "{{person}} asked to cancel it. It stops at its next item.", problemsBody_one: "{{count}} Source Version could not be saved and was skipped. Its Change Set is kept, for editors to fix the rest.", problemsBody_other: "{{count}} Source Versions could not be saved and were skipped. Its Change Set is kept, for editors to fix the rest.", details: "Details", effectiveDate: "Effective date", source: "Source", sourceValue: "{{reference}}, {{date}}", none: "None", changeSet: "Change Set", counts: "Counts", releases: "Releases it ran with", releaseOf: "{{name}}, Release {{number}}", mapping: "Mapping", entitySet: "Entity Set", cancel: "Cancel Import", cancelTitle: "Cancel this Import?", cancelMessage: "It stops at its next item, and the Change Set it opened is discarded. This cannot be undone.", cancelConfirm: "Cancel Import", keepRunning: "Keep running", cancelFailed: "importhub did not cancel the Import: {{message}}", itemProblems: "Item Problems", noItemProblems: "No Item Problems.", noMatchingProblems: "No Item Problem matches.", searchSourceKey: "Search by Source Key", filterMapping: "Filter by Mapping", allMappings: "All Mappings ({{count}})", mappingCount: "{{name}} ({{count}})", problemCount: "{{matching}} of {{total}}", sourceKey: "Source Key", field: "Field", reason: "Reason", wholeVersion: "The whole Source Version", noSourceKey: "No Source Key", subtitle: "Started by {{person}}, {{time}}", outcomeColumn: "Outcome", someone: "Someone", mappings: "Mappings" }, Xt = { title: "Start an Import", fileCard: "Profile and Source File", profile: "Import Profile", profileHelp: "Only Profiles with a Release are offered: an Import runs the latest Release, never a draft.", profileOption: "{{name}} (Release {{number}})", file: "Source File", fileHelp: "One XML file. It goes straight to importhub's storage.", dropHint: "Drag an XML file here", dragActive: "Drop to upload", chooseFile: "Choose file", uploading: "Uploading {{name}}", uploaded: "{{name}} is uploaded.", uploadFailed: "The upload of {{name}} failed: {{message}}", notXml: "{{name}} is not an XML file.", datesCard: "Dates", datesHelp: "For a file that gives no dates: its Dated Content takes these. A date the file gives always wins.", effectiveDate: "Effective date", effectiveDateHelp: "The day the Planned Releases start.", sourceDate: "Source: date", sourceReference: "Source: reference", sourceReferenceHelp: "How the publication is cited, such as “BGBl. 2026 I Nr. 270”.", sourceIncomplete: "A Source needs both its date and its reference.", profileRequired: "Choose an Import Profile.", consentTitle: "The Import acts as you", consent: "Starting it grants importhub delegated access in your name for up to 24 hours. With it, importhub reads Blueprints in blueprinthub, creates Placeholder Assets in mediahub and writes the Import's Change Set in contenthub, with your rights and named as you. The access ends when the Import ends.", refused: "importhub did not start the Import", notAllowed: "You may look at Imports, but not start them.", noProfiles: "No Import Profile has a Release yet. An admin releases one first." }, $t = {
|
|
40
|
+
section: wt,
|
|
41
|
+
startPage: Et,
|
|
42
|
+
changeSet: Ct,
|
|
43
|
+
common: kt,
|
|
44
|
+
fields: Mt,
|
|
45
|
+
validity: Tt,
|
|
46
|
+
release: Ft,
|
|
45
47
|
delete: { inUse: "It cannot be deleted while these Import Profiles use it:", failed: "It could not be deleted. Try again in a moment." },
|
|
46
|
-
create:
|
|
47
|
-
save:
|
|
48
|
-
rail:
|
|
49
|
-
order:
|
|
50
|
-
profiles:
|
|
51
|
-
processors:
|
|
52
|
-
mappings:
|
|
53
|
-
entitySets:
|
|
54
|
-
tabs:
|
|
48
|
+
create: Dt,
|
|
49
|
+
save: xt,
|
|
50
|
+
rail: At,
|
|
51
|
+
order: Nt,
|
|
52
|
+
profiles: zt,
|
|
53
|
+
processors: Ht,
|
|
54
|
+
mappings: Kt,
|
|
55
|
+
entitySets: Ot,
|
|
56
|
+
tabs: Bt,
|
|
55
57
|
cut: _t,
|
|
56
|
-
history:
|
|
57
|
-
compare:
|
|
58
|
-
editor:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
history: Vt,
|
|
59
|
+
compare: Wt,
|
|
60
|
+
editor: Lt,
|
|
61
|
+
imports: qt,
|
|
62
|
+
startImport: Xt
|
|
63
|
+
}, P = "importhub-ui", Kn = {
|
|
64
|
+
en: { [P]: $t },
|
|
65
|
+
de: { [P]: It }
|
|
66
|
+
}, On = [
|
|
63
67
|
"imports",
|
|
64
68
|
"profiles",
|
|
65
69
|
"mappings",
|
|
@@ -69,72 +73,76 @@ const tt = { imports: { title: "Importe", empty: "In diesem Workspace gibt es no
|
|
|
69
73
|
function he(e, t, i) {
|
|
70
74
|
return `${e[t].replace(/\/$/, "")}/${encodeURIComponent(i)}`;
|
|
71
75
|
}
|
|
72
|
-
const
|
|
76
|
+
const Qt = {
|
|
73
77
|
imports: "/imports",
|
|
74
78
|
profiles: "/settings/import-profiles",
|
|
75
79
|
mappings: "/settings/mappings",
|
|
76
80
|
entitySets: "/settings/entity-sets",
|
|
77
81
|
processors: "/settings/processors"
|
|
78
|
-
},
|
|
79
|
-
paths:
|
|
82
|
+
}, jt = {
|
|
83
|
+
paths: Qt,
|
|
80
84
|
changeSetHref: () => null
|
|
81
|
-
}, ke = Ie(
|
|
82
|
-
function
|
|
85
|
+
}, ke = Ie(jt);
|
|
86
|
+
function Bn({ host: e, children: t }) {
|
|
83
87
|
return /* @__PURE__ */ n(ke.Provider, { value: e, children: t });
|
|
84
88
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
89
|
+
function j() {
|
|
90
|
+
return we(ke);
|
|
87
91
|
}
|
|
88
|
-
const
|
|
92
|
+
const p = {
|
|
89
93
|
all: (e) => ["importhub", e],
|
|
90
|
-
importProfiles: (e) => [...
|
|
91
|
-
importProfile: (e, t) => [...
|
|
92
|
-
processors: (e) => [...
|
|
93
|
-
mappings: (e) => [...
|
|
94
|
-
mapping: (e, t) => [...
|
|
95
|
-
mappingImportProfiles: (e, t) => [...
|
|
96
|
-
entitySets: (e) => [...
|
|
97
|
-
entitySet: (e, t) => [...
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
importProfiles: (e) => [...p.all(e), "importProfiles"],
|
|
95
|
+
importProfile: (e, t) => [...p.importProfiles(e), t],
|
|
96
|
+
processors: (e) => [...p.all(e), "processors"],
|
|
97
|
+
mappings: (e) => [...p.all(e), "mappings"],
|
|
98
|
+
mapping: (e, t) => [...p.mappings(e), t],
|
|
99
|
+
mappingImportProfiles: (e, t) => [...p.mapping(e, t), "importProfiles"],
|
|
100
|
+
entitySets: (e) => [...p.all(e), "entitySets"],
|
|
101
|
+
entitySet: (e, t) => [...p.entitySets(e), t],
|
|
102
|
+
imports: (e) => [...p.all(e), "imports"],
|
|
103
|
+
import: (e, t) => [...p.imports(e), t],
|
|
104
|
+
/** An Import's Item Problems under a filter, one entry per filter. */
|
|
105
|
+
itemProblems: (e, t, i, a) => [...p.import(e, t), "itemProblems", i, a],
|
|
106
|
+
blueprints: (e) => [...p.all(e), "blueprints"],
|
|
107
|
+
blueprintReleases: (e, t) => [...p.blueprints(e), t, "releases"],
|
|
100
108
|
/** A Blueprint Release with its field tree; a Release never changes once cut. */
|
|
101
|
-
blueprintRelease: (e, t) => [...
|
|
109
|
+
blueprintRelease: (e, t) => [...p.blueprints(e), "release", t],
|
|
102
110
|
/** One configuration of a kind, as its page reads it. */
|
|
103
|
-
configuration: (e, t, i) => t === "importProfile" ?
|
|
111
|
+
configuration: (e, t, i) => t === "importProfile" ? p.importProfile(e, i) : t === "mapping" ? p.mapping(e, i) : p.entitySet(e, i),
|
|
104
112
|
/** Every list of a kind, so one change refreshes them all. */
|
|
105
|
-
configurations: (e, t) => t === "importProfile" ?
|
|
106
|
-
history: (e, t, i) => [...
|
|
107
|
-
comparison: (e, t, i,
|
|
108
|
-
...
|
|
113
|
+
configurations: (e, t) => t === "importProfile" ? p.importProfiles(e) : t === "mapping" ? p.mappings(e) : p.entitySets(e),
|
|
114
|
+
history: (e, t, i) => [...p.configuration(e, t, i), "history"],
|
|
115
|
+
comparison: (e, t, i, a, s) => [
|
|
116
|
+
...p.configuration(e, t, i),
|
|
109
117
|
"comparison",
|
|
110
|
-
|
|
118
|
+
a,
|
|
111
119
|
s
|
|
112
120
|
]
|
|
113
121
|
};
|
|
114
|
-
function
|
|
115
|
-
const { t } =
|
|
116
|
-
const
|
|
117
|
-
o !== "settings" ?
|
|
118
|
-
},
|
|
119
|
-
/* @__PURE__ */ n(
|
|
120
|
-
e.map((o) => /* @__PURE__ */ n(
|
|
121
|
-
/* @__PURE__ */ n(
|
|
122
|
+
function Gt(e = []) {
|
|
123
|
+
const { t } = w(P), [i, a] = Je(), s = /* @__PURE__ */ new Set(["history", ...e.map((o) => o.value)]), r = i.get("tab") ?? "", l = s.has(r) ? r : "settings", d = (o) => {
|
|
124
|
+
const u = new URLSearchParams(i);
|
|
125
|
+
o !== "settings" ? u.set("tab", o) : u.delete("tab"), a(u, { replace: !0 });
|
|
126
|
+
}, c = /* @__PURE__ */ n(U.Root, { value: l, onValueChange: (o) => d(o.value), children: /* @__PURE__ */ g(U.List, { children: [
|
|
127
|
+
/* @__PURE__ */ n(U.Trigger, { value: "settings", children: t("tabs.settings") }),
|
|
128
|
+
e.map((o) => /* @__PURE__ */ n(U.Trigger, { value: o.value, children: o.label }, o.value)),
|
|
129
|
+
/* @__PURE__ */ n(U.Trigger, { value: "history", children: t("tabs.history") })
|
|
122
130
|
] }) });
|
|
123
|
-
return [
|
|
131
|
+
return [l, c];
|
|
124
132
|
}
|
|
125
|
-
function
|
|
133
|
+
function Ut({
|
|
126
134
|
open: e,
|
|
127
135
|
onClose: t,
|
|
128
136
|
title: i,
|
|
129
|
-
message:
|
|
137
|
+
message: a,
|
|
130
138
|
onDelete: s,
|
|
131
139
|
onDeleted: r
|
|
132
140
|
}) {
|
|
133
|
-
const { t:
|
|
141
|
+
const { t: l } = w(P), { paths: d } = j(), c = X({ mutationFn: s, onSuccess: r }), { reset: o } = c;
|
|
134
142
|
$(() => {
|
|
135
143
|
e && o();
|
|
136
144
|
}, [e, o]);
|
|
137
|
-
const
|
|
145
|
+
const u = c.error instanceof Ye ? c.error : null;
|
|
138
146
|
return /* @__PURE__ */ n(
|
|
139
147
|
oe,
|
|
140
148
|
{
|
|
@@ -143,98 +151,98 @@ function $t({
|
|
|
143
151
|
header: i,
|
|
144
152
|
lazyMount: !0,
|
|
145
153
|
unmountOnExit: !0,
|
|
146
|
-
footer: /* @__PURE__ */ g(
|
|
147
|
-
/* @__PURE__ */ n(
|
|
154
|
+
footer: /* @__PURE__ */ g(Q, { gap: "2", children: [
|
|
155
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: l("common.cancel") }),
|
|
148
156
|
/* @__PURE__ */ n(
|
|
149
|
-
|
|
157
|
+
x,
|
|
150
158
|
{
|
|
151
159
|
variant: "solid",
|
|
152
160
|
colorPalette: "red",
|
|
153
|
-
loading:
|
|
154
|
-
disabled:
|
|
155
|
-
onClick: () =>
|
|
156
|
-
children:
|
|
161
|
+
loading: c.isPending,
|
|
162
|
+
disabled: u !== null,
|
|
163
|
+
onClick: () => c.mutate(),
|
|
164
|
+
children: l("common.delete")
|
|
157
165
|
}
|
|
158
166
|
)
|
|
159
167
|
] }),
|
|
160
168
|
children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
161
|
-
/* @__PURE__ */ n(I, { children:
|
|
162
|
-
|
|
169
|
+
/* @__PURE__ */ n(I, { children: a }),
|
|
170
|
+
u ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: l("delete.inUse"), children: /* @__PURE__ */ n(A.Root, { ps: "4", children: u.importProfiles.map((y) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(d, "profiles", y.id), children: y.name }) }) }, y.id)) }) }) : c.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: l("delete.failed") }) : null
|
|
163
171
|
] })
|
|
164
172
|
}
|
|
165
173
|
);
|
|
166
174
|
}
|
|
167
|
-
function
|
|
168
|
-
const { t: e } =
|
|
169
|
-
return /* @__PURE__ */ n(
|
|
175
|
+
function Zt() {
|
|
176
|
+
const { t: e } = w(P);
|
|
177
|
+
return /* @__PURE__ */ n(Be, { py: "12", children: /* @__PURE__ */ n(_e, { "aria-label": e("startPage.loading") }) });
|
|
170
178
|
}
|
|
171
|
-
function
|
|
172
|
-
const { t: e } =
|
|
173
|
-
return /* @__PURE__ */ n(
|
|
179
|
+
function Jt() {
|
|
180
|
+
const { t: e } = w(P);
|
|
181
|
+
return /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(qe, { size: 32, "aria-hidden": !0 }), header: e("startPage.error") }) });
|
|
174
182
|
}
|
|
175
|
-
function
|
|
176
|
-
const { t } =
|
|
183
|
+
function Yt({ state: e }) {
|
|
184
|
+
const { t } = w(P);
|
|
177
185
|
if (!e.latestRelease)
|
|
178
186
|
return /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.none") });
|
|
179
187
|
const i = e.latestRelease.number;
|
|
180
188
|
return e.draftDiffersFromRelease ? /* @__PURE__ */ n(Y, { tone: "warning", label: t("release.state.differs", { number: i }) }) : /* @__PURE__ */ n(Y, { tone: "success", label: t("release.state.current", { number: i }) });
|
|
181
189
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
190
|
+
function Me() {
|
|
191
|
+
return j().canConfigure ?? !1;
|
|
184
192
|
}
|
|
185
|
-
function
|
|
186
|
-
const { t } =
|
|
193
|
+
function Te({ validity: e }) {
|
|
194
|
+
const { t } = w(P);
|
|
187
195
|
return e.valid ? null : /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: t("validity.invalidTitle"), children: /* @__PURE__ */ n(A.Root, { ps: "4", children: e.reasons.map((i) => /* @__PURE__ */ n(A.Item, { children: i.message }, `${i.code}:${i.path}:${i.message}`)) }) });
|
|
188
196
|
}
|
|
189
|
-
const
|
|
197
|
+
const en = (e) => ({
|
|
190
198
|
[e("validity.valid")]: "success",
|
|
191
199
|
[e("validity.invalid")]: "danger"
|
|
192
200
|
});
|
|
193
|
-
function
|
|
194
|
-
const { t } =
|
|
201
|
+
function tn({ validity: e }) {
|
|
202
|
+
const { t } = w(P);
|
|
195
203
|
return /* @__PURE__ */ n(
|
|
196
204
|
Pe,
|
|
197
205
|
{
|
|
198
206
|
value: e.valid ? t("validity.valid") : t("validity.invalid"),
|
|
199
|
-
toneMap:
|
|
207
|
+
toneMap: en(t),
|
|
200
208
|
detail: e.valid ? null : e.reasons.map((i) => i.message).join(" ")
|
|
201
209
|
}
|
|
202
210
|
);
|
|
203
211
|
}
|
|
204
|
-
function
|
|
212
|
+
function _n(e, t) {
|
|
205
213
|
return e.latestRelease ? t("release.number", { number: e.latestRelease.number }) : t("release.none");
|
|
206
214
|
}
|
|
207
|
-
function
|
|
215
|
+
function nn({
|
|
208
216
|
open: e,
|
|
209
217
|
onClose: t,
|
|
210
218
|
client: i,
|
|
211
|
-
kind:
|
|
219
|
+
kind: a,
|
|
212
220
|
id: s,
|
|
213
221
|
validity: r,
|
|
214
|
-
state:
|
|
215
|
-
unsaved:
|
|
216
|
-
onCut:
|
|
222
|
+
state: l,
|
|
223
|
+
unsaved: d,
|
|
224
|
+
onCut: c
|
|
217
225
|
}) {
|
|
218
|
-
const { t: o } =
|
|
219
|
-
mutationFn: () => i.cutRelease(
|
|
220
|
-
onSuccess:
|
|
226
|
+
const { t: o } = w(P), { workspaceId: u } = H(), y = ae(), h = X({
|
|
227
|
+
mutationFn: () => i.cutRelease(a, s, l.draftRevisionId),
|
|
228
|
+
onSuccess: c,
|
|
221
229
|
// A refusal means the page's draft is not importhub's (somebody saved
|
|
222
230
|
// in between, or its validity changed): read it again, so the next
|
|
223
231
|
// opening shows where it stands and cuts the draft that is there.
|
|
224
232
|
onError: () => {
|
|
225
233
|
y.invalidateQueries({
|
|
226
|
-
queryKey:
|
|
234
|
+
queryKey: p.configuration(u, a, s)
|
|
227
235
|
});
|
|
228
236
|
}
|
|
229
|
-
}), { reset:
|
|
237
|
+
}), { reset: S } = h;
|
|
230
238
|
$(() => {
|
|
231
|
-
e &&
|
|
232
|
-
}, [e,
|
|
233
|
-
const R =
|
|
234
|
-
queryKey:
|
|
239
|
+
e && S();
|
|
240
|
+
}, [e, S]);
|
|
241
|
+
const R = _({
|
|
242
|
+
queryKey: p.mappingImportProfiles(u, s),
|
|
235
243
|
queryFn: () => i.listMappingImportProfiles(s),
|
|
236
|
-
enabled: e &&
|
|
237
|
-
}), m = (
|
|
244
|
+
enabled: e && a === "mapping"
|
|
245
|
+
}), m = (l.latestRelease?.number ?? 0) + 1, f = l.latestRelease !== void 0 && !l.draftDiffersFromRelease, M = r.valid && !f, F = h.error instanceof et ? h.error : null;
|
|
238
246
|
return /* @__PURE__ */ n(
|
|
239
247
|
oe,
|
|
240
248
|
{
|
|
@@ -243,10 +251,10 @@ function Qt({
|
|
|
243
251
|
header: o("cut.title"),
|
|
244
252
|
lazyMount: !0,
|
|
245
253
|
unmountOnExit: !0,
|
|
246
|
-
footer: /* @__PURE__ */ g(
|
|
247
|
-
/* @__PURE__ */ n(
|
|
248
|
-
|
|
249
|
-
|
|
254
|
+
footer: /* @__PURE__ */ g(Q, { gap: "2", children: [
|
|
255
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: o(M ? "common.cancel" : "common.close") }),
|
|
256
|
+
M ? /* @__PURE__ */ n(
|
|
257
|
+
x,
|
|
250
258
|
{
|
|
251
259
|
variant: "solid",
|
|
252
260
|
loading: h.isPending,
|
|
@@ -262,99 +270,99 @@ function Qt({
|
|
|
262
270
|
{
|
|
263
271
|
status: "info",
|
|
264
272
|
colorPalette: "info",
|
|
265
|
-
title: o("cut.unchanged", { number:
|
|
273
|
+
title: o("cut.unchanged", { number: l.latestRelease?.number })
|
|
266
274
|
}
|
|
267
|
-
) : /* @__PURE__ */ g(
|
|
275
|
+
) : /* @__PURE__ */ g(q, { children: [
|
|
268
276
|
/* @__PURE__ */ n(I, { children: o("cut.message", { number: m }) }),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
] }) : /* @__PURE__ */ n(
|
|
272
|
-
F && r.valid ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: o("cut.refused"), children: F.validity && !F.validity.valid ? /* @__PURE__ */ n(A.Root, { ps: "4", children: F.validity.reasons.map((
|
|
277
|
+
d ? /* @__PURE__ */ n(C, { status: "warning", colorPalette: "warning", title: o("cut.unsaved") }) : null,
|
|
278
|
+
a === "mapping" ? /* @__PURE__ */ n(rn, { query: R }) : null
|
|
279
|
+
] }) : /* @__PURE__ */ n(Te, { validity: r }),
|
|
280
|
+
F && r.valid ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: o("cut.refused"), children: F.validity && !F.validity.valid ? /* @__PURE__ */ n(A.Root, { ps: "4", children: F.validity.reasons.map((T) => /* @__PURE__ */ n(A.Item, { children: T.message }, `${T.code}:${T.path}:${T.message}`)) }) : F.message }) : h.isError && !F ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: o("cut.failed") }) : null
|
|
273
281
|
] })
|
|
274
282
|
}
|
|
275
283
|
);
|
|
276
284
|
}
|
|
277
|
-
function
|
|
285
|
+
function rn({
|
|
278
286
|
query: e
|
|
279
287
|
}) {
|
|
280
|
-
const { t } =
|
|
288
|
+
const { t } = w(P), { paths: i } = j();
|
|
281
289
|
return e.isError ? /* @__PURE__ */ n(I, { color: "fg.muted", children: t("startPage.error") }) : e.data ? e.data.length === 0 ? /* @__PURE__ */ n(I, { children: t("cut.noProfiles") }) : /* @__PURE__ */ g(k, { gap: "2", children: [
|
|
282
290
|
/* @__PURE__ */ n(I, { children: t("cut.profilesIntro") }),
|
|
283
|
-
/* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": t("cut.profiles"), children: e.data.map((
|
|
291
|
+
/* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": t("cut.profiles"), children: e.data.map((a) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(i, "profiles", a.id), children: a.name }) }) }, a.id)) })
|
|
284
292
|
] }) : /* @__PURE__ */ n(I, { color: "fg.muted", children: t("startPage.loading") });
|
|
285
293
|
}
|
|
286
|
-
function
|
|
294
|
+
function sn({
|
|
287
295
|
client: e,
|
|
288
296
|
kind: t,
|
|
289
297
|
id: i,
|
|
290
|
-
validity:
|
|
298
|
+
validity: a,
|
|
291
299
|
state: s,
|
|
292
300
|
unsaved: r
|
|
293
301
|
}) {
|
|
294
|
-
const { t:
|
|
302
|
+
const { t: l } = w(P), { workspaceId: d } = H(), c = ae(), [o, u] = W(!1), [y, h] = W(null);
|
|
295
303
|
return {
|
|
296
304
|
railAction: /* @__PURE__ */ n(
|
|
297
305
|
Z.IconButton,
|
|
298
306
|
{
|
|
299
|
-
label:
|
|
307
|
+
label: l("cut.action"),
|
|
300
308
|
icon: /* @__PURE__ */ n(Xe, { size: 16 }),
|
|
301
309
|
onClick: () => {
|
|
302
|
-
h(null),
|
|
310
|
+
h(null), u(!0);
|
|
303
311
|
}
|
|
304
312
|
}
|
|
305
313
|
),
|
|
306
314
|
dialog: /* @__PURE__ */ n(
|
|
307
|
-
|
|
315
|
+
nn,
|
|
308
316
|
{
|
|
309
317
|
open: o,
|
|
310
|
-
onClose: () =>
|
|
318
|
+
onClose: () => u(!1),
|
|
311
319
|
client: e,
|
|
312
320
|
kind: t,
|
|
313
321
|
id: i,
|
|
314
|
-
validity:
|
|
322
|
+
validity: a,
|
|
315
323
|
state: s,
|
|
316
324
|
unsaved: r,
|
|
317
|
-
onCut: (
|
|
318
|
-
|
|
319
|
-
queryKey:
|
|
320
|
-
}),
|
|
321
|
-
queryKey:
|
|
322
|
-
}), t === "mapping" &&
|
|
323
|
-
queryKey:
|
|
325
|
+
onCut: (S) => {
|
|
326
|
+
u(!1), h(S.release.number), c.invalidateQueries({
|
|
327
|
+
queryKey: p.configuration(d, t, i)
|
|
328
|
+
}), c.invalidateQueries({
|
|
329
|
+
queryKey: p.configurations(d, t)
|
|
330
|
+
}), t === "mapping" && c.invalidateQueries({
|
|
331
|
+
queryKey: p.importProfiles(d)
|
|
324
332
|
});
|
|
325
333
|
}
|
|
326
334
|
}
|
|
327
335
|
),
|
|
328
|
-
notice: y === null ? null : /* @__PURE__ */ n(C, { status: "success", colorPalette: "success", title:
|
|
336
|
+
notice: y === null ? null : /* @__PURE__ */ n(C, { status: "success", colorPalette: "success", title: l("cut.done", { number: y }), children: l("cut.doneBody") })
|
|
329
337
|
};
|
|
330
338
|
}
|
|
331
339
|
function Fe(e) {
|
|
332
|
-
const { blueprints: t } =
|
|
333
|
-
queryKey:
|
|
340
|
+
const { blueprints: t } = j(), { workspaceId: i } = H(), a = [...new Set(e.filter(Boolean))].sort(), s = _({
|
|
341
|
+
queryKey: p.blueprints(i),
|
|
334
342
|
queryFn: () => t?.listBlueprints() ?? Promise.resolve([]),
|
|
335
343
|
enabled: t !== void 0
|
|
336
344
|
}), r = We({
|
|
337
|
-
queries:
|
|
338
|
-
queryKey:
|
|
345
|
+
queries: a.map((o) => ({
|
|
346
|
+
queryKey: p.blueprintReleases(i, o),
|
|
339
347
|
queryFn: () => t?.listReleases(o) ?? Promise.resolve([]),
|
|
340
348
|
enabled: t !== void 0
|
|
341
349
|
}))
|
|
342
|
-
}),
|
|
350
|
+
}), l = r.map((o) => o.data), d = r.map((o) => o.dataUpdatedAt).join(), c = a.join();
|
|
343
351
|
return V(
|
|
344
352
|
() => ({
|
|
345
353
|
available: t !== void 0,
|
|
346
|
-
blueprintName: (o) => s.data?.find((
|
|
347
|
-
releaseLabel: (o,
|
|
354
|
+
blueprintName: (o) => s.data?.find((u) => u.id === o)?.name,
|
|
355
|
+
releaseLabel: (o, u) => l[a.indexOf(o)]?.find((y) => y.id === u)?.label
|
|
348
356
|
}),
|
|
349
|
-
[t, s.data,
|
|
357
|
+
[t, s.data, d, c]
|
|
350
358
|
);
|
|
351
359
|
}
|
|
352
|
-
const
|
|
360
|
+
const on = {
|
|
353
361
|
unchanged: "neutral",
|
|
354
362
|
added: "success",
|
|
355
363
|
removed: "danger",
|
|
356
364
|
changed: "warning"
|
|
357
|
-
},
|
|
365
|
+
}, an = {
|
|
358
366
|
name: "fields.name",
|
|
359
367
|
description: "fields.description",
|
|
360
368
|
entities: "entitySets.entities",
|
|
@@ -371,39 +379,39 @@ const tn = {
|
|
|
371
379
|
blueprint_id: "mappings.blueprintId",
|
|
372
380
|
blueprint_release_id: "mappings.releaseId"
|
|
373
381
|
};
|
|
374
|
-
function
|
|
382
|
+
function ln({
|
|
375
383
|
client: e,
|
|
376
384
|
kind: t,
|
|
377
385
|
id: i,
|
|
378
|
-
fromRevisionId:
|
|
386
|
+
fromRevisionId: a,
|
|
379
387
|
toRevisionId: s,
|
|
380
388
|
labelOf: r
|
|
381
389
|
}) {
|
|
382
|
-
const { t:
|
|
383
|
-
queryKey:
|
|
384
|
-
queryFn: () => e.compareRevisions(t, i,
|
|
385
|
-
}), { format: o, blueprintIdsOnly:
|
|
386
|
-
(f,
|
|
387
|
-
),
|
|
388
|
-
return /* @__PURE__ */ n(
|
|
389
|
-
/* @__PURE__ */ n(I, { children:
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
/* @__PURE__ */ n(I, { color: "fg.muted", children:
|
|
390
|
+
const { t: l } = w(P), { workspaceId: d } = H(), c = _({
|
|
391
|
+
queryKey: p.comparison(d, t, i, a, s),
|
|
392
|
+
queryFn: () => e.compareRevisions(t, i, a, s)
|
|
393
|
+
}), { format: o, blueprintIdsOnly: u } = dn(e, t, c.data), y = (f) => u && f in pe ? pe[f] : an[f], h = [...c.data?.fields ?? []].sort(
|
|
394
|
+
(f, M) => +(f.status === "unchanged") - +(M.status === "unchanged")
|
|
395
|
+
), S = h.filter((f) => f.status !== "unchanged").length, R = r(a), m = r(s);
|
|
396
|
+
return /* @__PURE__ */ n(B, { as: "section", "aria-label": l("compare.title"), children: /* @__PURE__ */ n(se, { title: l("compare.title"), children: /* @__PURE__ */ g(k, { gap: "3", children: [
|
|
397
|
+
/* @__PURE__ */ n(I, { children: l("compare.between", { from: R, to: m }) }),
|
|
398
|
+
c.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: l("startPage.error") }) : null,
|
|
399
|
+
c.data ? /* @__PURE__ */ g(q, { children: [
|
|
400
|
+
/* @__PURE__ */ n(I, { color: "fg.muted", children: S === 0 ? l("compare.same") : l("compare.differing", { count: S }) }),
|
|
393
401
|
/* @__PURE__ */ g(z.Root, { size: "sm", children: [
|
|
394
402
|
/* @__PURE__ */ n(z.Header, { children: /* @__PURE__ */ g(z.Row, { children: [
|
|
395
|
-
/* @__PURE__ */ n(z.ColumnHeader, { children:
|
|
403
|
+
/* @__PURE__ */ n(z.ColumnHeader, { children: l("compare.field") }),
|
|
396
404
|
/* @__PURE__ */ n(z.ColumnHeader, { children: R }),
|
|
397
405
|
/* @__PURE__ */ n(z.ColumnHeader, { children: m })
|
|
398
406
|
] }) }),
|
|
399
407
|
/* @__PURE__ */ n(z.Body, { children: h.map((f) => /* @__PURE__ */ g(z.Row, { verticalAlign: "top", children: [
|
|
400
408
|
/* @__PURE__ */ n(z.Cell, { as: "th", scope: "row", fontWeight: "normal", children: /* @__PURE__ */ g(k, { gap: "1", align: "start", children: [
|
|
401
|
-
/* @__PURE__ */ n(I, { fontWeight: "medium", children: y(f.field) ?
|
|
409
|
+
/* @__PURE__ */ n(I, { fontWeight: "medium", children: y(f.field) ? l(y(f.field)) : f.field }),
|
|
402
410
|
/* @__PURE__ */ n(
|
|
403
411
|
Y,
|
|
404
412
|
{
|
|
405
|
-
tone:
|
|
406
|
-
label:
|
|
413
|
+
tone: on[f.status],
|
|
414
|
+
label: l(`compare.status.${f.status}`)
|
|
407
415
|
}
|
|
408
416
|
)
|
|
409
417
|
] }) }),
|
|
@@ -411,38 +419,38 @@ function rn({
|
|
|
411
419
|
/* @__PURE__ */ n(z.Cell, { children: /* @__PURE__ */ n(fe, { text: o(f.field, "to") }) })
|
|
412
420
|
] }, f.field)) })
|
|
413
421
|
] })
|
|
414
|
-
] }) :
|
|
422
|
+
] }) : c.isError ? null : /* @__PURE__ */ n(I, { color: "fg.muted", children: l("startPage.loading") })
|
|
415
423
|
] }) }) });
|
|
416
424
|
}
|
|
417
425
|
function fe({ text: e }) {
|
|
418
|
-
const { t } =
|
|
426
|
+
const { t } = w(P);
|
|
419
427
|
return e === null ? /* @__PURE__ */ n(I, { color: "fg.muted", children: t("compare.absent") }) : "plain" in e ? /* @__PURE__ */ n(I, { whiteSpace: "pre-wrap", children: e.plain }) : "code" in e ? /* @__PURE__ */ n(ee, { children: e.code }) : /* @__PURE__ */ n(ee, { display: "block", whiteSpace: "pre-wrap", p: "2", children: e.json });
|
|
420
428
|
}
|
|
421
|
-
function
|
|
422
|
-
const { t:
|
|
423
|
-
queryKey:
|
|
429
|
+
function dn(e, t, i) {
|
|
430
|
+
const { t: a } = w(P), { workspaceId: s } = H(), r = t === "importProfile", l = _({
|
|
431
|
+
queryKey: p.mappings(s),
|
|
424
432
|
queryFn: () => e.listMappings(),
|
|
425
433
|
enabled: r
|
|
426
|
-
}),
|
|
427
|
-
queryKey:
|
|
434
|
+
}), d = _({
|
|
435
|
+
queryKey: p.entitySets(s),
|
|
428
436
|
queryFn: () => e.listEntitySets(),
|
|
429
437
|
enabled: r
|
|
430
|
-
}),
|
|
431
|
-
return { format: (h,
|
|
432
|
-
const R = i?.[
|
|
438
|
+
}), c = t === "mapping" && i ? [i.from.content.blueprint_id, i.to.content.blueprint_id].map((h) => String(h ?? "")) : [], o = Fe(c), u = t === "mapping" && !o.available;
|
|
439
|
+
return { format: (h, S) => {
|
|
440
|
+
const R = i?.[S].content ?? {}, m = R[h];
|
|
433
441
|
if (m == null) return null;
|
|
434
442
|
if (r && h === "mapping_ids" && Array.isArray(m))
|
|
435
|
-
return m.length === 0 ? { plain:
|
|
443
|
+
return m.length === 0 ? { plain: a("profiles.noMappings") } : {
|
|
436
444
|
plain: m.map(
|
|
437
|
-
(f) =>
|
|
445
|
+
(f) => l.data?.find((M) => M.id === f)?.content.name ?? a("profiles.missingMapping")
|
|
438
446
|
).join(`
|
|
439
447
|
`)
|
|
440
448
|
};
|
|
441
449
|
if (r && h === "entity_set_id")
|
|
442
|
-
return m === "" ? { plain:
|
|
443
|
-
plain:
|
|
450
|
+
return m === "" ? { plain: a("profiles.noEntitySet") } : {
|
|
451
|
+
plain: d.data?.find((f) => f.id === m)?.content.name ?? a("compare.missingEntitySet")
|
|
444
452
|
};
|
|
445
|
-
if (
|
|
453
|
+
if (u && h in pe)
|
|
446
454
|
return m === "" ? { plain: "—" } : { code: String(m) };
|
|
447
455
|
if (t === "mapping" && o.available && h === "blueprint_id")
|
|
448
456
|
return { plain: o.blueprintName(String(m)) ?? "…" };
|
|
@@ -450,66 +458,66 @@ function sn(e, t, i) {
|
|
|
450
458
|
const f = String(R.blueprint_id ?? "");
|
|
451
459
|
return { plain: o.releaseLabel(f, String(m)) ?? "…" };
|
|
452
460
|
}
|
|
453
|
-
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain:
|
|
454
|
-
}, blueprintIdsOnly:
|
|
461
|
+
return typeof m == "string" ? { plain: m === "" ? "—" : m } : typeof m == "boolean" ? { plain: a(m ? "compare.yes" : "compare.no") } : typeof m == "number" ? { plain: String(m) } : { json: JSON.stringify(m, null, 2) };
|
|
462
|
+
}, blueprintIdsOnly: u };
|
|
455
463
|
}
|
|
456
|
-
const
|
|
464
|
+
const cn = "YYYY-MM-DD HH:mm", ie = (e) => String(e).padStart(2, "0");
|
|
457
465
|
function be(e) {
|
|
458
466
|
const t = new Date(e);
|
|
459
467
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${ie(t.getMonth() + 1)}-${ie(t.getDate())} ${ie(t.getHours())}:${ie(t.getMinutes())}`;
|
|
460
468
|
}
|
|
461
|
-
function
|
|
462
|
-
const { t:
|
|
469
|
+
function pn(e, t, i) {
|
|
470
|
+
const { t: a } = w(P);
|
|
463
471
|
return V(
|
|
464
472
|
() => ({
|
|
465
473
|
of: (s) => {
|
|
466
|
-
if (s === i) return
|
|
467
|
-
const r = t.find((
|
|
468
|
-
if (r) return
|
|
469
|
-
const
|
|
470
|
-
return
|
|
474
|
+
if (s === i) return a("history.draft");
|
|
475
|
+
const r = t.find((d) => d.revisionId === s);
|
|
476
|
+
if (r) return a("release.number", { number: r.number });
|
|
477
|
+
const l = e.find((d) => d.id === s);
|
|
478
|
+
return l ? a("history.revisionOf", { time: be(l.savedAt) }) : a("history.earlierRevision");
|
|
471
479
|
},
|
|
472
480
|
time: be
|
|
473
481
|
}),
|
|
474
|
-
[
|
|
482
|
+
[a, e, t, i]
|
|
475
483
|
);
|
|
476
484
|
}
|
|
477
|
-
function
|
|
485
|
+
function un({
|
|
478
486
|
client: e,
|
|
479
487
|
kind: t,
|
|
480
488
|
id: i,
|
|
481
|
-
draftRevisionId:
|
|
489
|
+
draftRevisionId: a,
|
|
482
490
|
onRestored: s
|
|
483
491
|
}) {
|
|
484
|
-
const { t: r } =
|
|
485
|
-
queryKey:
|
|
492
|
+
const { t: r } = w(P), { workspaceId: l, members: d } = H(), c = Me(), o = Le({
|
|
493
|
+
queryKey: p.history(l, t, i),
|
|
486
494
|
queryFn: ({ pageParam: b }) => e.listHistory(t, i, b),
|
|
487
495
|
initialPageParam: "",
|
|
488
496
|
getNextPageParam: (b) => b.nextPageToken || void 0
|
|
489
|
-
}),
|
|
497
|
+
}), u = V(
|
|
490
498
|
() => (o.data?.pages ?? []).flatMap((b) => b.revisions),
|
|
491
499
|
[o.data]
|
|
492
|
-
), y = V(() => o.data?.pages[0]?.releases ?? [], [o.data]), h =
|
|
500
|
+
), y = V(() => o.data?.pages[0]?.releases ?? [], [o.data]), h = pn(u, y, a), [S, R] = W(null), [m, f] = W([]), M = V(
|
|
493
501
|
() => Object.fromEntries(m.map((b) => [b, !0])),
|
|
494
502
|
[m]
|
|
495
|
-
), F = (b) => f((
|
|
496
|
-
const
|
|
497
|
-
return [...
|
|
498
|
-
}),
|
|
499
|
-
(b,
|
|
503
|
+
), F = (b) => f((D) => {
|
|
504
|
+
const v = Object.fromEntries(D.map((O) => [O, !0])), N = typeof b == "function" ? b(v) : b, K = Object.keys(N).filter((O) => N[O]), le = D.filter((O) => K.includes(O)), ne = K.filter((O) => !D.includes(O));
|
|
505
|
+
return [...le, ...ne].slice(-2);
|
|
506
|
+
}), T = m.length === 2 ? [...m].sort(
|
|
507
|
+
(b, D) => u.findIndex((v) => v.id === D) - u.findIndex((v) => v.id === b)
|
|
500
508
|
) : null, G = V(() => {
|
|
501
|
-
const b = (
|
|
509
|
+
const b = (v) => y.filter((N) => N.revisionId === v), D = (v) => d.byId(v)?.displayName ?? r("history.unknownPerson");
|
|
502
510
|
return [
|
|
503
511
|
{
|
|
504
512
|
id: "revision",
|
|
505
513
|
header: r("history.columns.revision"),
|
|
506
514
|
enableSorting: !1,
|
|
507
|
-
cell: ({ row:
|
|
508
|
-
|
|
515
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(
|
|
516
|
+
xe,
|
|
509
517
|
{
|
|
510
|
-
value:
|
|
511
|
-
subText:
|
|
512
|
-
revision: h.of(
|
|
518
|
+
value: v.original.id === a ? r("history.draft") : r("history.revision"),
|
|
519
|
+
subText: v.original.restoredFromRevisionId ? r("history.restoredFrom", {
|
|
520
|
+
revision: h.of(v.original.restoredFromRevisionId)
|
|
513
521
|
}) : void 0
|
|
514
522
|
}
|
|
515
523
|
)
|
|
@@ -518,18 +526,18 @@ function an({
|
|
|
518
526
|
id: "release",
|
|
519
527
|
header: r("history.columns.release"),
|
|
520
528
|
enableSorting: !1,
|
|
521
|
-
cell: ({ row:
|
|
522
|
-
const N = b(
|
|
529
|
+
cell: ({ row: v }) => {
|
|
530
|
+
const N = b(v.original.id);
|
|
523
531
|
return /* @__PURE__ */ n(
|
|
524
532
|
Pe,
|
|
525
533
|
{
|
|
526
|
-
value: N.length > 0 ? N.map((
|
|
534
|
+
value: N.length > 0 ? N.map((K) => r("release.number", { number: K.number })).join(", ") : null,
|
|
527
535
|
fallbackTone: "success",
|
|
528
536
|
detailColor: "fg.muted",
|
|
529
537
|
detail: N.length > 0 ? N.map(
|
|
530
|
-
(
|
|
531
|
-
name:
|
|
532
|
-
time: h.time(
|
|
538
|
+
(K) => r("history.cutBy", {
|
|
539
|
+
name: D(K.releasedBy),
|
|
540
|
+
time: h.time(K.releasedAt)
|
|
533
541
|
})
|
|
534
542
|
).join(" ") : null
|
|
535
543
|
}
|
|
@@ -540,67 +548,67 @@ function an({
|
|
|
540
548
|
id: "savedBy",
|
|
541
549
|
header: r("history.columns.savedBy"),
|
|
542
550
|
enableSorting: !1,
|
|
543
|
-
cell: ({ row:
|
|
551
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ae, { name: D(v.original.savedBy) })
|
|
544
552
|
},
|
|
545
553
|
{
|
|
546
554
|
id: "savedAt",
|
|
547
555
|
header: r("history.columns.savedAt"),
|
|
548
556
|
enableSorting: !1,
|
|
549
557
|
size: 140,
|
|
550
|
-
cell: ({ row:
|
|
558
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(Ne, { value: v.original.savedAt, format: cn })
|
|
551
559
|
},
|
|
552
560
|
{
|
|
553
561
|
id: "validity",
|
|
554
562
|
header: r("validity.column"),
|
|
555
563
|
enableSorting: !1,
|
|
556
|
-
cell: ({ row:
|
|
564
|
+
cell: ({ row: v }) => /* @__PURE__ */ n(tn, { validity: v.original.validity })
|
|
557
565
|
},
|
|
558
566
|
{
|
|
559
567
|
id: "actions",
|
|
560
568
|
header: "",
|
|
561
569
|
enableSorting: !1,
|
|
562
570
|
minSize: 60,
|
|
563
|
-
cell: ({ row:
|
|
571
|
+
cell: ({ row: v }) => c && v.original.id !== a ? /* @__PURE__ */ n(
|
|
564
572
|
ze,
|
|
565
573
|
{
|
|
566
574
|
actions: [
|
|
567
575
|
{
|
|
568
576
|
icon: $e,
|
|
569
577
|
label: r("history.restore"),
|
|
570
|
-
onClick: () => R(
|
|
578
|
+
onClick: () => R(v.original)
|
|
571
579
|
}
|
|
572
580
|
]
|
|
573
581
|
}
|
|
574
582
|
) : null
|
|
575
583
|
}
|
|
576
584
|
];
|
|
577
|
-
}, [r,
|
|
578
|
-
return /* @__PURE__ */ g(
|
|
579
|
-
/* @__PURE__ */ n(
|
|
585
|
+
}, [r, d, y, h, a, c]), L = (b) => d.byId(b)?.displayName ?? r("history.unknownPerson"), te = y.filter((b) => !u.some((D) => D.id === b.revisionId));
|
|
586
|
+
return /* @__PURE__ */ g(q, { children: [
|
|
587
|
+
/* @__PURE__ */ n(B, { px: "8", py: "4", children: /* @__PURE__ */ g(k, { gap: "1", children: [
|
|
580
588
|
/* @__PURE__ */ n(I, { color: "fg.muted", children: r("history.hint") }),
|
|
581
589
|
o.hasNextPage ? te.map((b) => /* @__PURE__ */ n(I, { color: "fg.muted", children: r("history.olderRelease", {
|
|
582
590
|
release: r("release.number", { number: b.number }),
|
|
583
|
-
name:
|
|
591
|
+
name: L(b.releasedBy),
|
|
584
592
|
time: h.time(b.releasedAt)
|
|
585
593
|
}) }, b.id)) : null
|
|
586
594
|
] }) }),
|
|
587
|
-
o.isError ? /* @__PURE__ */ n(
|
|
595
|
+
o.isError ? /* @__PURE__ */ n(B, { px: "8", pb: "4", children: /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: r("startPage.error") }) }) : null,
|
|
588
596
|
/* @__PURE__ */ n(
|
|
589
597
|
He,
|
|
590
598
|
{
|
|
591
599
|
columns: G,
|
|
592
|
-
data:
|
|
600
|
+
data: u,
|
|
593
601
|
loading: o.isLoading,
|
|
594
602
|
selectable: !0,
|
|
595
|
-
rowSelection:
|
|
603
|
+
rowSelection: M,
|
|
596
604
|
onRowSelectionChange: F,
|
|
597
605
|
getRowId: (b) => b.id,
|
|
598
|
-
emptyState: /* @__PURE__ */ n(
|
|
606
|
+
emptyState: /* @__PURE__ */ n(ve, { icon: /* @__PURE__ */ n(Qe, { size: 32 }), header: r("history.none") })
|
|
599
607
|
}
|
|
600
608
|
),
|
|
601
|
-
o.hasNextPage ||
|
|
609
|
+
o.hasNextPage || T ? /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
602
610
|
o.hasNextPage ? /* @__PURE__ */ n(
|
|
603
|
-
|
|
611
|
+
x,
|
|
604
612
|
{
|
|
605
613
|
size: "sm",
|
|
606
614
|
variant: "outline",
|
|
@@ -612,25 +620,25 @@ function an({
|
|
|
612
620
|
children: r("history.loadMore")
|
|
613
621
|
}
|
|
614
622
|
) : null,
|
|
615
|
-
|
|
616
|
-
|
|
623
|
+
T ? /* @__PURE__ */ n(
|
|
624
|
+
ln,
|
|
617
625
|
{
|
|
618
626
|
client: e,
|
|
619
627
|
kind: t,
|
|
620
628
|
id: i,
|
|
621
|
-
fromRevisionId:
|
|
622
|
-
toRevisionId:
|
|
629
|
+
fromRevisionId: T[0],
|
|
630
|
+
toRevisionId: T[1],
|
|
623
631
|
labelOf: h.of
|
|
624
632
|
}
|
|
625
633
|
) : null
|
|
626
634
|
] }) }) : null,
|
|
627
635
|
/* @__PURE__ */ n(
|
|
628
|
-
|
|
636
|
+
mn,
|
|
629
637
|
{
|
|
630
|
-
revision:
|
|
631
|
-
label:
|
|
638
|
+
revision: S,
|
|
639
|
+
label: S ? h.of(S.id) : "",
|
|
632
640
|
onClose: () => R(null),
|
|
633
|
-
onRestore: (b) => e.restoreRevision(t, i, b.id,
|
|
641
|
+
onRestore: (b) => e.restoreRevision(t, i, b.id, a),
|
|
634
642
|
onRestored: () => {
|
|
635
643
|
f([]), Promise.resolve(s?.()).catch(() => {
|
|
636
644
|
});
|
|
@@ -641,87 +649,87 @@ function an({
|
|
|
641
649
|
)
|
|
642
650
|
] });
|
|
643
651
|
}
|
|
644
|
-
function
|
|
652
|
+
function mn({
|
|
645
653
|
revision: e,
|
|
646
654
|
label: t,
|
|
647
655
|
onClose: i,
|
|
648
|
-
onRestore:
|
|
656
|
+
onRestore: a,
|
|
649
657
|
onRestored: s,
|
|
650
658
|
kind: r,
|
|
651
|
-
id:
|
|
659
|
+
id: l
|
|
652
660
|
}) {
|
|
653
|
-
const { t:
|
|
661
|
+
const { t: d } = w(P), { workspaceId: c } = H(), o = ae(), u = e !== null, [y, h] = W({ revision: e, label: t });
|
|
654
662
|
e && e !== y.revision && h({ revision: e, label: t });
|
|
655
|
-
const
|
|
656
|
-
mutationFn:
|
|
663
|
+
const S = X({
|
|
664
|
+
mutationFn: a,
|
|
657
665
|
onSuccess: () => {
|
|
658
666
|
s(), o.invalidateQueries({
|
|
659
|
-
queryKey:
|
|
667
|
+
queryKey: p.configuration(c, r, l)
|
|
660
668
|
}), o.invalidateQueries({
|
|
661
|
-
queryKey:
|
|
669
|
+
queryKey: p.configurations(c, r)
|
|
662
670
|
}), i();
|
|
663
671
|
}
|
|
664
|
-
}), { reset: R } =
|
|
672
|
+
}), { reset: R } = S;
|
|
665
673
|
return $(() => {
|
|
666
|
-
|
|
667
|
-
}, [
|
|
674
|
+
u && R();
|
|
675
|
+
}, [u, R]), /* @__PURE__ */ n(
|
|
668
676
|
oe,
|
|
669
677
|
{
|
|
670
|
-
open:
|
|
678
|
+
open: u,
|
|
671
679
|
onClose: i,
|
|
672
|
-
header:
|
|
680
|
+
header: d("history.restoreTitle", { revision: y.label }),
|
|
673
681
|
lazyMount: !0,
|
|
674
682
|
unmountOnExit: !0,
|
|
675
|
-
footer: /* @__PURE__ */ g(
|
|
676
|
-
/* @__PURE__ */ n(
|
|
683
|
+
footer: /* @__PURE__ */ g(Q, { gap: "2", children: [
|
|
684
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: i, children: d("common.cancel") }),
|
|
677
685
|
/* @__PURE__ */ n(
|
|
678
|
-
|
|
686
|
+
x,
|
|
679
687
|
{
|
|
680
688
|
variant: "solid",
|
|
681
|
-
loading:
|
|
682
|
-
onClick: () => y.revision &&
|
|
683
|
-
children:
|
|
689
|
+
loading: S.isPending,
|
|
690
|
+
onClick: () => y.revision && S.mutate(y.revision),
|
|
691
|
+
children: d("history.restoreConfirm")
|
|
684
692
|
}
|
|
685
693
|
)
|
|
686
694
|
] }),
|
|
687
695
|
children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
688
|
-
/* @__PURE__ */ n(I, { children:
|
|
689
|
-
|
|
696
|
+
/* @__PURE__ */ n(I, { children: d("history.restoreMessage") }),
|
|
697
|
+
S.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: d("history.restoreFailed"), children: S.error.message }) : null
|
|
690
698
|
] })
|
|
691
699
|
}
|
|
692
700
|
);
|
|
693
701
|
}
|
|
694
|
-
const
|
|
695
|
-
function
|
|
696
|
-
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) =>
|
|
702
|
+
const hn = (e) => e.replace(/_([a-z0-9])/g, (t, i) => i.toUpperCase());
|
|
703
|
+
function gn(e) {
|
|
704
|
+
return !e || e === "/" ? "" : e.replace(/^\//, "").split("/").map((t) => hn(t.replace(/~1/g, "/").replace(/~0/g, "~"))).join(".");
|
|
697
705
|
}
|
|
698
|
-
function
|
|
706
|
+
function fn(e) {
|
|
699
707
|
const t = /* @__PURE__ */ new Map();
|
|
700
708
|
for (const i of e) {
|
|
701
|
-
const
|
|
702
|
-
if (!
|
|
703
|
-
const s = t.get(
|
|
704
|
-
t.set(
|
|
709
|
+
const a = gn(i.path);
|
|
710
|
+
if (!a) continue;
|
|
711
|
+
const s = t.get(a);
|
|
712
|
+
t.set(a, s ? `${s} ${i.message}` : i.message);
|
|
705
713
|
}
|
|
706
714
|
return t;
|
|
707
715
|
}
|
|
708
|
-
function
|
|
716
|
+
function bn({
|
|
709
717
|
open: e,
|
|
710
718
|
onClose: t,
|
|
711
719
|
client: i,
|
|
712
|
-
mapping:
|
|
720
|
+
mapping: a,
|
|
713
721
|
onMove: s
|
|
714
722
|
}) {
|
|
715
|
-
const { t: r } =
|
|
716
|
-
mutationFn: (m) => i.checkMappingBlueprintRelease(
|
|
717
|
-
}), o = X({ mutationFn: s, onSuccess: t }), { reset:
|
|
723
|
+
const { t: r } = w(P), l = Ee({ defaultValues: { blueprintReleaseId: null } }), d = Ze({ control: l.control, name: "blueprintReleaseId" }) ?? "", c = X({
|
|
724
|
+
mutationFn: (m) => i.checkMappingBlueprintRelease(a.id, m)
|
|
725
|
+
}), o = X({ mutationFn: s, onSuccess: t }), { reset: u } = l, { reset: y } = c, { reset: h } = o;
|
|
718
726
|
$(() => {
|
|
719
|
-
e && (
|
|
720
|
-
}, [e,
|
|
721
|
-
const
|
|
727
|
+
e && (u({ blueprintReleaseId: null }), y(), h());
|
|
728
|
+
}, [e, u, y, h]);
|
|
729
|
+
const S = c.variables, R = c.data && S === d ? c.data : null;
|
|
722
730
|
return $(() => {
|
|
723
|
-
|
|
724
|
-
}, [
|
|
731
|
+
S !== void 0 && S !== d && y();
|
|
732
|
+
}, [S, d, y]), /* @__PURE__ */ n(
|
|
725
733
|
oe,
|
|
726
734
|
{
|
|
727
735
|
open: e,
|
|
@@ -729,56 +737,56 @@ function mn({
|
|
|
729
737
|
header: r("mappings.moveTitle"),
|
|
730
738
|
lazyMount: !0,
|
|
731
739
|
unmountOnExit: !0,
|
|
732
|
-
footer: /* @__PURE__ */ g(
|
|
733
|
-
/* @__PURE__ */ n(
|
|
740
|
+
footer: /* @__PURE__ */ g(Q, { gap: "2", children: [
|
|
741
|
+
/* @__PURE__ */ n(x, { variant: "outline", onClick: t, children: r("common.cancel") }),
|
|
734
742
|
/* @__PURE__ */ n(
|
|
735
|
-
|
|
743
|
+
x,
|
|
736
744
|
{
|
|
737
745
|
variant: "outline",
|
|
738
|
-
disabled: !
|
|
739
|
-
loading:
|
|
740
|
-
onClick: () =>
|
|
746
|
+
disabled: !d || d === a.content.blueprintReleaseId,
|
|
747
|
+
loading: c.isPending,
|
|
748
|
+
onClick: () => c.mutate(d),
|
|
741
749
|
children: r("mappings.check")
|
|
742
750
|
}
|
|
743
751
|
),
|
|
744
752
|
/* @__PURE__ */ n(
|
|
745
|
-
|
|
753
|
+
x,
|
|
746
754
|
{
|
|
747
755
|
variant: "solid",
|
|
748
756
|
disabled: !R,
|
|
749
757
|
loading: o.isPending,
|
|
750
|
-
onClick: () => o.mutate(
|
|
758
|
+
onClick: () => o.mutate(d),
|
|
751
759
|
children: r("mappings.moveConfirm")
|
|
752
760
|
}
|
|
753
761
|
)
|
|
754
762
|
] }),
|
|
755
|
-
children: /* @__PURE__ */ n(Ce, { ...
|
|
756
|
-
/* @__PURE__ */ n(
|
|
757
|
-
|
|
758
|
-
R ? /* @__PURE__ */ n(
|
|
763
|
+
children: /* @__PURE__ */ n(Ce, { ...l, children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
764
|
+
/* @__PURE__ */ n(yn, { mapping: a }),
|
|
765
|
+
c.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: r("mappings.checkFailed"), children: c.error.message }) : null,
|
|
766
|
+
R ? /* @__PURE__ */ n(Sn, { report: R }) : null,
|
|
759
767
|
o.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: r("save.failed"), children: o.error.message }) : null
|
|
760
768
|
] }) })
|
|
761
769
|
}
|
|
762
770
|
);
|
|
763
771
|
}
|
|
764
|
-
function
|
|
765
|
-
const { t } =
|
|
766
|
-
queryKey:
|
|
772
|
+
function yn({ mapping: e }) {
|
|
773
|
+
const { t } = w(P), { blueprints: i } = j(), { workspaceId: a } = H(), s = _({
|
|
774
|
+
queryKey: p.blueprintReleases(a, e.content.blueprintId),
|
|
767
775
|
queryFn: () => i?.listReleases(e.content.blueprintId) ?? Promise.resolve([]),
|
|
768
776
|
enabled: i !== void 0
|
|
769
777
|
});
|
|
770
778
|
return i ? /* @__PURE__ */ n(
|
|
771
|
-
|
|
779
|
+
Ke,
|
|
772
780
|
{
|
|
773
781
|
name: "blueprintReleaseId",
|
|
774
782
|
label: t("mappings.newRelease"),
|
|
775
783
|
required: !0,
|
|
776
784
|
options: (s.data ?? []).filter((r) => r.id !== e.content.blueprintReleaseId).map((r) => ({ id: r.id, label: r.label }))
|
|
777
785
|
}
|
|
778
|
-
) : /* @__PURE__ */ n(
|
|
786
|
+
) : /* @__PURE__ */ n(J, { name: "blueprintReleaseId", label: t("mappings.newReleaseId"), required: !0 });
|
|
779
787
|
}
|
|
780
|
-
function
|
|
781
|
-
const { t } =
|
|
788
|
+
function Sn({ report: e }) {
|
|
789
|
+
const { t } = w(P), i = e.missingFieldPaths.length + e.missingReleaseSpecFields.length;
|
|
782
790
|
return i === 0 ? /* @__PURE__ */ n(C, { status: "success", colorPalette: "success", title: t("mappings.nothingLost") }) : /* @__PURE__ */ n(C, { status: "warning", colorPalette: "warning", title: t("mappings.lost", { count: i }), children: /* @__PURE__ */ g(k, { gap: "2", children: [
|
|
783
791
|
e.missingFieldPaths.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostFields"), paths: e.missingFieldPaths }) : null,
|
|
784
792
|
e.missingReleaseSpecFields.length > 0 ? /* @__PURE__ */ n(ye, { label: t("mappings.lostReleaseSpec"), paths: e.missingReleaseSpecFields }) : null
|
|
@@ -790,111 +798,111 @@ function ye({ label: e, paths: t }) {
|
|
|
790
798
|
/* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": e, children: t.map((i) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ee, { children: i }) }, i)) })
|
|
791
799
|
] });
|
|
792
800
|
}
|
|
793
|
-
const
|
|
794
|
-
function
|
|
795
|
-
const e =
|
|
801
|
+
const De = Ie(null);
|
|
802
|
+
function Vn() {
|
|
803
|
+
const e = we(De);
|
|
796
804
|
if (!e) throw new Error("useMappingPage outside a Mapping's page");
|
|
797
805
|
return e;
|
|
798
806
|
}
|
|
799
|
-
const
|
|
807
|
+
const ce = (e) => structuredClone(e), vn = [
|
|
800
808
|
["versionMatch"],
|
|
801
809
|
["validityPeriod"],
|
|
802
810
|
["collectionRouting"],
|
|
803
811
|
["sourceKey", "extractSeparator"]
|
|
804
|
-
],
|
|
805
|
-
function
|
|
812
|
+
], Pn = (e) => e === "" || e !== null && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
|
|
813
|
+
function Se(e, t) {
|
|
806
814
|
const i = JSON.parse(JSON.stringify(e));
|
|
807
|
-
for (const
|
|
808
|
-
const s =
|
|
809
|
-
(
|
|
815
|
+
for (const a of vn) {
|
|
816
|
+
const s = a.slice(0, -1), r = a[a.length - 1], l = s.reduce(
|
|
817
|
+
(c, o) => c?.[o],
|
|
810
818
|
i
|
|
811
|
-
),
|
|
812
|
-
(
|
|
819
|
+
), d = s.reduce(
|
|
820
|
+
(c, o) => c?.[o],
|
|
813
821
|
t
|
|
814
822
|
);
|
|
815
|
-
|
|
823
|
+
l && r in l && Pn(l[r]) && !(d && r in d) && delete l[r];
|
|
816
824
|
}
|
|
817
825
|
return i;
|
|
818
826
|
}
|
|
819
|
-
function
|
|
827
|
+
function Wn({
|
|
820
828
|
client: e,
|
|
821
829
|
id: t,
|
|
822
830
|
onDeleted: i,
|
|
823
|
-
editor:
|
|
831
|
+
editor: a
|
|
824
832
|
}) {
|
|
825
|
-
const { t: s } =
|
|
826
|
-
queryKey:
|
|
833
|
+
const { t: s } = w(P), { workspaceId: r } = H(), l = _({
|
|
834
|
+
queryKey: p.mapping(r, t),
|
|
827
835
|
queryFn: () => e.getMapping(t)
|
|
828
836
|
});
|
|
829
|
-
return
|
|
837
|
+
return l.isError || !l.data ? /* @__PURE__ */ n(Re, { title: s("section.mappings.title"), children: l.isError ? /* @__PURE__ */ n(Jt, {}) : /* @__PURE__ */ n(Zt, {}) }) : /* @__PURE__ */ n(Rn, { client: e, mapping: l.data, onDeleted: i, editor: a });
|
|
830
838
|
}
|
|
831
|
-
function
|
|
839
|
+
function Rn({
|
|
832
840
|
client: e,
|
|
833
841
|
mapping: t,
|
|
834
842
|
onDeleted: i,
|
|
835
|
-
editor:
|
|
843
|
+
editor: a
|
|
836
844
|
}) {
|
|
837
|
-
const { t: s } =
|
|
838
|
-
queryKey:
|
|
845
|
+
const { t: s } = w(P), { workspaceId: r } = H(), { paths: l } = j(), d = Me(), c = ae(), [o, u] = W(!1), [y, h] = W(!1), S = Fe([t.content.blueprintId]), R = _({
|
|
846
|
+
queryKey: p.mappingImportProfiles(r, t.id),
|
|
839
847
|
queryFn: () => e.listMappingImportProfiles(t.id)
|
|
840
|
-
}), m =
|
|
841
|
-
for (const [
|
|
842
|
-
F(
|
|
848
|
+
}), m = Ee({ defaultValues: ce(t.content) }), { reset: f, formState: M, setError: F } = m, T = Ue(() => {
|
|
849
|
+
for (const [E, de] of fn(t.validity.reasons))
|
|
850
|
+
F(E, { type: "importhub", message: de });
|
|
843
851
|
}, [t, F]);
|
|
844
852
|
$(() => {
|
|
845
|
-
|
|
846
|
-
}, [t, f,
|
|
847
|
-
const G = (
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
mutationFn: (
|
|
853
|
+
M.isDirty || f(ce(t.content)), T();
|
|
854
|
+
}, [t, f, M.isDirty, T]);
|
|
855
|
+
const G = (E) => {
|
|
856
|
+
c.setQueryData(p.mapping(r, E.id), E), f(ce(E.content)), c.invalidateQueries({ queryKey: p.mappings(r) }), c.invalidateQueries({ queryKey: p.importProfiles(r) });
|
|
857
|
+
}, L = X({
|
|
858
|
+
mutationFn: (E) => e.updateMapping(t.id, E, t.state.draftRevisionId),
|
|
851
859
|
onSuccess: G,
|
|
852
860
|
// Nothing was saved: the draft's reasons still hold.
|
|
853
|
-
onError:
|
|
861
|
+
onError: T
|
|
854
862
|
}), te = () => {
|
|
855
|
-
m.clearErrors(), m.handleSubmit((
|
|
856
|
-
}, [b,
|
|
863
|
+
m.clearErrors(), m.handleSubmit((E) => L.mutate(Se(E, t.content)))();
|
|
864
|
+
}, [b, D] = Gt(a?.tabs), v = sn({
|
|
857
865
|
client: e,
|
|
858
866
|
kind: "mapping",
|
|
859
867
|
id: t.id,
|
|
860
868
|
validity: t.validity,
|
|
861
869
|
state: t.state,
|
|
862
|
-
unsaved:
|
|
870
|
+
unsaved: M.isDirty
|
|
863
871
|
});
|
|
864
872
|
Ve(
|
|
865
|
-
|
|
873
|
+
d ? /* @__PURE__ */ g(Z, { storageKey: "importhub.mapping.rail", children: [
|
|
866
874
|
/* @__PURE__ */ n(Z.Header, { title: s("rail.title") }),
|
|
867
875
|
/* @__PURE__ */ g(Z.Section, { id: "actions", label: s("rail.actions"), children: [
|
|
868
|
-
|
|
876
|
+
v.railAction,
|
|
869
877
|
/* @__PURE__ */ n(
|
|
870
878
|
Z.IconButton,
|
|
871
879
|
{
|
|
872
880
|
label: s("mappings.delete"),
|
|
873
|
-
icon: /* @__PURE__ */ n(
|
|
881
|
+
icon: /* @__PURE__ */ n(je, { size: 16 }),
|
|
874
882
|
tone: "outline-red",
|
|
875
|
-
onClick: () =>
|
|
883
|
+
onClick: () => u(!0)
|
|
876
884
|
}
|
|
877
885
|
)
|
|
878
886
|
] })
|
|
879
887
|
] }) : null
|
|
880
888
|
);
|
|
881
|
-
const N =
|
|
889
|
+
const N = S.blueprintName(t.content.blueprintId), K = S.releaseLabel(
|
|
882
890
|
t.content.blueprintId,
|
|
883
891
|
t.content.blueprintReleaseId
|
|
884
|
-
),
|
|
885
|
-
|
|
886
|
-
/* @__PURE__ */ n(
|
|
887
|
-
|
|
888
|
-
] }),
|
|
889
|
-
() => ({ mapping: t, canConfigure:
|
|
890
|
-
[t,
|
|
891
|
-
), ge =
|
|
892
|
+
), le = t.content.fields?.length ?? 0, ne = /* @__PURE__ */ g(q, { children: [
|
|
893
|
+
v.notice,
|
|
894
|
+
/* @__PURE__ */ n(Te, { validity: t.validity }),
|
|
895
|
+
L.isError ? /* @__PURE__ */ n(C, { status: "error", colorPalette: "danger", title: s("save.failed"), children: L.error.message }) : null
|
|
896
|
+
] }), O = V(
|
|
897
|
+
() => ({ mapping: t, canConfigure: d, reasons: t.validity.reasons }),
|
|
898
|
+
[t, d]
|
|
899
|
+
), ge = a?.tabs.some((E) => E.value === b) ? b : null;
|
|
892
900
|
return /* @__PURE__ */ g(
|
|
893
901
|
Re,
|
|
894
902
|
{
|
|
895
903
|
title: t.content.name,
|
|
896
|
-
breadcrumbs: [{ label: s("section.mappings.title"), to:
|
|
897
|
-
badges: /* @__PURE__ */ g(
|
|
904
|
+
breadcrumbs: [{ label: s("section.mappings.title"), to: l.mappings }],
|
|
905
|
+
badges: /* @__PURE__ */ g(Q, { gap: "2", children: [
|
|
898
906
|
/* @__PURE__ */ n(
|
|
899
907
|
Y,
|
|
900
908
|
{
|
|
@@ -902,22 +910,22 @@ function yn({
|
|
|
902
910
|
label: t.validity.valid ? s("validity.valid") : s("validity.invalid")
|
|
903
911
|
}
|
|
904
912
|
),
|
|
905
|
-
/* @__PURE__ */ n(
|
|
913
|
+
/* @__PURE__ */ n(Yt, { state: t.state })
|
|
906
914
|
] }),
|
|
907
|
-
tabs:
|
|
908
|
-
actions:
|
|
909
|
-
|
|
915
|
+
tabs: D,
|
|
916
|
+
actions: d ? /* @__PURE__ */ n(
|
|
917
|
+
x,
|
|
910
918
|
{
|
|
911
919
|
variant: "solid",
|
|
912
|
-
disabled: !
|
|
913
|
-
loading:
|
|
920
|
+
disabled: !M.isDirty,
|
|
921
|
+
loading: L.isPending,
|
|
914
922
|
onClick: te,
|
|
915
923
|
children: s("common.save")
|
|
916
924
|
}
|
|
917
925
|
) : void 0,
|
|
918
926
|
children: [
|
|
919
927
|
b === "history" ? /* @__PURE__ */ n(
|
|
920
|
-
|
|
928
|
+
un,
|
|
921
929
|
{
|
|
922
930
|
client: e,
|
|
923
931
|
kind: "mapping",
|
|
@@ -927,104 +935,104 @@ function yn({
|
|
|
927
935
|
G(await e.getMapping(t.id));
|
|
928
936
|
}
|
|
929
937
|
}
|
|
930
|
-
) : /* @__PURE__ */ n(
|
|
938
|
+
) : /* @__PURE__ */ n(De.Provider, { value: O, children: /* @__PURE__ */ n(Ce, { ...m, children: /* @__PURE__ */ n(
|
|
931
939
|
"form",
|
|
932
940
|
{
|
|
933
|
-
onSubmit: (
|
|
934
|
-
|
|
941
|
+
onSubmit: (E) => {
|
|
942
|
+
E.preventDefault(), d && te();
|
|
935
943
|
},
|
|
936
|
-
children:
|
|
944
|
+
children: a && ge ? a.render(ge, ne) : /* @__PURE__ */ n(B, { px: "8", py: "6", children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
937
945
|
ne,
|
|
938
946
|
/* @__PURE__ */ n(se, { title: s("mappings.general"), children: /* @__PURE__ */ g(k, { gap: "4", children: [
|
|
939
947
|
/* @__PURE__ */ n(
|
|
940
|
-
|
|
948
|
+
J,
|
|
941
949
|
{
|
|
942
950
|
name: "name",
|
|
943
951
|
label: s("fields.name"),
|
|
944
952
|
required: !0,
|
|
945
|
-
disabled: !
|
|
953
|
+
disabled: !d
|
|
946
954
|
}
|
|
947
955
|
),
|
|
948
956
|
/* @__PURE__ */ n(
|
|
949
|
-
|
|
957
|
+
Oe,
|
|
950
958
|
{
|
|
951
959
|
name: "description",
|
|
952
960
|
label: s("fields.description"),
|
|
953
|
-
disabled: !
|
|
961
|
+
disabled: !d
|
|
954
962
|
}
|
|
955
963
|
),
|
|
956
964
|
/* @__PURE__ */ n(
|
|
957
|
-
|
|
965
|
+
J,
|
|
958
966
|
{
|
|
959
967
|
name: "elementSelector",
|
|
960
968
|
label: s("mappings.elementSelector"),
|
|
961
969
|
helperText: s("mappings.elementSelectorHelp"),
|
|
962
|
-
disabled: !
|
|
970
|
+
disabled: !d
|
|
963
971
|
}
|
|
964
972
|
),
|
|
965
973
|
/* @__PURE__ */ n(
|
|
966
|
-
|
|
974
|
+
J,
|
|
967
975
|
{
|
|
968
976
|
name: "sourceKey.selector",
|
|
969
977
|
label: s("mappings.sourceKeySelector"),
|
|
970
|
-
disabled: !
|
|
978
|
+
disabled: !d
|
|
971
979
|
}
|
|
972
980
|
),
|
|
973
981
|
/* @__PURE__ */ n(
|
|
974
|
-
|
|
982
|
+
J,
|
|
975
983
|
{
|
|
976
984
|
name: "sourceKey.template",
|
|
977
985
|
label: s("mappings.sourceKeyTemplate"),
|
|
978
986
|
helperText: s("mappings.sourceKeyTemplateHelp"),
|
|
979
|
-
disabled: !
|
|
987
|
+
disabled: !d
|
|
980
988
|
}
|
|
981
989
|
),
|
|
982
|
-
|
|
990
|
+
a ? null : /* @__PURE__ */ n(I, { color: "fg.muted", fontSize: "sm", children: s("mappings.fieldCount", { count: le }) })
|
|
983
991
|
] }) }),
|
|
984
992
|
/* @__PURE__ */ n(se, { title: s("mappings.target"), children: /* @__PURE__ */ g(k, { gap: "3", children: [
|
|
985
|
-
|
|
993
|
+
S.available ? /* @__PURE__ */ g(q, { children: [
|
|
986
994
|
/* @__PURE__ */ n(re, { label: s("mappings.blueprint"), children: N ?? "…" }),
|
|
987
|
-
/* @__PURE__ */ n(re, { label: s("mappings.release"), children:
|
|
988
|
-
] }) : /* @__PURE__ */ g(
|
|
995
|
+
/* @__PURE__ */ n(re, { label: s("mappings.release"), children: K ?? "…" })
|
|
996
|
+
] }) : /* @__PURE__ */ g(q, { children: [
|
|
989
997
|
/* @__PURE__ */ n(re, { label: s("mappings.blueprintId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintId }) }),
|
|
990
998
|
/* @__PURE__ */ n(re, { label: s("mappings.releaseId"), children: /* @__PURE__ */ n(ee, { children: t.content.blueprintReleaseId }) })
|
|
991
999
|
] }),
|
|
992
|
-
|
|
1000
|
+
d ? /* @__PURE__ */ n(B, { children: /* @__PURE__ */ g(x, { variant: "outline", size: "sm", onClick: () => h(!0), children: [
|
|
993
1001
|
/* @__PURE__ */ n(Ge, { size: 14, "aria-hidden": !0 }),
|
|
994
1002
|
s("mappings.move")
|
|
995
1003
|
] }) }) : null
|
|
996
1004
|
] }) }),
|
|
997
|
-
/* @__PURE__ */ n(se, { title: s("mappings.includedBy"), children: R.isError ? /* @__PURE__ */ n(I, { color: "fg.muted", children: s("startPage.error") }) : R.data ? R.data.length === 0 ? /* @__PURE__ */ n(I, { color: "fg.muted", children: s("mappings.noProfiles") }) : /* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": s("mappings.includedBy"), children: R.data.map((
|
|
1005
|
+
/* @__PURE__ */ n(se, { title: s("mappings.includedBy"), children: R.isError ? /* @__PURE__ */ n(I, { color: "fg.muted", children: s("startPage.error") }) : R.data ? R.data.length === 0 ? /* @__PURE__ */ n(I, { color: "fg.muted", children: s("mappings.noProfiles") }) : /* @__PURE__ */ n(A.Root, { ps: "4", "aria-label": s("mappings.includedBy"), children: R.data.map((E) => /* @__PURE__ */ n(A.Item, { children: /* @__PURE__ */ n(ue, { asChild: !0, children: /* @__PURE__ */ n(me, { to: he(l, "profiles", E.id), children: E.name }) }) }, E.id)) }) : /* @__PURE__ */ n(I, { color: "fg.muted", children: s("startPage.loading") }) })
|
|
998
1006
|
] }) })
|
|
999
1007
|
}
|
|
1000
1008
|
) }) }),
|
|
1001
|
-
|
|
1009
|
+
v.dialog,
|
|
1002
1010
|
/* @__PURE__ */ n(
|
|
1003
|
-
|
|
1011
|
+
bn,
|
|
1004
1012
|
{
|
|
1005
1013
|
open: y,
|
|
1006
1014
|
onClose: () => h(!1),
|
|
1007
1015
|
client: e,
|
|
1008
1016
|
mapping: t,
|
|
1009
|
-
onMove: async (
|
|
1010
|
-
const
|
|
1011
|
-
...
|
|
1012
|
-
blueprintReleaseId:
|
|
1017
|
+
onMove: async (E) => {
|
|
1018
|
+
const de = {
|
|
1019
|
+
...Se(m.getValues(), t.content),
|
|
1020
|
+
blueprintReleaseId: E
|
|
1013
1021
|
};
|
|
1014
|
-
G(await e.updateMapping(t.id,
|
|
1022
|
+
G(await e.updateMapping(t.id, de, t.state.draftRevisionId));
|
|
1015
1023
|
}
|
|
1016
1024
|
}
|
|
1017
1025
|
),
|
|
1018
1026
|
/* @__PURE__ */ n(
|
|
1019
|
-
|
|
1027
|
+
Ut,
|
|
1020
1028
|
{
|
|
1021
1029
|
open: o,
|
|
1022
|
-
onClose: () =>
|
|
1030
|
+
onClose: () => u(!1),
|
|
1023
1031
|
title: s("mappings.deleteTitle", { name: t.content.name }),
|
|
1024
1032
|
message: s("mappings.deleteMessage"),
|
|
1025
1033
|
onDelete: () => e.deleteMapping(t.id),
|
|
1026
1034
|
onDeleted: () => {
|
|
1027
|
-
|
|
1035
|
+
u(!1), c.removeQueries({ queryKey: p.mapping(r, t.id) }), c.invalidateQueries({ queryKey: p.mappings(r) }), i();
|
|
1028
1036
|
}
|
|
1029
1037
|
}
|
|
1030
1038
|
)
|
|
@@ -1033,34 +1041,34 @@ function yn({
|
|
|
1033
1041
|
);
|
|
1034
1042
|
}
|
|
1035
1043
|
function re({ label: e, children: t }) {
|
|
1036
|
-
return /* @__PURE__ */ g(
|
|
1044
|
+
return /* @__PURE__ */ g(Q, { gap: "4", align: "baseline", children: [
|
|
1037
1045
|
/* @__PURE__ */ n(I, { color: "fg.muted", minW: "40", children: e }),
|
|
1038
|
-
/* @__PURE__ */ n(
|
|
1046
|
+
/* @__PURE__ */ n(B, { children: t })
|
|
1039
1047
|
] });
|
|
1040
1048
|
}
|
|
1041
1049
|
export {
|
|
1042
|
-
|
|
1043
|
-
|
|
1050
|
+
un as C,
|
|
1051
|
+
Ut as D,
|
|
1044
1052
|
P as I,
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1053
|
+
Jt as L,
|
|
1054
|
+
Wn as M,
|
|
1055
|
+
Yt as R,
|
|
1056
|
+
Qt as S,
|
|
1057
|
+
Te as V,
|
|
1058
|
+
Zt as a,
|
|
1059
|
+
Me as b,
|
|
1060
|
+
Gt as c,
|
|
1061
|
+
sn as d,
|
|
1054
1062
|
he as e,
|
|
1055
|
-
|
|
1063
|
+
tn as f,
|
|
1056
1064
|
Fe as g,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
+
On as h,
|
|
1066
|
+
p as i,
|
|
1067
|
+
Bn as j,
|
|
1068
|
+
Kn as k,
|
|
1069
|
+
Vn as l,
|
|
1070
|
+
gn as m,
|
|
1071
|
+
_n as r,
|
|
1072
|
+
j as u
|
|
1065
1073
|
};
|
|
1066
|
-
//# sourceMappingURL=mapping-page-
|
|
1074
|
+
//# sourceMappingURL=mapping-page-D92XwUq5.js.map
|