@antelopejs/dms-lang 0.0.7 → 0.1.1

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.
Files changed (245) hide show
  1. package/README.md +12 -6
  2. package/dist/pages/actions.d.ts +7 -0
  3. package/dist/pages/actions.js +15 -0
  4. package/dist/pages/actions.js.map +1 -0
  5. package/dist/pages/component-action.d.ts +2 -0
  6. package/dist/pages/component-action.js +10 -0
  7. package/dist/pages/component-action.js.map +1 -0
  8. package/dist/pages/header-actions.d.ts +9 -0
  9. package/dist/pages/header-actions.js +146 -0
  10. package/dist/pages/header-actions.js.map +1 -0
  11. package/dist/pages/index.d.ts +6 -0
  12. package/dist/pages/index.js +6 -0
  13. package/dist/pages/index.js.map +1 -1
  14. package/dist/pages/language.d.ts +10 -0
  15. package/dist/pages/language.js +89 -0
  16. package/dist/pages/language.js.map +1 -0
  17. package/dist/pages/languages-table.d.ts +2 -0
  18. package/dist/pages/languages-table.js +120 -0
  19. package/dist/pages/languages-table.js.map +1 -0
  20. package/dist/pages/module.d.ts +7 -1
  21. package/dist/pages/module.js +28 -2
  22. package/dist/pages/module.js.map +1 -1
  23. package/dist/pages/overview.d.ts +2 -1
  24. package/dist/pages/overview.js +83 -8
  25. package/dist/pages/overview.js.map +1 -1
  26. package/dist/pages/page-actions.d.ts +6 -0
  27. package/dist/pages/page-actions.js +10 -0
  28. package/dist/pages/page-actions.js.map +1 -0
  29. package/dist/pages/quick-actions.d.ts +1 -0
  30. package/dist/pages/quick-actions.js +56 -0
  31. package/dist/pages/quick-actions.js.map +1 -0
  32. package/dist/pages/translations.d.ts +7 -1
  33. package/dist/pages/translations.js +47 -10
  34. package/dist/pages/translations.js.map +1 -1
  35. package/dist/pages/workspace-guard.d.ts +1 -0
  36. package/dist/pages/workspace-guard.js +35 -0
  37. package/dist/pages/workspace-guard.js.map +1 -0
  38. package/dist/pages/workspace.d.ts +18 -0
  39. package/dist/pages/workspace.js +162 -0
  40. package/dist/pages/workspace.js.map +1 -0
  41. package/dist/pages/workspaces.d.ts +14 -0
  42. package/dist/pages/workspaces.js +88 -0
  43. package/dist/pages/workspaces.js.map +1 -0
  44. package/dist/routes/publicLocales.d.ts +3 -2
  45. package/dist/routes/publicLocales.js +39 -18
  46. package/dist/routes/publicLocales.js.map +1 -1
  47. package/dist/routes/translations.d.ts +59 -63
  48. package/dist/routes/translations.js +400 -119
  49. package/dist/routes/translations.js.map +1 -1
  50. package/dist/utils/announce.d.ts +9 -0
  51. package/dist/utils/announce.js +29 -0
  52. package/dist/utils/announce.js.map +1 -0
  53. package/dist/utils/blocks.d.ts +8 -0
  54. package/dist/utils/blocks.js +213 -0
  55. package/dist/utils/blocks.js.map +1 -0
  56. package/dist/utils/body.d.ts +1 -0
  57. package/dist/utils/body.js +21 -0
  58. package/dist/utils/body.js.map +1 -0
  59. package/dist/utils/cache.d.ts +3 -0
  60. package/dist/utils/cache.js +32 -0
  61. package/dist/utils/cache.js.map +1 -0
  62. package/dist/utils/catalog.d.ts +7 -0
  63. package/dist/utils/catalog.js +62 -0
  64. package/dist/utils/catalog.js.map +1 -0
  65. package/dist/utils/constants.d.ts +6 -0
  66. package/dist/utils/constants.js +10 -0
  67. package/dist/utils/constants.js.map +1 -0
  68. package/dist/utils/coverage.d.ts +2 -0
  69. package/dist/utils/coverage.js +11 -0
  70. package/dist/utils/coverage.js.map +1 -0
  71. package/dist/utils/dialogs.d.ts +7 -0
  72. package/dist/utils/dialogs.js +103 -0
  73. package/dist/utils/dialogs.js.map +1 -0
  74. package/dist/utils/errors.d.ts +40 -0
  75. package/dist/utils/errors.js +60 -0
  76. package/dist/utils/errors.js.map +1 -0
  77. package/dist/utils/export.d.ts +17 -0
  78. package/dist/utils/export.js +129 -0
  79. package/dist/utils/export.js.map +1 -0
  80. package/dist/utils/json.d.ts +10 -1
  81. package/dist/utils/json.js +127 -19
  82. package/dist/utils/json.js.map +1 -1
  83. package/dist/utils/key-stores.d.ts +3 -0
  84. package/dist/utils/key-stores.js +24 -0
  85. package/dist/utils/key-stores.js.map +1 -0
  86. package/dist/utils/keys.d.ts +23 -0
  87. package/dist/utils/keys.js +252 -0
  88. package/dist/utils/keys.js.map +1 -0
  89. package/dist/utils/languages.d.ts +27 -0
  90. package/dist/utils/languages.js +121 -0
  91. package/dist/utils/languages.js.map +1 -0
  92. package/dist/utils/locale-codes.d.ts +5 -0
  93. package/dist/utils/locale-codes.js +56 -0
  94. package/dist/utils/locale-codes.js.map +1 -0
  95. package/dist/utils/locale-discovery.d.ts +1 -0
  96. package/dist/utils/locale-discovery.js +19 -1
  97. package/dist/utils/locale-discovery.js.map +1 -1
  98. package/dist/utils/message-check.d.ts +1 -0
  99. package/dist/utils/message-check.js +93 -0
  100. package/dist/utils/message-check.js.map +1 -0
  101. package/dist/utils/message-syntax.d.ts +6 -0
  102. package/dist/utils/message-syntax.js +38 -0
  103. package/dist/utils/message-syntax.js.map +1 -0
  104. package/dist/utils/namespaces.d.ts +12 -0
  105. package/dist/utils/namespaces.js +52 -0
  106. package/dist/utils/namespaces.js.map +1 -0
  107. package/dist/utils/notices.d.ts +4 -0
  108. package/dist/utils/notices.js +60 -0
  109. package/dist/utils/notices.js.map +1 -0
  110. package/dist/utils/own.d.ts +2 -3
  111. package/dist/utils/own.js +17 -57
  112. package/dist/utils/own.js.map +1 -1
  113. package/dist/utils/public-url.d.ts +8 -0
  114. package/dist/utils/public-url.js +87 -0
  115. package/dist/utils/public-url.js.map +1 -0
  116. package/dist/utils/registry.d.ts +3 -1
  117. package/dist/utils/registry.js +26 -10
  118. package/dist/utils/registry.js.map +1 -1
  119. package/dist/utils/resolve.d.ts +18 -15
  120. package/dist/utils/resolve.js +98 -151
  121. package/dist/utils/resolve.js.map +1 -1
  122. package/dist/utils/review.d.ts +5 -0
  123. package/dist/utils/review.js +64 -0
  124. package/dist/utils/review.js.map +1 -0
  125. package/dist/utils/snippets.d.ts +7 -0
  126. package/dist/utils/snippets.js +129 -0
  127. package/dist/utils/snippets.js.map +1 -0
  128. package/dist/utils/summary.d.ts +23 -0
  129. package/dist/utils/summary.js +65 -0
  130. package/dist/utils/summary.js.map +1 -0
  131. package/dist/utils/tree.d.ts +2 -17
  132. package/dist/utils/tree.js +21 -126
  133. package/dist/utils/tree.js.map +1 -1
  134. package/dist/utils/workspaces.d.ts +45 -15
  135. package/dist/utils/workspaces.js +256 -164
  136. package/dist/utils/workspaces.js.map +1 -1
  137. package/dist/validation/key.schema.d.ts +71 -0
  138. package/dist/validation/key.schema.js +67 -0
  139. package/dist/validation/key.schema.js.map +1 -0
  140. package/dist/validation/query.schema.d.ts +17 -0
  141. package/dist/validation/query.schema.js +44 -0
  142. package/dist/validation/query.schema.js.map +1 -0
  143. package/dist/validation/validate.d.ts +2 -0
  144. package/dist/validation/validate.js +24 -0
  145. package/dist/validation/validate.js.map +1 -0
  146. package/dist/validation/workspace.schema.d.ts +145 -0
  147. package/dist/validation/workspace.schema.js +83 -0
  148. package/dist/validation/workspace.schema.js.map +1 -0
  149. package/frontend-vue/app/build/components/KeyAddModal.vue +340 -0
  150. package/frontend-vue/app/build/components/KeyEditorDrawer.vue +951 -0
  151. package/frontend-vue/app/build/components/KeyRenameModal.vue +172 -0
  152. package/frontend-vue/app/build/components/LanguageAddModal.vue +199 -0
  153. package/frontend-vue/app/build/components/LanguagePicker.vue +233 -0
  154. package/frontend-vue/app/build/components/LocaleTile.vue +52 -0
  155. package/frontend-vue/app/build/components/PlaceholderText.vue +42 -0
  156. package/frontend-vue/app/build/components/ShortcutKbds.vue +22 -0
  157. package/frontend-vue/app/build/components/WorkspaceCreateModal.vue +193 -0
  158. package/frontend-vue/app/build/components/WorkspaceRenameModal.vue +107 -0
  159. package/frontend-vue/app/build/components/form/FormFieldRow.vue +70 -0
  160. package/frontend-vue/app/build/components/form/FormRows.vue +25 -0
  161. package/frontend-vue/app/build/components/form/WorkspaceDetailsFields.vue +44 -0
  162. package/frontend-vue/app/build/components/matrix/MatrixCell.vue +488 -0
  163. package/frontend-vue/app/build/components/matrix/MatrixColumns.vue +177 -0
  164. package/frontend-vue/app/build/components/matrix/MatrixGroupHeader.vue +57 -0
  165. package/frontend-vue/app/build/components/matrix/MatrixKeyCell.vue +83 -0
  166. package/frontend-vue/app/build/components/matrix/MatrixToolbar.vue +167 -0
  167. package/frontend-vue/app/build/components/queue/QueueActions.vue +60 -0
  168. package/frontend-vue/app/build/components/queue/QueueDone.vue +185 -0
  169. package/frontend-vue/app/build/components/queue/QueueEditor.vue +374 -0
  170. package/frontend-vue/app/build/components/queue/QueueHeader.vue +162 -0
  171. package/frontend-vue/app/build/components/queue/QueueUpNext.vue +61 -0
  172. package/frontend-vue/app/build/composables/useCellEditor.ts +324 -0
  173. package/frontend-vue/app/build/composables/useCellMoves.ts +155 -0
  174. package/frontend-vue/app/build/composables/useCellSaves.ts +339 -0
  175. package/frontend-vue/app/build/composables/useKeyPanel.ts +284 -0
  176. package/frontend-vue/app/build/composables/useKeySaves.ts +280 -0
  177. package/frontend-vue/app/build/composables/useMatrixFilters.ts +213 -0
  178. package/frontend-vue/app/build/composables/useMatrixRows.ts +104 -0
  179. package/frontend-vue/app/build/composables/useMatrixView.ts +181 -0
  180. package/frontend-vue/app/build/composables/useQueueContext.ts +31 -0
  181. package/frontend-vue/app/build/composables/useQueueEditing.ts +53 -0
  182. package/frontend-vue/app/build/composables/useQueueOrphans.ts +54 -0
  183. package/frontend-vue/app/build/composables/useQueueSave.ts +290 -0
  184. package/frontend-vue/app/build/composables/useQueueShortcuts.ts +106 -0
  185. package/frontend-vue/app/build/composables/useQueueToasts.ts +99 -0
  186. package/frontend-vue/app/components/LanguageNamespaces.vue +77 -0
  187. package/frontend-vue/app/components/NamespaceCoverage.vue +222 -0
  188. package/frontend-vue/app/components/TranslationMatrix.vue +809 -0
  189. package/frontend-vue/app/components/TranslationQueue.vue +212 -0
  190. package/frontend-vue/app/components/WorkspaceDangerZone.vue +81 -0
  191. package/frontend-vue/app/components/WorkspaceGeneral.vue +232 -0
  192. package/frontend-vue/app/components/WorkspaceList.vue +454 -0
  193. package/frontend-vue/app/components/WorkspaceScope.vue +384 -0
  194. package/frontend-vue/app/composables/translation/useFirstRun.ts +8 -0
  195. package/frontend-vue/app/composables/translation/useI18nWorkspaces.ts +221 -133
  196. package/frontend-vue/app/composables/translation/useKeyActions.ts +224 -0
  197. package/frontend-vue/app/composables/translation/useLangFormat.ts +10 -0
  198. package/frontend-vue/app/composables/translation/useLangLinks.ts +80 -0
  199. package/frontend-vue/app/composables/translation/useLanguageActions.ts +159 -0
  200. package/frontend-vue/app/composables/translation/useLanguageQueue.ts +232 -0
  201. package/frontend-vue/app/composables/translation/useLocaleNames.ts +166 -0
  202. package/frontend-vue/app/composables/translation/useMutationToast.ts +51 -17
  203. package/frontend-vue/app/composables/translation/useQueueDrafts.ts +115 -0
  204. package/frontend-vue/app/composables/translation/useQueueSession.ts +182 -0
  205. package/frontend-vue/app/composables/translation/useServedConfirm.ts +152 -0
  206. package/frontend-vue/app/composables/translation/useWorkspaceActions.ts +259 -0
  207. package/frontend-vue/app/composables/translation/useWorkspaceContext.ts +46 -15
  208. package/frontend-vue/app/composables/translation/useWorkspaceFlat.ts +322 -70
  209. package/frontend-vue/app/composables/translation/useWorkspaceNameCheck.ts +55 -0
  210. package/frontend-vue/app/composables/translation/useWorkspaceRoute.ts +129 -0
  211. package/frontend-vue/app/config/shortcuts-registry.ts +72 -0
  212. package/frontend-vue/app/types/lang.ts +130 -0
  213. package/frontend-vue/app/utils/boundedCache.ts +22 -0
  214. package/frontend-vue/app/utils/download.ts +16 -0
  215. package/frontend-vue/app/utils/keySaveErrors.ts +61 -0
  216. package/frontend-vue/app/utils/keySaves.ts +108 -0
  217. package/frontend-vue/app/utils/languages.ts +272 -0
  218. package/frontend-vue/app/utils/matrixExport.ts +47 -0
  219. package/frontend-vue/app/utils/queueDrafts.ts +115 -0
  220. package/frontend-vue/app/utils/queuePass.ts +145 -0
  221. package/frontend-vue/app/utils/queueView.ts +22 -0
  222. package/frontend-vue/app/utils/shortcuts.ts +75 -0
  223. package/frontend-vue/app/utils/translations.ts +756 -0
  224. package/frontend-vue/app/utils/workspaceBackup.ts +119 -0
  225. package/frontend-vue/app/utils/workspaces.ts +45 -0
  226. package/frontend-vue/dms.frontend.build.ts +5 -0
  227. package/frontend-vue/dms.frontend.ts +9 -20
  228. package/frontend-vue/i18n/locales/lang-en-GB.json +792 -69
  229. package/frontend-vue/i18n/locales/lang-fr-FR.json +792 -69
  230. package/frontend-vue/package.json +8 -6
  231. package/package.json +11 -8
  232. package/dist/utils/mutations.d.ts +0 -3
  233. package/dist/utils/mutations.js +0 -35
  234. package/dist/utils/mutations.js.map +0 -1
  235. package/frontend-vue/app/build/components/pages/lang/TranslationMatrix.vue +0 -284
  236. package/frontend-vue/app/components/LanguageAddModal.vue +0 -78
  237. package/frontend-vue/app/components/WorkspaceEndpoint.vue +0 -29
  238. package/frontend-vue/app/components/WorkspaceSelector.vue +0 -180
  239. package/frontend-vue/app/components/WorkspaceStatus.vue +0 -24
  240. package/frontend-vue/app/composables/translation/useLanguageCatalog.ts +0 -90
  241. package/frontend-vue/app/composables/translation/useLocaleMeta.ts +0 -18
  242. package/frontend-vue/app/composables/translation/useTranslationProgress.ts +0 -73
  243. package/frontend-vue/app/custom-pages/lang/overview.vue +0 -397
  244. package/frontend-vue/app/custom-pages/lang/translations.vue +0 -498
  245. package/frontend-vue/app/plugins/workspace-sidebar-widget.ts +0 -12
