@antelopejs/dms-lang 0.7.3-next.134.g8b58c3f → 0.7.3-next.136.g7c92ec0

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 (60) hide show
  1. package/README.md +2 -2
  2. package/dist/utils/zod-json.js.map +1 -1
  3. package/dist/validation/key.schema.d.ts +6 -48
  4. package/dist/validation/key.schema.js +1 -3
  5. package/dist/validation/key.schema.js.map +1 -1
  6. package/dist/validation/query.schema.d.ts +12 -12
  7. package/dist/validation/workspace.schema.d.ts +31 -109
  8. package/dist/validation/workspace.schema.js +1 -1
  9. package/dist/validation/workspace.schema.js.map +1 -1
  10. package/frontend-vue/.prettierignore +1 -0
  11. package/frontend-vue/app/build/components/KeyEditorDrawer.vue +4 -6
  12. package/frontend-vue/app/build/components/KeyStatus.vue +0 -2
  13. package/frontend-vue/app/build/components/LanguagePicker.vue +7 -4
  14. package/frontend-vue/app/build/components/WorkspaceCreateModal.vue +10 -8
  15. package/frontend-vue/app/build/components/form/FormFieldRow.vue +4 -2
  16. package/frontend-vue/app/build/components/form/WorkspaceDetailsFields.vue +1 -5
  17. package/frontend-vue/app/build/components/matrix/MatrixCell.vue +15 -12
  18. package/frontend-vue/app/build/components/matrix/MatrixToolbar.vue +7 -1
  19. package/frontend-vue/app/build/composables/useCellEditor.ts +1 -1
  20. package/frontend-vue/app/build/composables/useCellMoves.ts +7 -7
  21. package/frontend-vue/app/build/composables/useCellSaves.ts +4 -4
  22. package/frontend-vue/app/build/composables/useKeyPanel.ts +19 -15
  23. package/frontend-vue/app/build/composables/useKeySaves.ts +24 -18
  24. package/frontend-vue/app/build/composables/useMatrixView.ts +6 -5
  25. package/frontend-vue/app/build/composables/useQueueShortcuts.ts +9 -7
  26. package/frontend-vue/app/build/composables/useQueueToasts.ts +5 -4
  27. package/frontend-vue/app/build/matrix/MatrixDoneBanner.vue +0 -1
  28. package/frontend-vue/app/build/matrix/MatrixFooter.vue +0 -1
  29. package/frontend-vue/app/build/matrix/MatrixLanguageHeader.vue +0 -1
  30. package/frontend-vue/app/build/matrix/MatrixNoRows.vue +1 -1
  31. package/frontend-vue/app/components/WorkspaceGeneral.vue +4 -7
  32. package/frontend-vue/app/components/WorkspaceList.vue +4 -7
  33. package/frontend-vue/app/components/WorkspaceScope.vue +1 -1
  34. package/frontend-vue/app/composables/translation/useI18nWorkspaces.ts +24 -7
  35. package/frontend-vue/app/composables/translation/useKeyActions.ts +8 -8
  36. package/frontend-vue/app/composables/translation/useLangLinks.ts +7 -7
  37. package/frontend-vue/app/composables/translation/useLanguageActions.ts +6 -4
  38. package/frontend-vue/app/composables/translation/useLanguageQueue.ts +0 -1
  39. package/frontend-vue/app/composables/translation/useLocaleNames.ts +5 -2
  40. package/frontend-vue/app/composables/translation/useMutationToast.ts +27 -21
  41. package/frontend-vue/app/composables/translation/useQueueSession.ts +0 -1
  42. package/frontend-vue/app/composables/translation/useWorkspaceActions.ts +2 -46
  43. package/frontend-vue/app/composables/translation/useWorkspaceContext.ts +0 -3
  44. package/frontend-vue/app/composables/translation/useWorkspaceFlat.ts +23 -12
  45. package/frontend-vue/app/composables/translation/useWorkspaceLabel.ts +0 -1
  46. package/frontend-vue/app/composables/translation/useWorkspaceRoute.ts +0 -8
  47. package/frontend-vue/app/composables/translation/useWorkspaceTypes.ts +47 -0
  48. package/frontend-vue/app/utils/download.ts +3 -1
  49. package/frontend-vue/app/utils/keySaveErrors.ts +65 -16
  50. package/frontend-vue/app/utils/keySaves.ts +13 -11
  51. package/frontend-vue/app/utils/matrixExport.ts +2 -2
  52. package/frontend-vue/app/utils/queueDrafts.ts +1 -1
  53. package/frontend-vue/app/utils/shortcuts.ts +6 -10
  54. package/frontend-vue/app/utils/translations.ts +46 -45
  55. package/frontend-vue/app/utils/workspaceBackup.ts +22 -14
  56. package/frontend-vue/dms.frontend.ts +4 -5
  57. package/frontend-vue/eslint.config.mjs +16 -15
  58. package/frontend-vue/package.json +3 -3
  59. package/frontend-vue/tsconfig.json +6 -0
  60. package/package.json +9 -9
