@aidc-toolkit/utility 0.9.6-beta → 0.9.7-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -33,10 +33,89 @@ __export(src_exports, {
33
33
  RecordValidator: () => RecordValidator,
34
34
  RegExpValidator: () => RegExpValidator,
35
35
  Sequencer: () => Sequencer,
36
- Transformer: () => Transformer
36
+ Transformer: () => Transformer,
37
+ utilityNS: () => utilityNS
37
38
  });
38
39
  module.exports = __toCommonJS(src_exports);
39
40
 
41
+ // src/locale/i18n.ts
42
+ var import_core = require("@aidc-toolkit/core");
43
+
44
+ // src/locale/en/locale_strings.ts
45
+ var localeStrings = {
46
+ Transformer: {
47
+ domainMustBeGreaterThanZero: "Domain {{domain}} must be greater than 0",
48
+ tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak}} must be greater than or equal to 0",
49
+ valueMustBeGreaterThanOrEqualToZero: "Value {{value}} must be greater than or equal to 0",
50
+ valueMustBeLessThan: "Value {{value}} must be less than {{domain}}",
51
+ minValueMustBeGreaterThanOrEqualToZero: "Minimum value {{minValue}} must be greater than or equal to 0",
52
+ maxValueMustBeLessThan: "Maximum value {{maxValue}} must be less than {{domain}}"
53
+ },
54
+ RegExpValidator: {
55
+ stringDoesNotMatchPattern: "String {{s}} does not match pattern"
56
+ },
57
+ CharacterSetValidator: {
58
+ firstZeroFirstCharacter: "Character set must support zero as first character",
59
+ allNumericAllNumericCharacters: "Character set must support all numeric characters in sequence",
60
+ stringMustNotBeAllNumeric: "String must not be all numeric",
61
+ lengthMustBeGreaterThanOrEqualTo: "Length {{length}} must be greater than or equal to {{minimumLength}}",
62
+ lengthMustBeLessThanOrEqualTo: "Length {{length}} must be less than or equal to {{maximumLength}}",
63
+ lengthMustBeEqualTo: "Length {{length}} must be equal to {{exactLength}}",
64
+ lengthOfComponentMustBeGreaterThanOrEqualTo: "Length {{length}} of {{component}} must be greater than or equal to {{minimumLength}}",
65
+ lengthOfComponentMustBeLessThanOrEqualTo: "Length {{length}} of {{component}} must be less than or equal to {{maximumLength}}",
66
+ lengthOfComponentMustBeEqualTo: "Length {{length}} of {{component}} must be equal to {{exactLength}}",
67
+ invalidCharacterAtPosition: "Invalid character '{{c}}' at position {{position}}",
68
+ invalidCharacterAtPositionOfComponent: "Invalid character '{{c}}' at position {{position}} of {{component}}",
69
+ exclusionNotSupported: "Exclusion value of {{exclusion}} is not supported",
70
+ invalidTweakWithAllNumericExclusion: "Tweak must not be used with all-numeric exclusion",
71
+ endSequenceValueMustBeLessThanOrEqualTo: "End sequence value (start sequence value + count - 1) must be less than {{domain}}"
72
+ },
73
+ RecordValidator: {
74
+ typeNameKeyNotFound: '{{typeName}} "{{key}}" not found'
75
+ }
76
+ };
77
+
78
+ // src/locale/fr/locale_strings.ts
79
+ var localeStrings2 = {
80
+ Transformer: {
81
+ domainMustBeGreaterThanZero: "Le domaine {{domain}} doit \xEAtre sup\xE9rieur \xE0 0",
82
+ tweakMustBeGreaterThanOrEqualToZero: "Le r\xE9glage {{tweak}} doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 0",
83
+ valueMustBeGreaterThanOrEqualToZero: "La valeur {{value}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
84
+ valueMustBeLessThan: "La valeur {{value}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}",
85
+ minValueMustBeGreaterThanOrEqualToZero: "La valeur minimale {{minValue}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
86
+ maxValueMustBeLessThan: "La valeur maximale {{maxValue}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}"
87
+ },
88
+ RegExpValidator: {
89
+ stringDoesNotMatchPattern: "La cha\xEEne {{s}} ne correspond pas au mod\xE8le"
90
+ },
91
+ CharacterSetValidator: {
92
+ firstZeroFirstCharacter: "Le jeu de caract\xE8res doit prendre en charge z\xE9ro comme premier caract\xE8re",
93
+ allNumericAllNumericCharacters: "Le jeu de caract\xE8res doit prendre en charge tous les caract\xE8res num\xE9riques en s\xE9quence",
94
+ stringMustNotBeAllNumeric: "La cha\xEEne ne doit pas \xEAtre enti\xE8rement num\xE9rique",
95
+ lengthMustBeGreaterThanOrEqualTo: "La longueur {{length}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
96
+ lengthMustBeLessThanOrEqualTo: "La longueur {{length}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
97
+ lengthMustBeEqualTo: "La longueur {{length}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
98
+ lengthOfComponentMustBeGreaterThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
99
+ lengthOfComponentMustBeLessThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
100
+ lengthOfComponentMustBeEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
101
+ invalidCharacterAtPosition: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}}",
102
+ invalidCharacterAtPositionOfComponent: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}} de {{component}}",
103
+ exclusionNotSupported: "La valeur d'exclusion de {{exclusion}} n'est pas prise en charge",
104
+ invalidTweakWithAllNumericExclusion: "Le r\xE9glage ne doit pas \xEAtre utilis\xE9 avec une exclusion enti\xE8rement num\xE9rique",
105
+ endSequenceValueMustBeLessThanOrEqualTo: "La valeur de la s\xE9quence de fin (valeur de la s\xE9quence de d\xE9but + nombre - 1) doit \xEAtre inf\xE9rieure \xE0 {{domaine}}"
106
+ },
107
+ RecordValidator: {
108
+ typeNameKeyNotFound: '{{typeName}} "{{key}}" introuvable'
109
+ }
110
+ };
111
+
112
+ // src/locale/i18n.ts
113
+ var utilityNS = "aidct_utility";
114
+ (0, import_core.i18nAssertValidResources)(localeStrings, "fr", localeStrings2);
115
+ (0, import_core.i18nAddResourceBundle)("en", utilityNS, localeStrings);
116
+ (0, import_core.i18nAddResourceBundle)("fr", utilityNS, localeStrings2);
117
+ var i18n_default = import_core.i18next;
118
+
40
119
  // src/iterator_proxy.ts