package/README.md CHANGED
@@ -8,11 +8,17 @@
8
8
 
9
9
  Language and translation management for AntelopeJS DMS, available under `/modules/lang`.
10
10
 
11
- It provides:
11
+ It provides, under two sidebar groups:
12
12
 
13
- - **Overview** — workspace and locale summaries, translation coverage, and the public locale endpoint.
14
- - **Translations** — a key-by-locale matrix with missing-translation filtering.
15
- - **Workspace selection** — a global sidebar widget for switching workspaces.
13
+ - **Translate › Overview**: the coverage of each language of the selected workspace, a namespace × language heatmap and the public locale endpoint.
14
+ - **Translate › Translations**: a key-by-language matrix with per-cell save state, placeholder checks, "Missing in" and namespace filters, a key editor drawer and CSV export.
15
+ - **Language** (opened from Overview): a translation queue for one language, with its progress by namespace.
16
+ - **Manage › Workspaces**: every workspace with its kind, size and coverage, and the creation of new ones.
17
+ - **Workspace settings** (opened from Workspaces): name, base language, languages, ready-to-paste app snippets and a danger zone.
18
+
19
+ Every page names the workspace it works on in a scope bar, which also switches it; the selection is kept in the page URL (`?workspace=`). The command palette offers Translate missing keys, Add a translation key, Add a language and New translation workspace.
20
+
21
+ Write routes check the permission of the page action they belong to (`modules.lang.translate.translations.scoped.matrix.edit`, `….keys`, `modules.lang.manage.workspaces.list.create`, …); module pages stay owner-only, as every DMS module.
16
22
 