package/README.md CHANGED
@@ -51,8 +51,8 @@ Restart the backend, then the frontend, and open **Modules › Translations** (`
51
51
  | Package | Supported | Tested with |
52
52
  | ---------------------------- | ------------------ | ----------- |
53
53
  | `@antelopejs/interface-api` | `>=0.3.3 <0.4.0` | `0.3.3` |
54
- | `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
55
- | `@antelopejs/interface-dms` | `>=0.15.0 <0.16.0` | `0.15.0` |
54
+ | `@antelopejs/interface-core` | `>=0.5.2 <0.6.0` | `0.5.2` |
55
+ | `@antelopejs/interface-dms` | `>=0.16.0 <0.17.0` | `0.16.0` |
56
56
 
57
57
  <!-- antelopejs-docs-compat:end -->
58
58
 
@@ -1 +1 @@
1
- {"version":3,"file":"zod-json.js","sourceRoot":"","sources":["../../src/utils/zod-json.ts"],"names":[],"mappings":";;AAsBA,sCAKC;AAxBD,SAAS,MAAM,CAAC,KAAc;IAC5B,IACE,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,SAAS,EAC1B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACzE,CAAC;AAQD,SAAgB,aAAa,CAAC,MAA2B;IACvD,MAAM,IAAI,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QACf,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"zod-json.js","sourceRoot":"","sources":["../../src/utils/zod-json.ts"],"names":[],"mappings":";;AAqBA,sCAKC;AAvBD,SAAS,MAAM,CAAC,KAAc;IAC5B,IACE,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,SAAS,EAC1B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACzE,CAAC;AAOD,SAAgB,aAAa,CAAC,MAA2B;IACvD,MAAM,IAAI,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QACf,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -5,67 +5,25 @@ export declare const keySchema: {
5
5
  path: z.ZodString;
6
6
  values: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
7
7
  before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- }, "strip", z.ZodTypeAny, {
9
- values: Record<string, string | null>;
10
- path: string;
11
- workspace: string;
12
- before?: string | null | undefined;
13
- }, {
14
- values: Record<string, string | null>;
15
- path: string;
16
- workspace: string;
17
- before?: string | null | undefined;
18
- }>;
8
+ }, z.core.$strip>;
19
9
  update: z.ZodObject<{
20
10
  workspace: z.ZodString;
21
11
  path: z.ZodString;
22
12
  values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
23
13
  expected: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
24
- }, "strip", z.ZodTypeAny, {
25
- values: Record<string, string | null>;
26
- path: string;
27
- workspace: string;
28
- expected?: Record<string, string | null> | undefined;
29
- }, {
30
- path: string;
31
- workspace: string;
32
- values?: Record<string, string | null> | undefined;
33
- expected?: Record<string, string | null> | undefined;
34
- }>;
14
+ }, z.core.$strip>;
35
15
  rename: z.ZodObject<{
36
16
  workspace: z.ZodString;
37
17
  path: z.ZodString;
38
18
  newPath: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- path: string;
41
- workspace: string;
42
- newPath: string;
43
- }, {
44
- path: string;
45
- workspace: string;
46
- newPath: string;
47
- }>;
19
+ }, z.core.$strip>;
48
20
  remove: z.ZodObject<{
49
21
  workspace: z.ZodString;
50
22
  path: z.ZodString;
51
- }, "strip", z.ZodTypeAny, {
52
- path: string;
53
- workspace: string;
54
- }, {
55
- path: string;
56
- workspace: string;
57
- }>;
23
+ }, z.core.$strip>;
58
24
  locales: z.ZodObject<{
59
25
  workspace: z.ZodString;
60
26
  path: z.ZodString;
61
- locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
- }, "strip", z.ZodTypeAny, {
63
- path: string;
64
- workspace: string;
65
- locales?: string[] | undefined;
66
- }, {
67
- path: string;
68
- workspace: string;
69
- locales?: string[] | undefined;
70
- }>;
27
+ locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ }, z.core.$strip>;
71
29
  };
