@aidc-toolkit/app-extension 1.0.49 → 1.0.50-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.
Files changed (210) hide show
  1. package/dist/app-extension-options.d.ts +52 -0
  2. package/dist/app-extension-options.d.ts.map +1 -0
  3. package/dist/app-extension-options.js +2 -0
  4. package/dist/app-extension-options.js.map +1 -0
  5. package/dist/app-extension.d.ts +194 -0
  6. package/dist/app-extension.d.ts.map +1 -0
  7. package/dist/app-extension.js +141 -0
  8. package/dist/app-extension.js.map +1 -0
  9. package/dist/app-helper-proxy.d.ts +57 -0
  10. package/dist/app-helper-proxy.d.ts.map +1 -0
  11. package/dist/app-helper-proxy.js +369 -0
  12. package/dist/app-helper-proxy.js.map +1 -0
  13. package/dist/{descriptor-D6tZH-vc.d.cts → descriptor.d.ts} +13 -13
  14. package/dist/descriptor.d.ts.map +1 -0
  15. package/dist/descriptor.js +44 -0
  16. package/dist/descriptor.js.map +1 -0
  17. package/dist/generator/functions-generator.d.ts +103 -0
  18. package/dist/generator/functions-generator.d.ts.map +1 -0
  19. package/dist/generator/functions-generator.js +179 -0
  20. package/dist/generator/functions-generator.js.map +1 -0
  21. package/dist/generator/generator.d.ts +121 -0
  22. package/dist/generator/generator.d.ts.map +1 -0
  23. package/dist/generator/generator.js +186 -0
  24. package/dist/generator/generator.js.map +1 -0
  25. package/dist/generator/index.d.ts +18 -239
  26. package/dist/generator/index.d.ts.map +1 -0
  27. package/dist/generator/index.js +3 -1
  28. package/dist/generator/index.js.map +1 -0
  29. package/dist/generator/locale-resources-generator.d.ts +2 -0
  30. package/dist/generator/locale-resources-generator.d.ts.map +1 -0
  31. package/dist/generator/locale-resources-generator.js +333 -0
  32. package/dist/generator/locale-resources-generator.js.map +1 -0
  33. package/dist/gs1/character-set-proxy.d.ts +12 -0
  34. package/dist/gs1/character-set-proxy.d.ts.map +1 -0
  35. package/dist/gs1/character-set-proxy.js +126 -0
  36. package/dist/gs1/character-set-proxy.js.map +1 -0
  37. package/dist/gs1/check-proxy.d.ts +11 -0
  38. package/dist/gs1/check-proxy.d.ts.map +1 -0
  39. package/dist/gs1/check-proxy.js +163 -0
  40. package/dist/gs1/check-proxy.js.map +1 -0
  41. package/dist/gs1/gcp-length-proxy.d.ts +11 -0
  42. package/dist/gs1/gcp-length-proxy.d.ts.map +1 -0
  43. package/dist/gs1/gcp-length-proxy.js +187 -0
  44. package/dist/gs1/gcp-length-proxy.js.map +1 -0
  45. package/dist/gs1/gtin-creator-proxy.d.ts +10 -0
  46. package/dist/gs1/gtin-creator-proxy.d.ts.map +1 -0
  47. package/dist/gs1/gtin-creator-proxy.js +85 -0
  48. package/dist/gs1/gtin-creator-proxy.js.map +1 -0
  49. package/dist/gs1/gtin-descriptor.d.ts +3 -0
  50. package/dist/gs1/gtin-descriptor.d.ts.map +1 -0
  51. package/dist/gs1/gtin-descriptor.js +8 -0
  52. package/dist/gs1/gtin-descriptor.js.map +1 -0
  53. package/dist/gs1/gtin-validator-proxy.d.ts +26 -0
  54. package/dist/gs1/gtin-validator-proxy.d.ts.map +1 -0
  55. package/dist/gs1/gtin-validator-proxy.js +256 -0
  56. package/dist/gs1/gtin-validator-proxy.js.map +1 -0
  57. package/dist/gs1/identifier-creator-proxy.d.ts +30 -0
  58. package/dist/gs1/identifier-creator-proxy.d.ts.map +1 -0
  59. package/dist/gs1/identifier-creator-proxy.js +318 -0
  60. package/dist/gs1/identifier-creator-proxy.js.map +1 -0
  61. package/dist/gs1/identifier-descriptor.d.ts +4 -0
  62. package/dist/gs1/identifier-descriptor.d.ts.map +1 -0
  63. package/dist/gs1/identifier-descriptor.js +14 -0
  64. package/dist/gs1/identifier-descriptor.js.map +1 -0
  65. package/dist/gs1/identifier-type.d.ts +22 -0
  66. package/dist/gs1/identifier-type.d.ts.map +1 -0
  67. package/dist/gs1/identifier-type.js +34 -0
  68. package/dist/gs1/identifier-type.js.map +1 -0
  69. package/dist/gs1/identifier-validator-proxy.d.ts +29 -0
  70. package/dist/gs1/identifier-validator-proxy.d.ts.map +1 -0
  71. package/dist/gs1/identifier-validator-proxy.js +212 -0
  72. package/dist/gs1/identifier-validator-proxy.js.map +1 -0
  73. package/dist/gs1/index.d.ts +11 -185
  74. package/dist/gs1/index.d.ts.map +1 -0
  75. package/dist/gs1/index.js +11 -1
  76. package/dist/gs1/index.js.map +1 -0
  77. package/dist/gs1/non-gtin-creator-proxy.d.ts +37 -0
  78. package/dist/gs1/non-gtin-creator-proxy.d.ts.map +1 -0
  79. package/dist/gs1/non-gtin-creator-proxy.js +301 -0
  80. package/dist/gs1/non-gtin-creator-proxy.js.map +1 -0
  81. package/dist/gs1/non-gtin-validator-proxy.d.ts +36 -0
  82. package/dist/gs1/non-gtin-validator-proxy.d.ts.map +1 -0
  83. package/dist/gs1/non-gtin-validator-proxy.js +302 -0
  84. package/dist/gs1/non-gtin-validator-proxy.js.map +1 -0
  85. package/dist/gs1/prefix-definition-descriptor.d.ts +4 -0
  86. package/dist/gs1/prefix-definition-descriptor.d.ts.map +1 -0
  87. package/dist/gs1/prefix-definition-descriptor.js +16 -0
  88. package/dist/gs1/prefix-definition-descriptor.js.map +1 -0
  89. package/dist/gs1/prefix-manager-proxy.d.ts +8 -0
  90. package/dist/gs1/prefix-manager-proxy.d.ts.map +1 -0
  91. package/dist/gs1/prefix-manager-proxy.js +94 -0
  92. package/dist/gs1/prefix-manager-proxy.js.map +1 -0
  93. package/dist/gs1/variable-measure-proxy.d.ts +7 -0
  94. package/dist/gs1/variable-measure-proxy.d.ts.map +1 -0
  95. package/dist/gs1/variable-measure-proxy.js +114 -0
  96. package/dist/gs1/variable-measure-proxy.js.map +1 -0
  97. package/dist/gs1/verified-by-gs1-proxy.d.ts +7 -0
  98. package/dist/gs1/verified-by-gs1-proxy.d.ts.map +1 -0
  99. package/dist/gs1/verified-by-gs1-proxy.js +100 -0
  100. package/dist/gs1/verified-by-gs1-proxy.js.map +1 -0
  101. package/dist/index.d.ts +22 -862
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +7 -1
  104. package/dist/index.js.map +1 -0
  105. package/dist/lib-proxy.d.ts +121 -0
  106. package/dist/lib-proxy.d.ts.map +1 -0
  107. package/dist/lib-proxy.js +259 -0
  108. package/dist/lib-proxy.js.map +1 -0
  109. package/dist/{index.d.cts → locale/en/locale-resources.d.ts} +2 -113
  110. package/dist/locale/en/locale-resources.d.ts.map +1 -0
  111. package/dist/locale/en/locale-resources.js +754 -0
  112. package/dist/locale/en/locale-resources.js.map +1 -0
  113. package/dist/locale/fr/locale-resources.d.ts +755 -0
  114. package/dist/locale/fr/locale-resources.d.ts.map +1 -0
  115. package/dist/locale/fr/locale-resources.js +754 -0
  116. package/dist/locale/fr/locale-resources.js.map +1 -0
  117. package/dist/locale/i18n.d.ts +27 -0
  118. package/dist/locale/i18n.d.ts.map +1 -0
  119. package/dist/locale/i18n.js +36 -0
  120. package/dist/locale/i18n.js.map +1 -0
  121. package/dist/proxy.d.ts +135 -0
  122. package/dist/proxy.d.ts.map +1 -0
  123. package/dist/proxy.js +291 -0
  124. package/dist/proxy.js.map +1 -0
  125. package/dist/streaming.d.ts +10 -0
  126. package/dist/streaming.d.ts.map +1 -0
  127. package/dist/streaming.js +2 -0
  128. package/dist/streaming.js.map +1 -0
  129. package/dist/type.d.ts +72 -0
  130. package/dist/type.d.ts.map +1 -0
  131. package/dist/type.js +2 -0
  132. package/dist/type.js.map +1 -0
  133. package/dist/utility/character-set-descriptor.d.ts +6 -0
  134. package/dist/utility/character-set-descriptor.d.ts.map +1 -0
  135. package/dist/utility/character-set-descriptor.js +28 -0
  136. package/dist/utility/character-set-descriptor.js.map +1 -0
  137. package/dist/utility/character-set-proxy.d.ts +32 -0
  138. package/dist/utility/character-set-proxy.d.ts.map +1 -0
  139. package/dist/utility/character-set-proxy.js +278 -0
  140. package/dist/utility/character-set-proxy.js.map +1 -0
  141. package/dist/utility/index.d.ts +4 -0
  142. package/dist/utility/index.d.ts.map +1 -0
  143. package/dist/utility/index.js +4 -0
  144. package/dist/utility/index.js.map +1 -0
  145. package/dist/utility/reg-exp-proxy.d.ts +8 -0
  146. package/dist/utility/reg-exp-proxy.d.ts.map +1 -0
  147. package/dist/utility/reg-exp-proxy.js +103 -0
  148. package/dist/utility/reg-exp-proxy.js.map +1 -0
  149. package/dist/utility/string-descriptor.d.ts +4 -0
  150. package/dist/utility/string-descriptor.d.ts.map +1 -0
  151. package/dist/utility/string-descriptor.js +12 -0
  152. package/dist/utility/string-descriptor.js.map +1 -0
  153. package/dist/utility/string-proxy.d.ts +7 -0
  154. package/dist/utility/string-proxy.d.ts.map +1 -0
  155. package/dist/utility/string-proxy.js +63 -0
  156. package/dist/utility/string-proxy.js.map +1 -0
  157. package/dist/utility/transformer-descriptor.d.ts +6 -0
  158. package/dist/utility/transformer-descriptor.d.ts.map +1 -0
  159. package/dist/utility/transformer-descriptor.js +24 -0
  160. package/dist/utility/transformer-descriptor.js.map +1 -0
  161. package/dist/utility/transformer-proxy.d.ts +10 -0
  162. package/dist/utility/transformer-proxy.d.ts.map +1 -0
  163. package/dist/utility/transformer-proxy.js +111 -0
  164. package/dist/utility/transformer-proxy.js.map +1 -0
  165. package/dist/version.d.ts +5 -0
  166. package/dist/version.d.ts.map +1 -0
  167. package/dist/version.js +5 -0
  168. package/dist/version.js.map +1 -0
  169. package/package.json +5 -5
  170. package/src/app-extension-options.ts +61 -0
  171. package/src/app-extension.ts +22 -32
  172. package/src/app-helper-proxy.ts +21 -33
  173. package/src/generator/functions-generator.ts +14 -45
  174. package/src/generator/generator.ts +28 -18
  175. package/src/generator/locale-resources-generator.ts +79 -52
  176. package/src/gs1/character-set-proxy.ts +6 -7
  177. package/src/gs1/check-proxy.ts +8 -8
  178. package/src/gs1/gcp-length-proxy.ts +8 -8
  179. package/src/gs1/gtin-creator-proxy.ts +4 -4
  180. package/src/gs1/gtin-validator-proxy.ts +12 -12
  181. package/src/gs1/identifier-creator-proxy.ts +14 -14
  182. package/src/gs1/identifier-validator-proxy.ts +10 -10
  183. package/src/gs1/non-gtin-creator-proxy.ts +22 -23
  184. package/src/gs1/non-gtin-validator-proxy.ts +22 -23
  185. package/src/gs1/prefix-manager-proxy.ts +2 -2
  186. package/src/gs1/variable-measure-proxy.ts +4 -4
  187. package/src/gs1/verified-by-gs1-proxy.ts +5 -11
  188. package/src/index.ts +1 -0
  189. package/src/lib-proxy.ts +27 -43
  190. package/src/locale/en/locale-resources.ts +1 -1
  191. package/src/proxy.ts +12 -15
  192. package/src/streaming.ts +3 -3
  193. package/src/type.ts +3 -22
  194. package/src/utility/character-set-proxy.ts +17 -16
  195. package/src/utility/reg-exp-proxy.ts +2 -2
  196. package/src/utility/string-proxy.ts +2 -2
  197. package/src/utility/transformer-proxy.ts +6 -5
  198. package/src/version.ts +1 -1
  199. package/tsconfig-src.tsbuildinfo +1 -1
  200. package/dist/character-set-proxy-BOW94WCe.d.cts +0 -473
  201. package/dist/character-set-proxy-BOW94WCe.d.ts +0 -473
  202. package/dist/chunk-22IRLVWO.js +0 -1
  203. package/dist/chunk-MR63TJ3B.js +0 -1
  204. package/dist/chunk-TWX7TPRC.js +0 -1
  205. package/dist/descriptor-D6tZH-vc.d.ts +0 -185
  206. package/dist/generator/index.cjs +0 -17
  207. package/dist/generator/index.d.cts +0 -240
  208. package/dist/gs1/index.cjs +0 -1
  209. package/dist/gs1/index.d.cts +0 -185
  210. package/dist/index.cjs +0 -17
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,kBAAkB,CAAC;AAEjC,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,gBAAgB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import{a as b}from"./chunk-MR63TJ3B.js";import{A as y,B as S,C,D as I,E as v,i as c,j as l,k as n,l as p,m as T,n as u,o as E,u as h,w as x,z as d}from"./chunk-22IRLVWO.js";import{getLogger as m,LogLevels as a,MemoryTransport as g}from"@aidc-toolkit/core";var i=class e{static APPLICATION_NAME="AIDCToolkit";static VERSION_NAME=`${e.APPLICATION_NAME}.version`;static#i=120;static#s=100;#t;#r;#o;#e;#n;#a=new WeakMap;constructor(t,r,s){this.#t=t,this.#r=r,this.#o=s;let o=!t.includes("-");this.#e=m(o?a.Info:a.Debug,{type:o?"hidden":"pretty"}),this.#n=new g(this.#e,e.#i,e.#s)}async initialize(){await this.getDocumentProperty(e.VERSION_NAME)!==this.#t&&await this.setDocumentProperty(e.VERSION_NAME,this.#t)}get version(){return this.#t}get throwError(){return this.#o}get logger(){return this.#e}get memoryTransport(){return this.#n}getProxy(t){let r=this.#a.get(t);return r===void 0&&(r=new t(this),this.#a.set(t,r)),r}validateSequenceCount(t){let r=Math.abs(t);if(r>this.#r)throw new RangeError(n.t("AppExtension.sequenceCountMustBeLessThanOrEqualTo",{sequenceCount:r,maximumSequenceCount:this.#r}))}};export{I as AlphabeticProxy,v as AlphanumericProxy,i as AppExtension,b as AppHelperProxy,y as CharacterSetCreatorProxy,d as CharacterSetValidatorProxy,C as HexadecimalProxy,T as LibProxy,E as Multiplicities,S as NumericProxy,x as RegExpProxy,h as TransformerProxy,u as Types,c as appExtensionNS,l as appExtensionResourceBundle,p as i18nAppExtensionInit,n as i18nextAppExtension};
2
1
  /*!
3
2
  * Copyright © 2024-2026 Dolphin Data Development Ltd. and AIDC Toolkit
4
3
  * contributors
@@ -15,3 +14,10 @@ import{a as b}from"./chunk-MR63TJ3B.js";import{A as y,B as S,C,D as I,E as v,i a
15
14
  * See the License for the specific language governing permissions and
16
15
  * limitations under the License.
17
16
  */
17
+ export * from "./locale/i18n.js";
18
+ export * from "./app-extension.js";
19
+ export * from "./lib-proxy.js";
20
+ export * from "./descriptor.js";
21
+ export * from "./app-helper-proxy.js";
22
+ export * from "./utility/index.js";
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,kBAAkB,CAAC;AAMjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,121 @@
1
+ import type { BigInteger } from "./app-extension-options.js";
2
+ import type { AppExtension } from "./app-extension.js";
3
+ import type { Matrix, MatrixResult, SingletonResult } from "./type.js";
4
+ /**
5
+ * Library proxy.
6
+ */
7
+ export declare abstract class LibProxy {
8
+ #private;
9
+ /**
10
+ * Constructor.
11
+ *
12
+ * @param appExtension
13
+ * Application extension.
14
+ */
15
+ constructor(appExtension: AppExtension);
16
+ /**
17
+ * Get the application extension.
18
+ */
19
+ get appExtension(): AppExtension;
20
+ /**
21
+ * Map big integer to another type if necessary.
22
+ *
23
+ * @param value
24
+ * Big integer value to map.
25
+ *
26
+ * @returns
27
+ * Mapped big integer value.
28
+ */
29
+ mapBigInt(value: bigint): SingletonResult<BigInteger>;
30
+ /**
31
+ * Call a singleton result function with error handling.
32
+ *
33
+ * @param callback
34
+ * Callback.
35
+ *
36
+ * @returns
37
+ * Callback return or error if errors are not thrown.
38
+ */
39
+ singletonResult<TResult>(callback: () => SingletonResult<TResult>): SingletonResult<TResult>;
40
+ /**
41
+ * Call a matrix result function with error handling.
42
+ *
43
+ * @param matrixValues
44
+ * Matrix of values.
45
+ *
46
+ * @param valueCallback
47
+ * Callback to process value.
48
+ *
49
+ * @returns
50
+ * Matrix of callback results and errors if errors are not thrown.
51
+ */
52
+ protected matrixResult<TValue, TResult>(matrixValues: Matrix<TValue>, valueCallback: (value: TValue) => SingletonResult<TResult>): MatrixResult<TResult>;
53
+ /**
54
+ * Map a matrix of validate string results to boolean. If the string is empty, the result is true, indicating that
55
+ * there is no error.
56
+ *
57
+ * @param matrixValidateResults
58
+ * Matrix of results from a call to a validate function.
59
+ *
60
+ * @returns
61
+ * Matrix of boolean values, true if corresponding string is empty.
62
+ */
63
+ protected isValidString(matrixValidateResults: MatrixResult<string>): Matrix<boolean>;
64
+ /**
65
+ * Set up a mapping and call a matrix result function with error handling.
66
+ *
67
+ * @param setUpCallback
68
+ * Callback to set up the mapping.
69
+ *
70
+ * @param matrixValues
71
+ * Matrix of values.
72
+ *
73
+ * @param valueCallback
74
+ * Callback to process value.
75
+ *
76
+ * @returns
77
+ * Matrix of callback results and errors if errors are not thrown.
78
+ */
79
+ protected setUpMatrixResult<TSetup, TValue, TResult>(setUpCallback: () => TSetup, matrixValues: Matrix<TValue>, valueCallback: (setup: TSetup, value: TValue) => SingletonResult<TResult>): MatrixResult<TResult>;
80
+ /**
81
+ * Call an array result function with error handling and map to a matrix.
82
+ *
83
+ * @param matrixValues
84
+ * Matrix of values.
85
+ *
86
+ * @param callback
87
+ * Callback.
88
+ *
89
+ * @returns
90
+ * Matrix of callback results and errors if errors are not thrown.
91
+ */
92
+ protected arrayResult<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => Array<SingletonResult<TResult>>): MatrixResult<TResult>;
93
+ /**
94
+ * Call a matrix result function with error handling and map a non-error result to an empty string and {@linkcode
95
+ * RangeError} to the string error message.
96
+ *
97
+ * @param matrixValues
98
+ * Matrix of values.
99
+ *
100
+ * @param callback
101
+ * Callback that either returns or throws an exception.
102
+ *
103
+ * @returns
104
+ * Matrix of strings.
105
+ */
106
+ protected matrixErrorResult<TValue>(matrixValues: Matrix<TValue>, callback: (value: TValue) => void): Matrix<string>;
107
+ /**
108
+ * Call an iterable result function with error handling and map to a matrix. Although the natural approach would be
109
+ * to map to a single-element array containing an array of *N* results (i.e., [[r0, r1, r2, ..., r*N*]]), this is
110
+ * rendered visually as a single row. The more readable approach is as a single column, so the mapping is to an
111
+ * *N*-element array of single-element result arrays (i.e., [[r0], [r1], [r2], ..., [r*N*]]).
112
+ *
113
+ * @param iterableCallback
114
+ * Iterable callback.
115
+ *
116
+ * @returns
117
+ * Matrix of callback results.
118
+ */
119
+ protected iterableResult<TResult>(iterableCallback: () => Iterable<SingletonResult<TResult>>): MatrixResult<TResult>;
120
+ }
121
+ //# sourceMappingURL=lib-proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib-proxy.d.ts","sourceRoot":"","sources":["../src/lib-proxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEvE;;GAEG;AACH,8BAAsB,QAAQ;;IAM1B;;;;;OAKG;gBACS,YAAY,EAAE,YAAY;IAItC;;OAEG;IACH,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC;IAkCrD;;;;;;;;OAQG;IACH,eAAe,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC;IAY5F;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC;IAIxJ;;;;;;;;;OASG;IACH,SAAS,CAAC,aAAa,CAAC,qBAAqB,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IAIrF;;;;;;;;;;;;;;OAcG;IACH,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC;IA8BjN;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC;IA0CzJ;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAuBpH;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC;CAWvH"}
@@ -0,0 +1,259 @@
1
+ import { mapIterable } from "@aidc-toolkit/utility";
2
+ import { i18nextAppExtension } from "./locale/i18n.js";
3
+ /**
4
+ * Library proxy.
5
+ */
6
+ export class LibProxy {
7
+ /**
8
+ * Application extension.
9
+ */
10
+ #appExtension;
11
+ /**
12
+ * Constructor.
13
+ *
14
+ * @param appExtension
15
+ * Application extension.
16
+ */
17
+ constructor(appExtension) {
18
+ this.#appExtension = appExtension;
19
+ }
20
+ /**
21
+ * Get the application extension.
22
+ */
23
+ get appExtension() {
24
+ return this.#appExtension;
25
+ }
26
+ /**
27
+ * Map big integer to another type if necessary.
28
+ *
29
+ * @param value
30
+ * Big integer value to map.
31
+ *
32
+ * @returns
33
+ * Mapped big integer value.
34
+ */
35
+ mapBigInt(value) {
36
+ return this.#appExtension.mapBigInt(value);
37
+ }
38
+ /**
39
+ * Handle an error thrown by a function call. Return type is {@linkcode SingletonResult} to ensure assignment
40
+ * compatibility.
41
+ *
42
+ * @param e
43
+ * Error.
44
+ *
45
+ * @returns
46
+ * Error if errors are not thrown.
47
+ */
48
+ #handleError(e) {
49
+ let result;
50
+ if (e instanceof RangeError) {
51
+ const error = this.#appExtension.mapRangeError(e);
52
+ if (this.#appExtension.throwError) {
53
+ // eslint-disable-next-line @typescript-eslint/only-throw-error -- Type is determined by application.
54
+ throw error;
55
+ }
56
+ result = error;
57
+ }
58
+ else {
59
+ // Unknown error; pass on to application extension.
60
+ result = this.appExtension.handleError(e instanceof Error ? e.message : String(e));
61
+ }
62
+ return result;
63
+ }
64
+ /**
65
+ * Call a singleton result function with error handling.
66
+ *
67
+ * @param callback
68
+ * Callback.
69
+ *
70
+ * @returns
71
+ * Callback return or error if errors are not thrown.
72
+ */
73
+ singletonResult(callback) {
74
+ let result;
75
+ try {
76
+ result = callback();
77
+ }
78
+ catch (e) {
79
+ result = this.#handleError(e);
80
+ }
81
+ return result;
82
+ }
83
+ /**
84
+ * Call a matrix result function with error handling.
85
+ *
86
+ * @param matrixValues
87
+ * Matrix of values.
88
+ *
89
+ * @param valueCallback
90
+ * Callback to process value.
91
+ *
92
+ * @returns
93
+ * Matrix of callback results and errors if errors are not thrown.
94
+ */
95
+ matrixResult(matrixValues, valueCallback) {
96
+ return matrixValues.map(rowValues => rowValues.map(value => this.singletonResult(() => valueCallback(value))));
97
+ }
98
+ /**
99
+ * Map a matrix of validate string results to boolean. If the string is empty, the result is true, indicating that
100
+ * there is no error.
101
+ *
102
+ * @param matrixValidateResults
103
+ * Matrix of results from a call to a validate function.
104
+ *
105
+ * @returns
106
+ * Matrix of boolean values, true if corresponding string is empty.
107
+ */
108
+ isValidString(matrixValidateResults) {
109
+ return matrixValidateResults.map(rowValues => rowValues.map(value => (validateResult => validateResult === "")(value)));
110
+ }
111
+ /**
112
+ * Set up a mapping and call a matrix result function with error handling.
113
+ *
114
+ * @param setUpCallback
115
+ * Callback to set up the mapping.
116
+ *
117
+ * @param matrixValues
118
+ * Matrix of values.
119
+ *
120
+ * @param valueCallback
121
+ * Callback to process value.
122
+ *
123
+ * @returns
124
+ * Matrix of callback results and errors if errors are not thrown.
125
+ */
126
+ setUpMatrixResult(setUpCallback, matrixValues, valueCallback) {
127
+ let result;
128
+ try {
129
+ result = matrixValues.map(rowValues => rowValues.map(value => this.singletonResult(() => valueCallback(setUpCallback(), value))));
130
+ }
131
+ catch (e) {
132
+ result = [[this.#handleError(e)]];
133
+ }
134
+ return result;
135
+ }
136
+ /**
137
+ * Do the callback for an array return.
138
+ *
139
+ * @param value
140
+ * Value.
141
+ *
142
+ * @param callback
143
+ * Callback.
144
+ *
145
+ * @returns
146
+ * Callback result or error as array if errors are not thrown.
147
+ */
148
+ #arrayCallback(value, callback) {
149
+ const result = this.singletonResult(() => callback(value));
150
+ return result instanceof Array ? result : [result];
151
+ }
152
+ /**
153
+ * Call an array result function with error handling and map to a matrix.
154
+ *
155
+ * @param matrixValues
156
+ * Matrix of values.
157
+ *
158
+ * @param callback
159
+ * Callback.
160
+ *
161
+ * @returns
162
+ * Matrix of callback results and errors if errors are not thrown.
163
+ */
164
+ arrayResult(matrixValues, callback) {
165
+ let result;
166
+ if (matrixValues.length === 0) {
167
+ // Special case; unlikely to occur.
168
+ result = [[]];
169
+ }
170
+ else if (matrixValues.length === 1) {
171
+ result = [];
172
+ matrixValues[0].forEach((value, columnIndex) => {
173
+ const arrayResult = this.#arrayCallback(value, callback);
174
+ arrayResult.forEach((resultError, rowIndex) => {
175
+ // Append a row if necessary.
176
+ if (result.length <= rowIndex) {
177
+ result.push([]);
178
+ }
179
+ // Assignment will automatically expand row to the number of columns in the matrix.
180
+ result[rowIndex][columnIndex] = resultError;
181
+ });
182
+ });
183
+ }
184
+ else {
185
+ result = matrixValues.map((rowValue) => {
186
+ let arrayResult;
187
+ if (rowValue.length === 0) {
188
+ // Special case; unlikely to occur.
189
+ arrayResult = [];
190
+ }
191
+ else if (rowValue.length === 1) {
192
+ arrayResult = this.#arrayCallback(rowValue[0], callback);
193
+ }
194
+ else {
195
+ arrayResult = [this.#handleError(new RangeError(i18nextAppExtension.t("Proxy.matrixMustBeArray")))];
196
+ }
197
+ return arrayResult;
198
+ });
199
+ }
200
+ return result;
201
+ }
202
+ /**
203
+ * Call a matrix result function with error handling and map a non-error result to an empty string and {@linkcode
204
+ * RangeError} to the string error message.
205
+ *
206
+ * @param matrixValues
207
+ * Matrix of values.
208
+ *
209
+ * @param callback
210
+ * Callback that either returns or throws an exception.
211
+ *
212
+ * @returns
213
+ * Matrix of strings.
214
+ */
215
+ matrixErrorResult(matrixValues, callback) {
216
+ return matrixValues.map(rowValues => rowValues.map((value) => {
217
+ let result;
218
+ try {
219
+ callback(value);
220
+ // No error; return empty string.
221
+ result = "";
222
+ }
223
+ catch (e) {
224
+ if (e instanceof RangeError) {
225
+ // Library error; return error message.
226
+ result = e.message;
227
+ }
228
+ else {
229
+ // Unknown error; pass up the stack.
230
+ throw e;
231
+ }
232
+ }
233
+ return result;
234
+ }));
235
+ }
236
+ /**
237
+ * Call an iterable result function with error handling and map to a matrix. Although the natural approach would be
238
+ * to map to a single-element array containing an array of *N* results (i.e., [[r0, r1, r2, ..., r*N*]]), this is
239
+ * rendered visually as a single row. The more readable approach is as a single column, so the mapping is to an
240
+ * *N*-element array of single-element result arrays (i.e., [[r0], [r1], [r2], ..., [r*N*]]).
241
+ *
242
+ * @param iterableCallback
243
+ * Iterable callback.
244
+ *
245
+ * @returns
246
+ * Matrix of callback results.
247
+ */
248
+ iterableResult(iterableCallback) {
249
+ let result;
250
+ try {
251
+ result = Array.from(mapIterable(iterableCallback(), result => [result]));
252
+ }
253
+ catch (e) {
254
+ result = [[this.#handleError(e)]];
255
+ }
256
+ return result;
257
+ }
258
+ }
259
+ //# sourceMappingURL=lib-proxy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib-proxy.js","sourceRoot":"","sources":["../src/lib-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD;;GAEG;AACH,MAAM,OAAgB,QAAQ;IAC1B;;OAEG;IACM,aAAa,CAAe;IAErC;;;;;OAKG;IACH,YAAY,YAA0B;QAClC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,KAAa;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;;;;OASG;IACH,YAAY,CAAU,CAAU;QAC5B,IAAI,MAAM,CAAC;QAEX,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAElD,IAAI,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;gBAChC,qGAAqG;gBACrG,MAAM,KAAK,CAAC;YAChB,CAAC;YAED,MAAM,GAAG,KAAiC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACJ,mDAAmD;YACnD,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,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,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;;;;;;;OAWG;IACO,cAAc,CAAU,gBAA0D;QACxF,IAAI,MAA6B,CAAC;QAElC,IAAI,CAAC;YACD,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC7E,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YAClB,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -1,11 +1,3 @@
1
- import { I18nLanguageDetector, Nullishable } from '@aidc-toolkit/core';
2
- import { Resource, i18n } from 'i18next';
3
- import { E as ErrorExtends, L as LibProxy, M as Matrix, a as MatrixResult, S as StringProxy } from './character-set-proxy-BOW94WCe.cjs';
4
- export { A as Address, j as AlphabeticProxy, k as AlphanumericProxy, h as AppExtension, i as CharacterSetCreatorProxy, C as CharacterSetValidatorProxy, H as HexadecimalProxy, N as NumericProxy, R as Range, b as Sheet, c as SheetAddress, d as SheetRange, e as SingletonResult, g as StreamingCancelledCallback, f as StreamingConsumerCallback } from './character-set-proxy-BOW94WCe.cjs';
5
- export { C as ClassDescriptor, E as ExtendsParameterDescriptor, e as MethodDescriptor, M as Multiplicities, d as Multiplicity, c as MultiplicityKey, P as ParameterDescriptor, R as ReplacementParameterDescriptor, b as Type, a as TypeKey, T as Types } from './descriptor-D6tZH-vc.cjs';
6
- import '@aidc-toolkit/utility';
7
- import 'tslog';
8
-
9
1
  declare const _default: {
10
2
  AppExtension: {
11
3
  sequenceCountMustBeLessThanOrEqualTo: string;
@@ -759,108 +751,5 @@ declare const _default: {
759
751
  };
760
752
  };
761
753
  };
762
-
763
- declare const appExtensionNS = "aidct_app_extension";
764
- /**
765
- * Locale resources type is extracted from the English locale resources object.
766
- */
767
- type AppExtensionLocaleResources = typeof _default;
768
- /**
769
- * App extension resource bundle.
770
- */
771
- declare const appExtensionResourceBundle: Resource;
772
- declare const i18nextAppExtension: i18n;
773
- /**
774
- * Initialize internationalization.
775
- *
776
- * @param languageDetector
777
- * Language detector.
778
- *
779
- * @param debug
780
- * Debug setting.
781
- *
782
- * @returns
783
- * App extension resource bundle.
784
- */
785
- declare function i18nAppExtensionInit(languageDetector: I18nLanguageDetector, debug?: boolean): Promise<Resource>;
786
-
787
- /**
788
- * Application utilities.
789
- *
790
- * @template ThrowError
791
- * If true, errors are reported through the throw/catch mechanism.
792
- *
793
- * @template TError
794
- * Error type.
795
- *
796
- * @template TInvocationContext
797
- * Application-specific invocation context type.
798
- *
799
- * @template TStreamingInvocationContext
800
- * Application-specific streaming invocation context type.
801
- *
802
- * @template TBigInt
803
- * Type to which big integer is mapped.
804
- */
805
- declare class AppHelperProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
806
- #private;
807
- /**
808
- * Get the version.
809
- *
810
- * @returns
811
- * Version.
812
- */
813
- version(): string;
814
- /**
815
- * Spill a one-dimensional matrix to fit a rectangle within a given maximum height and width.
816
- *
817
- * @param arrayValues
818
- * Matrix values. Matrix is length 1 or contains arrays of length 1 with the values.
819
- *
820
- * @param maximumHeight
821
- * Maximum height.
822
- *
823
- * @param maximumWidth
824
- * Maximum width.
825
- *
826
- * @param invocationContext
827
- * Invocation context.
828
- *
829
- * @returns
830
- * Matrix spilled within maximum height and maximum width.
831
- */
832
- spill(arrayValues: Matrix<unknown>, maximumHeight: Nullishable<number>, maximumWidth: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<MatrixResult<unknown, ThrowError, TError>>;
833
- /**
834
- * Get the logger messages. This is a snapshot, with the option to change the log level for the next call.
835
- *
836
- * @param logLevelString
837
- * Log level as string.
838
- *
839
- * @returns
840
- * Logger messages.
841
- */
842
- loggerMessages(logLevelString: Nullishable<string>): MatrixResult<string, ThrowError, TError>;
843
- /**
844
- * Get the logger messages as a stream.
845
- *
846
- * @param logLevelString
847
- * Log level as string.
848
- *
849
- * @param streamingInvocationContext
850
- * Streaming invocation context.
851
- */
852
- loggerStream(logLevelString: Nullishable<string>, streamingInvocationContext: Nullishable<TStreamingInvocationContext>): void;
853
- }
854
-
855
- declare class TransformerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
856
- forward(domain: number | bigint, matrixValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResult<TBigInt, ThrowError, TError>;
857
- forwardSequence(domain: number | bigint, startValue: number, count: number, tweak: Nullishable<number | bigint>): MatrixResult<TBigInt, ThrowError, TError>;
858
- reverse(domain: number | bigint, matrixTransformedValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResult<TBigInt, ThrowError, TError>;
859
- }
860
-
861
- declare class RegExpProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
862
- validate(regExp: string, matrixSs: Matrix<string>, errorMessage: Nullishable<string>): Matrix<string>;
863
- isValid(regExp: string, matrixSs: Matrix<string>): Matrix<boolean>;
864
- }
865
-
866
- export { type AppExtensionLocaleResources, AppHelperProxy, ErrorExtends, LibProxy, Matrix, MatrixResult, RegExpProxy, TransformerProxy, appExtensionNS, appExtensionResourceBundle, i18nAppExtensionInit, i18nextAppExtension };
754
+ export default _default;
755
+ //# sourceMappingURL=locale-resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-resources.d.ts","sourceRoot":"","sources":["../../../src/locale/en/locale-resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAgvBE"}