17
23
  ## Installation
18
24
 
@@ -47,11 +53,11 @@ pnpm test
47
53
 
48
54
  ## Vue and Inertia development
49
55
 
50
- The backend registers `frontend-vue/dms.frontend.ts` through `AddFrontendModule` with the Vue 3 renderer. It exposes `DmsLang*` component names, pages and the sidebar widget. Nuxt is not required; `@nuxt/ui` provides its Vue components through the adapter's Vite integration.
56
+ The backend registers `frontend-vue/dms.frontend.ts` through `AddFrontendModule` with the Vue 3 renderer. The module declares `componentPrefix: "DmsLang"` and registers every component of `app/components` and `app/build/components` under it; the backend pages name them (`CustomComponent("DmsLangTranslationMatrix")`). `dms.frontend.build.ts` declares `app/composables`, `app/utils` and `app/types` for auto-import; `app/build/` is private and imported by path. Nuxt is not required; `@nuxt/ui` provides its Vue components through the adapter's Vite integration.
51
57
 
52
58
  The module compiles against the published `@antelopejs/interface-dms` package, its only DMS runtime dependency. The `@antelopejs/dms` backend and the `@antelopejs/dms-frontend` adapter are development dependencies, needed to run the tests and the playground. Run `pnpm install`, `pnpm build` and `pnpm test` here.