@@ -39,9 +39,7 @@ const errors_1 = require("../utils/errors");
39
39
  const INVALID_VALUE = (0, errors_1.errorMessage)("invalid_value");
40
40
  const workspace = z.string().trim().min(1);
41
41
  const keyPath = z.string().min(1);
42
- const localeTexts = z.record(z.string({ message: INVALID_VALUE }).nullable(), {
43
- message: INVALID_VALUE,
44
- });
42
+ const localeTexts = z.record(z.string(), z.string({ message: INVALID_VALUE }).nullable(), { message: INVALID_VALUE });
45
43
  const localeCodes = z.array(z.string());
46
44
  exports.keySchema = {
47
45
  create: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"key.schema.js","sourceRoot":"","sources":["../../src/validation/key.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,4CAA+C;AAE/C,MAAM,aAAa,GAAG,IAAA,qBAAY,EAAC,eAAe,CAAC,CAAC;AAEpD,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAGlC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE;IAC5E,OAAO,EAAE,aAAa;CACvB,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAG3B,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,SAAS;QACT,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;KAC7B,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,SAAS;QACT,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;QAC/B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE;KACjC,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAChE,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EAAE,CAAC;QAC/B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE;KACjC,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAChE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,SAAS;QACT,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,WAAW,CAAC,QAAQ,EAAE;KAChC,CAAC;CACH,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import * as z from "zod";
2
2
  export declare const querySchema: {
3
3
  snippet: z.ZodObject<{
4
- kind: z.ZodDefault<z.ZodEnum<["vue", "i18next", "fetch", "curl"]>>;
5
- }, "strip", z.ZodTypeAny, {
6
- kind: "vue" | "i18next" | "fetch" | "curl";
7
- }, {
8
- kind?: "vue" | "i18next" | "fetch" | "curl" | undefined;
9
- }>;
4
+ kind: z.ZodDefault<z.ZodEnum<{
5
+ vue: "vue";
6
+ i18next: "i18next";
7
+ fetch: "fetch";
8
+ curl: "curl";
9
+ }>>;
10
+ }, z.core.$strip>;
10
11
  notice: z.ZodObject<{
11
- page: z.ZodDefault<z.ZodEnum<["overview", "workspace"]>>;
12
- }, "strip", z.ZodTypeAny, {
13
- page: "overview" | "workspace";
14
- }, {
15
- page?: "overview" | "workspace" | undefined;
16
- }>;
12
+ page: z.ZodDefault<z.ZodEnum<{
13
+ overview: "overview";
14
+ workspace: "workspace";
15
+ }>>;
16
+ }, z.core.$strip>;
17
17
  };
@@ -3,144 +3,66 @@ import { type JsonValue } from "../utils/json";
3
3
  export declare const workspaceSchema: {
4
4
  create: z.ZodObject<{
5
5
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["dms", "website", "mobile", "other"]>, z.ZodLiteral<"">]>>>;
6
+ type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
7
+ mobile: "mobile";
8
+ dms: "dms";
9
+ website: "website";
10
+ other: "other";
11
+ }>, z.ZodLiteral<"">]>>>;
7
12
  id: z.ZodString;
8
13
  locale: z.ZodObject<{
9
14
  code: z.ZodString;
10
15
  name: z.ZodOptional<z.ZodString>;
11
16
  flag: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- code: string;
14
- name?: string | undefined;
15
- flag?: string | undefined;
16
- }, {
17
- code: string;
18
- name?: string | undefined;
19
- flag?: string | undefined;
20
- }>;
21
- }, "strip", z.ZodTypeAny, {
22
- id: string;
23
- locale: {
24
- code: string;
25
- name?: string | undefined;
26
- flag?: string | undefined;
27
- };
28
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
29
- description?: string | null | undefined;
30
- }, {
31
- id: string;
32
- locale: {
33
- code: string;
34
- name?: string | undefined;
35
- flag?: string | undefined;
36
- };
37
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
38
- description?: string | null | undefined;
39
- }>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
40
19
  update: z.ZodObject<{
41
20
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["dms", "website", "mobile", "other"]>, z.ZodLiteral<"">]>>>;
21
+ type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
22
+ mobile: "mobile";
23
+ dms: "dms";
24
+ website: "website";
25
+ other: "other";
26
+ }>, z.ZodLiteral<"">]>>>;
43
27
  id: z.ZodString;
