@jumoo/translate 17.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client/client.gen.d.ts +2 -0
- package/dist/api/client/index.d.ts +10 -0
- package/dist/api/client/types.gen.d.ts +120 -0
- package/dist/api/client/utils.gen.d.ts +37 -0
- package/dist/api/client.gen.d.ts +12 -0
- package/dist/api/core/auth.gen.d.ts +25 -0
- package/dist/api/core/bodySerializer.gen.d.ts +25 -0
- package/dist/api/core/params.gen.d.ts +43 -0
- package/dist/api/core/pathSerializer.gen.d.ts +33 -0
- package/dist/api/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/api/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/api/core/types.gen.d.ts +83 -0
- package/dist/api/core/utils.gen.d.ts +19 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/sdk.gen.d.ts +156 -0
- package/dist/api/types.gen.d.ts +3259 -0
- package/dist/components/elements/models.d.ts +33 -0
- package/dist/components/elements/types.d.ts +14 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/table/paged-table.element.d.ts +64 -0
- package/dist/components/table/translation-table-linked-item.d.ts +14 -0
- package/dist/components/translate-body-layout.element.d.ts +13 -0
- package/dist/components/translate-box.element.d.ts +15 -0
- package/dist/components/translate-property-layout.d.ts +18 -0
- package/dist/components/translation-empty-state.d.ts +14 -0
- package/dist/components/translation-language-card.d.ts +17 -0
- package/dist/components/translation-licence-box.element.d.ts +13 -0
- package/dist/components/translation-summary-card.d.ts +17 -0
- package/dist/conditions/manifest.d.ts +1 -0
- package/dist/conditions/selected-nodes.condition.d.ts +8 -0
- package/dist/conditions/sent-to-translate.condition.d.ts +10 -0
- package/dist/conditions/simple-translate.condition.d.ts +12 -0
- package/dist/connectors/components/connector-mapping.element.d.ts +21 -0
- package/dist/connectors/components/index.d.ts +1 -0
- package/dist/connectors/defaults/connector-config-default.element.d.ts +6 -0
- package/dist/connectors/defaults/connector-job-default.element.d.ts +6 -0
- package/dist/connectors/defaults/connector-pending-default.element.d.ts +6 -0
- package/dist/connectors/defaults/manifest.d.ts +2 -0
- package/dist/connectors/index.d.ts +3 -0
- package/dist/connectors/manifest.d.ts +1 -0
- package/dist/connectors/repository/connector-repository.d.ts +11 -0
- package/dist/connectors/types.d.ts +10 -0
- package/dist/constants.d.ts +26 -0
- package/dist/content/actions/manifest.d.ts +1 -0
- package/dist/content/actions/translate.action.d.ts +8 -0
- package/dist/content/actions/translate.footer-app.d.ts +14 -0
- package/dist/content/bulk/bulk-selection.context.d.ts +26 -0
- package/dist/content/bulk/bulk-translation-dashboard.element.d.ts +20 -0
- package/dist/content/bulk/manifest.d.ts +1 -0
- package/dist/content/components/document-sets.element.d.ts +15 -0
- package/dist/content/components/document-stats.element.d.ts +15 -0
- package/dist/content/components/document-translations.element.d.ts +29 -0
- package/dist/content/components/index.d.ts +4 -0
- package/dist/content/components/simple-translate.element.d.ts +18 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/manifest.d.ts +1 -0
- package/dist/content/translation-view.context.d.ts +28 -0
- package/dist/content/translation-view.element.d.ts +11 -0
- package/dist/exports.d.ts +8 -0
- package/dist/glossary/components/glossary-export.modal.d.ts +13 -0
- package/dist/glossary/components/glossary-export.modal.token.d.ts +11 -0
- package/dist/glossary/components/glossary-import.modal.d.ts +16 -0
- package/dist/glossary/components/glossary-import.modal.token.d.ts +11 -0
- package/dist/glossary/components/glossary-term-edit.modal.d.ts +14 -0
- package/dist/glossary/components/glossary-term-edit.modal.token.d.ts +15 -0
- package/dist/glossary/components/manifest.d.ts +2 -0
- package/dist/glossary/conditions/glossary-enabled.condition.d.ts +31 -0
- package/dist/glossary/conditions/manifest.d.ts +1 -0
- package/dist/glossary/constants.d.ts +4 -0
- package/dist/glossary/manifest.d.ts +1 -0
- package/dist/glossary/menu/manifest.d.ts +1 -0
- package/dist/glossary/repository/glossary.repository.d.ts +65 -0
- package/dist/glossary/repository/index.d.ts +2 -0
- package/dist/glossary/workspace/manifest.d.ts +1 -0
- package/dist/glossary/workspace/views/default.element.d.ts +22 -0
- package/dist/glossary/workspace/workspace.context.d.ts +25 -0
- package/dist/glossary/workspace/workspace.element.d.ts +6 -0
- package/dist/hey-api.d.ts +11 -0
- package/dist/icons/icons.d.ts +5 -0
- package/dist/icons/manifest.d.ts +1 -0
- package/dist/icons/svgs/translate.d.ts +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/jobs/components/index.d.ts +8 -0
- package/dist/jobs/components/job-copyproperties.element.d.ts +15 -0
- package/dist/jobs/components/job-item-table.element.d.ts +19 -0
- package/dist/jobs/components/job-list-selection.element.d.ts +17 -0
- package/dist/jobs/components/job-list-table.element.d.ts +18 -0
- package/dist/jobs/components/job-processing-bar.element.d.ts +14 -0
- package/dist/jobs/components/job-provider-view.element.d.ts +21 -0
- package/dist/jobs/components/job-status-badge.d.ts +13 -0
- package/dist/jobs/components/job-status-bar.element.d.ts +14 -0
- package/dist/jobs/jobs.repository.d.ts +35 -0
- package/dist/jobs/manifest.d.ts +1 -0
- package/dist/jobs/styles.d.ts +1 -0
- package/dist/jobs/tranlsation-job.helpers.d.ts +10 -0
- package/dist/jobs/types.d.ts +2 -0
- package/dist/jobs/workspace/actions/job-approve-blocked.footer-app.d.ts +21 -0
- package/dist/jobs/workspace/actions/job-approve.action.d.ts +8 -0
- package/dist/jobs/workspace/actions/job-cancel.action.d.ts +5 -0
- package/dist/jobs/workspace/actions/job-check.action.d.ts +5 -0
- package/dist/jobs/workspace/actions/job-remove.action.d.ts +5 -0
- package/dist/jobs/workspace/actions/job-reset.action.d.ts +5 -0
- package/dist/jobs/workspace/actions/manifest.d.ts +1 -0
- package/dist/jobs/workspace/conditions/can-approve.condition.d.ts +22 -0
- package/dist/jobs/workspace/conditions/job-status.condition.d.ts +14 -0
- package/dist/jobs/workspace/conditions/manifest.d.ts +1 -0
- package/dist/jobs/workspace/manifest.d.ts +1 -0
- package/dist/jobs/workspace/translation-job-element.d.ts +10 -0
- package/dist/jobs/workspace/translation-job-workspace.context.d.ts +37 -0
- package/dist/jobs/workspace/views/default-job-view.element.d.ts +20 -0
- package/dist/jobs/workspace/views/job-history-view.element.d.ts +11 -0
- package/dist/lang/files/da/actionCategories.da.d.ts +5 -0
- package/dist/lang/files/da/da.d.ts +377 -0
- package/dist/lang/files/da/tm.da.d.ts +31 -0
- package/dist/lang/files/da/tmApp.da.d.ts +16 -0
- package/dist/lang/files/da/tmApproval.da.d.ts +7 -0
- package/dist/lang/files/da/tmConnectors.da.d.ts +16 -0
- package/dist/lang/files/da/tmJob.da.d.ts +87 -0
- package/dist/lang/files/da/tmLicence.da.d.ts +27 -0
- package/dist/lang/files/da/tmMemory.da.d.ts +48 -0
- package/dist/lang/files/da/tmSets.da.d.ts +89 -0
- package/dist/lang/files/da/tmSettings.da.d.ts +46 -0
- package/dist/lang/files/da/tmStages.da.d.ts +17 -0
- package/dist/lang/files/da/tmStats.da.d.ts +9 -0
- package/dist/lang/files/de/actionCategories.de.d.ts +5 -0
- package/dist/lang/files/de/de.d.ts +377 -0
- package/dist/lang/files/de/tm.de.d.ts +31 -0
- package/dist/lang/files/de/tmApp.de.d.ts +16 -0
- package/dist/lang/files/de/tmApproval.de.d.ts +7 -0
- package/dist/lang/files/de/tmConnectors.de.d.ts +16 -0
- package/dist/lang/files/de/tmJob.de.d.ts +87 -0
- package/dist/lang/files/de/tmLicence.de.d.ts +27 -0
- package/dist/lang/files/de/tmMemory.de.d.ts +48 -0
- package/dist/lang/files/de/tmSets.de.d.ts +89 -0
- package/dist/lang/files/de/tmSettings.de.d.ts +46 -0
- package/dist/lang/files/de/tmStages.de.d.ts +17 -0
- package/dist/lang/files/de/tmStats.de.d.ts +9 -0
- package/dist/lang/files/en/actionCategories.en.d.ts +5 -0
- package/dist/lang/files/en/en.d.ts +443 -0
- package/dist/lang/files/en/tm.en.d.ts +31 -0
- package/dist/lang/files/en/tmApp.en.d.ts +16 -0
- package/dist/lang/files/en/tmApproval.en.d.ts +7 -0
- package/dist/lang/files/en/tmBulk.en.d.ts +12 -0
- package/dist/lang/files/en/tmConnectors.en.d.ts +16 -0
- package/dist/lang/files/en/tmGlossary.en.d.ts +57 -0
- package/dist/lang/files/en/tmJob.en.d.ts +88 -0
- package/dist/lang/files/en/tmLicence.en.d.ts +27 -0
- package/dist/lang/files/en/tmMemory.en.d.ts +48 -0
- package/dist/lang/files/en/tmSets.en.d.ts +89 -0
- package/dist/lang/files/en/tmSettings.en.d.ts +46 -0
- package/dist/lang/files/en/tmStages.en.d.ts +17 -0
- package/dist/lang/files/en/tmStats.en.d.ts +9 -0
- package/dist/lang/files/es/actionCategories.es.d.ts +5 -0
- package/dist/lang/files/es/es.d.ts +377 -0
- package/dist/lang/files/es/tm.es.d.ts +31 -0
- package/dist/lang/files/es/tmApp.es.d.ts +16 -0
- package/dist/lang/files/es/tmApproval.es.d.ts +7 -0
- package/dist/lang/files/es/tmConnectors.es.d.ts +16 -0
- package/dist/lang/files/es/tmJob.es.d.ts +87 -0
- package/dist/lang/files/es/tmLicence.es.d.ts +27 -0
- package/dist/lang/files/es/tmMemory.es.d.ts +48 -0
- package/dist/lang/files/es/tmSets.es.d.ts +89 -0
- package/dist/lang/files/es/tmSettings.es.d.ts +46 -0
- package/dist/lang/files/es/tmStages.es.d.ts +17 -0
- package/dist/lang/files/es/tmStats.es.d.ts +9 -0
- package/dist/lang/files/fr/actionCategories.fr.d.ts +5 -0
- package/dist/lang/files/fr/fr.d.ts +377 -0
- package/dist/lang/files/fr/tm.fr.d.ts +31 -0
- package/dist/lang/files/fr/tmApp.fr.d.ts +16 -0
- package/dist/lang/files/fr/tmApproval.fr.d.ts +7 -0
- package/dist/lang/files/fr/tmConnectors.fr.d.ts +16 -0
- package/dist/lang/files/fr/tmJob.fr.d.ts +87 -0
- package/dist/lang/files/fr/tmLicence.fr.d.ts +27 -0
- package/dist/lang/files/fr/tmMemory.fr.d.ts +48 -0
- package/dist/lang/files/fr/tmSets.fr.d.ts +89 -0
- package/dist/lang/files/fr/tmSettings.fr.d.ts +46 -0
- package/dist/lang/files/fr/tmStages.fr.d.ts +17 -0
- package/dist/lang/files/fr/tmStats.fr.d.ts +9 -0
- package/dist/lang/files/nl/actionCategories.nl.d.ts +5 -0
- package/dist/lang/files/nl/nl.d.ts +377 -0
- package/dist/lang/files/nl/tm.nl.d.ts +31 -0
- package/dist/lang/files/nl/tmApp.nl.d.ts +16 -0
- package/dist/lang/files/nl/tmApproval.nl.d.ts +7 -0
- package/dist/lang/files/nl/tmConnectors.nl.d.ts +16 -0
- package/dist/lang/files/nl/tmJob.nl.d.ts +87 -0
- package/dist/lang/files/nl/tmLicence.nl.d.ts +27 -0
- package/dist/lang/files/nl/tmMemory.nl.d.ts +48 -0
- package/dist/lang/files/nl/tmSets.nl.d.ts +89 -0
- package/dist/lang/files/nl/tmSettings.nl.d.ts +46 -0
- package/dist/lang/files/nl/tmStages.nl.d.ts +17 -0
- package/dist/lang/files/nl/tmStats.nl.d.ts +9 -0
- package/dist/lang/manifest.d.ts +1 -0
- package/dist/memory/components/manifest.d.ts +2 -0
- package/dist/memory/components/memory-copy.modal.d.ts +12 -0
- package/dist/memory/components/memory-copy.modal.token.d.ts +10 -0
- package/dist/memory/components/memory-edit.modal.d.ts +10 -0
- package/dist/memory/components/memory-edit.modal.token.d.ts +11 -0
- package/dist/memory/conditions/manifest.d.ts +1 -0
- package/dist/memory/conditions/memory-enabled.condition.d.ts +32 -0
- package/dist/memory/constants.d.ts +4 -0
- package/dist/memory/manifest.d.ts +1 -0
- package/dist/memory/menu/manifest.d.ts +1 -0
- package/dist/memory/repository/index.d.ts +2 -0
- package/dist/memory/repository/memory.repository.d.ts +75 -0
- package/dist/memory/workspace/manifest.d.ts +1 -0
- package/dist/memory/workspace/views/default.element.d.ts +13 -0
- package/dist/memory/workspace/views/source-detail.element.d.ts +16 -0
- package/dist/memory/workspace/workspace.context.d.ts +48 -0
- package/dist/memory/workspace/workspace.element.d.ts +7 -0
- package/dist/nodes/components/index.d.ts +7 -0
- package/dist/nodes/components/node-property-element.d.ts +18 -0
- package/dist/nodes/components/node-single-value.element.d.ts +22 -0
- package/dist/nodes/components/node-status-badge.d.ts +13 -0
- package/dist/nodes/components/node-tabs.element.d.ts +19 -0
- package/dist/nodes/components/node-value.element.d.ts +25 -0
- package/dist/nodes/components/nodes-table.element.d.ts +23 -0
- package/dist/nodes/components/rich-text-editor.element.d.ts +14 -0
- package/dist/nodes/manifest.d.ts +1 -0
- package/dist/nodes/node.respository.d.ts +30 -0
- package/dist/nodes/styles.d.ts +1 -0
- package/dist/nodes/types.d.ts +2 -0
- package/dist/nodes/workspace/manifest.d.ts +1 -0
- package/dist/nodes/workspace/translation-node-workspace.context.d.ts +18 -0
- package/dist/nodes/workspace/translation-node.element.d.ts +13 -0
- package/dist/permissions/constants.d.ts +6 -0
- package/dist/permissions/is-forbidden-error.d.ts +9 -0
- package/dist/permissions/manifest.d.ts +1 -0
- package/dist/permissions/node-permissions.d.ts +27 -0
- package/dist/section/dashboard/manifest.d.ts +1 -0
- package/dist/section/dashboard/translation-dashboard.element.d.ts +42 -0
- package/dist/section/manifest.d.ts +1 -0
- package/dist/section/tree/manifest.d.ts +1 -0
- package/dist/section/tree/translations-tree.data-source.d.ts +6 -0
- package/dist/section/tree/translations-tree.repository.d.ts +11 -0
- package/dist/section/tree/translations-tree.store.d.ts +8 -0
- package/dist/section/tree/types.d.ts +15 -0
- package/dist/section/types.d.ts +31 -0
- package/dist/section/workspace/language/translation-language-workspace.context.d.ts +21 -0
- package/dist/section/workspace/language/translation-language.element.d.ts +13 -0
- package/dist/section/workspace/manifest.d.ts +1 -0
- package/dist/section/workspace/pending/translation-pending-element.d.ts +9 -0
- package/dist/section/workspace/pending/translation-pending-workspace.context.d.ts +17 -0
- package/dist/section/workspace/pending-language/translation-pending-language-element.d.ts +15 -0
- package/dist/section/workspace/pending-language/translation-pending-language-workspace.content.d.ts +19 -0
- package/dist/section/workspace/stage/translation-stage-element.d.ts +18 -0
- package/dist/section/workspace/stage/translation-stage-workspace.context.d.ts +24 -0
- package/dist/sets/manifest.d.ts +1 -0
- package/dist/sets/set-connector-lock.d.ts +20 -0
- package/dist/sets/sets.context.d.ts +24 -0
- package/dist/sets/sets.repository.d.ts +27 -0
- package/dist/settings/connectors/constants.d.ts +11 -0
- package/dist/settings/connectors/index.d.ts +3 -0
- package/dist/settings/connectors/manifest.d.ts +1 -0
- package/dist/settings/connectors/menu/connector-menu-item.element.d.ts +9 -0
- package/dist/settings/connectors/menu/connector-menu.element.d.ts +11 -0
- package/dist/settings/connectors/menu/manifest.d.ts +2 -0
- package/dist/settings/connectors/root/connector-root.element.d.ts +21 -0
- package/dist/settings/connectors/root/manifest.d.ts +1 -0
- package/dist/settings/connectors/workspace/actions/connector-save-settings.action.d.ts +6 -0
- package/dist/settings/connectors/workspace/actions/manifest.d.ts +1 -0
- package/dist/settings/connectors/workspace/connector-settings.context.d.ts +20 -0
- package/dist/settings/connectors/workspace/connector-settings.workspace.element.d.ts +15 -0
- package/dist/settings/connectors/workspace/connector-settings.workspace.route.d.ts +9 -0
- package/dist/settings/connectors/workspace/manifest.d.ts +1 -0
- package/dist/settings/index.d.ts +5 -0
- package/dist/settings/manifest.d.ts +1 -0
- package/dist/settings/respository/settings.repository.d.ts +22 -0
- package/dist/settings/sets/components/index.d.ts +3 -0
- package/dist/settings/sets/components/manifest.d.ts +1 -0
- package/dist/settings/sets/components/set-card.element.d.ts +14 -0
- package/dist/settings/sets/components/set-root-view.element.d.ts +17 -0
- package/dist/settings/sets/components/set-site-picker.element.d.ts +11 -0
- package/dist/settings/sets/components/set-site-picker.modal.d.ts +25 -0
- package/dist/settings/sets/components/set-site-picker.modal.token.d.ts +9 -0
- package/dist/settings/sets/entity/actions/manifest.d.ts +1 -0
- package/dist/settings/sets/entity/actions/set-entity-save.action.d.ts +5 -0
- package/dist/settings/sets/entity/manifest.d.ts +1 -0
- package/dist/settings/sets/entity/set-entity-context.d.ts +29 -0
- package/dist/settings/sets/entity/set-entity-workspace.element.d.ts +10 -0
- package/dist/settings/sets/entity/set-entity-workspace.root.d.ts +9 -0
- package/dist/settings/sets/entity/set-isnew-redirect.controller.d.ts +8 -0
- package/dist/settings/sets/entity/views/manifest.d.ts +1 -0
- package/dist/settings/sets/entity/views/set-advanced.element.d.ts +18 -0
- package/dist/settings/sets/entity/views/set-default-view.element.d.ts +26 -0
- package/dist/settings/sets/entity/views/set-notifications.element.d.ts +12 -0
- package/dist/settings/sets/index.d.ts +4 -0
- package/dist/settings/sets/manifest.d.ts +1 -0
- package/dist/settings/sets/menu/actions/delete.d.ts +8 -0
- package/dist/settings/sets/menu/actions/refresh.d.ts +5 -0
- package/dist/settings/sets/menu/manifest.d.ts +1 -0
- package/dist/settings/sets/menu/set-menu-item.element.d.ts +15 -0
- package/dist/settings/sets/menu/sets-menu.element.d.ts +15 -0
- package/dist/settings/sets/root/manifest.d.ts +1 -0
- package/dist/settings/sets/root/sets-root.element.d.ts +9 -0
- package/dist/settings/sets/types.d.ts +5 -0
- package/dist/settings/tree/manifest.d.ts +1 -0
- package/dist/settings/tree/settings-menu.element.d.ts +11 -0
- package/dist/settings/tree/types.d.ts +6 -0
- package/dist/settings/workspace/manifest.d.ts +2 -0
- package/dist/settings/workspace/views/default/default.element.d.ts +11 -0
- package/dist/settings/workspace/views/diagnostics/diagnostict.element.d.ts +10 -0
- package/dist/settings/workspace/views/index.d.ts +4 -0
- package/dist/settings/workspace/views/licence/licence.element.d.ts +16 -0
- package/dist/settings/workspace/views/notifications/notification.element.d.ts +11 -0
- package/dist/settings/workspace/views/sets/sets.element.d.ts +10 -0
- package/dist/settings/workspace/workspace.context.d.ts +19 -0
- package/dist/settings/workspace/workspace.element.d.ts +8 -0
- package/dist/strategies/approval/manifest.d.ts +1 -0
- package/dist/strategies/approval/steps/approve-config.element.d.ts +27 -0
- package/dist/strategies/approval/steps/approve-result.element.d.ts +5 -0
- package/dist/strategies/approval/steps/manifest.d.ts +2 -0
- package/dist/strategies/creation/actions/create.actions.d.ts +7 -0
- package/dist/strategies/creation/actions/manifest.d.ts +1 -0
- package/dist/strategies/creation/components/connector-options.element.d.ts +16 -0
- package/dist/strategies/creation/components/connector-picker.element.d.ts +19 -0
- package/dist/strategies/creation/components/index.d.ts +5 -0
- package/dist/strategies/creation/components/job-options.element.d.ts +17 -0
- package/dist/strategies/creation/components/language-picker.element.d.ts +25 -0
- package/dist/strategies/creation/components/render-results.element.d.ts +17 -0
- package/dist/strategies/creation/index.d.ts +1 -0
- package/dist/strategies/creation/manifest.d.ts +1 -0
- package/dist/strategies/creation/steps/choose-provider-step.element.d.ts +18 -0
- package/dist/strategies/creation/steps/clean/clean-config-step.element.d.ts +22 -0
- package/dist/strategies/creation/steps/clean/manifest.d.ts +2 -0
- package/dist/strategies/creation/steps/create-config-step.element.d.ts +23 -0
- package/dist/strategies/creation/steps/create-from-nodes-step.element.d.ts +19 -0
- package/dist/strategies/creation/steps/create-job-results-step.element.d.ts +9 -0
- package/dist/strategies/creation/steps/manifest.d.ts +2 -0
- package/dist/strategies/creation/steps/pending-background-step.element.d.ts +12 -0
- package/dist/strategies/creation/steps/simple-job-result-step.element.d.ts +8 -0
- package/dist/strategies/creation/translation-creation.context.d.ts +15 -0
- package/dist/strategies/index.d.ts +1 -0
- package/dist/strategies/manifest.d.ts +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './api/index.js';
|
|
2
|
+
export * from './components/index.js';
|
|
3
|
+
export * from './connectors/index.js';
|
|
4
|
+
export * from './constants.js';
|
|
5
|
+
export * from './content/index.js';
|
|
6
|
+
export * from './jobs/components/index.js';
|
|
7
|
+
export * from './sets/set-connector-lock.js';
|
|
8
|
+
export * from './settings/index.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
import { GlossaryExportModalData, GlossaryExportModalResult } from './glossary-export.modal.token.js';
|
|
3
|
+
export declare class TranslationGlossaryExportModal extends UmbModalBaseElement<GlossaryExportModalData, GlossaryExportModalResult> {
|
|
4
|
+
#private;
|
|
5
|
+
private _format;
|
|
6
|
+
private _sourceLanguage;
|
|
7
|
+
private _targetLanguage;
|
|
8
|
+
private _isSubmitting;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
}
|
|
13
|
+
export default TranslationGlossaryExportModal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
export interface GlossaryExportModalData {
|
|
3
|
+
installedLanguages: string[];
|
|
4
|
+
sourceLanguage?: string;
|
|
5
|
+
targetLanguage?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GlossaryExportModalResult {
|
|
8
|
+
exported: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const JUMOO_TM_GLOSSARY_EXPORT_MODAL_ALIAS = "jumoo-tm-glossary-export-modal";
|
|
11
|
+
export declare const JUMOO_TM_GLOSSARY_EXPORT_MODAL: UmbModalToken<GlossaryExportModalData, GlossaryExportModalResult>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
import { GlossaryImportModalData, GlossaryImportModalResult } from './glossary-import.modal.token.js';
|
|
3
|
+
export declare class TranslationGlossaryImportModal extends UmbModalBaseElement<GlossaryImportModalData, GlossaryImportModalResult> {
|
|
4
|
+
#private;
|
|
5
|
+
private _format;
|
|
6
|
+
private _sourceLanguage;
|
|
7
|
+
private _targetLanguage;
|
|
8
|
+
private _file?;
|
|
9
|
+
private _createMissingTerms;
|
|
10
|
+
private _isSubmitting;
|
|
11
|
+
private _result?;
|
|
12
|
+
connectedCallback(): void;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
static styles: import("lit").CSSResult;
|
|
15
|
+
}
|
|
16
|
+
export default TranslationGlossaryImportModal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
export interface GlossaryImportModalData {
|
|
3
|
+
installedLanguages: string[];
|
|
4
|
+
sourceLanguage?: string;
|
|
5
|
+
targetLanguage?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GlossaryImportModalResult {
|
|
8
|
+
imported: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const JUMOO_TM_GLOSSARY_IMPORT_MODAL_ALIAS = "jumoo-tm-glossary-import-modal";
|
|
11
|
+
export declare const JUMOO_TM_GLOSSARY_IMPORT_MODAL: UmbModalToken<GlossaryImportModalData, GlossaryImportModalResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
import { GlossaryTermEditModalData, GlossaryTermEditModalResult } from './glossary-term-edit.modal.token.js';
|
|
3
|
+
export declare class TranslationGlossaryTermEditModal extends UmbModalBaseElement<GlossaryTermEditModalData, GlossaryTermEditModalResult> {
|
|
4
|
+
#private;
|
|
5
|
+
private _sourceLanguage;
|
|
6
|
+
private _sourceText;
|
|
7
|
+
private _notes;
|
|
8
|
+
private _caseSensitive;
|
|
9
|
+
private _values;
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResult;
|
|
13
|
+
}
|
|
14
|
+
export default TranslationGlossaryTermEditModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
|
2
|
+
import { GlossaryTerm, SaveGlossaryTermRequest } from '../../api/index.js';
|
|
3
|
+
export interface GlossaryTermEditModalData {
|
|
4
|
+
/** undefined means "create a new term". */
|
|
5
|
+
term?: GlossaryTerm;
|
|
6
|
+
/** default/fixed source language for a new term. */
|
|
7
|
+
sourceLanguage: string;
|
|
8
|
+
/** culture names for every installed language, used to render one value row per language. */
|
|
9
|
+
installedLanguages: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface GlossaryTermEditModalResult {
|
|
12
|
+
request: SaveGlossaryTermRequest;
|
|
13
|
+
}
|
|
14
|
+
export declare const JUMOO_TM_GLOSSARY_TERM_EDIT_MODAL_ALIAS = "jumoo-tm-glossary-term-edit-modal";
|
|
15
|
+
export declare const JUMOO_TM_GLOSSARY_TERM_EDIT_MODAL: UmbModalToken<GlossaryTermEditModalData, GlossaryTermEditModalResult>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
2
|
+
import { UmbConditionConfigBase, UmbConditionControllerArguments, UmbExtensionCondition } from '@umbraco-cms/backoffice/extension-api';
|
|
3
|
+
import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry';
|
|
4
|
+
export type GlossaryEnabledConditionConfig = UmbConditionConfigBase;
|
|
5
|
+
/**
|
|
6
|
+
* permitted once GlossaryRepository.getEnabled() resolves true - hides the
|
|
7
|
+
* Glossary menu item (and anything else this is attached to) when the
|
|
8
|
+
* glossary has been switched off, either via the Translation:GlossaryEnabled
|
|
9
|
+
* config setting or GlossaryService.Disable() called by a connector. See
|
|
10
|
+
* Core\Glossary\CLAUDE.md for the server side of this toggle.
|
|
11
|
+
*
|
|
12
|
+
* Starts permitted so the (common) enabled case doesn't flash the menu item
|
|
13
|
+
* away and back while the check is in flight.
|
|
14
|
+
*
|
|
15
|
+
* Checks the current user's fallback (group-level) permissions FIRST, via
|
|
16
|
+
* UMB_CURRENT_USER_CONTEXT (already loaded, no network call), and skips
|
|
17
|
+
* GlossaryRepository.getEnabled() entirely when jumoo-view-glossary is
|
|
18
|
+
* missing - GlossaryListController.GetEnabled now requires that permission
|
|
19
|
+
* (see Core\Glossary\CLAUDE.md), so calling it anyway for a user who lacks
|
|
20
|
+
* it just produces a 401/403 with no reason to bother the user. The menu
|
|
21
|
+
* item's conditions array also carries a separate
|
|
22
|
+
* Umb.Condition.UserPermission.Fallback for the same permission (see
|
|
23
|
+
* menu/manifest.ts) - that one still hides the item independently; this
|
|
24
|
+
* check exists purely to avoid the wasted/erroring network call.
|
|
25
|
+
*/
|
|
26
|
+
export declare class TranslationGlossaryEnabledCondition extends UmbConditionBase<GlossaryEnabledConditionConfig> implements UmbExtensionCondition {
|
|
27
|
+
#private;
|
|
28
|
+
config: GlossaryEnabledConditionConfig;
|
|
29
|
+
constructor(host: UmbControllerHost, args: UmbConditionControllerArguments<GlossaryEnabledConditionConfig>);
|
|
30
|
+
}
|
|
31
|
+
export { TranslationGlossaryEnabledCondition as api };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: UmbExtensionManifest[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const JUMOO_TM_GLOSSARY_SETTINGS_CONTEXT_ALIAS = "jumoo-tm-glossary-settings-context";
|
|
2
|
+
export declare const JUMOO_TM_GLOSSARY_SETTINGS_WORKSPACE_ALIAS = "jumoo-tm-glossary-settings-workspace";
|
|
3
|
+
export declare const JUMOO_TM_GLOSSARY_WORKSPACE_ENTITY_TYPE = "jumoo-tm-glossary-entity-root";
|
|
4
|
+
export declare const JUMOO_TM_GLOSSARY_ENABLED_CONDITION_ALIAS = "Jumoo.Tm.GlossaryEnabled.Condition";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/menu").ManifestMenuItem[];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
2
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
3
|
+
import { GlossaryImportResult, GlossaryLanguageStats, GlossaryTerm, PagedModelGlossaryTermModel, SaveGlossaryTermRequest } from '../../api/index.js';
|
|
4
|
+
export interface GlossaryQueryParams {
|
|
5
|
+
sourceLanguage?: string;
|
|
6
|
+
targetLanguage?: string;
|
|
7
|
+
search?: string;
|
|
8
|
+
missingOnly?: boolean;
|
|
9
|
+
page?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface GlossaryExportResult {
|
|
13
|
+
blob: Blob;
|
|
14
|
+
filename: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class GlossaryRepository extends UmbControllerBase {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(host: UmbControllerHost);
|
|
19
|
+
/**
|
|
20
|
+
* whether the glossary is switched on AND the current user holds the
|
|
21
|
+
* jumoo-view-glossary permission - used by jumoo-tm-glossary-enabled-condition
|
|
22
|
+
* to decide whether to show the Glossary menu item at all. This one call
|
|
23
|
+
* covers both checks: GlossaryListController now requires
|
|
24
|
+
* TranslationAuthorizationPolicies.ViewGlossary on every action including
|
|
25
|
+
* GetEnabled, so a user without the permission gets a 403 here.
|
|
26
|
+
*
|
|
27
|
+
* Deliberately silent on failure and defaults to *enabled* for anything
|
|
28
|
+
* other than a 401/403 (falls open) rather than the usual
|
|
29
|
+
* #showErrorNotification - this runs once per session as part of deciding
|
|
30
|
+
* whether a menu item exists, and popping an error toast for a network
|
|
31
|
+
* blip would be noisy. A 401/403 is different - that's the server
|
|
32
|
+
* deliberately saying no, so it fails *closed* (not permitted) instead;
|
|
33
|
+
* every actual glossary action still gets its own error notification when
|
|
34
|
+
* it fails.
|
|
35
|
+
*/
|
|
36
|
+
getEnabled(): Promise<boolean>;
|
|
37
|
+
getAll(params: GlossaryQueryParams): Promise<PagedModelGlossaryTermModel | undefined>;
|
|
38
|
+
getStats(sourceLanguage: string): Promise<GlossaryLanguageStats[] | undefined>;
|
|
39
|
+
saveTerm(request: SaveGlossaryTermRequest): Promise<GlossaryTerm | undefined>;
|
|
40
|
+
deleteTerm(key: string): Promise<boolean>;
|
|
41
|
+
clearPair(sourceLanguage: string, targetLanguage: string): Promise<number | undefined>;
|
|
42
|
+
importCsv(file: File, sourceLanguage: string, targetLanguage: string, createMissingTerms: boolean): Promise<GlossaryImportResult | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* exports a language pair as CSV bytes. Deliberately requests the response as a
|
|
45
|
+
* blob (`parseAs: 'blob'`) rather than letting the client's default content-type
|
|
46
|
+
* inference resolve `text/csv` to a string - `Response.text()` performs a UTF-8
|
|
47
|
+
* decode that silently strips a leading BOM, and Excel on Windows then mangles
|
|
48
|
+
* every accented character in the re-added-by-hand version. Requesting bytes
|
|
49
|
+
* keeps the server's BOM intact.
|
|
50
|
+
*/
|
|
51
|
+
exportCsv(sourceLanguage: string, targetLanguage: string): Promise<GlossaryExportResult | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* imports a TBX termbase for one source language. Unlike importCsv, there is
|
|
54
|
+
* no single target language - every language found in the file is imported
|
|
55
|
+
* in one call, or, if targetLanguages is given, only those.
|
|
56
|
+
*/
|
|
57
|
+
importTbx(file: File, sourceLanguage: string, createMissingTerms: boolean, targetLanguages?: string[]): Promise<GlossaryImportResult | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* exports a TBX termbase for one source language - every target language
|
|
60
|
+
* with a stored value, or just targetLanguages if given. See exportCsv for
|
|
61
|
+
* why the response is requested as a blob.
|
|
62
|
+
*/
|
|
63
|
+
exportTbx(sourceLanguage: string, targetLanguages?: string[]): Promise<GlossaryExportResult | undefined>;
|
|
64
|
+
}
|
|
65
|
+
export default GlossaryRepository;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
export declare class TranslationGlossaryDefaultViewElement extends UmbLitElement {
|
|
3
|
+
#private;
|
|
4
|
+
private _installedLanguages;
|
|
5
|
+
private _sourceLanguage;
|
|
6
|
+
private _targetLanguage;
|
|
7
|
+
private _search;
|
|
8
|
+
private _missingOnly;
|
|
9
|
+
private _items;
|
|
10
|
+
private _total;
|
|
11
|
+
private _page;
|
|
12
|
+
private _pageSize;
|
|
13
|
+
private _isLoading;
|
|
14
|
+
private _stats;
|
|
15
|
+
private _hasActiveConnectors;
|
|
16
|
+
private _supportedConnectors;
|
|
17
|
+
private _bannerDismissed;
|
|
18
|
+
constructor();
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
}
|
|
22
|
+
export default TranslationGlossaryDefaultViewElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
2
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
3
|
+
import { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
4
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
5
|
+
import { GlossaryQueryParams } from '../repository/index.js';
|
|
6
|
+
import { GlossaryLanguageStats, GlossaryTerm, PagedModelGlossaryTermModel, SaveGlossaryTermRequest } from '../../api/index.js';
|
|
7
|
+
export declare class TranslationGlossaryWorkspaceContext extends UmbControllerBase implements UmbWorkspaceContext {
|
|
8
|
+
#private;
|
|
9
|
+
readonly workspaceAlias: string;
|
|
10
|
+
getEntityType(): string;
|
|
11
|
+
constructor(host: UmbControllerHost);
|
|
12
|
+
/**
|
|
13
|
+
* a facade over GlossaryRepository for the workspace's own view - only what
|
|
14
|
+
* default.element.ts actually calls. Import and export deliberately aren't
|
|
15
|
+
* here: both happen inside their own modals, which hold a GlossaryRepository
|
|
16
|
+
* of their own, so a pass-through method here would have no caller.
|
|
17
|
+
*/
|
|
18
|
+
getTerms(params: GlossaryQueryParams): Promise<PagedModelGlossaryTermModel | undefined>;
|
|
19
|
+
getStats(sourceLanguage: string): Promise<GlossaryLanguageStats[] | undefined>;
|
|
20
|
+
saveTerm(request: SaveGlossaryTermRequest): Promise<GlossaryTerm | undefined>;
|
|
21
|
+
deleteTerm(key: string): Promise<boolean>;
|
|
22
|
+
clearPair(sourceLanguage: string, targetLanguage: string): Promise<number | undefined>;
|
|
23
|
+
}
|
|
24
|
+
export default TranslationGlossaryWorkspaceContext;
|
|
25
|
+
export declare const JUMOO_TRANSLATIONS_GLOSSARY_WORKSPACE_CONTEXT: UmbContextToken<TranslationGlossaryWorkspaceContext, TranslationGlossaryWorkspaceContext>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
export declare class TranslationGlossaryWorkspaceElement extends UmbLitElement {
|
|
3
|
+
constructor();
|
|
4
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
+
}
|
|
6
|
+
export default TranslationGlossaryWorkspaceElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CreateClientConfig } from './api/client.gen';
|
|
2
|
+
/**
|
|
3
|
+
* Pre-configure the generated client by copying the Umbraco HTTP client's config.
|
|
4
|
+
*
|
|
5
|
+
* Called automatically by the generated client during initialization (via runtimeConfigPath).
|
|
6
|
+
* Inherits baseUrl, credentials, auth, and headers from umbHttpClient — which is already
|
|
7
|
+
* configured by the backoffice before extensions load.
|
|
8
|
+
*
|
|
9
|
+
* @see https://heyapi.dev/openapi-ts/clients/fetch#configuration
|
|
10
|
+
*/
|
|
11
|
+
export declare const createClientConfig: CreateClientConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/icon").ManifestIcons[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<svg \nfill=\"currentColor\" \nstroke=\"currentColor\"\nxmlns=\"http://www.w3.org/2000/svg\" \nviewBox=\"0 0 256 256\">\n<path d=\"M62.4,101c-1.5-2.1-2.1-3.4-1.8-3.9c0.2-0.5,1.6-0.7,3.9-0.5c2.3,0.2,4.2,0.5,5.8,0.9c1.5,0.4,2.8,1,3.8,1.7\n\tc1,0.7,1.8,1.5,2.3,2.6c0.6,1,1,2.3,1.4,3.7c0.7,2.8,0.5,4.7-0.5,5.7c-1.1,1-2.6,0.8-4.6-0.6c-2.1-1.4-3.9-2.8-5.5-4.2\n\tC65.5,105.1,63.9,103.2,62.4,101z M40.7,190.1c4.8-2.1,9-4.2,12.6-6.4c3.5-2.1,6.6-4.4,9.3-6.8c2.6-2.3,5-4.9,7-7.7\n\tc2-2.7,3.8-5.8,5.4-9.2c1.3,1.2,2.5,2.4,3.8,3.5c1.2,1.1,2.5,2.2,3.8,3.4c1.3,1.2,2.8,2.4,4.3,3.8c1.5,1.4,3.3,2.8,5.3,4.5\n\tc0.7,0.5,1.4,0.9,2.1,1c0.7,0.1,1.7,0,3.1-0.6c1.3-0.5,3-1.4,5.1-2.8c2.1-1.3,4.7-3.1,7.9-5.4c1.6-1.1,2.4-2,2.3-2.7\n\tc-0.1-0.7-1-1-2.7-0.9c-3.1,0.1-5.9,0.1-8.3-0.1c-2.5-0.2-5-0.6-7.4-1.4c-2.4-0.8-4.9-1.9-7.5-3.4c-2.6-1.5-5.6-3.6-9.1-6.2\n\tc1-3.9,1.8-8,2.4-12.4c0.3-2.5,0.6-4.3,0.8-5.6c0.2-1.2,0.5-2.4,0.9-3.3c0.3-0.8,0.4-1.4,0.5-1.9c0.1-0.5-0.1-1-0.4-1.6\n\tc-0.4-0.5-1-1.1-1.9-1.7c-0.9-0.6-2.2-1.4-3.9-2.3c2.4-0.9,5.1-1.7,7.9-2.6c2.7-0.9,5.7-1.8,8.8-2.7c3-0.9,4.5-1.9,4.6-3.1\n\tc0.1-1.2-0.9-2.3-3.2-3.5c-1.5-0.8-2.9-1.1-4.3-0.9c-1.4,0.2-3.2,0.9-5.4,2.2c-0.6,0.4-1.8,0.9-3.4,1.6c-1.7,0.7-3.6,1.5-6,2.5\n\tc-2.4,1-5,2-7.8,3.1c-2.9,1.1-5.8,2.2-8.7,3.2c-2.9,1.1-5.7,2-8.2,2.8c-2.6,0.8-4.6,1.4-6.1,1.6c-3.8,0.8-5.8,1.6-5.9,2.4\n\tc0,0.8,1.5,1.6,4.4,2.4c1.2,0.3,2.3,0.6,3.1,0.6c0.8,0.1,1.7,0.1,2.5,0c0.8-0.1,1.6-0.3,2.4-0.5c0.8-0.3,1.7-0.7,2.8-1.1\n\tc1.6-0.8,3.9-1.7,6.9-2.8c2.9-1,6.6-2.4,11.2-4c0.9,2.7,1.4,6,1.4,9.8c0,3.8-0.4,8.1-1.4,13c-1.3-1.1-2.7-2.3-4.2-3.6\n\tc-1.5-1.3-2.9-2.6-4.3-3.9c-1.6-1.5-3.2-2.5-4.7-3c-1.6-0.5-3.4-0.5-5.5,0c-3.3,0.9-5,1.9-4.9,3.1c0,1.2,1.3,1.8,3.8,1.9\n\tc0.9,0.1,1.8,0.3,2.7,0.6c0.9,0.3,1.9,0.9,3.2,1.8c1.3,0.9,2.9,2.2,4.7,3.8c1.8,1.6,4.2,3.7,7,6.3c-1.2,2.9-2.6,5.6-4.1,8\n\tc-1.5,2.5-3.4,5-5.5,7.3c-2.2,2.4-4.7,4.8-7.7,7.2c-3,2.5-6.6,5.1-10.8,7.8c-4.3,2.8-6.5,4.7-6.5,5.6C35,192.1,37,191.7,40.7,190.1z\n\t M250.5,81.8v165.3l-111.6-36.4L10.5,253.4V76.1l29.9-10V10.4l81.2,28.7L231.3,2.6v73.1L250.5,81.8z M124.2,50.6L22.3,84.6v152.2\n\tl101.9-33.9V50.6L124.2,50.6z M219.4,71.9V19L138.1,46L219.4,71.9z M227,201.9L196.5,92L176,85.6l-30.9,90.8l18.9,5.9l5.8-18.7\n\tl31.9,10l5.7,22.3L227,201.9z M174.8,147.7l22.2,6.9l-10.9-42.9L174.8,147.7z\"/>\n</svg>";
|
|
2
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UmbEntryPointOnInit, UmbEntryPointOnUnload } from '@umbraco-cms/backoffice/extension-api';
|
|
2
|
+
import './jobs/components/index.js';
|
|
3
|
+
import './nodes/components/index.js';
|
|
4
|
+
import './components/index.js';
|
|
5
|
+
import './strategies/index.js';
|
|
6
|
+
export * from './exports.js';
|
|
7
|
+
export declare const onInit: UmbEntryPointOnInit;
|
|
8
|
+
export declare const onUnload: UmbEntryPointOnUnload;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './job-list-table.element.js';
|
|
2
|
+
export * from './job-status-bar.element.js';
|
|
3
|
+
export * from './job-item-table.element.js';
|
|
4
|
+
export * from './job-provider-view.element.js';
|
|
5
|
+
export * from './job-status-badge.js';
|
|
6
|
+
export * from './job-list-selection.element.js';
|
|
7
|
+
export * from './job-processing-bar.element.js';
|
|
8
|
+
export * from './job-copyproperties.element.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
2
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
+
export declare class JobCopyPropertiesElement extends UmbLitElement {
|
|
4
|
+
#private;
|
|
5
|
+
jobId?: number;
|
|
6
|
+
copyProperties: boolean;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
}
|
|
10
|
+
export default JobCopyPropertiesElement;
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'jumoo-tm-job-copyproperties-notice': JobCopyPropertiesElement;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
import { TranslationJobView } from '../../api';
|
|
3
|
+
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
4
|
+
export declare class TranslationJobItemTableElement extends UmbLitElement {
|
|
5
|
+
#private;
|
|
6
|
+
job?: TranslationJobView;
|
|
7
|
+
allowSelection: boolean;
|
|
8
|
+
selection: string[];
|
|
9
|
+
page: number;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
renderPagination(pageSize: number): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
12
|
+
static styles: import("lit").CSSResult;
|
|
13
|
+
}
|
|
14
|
+
export default TranslationJobItemTableElement;
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'jumoo-tm-job-item-table': TranslationJobItemTableElement;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
export declare class TranslationJobSelectionElement extends UmbLitElement {
|
|
3
|
+
#private;
|
|
4
|
+
stage: string;
|
|
5
|
+
selection: string[];
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
renderSubmittedActions(): import("lit-html").TemplateResult<1>;
|
|
8
|
+
renderReceivedActions(): import("lit-html").TemplateResult<1>;
|
|
9
|
+
renderApprovedActions(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
static styles: import("lit").CSSResult;
|
|
11
|
+
}
|
|
12
|
+
export default TranslationJobSelectionElement;
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'jumoo-tm-job-list-selection': TranslationJobSelectionElement;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TranslationJobView } from '../../api';
|
|
2
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
+
import { UmbTableColumn, UmbTableConfig } from '@umbraco-cms/backoffice/components';
|
|
4
|
+
export declare class TranslationJobListTableElement extends UmbLitElement {
|
|
5
|
+
#private;
|
|
6
|
+
jobs: TranslationJobView[];
|
|
7
|
+
_tableConfig: UmbTableConfig;
|
|
8
|
+
_tableColumns: UmbTableColumn[];
|
|
9
|
+
filter: any;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
renderTable(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
export default TranslationJobListTableElement;
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'jumoo-tm-job-list-table': TranslationJobListTableElement;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSResultGroup, nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
2
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
+
import { TranslationJobView } from '../../api';
|
|
4
|
+
export declare class TranslationJobPendingBar extends UmbLitElement {
|
|
5
|
+
job?: TranslationJobView;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
7
|
+
static styles?: CSSResultGroup;
|
|
8
|
+
}
|
|
9
|
+
export default TranslationJobPendingBar;
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'jumoo-tm-job-processing-bar': TranslationJobPendingBar;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
import { TranslationJobView, TranslationProviderInfo } from '../../api';
|
|
3
|
+
/**
|
|
4
|
+
* @element jumoo-tm-job-provider-view
|
|
5
|
+
* @fires job-updated - When the job is updated
|
|
6
|
+
*/
|
|
7
|
+
export declare class TranslationJobProviderViewElement extends UmbLitElement {
|
|
8
|
+
#private;
|
|
9
|
+
job: TranslationJobView;
|
|
10
|
+
connector: TranslationProviderInfo | null | undefined;
|
|
11
|
+
constructor();
|
|
12
|
+
connectedCallback(): Promise<void>;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
renderSubmittedElement(elementName: string | null | undefined): import("lit-html").TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
export default TranslationJobProviderViewElement;
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'jumoo-tm-job-provider-view': TranslationJobProviderViewElement;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
2
|
+
import { JobStatus } from '../../api';
|
|
3
|
+
export declare class TranslationJobStatusBadge extends UmbLitElement {
|
|
4
|
+
status?: JobStatus;
|
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
}
|
|
8
|
+
export default TranslationJobStatusBadge;
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'jumoo-tm-job-status-badge': TranslationJobStatusBadge;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
2
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
+
import { TranslationJobView } from '../../api';
|
|
4
|
+
export declare class TranslationJobStatusBarElement extends UmbLitElement {
|
|
5
|
+
job?: TranslationJobView;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
}
|
|
9
|
+
export default TranslationJobStatusBarElement;
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'jumoo-tm-job-status-bar': TranslationJobStatusBarElement;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
2
|
+
import { JobStatus } from '../api';
|
|
3
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
4
|
+
export interface TranslationJobCheckError {
|
|
5
|
+
headline: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export type TranslationJobCheckResult = {
|
|
9
|
+
success: true;
|
|
10
|
+
} | {
|
|
11
|
+
success: false;
|
|
12
|
+
error: TranslationJobCheckError;
|
|
13
|
+
};
|
|
14
|
+
export declare class TranslationJobsRespository extends UmbControllerBase {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(host: UmbControllerHost);
|
|
17
|
+
getJob(unique: string): Promise<import("..").TranslationJobView>;
|
|
18
|
+
getAllJobs(): Promise<import("..").TranslationJobView[]>;
|
|
19
|
+
getAllByStatus(minStatus: JobStatus, maxStatus: JobStatus, page: number): Promise<import("..").PagedModelTranslationJobViewModel>;
|
|
20
|
+
getAllByStatusAndCulture(minStatus: JobStatus, maxStatus: JobStatus, culture: string, page: number): Promise<import("..").PagedModelTranslationJobViewModel>;
|
|
21
|
+
getCultureInfo(culture: string): Promise<import("..").CultureInfoView>;
|
|
22
|
+
check(unique: string): Promise<TranslationJobCheckResult>;
|
|
23
|
+
resetStatus(unique: string, JobStatus: JobStatus): Promise<void>;
|
|
24
|
+
CancelJob(unique: string): Promise<void>;
|
|
25
|
+
RemoveJob(unique: string): Promise<void>;
|
|
26
|
+
ArchiveJob(unique: string): Promise<void>;
|
|
27
|
+
removeJobs(jobs: string[]): Promise<void>;
|
|
28
|
+
cancelJobs(jobs: string[]): Promise<void>;
|
|
29
|
+
checkJobs(jobs: string[]): Promise<void>;
|
|
30
|
+
getHistory(unique: string): Promise<import("..").TranslationAuditItem[]>;
|
|
31
|
+
updateCopyProperties(unique: string, copyProperties: boolean): Promise<boolean>;
|
|
32
|
+
getStatusSummaryRange(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").SummaryItem[]>;
|
|
33
|
+
getStatusSummaryCount(minStatus: JobStatus, maxStatus: JobStatus): Promise<import("..").StatusSummaryCount>;
|
|
34
|
+
getStatus(unique: string): Promise<JobStatus>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TmJobStatusStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JobStatus, NodeStatus } from '../api';
|
|
2
|
+
export declare class TranslationJobHelper {
|
|
3
|
+
static GetStatusRange(stage: string): {
|
|
4
|
+
min: JobStatus;
|
|
5
|
+
max: JobStatus;
|
|
6
|
+
};
|
|
7
|
+
static IsReceived(status?: JobStatus): boolean;
|
|
8
|
+
static NodeIsSelectable(status: NodeStatus): status is NodeStatus.OPEN | NodeStatus.UPDATED | NodeStatus.REVIEWING;
|
|
9
|
+
static NodeIsApproved(status: NodeStatus): status is NodeStatus.APPROVED;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
2
|
+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
3
|
+
/**
|
|
4
|
+
* explains why the approve button is disabled.
|
|
5
|
+
*
|
|
6
|
+
* the button itself can't say - umbraco's workspace action element renders no title or
|
|
7
|
+
* tooltip - so we put the reason in the other end of the same footer bar.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TranslationJobApproveBlockedElement extends UmbLitElement {
|
|
10
|
+
#private;
|
|
11
|
+
blockedCount: number;
|
|
12
|
+
constructor();
|
|
13
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
}
|
|
16
|
+
export default TranslationJobApproveBlockedElement;
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'jumoo-tm-job-approve-blocked': TranslationJobApproveBlockedElement;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UmbWorkspaceActionArgs, UmbWorkspaceActionBase, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
3
|
+
export declare class TranslationJobApproveAction extends UmbWorkspaceActionBase<UmbWorkspaceContext> {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(host: UmbControllerHost, args: UmbWorkspaceActionArgs<UmbWorkspaceContext>);
|
|
6
|
+
execute(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export default TranslationJobApproveAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UmbWorkspaceActionBase, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare class TranslationJobCancelAction extends UmbWorkspaceActionBase<UmbWorkspaceContext> {
|
|
3
|
+
execute(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export default TranslationJobCancelAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UmbWorkspaceActionBase, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare class TranslationJobCheckAction extends UmbWorkspaceActionBase<UmbWorkspaceContext> {
|
|
3
|
+
execute(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export default TranslationJobCheckAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UmbWorkspaceActionBase, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare class TranslationJobRemoveAction extends UmbWorkspaceActionBase<UmbWorkspaceContext> {
|
|
3
|
+
execute(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export default TranslationJobRemoveAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UmbWorkspaceActionBase, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
|
2
|
+
export declare class TranslationJobResetAction extends UmbWorkspaceActionBase<UmbWorkspaceContext> {
|
|
3
|
+
execute(): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export default TranslationJobResetAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const manifests: UmbExtensionManifest[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
2
|
+
import { UmbConditionConfigBase, UmbConditionControllerArguments, UmbExtensionCondition } from '@umbraco-cms/backoffice/extension-api';
|
|
3
|
+
import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry';
|
|
4
|
+
export type TranslationCanApproveConditionConfig = UmbConditionConfigBase & {
|
|
5
|
+
/**
|
|
6
|
+
* set to false to match when the user *can't* approve, for showing the
|
|
7
|
+
* explanation of why the approve button is disabled.
|
|
8
|
+
*/
|
|
9
|
+
match?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* can the user put every selected node back into the site.
|
|
13
|
+
*
|
|
14
|
+
* approving is all or nothing server side, so if one selected node is out of reach the
|
|
15
|
+
* whole thing would fail - we disable approving rather than let them find out the hard way.
|
|
16
|
+
*/
|
|
17
|
+
export declare class TranslationCanApproveCondition extends UmbConditionBase<TranslationCanApproveConditionConfig> implements UmbExtensionCondition {
|
|
18
|
+
#private;
|
|
19
|
+
config: TranslationCanApproveConditionConfig;
|
|
20
|
+
constructor(host: UmbControllerHost, args: UmbConditionControllerArguments<TranslationCanApproveConditionConfig>);
|
|
21
|
+
}
|
|
22
|
+
export { TranslationCanApproveCondition as api };
|