@antelopejs/dms-lang 0.5.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +5 -5
  2. package/dist/routes/translations.d.ts +14 -13
  3. package/dist/routes/translations.js +31 -29
  4. package/dist/routes/translations.js.map +1 -1
  5. package/dist/utils/query.d.ts +2 -0
  6. package/dist/utils/query.js +7 -0
  7. package/dist/utils/query.js.map +1 -0
  8. package/frontend-vue/.prettierignore +1 -0
  9. package/frontend-vue/.prettierrc +2 -2
  10. package/frontend-vue/app/build/components/KeyAddModal.vue +13 -5
  11. package/frontend-vue/app/build/components/KeyEditorDrawer.vue +24 -26
  12. package/frontend-vue/app/build/components/KeyRenameModal.vue +7 -1
  13. package/frontend-vue/app/build/components/KeyStatus.vue +4 -1
  14. package/frontend-vue/app/build/components/LanguageAddModal.vue +24 -4
  15. package/frontend-vue/app/build/components/LanguagePicker.vue +30 -10
  16. package/frontend-vue/app/build/components/LocaleTile.vue +2 -1
  17. package/frontend-vue/app/build/components/PlaceholderText.vue +10 -3
  18. package/frontend-vue/app/build/components/WorkspaceCreateModal.vue +10 -1
  19. package/frontend-vue/app/build/components/WorkspaceRenameModal.vue +23 -7
  20. package/frontend-vue/app/build/components/form/FormFieldRow.vue +12 -3
  21. package/frontend-vue/app/build/components/form/FormRows.vue +10 -2
  22. package/frontend-vue/app/build/components/form/WorkspaceDetailsFields.vue +2 -1
  23. package/frontend-vue/app/build/components/matrix/MatrixCell.vue +81 -20
  24. package/frontend-vue/app/build/components/matrix/MatrixColumns.vue +6 -3
  25. package/frontend-vue/app/build/components/matrix/MatrixGroupHeader.vue +1 -0
  26. package/frontend-vue/app/build/components/matrix/MatrixKeyCell.vue +2 -2
  27. package/frontend-vue/app/build/components/matrix/MatrixToolbar.vue +2 -1
  28. package/frontend-vue/app/build/components/queue/QueueActions.vue +12 -2
  29. package/frontend-vue/app/build/components/queue/QueueDone.vue +3 -0
  30. package/frontend-vue/app/build/components/queue/QueueEditor.vue +63 -19
  31. package/frontend-vue/app/build/components/queue/QueueHeader.vue +24 -5
  32. package/frontend-vue/app/build/components/queue/QueueUpNext.vue +1 -1
  33. package/frontend-vue/app/build/composables/useCellEditor.ts +12 -2
  34. package/frontend-vue/app/build/composables/useCellMoves.ts +1 -0
  35. package/frontend-vue/app/build/composables/useCellSaves.ts +1 -0
  36. package/frontend-vue/app/build/composables/useKeyPanel.ts +4 -0
  37. package/frontend-vue/app/build/composables/useKeySaves.ts +3 -0
  38. package/frontend-vue/app/build/composables/useMatrixColumns.ts +78 -0
  39. package/frontend-vue/app/build/composables/useMatrixExport.ts +1 -0
  40. package/frontend-vue/app/build/composables/useMatrixFilters.ts +6 -0
  41. package/frontend-vue/app/build/composables/useMatrixView.ts +4 -0
  42. package/frontend-vue/app/build/composables/useQueueOrphans.ts +2 -0
  43. package/frontend-vue/app/build/composables/useQueueSave.ts +4 -0
  44. package/frontend-vue/app/build/drawer/KeyLanguageField.vue +37 -19
  45. package/frontend-vue/app/build/drawer/fieldFocus.ts +24 -0
  46. package/frontend-vue/app/build/matrix/MatrixDoneBanner.vue +4 -1
  47. package/frontend-vue/app/build/matrix/MatrixLanguageHeader.vue +36 -36
  48. package/frontend-vue/app/build/matrix/MatrixNoRows.vue +48 -39
  49. package/frontend-vue/app/components/LanguageNamespaces.vue +39 -11
  50. package/frontend-vue/app/components/NamespaceCoverage.vue +35 -9
  51. package/frontend-vue/app/components/TranslationMatrix.vue +84 -63
  52. package/frontend-vue/app/components/TranslationQueue.vue +25 -9
  53. package/frontend-vue/app/components/WorkspaceDangerZone.vue +6 -2
  54. package/frontend-vue/app/components/WorkspaceGeneral.vue +34 -9
  55. package/frontend-vue/app/components/WorkspaceList.vue +63 -30
  56. package/frontend-vue/app/components/WorkspaceScope.vue +64 -31
  57. package/frontend-vue/app/composables/translation/useFirstRun.ts +1 -0
  58. package/frontend-vue/app/composables/translation/useKeyActions.ts +10 -0
  59. package/frontend-vue/app/composables/translation/useLangLinks.ts +1 -0
  60. package/frontend-vue/app/composables/translation/useLanguageActions.ts +11 -2
  61. package/frontend-vue/app/composables/translation/useLanguageQueue.ts +10 -0
  62. package/frontend-vue/app/composables/translation/useQueueDrafts.ts +4 -0
  63. package/frontend-vue/app/composables/translation/useQueueSession.ts +6 -0
  64. package/frontend-vue/app/composables/translation/useWorkspaceActions.ts +6 -0
  65. package/frontend-vue/app/composables/translation/useWorkspaceContext.ts +1 -0
  66. package/frontend-vue/app/composables/translation/useWorkspaceFill.ts +4 -0
  67. package/frontend-vue/app/composables/translation/useWorkspaceFlat.ts +11 -4
  68. package/frontend-vue/app/composables/translation/useWorkspaceLabel.ts +2 -0
  69. package/frontend-vue/app/composables/translation/useWorkspaceNameCheck.ts +5 -0
  70. package/frontend-vue/app/composables/translation/useWorkspaceRoute.ts +8 -0
  71. package/frontend-vue/app/utils/keySaveErrors.ts +1 -0
  72. package/frontend-vue/app/utils/keySaves.ts +1 -0
  73. package/frontend-vue/app/utils/matrixExport.ts +1 -0
  74. package/frontend-vue/app/utils/translations.ts +3 -3
  75. package/frontend-vue/app/utils/workspaceBackup.ts +1 -0
  76. package/frontend-vue/build/backend-boundary.ts +7 -2
  77. package/frontend-vue/eslint.config.mjs +20 -45
  78. package/frontend-vue/package.json +8 -8
  79. package/package.json +16 -16
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useLocaleNames } from '../../composables/translation/useLocaleNames'
2
3
  import type { SelectMenuItem } from '@nuxt/ui'
