@dpuse/dpuse-shared 0.3.816 → 0.3.822

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 (54) hide show
  1. package/README.md +45 -9
  2. package/dist/{componentConfig.schema-Dxqinpxy.js → componentConfig.schema-DT3mO5rS.js} +80 -64
  3. package/dist/componentConfig.schema-DT3mO5rS.js.map +1 -0
  4. package/dist/dpuse-shared-component.es.js +2 -2
  5. package/dist/dpuse-shared-component.es.js.map +1 -0
  6. package/dist/dpuse-shared-componentDataView.es.js +1 -1
  7. package/dist/dpuse-shared-componentDataView.es.js.map +1 -0
  8. package/dist/dpuse-shared-componentModuleConnector.es.js +17 -17
  9. package/dist/dpuse-shared-componentModuleConnector.es.js.map +1 -0
  10. package/dist/dpuse-shared-componentModuleCookbook.es.js +5 -5
  11. package/dist/dpuse-shared-componentModuleCookbook.es.js.map +1 -0
  12. package/dist/dpuse-shared-componentModulePresenter.es.js +6 -6
  13. package/dist/dpuse-shared-componentModulePresenter.es.js.map +1 -0
  14. package/dist/dpuse-shared-componentModuleTool.es.js.map +1 -0
  15. package/dist/dpuse-shared-componentRecipe.es.js.map +1 -0
  16. package/dist/dpuse-shared-encoding.es.js +232 -120
  17. package/dist/dpuse-shared-encoding.es.js.map +1 -0
  18. package/dist/dpuse-shared-errors.es.js.map +1 -0
  19. package/dist/dpuse-shared-locale.es.js +8 -24
  20. package/dist/dpuse-shared-locale.es.js.map +1 -0
  21. package/dist/dpuse-shared-utilities.es.js +4 -11
  22. package/dist/dpuse-shared-utilities.es.js.map +1 -0
  23. package/dist/label-DexpXrnC.js +19 -0
  24. package/dist/label-DexpXrnC.js.map +1 -0
  25. package/dist/moduleConfig.schema-aYmFWSrn.js +22 -0
  26. package/dist/moduleConfig.schema-aYmFWSrn.js.map +1 -0
  27. package/dist/types/src/baseConfig.schema.d.ts +2 -2
  28. package/dist/types/src/component/componentConfig.schema.d.ts +13 -14
  29. package/dist/types/src/component/connection/index.d.ts +1 -1
  30. package/dist/types/src/component/context/model/dimension/hierarchy/index.d.ts +1 -1
  31. package/dist/types/src/component/context/model/entity/dataItem/index.d.ts +1 -1
  32. package/dist/types/src/component/context/model/entity/event/index.d.ts +1 -1
  33. package/dist/types/src/component/context/model/entity/index.d.ts +1 -1
  34. package/dist/types/src/component/context/model/entity/primaryMeasure/index.d.ts +1 -1
  35. package/dist/types/src/component/index.d.ts +3 -3
  36. package/dist/types/src/component/module/connector/connectorConfig.schema.d.ts +14 -14
  37. package/dist/types/src/component/module/cookbook/cookbookConfig.schema.d.ts +7 -7
  38. package/dist/types/src/component/module/engine/index.d.ts +3 -2
  39. package/dist/types/src/component/module/moduleConfig.schema.d.ts +7 -7
  40. package/dist/types/src/component/module/presenter/presenterConfig.schema.d.ts +7 -7
  41. package/dist/types/src/encoding/index.d.ts +467 -6
  42. package/dist/types/src/index.d.ts +2 -2
  43. package/dist/types/src/locale/index.d.ts +2 -14
  44. package/dist/types/src/locale/label.d.ts +13 -0
  45. package/dist/types/src/locale/locale.schema.d.ts +3 -3
  46. package/package.json +15 -9
  47. package/dist/moduleConfig.schema-B_EBeUaj.js +0 -22
  48. package/dist/types/eslint.config.d.ts +0 -3
  49. package/dist/types/tests/errors/index.test.d.ts +0 -1
  50. package/dist/types/tests/locale/index.test.d.ts +0 -1
  51. package/dist/types/tests/schema/index.test.d.ts +0 -1
  52. package/dist/types/tests/utilities/index.test.d.ts +0 -1
  53. package/dist/types/vite.config.d.ts +0 -2
  54. package/dist/types/vitest.config.d.ts +0 -2