41
120
  var IteratorProxyBase = class _IteratorProxyBase {
42
121
  /**
@@ -539,84 +618,6 @@ var Sequencer = class {
539
618
  }
540
619
  };
541
620
 
542
- // src/locale/i18n.ts
543
- var import_core = require("@aidc-toolkit/core");
544
-
545
- // src/locale/en/locale_strings.ts
546
- var localeStrings = {
547
- Transformer: {
548
- domainMustBeGreaterThanZero: "Domain {{domain}} must be greater than 0",
549
- tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak}} must be greater than or equal to 0",
550
- valueMustBeGreaterThanOrEqualToZero: "Value {{value}} must be greater than or equal to 0",
551
- valueMustBeLessThan: "Value {{value}} must be less than {{domain}}",
552
- minValueMustBeGreaterThanOrEqualToZero: "Minimum value {{minValue}} must be greater than or equal to 0",
553
- maxValueMustBeLessThan: "Maximum value {{maxValue}} must be less than {{domain}}"
554
- },
555
- RegExpValidator: {
556
- stringDoesNotMatchPattern: "String {{s}} does not match pattern"
557
- },
558
- CharacterSetValidator: {
559
- firstZeroFirstCharacter: "Character set must support zero as first character",
560
- allNumericAllNumericCharacters: "Character set must support all numeric characters in sequence",
561
- stringMustNotBeAllNumeric: "String must not be all numeric",
562
- lengthMustBeGreaterThanOrEqualTo: "Length {{length}} must be greater than or equal to {{minimumLength}}",
563
- lengthMustBeLessThanOrEqualTo: "Length {{length}} must be less than or equal to {{maximumLength}}",
564
- lengthMustBeEqualTo: "Length {{length}} must be equal to {{exactLength}}",
565
- lengthOfComponentMustBeGreaterThanOrEqualTo: "Length {{length}} of {{component}} must be greater than or equal to {{minimumLength}}",
566
- lengthOfComponentMustBeLessThanOrEqualTo: "Length {{length}} of {{component}} must be less than or equal to {{maximumLength}}",
567
- lengthOfComponentMustBeEqualTo: "Length {{length}} of {{component}} must be equal to {{exactLength}}",
568
- invalidCharacterAtPosition: "Invalid character '{{c}}' at position {{position}}",
569
- invalidCharacterAtPositionOfComponent: "Invalid character '{{c}}' at position {{position}} of {{component}}",
570
- exclusionNotSupported: "Exclusion value of {{exclusion}} is not supported",
571
- invalidTweakWithAllNumericExclusion: "Tweak must not be used with all-numeric exclusion",
572
- endSequenceValueMustBeLessThanOrEqualTo: "End sequence value (start sequence value + count - 1) must be less than {{domain}}"
573
- },
574
- RecordValidator: {
575
- typeNameKeyNotFound: '{{typeName}} "{{key}}" not found'
576
- }
577
- };
578
-
579
- // src/locale/fr/locale_strings.ts
580
- var localeStrings2 = {
581
- Transformer: {
582
- domainMustBeGreaterThanZero: "Le domaine {{domain}} doit \xEAtre sup\xE9rieur \xE0 0",
583
- tweakMustBeGreaterThanOrEqualToZero: "Le r\xE9glage {{tweak}} doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 0",
584
- valueMustBeGreaterThanOrEqualToZero: "La valeur {{value}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
585
- valueMustBeLessThan: "La valeur {{value}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}",
586
- minValueMustBeGreaterThanOrEqualToZero: "La valeur minimale {{minValue}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
587
- maxValueMustBeLessThan: "La valeur maximale {{maxValue}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}"
588
- },
589
- RegExpValidator: {
590
- stringDoesNotMatchPattern: "La cha\xEEne {{s}} ne correspond pas au mod\xE8le"
591
- },
592
- CharacterSetValidator: {
593
- firstZeroFirstCharacter: "Le jeu de caract\xE8res doit prendre en charge z\xE9ro comme premier caract\xE8re",
594
- allNumericAllNumericCharacters: "Le jeu de caract\xE8res doit prendre en charge tous les caract\xE8res num\xE9riques en s\xE9quence",
595
- stringMustNotBeAllNumeric: "La cha\xEEne ne doit pas \xEAtre enti\xE8rement num\xE9rique",
596
- lengthMustBeGreaterThanOrEqualTo: "La longueur {{length}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
597
- lengthMustBeLessThanOrEqualTo: "La longueur {{length}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
598
- lengthMustBeEqualTo: "La longueur {{length}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
599
- lengthOfComponentMustBeGreaterThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
600
- lengthOfComponentMustBeLessThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
601
- lengthOfComponentMustBeEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
602
- invalidCharacterAtPosition: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}}",
603
- invalidCharacterAtPositionOfComponent: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}} de {{component}}",
604
- exclusionNotSupported: "La valeur d'exclusion de {{exclusion}} n'est pas prise en charge",
605
- invalidTweakWithAllNumericExclusion: "Le r\xE9glage ne doit pas \xEAtre utilis\xE9 avec une exclusion enti\xE8rement num\xE9rique",
606
- endSequenceValueMustBeLessThanOrEqualTo: "La valeur de la s\xE9quence de fin (valeur de la s\xE9quence de d\xE9but + nombre - 1) doit \xEAtre inf\xE9rieure \xE0 {{domaine}}"
607
- },
608
- RecordValidator: {
609
- typeNameKeyNotFound: '{{typeName}} "{{key}}" introuvable'
610
- }
611
- };
612
-
613
- // src/locale/i18n.ts
614
- var utilityNS = "aidct_utility";
615
- (0, import_core.i18nAssertValidResources)(localeStrings, "fr", localeStrings2);
616
- (0, import_core.i18nAddResourceBundle)("en", utilityNS, localeStrings);
617
- (0, import_core.i18nAddResourceBundle)("fr", utilityNS, localeStrings2);
618
- var i18n_default = import_core.i18next;
619
-
620
621
  // src/transformer.ts
621
622
  var Transformer = class _Transformer {
622
623
  /**
@@ -1722,5 +1723,6 @@ var ALPHANUMERIC_CREATOR = new CharacterSetCreator([
1722
1723
  RecordValidator,
1723
1724
  RegExpValidator,
1724
1725
  Sequencer,
1725
- Transformer
1726
+ Transformer,
1727
+ utilityNS
1726
1728
  });
package/dist/index.d.cts CHANGED
@@ -1,3 +1,5 @@
1
+ declare const utilityNS = "aidct_utility";
2
+
1
3
  /**
2
4
  * Transformer input, one of:
3
5
  *
@@ -837,4 +839,4 @@ declare const ALPHABETIC_CREATOR: CharacterSetCreator;
837
839
  */
838
840
  declare const ALPHANUMERIC_CREATOR: CharacterSetCreator;
839
841
 
840
- export { ALPHABETIC_CREATOR, ALPHANUMERIC_CREATOR, CharacterSetCreator, type CharacterSetValidation, CharacterSetValidator, EncryptionTransformer, Exclusion, HEXADECIMAL_CREATOR, IdentityTransformer, IteratorProxy, NUMERIC_CREATOR, RecordValidator, RegExpValidator, Sequencer, type StringValidation, type StringValidator, Transformer, type TransformerCallback, type TransformerInput, type TransformerOutput };
842
+ export { ALPHABETIC_CREATOR, ALPHANUMERIC_CREATOR, CharacterSetCreator, type CharacterSetValidation, CharacterSetValidator, EncryptionTransformer, Exclusion, HEXADECIMAL_CREATOR, IdentityTransformer, IteratorProxy, NUMERIC_CREATOR, RecordValidator, RegExpValidator, Sequencer, type StringValidation, type StringValidator, Transformer, type TransformerCallback, type TransformerInput, type TransformerOutput, utilityNS };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ declare const utilityNS = "aidct_utility";
2
+
1
3
  /**
2
4
  * Transformer input, one of:
3
5
  *
@@ -837,4 +839,4 @@ declare const ALPHABETIC_CREATOR: CharacterSetCreator;
837
839
  */
838
840
  declare const ALPHANUMERIC_CREATOR: CharacterSetCreator;
839
841
 
840
- export { ALPHABETIC_CREATOR, ALPHANUMERIC_CREATOR, CharacterSetCreator, type CharacterSetValidation, CharacterSetValidator, EncryptionTransformer, Exclusion, HEXADECIMAL_CREATOR, IdentityTransformer, IteratorProxy, NUMERIC_CREATOR, RecordValidator, RegExpValidator, Sequencer, type StringValidation, type StringValidator, Transformer, type TransformerCallback, type TransformerInput, type TransformerOutput };
842
+ export { ALPHABETIC_CREATOR, ALPHANUMERIC_CREATOR, CharacterSetCreator, type CharacterSetValidation, CharacterSetValidator, EncryptionTransformer, Exclusion, HEXADECIMAL_CREATOR, IdentityTransformer, IteratorProxy, NUMERIC_CREATOR, RecordValidator, RegExpValidator, Sequencer, type StringValidation, type StringValidator, Transformer, type TransformerCallback, type TransformerInput, type TransformerOutput, utilityNS };
package/dist/index.js CHANGED
@@ -1,3 +1,81 @@
1
+ // src/locale/i18n.ts
2
+ import { i18nAddResourceBundle, i18nAssertValidResources, i18next } from "@aidc-toolkit/core";
3
+
4
+ // src/locale/en/locale_strings.ts
5
+ var localeStrings = {
6
+ Transformer: {
7
+ domainMustBeGreaterThanZero: "Domain {{domain}} must be greater than 0",
8
+ tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak}} must be greater than or equal to 0",
9
+ valueMustBeGreaterThanOrEqualToZero: "Value {{value}} must be greater than or equal to 0",
10
+ valueMustBeLessThan: "Value {{value}} must be less than {{domain}}",
11
+ minValueMustBeGreaterThanOrEqualToZero: "Minimum value {{minValue}} must be greater than or equal to 0",
12
+ maxValueMustBeLessThan: "Maximum value {{maxValue}} must be less than {{domain}}"
13
+ },
14
+ RegExpValidator: {
15
+ stringDoesNotMatchPattern: "String {{s}} does not match pattern"
16
+ },
17
+ CharacterSetValidator: {
18
+ firstZeroFirstCharacter: "Character set must support zero as first character",
19
+ allNumericAllNumericCharacters: "Character set must support all numeric characters in sequence",
20
+ stringMustNotBeAllNumeric: "String must not be all numeric",
21
+ lengthMustBeGreaterThanOrEqualTo: "Length {{length}} must be greater than or equal to {{minimumLength}}",
22
+ lengthMustBeLessThanOrEqualTo: "Length {{length}} must be less than or equal to {{maximumLength}}",
23
+ lengthMustBeEqualTo: "Length {{length}} must be equal to {{exactLength}}",
24
+ lengthOfComponentMustBeGreaterThanOrEqualTo: "Length {{length}} of {{component}} must be greater than or equal to {{minimumLength}}",
25
+ lengthOfComponentMustBeLessThanOrEqualTo: "Length {{length}} of {{component}} must be less than or equal to {{maximumLength}}",
26
+ lengthOfComponentMustBeEqualTo: "Length {{length}} of {{component}} must be equal to {{exactLength}}",
27
+ invalidCharacterAtPosition: "Invalid character '{{c}}' at position {{position}}",
28
+ invalidCharacterAtPositionOfComponent: "Invalid character '{{c}}' at position {{position}} of {{component}}",
29
+ exclusionNotSupported: "Exclusion value of {{exclusion}} is not supported",
30
+ invalidTweakWithAllNumericExclusion: "Tweak must not be used with all-numeric exclusion",
31
+ endSequenceValueMustBeLessThanOrEqualTo: "End sequence value (start sequence value + count - 1) must be less than {{domain}}"
32
+ },
33
+ RecordValidator: {
34
+ typeNameKeyNotFound: '{{typeName}} "{{key}}" not found'
35
+ }
36
+ };
37
+
38
+ // src/locale/fr/locale_strings.ts
39
+ var localeStrings2 = {
40
+ Transformer: {
41
+ domainMustBeGreaterThanZero: "Le domaine {{domain}} doit \xEAtre sup\xE9rieur \xE0 0",
42
+ tweakMustBeGreaterThanOrEqualToZero: "Le r\xE9glage {{tweak}} doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 0",
43
+ valueMustBeGreaterThanOrEqualToZero: "La valeur {{value}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
44
+ valueMustBeLessThan: "La valeur {{value}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}",
45
+ minValueMustBeGreaterThanOrEqualToZero: "La valeur minimale {{minValue}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
46
+ maxValueMustBeLessThan: "La valeur maximale {{maxValue}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}"
47
+ },
48
+ RegExpValidator: {
49
+ stringDoesNotMatchPattern: "La cha\xEEne {{s}} ne correspond pas au mod\xE8le"
50
+ },
51
+ CharacterSetValidator: {
52
+ firstZeroFirstCharacter: "Le jeu de caract\xE8res doit prendre en charge z\xE9ro comme premier caract\xE8re",
53
+ allNumericAllNumericCharacters: "Le jeu de caract\xE8res doit prendre en charge tous les caract\xE8res num\xE9riques en s\xE9quence",
54
+ stringMustNotBeAllNumeric: "La cha\xEEne ne doit pas \xEAtre enti\xE8rement num\xE9rique",
55
+ lengthMustBeGreaterThanOrEqualTo: "La longueur {{length}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
56
+ lengthMustBeLessThanOrEqualTo: "La longueur {{length}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
57
+ lengthMustBeEqualTo: "La longueur {{length}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
58
+ lengthOfComponentMustBeGreaterThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
59
+ lengthOfComponentMustBeLessThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
60
+ lengthOfComponentMustBeEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
61
+ invalidCharacterAtPosition: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}}",
62
+ invalidCharacterAtPositionOfComponent: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}} de {{component}}",
63
+ exclusionNotSupported: "La valeur d'exclusion de {{exclusion}} n'est pas prise en charge",
64
+ invalidTweakWithAllNumericExclusion: "Le r\xE9glage ne doit pas \xEAtre utilis\xE9 avec une exclusion enti\xE8rement num\xE9rique",
65
+ endSequenceValueMustBeLessThanOrEqualTo: "La valeur de la s\xE9quence de fin (valeur de la s\xE9quence de d\xE9but + nombre - 1) doit \xEAtre inf\xE9rieure \xE0 {{domaine}}"
66
+ },
67
+ RecordValidator: {
68
+ typeNameKeyNotFound: '{{typeName}} "{{key}}" introuvable'
69
+ }
70
+ };
71
+
72
+ // src/locale/i18n.ts
73
+ var utilityNS = "aidct_utility";
74
+ i18nAssertValidResources(localeStrings, "fr", localeStrings2);
75
+ i18nAddResourceBundle("en", utilityNS, localeStrings);
76
+ i18nAddResourceBundle("fr", utilityNS, localeStrings2);
77
+ var i18n_default = i18next;
78
+
1
79
  // src/iterator_proxy.ts
