@aidc-toolkit/app-extension 1.0.24-beta → 1.0.25-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 +90 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -37
- package/dist/index.d.ts +59 -37
- package/dist/index.js +92 -62
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/descriptor.ts +6 -1
- package/src/gs1/character-set-proxy.ts +14 -4
- package/src/gs1/identifier-proxy.ts +62 -58
- package/src/locale/en/locale-resources.ts +9 -0
- package/src/locale/fr/locale-resources.ts +9 -0
- package/src/type.ts +1 -1
- package/src/utility/character-set-proxy.ts +20 -9
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,8 @@ __export(index_exports, {
|
|
|
43
43
|
AlphanumericProxy: () => AlphanumericProxy,
|
|
44
44
|
AppExtension: () => AppExtension,
|
|
45
45
|
AppUtilityProxy: () => AppUtilityProxy,
|
|
46
|
-
|
|
46
|
+
CharacterSetCreatorProxy: () => CharacterSetCreatorProxy,
|
|
47
|
+
CharacterSetValidatorProxy: () => CharacterSetValidatorProxy,
|
|
47
48
|
GS1: () => gs1_exports,
|
|
48
49
|
Generator: () => Generator,
|
|
49
50
|
HexadecimalProxy: () => HexadecimalProxy,
|
|
@@ -85,6 +86,7 @@ var locale_resources_default = {
|
|
|
85
86
|
prefixDefinitionMustHaveMaximumThreeElements: "Prefix definition must have a maximum of 3 elements",
|
|
86
87
|
prefixMustBeString: "Prefix must be a string",
|
|
87
88
|
prefixTypeMustBeNumber: "Prefix type must be a number in the range of 0 to {{maximumPrefixType, number}}",
|
|
89
|
+
invalidPrefixType: "Invalid prefix type",
|
|
88
90
|
tweakFactorMustBeNumber: "Tweak factor must be a number"
|
|
89
91
|
},
|
|
90
92
|
Parameters: {
|
|
@@ -427,6 +429,14 @@ var locale_resources_default = {
|
|
|
427
429
|
name: "valueForAI39",
|
|
428
430
|
description: "Get the value for a GS1 AI 39 encodable character set string."
|
|
429
431
|
},
|
|
432
|
+
validateAI64: {
|
|
433
|
+
name: "validateAI64",
|
|
434
|
+
description: "Validate a GS1 AI 64 encodable character set string."
|
|
435
|
+
},
|
|
436
|
+
isValidAI64: {
|
|
437
|
+
name: "isValidAI64",
|
|
438
|
+
description: "Determine if a string is GS1 AI 64 encodable character set."
|
|
439
|
+
},
|
|
430
440
|
checkDigit: {
|
|
431
441
|
name: "checkDigit",
|
|
432
442
|
description: "Calculate the check digit for a numeric string."
|
|
@@ -702,6 +712,7 @@ var locale_resources_default2 = {
|
|
|
702
712
|
prefixDefinitionMustHaveMaximumThreeElements: "La d\xE9finition du pr\xE9fixe doit comporter un maximum de 3 \xE9l\xE9ments",
|
|
703
713
|
prefixMustBeString: "Le pr\xE9fixe doit \xEAtre une cha\xEEne",
|
|
704
714
|
prefixTypeMustBeNumber: "Le type de pr\xE9fixe doit \xEAtre un nombre compris entre 0 et {{maximumPrefixType, number}}",
|
|
715
|
+
invalidPrefixType: "Type de pr\xE9fixe invalide",
|
|
705
716
|
tweakFactorMustBeNumber: "Le facteur de r\xE9glage doit \xEAtre un nombre"
|
|
706
717
|
},
|
|
707
718
|
Parameters: {
|
|
@@ -1044,6 +1055,14 @@ var locale_resources_default2 = {
|
|
|
1044
1055
|
name: "valeurDeAI39",
|
|
1045
1056
|
description: "Obtenez la valeur d'une cha\xEEne de caract\xE8res GS1 AI 39."
|
|
1046
1057
|
},
|
|
1058
|
+
validateAI64: {
|
|
1059
|
+
name: "validerAI64",
|
|
1060
|
+
description: "Valider une cha\xEEne de caract\xE8res GS1 AI 64."
|
|
1061
|
+
},
|
|
1062
|
+
isValidAI64: {
|
|
1063
|
+
name: "estValideAI64",
|
|
1064
|
+
description: "D\xE9terminer si une cha\xEEne est un jeu de caract\xE8res GS1 AI 64."
|
|
1065
|
+
},
|
|
1047
1066
|
checkDigit: {
|
|
1048
1067
|
name: "chiffreDeControle",
|
|
1049
1068
|
description: "Calculer le chiffre de contr\xF4le pour une cha\xEEne num\xE9rique."
|
|
@@ -2120,20 +2139,43 @@ var valueForSParameterDescriptor = {
|
|
|
2120
2139
|
extendsDescriptor: sParameterDescriptor,
|
|
2121
2140
|
name: "valueForS"
|
|
2122
2141
|
};
|
|
2123
|
-
var
|
|
2124
|
-
|
|
2125
|
-
constructor(appExtension,
|
|
2142
|
+
var CharacterSetValidatorProxy = class extends StringProxy {
|
|
2143
|
+
_characterSetValidator;
|
|
2144
|
+
constructor(appExtension, characterSetValidator) {
|
|
2126
2145
|
super(appExtension);
|
|
2127
|
-
this.
|
|
2146
|
+
this._characterSetValidator = characterSetValidator;
|
|
2128
2147
|
}
|
|
2129
2148
|
validate(matrixSs, exclusion) {
|
|
2130
|
-
return this.validateString(this.
|
|
2149
|
+
return this.validateString(this._characterSetValidator, matrixSs, {
|
|
2131
2150
|
exclusion: exclusion ?? void 0
|
|
2132
2151
|
});
|
|
2133
2152
|
}
|
|
2134
2153
|
isValid(matrixSs, exclusion) {
|
|
2135
2154
|
return this.isValidString(this.validate(matrixSs, exclusion));
|
|
2136
2155
|
}
|
|
2156
|
+
};
|
|
2157
|
+
__decorateClass([
|
|
2158
|
+
ProxyMethod({
|
|
2159
|
+
type: Types.String,
|
|
2160
|
+
isMatrix: true
|
|
2161
|
+
}),
|
|
2162
|
+
__decorateParam(0, ProxyParameter(validateSParameterDescriptor)),
|
|
2163
|
+
__decorateParam(1, ProxyParameter(exclusionNoneParameterDescriptor))
|
|
2164
|
+
], CharacterSetValidatorProxy.prototype, "validate", 1);
|
|
2165
|
+
__decorateClass([
|
|
2166
|
+
ProxyMethod({
|
|
2167
|
+
type: Types.Boolean,
|
|
2168
|
+
isMatrix: true
|
|
2169
|
+
}),
|
|
2170
|
+
__decorateParam(0, ProxyParameter(validateSParameterDescriptor)),
|
|
2171
|
+
__decorateParam(1, ProxyParameter(exclusionNoneParameterDescriptor))
|
|
2172
|
+
], CharacterSetValidatorProxy.prototype, "isValid", 1);
|
|
2173
|
+
var CharacterSetCreatorProxy = class extends CharacterSetValidatorProxy {
|
|
2174
|
+
_characterSetCreator;
|
|
2175
|
+
constructor(appExtension, characterSetCreator) {
|
|
2176
|
+
super(appExtension, characterSetCreator);
|
|
2177
|
+
this._characterSetCreator = characterSetCreator;
|
|
2178
|
+
}
|
|
2137
2179
|
create(length, matrixValues, exclusion, tweak) {
|
|
2138
2180
|
const exclusionOrUndefined = exclusion ?? void 0;
|
|
2139
2181
|
const tweakOrUndefined = tweak ?? void 0;
|
|
@@ -2151,22 +2193,6 @@ var CharacterSetProxy = class extends StringProxy {
|
|
|
2151
2193
|
return this.mapMatrix(matrixSs, (s) => this.mapBigInt(this._characterSetCreator.valueFor(s, exclusionOrUndefined, tweakOrUndefined)));
|
|
2152
2194
|
}
|
|
2153
2195
|
};
|
|
2154
|
-
__decorateClass([
|
|
2155
|
-
ProxyMethod({
|
|
2156
|
-
type: Types.String,
|
|
2157
|
-
isMatrix: true
|
|
2158
|
-
}),
|
|
2159
|
-
__decorateParam(0, ProxyParameter(validateSParameterDescriptor)),
|
|
2160
|
-
__decorateParam(1, ProxyParameter(exclusionNoneParameterDescriptor))
|
|
2161
|
-
], CharacterSetProxy.prototype, "validate", 1);
|
|
2162
|
-
__decorateClass([
|
|
2163
|
-
ProxyMethod({
|
|
2164
|
-
type: Types.Boolean,
|
|
2165
|
-
isMatrix: true
|
|
2166
|
-
}),
|
|
2167
|
-
__decorateParam(0, ProxyParameter(validateSParameterDescriptor)),
|
|
2168
|
-
__decorateParam(1, ProxyParameter(exclusionNoneParameterDescriptor))
|
|
2169
|
-
], CharacterSetProxy.prototype, "isValid", 1);
|
|
2170
2196
|
__decorateClass([
|
|
2171
2197
|
ProxyMethod({
|
|
2172
2198
|
type: Types.String,
|
|
@@ -2176,7 +2202,7 @@ __decorateClass([
|
|
|
2176
2202
|
__decorateParam(1, ProxyParameter(valueParameterDescriptor)),
|
|
2177
2203
|
__decorateParam(2, ProxyParameter(exclusionNoneParameterDescriptor)),
|
|
2178
2204
|
__decorateParam(3, ProxyParameter(tweakParameterDescriptor))
|
|
2179
|
-
],
|
|
2205
|
+
], CharacterSetCreatorProxy.prototype, "create", 1);
|
|
2180
2206
|
__decorateClass([
|
|
2181
2207
|
ProxyMethod({
|
|
2182
2208
|
infixBefore: "Sequence",
|
|
@@ -2188,7 +2214,7 @@ __decorateClass([
|
|
|
2188
2214
|
__decorateParam(2, ProxyParameter(countParameterDescriptor)),
|
|
2189
2215
|
__decorateParam(3, ProxyParameter(exclusionNoneParameterDescriptor)),
|
|
2190
2216
|
__decorateParam(4, ProxyParameter(tweakParameterDescriptor))
|
|
2191
|
-
],
|
|
2217
|
+
], CharacterSetCreatorProxy.prototype, "createSequence", 1);
|
|
2192
2218
|
__decorateClass([
|
|
2193
2219
|
ProxyMethod({
|
|
2194
2220
|
type: Types.Number,
|
|
@@ -2197,8 +2223,8 @@ __decorateClass([
|
|
|
2197
2223
|
__decorateParam(0, ProxyParameter(valueForSParameterDescriptor)),
|
|
2198
2224
|
__decorateParam(1, ProxyParameter(exclusionNoneParameterDescriptor)),
|
|
2199
2225
|
__decorateParam(2, ProxyParameter(tweakParameterDescriptor))
|
|
2200
|
-
],
|
|
2201
|
-
var NumericProxy = class extends
|
|
2226
|
+
], CharacterSetCreatorProxy.prototype, "valueFor", 1);
|
|
2227
|
+
var NumericProxy = class extends CharacterSetCreatorProxy {
|
|
2202
2228
|
constructor(appExtension) {
|
|
2203
2229
|
super(appExtension, import_utility5.NUMERIC_CREATOR);
|
|
2204
2230
|
}
|
|
@@ -2214,7 +2240,7 @@ NumericProxy = __decorateClass([
|
|
|
2214
2240
|
]
|
|
2215
2241
|
})
|
|
2216
2242
|
], NumericProxy);
|
|
2217
|
-
var HexadecimalProxy = class extends
|
|
2243
|
+
var HexadecimalProxy = class extends CharacterSetCreatorProxy {
|
|
2218
2244
|
constructor(appExtension) {
|
|
2219
2245
|
super(appExtension, import_utility5.HEXADECIMAL_CREATOR);
|
|
2220
2246
|
}
|
|
@@ -2230,7 +2256,7 @@ HexadecimalProxy = __decorateClass([
|
|
|
2230
2256
|
]
|
|
2231
2257
|
})
|
|
2232
2258
|
], HexadecimalProxy);
|
|
2233
|
-
var AlphabeticProxy = class extends
|
|
2259
|
+
var AlphabeticProxy = class extends CharacterSetCreatorProxy {
|
|
2234
2260
|
constructor(appExtension) {
|
|
2235
2261
|
super(appExtension, import_utility5.ALPHABETIC_CREATOR);
|
|
2236
2262
|
}
|
|
@@ -2240,7 +2266,7 @@ AlphabeticProxy = __decorateClass([
|
|
|
2240
2266
|
methodInfix: "Alphabetic"
|
|
2241
2267
|
})
|
|
2242
2268
|
], AlphabeticProxy);
|
|
2243
|
-
var AlphanumericProxy = class extends
|
|
2269
|
+
var AlphanumericProxy = class extends CharacterSetCreatorProxy {
|
|
2244
2270
|
constructor(appExtension) {
|
|
2245
2271
|
super(appExtension, import_utility5.ALPHANUMERIC_CREATOR);
|
|
2246
2272
|
}
|
|
@@ -2261,6 +2287,7 @@ AlphanumericProxy = __decorateClass([
|
|
|
2261
2287
|
var gs1_exports = {};
|
|
2262
2288
|
__export(gs1_exports, {
|
|
2263
2289
|
AI39Proxy: () => AI39Proxy,
|
|
2290
|
+
AI64Proxy: () => AI64Proxy,
|
|
2264
2291
|
AI82Proxy: () => AI82Proxy,
|
|
2265
2292
|
CPIDCreatorProxy: () => CPIDCreatorProxy,
|
|
2266
2293
|
CPIDValidatorProxy: () => CPIDValidatorProxy,
|
|
@@ -2295,7 +2322,7 @@ __export(gs1_exports, {
|
|
|
2295
2322
|
|
|
2296
2323
|
// src/gs1/character-set-proxy.ts
|
|
2297
2324
|
var import_gs12 = require("@aidc-toolkit/gs1");
|
|
2298
|
-
var AI82Proxy = class extends
|
|
2325
|
+
var AI82Proxy = class extends CharacterSetCreatorProxy {
|
|
2299
2326
|
constructor(appExtension) {
|
|
2300
2327
|
super(appExtension, import_gs12.AI82_CREATOR);
|
|
2301
2328
|
}
|
|
@@ -2312,7 +2339,7 @@ AI82Proxy = __decorateClass([
|
|
|
2312
2339
|
]
|
|
2313
2340
|
})
|
|
2314
2341
|
], AI82Proxy);
|
|
2315
|
-
var AI39Proxy = class extends
|
|
2342
|
+
var AI39Proxy = class extends CharacterSetCreatorProxy {
|
|
2316
2343
|
constructor(appExtension) {
|
|
2317
2344
|
super(appExtension, import_gs12.AI39_CREATOR);
|
|
2318
2345
|
}
|
|
@@ -2329,6 +2356,17 @@ AI39Proxy = __decorateClass([
|
|
|
2329
2356
|
]
|
|
2330
2357
|
})
|
|
2331
2358
|
], AI39Proxy);
|
|
2359
|
+
var AI64Proxy = class extends CharacterSetValidatorProxy {
|
|
2360
|
+
constructor(appExtension) {
|
|
2361
|
+
super(appExtension, import_gs12.AI64_VALIDATOR);
|
|
2362
|
+
}
|
|
2363
|
+
};
|
|
2364
|
+
AI64Proxy = __decorateClass([
|
|
2365
|
+
ProxyClass({
|
|
2366
|
+
namespace: "GS1",
|
|
2367
|
+
methodInfix: "AI64"
|
|
2368
|
+
})
|
|
2369
|
+
], AI64Proxy);
|
|
2332
2370
|
|
|
2333
2371
|
// src/gs1/check-proxy.ts
|
|
2334
2372
|
var import_gs13 = require("@aidc-toolkit/gs1");
|
|
@@ -2498,7 +2536,7 @@ __decorateClass([
|
|
|
2498
2536
|
], NonNumericIdentifierValidatorProxy.prototype, "validate", 1);
|
|
2499
2537
|
var GTIN13ValidatorProxy = class extends GTINValidatorProxy {
|
|
2500
2538
|
constructor(appExtension) {
|
|
2501
|
-
super(appExtension, import_gs14.
|
|
2539
|
+
super(appExtension, import_gs14.IdentifierValidators.GTIN[import_gs14.GTINTypes.GTIN13]);
|
|
2502
2540
|
}
|
|
2503
2541
|
};
|
|
2504
2542
|
GTIN13ValidatorProxy = __decorateClass([
|
|
@@ -2509,7 +2547,7 @@ GTIN13ValidatorProxy = __decorateClass([
|
|
|
2509
2547
|
], GTIN13ValidatorProxy);
|
|
2510
2548
|
var GTIN12ValidatorProxy = class extends GTINValidatorProxy {
|
|
2511
2549
|
constructor(appExtension) {
|
|
2512
|
-
super(appExtension, import_gs14.
|
|
2550
|
+
super(appExtension, import_gs14.IdentifierValidators.GTIN[import_gs14.GTINTypes.GTIN12]);
|
|
2513
2551
|
}
|
|
2514
2552
|
};
|
|
2515
2553
|
GTIN12ValidatorProxy = __decorateClass([
|
|
@@ -2520,7 +2558,7 @@ GTIN12ValidatorProxy = __decorateClass([
|
|
|
2520
2558
|
], GTIN12ValidatorProxy);
|
|
2521
2559
|
var GTIN8ValidatorProxy = class extends GTINValidatorProxy {
|
|
2522
2560
|
constructor(appExtension) {
|
|
2523
|
-
super(appExtension, import_gs14.
|
|
2561
|
+
super(appExtension, import_gs14.IdentifierValidators.GTIN[import_gs14.GTINTypes.GTIN8]);
|
|
2524
2562
|
}
|
|
2525
2563
|
};
|
|
2526
2564
|
GTIN8ValidatorProxy = __decorateClass([
|
|
@@ -2679,7 +2717,7 @@ GTINValidatorStaticProxy = __decorateClass([
|
|
|
2679
2717
|
], GTINValidatorStaticProxy);
|
|
2680
2718
|
var GLNValidatorProxy = class extends NonGTINNumericIdentifierValidatorProxy {
|
|
2681
2719
|
constructor(appExtension) {
|
|
2682
|
-
super(appExtension, import_gs14.
|
|
2720
|
+
super(appExtension, import_gs14.IdentifierValidators.GLN);
|
|
2683
2721
|
}
|
|
2684
2722
|
};
|
|
2685
2723
|
GLNValidatorProxy = __decorateClass([
|
|
@@ -2690,7 +2728,7 @@ GLNValidatorProxy = __decorateClass([
|
|
|
2690
2728
|
], GLNValidatorProxy);
|
|
2691
2729
|
var SSCCValidatorProxy = class extends NonGTINNumericIdentifierValidatorProxy {
|
|
2692
2730
|
constructor(appExtension) {
|
|
2693
|
-
super(appExtension, import_gs14.
|
|
2731
|
+
super(appExtension, import_gs14.IdentifierValidators.SSCC);
|
|
2694
2732
|
}
|
|
2695
2733
|
};
|
|
2696
2734
|
SSCCValidatorProxy = __decorateClass([
|
|
@@ -2701,7 +2739,7 @@ SSCCValidatorProxy = __decorateClass([
|
|
|
2701
2739
|
], SSCCValidatorProxy);
|
|
2702
2740
|
var GRAIValidatorProxy = class extends SerializableNumericIdentifierValidatorProxy {
|
|
2703
2741
|
constructor(appExtension) {
|
|
2704
|
-
super(appExtension, import_gs14.
|
|
2742
|
+
super(appExtension, import_gs14.IdentifierValidators.GRAI);
|
|
2705
2743
|
}
|
|
2706
2744
|
};
|
|
2707
2745
|
GRAIValidatorProxy = __decorateClass([
|
|
@@ -2712,7 +2750,7 @@ GRAIValidatorProxy = __decorateClass([
|
|
|
2712
2750
|
], GRAIValidatorProxy);
|
|
2713
2751
|
var GIAIValidatorProxy = class extends NonNumericIdentifierValidatorProxy {
|
|
2714
2752
|
constructor(appExtension) {
|
|
2715
|
-
super(appExtension, import_gs14.
|
|
2753
|
+
super(appExtension, import_gs14.IdentifierValidators.GIAI);
|
|
2716
2754
|
}
|
|
2717
2755
|
};
|
|
2718
2756
|
GIAIValidatorProxy = __decorateClass([
|
|
@@ -2723,7 +2761,7 @@ GIAIValidatorProxy = __decorateClass([
|
|
|
2723
2761
|
], GIAIValidatorProxy);
|
|
2724
2762
|
var GSRNValidatorProxy = class extends NonGTINNumericIdentifierValidatorProxy {
|
|
2725
2763
|
constructor(appExtension) {
|
|
2726
|
-
super(appExtension, import_gs14.
|
|
2764
|
+
super(appExtension, import_gs14.IdentifierValidators.GSRN);
|
|
2727
2765
|
}
|
|
2728
2766
|
};
|
|
2729
2767
|
GSRNValidatorProxy = __decorateClass([
|
|
@@ -2734,7 +2772,7 @@ GSRNValidatorProxy = __decorateClass([
|
|
|
2734
2772
|
], GSRNValidatorProxy);
|
|
2735
2773
|
var GDTIValidatorProxy = class extends SerializableNumericIdentifierValidatorProxy {
|
|
2736
2774
|
constructor(appExtension) {
|
|
2737
|
-
super(appExtension, import_gs14.
|
|
2775
|
+
super(appExtension, import_gs14.IdentifierValidators.GDTI);
|
|
2738
2776
|
}
|
|
2739
2777
|
};
|
|
2740
2778
|
GDTIValidatorProxy = __decorateClass([
|
|
@@ -2745,7 +2783,7 @@ GDTIValidatorProxy = __decorateClass([
|
|
|
2745
2783
|
], GDTIValidatorProxy);
|
|
2746
2784
|
var GINCValidatorProxy = class extends NonNumericIdentifierValidatorProxy {
|
|
2747
2785
|
constructor(appExtension) {
|
|
2748
|
-
super(appExtension, import_gs14.
|
|
2786
|
+
super(appExtension, import_gs14.IdentifierValidators.GINC);
|
|
2749
2787
|
}
|
|
2750
2788
|
};
|
|
2751
2789
|
GINCValidatorProxy = __decorateClass([
|
|
@@ -2756,7 +2794,7 @@ GINCValidatorProxy = __decorateClass([
|
|
|
2756
2794
|
], GINCValidatorProxy);
|
|
2757
2795
|
var GSINValidatorProxy = class extends NonGTINNumericIdentifierValidatorProxy {
|
|
2758
2796
|
constructor(appExtension) {
|
|
2759
|
-
super(appExtension, import_gs14.
|
|
2797
|
+
super(appExtension, import_gs14.IdentifierValidators.GSIN);
|
|
2760
2798
|
}
|
|
2761
2799
|
};
|
|
2762
2800
|
GSINValidatorProxy = __decorateClass([
|
|
@@ -2767,7 +2805,7 @@ GSINValidatorProxy = __decorateClass([
|
|
|
2767
2805
|
], GSINValidatorProxy);
|
|
2768
2806
|
var GCNValidatorProxy = class extends SerializableNumericIdentifierValidatorProxy {
|
|
2769
2807
|
constructor(appExtension) {
|
|
2770
|
-
super(appExtension, import_gs14.
|
|
2808
|
+
super(appExtension, import_gs14.IdentifierValidators.GCN);
|
|
2771
2809
|
}
|
|
2772
2810
|
};
|
|
2773
2811
|
GCNValidatorProxy = __decorateClass([
|
|
@@ -2778,7 +2816,7 @@ GCNValidatorProxy = __decorateClass([
|
|
|
2778
2816
|
], GCNValidatorProxy);
|
|
2779
2817
|
var CPIDValidatorProxy = class extends NonNumericIdentifierValidatorProxy {
|
|
2780
2818
|
constructor(appExtension) {
|
|
2781
|
-
super(appExtension, import_gs14.
|
|
2819
|
+
super(appExtension, import_gs14.IdentifierValidators.CPID);
|
|
2782
2820
|
}
|
|
2783
2821
|
};
|
|
2784
2822
|
CPIDValidatorProxy = __decorateClass([
|
|
@@ -2789,7 +2827,7 @@ CPIDValidatorProxy = __decorateClass([
|
|
|
2789
2827
|
], CPIDValidatorProxy);
|
|
2790
2828
|
var GMNValidatorProxy = class extends NonNumericIdentifierValidatorProxy {
|
|
2791
2829
|
constructor(appExtension) {
|
|
2792
|
-
super(appExtension, import_gs14.
|
|
2830
|
+
super(appExtension, import_gs14.IdentifierValidators.GMN);
|
|
2793
2831
|
}
|
|
2794
2832
|
};
|
|
2795
2833
|
GMNValidatorProxy = __decorateClass([
|
|
@@ -2882,7 +2920,11 @@ var IdentifierCreatorProxy = class _IdentifierCreatorProxy extends LibProxy {
|
|
|
2882
2920
|
maximumPrefixType: _IdentifierCreatorProxy.PREFIX_TYPES.length - 1
|
|
2883
2921
|
}));
|
|
2884
2922
|
}
|
|
2885
|
-
const
|
|
2923
|
+
const prefixType = _IdentifierCreatorProxy.PREFIX_TYPES[prefixTypeIndex];
|
|
2924
|
+
if (prefixType === void 0) {
|
|
2925
|
+
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.invalidPrefixType"));
|
|
2926
|
+
}
|
|
2927
|
+
const prefixManager = import_gs14.PrefixManager.get(prefixType, prefix);
|
|
2886
2928
|
const tweakFactor = reducedPrefixDefinition[2];
|
|
2887
2929
|
if (!(0, import_core3.isNullish)(tweakFactor)) {
|
|
2888
2930
|
if (typeof tweakFactor !== "number") {
|
|
@@ -3376,7 +3418,8 @@ var Generator = class _Generator {
|
|
|
3376
3418
|
AlphanumericProxy,
|
|
3377
3419
|
AppExtension,
|
|
3378
3420
|
AppUtilityProxy,
|
|
3379
|
-
|
|
3421
|
+
CharacterSetCreatorProxy,
|
|
3422
|
+
CharacterSetValidatorProxy,
|
|
3380
3423
|
GS1,
|
|
3381
3424
|
Generator,
|
|
3382
3425
|
HexadecimalProxy,
|