53
59
 
54
- `pnpm test:unit` checks locale discovery and fallback normalization. `pnpm test:frontend` compiles the module alongside the published core DMS frontend with the adapter's source verifier.
60
+ `pnpm test:unit` checks locale discovery, the coverage, placeholder and message helpers of the frontend and the locale files. The backend tests (`src/test`: keys, workspaces, validation, coverage, summaries) run with `pnpm test` only: every backend file reaches an AntelopeJS interface (`@antelopejs/interface-api` for the errors, `@antelopejs/interface-dms` for the pages), and an interface refuses to load outside the AntelopeJS runtime. `pnpm test:frontend` compiles the module alongside the published core DMS frontend with the adapter's source verifier.
55
61
 
56
62
  Run `pnpm dev` for the backend and `pnpm frontend:dev` for the Inertia workspace. The playground connects to MongoDB at `mongodb://localhost:27017`; set `MONGO_URL` to use another instance. The frontend workspace uses the `ajs dms` commands for development, preparation and production builds. Use `pnpm typecheck` for the backend; run `pnpm typecheck` in the generated Vite workspace for frontend types. The adapter owns the generated aliases, auto-import declarations and Vue compiler configuration.
57
63
 
@@ -0,0 +1,7 @@
1
+ export declare const editTranslationsAction: import("@antelopejs/interface-dms").Action;
2
+ export declare const manageKeysAction: import("@antelopejs/interface-dms").Action;
3
+ export declare const createWorkspaceAction: import("@antelopejs/interface-dms").Action;
4
+ export declare const editWorkspaceAction: import("@antelopejs/interface-dms").Action;
5
+ export declare const manageLanguagesAction: import("@antelopejs/interface-dms").Action;
6
+ export declare const renameWorkspaceAction: import("@antelopejs/interface-dms").Action;
7
+ export declare const deleteWorkspaceAction: import("@antelopejs/interface-dms").Action;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteWorkspaceAction = exports.renameWorkspaceAction = exports.manageLanguagesAction = exports.editWorkspaceAction = exports.createWorkspaceAction = exports.manageKeysAction = exports.editTranslationsAction = void 0;
4
+ const component_action_1 = require("./component-action");
5
+ const translations_1 = require("./translations");
6
+ const workspace_1 = require("./workspace");
7
+ const workspaces_1 = require("./workspaces");
8
+ exports.editTranslationsAction = (0, component_action_1.requireAction)(translations_1.translationMatrix, translations_1.TRANSLATION_ACTIONS.edit);
9
+ exports.manageKeysAction = (0, component_action_1.requireAction)(translations_1.translationMatrix, translations_1.TRANSLATION_ACTIONS.keys);
10
+ exports.createWorkspaceAction = (0, component_action_1.requireAction)(workspaces_1.workspaceList, workspaces_1.WORKSPACE_LIST_ACTIONS.create);
11
+ exports.editWorkspaceAction = (0, component_action_1.requireAction)(workspace_1.workspaceGeneral, workspace_1.WORKSPACE_ACTIONS.edit);
12
+ exports.manageLanguagesAction = (0, component_action_1.requireAction)(workspace_1.workspaceGeneral, workspace_1.WORKSPACE_ACTIONS.languages);
13
+ exports.renameWorkspaceAction = (0, component_action_1.requireAction)(workspace_1.workspaceDangerZone, workspace_1.WORKSPACE_ACTIONS.rename);
14
+ exports.deleteWorkspaceAction = (0, component_action_1.requireAction)(workspace_1.workspaceDangerZone, workspace_1.WORKSPACE_ACTIONS.delete);
15
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/pages/actions.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AACnD,iDAAwE;AACxE,2CAIqB;AACrB,6CAAqE;AAExD,QAAA,sBAAsB,GAAG,IAAA,gCAAa,EACjD,gCAAiB,EACjB,kCAAmB,CAAC,IAAI,CACzB,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,gCAAa,EAC3C,gCAAiB,EACjB,kCAAmB,CAAC,IAAI,CACzB,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,gCAAa,EAChD,0BAAa,EACb,mCAAsB,CAAC,MAAM,CAC9B,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,gCAAa,EAC9C,4BAAgB,EAChB,6BAAiB,CAAC,IAAI,CACvB,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,gCAAa,EAChD,4BAAgB,EAChB,6BAAiB,CAAC,SAAS,CAC5B,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,gCAAa,EAChD,+BAAmB,EACnB,6BAAiB,CAAC,MAAM,CACzB,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,gCAAa,EAChD,+BAAmB,EACnB,6BAAiB,CAAC,MAAM,CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Action, Component } from "@antelopejs/interface-dms/component";
2
+ export declare function requireAction(component: Component, id: string): Action;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requireAction = requireAction;
4
+ function requireAction(component, id) {
5
+ const action = component.getAction(id);
6
+ if (!action)
7
+ throw new Error(`dms-lang: missing component action "${id}"`);
8
+ return action;
9
+ }
10
+ //# sourceMappingURL=component-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-action.js","sourceRoot":"","sources":["../../src/pages/component-action.ts"],"names":[],"mappings":";;AAGA,sCAIC;AAJD,SAAgB,aAAa,CAAC,SAAoB,EAAE,EAAU;IAC5D,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,EAAE,GAAG,CAAC,CAAC;IAC3E,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { CustomButton } from "@antelopejs/interface-dms/base/types/custom-button";
2
+ import type { Action } from "@antelopejs/interface-dms/component";
3
+ export declare function addLanguageButton(manageLanguages: Action): CustomButton;
4
+ export declare function addKeyButton(manageKeys: Action): CustomButton;
5
+ export declare function newWorkspaceButton(createWorkspace: Action): CustomButton;
6
+ export declare const OPEN_OVERVIEW_BUTTON: CustomButton;
7
+ export declare const OPEN_MISSING_IN_MATRIX_BUTTON: CustomButton;
8
+ export declare const OPEN_MATRIX_BUTTON: CustomButton;
9
+ export declare const DOWNLOAD_LANGUAGE_BUTTON: CustomButton;
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DOWNLOAD_LANGUAGE_BUTTON = exports.OPEN_MATRIX_BUTTON = exports.OPEN_MISSING_IN_MATRIX_BUTTON = exports.OPEN_OVERVIEW_BUTTON = void 0;
4
+ exports.addLanguageButton = addLanguageButton;
5
+ exports.addKeyButton = addKeyButton;
6
+ exports.newWorkspaceButton = newWorkspaceButton;
7
+ const page_actions_1 = require("./page-actions");
8
+ const catalog_1 = require("../utils/catalog");
9
+ const config_1 = require("../utils/config");
10
+ const constants_1 = require("../utils/constants");
11
+ const locale_codes_1 = require("../utils/locale-codes");
12
+ const KEYS_LOCKED = {
13
+ default: false,
14
+ added: false,
15
+ modules: true,
16
+ };
17
+ const LANGUAGES_LOCKED = {
18
+ default: true,
19
+ added: false,
20
+ modules: true,
21
+ };
22
+ const HIDDEN = { hidden: true };
23
+ const WORKSPACE_QUERY = "workspace={{query.workspace}}";
24
+ const MATRIX_FILTERS = "filter={{query.filter}}&missingIn={{query.missingIn}}&namespace={{query.namespace}}&q={{query.q}}";
25
+ function serverReadOnly() {
26
+ return !(0, config_1.getTranslationConfig)().editable;
27
+ }
28
+ function knownWorkspace(id) {
29
+ try {
30
+ return (0, catalog_1.findWorkspace)(id);
31
+ }
32
+ catch {
33
+ return undefined;
34
+ }
35
+ }
36
+ function workspaceAvailability(locked) {
37
+ return ({ query }) => {
38
+ const workspace = knownWorkspace(query?.workspace);
39
+ const refused = !workspace || serverReadOnly() || locked[workspace.kind];
40
+ return refused ? HIDDEN : undefined;
41
+ };
42
+ }
43
+ function pageUrl(page, query) {
44
+ return `${constants_1.PAGES_URL}/${page}?${query}`;
45
+ }
46
+ function pageActionQuery(action) {
47
+ return `${page_actions_1.PAGE_ACTION_QUERY}=${action}`;
48
+ }
49
+ function addLanguageButton(manageLanguages) {
50
+ return {
51
+ id: "add-language",
52
+ label: "$dms_lang.languages.add",
53
+ icon: "i-ph-plus",
54
+ target: {
55
+ type: "page",
56
+ url: pageUrl("overview", `${WORKSPACE_QUERY}&${pageActionQuery(page_actions_1.PAGE_ACTIONS.addLanguage)}`),
57
+ },
58
+ permission: manageLanguages,
59
+ availability: workspaceAvailability(LANGUAGES_LOCKED),
60
+ };
61
+ }
62
+ function addKeyButton(manageKeys) {
63
+ return {
64
+ id: "add-key",
65
+ label: "$dms_lang.key_add.title",
66
+ icon: "i-ph-plus",
67
+ color: "primary",
68
+ target: {
69
+ type: "page",
70
+ url: pageUrl("translations", `${WORKSPACE_QUERY}&${MATRIX_FILTERS}&${pageActionQuery(page_actions_1.PAGE_ACTIONS.addKey)}`),
71
+ },
72
+ permission: manageKeys,
73
+ availability: workspaceAvailability(KEYS_LOCKED),
74
+ };
75
+ }
76
+ function newWorkspaceButton(createWorkspace) {
77
+ return {
78
+ id: "new-workspace",
79
+ label: "$dms_lang.workspaces.new",
80
+ icon: "i-ph-plus",
81
+ color: "primary",
82
+ target: {
83
+ type: "page",
84
+ url: pageUrl("workspaces", `${WORKSPACE_QUERY}&${pageActionQuery(page_actions_1.PAGE_ACTIONS.newWorkspace)}`),
85
+ },
86
+ permission: createWorkspace,
87
+ availability: () => (serverReadOnly() ? HIDDEN : undefined),
88
+ };
89
+ }
90
+ exports.OPEN_OVERVIEW_BUTTON = {
91
+ id: "open-overview",
92
+ label: "$dms_lang.workspace.open_overview",
93
+ icon: "i-ph-gauge",
94
+ target: { type: "page", url: pageUrl("overview", WORKSPACE_QUERY) },
95
+ };
96
+ function translationLocale(query) {
97
+ const workspace = knownWorkspace(query?.workspace);
98
+ if (!workspace || !query?.locale)
99
+ return undefined;
100
+ const codes = workspace.locales.map((locale) => locale.code);
101
+ const found = (0, locale_codes_1.findLocale)(codes, query.locale);
102
+ if (found === undefined)
103
+ return undefined;
104
+ return (0, locale_codes_1.findLocale)([workspace.defaultLocale], found) ? undefined : found;
105
+ }
106
+ function hasLocale(query) {
107
+ const workspace = knownWorkspace(query?.workspace);
108
+ if (!workspace || !query?.locale)
109
+ return false;
110
+ const codes = workspace.locales.map((locale) => locale.code);
111
+ return (0, locale_codes_1.findLocale)(codes, query.locale) !== undefined;
112
+ }
113
+ const MATRIX_BUTTON = {
114
+ label: "$dms_lang.queue.open_matrix",
115
+ icon: "i-ph-table",
116
+ };
117
+ exports.OPEN_MISSING_IN_MATRIX_BUTTON = {
118
+ ...MATRIX_BUTTON,
119
+ id: "open-missing-in-matrix",
120
+ target: {
121
+ type: "page",
122
+ url: pageUrl("translations", `${WORKSPACE_QUERY}&filter=missing&missingIn={{query.locale}}&namespace={{query.namespace}}`),
123
+ },
124
+ availability: ({ query }) => (translationLocale(query) ? undefined : HIDDEN),
125
+ };
126
+ exports.OPEN_MATRIX_BUTTON = {
127
+ ...MATRIX_BUTTON,
128
+ id: "open-matrix",
129
+ target: {
130
+ type: "page",
131
+ url: pageUrl("translations", `${WORKSPACE_QUERY}&namespace={{query.namespace}}`),
132
+ },
133
+ availability: ({ query }) => (translationLocale(query) ? HIDDEN : undefined),
134
+ };
135
+ exports.DOWNLOAD_LANGUAGE_BUTTON = {
136
+ id: "download-language",
137
+ label: "$dms_lang.queue.download",
138
+ icon: "i-ph-download-simple",
139
+ target: {
140
+ type: "download",
141
+ url: `${constants_1.LANG_API}/export?${WORKSPACE_QUERY}&locale={{query.locale}}`,
142
+ filename: "{{query.locale}}.json",
143
+ },
144
+ availability: ({ query }) => (hasLocale(query) ? undefined : HIDDEN),
145
+ };
146
+ //# sourceMappingURL=header-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-actions.js","sourceRoot":"","sources":["../../src/pages/header-actions.ts"],"names":[],"mappings":";;;AAkEA,8CAeC;AAGD,oCAgBC;AAGD,gDAgBC;AAlHD,iDAAiE;AACjE,8CAAiD;AACjD,4CAAuD;AACvD,kDAAyD;AACzD,wDAAmD;AAInD,MAAM,WAAW,GAAmC;IAClD,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,IAAI;CACd,CAAC;AAGF,MAAM,gBAAgB,GAAmC;IACvD,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;AAEzC,MAAM,eAAe,GAAG,+B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C,CAAC,CAAC,MAAM,CAAC;CAC7E,CAAC;AAGW,QAAA,kBAAkB,GAAiB;IAC9C,GAAG,aAAa;IAChB,EAAE,EAAE,aAAa;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,OAAO,CACV,cAAc,EACd,GAAG,eAAe,gCAAgC,CACnD;KACF;IACD,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;CAC7E,CAAC;AAGW,QAAA,wBAAwB,GAAiB;IACpD,EAAE,EAAE,mBAAmB;IACvB,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,GAAG,oBAAQ,WAAW,eAAe,0BAA0B;QACpE,QAAQ,EAAE,uBAAuB;KAClC;IACD,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;CACrE,CAAC"}
@@ -2,3 +2,9 @@ import "./module";
2
2
  export * from "./module";