2
80
  var IteratorProxyBase = class _IteratorProxyBase {
3
81
  /**
@@ -500,84 +578,6 @@ var Sequencer = class {
500
578
  }
501
579
  };
502
580
 
503
- // src/locale/i18n.ts
504
- import { i18nAddResourceBundle, i18nAssertValidResources, i18next } from "@aidc-toolkit/core";
505
-
506
- // src/locale/en/locale_strings.ts
507
- var localeStrings = {
508
- Transformer: {
509
- domainMustBeGreaterThanZero: "Domain {{domain}} must be greater than 0",
510
- tweakMustBeGreaterThanOrEqualToZero: "Tweak {{tweak}} must be greater than or equal to 0",
511
- valueMustBeGreaterThanOrEqualToZero: "Value {{value}} must be greater than or equal to 0",
512
- valueMustBeLessThan: "Value {{value}} must be less than {{domain}}",
513
- minValueMustBeGreaterThanOrEqualToZero: "Minimum value {{minValue}} must be greater than or equal to 0",
514
- maxValueMustBeLessThan: "Maximum value {{maxValue}} must be less than {{domain}}"
515
- },
516
- RegExpValidator: {
517
- stringDoesNotMatchPattern: "String {{s}} does not match pattern"
518
- },
519
- CharacterSetValidator: {
520
- firstZeroFirstCharacter: "Character set must support zero as first character",
521
- allNumericAllNumericCharacters: "Character set must support all numeric characters in sequence",
522
- stringMustNotBeAllNumeric: "String must not be all numeric",
523
- lengthMustBeGreaterThanOrEqualTo: "Length {{length}} must be greater than or equal to {{minimumLength}}",
524
- lengthMustBeLessThanOrEqualTo: "Length {{length}} must be less than or equal to {{maximumLength}}",
525
- lengthMustBeEqualTo: "Length {{length}} must be equal to {{exactLength}}",
526
- lengthOfComponentMustBeGreaterThanOrEqualTo: "Length {{length}} of {{component}} must be greater than or equal to {{minimumLength}}",
527
- lengthOfComponentMustBeLessThanOrEqualTo: "Length {{length}} of {{component}} must be less than or equal to {{maximumLength}}",
528
- lengthOfComponentMustBeEqualTo: "Length {{length}} of {{component}} must be equal to {{exactLength}}",
529
- invalidCharacterAtPosition: "Invalid character '{{c}}' at position {{position}}",
530
- invalidCharacterAtPositionOfComponent: "Invalid character '{{c}}' at position {{position}} of {{component}}",
531
- exclusionNotSupported: "Exclusion value of {{exclusion}} is not supported",
532
- invalidTweakWithAllNumericExclusion: "Tweak must not be used with all-numeric exclusion",
533
- endSequenceValueMustBeLessThanOrEqualTo: "End sequence value (start sequence value + count - 1) must be less than {{domain}}"
534
- },
535
- RecordValidator: {
536
- typeNameKeyNotFound: '{{typeName}} "{{key}}" not found'
537
- }
538
- };
539
-
540
- // src/locale/fr/locale_strings.ts
541
- var localeStrings2 = {
542
- Transformer: {
543
- domainMustBeGreaterThanZero: "Le domaine {{domain}} doit \xEAtre sup\xE9rieur \xE0 0",
544
- tweakMustBeGreaterThanOrEqualToZero: "Le r\xE9glage {{tweak}} doit \xEAtre sup\xE9rieur ou \xE9gal \xE0 0",
545
- valueMustBeGreaterThanOrEqualToZero: "La valeur {{value}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
546
- valueMustBeLessThan: "La valeur {{value}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}",
547
- minValueMustBeGreaterThanOrEqualToZero: "La valeur minimale {{minValue}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 0",
548
- maxValueMustBeLessThan: "La valeur maximale {{maxValue}} doit \xEAtre inf\xE9rieure \xE0 {{domain}}"
549
- },
550
- RegExpValidator: {
551
- stringDoesNotMatchPattern: "La cha\xEEne {{s}} ne correspond pas au mod\xE8le"
552
- },
553
- CharacterSetValidator: {
554
- firstZeroFirstCharacter: "Le jeu de caract\xE8res doit prendre en charge z\xE9ro comme premier caract\xE8re",
555
- allNumericAllNumericCharacters: "Le jeu de caract\xE8res doit prendre en charge tous les caract\xE8res num\xE9riques en s\xE9quence",
556
- stringMustNotBeAllNumeric: "La cha\xEEne ne doit pas \xEAtre enti\xE8rement num\xE9rique",
557
- lengthMustBeGreaterThanOrEqualTo: "La longueur {{length}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
558
- lengthMustBeLessThanOrEqualTo: "La longueur {{length}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
559
- lengthMustBeEqualTo: "La longueur {{length}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
560
- lengthOfComponentMustBeGreaterThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {{minimumLength}}",
561
- lengthOfComponentMustBeLessThanOrEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {{maximumLength}}",
562
- lengthOfComponentMustBeEqualTo: "La longueur {{length}} de {{component}} doit \xEAtre \xE9gale \xE0 {{exactLength}}",
563
- invalidCharacterAtPosition: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}}",
564
- invalidCharacterAtPositionOfComponent: "Caract\xE8re non valide '{{c}}' \xE0 la position {{position}} de {{component}}",
565
- exclusionNotSupported: "La valeur d'exclusion de {{exclusion}} n'est pas prise en charge",
566
- invalidTweakWithAllNumericExclusion: "Le r\xE9glage ne doit pas \xEAtre utilis\xE9 avec une exclusion enti\xE8rement num\xE9rique",
567
- endSequenceValueMustBeLessThanOrEqualTo: "La valeur de la s\xE9quence de fin (valeur de la s\xE9quence de d\xE9but + nombre - 1) doit \xEAtre inf\xE9rieure \xE0 {{domaine}}"
568
- },
569
- RecordValidator: {
570
- typeNameKeyNotFound: '{{typeName}} "{{key}}" introuvable'
571
- }
572
- };
573
-
574
- // src/locale/i18n.ts
575
- var utilityNS = "aidct_utility";
576
- i18nAssertValidResources(localeStrings, "fr", localeStrings2);
577
- i18nAddResourceBundle("en", utilityNS, localeStrings);
578
- i18nAddResourceBundle("fr", utilityNS, localeStrings2);
579
- var i18n_default = i18next;
580
-
581
581
  // src/transformer.ts
582
582
  var Transformer = class _Transformer {
583
583
  /**
@@ -1682,5 +1682,6 @@ export {
1682
1682
  RecordValidator,
1683
1683
  RegExpValidator,
1684
1684
  Sequencer,
1685
- Transformer
1685
+ Transformer,
1686
+ utilityNS
1686
1687
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidc-toolkit/utility",
3
- "version": "0.9.6-beta",
3
+ "version": "0.9.7-beta",
4
4
  "description": "Foundational utilities for AIDC Toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,15 +25,15 @@
25
25
  "test": "vitest run"
26
26
  },
27
27
  "devDependencies": {
28
- "@aidc-toolkit/dev": "^0.9.6-beta",
28
+ "@aidc-toolkit/dev": "^0.9.7-beta",
29
29
  "eslint": "^9.16.0",
30
30
  "ts-node": "^10.9.2",
31
31
  "tsup": "^8.3.5",
32
32
  "typescript": "^5.7.2",
33
- "vitest": "^2.1.7"
33
+ "vitest": "^2.1.8"
34
34
  },
35
35
  "dependencies": {
36
- "@aidc-toolkit/core": "^0.9.6-beta",
37
- "@rollup/rollup-linux-x64-gnu": "^4.28.0"
36
+ "@aidc-toolkit/core": "^0.9.7-beta",
37
+ "@rollup/rollup-linux-x64-gnu": "^4.28.1"
38
38
  }
39
39
  }
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { utilityNS } from "./locale/i18n.js";
1
2
  export type * from "./types.js";
2
3
  export * from "./iterator_proxy.js";
3
4
  export * from "./sequencer.js";