@@ -1,17 +1,17 @@
1
1
  export declare const presenterActionNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"list", undefined>, import('valibot').LiteralSchema<"render", undefined>, import('valibot').LiteralSchema<"setColorMode", undefined>], undefined>;
2
- export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
2
+ export declare const presenterConfigSchema: import('valibot').StrictObjectSchema<{
3
3
  readonly typeId: import('valibot').LiteralSchema<"presenter", undefined>;
4
4
  readonly actionNames: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"list", undefined>, import('valibot').LiteralSchema<"render", undefined>, import('valibot').LiteralSchema<"setColorMode", undefined>], undefined>, undefined>;
5
- readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
5
+ readonly presentations: import('valibot').ArraySchema<import('valibot').StrictObjectSchema<{
6
6
  readonly order: import('valibot').NumberSchema<undefined>;
7
7
  readonly path: import('valibot').StringSchema<undefined>;
8
8
  readonly typeId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"app", undefined>, import('valibot').LiteralSchema<"connector", undefined>, import('valibot').LiteralSchema<"connectorConnection", undefined>, import('valibot').LiteralSchema<"context", undefined>, import('valibot').LiteralSchema<"contextArea", undefined>, import('valibot').LiteralSchema<"contextModel", undefined>, import('valibot').LiteralSchema<"contextModelDimension", undefined>, import('valibot').LiteralSchema<"contextModelDimensionHierarchy", undefined>, import('valibot').LiteralSchema<"contextModelEntity", undefined>, import('valibot').LiteralSchema<"contextModelEntityDataItem", undefined>, import('valibot').LiteralSchema<"contextModelEntityEvent", undefined>, import('valibot').LiteralSchema<"contextModelEntityPrimaryMeasure", undefined>, import('valibot').LiteralSchema<"contextModelSecondaryMeasure", undefined>, import('valibot').LiteralSchema<"cookbook", undefined>, import('valibot').LiteralSchema<"cookbookRecipe", undefined>, import('valibot').LiteralSchema<"dataView", undefined>, import('valibot').LiteralSchema<"engine", undefined>, import('valibot').LiteralSchema<"eventQuery", undefined>, import('valibot').LiteralSchema<"presenter", undefined>, import('valibot').LiteralSchema<"presenterPresentation", undefined>, import('valibot').LiteralSchema<"tool", undefined>], undefined>;
9
9
  readonly id: import('valibot').StringSchema<undefined>;
10
- readonly label: import('valibot').ObjectSchema<{
10
+ readonly label: import('valibot').StrictObjectSchema<{
11
11
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
12
12
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
13
13
  }, undefined>;
14
- readonly description: import('valibot').ObjectSchema<{
14
+ readonly description: import('valibot').StrictObjectSchema<{
15
15
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
16
16
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
17
17
  }, undefined>;
@@ -24,17 +24,17 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
24
24
  readonly version: import('valibot').StringSchema<undefined>;
25
25
  readonly firstCreatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
26
26
  readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
27
- readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
27
+ readonly status: import('valibot').NullableSchema<import('valibot').StrictObjectSchema<{
28
28
  readonly color: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"danger", undefined>, import('valibot').LiteralSchema<"success", undefined>, import('valibot').LiteralSchema<"warning", undefined>], undefined>;
29
29
  readonly label: import('valibot').StringSchema<undefined>;
30
30
  }, undefined>, undefined>;
31
31
  readonly statusId: import('valibot').NullableSchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"alpha", undefined>, import('valibot').LiteralSchema<"beta", undefined>, import('valibot').LiteralSchema<"releaseCandidate", undefined>, import('valibot').LiteralSchema<"generalAvailability", undefined>], undefined>, undefined>;
32
32
  readonly id: import('valibot').StringSchema<undefined>;