3
4
  import { typedLocaleCode, type LanguageOption } from '../../utils/languages'
4
5
  import LocaleTile from './LocaleTile.vue'
@@ -106,7 +107,10 @@ function step(event: KeyboardEvent) {
106
107
  </script>
107
108
 
108
109
  <template>
109
- <div v-if="props.isOpen" class="space-y-3">
110
+ <div
111
+ v-if="props.isOpen"
112
+ class="space-y-3"
113
+ >
110
114
  <DmsInputText
111
115
  :id="props.id"
112
116
  v-model="search"
@@ -127,11 +131,11 @@ function step(event: KeyboardEvent) {
127
131
  role="listbox"
128
132
  class="max-h-80 space-y-0.5 overflow-y-auto"
129
133
  >
130
- <DmsEyebrow
134
+ <DmsEyebrowLabel
131
135
  v-if="free.length"
132
136
  :label="$t('dms_lang.language_add.suggested', free.length)"
133
137
  size="xs"
134
- class="px-2 pt-1 pb-1.5"
138
+ class="px-2 pb-1.5 pt-1"
135
139
  />
136
140
  <button
137
141
  v-for="option in free"
@@ -166,10 +170,10 @@ function step(event: KeyboardEvent) {
166
170
  />
167
171
  </button>
168
172
  <template v-if="added.length">
169
- <DmsEyebrow
173
+ <DmsEyebrowLabel
170
174
  :label="$t('dms_lang.language_add.already_added')"
171
175
  size="xs"
172
- class="px-2 pt-3 pb-1.5"
176
+ class="px-2 pb-1.5 pt-3"
173
177
  />
174
178
  <div
175
179
  v-for="option in added"
@@ -196,7 +200,9 @@ function step(event: KeyboardEvent) {
196
200
  v-if="!props.options.length"
197
201
  class="text-muted px-2 py-6 text-center text-sm"
198
202
  >
199
- <slot name="empty">{{ $t('dms_lang.language_add.no_match') }}</slot>
203
+ <slot name="empty">
204
+ {{ $t('dms_lang.language_add.no_match') }}
205
+ </slot>
200
206
  </p>
201
207
  </div>
202
208
  </div>
@@ -214,20 +220,34 @@ function step(event: KeyboardEvent) {
214
220
  :ui="{ content: 'min-w-80' }"
215
221
  >
216
222
  <template #leading>
217
- <LocaleTile v-if="code" :code="code" size="sm" />
223
+ <LocaleTile
224
+ v-if="code"
225
+ :code="code"
226
+ size="sm"
227
+ />
218
228
  </template>
219
229
  <template #default>
220
- <span v-if="code" class="flex min-w-0 items-center gap-1.5">
230
+ <span
231
+ v-if="code"
232
+ class="flex min-w-0 items-center gap-1.5"
233
+ >
221
234
  <span class="text-highlighted truncate">{{ fullName(code) }}</span>
222
235
  <span class="text-dimmed font-mono text-xs">· {{ code }}</span>
223
236
  </span>
224
- <span v-else class="text-dimmed truncate">{{ props.placeholder }}</span>
237
+ <span
238
+ v-else
239
+ class="text-dimmed truncate"
240
+ >
241
+ {{ props.placeholder }}
242
+ </span>
225
243
  </template>
226
244
  <template #item-trailing="{ item }">
227
245
  <span class="text-dimmed font-mono text-xs">{{ item.value }}</span>
228
246
  </template>
229
247
  <template #empty>
230
- <slot name="empty">{{ $t('dms_lang.language_add.no_match') }}</slot>
248
+ <slot name="empty">
249
+ {{ $t('dms_lang.language_add.no_match') }}
250
+ </slot>
231
251
  </template>
232
252
  </USelectMenu>
233
253
  </template>
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useLocaleNames } from '../../composables/translation/useLocaleNames'
2
3
  type LocaleTileSize = 'sm' | 'md' | 'lg'
3
4
 
4
5
  interface Props {
@@ -42,7 +43,7 @@ const letters = computed(() => tileOf(props.code, props.siblings))
42
43
  SIZE_CLASSES[props.size],
43
44
  letters.length > SHORT_TILE_LENGTH ? WIDE_PADDING[props.size] : '',
44
45
  props.isBase
45
- ? 'text-primary bg-(--dms-accent-tint-strong) ring-1 ring-(--dms-accent-line) ring-inset'
46
+ ? 'text-primary bg-(--dms-accent-tint-strong) ring-(--dms-accent-line) ring-1 ring-inset'
46
47
  : 'bg-elevated text-toned ring-accented ring-1 ring-inset',
47
48
  ]"
48
49
  aria-hidden="true"
@@ -31,9 +31,16 @@ const parts = computed<TextPart[]>(() =>
31
31
  </script>
32
32
 
33
33
  <template>
34
- <span class="break-words whitespace-pre-wrap">
35
- <template v-for="(part, index) in parts" :key="index">
36
- <span v-if="part.classes" :class="part.classes" :title="part.title">
34
+ <span class="whitespace-pre-wrap break-words">
35
+ <template
36
+ v-for="(part, index) in parts"
37
+ :key="index"
38
+ >
39
+ <span
40
+ v-if="part.classes"
41
+ :class="part.classes"
42
+ :title="part.title"
43
+ >
37
44
  {{ part.label }}
38
45
  </span>
39
46
  <template v-else>{{ part.label }}</template>
@@ -1,4 +1,9 @@
1
1
  <script setup lang="ts">
2
+ import { useI18nWorkspaces } from '../../composables/translation/useI18nWorkspaces'
3
+ import { useLangLinks } from '../../composables/translation/useLangLinks'
4
+ import { useLocaleNames } from '../../composables/translation/useLocaleNames'
5
+ import { useMutationToast } from '../../composables/translation/useMutationToast'
6
+ import { useWorkspaceNameCheck } from '../../composables/translation/useWorkspaceNameCheck'
2
7
  import type { WorkspaceDetails, WorkspaceType } from '../../types/lang'
3
8
  import type { WorkspaceBackup } from '../../utils/workspaceBackup'
4
9
  import { canonicalLocale, searchLanguages } from '../../utils/languages'
@@ -115,7 +120,11 @@ async function submit() {
115
120
  @update:open="(open: boolean) => !open && close(null)"
116
121
  >
117
122
  <template #body>
118
- <form class="space-y-4" novalidate @submit.prevent="submit">
123
+ <form
124
+ class="space-y-4"
125
+ novalidate
126
+ @submit.prevent="submit"
127
+ >
119
128
  <FormRows has-required>
120
129
  <FormFieldRow
121
130
  :label="$t('dms_lang.workspace_name.label')"
@@ -1,4 +1,8 @@
1
1
  <script setup lang="ts">
2
+ import { useI18nWorkspaces } from '../../composables/translation/useI18nWorkspaces'
3
+ import { useLangLinks } from '../../composables/translation/useLangLinks'
4
+ import { useMutationToast } from '../../composables/translation/useMutationToast'
5
+ import { useWorkspaceNameCheck } from '../../composables/translation/useWorkspaceNameCheck'
2
6
  import FormFieldRow from './form/FormFieldRow.vue'
3
7
  import FormRows from './form/FormRows.vue'
4
8
 
@@ -47,7 +51,11 @@ async function submit() {
47
51
  @update:open="(open: boolean) => !open && close(null)"
48
52
  >
49
53
  <template #body>
50
- <form class="space-y-4" novalidate @submit.prevent="submit">
54
+ <form
55
+ class="space-y-4"
56
+ novalidate
57
+ @submit.prevent="submit"
58
+ >
51
59
  <FormRows has-required>
52
60
  <FormFieldRow
53
61
  :label="$t('dms_lang.workspace_name.label')"
@@ -56,27 +64,35 @@ async function submit() {
56
64
  required
57
65
  >
58
66
  <template #default="{ id }">
59
- <DmsInputText :id="id" v-model="name" autofocus class="w-full" />
67
+ <DmsInputText
68
+ :id="id"
69
+ v-model="name"
70
+ autofocus
71
+ class="w-full"
72
+ />
60
73
  </template>
61
74
  </FormFieldRow>
62
75
  </FormRows>
63
76
  <div class="border-default space-y-2 rounded-md border px-3 py-2.5">
64
77
  <div>
65
- <DmsEyebrow
78
+ <DmsEyebrowLabel
66
79
  :label="$t('dms_lang.workspace_rename.before')"
67
80
  size="xs"
68
81
  />
69
- <code class="text-muted font-mono text-xs break-all">
82
+ <code class="text-muted break-all font-mono text-xs">
70
83
  {{ links.publicLocaleUrl(props.workspace) }}
71
84
  </code>
72
85
  </div>
73
- <UIcon name="i-ph-arrow-down" class="text-dimmed size-3.5" />
86
+ <UIcon
87
+ name="i-ph-arrow-down"
88
+ class="text-dimmed size-3.5"
89
+ />
74
90
  <div>
75
- <DmsEyebrow
91
+ <DmsEyebrowLabel
76
92
  :label="$t('dms_lang.workspace_rename.after')"
77
93
  size="xs"
78
94
  />
79
- <code class="text-highlighted font-mono text-xs break-all">
95
+ <code class="text-highlighted break-all font-mono text-xs">
80
96
  {{
81
97
  links.publicLocaleUrl(check.normalized.value || props.workspace)
82
98
  }}
@@ -52,7 +52,10 @@ const controlId = useId()
52
52
  :label-for="controlId"
53
53
  :required="props.required"
54
54
  >
55
- <template v-if="slots['label-extra']" #label-extra>
55
+ <template
56
+ v-if="slots['label-extra']"
57
+ #label-extra
58
+ >
56
59
  <slot name="label-extra" />
57
60
  </template>
58
61
  <UFormField
@@ -61,8 +64,14 @@ const controlId = useId()
61
64
  class="min-w-0"
62
65
  >
63
66
  <slot :id="controlId" />
64
- <template v-if="props.error" #error="{ error: message }">
65
- <UIcon name="i-ph-warning-circle" class="size-3.5 shrink-0" />
67
+ <template
68
+ v-if="props.error"
69
+ #error="{ error: message }"
70
+ >
71
+ <UIcon
72
+ name="i-ph-warning-circle"
73
+ class="size-3.5 shrink-0"
74
+ />
66
75
  {{ message }}
67
76
  </template>
68
77
  </UFormField>
@@ -17,8 +17,16 @@ const props = withDefaults(defineProps<FormRowsProps>(), {
17
17
  <template>
18
18
  <div class="flex flex-col">
19
19
  <slot />
20
- <p v-if="props.hasRequired" class="text-dimmed pb-2 text-xs">
21
- <span class="text-error" aria-hidden="true">*</span>
20
+ <p
21
+ v-if="props.hasRequired"
22
+ class="text-dimmed pb-2 text-xs"
23
+ >
24
+ <span
25
+ class="text-error"
26
+ aria-hidden="true"
27
+ >
28
+ *
29
+ </span>
22
30
  {{ $t('dms.form.required_legend') }}
23
31
  </p>
24
32
  </div>
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useWorkspaceTypes } from '../../../composables/translation/useWorkspaceActions'
2
3
  /**
3
4
  * What a workspace is for: its free description and its type, as rows of a
4
5
  * hand-built form (`FormRows`).
@@ -20,7 +21,7 @@ const { typeItems, typeOf, descriptionMax } = useWorkspaceTypes()
20
21
  :help="$t('dms_lang.workspace_details.description_help')"
21
22
  >
22
23
  <template #default="{ id }">
23
- <DmsTextarea
24
+ <DmsInputTextarea
24
25
  :id="id"
25
26
  v-model="description"
26
27
  :rows="DESCRIPTION_ROWS"
@@ -204,7 +204,10 @@ function escapeDraft() {
204
204
  </script>
205
205
 
206
206
  <template>
207
- <div v-if="isEditing" class="space-y-1">
207
+ <div
208
+ v-if="isEditing"
209
+ class="space-y-1"
210
+ >
208
211
  <p
209
212
  v-if="!props.isBase && props.baseValue"
210
213
  class="text-dimmed line-clamp-2 px-1 text-xs"
@@ -232,7 +235,10 @@ function escapeDraft() {
232
235
  class="text-warning flex items-start gap-1 px-1 text-[10.5px]"
233
236
  role="status"
234
237
  >
235
- <UIcon name="i-ph-arrows-clockwise" class="mt-px size-3 shrink-0" />
238
+ <UIcon
239
+ name="i-ph-arrows-clockwise"
240
+ class="mt-px size-3 shrink-0"
241
+ />
236
242
  <span class="min-w-0">
237
243
  {{ $t('dms_lang.matrix.changed_elsewhere') }}
238
244
  <PlaceholderText
@@ -240,19 +246,28 @@ function escapeDraft() {
240
246
  :text="props.changedElsewhere"
241
247
  class="text-default"
242
248
  />
243
- <span v-else class="italic">
249
+ <span
250
+ v-else
251
+ class="italic"
252
+ >
244
253
  {{ $t('dms_lang.matrix.current_none') }}
245
254
  </span>
246
255
  </span>
247
256
  </p>
248
- <ul v-if="issues.length" class="space-y-0.5 px-1">
257
+ <ul
258
+ v-if="issues.length"
259
+ class="space-y-0.5 px-1"
260
+ >
249
261
  <li
250
262
  v-for="issue in issues"
251
263
  :key="issue.kind"
252
264
  class="flex items-start gap-1 text-[10.5px]"
253
265
  :class="issue.severity === 'error' ? 'text-error' : 'text-warning'"
254
266
  >
255
- <UIcon name="i-ph-warning" class="mt-px size-3 shrink-0" />
267
+ <UIcon
268
+ name="i-ph-warning"
269
+ class="mt-px size-3 shrink-0"
270
+ />
256
271
  {{ messageIssueText(issue, t) }}
257
272
  </li>
258
273
  </ul>
@@ -295,7 +310,10 @@ function escapeDraft() {
295
310
  <ShortcutKbds :keys="MATRIX_KEYS.cancel" />
296
311
  {{ $t('dms_lang.matrix.shortcut_cancel') }}
297
312
  </span>
298
- <span v-if="!props.isBase && props.baseValue" class="font-mono">
313
+ <span
314
+ v-if="!props.isBase && props.baseValue"
315
+ class="font-mono"
316
+ >
299
317
  {{
300
318
  $t('dms_lang.matrix.length', {
301
319
  count: draft.length,
@@ -333,7 +351,10 @@ function escapeDraft() {
333
351
  </div>
334
352
  </div>
335
353
 
336
- <div v-else-if="props.failure" class="space-y-1">
354
+ <div
355
+ v-else-if="props.failure"
356
+ class="space-y-1"
357
+ >
337
358
  <button
338
359
  type="button"
339
360
  data-matrix-cell
@@ -344,11 +365,22 @@ function escapeDraft() {
344
365
  :disabled="!props.editable"
345
366
  @click="emit('edit', props.rowKey, props.code)"
346
367
  >
347
- <PlaceholderText v-if="props.failure.draft" :text="props.failure.draft" />
348
- <span v-else class="text-dimmed italic">—</span>
368
+ <PlaceholderText
369
+ v-if="props.failure.draft"
370
+ :text="props.failure.draft"
371
+ />
372
+ <span
373
+ v-else
374
+ class="text-dimmed italic"
375
+ >
376
+ —
377
+ </span>
349
378
  </button>
350
379
  <p class="text-error flex items-start gap-1 text-xs">
351
- <UIcon name="i-ph-warning-circle" class="mt-0.5 size-3.5 shrink-0" />
380
+ <UIcon
381
+ name="i-ph-warning-circle"
382
+ class="mt-0.5 size-3.5 shrink-0"
383
+ />
352
384
  <span>
353
385
  {{ $t('dms_lang.matrix.not_saved') }} · {{ props.failure.message }}
354
386
  </span>
@@ -363,7 +395,10 @@ function escapeDraft() {
363
395
  :text="props.value"
364
396
  class="text-default"
365
397
  />
366
- <span v-else class="italic">
398
+ <span
399
+ v-else
400
+ class="italic"
401
+ >
367
402
  {{ $t('dms_lang.matrix.current_none') }}
368
403
  </span>
369
404
  </p>
@@ -413,14 +448,20 @@ function escapeDraft() {
413
448
  ]"
414
449
  @click="props.editable && emit('edit', props.rowKey, props.code)"
415
450
  >
416
- <span v-if="isMissing && props.inherited" class="block space-y-0.5">
451
+ <span
452
+ v-if="isMissing && props.inherited"
453
+ class="block space-y-0.5"
454
+ >
417
455
  <span class="text-dimmed line-clamp-3 italic">
418
456
  {{ props.inherited }}
419
457
  </span>
420
458
  <span
421
459
  class="text-dimmed flex items-center gap-1 font-mono text-[10px] uppercase"
422
460
  >
423
- <UIcon name="i-ph-puzzle-piece" class="size-3" />
461
+ <UIcon
462
+ name="i-ph-puzzle-piece"
463
+ class="size-3"
464
+ />
424
465
  {{ $t('dms_lang.matrix.inherited') }}
425
466
  </span>
426
467
  </span>
@@ -429,7 +470,7 @@ function escapeDraft() {
429
470
  class="flex items-center gap-2"
430
471
  >
431
472
  <span
432
- class="text-warning font-mono text-[10px] font-bold tracking-wider uppercase"
473
+ class="text-warning font-mono text-[10px] font-bold uppercase tracking-wider"
433
474
  >
434
475
  {{
435
476
  props.isBase
@@ -444,8 +485,16 @@ function escapeDraft() {
444
485
  {{ $t('dms_lang.matrix.translate') }}
445
486
  </span>
446
487
  </span>
447
- <span v-else-if="isMissing" class="text-dimmed italic">—</span>
448
- <span v-else-if="props.override" class="block space-y-0.5">
488
+ <span
489
+ v-else-if="isMissing"
490
+ class="text-dimmed italic"
491
+ >
492
+ —
493
+ </span>
494
+ <span
495
+ v-else-if="props.override"
496
+ class="block space-y-0.5"
497
+ >
449
498
  <PlaceholderText
450
499
  :text="props.override"
451
500
  class="text-default line-clamp-3"
@@ -462,7 +511,10 @@ function escapeDraft() {
462
511
  class="line-clamp-3"
463
512
  :title="props.value.length > LONG_TEXT ? props.value : undefined"
464
513
  >
465
- <PlaceholderText :text="props.value" class="text-default" />
514
+ <PlaceholderText
515
+ :text="props.value"
516
+ class="text-default"
517
+ />
466
518
  </span>
467
519
  <span
468
520
  v-for="issue in issues"
@@ -470,7 +522,10 @@ function escapeDraft() {
470
522
  class="mt-1 flex items-start gap-1 font-mono text-[10.5px]"
471
523
  :class="issue.severity === 'error' ? 'text-error' : 'text-warning'"
472
524
  >
473
- <UIcon name="i-ph-warning" class="mt-px size-3 shrink-0" />
525
+ <UIcon
526
+ name="i-ph-warning"
527
+ class="mt-px size-3 shrink-0"
528
+ />
474
529
  {{ messageIssueText(issue, t) }}
475
530
  </span>
476
531
  <span
@@ -478,10 +533,16 @@ function escapeDraft() {
478
533
  class="text-info mt-1 flex items-center gap-1 font-mono text-[10.5px]"
479
534
  :title="$t('dms_lang.drawer.outdated')"
480
535
  >
481
- <UIcon name="i-ph-clock-counter-clockwise" class="size-3" />
536
+ <UIcon
537
+ name="i-ph-clock-counter-clockwise"
538
+ class="size-3"
539
+ />
482
540
  {{ $t('dms_lang.matrix.outdated') }}
483
541
  </span>
484
- <span v-if="props.state !== 'idle'" class="mt-1 flex">
542
+ <span
543
+ v-if="props.state !== 'idle'"
544
+ class="mt-1 flex"
545
+ >
485
546
  <DmsSaveStatus :state="props.state" />
486
547
  </span>
487
548
  </component>
@@ -94,10 +94,10 @@ function onDrop(target: string) {
94
94
  />
95
95
  <template #content>
96
96
  <div class="w-80 p-1.5">
97
- <DmsEyebrow
97
+ <DmsEyebrowLabel
98
98
  :label="$t('dms_lang.matrix.columns_hint')"
99
99
  size="xs"
100
- class="px-2 pt-1.5 pb-2"
100
+ class="px-2 pb-2 pt-1.5"
101
101
  />
102
102
  <ul class="space-y-0.5">
103
103
  <li
@@ -119,7 +119,10 @@ function onDrop(target: string) {
119
119
  @keydown.up.prevent="move(row.code, -1)"
120
120
  @keydown.down.prevent="move(row.code, 1)"
121
121
  >
122
- <UIcon name="i-ph-dots-six-vertical" class="size-4" />
122
+ <UIcon
123
+ name="i-ph-dots-six-vertical"
124
+ class="size-4"
125
+ />
123
126
  </button>
124
127
  <UCheckbox
125
128
  :model-value="row.shown"
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useLangFormat } from '../../../composables/translation/useLangFormat'
2
3
  interface Props {
3
4
  namespace: string
4
5
  keys: number
@@ -25,7 +25,7 @@ const split = computed(() => props.rowKey.lastIndexOf(NAMESPACE_SEPARATOR) + 1)
25
25
  <div class="flex items-start gap-1.5">
26
26
  <button
27
27
  type="button"
28
- class="hover:text-primary min-w-0 flex-1 text-left font-mono text-xs break-all"
28
+ class="hover:text-primary min-w-0 flex-1 break-all text-left font-mono text-xs"
29
29
  :title="$t('dms_lang.matrix.open_key')"
30
30
  @click="emit('open')"
31
31
  >
@@ -58,7 +58,7 @@ const split = computed(() => props.rowKey.lastIndexOf(NAMESPACE_SEPARATOR) + 1)
58
58
  color="neutral"
59
59
  variant="ghost"
60
60
  icon="i-ph-git-fork"
61
- class="-my-1 shrink-0 opacity-0 transition-opacity group-hover/row:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100"
61
+ class="-my-1 shrink-0 opacity-0 transition-opacity focus-visible:opacity-100 group-hover/row:opacity-100 [@media(hover:none)]:opacity-100"
62
62
  :aria-label="$t('dms_lang.matrix.override_named', { key: props.rowKey })"
63
63
  :title="$t('dms_lang.override.action')"
64
64
  @click="emit('override')"
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useLangFormat } from '../../../composables/translation/useLangFormat'
2
3
  import { watchDebounced } from '@vueuse/core'
3
4
  import type { TranslationFilter } from '../../../types/lang'
4
5
  import type {
@@ -131,7 +132,7 @@ watchDebounced(
131
132
  class="w-full"
132
133
  :aria-label="$t('dms_lang.matrix.filter_label')"
133
134
  />
134
- <DmsSegmented
135
+ <DmsSegmentedControl
135
136
  v-else
136
137
  v-model="filterModel"
137
138
  :items="filterItems"
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useWorkspaceContext } from '../../../composables/translation/useWorkspaceContext'
2
3
  import { QUEUE_KEYS } from '../../../utils/shortcuts'
3
4
  import ShortcutKbds from '../ShortcutKbds.vue'
4
5
  import { useQueue } from '../../composables/useQueueContext'
@@ -23,7 +24,12 @@ const { isSaving, isArmed } = save
23
24
  <ShortcutKbds :keys="QUEUE_KEYS.previous" />
24
25
  </UButton>
25
26
  <div class="flex-1" />
26
- <UButton color="neutral" variant="outline" size="sm" @click="skip">
27
+ <UButton
28
+ color="neutral"
29
+ variant="outline"
30
+ size="sm"
31
+ @click="skip"
32
+ >
27
33
  {{ $t('dms_lang.queue.skip') }}
28
34
  <ShortcutKbds :keys="QUEUE_KEYS.skip" />
29
35
  </UButton>
@@ -44,7 +50,11 @@ const { isSaving, isArmed } = save
44
50
  </UButton>
45
51
  </div>
46
52
  <p class="text-dimmed mt-2 text-xs">
47
- <i18n-t keypath="dms_lang.queue.shortcuts_hint" scope="global" tag="span">
53
+ <i18n-t
54
+ keypath="dms_lang.queue.shortcuts_hint"
55
+ scope="global"
56
+ tag="span"
57
+ >
48
58
  <template #leave>
49
59
  <ShortcutKbds :keys="QUEUE_KEYS.leaveField" />
50
60
  </template>
@@ -1,4 +1,7 @@
1
1
  <script setup lang="ts">
2
+ import { useLangFormat } from '../../../composables/translation/useLangFormat'
3
+ import { useLangLinks } from '../../../composables/translation/useLangLinks'
4
+ import { useWorkspaceFlat } from '../../../composables/translation/useWorkspaceFlat'
2
5
  import {
3
6
  QUEUE_MODES,
4
7
  type QueueMode,