3
3
  export * from "./overview";
4
4
  export * from "./translations";
5
+ export * from "./language";
6
+ export * from "./workspaces";
7
+ export * from "./workspace";
8
+ export * from "./quick-actions";
9
+ export * from "./page-actions";
10
+ export * from "./actions";
@@ -18,4 +18,10 @@ require("./module");
18
18
  __exportStar(require("./module"), exports);
19
19
  __exportStar(require("./overview"), exports);
20
20
  __exportStar(require("./translations"), exports);
21
+ __exportStar(require("./language"), exports);
22
+ __exportStar(require("./workspaces"), exports);
23
+ __exportStar(require("./workspace"), exports);
24
+ __exportStar(require("./quick-actions"), exports);
25
+ __exportStar(require("./page-actions"), exports);
26
+ __exportStar(require("./actions"), exports);
21
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAkB;AAElB,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAkB;AAElB,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B"}
@@ -0,0 +1,10 @@
1
+ declare const LangLanguageController_base: {
2
+ new (...args: any[]): {};
3
+ extend: <T extends import("@antelopejs/interface-api").ControllerClass>(this: T, location: string) => T;
4
+ location: string;
5
+ };
6
+ export declare class LangLanguageController extends LangLanguageController_base {
7
+ static scope: import("@antelopejs/interface-dms").ComponentBuilder<unknown>;
8
+ static scoped: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").GuardOptions>;
9
+ }
10
+ export {};
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.LangLanguageController = void 0;
10
+ const custom_1 = require("@antelopejs/interface-dms/base/custom");
11
+ const grid_1 = require("@antelopejs/interface-dms/base/grid");
12
+ const stat_group_1 = require("@antelopejs/interface-dms/base/stat-group");
13
+ const stack_1 = require("@antelopejs/interface-dms/base/stack");
14
+ const layouts_1 = require("@antelopejs/interface-dms/base/layouts");
15
+ const page_1 = require("@antelopejs/interface-dms/page");
16
+ const header_actions_1 = require("./header-actions");
17
+ const workspace_guard_1 = require("./workspace-guard");
18
+ const module_1 = require("./module");
19
+ const constants_1 = require("../utils/constants");
20
+ const PAGE_ID = "language";
21
+ const TEXTS = `${constants_1.PERMISSION_TEXTS}.language`;
22
+ const GAP = "1rem";
23
+ const MIN_COLUMN_WIDTH = "320px";
24
+ const QUEUE_SPAN = 2;
25
+ const STAT_COLUMNS = 2;
26
+ const STAT_COUNT = 4;
27
+ const queue = (0, custom_1.CustomComponent)("DmsLangTranslationQueue").meta({
28
+ name: `${TEXTS}.queue`,
29
+ description: `${TEXTS}.queue_description`,
30
+ icon: "i-ph-queue",
31
+ });
32
+ const progress = (0, stat_group_1.StatGroup)({
33
+ layout: "cards",
34
+ columns: STAT_COLUMNS,
35
+ label: "$dms_lang.progress.label",
36
+ fetchUrl: `${constants_1.LANG_API}/locale-stats?workspace={{query.workspace}}&locale={{query.locale}}`,
37
+ realtimeTopic: module_1.LANG_REALTIME_TOPIC,
38
+ skeletonCount: STAT_COUNT,
39
+ empty: {
40
+ title: "$dms_lang.progress.empty_title",
41
+ description: "$dms_lang.progress.empty_description",
42
+ },
43
+ }).meta({
44
+ name: `${TEXTS}.progress`,
45
+ description: `${TEXTS}.progress_description`,
46
+ icon: "i-ph-chart-donut",
47
+ });
48
+ const namespaces = (0, custom_1.CustomComponent)("DmsLangLanguageNamespaces").meta({
49
+ name: `${TEXTS}.namespaces`,
50
+ description: `${TEXTS}.namespaces_description`,
51
+ icon: "i-ph-squares-four",
52
+ });
53
+ const side = (0, stack_1.VStack)({ alignment: "stretch", spacing: GAP })
54
+ .meta({ name: `${TEXTS}.side`, icon: "i-ph-sidebar-simple" })
55
+ .child("progress", progress)
56
+ .child("namespaces", namespaces);
57
+ const content = (0, grid_1.Grid)({ gap: GAP, minColumnWidth: MIN_COLUMN_WIDTH })
58
+ .meta({ name: `${TEXTS}.content`, icon: "i-ph-layout" })
59
+ .child("main", (0, grid_1.GridRow)()
60
+ .meta({ name: `${TEXTS}.content`, icon: "i-ph-rows" })
61
+ .child("queue", queue, { colSpan: QUEUE_SPAN })
62
+ .child("side", side));
63
+ let LangLanguageController = class LangLanguageController extends (0, page_1.PageController)(PAGE_ID, {
64
+ displayName: "$dms_lang.language.page_title",
65
+ description: "$dms_lang.language.description",
66
+ module: module_1.LANG_MODULE_ID,
67
+ category: module_1.translateCategory,
68
+ icon: "i-ph-text-aa",
69
+ order: 2,
70
+ }, (0, layouts_1.DefaultLayout)({
71
+ headerActions: [
72
+ header_actions_1.OPEN_MISSING_IN_MATRIX_BUTTON,
73
+ header_actions_1.OPEN_MATRIX_BUTTON,
74
+ header_actions_1.DOWNLOAD_LANGUAGE_BUTTON,
75
+ ],
76
+ })) {
77
+ static scope = (0, custom_1.CustomComponent)("DmsLangWorkspaceScope").meta({
78
+ name: `${constants_1.PERMISSION_TEXTS}.scope`,
79
+ description: `${constants_1.PERMISSION_TEXTS}.scope_description`,
80
+ icon: "i-ph-stack",
81
+ });
82
+ static scoped = (0, workspace_guard_1.workspaceGuard)().child("content", content);
83
+ };
84
+ exports.LangLanguageController = LangLanguageController;
85
+ exports.LangLanguageController = LangLanguageController = __decorate([
86
+ (0, page_1.RegisterPage)()
87
+ ], LangLanguageController);
88
+ (0, module_1.followTranslations)(module_1.translateCategory, PAGE_ID);
89
+ //# sourceMappingURL=language.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/pages/language.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kEAAwE;AACxE,8DAAoE;AACpE,0EAAsE;AACtE,gEAA8D;AAC9D,oEAAuE;AACvE,yDAA8E;AAC9E,qDAI0B;AAC1B,uDAAmD;AACnD,qCAKkB;AAClB,kDAAgE;AAEhE,MAAM,OAAO,GAAG,U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AO,CAAC,CAAC;;AAxBhD,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAY,GAAE;GACF,sBAAsB,CAyBlC;AAED,IAAA,2BAAkB,EAAC,0BAAiB,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Action } from "@antelopejs/interface-dms/component";
2
+ export declare function languagesTable(manageLanguages: Action): import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").TableViewOptionsSerialized>;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.languagesTable = languagesTable;
4
+ const button_1 = require("@antelopejs/interface-dms/base/types/button");
5
+ const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
6
+ const table_view_1 = require("@antelopejs/interface-dms/base/table-view");
7
+ const constants_1 = require("../utils/constants");
8
+ const module_1 = require("./module");
9
+ const TEXTS = "$dms_lang.languages";
10
+ const NAME_SIZE = 280;
11
+ const COVERAGE_SIZE = 220;
12
+ const BASE = { field: "isBase", equals: true };
13
+ const EDITABLE_BASE = { and: [BASE, { field: "canEdit", equals: true }] };
14
+ const TARGET = { field: "isBase", equals: false };
15
+ const MANAGEABLE = { and: [TARGET, { field: "canManage", equals: true }] };
16
+ const LANGUAGE_URL = `${constants_1.LANG_API}/languages/{{row.workspace}}/{{row.code}}`;
17
+ const columns = {
18
+ name: {
19
+ name: `${TEXTS}.column_language`,
20
+ type: new default_types_1.DefaultDataTypes.StringType(),
21
+ display: new table_view_1.DefaultDisplays.IdentityDisplay({
22
+ icon: "i-ph-translate",
23
+ subtitleField: "detail",
24
+ badges: [
25
+ {
26
+ ...BASE,
27
+ label: "$dms_lang.common.base",
28
+ tone: "neutral",
29
+ },
30
+ ],
31
+ }),
32
+ size: NAME_SIZE,
33
+ sortable: true,
34
+ order: 1,
35
+ },
36
+ coverage: {
37
+ name: `${TEXTS}.coverage`,
38
+ type: new default_types_1.DefaultDataTypes.NumberType(),
39
+ display: new table_view_1.DefaultDisplays.ProgressDisplay({
40
+ doneField: "translated",
41
+ totalField: "total",
42
+ }),
43
+ size: COVERAGE_SIZE,
44
+ sortable: true,
45
+ order: 2,
46
+ },
47
+ };
48
+ const PAGE_LINKS = [
49
+ {
50
+ label: `${TEXTS}.translate`,
51
+ icon: "i-ph-translate",
52
+ target: {
53
+ type: "page",
54
+ url: `${constants_1.PAGES_URL}/language?workspace={{row.workspace}}&locale={{row.code}}`,
55
+ },
56
+ rule: TARGET,
57
+ isVisible: true,
58
+ showLabel: true,
59
+ variant: button_1.ButtonVariant.outline,
60
+ isDefault: true,
61
+ },
62
+ {
63
+ label: `${TEXTS}.edit_base`,
64
+ icon: "i-ph-table",
65
+ target: {
66
+ type: "page",
67
+ url: `${constants_1.PAGES_URL}/translations?workspace={{row.workspace}}`,
68
+ },
69
+ rule: EDITABLE_BASE,
70
+ isVisible: true,
71
+ showLabel: true,
72
+ variant: button_1.ButtonVariant.outline,
73
+ isDefault: true,
74
+ },
75
+ ];
76
+ function managedActions(manageLanguages) {
77
+ return [
78
+ {
79
+ label: `${TEXTS}.make_base_named`,
80
+ icon: "i-ph-star",
81
+ target: {
82
+ type: "api",
83
+ url: `${LANGUAGE_URL}/base`,
84
+ method: "POST",
85
+ successMessage: "$dms_lang.language_base.done_generic",
86
+ },
87
+ confirm: { from: `${LANGUAGE_URL}/base-confirm` },
88
+ rule: MANAGEABLE,
89
+ permission: manageLanguages,
90
+ },
91
+ {
92
+ label: `${TEXTS}.remove_named`,
93
+ icon: "i-ph-trash",
94
+ color: "error",
95
+ target: {
96
+ type: "api",
97
+ url: LANGUAGE_URL,
98
+ method: "DELETE",
99
+ successMessage: "$dms_lang.language_remove.done",
100
+ },
101
+ confirm: { from: `${LANGUAGE_URL}/removal-confirm` },
102
+ rule: MANAGEABLE,
103
+ permission: manageLanguages,
104
+ },
105
+ ];
106
+ }
107
+ function languagesTable(manageLanguages) {
108
+ return table_view_1.TableView.fromSource({
109
+ caption: `${TEXTS}.title`,
110
+ fetchUrl: `${constants_1.LANG_API}/languages?workspace={{query.workspace}}`,
111
+ columns,
112
+ defaultSort: { field: "coverage" },
113
+ pinnedRows: BASE,
114
+ realtimeTopic: module_1.LANG_REALTIME_TOPIC,
115
+ layout: "full",
116
+ labelKey: "name",
117
+ rowActions: { custom: [...PAGE_LINKS, ...managedActions(manageLanguages)] },
118
+ });
119
+ }
120
+ //# sourceMappingURL=languages-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages-table.js","sourceRoot":"","sources":["../../src/pages/languages-table.ts"],"names":[],"mappings":";;AAwHA,wCAYC;AApID,wEAA4E;AAE5E,2FAA2F;AAC3F,0EAGmD;AAEnD,kDAAyD;AACzD,qCAA+C;AAE/C,MAAM,KAAK,GAAG,qBAAqB,CAAC;AACpC,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC/C,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAC1E,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAClD,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAC3E,MAAM,YAAY,GAAG,GAAG,oBAAQ,2CAA2C,CAAC;AAE5E,MAAM,OAAO,GAAG;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,GAAG,KAAK,kBAAkB;QAChC,IAAI,EAAE,IAAI,gCAAgB,CAAC,UAAU,EAAE;QACvC,OAAO,EAAE,IAAI,4BAAe,C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YACE,KAAK,EAAE,GAAG,KAAK,kBAAkB;YACjC,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,GAAG,YAAY,OAAO;gBAC3B,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,sCAAsC;aACvD;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,YAAY,eAAe,EAAE;YACjD,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE,eAAe;SAC5B;QACD;YACE,KAAK,EAAE,GAAG,KAAK,eAAe;YAC9B,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE;gBACN,IAAI,EAAE,KAAK;gBACX,GAAG,EAAE,YAAY;gBACjB,MAAM,EAAE,QAAQ;gBAChB,cAAc,EAAE,gCAAgC;aACjD;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,YAAY,kBAAkB,EAAE;YACpD,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE,eAAe;SAC5B;KACF,CAAC;AACJ,CAAC;AAOD,SAAgB,cAAc,CAAC,eAAuB;IACpD,OAAO,sBAAS,CAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,GAAG,KAAK,QAAQ;QACzB,QAAQ,EAAE,GAAG,oBAAQ,0CAA0C;QAC/D,OAAO;QACP,WAAW,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;QAClC,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,4BAAmB;QAClC,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,UAAU,EAAE,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1,7 @@
1
- export declare const langModule: import("@antelopejs/interface-dms").CategoryInfo;
1
+ import { type CategoryInfo } from "@antelopejs/interface-dms/page";
2
+ export declare const LANG_MODULE_ID = "lang";
3
+ export declare const LANG_REALTIME_TOPIC = "dms-lang.translations";
4
+ export declare const langModule: CategoryInfo;
5
+ export declare const translateCategory: CategoryInfo;
6
+ export declare const manageCategory: CategoryInfo;
7
+ export declare function followTranslations(category: CategoryInfo, pageId: string): void;
@@ -1,12 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.langModule = void 0;
3
+ exports.manageCategory = exports.translateCategory = exports.langModule = exports.LANG_REALTIME_TOPIC = exports.LANG_MODULE_ID = void 0;
4
+ exports.followTranslations = followTranslations;
4
5
  const page_1 = require("@antelopejs/interface-dms/page");