33
- readonly label: import('valibot').ObjectSchema<{
33
+ readonly label: import('valibot').StrictObjectSchema<{
34
34
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
35
35
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
36
36
  }, undefined>;
37
- readonly description: import('valibot').ObjectSchema<{
37
+ readonly description: import('valibot').StrictObjectSchema<{
38
38
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
39
39
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
40
40
  }, undefined>;
@@ -1,13 +1,474 @@
1
- export interface EncodingConfig {
2
- id: string;
3
- confidenceLevel: number | undefined;
1
+ import { LocaleId, LocaleLabel } from '../locale/label';
2
+ export type EncodingGroupId = keyof typeof ENCODING_GROUP_CONFIG_DATA;
3
+ export type EncodingTypeId = keyof typeof ENCODING_TYPE_CONFIG_DATA;
4
+ export interface EncodingGroupConfig {
5
+ id: EncodingGroupId;
6
+ label: LocaleLabel;
4
7
  }
5
8
  export interface EncodingTypeConfig {
6
- id: string;
9
+ id: EncodingTypeId;
10
+ groupId: EncodingGroupId | null;
11
+ isDetectable: boolean;
12
+ isDecodable: boolean;
13
+ }
14
+ export interface EncodingTypeConfigLocalised {
15
+ id: EncodingTypeId;
7
16
  groupLabel: string;
8
17
  label: string;
9
18
  isDetectable: boolean;
10
19
  isDecodable: boolean;
11
20
  }
12
- export declare const encodingConfigMap: Record<string, EncodingTypeConfig>;
13
- export declare function getEncodingTypeConfigs(localeId?: string): EncodingTypeConfig[];
21
+ export interface EncodingDetectionConfig {
22
+ id: EncodingTypeId;
23
+ confidenceLevel: number | undefined;
24
+ }
25
+ declare const ENCODING_GROUP_CONFIG_DATA: {
26
+ readonly arabic: {
27
+ readonly id: "arabic";
28
+ readonly label: {
29
+ readonly en: "Arabic";
30
+ readonly es: "Árabe";
31
+ };
32
+ };
33
+ readonly baltic: {
34
+ readonly id: "baltic";
35
+ readonly label: {
36
+ readonly en: "Baltic";
37
+ readonly es: "Báltico";
38
+ };
39
+ };
40
+ readonly celtic: {
41
+ readonly id: "celtic";
42
+ readonly label: {
43
+ readonly en: "Celtic";
44
+ readonly es: "Celta";
45
+ };
46
+ };
47
+ readonly centralEuropean: {
48
+ readonly id: "centralEuropean";
49
+ readonly label: {
50
+ readonly en: "Central European";
51
+ readonly es: "Centroeuropeo";
52
+ };
53
+ };
54
+ readonly chineseSimplified: {
55
+ readonly id: "chineseSimplified";
56
+ readonly label: {
57
+ readonly en: "Chinese Simplified";
58
+ readonly es: "Chino simplificado";
59
+ };
60
+ };
61
+ readonly chineseTraditional: {
62
+ readonly id: "chineseTraditional";
63
+ readonly label: {
64
+ readonly en: "Chinese Traditional";
65
+ readonly es: "Chino tradicional";
66
+ };
67
+ };
68
+ readonly cyrillic: {
69
+ readonly id: "cyrillic";
70
+ readonly label: {
71
+ readonly en: "Cyrillic";
72
+ readonly es: "Cirílico";
73
+ };
74
+ };
75
+ readonly greek: {
76
+ readonly id: "greek";
77
+ readonly label: {
78
+ readonly en: "Greek";
79
+ readonly es: "Griego";
80
+ };
81
+ };
82
+ readonly hebrew: {
83
+ readonly id: "hebrew";
84
+ readonly label: {
85
+ readonly en: "Hebrew";
86
+ readonly es: "Hebreo";
87
+ };
88
+ };
89
+ readonly japanese: {
90
+ readonly id: "japanese";
91
+ readonly label: {
92
+ readonly en: "Japanese";
93
+ readonly es: "Japonés";
94
+ };
95
+ };
96
+ readonly korean: {
97
+ readonly id: "korean";
98
+ readonly label: {
99
+ readonly en: "Korean";
100
+ readonly es: "Coreano";
101
+ };
102
+ };
103
+ readonly nordic: {
104
+ readonly id: "nordic";
105
+ readonly label: {
106
+ readonly en: "Nordic";
107
+ readonly es: "Nórdico";
108
+ };
109
+ };
110
+ readonly other: {
111
+ readonly id: "other";
112
+ readonly label: {
113
+ readonly en: "Other";
114
+ readonly es: "Otro";
115
+ };
116
+ };
117
+ readonly romanian: {
118
+ readonly id: "romanian";
119
+ readonly label: {
120
+ readonly en: "Romanian";
121
+ readonly es: "Rumano";
122
+ };
123
+ };
124
+ readonly southernEuropean: {
125
+ readonly id: "southernEuropean";
126
+ readonly label: {
127
+ readonly en: "Southern European";
128
+ readonly es: "Europeo meridional";
129
+ };
130
+ };
131
+ readonly thai: {
132
+ readonly id: "thai";
133
+ readonly label: {
134
+ readonly en: "Thai";
135
+ readonly es: "Tailandés";
136
+ };
137
+ };
138
+ readonly turkish: {
139
+ readonly id: "turkish";
140
+ readonly label: {
141
+ readonly en: "Turkish";
142
+ readonly es: "Turco";
143
+ };
144
+ };
145
+ readonly unicode16: {
146
+ readonly id: "unicode16";
147
+ readonly label: {
148
+ readonly en: "Unicode 16";
149
+ readonly es: "Unicode 16";
150
+ };
151
+ };
152
+ readonly unicode32: {
153
+ readonly id: "unicode32";
154
+ readonly label: {
155
+ readonly en: "Unicode 32";
156
+ readonly es: "Unicode 32";
157
+ };
158
+ };
159
+ readonly vietnamese: {
160
+ readonly id: "vietnamese";
161
+ readonly label: {
162
+ readonly en: "Vietnamese";
163
+ readonly es: "Vietnamita";
164
+ };
165
+ };
166
+ readonly western: {
167
+ readonly id: "western";
168
+ readonly label: {
169
+ readonly en: "Western";
170
+ readonly es: "Occidental";
171
+ };
172
+ };
173
+ };
174
+ declare const ENCODING_TYPE_CONFIG_DATA: {
175
+ readonly ascii: {
176
+ readonly id: "ascii";
177
+ readonly groupId: null;
178
+ readonly isDetectable: false;
179
+ readonly isDecodable: true;
180
+ };
181
+ readonly big5: {
182
+ readonly id: "big5";
183
+ readonly groupId: "chineseTraditional";
184
+ readonly isDetectable: true;
185
+ readonly isDecodable: true;
186
+ };
187
+ readonly 'euc-jp': {
188
+ readonly id: "euc-jp";
189
+ readonly groupId: "japanese";
190
+ readonly isDetectable: true;
191
+ readonly isDecodable: true;
192
+ };
193
+ readonly 'euc-kr': {
194
+ readonly id: "euc-kr";
195
+ readonly groupId: "korean";
196
+ readonly isDetectable: true;
197
+ readonly isDecodable: true;
198
+ };
199
+ readonly gb18030: {
200
+ readonly id: "gb18030";
201
+ readonly groupId: "chineseSimplified";
202
+ readonly isDetectable: true;
203
+ readonly isDecodable: true;
204
+ };
205
+ readonly gbk: {
206
+ readonly id: "gbk";
207
+ readonly groupId: "chineseSimplified";
208
+ readonly isDetectable: false;
209
+ readonly isDecodable: true;
210
+ };
211
+ readonly ibm866: {
212
+ readonly id: "ibm866";
213
+ readonly groupId: "cyrillic";
214
+ readonly isDetectable: false;
215
+ readonly isDecodable: true;
216
+ };
217
+ readonly 'iso-2022-cn': {
218
+ readonly id: "iso-2022-cn";
219
+ readonly groupId: "chineseSimplified";
220
+ readonly isDetectable: true;
221
+ readonly isDecodable: false;
222
+ };
223
+ readonly 'iso-2022-jp': {
224
+ readonly id: "iso-2022-jp";
225
+ readonly groupId: "japanese";
226
+ readonly isDetectable: true;
227
+ readonly isDecodable: true;
228
+ };
229
+ readonly 'iso-2022-kr': {
230
+ readonly id: "iso-2022-kr";
231
+ readonly groupId: "korean";
232
+ readonly isDetectable: true;
233
+ readonly isDecodable: false;
234
+ };
235
+ readonly 'iso-8859-1': {
236
+ readonly id: "iso-8859-1";
237
+ readonly groupId: "western";
238
+ readonly isDetectable: true;
239
+ readonly isDecodable: true;
240
+ };
241
+ readonly 'iso-8859-2': {
242
+ readonly id: "iso-8859-2";
243
+ readonly groupId: "centralEuropean";
244
+ readonly isDetectable: true;
245
+ readonly isDecodable: true;
246
+ };
247
+ readonly 'iso-8859-3': {
248
+ readonly id: "iso-8859-3";
249
+ readonly groupId: "southernEuropean";
250
+ readonly isDetectable: false;
251
+ readonly isDecodable: true;
252
+ };
253
+ readonly 'iso-8859-4': {
254
+ readonly id: "iso-8859-4";
255
+ readonly groupId: "baltic";
256
+ readonly isDetectable: false;
257
+ readonly isDecodable: true;
258
+ };
259
+ readonly 'iso-8859-5': {
260
+ readonly id: "iso-8859-5";
261
+ readonly groupId: "cyrillic";
262
+ readonly isDetectable: true;
263
+ readonly isDecodable: true;
264
+ };
265
+ readonly 'iso-8859-6': {
266
+ readonly id: "iso-8859-6";
267
+ readonly groupId: "arabic";
268
+ readonly isDetectable: true;
269
+ readonly isDecodable: true;
270
+ };
271
+ readonly 'iso-8859-7': {
272
+ readonly id: "iso-8859-7";
273
+ readonly groupId: "greek";
274
+ readonly isDetectable: true;
275
+ readonly isDecodable: true;
276
+ };
277
+ readonly 'iso-8859-8': {
278
+ readonly id: "iso-8859-8";
279
+ readonly groupId: "hebrew";
280
+ readonly isDetectable: true;
281
+ readonly isDecodable: true;
282
+ };
283
+ readonly 'iso-8859-9': {
284
+ readonly id: "iso-8859-9";
285
+ readonly groupId: "turkish";
286
+ readonly isDetectable: true;
287
+ readonly isDecodable: true;
288
+ };
289
+ readonly 'iso-8859-10': {
290
+ readonly id: "iso-8859-10";
291
+ readonly groupId: "nordic";
292
+ readonly isDetectable: false;
293
+ readonly isDecodable: true;
294
+ };
295
+ readonly 'iso-8859-11': {
296
+ readonly id: "iso-8859-11";
297
+ readonly groupId: "thai";
298
+ readonly isDetectable: false;
299
+ readonly isDecodable: true;
300
+ };
301
+ readonly 'iso-8859-13': {
302
+ readonly id: "iso-8859-13";
303
+ readonly groupId: "baltic";
304
+ readonly isDetectable: false;
305
+ readonly isDecodable: true;
306
+ };
307
+ readonly 'iso-8859-14': {
308
+ readonly id: "iso-8859-14";
309
+ readonly groupId: "celtic";
310
+ readonly isDetectable: false;
311
+ readonly isDecodable: true;
312
+ };
313
+ readonly 'iso-8859-15': {
314
+ readonly id: "iso-8859-15";
315
+ readonly groupId: "western";
316
+ readonly isDetectable: false;
317
+ readonly isDecodable: true;
318
+ };
319
+ readonly 'iso-8859-16': {
320
+ readonly id: "iso-8859-16";
321
+ readonly groupId: "romanian";
322
+ readonly isDetectable: false;
323
+ readonly isDecodable: true;
324
+ };
325
+ readonly 'koi8-r': {
326
+ readonly id: "koi8-r";
327
+ readonly groupId: "cyrillic";
328
+ readonly isDetectable: true;
329
+ readonly isDecodable: true;
330
+ };
331
+ readonly 'koi8-u': {
332
+ readonly id: "koi8-u";
333
+ readonly groupId: "cyrillic";
334
+ readonly isDetectable: false;
335
+ readonly isDecodable: true;
336
+ };
337
+ readonly latin1: {
338
+ readonly id: "latin1";
339
+ readonly groupId: "western";
340
+ readonly isDetectable: false;
341
+ readonly isDecodable: true;
342
+ };
343
+ readonly macintosh: {
344
+ readonly id: "macintosh";
345
+ readonly groupId: "western";
346
+ readonly isDetectable: false;
347
+ readonly isDecodable: true;
348
+ };
349
+ readonly shift_jis: {
350
+ readonly id: "shift_jis";
351
+ readonly groupId: "japanese";
352
+ readonly isDetectable: true;
353
+ readonly isDecodable: true;
354
+ };
355
+ readonly 'tis-620': {
356
+ readonly id: "tis-620";
357
+ readonly groupId: "thai";
358
+ readonly isDetectable: false;
359
+ readonly isDecodable: true;
360
+ };
361
+ readonly 'utf-16': {
362
+ readonly id: "utf-16";
363
+ readonly groupId: "unicode16";
364
+ readonly isDetectable: false;
365
+ readonly isDecodable: true;
366
+ };
367
+ readonly 'utf-16be': {
368
+ readonly id: "utf-16be";
369
+ readonly groupId: "unicode16";
370
+ readonly isDetectable: true;
371
+ readonly isDecodable: true;
372
+ };
373
+ readonly 'utf-16le': {
374
+ readonly id: "utf-16le";
375
+ readonly groupId: "unicode16";
376
+ readonly isDetectable: true;
377
+ readonly isDecodable: true;
378
+ };
379
+ readonly 'utf-32be': {
380
+ readonly id: "utf-32be";
381
+ readonly groupId: "unicode32";
382
+ readonly isDetectable: true;
383
+ readonly isDecodable: false;
384
+ };
385
+ readonly 'utf-32le': {
386
+ readonly id: "utf-32le";
387
+ readonly groupId: "unicode32";
388
+ readonly isDetectable: true;
389
+ readonly isDecodable: false;
390
+ };
391
+ readonly 'utf-8': {
392
+ readonly id: "utf-8";
393
+ readonly groupId: null;
394
+ readonly isDetectable: true;
395
+ readonly isDecodable: true;
396
+ };
397
+ readonly 'windows-1250': {
398
+ readonly id: "windows-1250";
399
+ readonly groupId: "centralEuropean";
400
+ readonly isDetectable: true;
401
+ readonly isDecodable: true;
402
+ };
403
+ readonly 'windows-1251': {
404
+ readonly id: "windows-1251";
405
+ readonly groupId: "cyrillic";
406
+ readonly isDetectable: true;
407
+ readonly isDecodable: true;
408
+ };
409
+ readonly 'windows-1252': {
410
+ readonly id: "windows-1252";
411
+ readonly groupId: "western";
412
+ readonly isDetectable: true;
413
+ readonly isDecodable: true;
414
+ };
415
+ readonly 'windows-1253': {
416
+ readonly id: "windows-1253";
417
+ readonly groupId: "greek";
418
+ readonly isDetectable: true;
419
+ readonly isDecodable: true;
420
+ };
421
+ readonly 'windows-1254': {
422
+ readonly id: "windows-1254";
423
+ readonly groupId: "turkish";
424
+ readonly isDetectable: true;
425
+ readonly isDecodable: true;
426
+ };
427
+ readonly 'windows-1255': {
428
+ readonly id: "windows-1255";
429
+ readonly groupId: "hebrew";
430
+ readonly isDetectable: true;
431
+ readonly isDecodable: true;
432
+ };
433
+ readonly 'windows-1256': {
434
+ readonly id: "windows-1256";
435
+ readonly groupId: "arabic";
436
+ readonly isDetectable: true;
437
+ readonly isDecodable: true;
438
+ };
439
+ readonly 'windows-1257': {
440
+ readonly id: "windows-1257";
441
+ readonly groupId: "baltic";
442
+ readonly isDetectable: false;
443
+ readonly isDecodable: true;
444
+ };
445
+ readonly 'windows-1258': {
446
+ readonly id: "windows-1258";
447
+ readonly groupId: "vietnamese";
448
+ readonly isDetectable: false;
449
+ readonly isDecodable: true;
450
+ };
451
+ readonly 'windows-874': {
452
+ readonly id: "windows-874";
453
+ readonly groupId: "thai";
454
+ readonly isDetectable: false;
455
+ readonly isDecodable: true;
456
+ };
457
+ readonly 'x-mac-cyrillic': {
458
+ readonly id: "x-mac-cyrillic";
459
+ readonly groupId: "cyrillic";
460
+ readonly isDetectable: false;
461
+ readonly isDecodable: true;
462
+ };
463
+ readonly 'x-user-defined': {
464
+ readonly id: "x-user-defined";
465
+ readonly groupId: "other";
466
+ readonly isDetectable: false;
467
+ readonly isDecodable: true;
468
+ };
469
+ };
470
+ export declare const ENCODING_GROUP_CONFIG_MAP: Record<EncodingGroupId, EncodingGroupConfig>;
471
+ export declare const ENCODING_TYPE_CONFIG_MAP: Record<EncodingTypeId, EncodingTypeConfig>;
472
+ export declare function isEncodingTypeId(value: string): value is EncodingTypeId;
473
+ export declare function getEncodingTypeConfigs(localeId?: LocaleId): EncodingTypeConfigLocalised[];
474
+ export {};
@@ -1,3 +1,3 @@
1
- import { InferOutput, object } from 'valibot';
1
+ import { InferOutput, strictObject } from 'valibot';
2
2
  import { baseConfigSchema } from './baseConfig.schema';
3
- export type BaseConfig = InferOutput<ReturnType<typeof object<typeof baseConfigSchema>>>;
3
+ export type BaseConfig = InferOutput<ReturnType<typeof strictObject<typeof baseConfigSchema>>>;
@@ -1,8 +1,5 @@
1
- export type FlagId = 'es' | 'gb';
2
- export type LocaleId = 'en' | 'es';
3
- export type LocaleLabel = Partial<Record<LocaleId, string>>;
4
- export type LocaleDescription = Partial<Record<LocaleId, string>>;
5
- export type LocaleLabelMap = ReadonlyMap<string, string>;
1
+ import { LocaleDescription, LocaleId, LocaleLabel } from './label';
2
+ export * from './label';
6
3
  export type LocalisedConfig<T> = Omit<T, 'label' | 'description' | 'verb'> & {
7
4
  label: string;
8
5
  description: string;
@@ -23,15 +20,6 @@ interface UnlocalisedReference {
23
20
  label: LocaleLabel;
24
21
  description: LocaleDescription;
25
22
  }
26
- export declare const DEFAULT_LOCALE_ID: LocaleId;
27
- export declare const SUPPORTED_LANGUAGES: {
28
- id: LocaleId;
29
- flag: FlagId;
30
- label: string;
31
- }[];
32
- export declare function createLabelMap(labels: Record<string, string>): LocaleLabelMap;
33
23
  export declare function localiseConfig<T extends UnlocalisedConfig>(config: T, localeId: LocaleId): LocalisedConfig<T>;
34
24
  export declare function localiseConfigs<T extends UnlocalisedConfig>(configs: T[], localeId: LocaleId, isResultSorted?: boolean): LocalisedConfig<T>[];
35
25
  export declare function localiseReference<T extends UnlocalisedReference>(reference: T, localeId: LocaleId): LocalisedReference<T>;
36
- export declare function resolveLabel(labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: LocaleId): string | undefined;
37
- export {};
@@ -0,0 +1,13 @@
1
+ export type FlagId = 'es' | 'gb';
2
+ export type LocaleId = 'en' | 'es';
3
+ export type LocaleLabel = Partial<Record<LocaleId, string>>;
4
+ export type LocaleDescription = Partial<Record<LocaleId, string>>;
5
+ export type LocaleLabelMap = ReadonlyMap<string, string>;
6
+ export declare const DEFAULT_LOCALE_ID: LocaleId;
7
+ export declare const SUPPORTED_LANGUAGES: {
8
+ id: LocaleId;
9
+ flag: FlagId;
10
+ label: string;
11
+ }[];
12
+ export declare function createLabelMap(labels: Record<string, string>): LocaleLabelMap;
13
+ export declare function resolveLabel(labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: LocaleId): string | undefined;
@@ -1,12 +1,12 @@
1
- export declare const localeLabelSchema: import('valibot').ObjectSchema<{
1
+ export declare const localeLabelSchema: import('valibot').StrictObjectSchema<{
2
2
  readonly en: import('valibot').StringSchema<undefined>;
3
3
  readonly es: import('valibot').StringSchema<undefined>;
4
4
  }, undefined>;
5
- export declare const partialLocaleDescriptionSchema: import('valibot').ObjectSchema<{
5
+ export declare const partialLocaleDescriptionSchema: import('valibot').StrictObjectSchema<{
6
6
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
7
7
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
8
8
  }, undefined>;
9
- export declare const partialLocaleLabelSchema: import('valibot').ObjectSchema<{
9
+ export declare const partialLocaleLabelSchema: import('valibot').StrictObjectSchema<{
10
10
  readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
11
11
  readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
12
12
  }, undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.816",
3
+ "version": "0.3.822",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across all DPUse projects.",
6
6
  "license": "MIT",
@@ -99,11 +99,11 @@
99
99
  "types": "./dist/types/src/component/module/tool/index.d.ts"
100
100
  },
101
101
  "./component/presentation": {
102
- "import": "./dist/dpuse-shared-componentModulePresentation.es.js",
102
+ "import": "./dist/dpuse-shared-componentPresentation.es.js",
103
103
  "types": "./dist/types/src/component/presentation/index.d.ts"
104
104
  },
105
105
  "./component/recipe": {
106
- "import": "./dist/dpuse-shared-componentModuleRecipe.es.js",
106
+ "import": "./dist/dpuse-shared-componentRecipe.es.js",
107
107
  "types": "./dist/types/src/component/recipe/index.d.ts"
108
108
  },
109
109
  "./encoding": {
@@ -157,22 +157,28 @@
157
157
  "documentGovernance": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentGovernance())\"",
158
158
  "documentOpening": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentOpening())\"",
159
159
  "format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
160
+ "health": "npm run test:coverage && fallow --coverage coverage/coverage-final.json",
160
161
  "lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
161
162
  "release": "npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
162
163
  "sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
163
- "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
164
+ "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\"",
165
+ "test:coverage": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject(['unit'], true))\""
166
+ },
167
+ "dependencies": {
168
+ "file-type": "^22.1.1",
169
+ "valibot": "^1.5.0"
164
170
  },
165
171
  "devDependencies": {
166
- "@dpuse/dpuse-development": "^0.3.719",
167
- "@dpuse/eslint-config-dpuse": "^1.0.117",
172
+ "@dpuse/dpuse-development": "^0.3.722",
173
+ "@dpuse/eslint-config-dpuse": "^1.0.122",
168
174
  "@types/node": "^26.6.2",
175
+ "@vitest/coverage-v8": "^5.0.1",
169
176
  "eslint": "^10.11.0",
170
- "file-type": "^22.1.1",
177
+ "fallow": "^3.28.0",
171
178
  "prettier": "^3.9.9",
172
179
  "sonda": "^0.14.0",
173
180
  "typescript": "^6.0.3",
174
- "valibot": "^1.5.0",
175
- "vite": "^8.3.0",
181
+ "vite": "^8.3.1",
176
182
  "vite-plugin-dts": "^5.1.1",
177
183
  "vitest": "^5.0.1"
178
184
  }
@@ -1,22 +0,0 @@
1
- import { d as e, i as t, l as n, m as r, t as i } from "./componentConfig.schema-Dxqinpxy.js";
2
- //#region src/component/module/moduleConfig.schema.ts
3
- var a = t([
4
- "app",
5
- "engine",
6
- "connector",
7
- "cookbook",
8
- "presenter",
9
- "tool"
10
- ]), o = {
11
- ...i,
12
- vendorAccountURL: n(r()),
13
- vendorDocumentationURL: n(r()),
14
- vendorHomeURL: n(r()),
15
- version: r()
16
- };
17
- e({
18
- ...o,
19
- typeId: a
20
- });
21
- //#endregion
22
- export { o as t };
@@ -1,3 +0,0 @@
1
- export default config;
2
- /** @type {import('eslint').Linter.Config[]} */
3
- declare const config: import('eslint').Linter.Config[];