44
- }, "strip", z.ZodTypeAny, {
45
- id: string;
46
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
47
- description?: string | null | undefined;
48
- }, {
49
- id: string;
50
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
51
- description?: string | null | undefined;
52
- }>;
28
+ }, z.core.$strip>;
53
29
  rename: z.ZodObject<{
54
30
  id: z.ZodString;
55
31
  newId: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- newId: string;
59
- }, {
60
- id: string;
61
- newId: string;
62
- }>;
32
+ }, z.core.$strip>;
63
33
  remove: z.ZodObject<{
64
34
  id: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- id: string;
67
- }, {
68
- id: string;
69
- }>;
35
+ }, z.core.$strip>;
70
36
  import: z.ZodObject<{
71
37
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["dms", "website", "mobile", "other"]>, z.ZodLiteral<"">]>>>;
73
- format: z.ZodOptional<z.ZodEnum<["dms-lang.workspace"]>>;
38
+ type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
39
+ mobile: "mobile";
40
+ dms: "dms";
41
+ website: "website";
42
+ other: "other";
43
+ }>, z.ZodLiteral<"">]>>>;
44
+ format: z.ZodOptional<z.ZodEnum<{
45
+ "dms-lang.workspace": "dms-lang.workspace";
46
+ }>>;
74
47
  version: z.ZodOptional<z.ZodNumber>;
75
48
  id: z.ZodString;
76
- messages: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
49
+ messages: z.ZodRecord<z.ZodString, z.ZodCustom<JsonValue, JsonValue>>;
77
50
  locales: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
51
  code: z.ZodString;
79
52
  name: z.ZodOptional<z.ZodString>;
80
53
  flag: z.ZodOptional<z.ZodString>;
81
- }, "strip", z.ZodTypeAny, {
82
- code: string;
83
- name?: string | undefined;
84
- flag?: string | undefined;
85
- }, {
86
- code: string;
87
- name?: string | undefined;
88
- flag?: string | undefined;
89
- }>, "many">>;
54
+ }, z.core.$strip>>>;
90
55
  defaultLocale: z.ZodOptional<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- id: string;
93
- messages: Record<string, JsonValue>;
94
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
95
- version?: number | undefined;
96
- description?: string | null | undefined;
97
- defaultLocale?: string | undefined;
98
- locales?: {
99
- code: string;
100
- name?: string | undefined;
101
- flag?: string | undefined;
102
- }[] | undefined;
103
- format?: "dms-lang.workspace" | undefined;
104
- }, {
105
- id: string;
106
- messages: Record<string, JsonValue>;
107
- type?: "" | "mobile" | "dms" | "website" | "other" | null | undefined;
108
- version?: number | undefined;
109
- description?: string | null | undefined;
110
- defaultLocale?: string | undefined;
111
- locales?: {
112
- code: string;
113
- name?: string | undefined;
114
- flag?: string | undefined;
115
- }[] | undefined;
116
- format?: "dms-lang.workspace" | undefined;
117
- }>;
56
+ }, z.core.$strip>;
118
57
  addLocale: z.ZodObject<{
119
58
  code: z.ZodString;
120
59
  name: z.ZodOptional<z.ZodString>;
121
60
  flag: z.ZodOptional<z.ZodString>;
122
- } & {
123
61
  workspace: z.ZodString;
124
- }, "strip", z.ZodTypeAny, {
125
- code: string;
126
- workspace: string;
127
- name?: string | undefined;
128
- flag?: string | undefined;
129
- }, {
130
- code: string;
131
- workspace: string;
132
- name?: string | undefined;
133
- flag?: string | undefined;
134
- }>;
62
+ }, z.core.$strip>;
135
63
  language: z.ZodObject<{
136
64
  workspace: z.ZodString;
137
65
  code: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- code: string;
140
- workspace: string;
141
- }, {
142
- code: string;
143
- workspace: string;
144
- }>;
66
+ }, z.core.$strip>;
145
67
  };