6
+ const realtime_1 = require("@antelopejs/interface-dms/realtime");
7
+ exports.LANG_MODULE_ID = "lang";
8
+ exports.LANG_REALTIME_TOPIC = "dms-lang.translations";
5
9
  exports.langModule = (0, page_1.RegisterModule)({
6
- id: "lang",
10
+ id: exports.LANG_MODULE_ID,
7
11
  title: "$dms_lang.title",
8
12
  description: "$dms_lang.description",
9
13
  icon: "i-ph-translate",
10
14
  landingPage: "overview",
15
+ catalogCategory: "$dms_lang.catalog_category",
11
16
  });
17
+ exports.translateCategory = (0, page_1.Category)("translate", {
18
+ displayName: "$dms_lang.nav.translate",
19
+ category: exports.langModule,
20
+ module: exports.LANG_MODULE_ID,
21
+ icon: "i-ph-translate",
22
+ urlSlug: "/",
23
+ type: "label",
24
+ order: 0,
25
+ });
26
+ exports.manageCategory = (0, page_1.Category)("manage", {
27
+ displayName: "$dms_lang.nav.manage",
28
+ category: exports.langModule,
29
+ module: exports.LANG_MODULE_ID,
30
+ icon: "i-ph-stack",
31
+ urlSlug: "/",
32
+ type: "label",
33
+ order: 1,
34
+ });
35
+ function followTranslations(category, pageId) {
36
+ (0, realtime_1.RegisterPageTopic)(`${category.fullId}.${pageId}`, exports.LANG_REALTIME_TOPIC);
37
+ }
12
38
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/pages/module.ts"],"names":[],"mappings":";;;AAAA,yDAAgE;AAEnD,QAAA,UAAU,GAAG,IAAA,qBAAc,EAAC;IACvC,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,uBAAuB;IACpC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,UAAU;CACxB,CAAC,CAAC"}
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/pages/module.ts"],"names":[],"mappings":";;;AA0CA,gDAEC;AA5CD,yDAIwC;AACxC,iEAAuE;AAE1D,QAAA,cAAc,GAAG,MAAM,CAAC;AAGxB,QAAA,mBAAmB,GAAG,uBAAuB,CAAC;AAE9C,QAAA,UAAU,GAAG,IAAA,qBAAc,EAAC;IACvC,EAAE,EAAE,sBAAc;IAClB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,uBAAuB;IACpC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,4BAA4B;CAC9C,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,IAAA,eAAQ,EAAC,WAAW,EAAE;IACrD,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,kBAAU;IACpB,MAAM,EAAE,sBAAc;IACtB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,CAAC;CACT,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,IAAA,eAAQ,EAAC,QAAQ,EAAE;IAC/C,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,kBAAU;IACpB,MAAM,EAAE,sBAAc;IACtB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,CAAC;CACT,CAAC,CAAC;AAGH,SAAgB,kBAAkB,CAAC,QAAsB,EAAE,MAAc;IACvE,IAAA,4BAAiB,EAAC,GAAG,QAAQ,CAAC,MAAM,IAAI,MAAM,EAAE,EAAE,2BAAmB,CAAC,CAAC;AACzE,CAAC"}
@@ -4,6 +4,7 @@ declare const LangOverviewController_base: {
4
4
  location: string;
5
5
  };
6
6
  export declare class LangOverviewController extends LangOverviewController_base {
7
- static overviewComponent: import("@antelopejs/interface-dms").ComponentBuilder<unknown>;
7
+ static scope: import("@antelopejs/interface-dms").ComponentBuilder<unknown>;
8
+ static scoped: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").GuardOptions>;
8
9
  }
9
10
  export {};