146
68
  export type ImportInput = z.infer<typeof workspaceSchema.import>;
@@ -73,7 +73,7 @@ exports.workspaceSchema = {
73
73
  remove: z.object({ id }),
74
74
  import: z.object({
75
75
  id,
76
- messages: z.record(jsonValue, {
76
+ messages: z.record(z.string(), jsonValue, {
77
77
  message: (0, errors_1.errorMessage)("invalid_value"),
78
78
  }),
79
79
  locales: z.array(localeEntry).opt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QAAQ,EAAE;QACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,GAAG,WAAW;QACd,GAAG,OAAO;KACX,CAAC;IACF,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;CAC5C,CAAC"}
@@ -1 +1,2 @@
1
1
  i18n/locales/*.json
2
+ .dms-types
@@ -266,7 +266,6 @@ function overwrite(code: string) {
266
266
  save([code])
267
267
  }
268
268
 
269
- // Labels a language's field with its name, for assistive technologies.
270
269
  function fieldIdOf(code: string): string {
271
270
  return `${fieldIds}-${code}`
272
271
  }
@@ -293,11 +292,13 @@ function knownInheritedOf(path: string) {
293
292
 
294
293
  function settle(codes: string[], values: Record<string, string>) {
295
294
  const rest = new Map(Object.entries(drafts.value))
295
+ const texts = new Map(Object.entries(values))
296
296
  for (const code of codes) {
297
- const isDone = rest.get(code) === values[code]
297
+ const text = texts.get(code)
298
+ const isDone = rest.get(code) === text
298
299
  if (isDone) rest.delete(code)
299
300
  if (isDone) editStarts.end(code)
300
- else editStarts.set(code, storedText(values[code]))
301
+ else editStarts.set(code, storedText(text ?? ''))
301
302
  setFieldState(code, 'idle')
302
303
  states.flashSaved(code)
303
304
  }
@@ -515,9 +516,6 @@ watch(
515
516
  },
516
517
  )
517
518
 
518
- // The drawer's X, Escape and a click outside close it through its guards:
519
- // the panel saves first and stays open on what it could not save, the
520
- // field that holds it saying why.
521
519
  if (props.containerId)
522
520
  onScopeDispose(useLeaveGuard().addGuard(props.containerId, flush))
523
521
 
@@ -1,8 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import PlaceholderText from './PlaceholderText.vue'
3
3
 
4
- // Under the key in the DMS row header of the key panel: what the key
5
- // misses, its issues and its base text's placeholders.
6
4
  interface Props {
7
5
  missingCount: number
8
6
  issueCount: number
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import type { VNode } from 'vue'
2
3
  import { useLocaleNames } from '../../composables/translation/useLocaleNames'
3
4
  import type { SelectMenuItem } from '@nuxt/ui'
4
5
  import { typedLocaleCode, type LanguageOption } from '../../utils/languages'
@@ -24,10 +25,13 @@ interface Emits {
24
25
 
25
26
  interface Slots {
26
27
  /** What the list says when the search finds nothing. */
27
- empty?: () => unknown
28
+ empty?: () => VNode[]
28
29
  }
29
30
 
30
- const STEP_KEYS: Record<string, number> = { ArrowDown: 1, ArrowUp: -1 }
31
+ const STEP_KEYS = new Map([
32
+ ['ArrowDown', 1],
33
+ ['ArrowUp', -1],
34
+ ])
31
35
  const LISTBOX_ID = 'language-picker-options'
32
36
 
33
37
  const props = withDefaults(defineProps<Props>(), {
@@ -83,7 +87,6 @@ function optionId(value: string): string {
83
87
  return `${LISTBOX_ID}-${value}`
84
88
  }
85
89
 
86
- /** Typing a code the list offers picks it. */
87
90
  watch(search, () => {
88
91
  if (!props.isOpen) return
89
92
  const exact = typedLocaleCode(search.value)
@@ -92,7 +95,7 @@ watch(search, () => {
92
95
  })
93
96
 
94
97
  function step(event: KeyboardEvent) {
95
- const delta = STEP_KEYS[event.key]
98
+ const delta = STEP_KEYS.get(event.key)
96
99
  const list = free.value
97
100
  if (!delta || !list.length) return
98
101
  event.preventDefault()
@@ -72,10 +72,10 @@ function close(workspace: string | null) {
72
72
 
73
73
  function detailsOf(): WorkspaceDetails {
74
74
  const text = description.value.trim()
75
- return {
76
- ...(text ? { description: text } : {}),
77
- ...(type.value ? { type: type.value } : {}),
78
- }
75
+ const details: WorkspaceDetails = {}
76
+ if (text) details.description = text
77
+ if (type.value) details.type = type.value
78
+ return details
79
79
  }
80
80
 
81
81
  /** The backup with the details as the form leaves them: a field emptied clears the backup's. */
@@ -88,10 +88,12 @@ function importOf(backup: WorkspaceBackup) {
88
88
  }
89
89
  }
90
90
 
91
- function send(id: string): Promise<unknown> {
92
- if (!props.backup)
93
- return createWorkspace(id, { code: base.value }, detailsOf())
94
- return importWorkspace(id, importOf(props.backup))
91
+ async function send(id: string): Promise<void> {
92
+ if (!props.backup) {
93
+ await createWorkspace(id, { code: base.value }, detailsOf())
94
+ return
95
+ }
96
+ await importWorkspace(id, importOf(props.backup))
95
97
  }
96
98
 
97
99
  async function submit() {
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import type { VNode } from 'vue'
3
+
2
4
  /**
3
5
  * One field of a hand-built form, drawn as a DMS form draws its rows
4
6
  * (`FormEntries` / `FormFieldControl`): a `DmsFieldRow` holding the label,
@@ -25,9 +27,9 @@ interface FormFieldRowControl {
25
27
 
26
28
  interface FormFieldRowSlots {
27
29
  /** The control; bind `id` onto it. */
28
- default?: (control: FormFieldRowControl) => unknown
30
+ default?: (control: FormFieldRowControl) => VNode[]
29
31
  /** Inline after the label (a badge). */
30
- 'label-extra'?: () => unknown
32
+ 'label-extra'?: () => VNode[]
31
33
  }
32
34
 
33
35
  const props = withDefaults(defineProps<FormFieldRowProps>(), {
@@ -1,9 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { useWorkspaceTypes } from '../../../composables/translation/useWorkspaceActions'
3
- /**
4
- * What a workspace is for: its free description and its type, as rows of a
5
- * hand-built form (`FormRows`).
6
- */
2
+ import { useWorkspaceTypes } from '../../../composables/translation/useWorkspaceTypes'
7
3
  import type { WorkspaceType } from '../../../types/lang'
8
4
  import FormFieldRow from './FormFieldRow.vue'
9
5
 
@@ -170,21 +170,24 @@ function openPanel() {
170
170
  emit('openPanel', props.rowKey, props.code, draft.value)
171
171
  }
172
172
 
173
- const KEY_HANDLERS: Record<string, KeyHandler> = {
174
- Escape: () => cancel,
175
- Tab: (event) => () => commit(event.shiftKey ? 'previous' : 'next'),
176
- Enter: (event) => {
177
- if (event.altKey) return undefined
178
- const hasModifier = event.ctrlKey || event.metaKey
179
- if (hasModifier && event.shiftKey) return openPanel
180
- if (hasModifier) return () => commit('stay')
181
- return event.shiftKey ? undefined : () => commit('down')
182
- },
183
- }
173
+ const KEY_HANDLERS = new Map<string, KeyHandler>([
174
+ ['Escape', () => cancel],
175
+ ['Tab', (event) => () => commit(event.shiftKey ? 'previous' : 'next')],
176
+ [
177
+ 'Enter',
178
+ (event) => {
179
+ if (event.altKey) return undefined
180
+ const hasModifier = event.ctrlKey || event.metaKey
181
+ if (hasModifier && event.shiftKey) return openPanel
182
+ if (hasModifier) return () => commit('stay')
183
+ return event.shiftKey ? undefined : () => commit('down')
184
+ },
185
+ ],
186
+ ])
184
187
 
185
188
  function onKeydown(event: KeyboardEvent) {
186
189
  if (event.isComposing) return
187
- const action = KEY_HANDLERS[event.key]?.(event)
190
+ const action = KEY_HANDLERS.get(event.key)?.(event)
188
191
  if (!action) return
189
192
  event.preventDefault()
190
193
  event.stopPropagation()
@@ -27,6 +27,12 @@ interface Props {
27
27
  const SEARCH_DELAY_MS = 200
28
28
  const ANY_LANGUAGE = '*'
29
29
  const ALL_NAMESPACES = '*'
30
+ const FILTER_ORDER: TranslationFilter[] = [
31
+ 'all',
32
+ 'missing',
33
+ 'complete',
34
+ 'issues',
35
+ ]
30
36
  const FILTER_LABELS: Record<TranslationFilter, string> = {
31
37
  all: 'dms_lang.matrix.filter_all',
32
38
  missing: 'dms_lang.matrix.filter_missing',
@@ -43,7 +49,7 @@ const { formatCount } = useLangFormat()
43
49
  const searchInput = ref(filters.value.search)
44
50
 
45
51
  const filterItems = computed(() =>
46
- (Object.keys(FILTER_LABELS) as TranslationFilter[]).map((value) => ({
52
+ FILTER_ORDER.map((value) => ({
47
53
  value,
48
54
  label: t(
49
55
  value === 'missing' && props.countedLanguages > 1
@@ -126,7 +126,7 @@ function moveFrom(
126
126
  move: CellMove,
127
127
  ) {
128
128
  const target = context.options.targetOf({ key, code }, move)
129
- if (target) nextTick(() => startEdit(context, target.key, target.code))
129
+ if (target) void nextTick(() => startEdit(context, target.key, target.code))
130
130
  else if (move !== 'stay') context.options.onMoveEnd({ key, code })
131
131
  }
132
132
 
@@ -21,12 +21,12 @@ type MoveTarget = (options: CellMovesOptions, cell: CellRef) => CellRef | null
21
21
 
22
22
  const TYPING_FIELDS = 'input, textarea, select, [contenteditable]'
23
23
  const GRID_CELL = 'td[data-row]'
24
- const ARROW_STEPS: Record<string, [number, number]> = {
25
- ArrowUp: [-1, 0],
26
- ArrowDown: [1, 0],
27
- ArrowLeft: [0, -1],
28
- ArrowRight: [0, 1],
29
- }
24
+ const ARROW_STEPS = new Map<string, [number, number]>([
25
+ ['ArrowUp', [-1, 0]],
26
+ ['ArrowDown', [1, 0]],
27
+ ['ArrowLeft', [0, -1]],
28
+ ['ArrowRight', [0, 1]],
29
+ ])
30
30
 
31
31
  function navigableCodes(options: CellMovesOptions, code: string): string[] {
32
32
  const base = options.baseLocale()
@@ -126,7 +126,7 @@ export function focusNeighbourCell(
126
126
  event: KeyboardEvent,
127
127
  grid: HTMLElement | undefined,
128
128
  ) {
129
- const step = ARROW_STEPS[event.key]
129
+ const step = ARROW_STEPS.get(event.key)
130
130
  const cell =
131
131
  event.target instanceof HTMLElement
132
132
  ? event.target.closest<HTMLElement>(GRID_CELL)
@@ -161,12 +161,12 @@ function useCellReports(
161
161
  retry: (address: CellAddress) => void,
162
162
  discard: (address: CellAddress) => void,
163
163
  ) {
164
- const { presentError } = useApiErrorPresenter()
164
+ const presenter = useApiErrorPresenter()
165
165
  const { reportFailure } = useMutationToast()
166
166
 
167
167
  return {
168
- conflict(address: CellAddress, error: unknown) {
169
- presentError(error, {
168
+ conflict(address: CellAddress, error: Error) {
169
+ presenter.presentError(error, {
170
170
  fallbackKey: 'dms_lang.matrix.conflict',
171
171
  params: { ...address },
172
172
  actions: [
@@ -181,7 +181,7 @@ function useCellReports(
181
181
  ],
182
182
  })
183
183
  },
184
- failure(address: CellAddress, error: unknown, canRetry = true) {
184
+ failure(address: CellAddress, error: Error, canRetry = true) {
185
185
  reportFailure(error, {
186
186
  fallbackKey: 'dms_lang.matrix.save_failed',
187
187
  params: { ...address },