@aidc-toolkit/app-extension 1.0.49-beta → 1.0.49

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 (178) hide show
  1. package/dist/character-set-proxy-BOW94WCe.d.cts +473 -0
  2. package/dist/character-set-proxy-BOW94WCe.d.ts +473 -0
  3. package/dist/chunk-22IRLVWO.js +1 -0
  4. package/dist/chunk-MR63TJ3B.js +1 -0
  5. package/dist/chunk-TWX7TPRC.js +1 -0
  6. package/dist/{descriptor.d.ts → descriptor-D6tZH-vc.d.cts} +13 -13
  7. package/dist/descriptor-D6tZH-vc.d.ts +185 -0
  8. package/dist/generator/index.cjs +17 -0
  9. package/dist/generator/index.d.cts +240 -0
  10. package/dist/generator/index.d.ts +239 -18
  11. package/dist/generator/index.js +1 -3
  12. package/dist/gs1/index.cjs +1 -0
  13. package/dist/gs1/index.d.cts +185 -0
  14. package/dist/gs1/index.d.ts +185 -11
  15. package/dist/gs1/index.js +1 -11
  16. package/dist/index.cjs +17 -0
  17. package/dist/{locale/en/locale-resources.d.ts → index.d.cts} +113 -2
  18. package/dist/index.d.ts +862 -21
  19. package/dist/index.js +1 -7
  20. package/package.json +5 -5
  21. package/src/version.ts +1 -1
  22. package/tsconfig-src.tsbuildinfo +1 -1
  23. package/dist/app-extension.d.ts +0 -210
  24. package/dist/app-extension.d.ts.map +0 -1
  25. package/dist/app-extension.js +0 -156
  26. package/dist/app-extension.js.map +0 -1
  27. package/dist/app-helper-proxy.d.ts +0 -71
  28. package/dist/app-helper-proxy.d.ts.map +0 -1
  29. package/dist/app-helper-proxy.js +0 -368
  30. package/dist/app-helper-proxy.js.map +0 -1
  31. package/dist/descriptor.d.ts.map +0 -1
  32. package/dist/descriptor.js +0 -44
  33. package/dist/descriptor.js.map +0 -1
  34. package/dist/generator/functions-generator.d.ts +0 -119
  35. package/dist/generator/functions-generator.d.ts.map +0 -1
  36. package/dist/generator/functions-generator.js +0 -206
  37. package/dist/generator/functions-generator.js.map +0 -1
  38. package/dist/generator/generator.d.ts +0 -121
  39. package/dist/generator/generator.d.ts.map +0 -1
  40. package/dist/generator/generator.js +0 -183
  41. package/dist/generator/generator.js.map +0 -1
  42. package/dist/generator/index.d.ts.map +0 -1
  43. package/dist/generator/index.js.map +0 -1
  44. package/dist/generator/locale-resources-generator.d.ts +0 -2
  45. package/dist/generator/locale-resources-generator.d.ts.map +0 -1
  46. package/dist/generator/locale-resources-generator.js +0 -313
  47. package/dist/generator/locale-resources-generator.js.map +0 -1
  48. package/dist/gs1/character-set-proxy.d.ts +0 -13
  49. package/dist/gs1/character-set-proxy.d.ts.map +0 -1
  50. package/dist/gs1/character-set-proxy.js +0 -126
  51. package/dist/gs1/character-set-proxy.js.map +0 -1
  52. package/dist/gs1/check-proxy.d.ts +0 -11
  53. package/dist/gs1/check-proxy.d.ts.map +0 -1
  54. package/dist/gs1/check-proxy.js +0 -163
  55. package/dist/gs1/check-proxy.js.map +0 -1
  56. package/dist/gs1/gcp-length-proxy.d.ts +0 -11
  57. package/dist/gs1/gcp-length-proxy.d.ts.map +0 -1
  58. package/dist/gs1/gcp-length-proxy.js +0 -187
  59. package/dist/gs1/gcp-length-proxy.js.map +0 -1
  60. package/dist/gs1/gtin-creator-proxy.d.ts +0 -10
  61. package/dist/gs1/gtin-creator-proxy.d.ts.map +0 -1
  62. package/dist/gs1/gtin-creator-proxy.js +0 -85
  63. package/dist/gs1/gtin-creator-proxy.js.map +0 -1
  64. package/dist/gs1/gtin-descriptor.d.ts +0 -3
  65. package/dist/gs1/gtin-descriptor.d.ts.map +0 -1
  66. package/dist/gs1/gtin-descriptor.js +0 -8
  67. package/dist/gs1/gtin-descriptor.js.map +0 -1
  68. package/dist/gs1/gtin-validator-proxy.d.ts +0 -26
  69. package/dist/gs1/gtin-validator-proxy.d.ts.map +0 -1
  70. package/dist/gs1/gtin-validator-proxy.js +0 -256
  71. package/dist/gs1/gtin-validator-proxy.js.map +0 -1
  72. package/dist/gs1/identifier-creator-proxy.d.ts +0 -30
  73. package/dist/gs1/identifier-creator-proxy.d.ts.map +0 -1
  74. package/dist/gs1/identifier-creator-proxy.js +0 -318
  75. package/dist/gs1/identifier-creator-proxy.js.map +0 -1
  76. package/dist/gs1/identifier-descriptor.d.ts +0 -4
  77. package/dist/gs1/identifier-descriptor.d.ts.map +0 -1
  78. package/dist/gs1/identifier-descriptor.js +0 -14
  79. package/dist/gs1/identifier-descriptor.js.map +0 -1
  80. package/dist/gs1/identifier-type.d.ts +0 -22
  81. package/dist/gs1/identifier-type.d.ts.map +0 -1
  82. package/dist/gs1/identifier-type.js +0 -34
  83. package/dist/gs1/identifier-type.js.map +0 -1
  84. package/dist/gs1/identifier-validator-proxy.d.ts +0 -29
  85. package/dist/gs1/identifier-validator-proxy.d.ts.map +0 -1
  86. package/dist/gs1/identifier-validator-proxy.js +0 -212
  87. package/dist/gs1/identifier-validator-proxy.js.map +0 -1
  88. package/dist/gs1/index.d.ts.map +0 -1
  89. package/dist/gs1/index.js.map +0 -1
  90. package/dist/gs1/non-gtin-creator-proxy.d.ts +0 -38
  91. package/dist/gs1/non-gtin-creator-proxy.d.ts.map +0 -1
  92. package/dist/gs1/non-gtin-creator-proxy.js +0 -301
  93. package/dist/gs1/non-gtin-creator-proxy.js.map +0 -1
  94. package/dist/gs1/non-gtin-validator-proxy.d.ts +0 -37
  95. package/dist/gs1/non-gtin-validator-proxy.d.ts.map +0 -1
  96. package/dist/gs1/non-gtin-validator-proxy.js +0 -302
  97. package/dist/gs1/non-gtin-validator-proxy.js.map +0 -1
  98. package/dist/gs1/prefix-definition-descriptor.d.ts +0 -4
  99. package/dist/gs1/prefix-definition-descriptor.d.ts.map +0 -1
  100. package/dist/gs1/prefix-definition-descriptor.js +0 -16
  101. package/dist/gs1/prefix-definition-descriptor.js.map +0 -1
  102. package/dist/gs1/prefix-manager-proxy.d.ts +0 -8
  103. package/dist/gs1/prefix-manager-proxy.d.ts.map +0 -1
  104. package/dist/gs1/prefix-manager-proxy.js +0 -94
  105. package/dist/gs1/prefix-manager-proxy.js.map +0 -1
  106. package/dist/gs1/variable-measure-proxy.d.ts +0 -7
  107. package/dist/gs1/variable-measure-proxy.d.ts.map +0 -1
  108. package/dist/gs1/variable-measure-proxy.js +0 -114
  109. package/dist/gs1/variable-measure-proxy.js.map +0 -1
  110. package/dist/gs1/verified-by-gs1-proxy.d.ts +0 -7
  111. package/dist/gs1/verified-by-gs1-proxy.d.ts.map +0 -1
  112. package/dist/gs1/verified-by-gs1-proxy.js +0 -106
  113. package/dist/gs1/verified-by-gs1-proxy.js.map +0 -1
  114. package/dist/index.d.ts.map +0 -1
  115. package/dist/index.js.map +0 -1
  116. package/dist/lib-proxy.d.ts +0 -135
  117. package/dist/lib-proxy.d.ts.map +0 -1
  118. package/dist/lib-proxy.js +0 -276
  119. package/dist/lib-proxy.js.map +0 -1
  120. package/dist/locale/en/locale-resources.d.ts.map +0 -1
  121. package/dist/locale/en/locale-resources.js +0 -754
  122. package/dist/locale/en/locale-resources.js.map +0 -1
  123. package/dist/locale/fr/locale-resources.d.ts +0 -755
  124. package/dist/locale/fr/locale-resources.d.ts.map +0 -1
  125. package/dist/locale/fr/locale-resources.js +0 -754
  126. package/dist/locale/fr/locale-resources.js.map +0 -1
  127. package/dist/locale/i18n.d.ts +0 -27
  128. package/dist/locale/i18n.d.ts.map +0 -1
  129. package/dist/locale/i18n.js +0 -36
  130. package/dist/locale/i18n.js.map +0 -1
  131. package/dist/proxy.d.ts +0 -136
  132. package/dist/proxy.d.ts.map +0 -1
  133. package/dist/proxy.js +0 -291
  134. package/dist/proxy.js.map +0 -1
  135. package/dist/streaming.d.ts +0 -10
  136. package/dist/streaming.d.ts.map +0 -1
  137. package/dist/streaming.js +0 -2
  138. package/dist/streaming.js.map +0 -1
  139. package/dist/type.d.ts +0 -91
  140. package/dist/type.d.ts.map +0 -1
  141. package/dist/type.js +0 -2
  142. package/dist/type.js.map +0 -1
  143. package/dist/utility/character-set-descriptor.d.ts +0 -6
  144. package/dist/utility/character-set-descriptor.d.ts.map +0 -1
  145. package/dist/utility/character-set-descriptor.js +0 -28
  146. package/dist/utility/character-set-descriptor.js.map +0 -1
  147. package/dist/utility/character-set-proxy.d.ts +0 -31
  148. package/dist/utility/character-set-proxy.d.ts.map +0 -1
  149. package/dist/utility/character-set-proxy.js +0 -278
  150. package/dist/utility/character-set-proxy.js.map +0 -1
  151. package/dist/utility/index.d.ts +0 -4
  152. package/dist/utility/index.d.ts.map +0 -1
  153. package/dist/utility/index.js +0 -4
  154. package/dist/utility/index.js.map +0 -1
  155. package/dist/utility/reg-exp-proxy.d.ts +0 -8
  156. package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
  157. package/dist/utility/reg-exp-proxy.js +0 -103
  158. package/dist/utility/reg-exp-proxy.js.map +0 -1
  159. package/dist/utility/string-descriptor.d.ts +0 -4
  160. package/dist/utility/string-descriptor.d.ts.map +0 -1
  161. package/dist/utility/string-descriptor.js +0 -12
  162. package/dist/utility/string-descriptor.js.map +0 -1
  163. package/dist/utility/string-proxy.d.ts +0 -7
  164. package/dist/utility/string-proxy.d.ts.map +0 -1
  165. package/dist/utility/string-proxy.js +0 -63
  166. package/dist/utility/string-proxy.js.map +0 -1
  167. package/dist/utility/transformer-descriptor.d.ts +0 -6
  168. package/dist/utility/transformer-descriptor.d.ts.map +0 -1
  169. package/dist/utility/transformer-descriptor.js +0 -24
  170. package/dist/utility/transformer-descriptor.js.map +0 -1
  171. package/dist/utility/transformer-proxy.d.ts +0 -9
  172. package/dist/utility/transformer-proxy.d.ts.map +0 -1
  173. package/dist/utility/transformer-proxy.js +0 -111
  174. package/dist/utility/transformer-proxy.js.map +0 -1
  175. package/dist/version.d.ts +0 -5
  176. package/dist/version.d.ts.map +0 -1
  177. package/dist/version.js +0 -5
  178. package/dist/version.js.map +0 -1
@@ -1,156 +0,0 @@
1
- import { getLogger, LogLevels, MemoryTransport } from "@aidc-toolkit/core";
2
- import { i18nextAppExtension } from "./locale/i18n.js";
3
- /**
4
- * Application extension.
5
- *
6
- * @template ThrowError
7
- * If true, errors are reported through the throw/catch mechanism.
8
- *
9
- * @template TError
10
- * Error type.
11
- *
12
- * @template TInvocationContext
13
- * Application-specific invocation context type.
14
- *
15
- * @template TStreamingInvocationContext
16
- * Application-specific streaming invocation context type.
17
- *
18
- * @template TBigInt
19
- * Type to which big integer is mapped.
20
- */
21
- export class AppExtension {
22
- /**
23
- * Application name.
24
- */
25
- static APPLICATION_NAME = "AIDCToolkit";
26
- /**
27
- * Version property name.
28
- */
29
- static VERSION_NAME = `${AppExtension.APPLICATION_NAME}.version`;
30
- /**
31
- * Maximum logger messages length.
32
- */
33
- static #MAXIMUM_LOGGER_MESSAGES_LENGTH = 120;
34
- /**
35
- * Truncate logger messages length.
36
- */
37
- static #TRUNCATE_LOGGER_MESSAGES_LENGTH = 100;
38
- /**
39
- * Application version.
40
- */
41
- #version;
42
- /**
43
- * Maximum sequence count supported by application.
44
- */
45
- #maximumSequenceCount;
46
- /**
47
- * If true, errors are reported through the throw/catch mechanism.
48
- */
49
- #throwError;
50
- /**
51
- * Logger.
52
- */
53
- #logger;
54
- /**
55
- * Logger memory transport.
56
- */
57
- #memoryTransport;
58
- /**
59
- * Proxies map for lazy loading and memory management.
60
- */
61
- #proxiesMap = new WeakMap();
62
- /**
63
- * Constructor.
64
- *
65
- * @param version
66
- * Application version.
67
- *
68
- * @param maximumSequenceCount
69
- * Maximum sequence count supported by application.
70
- *
71
- * @param throwError
72
- * If true, errors are reported through the throw/catch mechanism.
73
- */
74
- constructor(version, maximumSequenceCount, throwError) {
75
- this.#version = version;
76
- this.#maximumSequenceCount = maximumSequenceCount;
77
- this.#throwError = throwError;
78
- // Running in production if version doesn't include a pre-release identifier.
79
- const isProduction = !version.includes("-");
80
- this.#logger = getLogger(isProduction ? LogLevels.Info : LogLevels.Debug, {
81
- type: isProduction ? "hidden" : "pretty"
82
- });
83
- this.#memoryTransport = new MemoryTransport(this.#logger, AppExtension.#MAXIMUM_LOGGER_MESSAGES_LENGTH, AppExtension.#TRUNCATE_LOGGER_MESSAGES_LENGTH);
84
- }
85
- /**
86
- * Initialize the application extension.
87
- */
88
- async initialize() {
89
- const fileVersion = await this.getDocumentProperty(AppExtension.VERSION_NAME);
90
- if (fileVersion !== this.#version) {
91
- await this.setDocumentProperty(AppExtension.VERSION_NAME, this.#version);
92
- }
93
- }
94
- /**
95
- * Get the version.
96
- *
97
- * @returns
98
- * Version.
99
- */
100
- get version() {
101
- return this.#version;
102
- }
103
- /**
104
- * Determine if errors are reported through the throw/catch mechanism.
105
- */
106
- get throwError() {
107
- return this.#throwError;
108
- }
109
- /**
110
- * Get the logger.
111
- */
112
- get logger() {
113
- return this.#logger;
114
- }
115
- /**
116
- * Get the logger memory transport.
117
- */
118
- get memoryTransport() {
119
- return this.#memoryTransport;
120
- }
121
- /**
122
- * Get a proxy instance. The use of a weak map ensures that proxies are loaded only as needed and may be garbage
123
- * collected if required.
124
- *
125
- * @param ProxyConstructor
126
- * Proxy constructor.
127
- *
128
- * @returns
129
- * Proxy instance.
130
- */
131
- getProxy(ProxyConstructor) {
132
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Type is managed in this method.
133
- let proxy = this.#proxiesMap.get(ProxyConstructor);
134
- if (proxy === undefined) {
135
- proxy = new ProxyConstructor(this);
136
- this.#proxiesMap.set(ProxyConstructor, proxy);
137
- }
138
- return proxy;
139
- }
140
- /**
141
- * Validate a sequence count against the maximum supported by application.
142
- *
143
- * @param sequenceCount
144
- * Sequence count.
145
- */
146
- validateSequenceCount(sequenceCount) {
147
- const absoluteSequenceCount = Math.abs(sequenceCount);
148
- if (absoluteSequenceCount > this.#maximumSequenceCount) {
149
- throw new RangeError(i18nextAppExtension.t("AppExtension.sequenceCountMustBeLessThanOrEqualTo", {
150
- sequenceCount: absoluteSequenceCount,
151
- maximumSequenceCount: this.#maximumSequenceCount
152
- }));
153
- }
154
- }
155
- }
156
- //# sourceMappingURL=app-extension.js.map
@@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GAAG,CAAC,aAAa,CAAC,CAAC;QAEtD,IAAI,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;YACrD,MAAM,IAAI,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,mDAAmD,EAAE;gBAC5F,aAAa,EAAE,qBAAqB;gBACpC,oBAAoB,EAAE,IAAI,CAAC,qBAAqB;aACnD,CAAC,CAAC,CAAC;QACR,CAAC;IACL,CAAC"}
@@ -1,71 +0,0 @@
1
- import { type Nullishable } from "@aidc-toolkit/core";
2
- import { LibProxy } from "./lib-proxy.js";
3
- import type { ErrorExtends, Matrix, MatrixResult } from "./type.js";
4
- /**
5
- * Application utilities.
6
- *
7
- * @template ThrowError
8
- * If true, errors are reported through the throw/catch mechanism.
9
- *
10
- * @template TError
11
- * Error type.
12
- *
13
- * @template TInvocationContext
14
- * Application-specific invocation context type.
15
- *
16
- * @template TStreamingInvocationContext
17
- * Application-specific streaming invocation context type.
18
- *
19
- * @template TBigInt
20
- * Type to which big integer is mapped.
21
- */
22
- export declare class AppHelperProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
23
- #private;
24
- /**
25
- * Get the version.
26
- *
27
- * @returns
28
- * Version.
29
- */
30
- version(): string;
31
- /**
32
- * Spill a one-dimensional matrix to fit a rectangle within a given maximum height and width.
33
- *
34
- * @param arrayValues
35
- * Matrix values. Matrix is length 1 or contains arrays of length 1 with the values.
36
- *
37
- * @param maximumHeight
38
- * Maximum height.
39
- *
40
- * @param maximumWidth
41
- * Maximum width.
42
- *
43
- * @param invocationContext
44
- * Invocation context.
45
- *
46
- * @returns
47
- * Matrix spilled within maximum height and maximum width.
48
- */
49
- spill(arrayValues: Matrix<unknown>, maximumHeight: Nullishable<number>, maximumWidth: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<MatrixResult<unknown, ThrowError, TError>>;
50
- /**
51
- * Get the logger messages. This is a snapshot, with the option to change the log level for the next call.
52
- *
53
- * @param logLevelString
54
- * Log level as string.
55
- *
56
- * @returns
57
- * Logger messages.
58
- */
59
- loggerMessages(logLevelString: Nullishable<string>): MatrixResult<string, ThrowError, TError>;
60
- /**
61
- * Get the logger messages as a stream.
62
- *
63
- * @param logLevelString
64
- * Log level as string.
65
- *
66
- * @param streamingInvocationContext
67
- * Streaming invocation context.
68
- */
69
- loggerStream(logLevelString: Nullishable<string>, streamingInvocationContext: Nullishable<TStreamingInvocationContext>): void;
70
- }
71
- //# sourceMappingURL=app-helper-proxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-helper-proxy.d.ts","sourceRoot":"","sources":["../src/app-helper-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6D,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAkDpE;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAGa,cAAc,CAAC,UAAU,SAAS,OAAO,EAAE,MAAM,SAAS,YAAY,CAAC,UAAU,CAAC,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,OAAO,CAAE,SAAQ,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,OAAO,CAAC;;IACrP;;;;;OAKG;IAMH,OAAO,IAAI,MAAM;IA6CjB;;;;;;;;;;;;;;;;;OAiBG;IAQG,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,WAAW,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IA4GxN;;;;;;;;OAQG;IAOH,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC;IAqB7F;;;;;;;;OAQG;IAQH,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,0BAA0B,EAAE,WAAW,CAAC,2BAA2B,CAAC,GAAG,IAAI;CA8ChI"}
@@ -1,368 +0,0 @@
1
- var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
2
- var useValue = arguments.length > 2;
3
- for (var i = 0; i < initializers.length; i++) {
4
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
5
- }
6
- return useValue ? value : void 0;
7
- };
8
- var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
9
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
10
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
11
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
12
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
13
- var _, done = false;
14
- for (var i = decorators.length - 1; i >= 0; i--) {
15
- var context = {};
16
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
17
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
18
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
19
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
20
- if (kind === "accessor") {
21
- if (result === void 0) continue;
22
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
23
- if (_ = accept(result.get)) descriptor.get = _;
24
- if (_ = accept(result.set)) descriptor.set = _;
25
- if (_ = accept(result.init)) initializers.unshift(_);
26
- }
27
- else if (_ = accept(result)) {
28
- if (kind === "field") initializers.unshift(_);
29
- else descriptor[key] = _;
30
- }
31
- }
32
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
33
- done = true;
34
- };
35
- import { isNullish, logLevelOf } from "@aidc-toolkit/core";
36
- import { Multiplicities, Types } from "./descriptor.js";
37
- import { LibProxy } from "./lib-proxy.js";
38
- import { i18nextAppExtension } from "./locale/i18n.js";
39
- import { proxy } from "./proxy.js";
40
- const spillArrayParameterDescriptor = {
41
- name: "spillArray",
42
- type: Types.Any,
43
- multiplicity: Multiplicities.Array,
44
- isRequired: true
45
- };
46
- const spillMaximumParameterDescriptor = {
47
- name: "spillMaximum",
48
- type: Types.Number,
49
- multiplicity: Multiplicities.Singleton,
50
- isRequired: false
51
- };
52
- const spillMaximumWidthParameterDescriptor = {
53
- extendsDescriptor: spillMaximumParameterDescriptor,
54
- sortOrder: 0,
55
- name: "spillMaximumWidth"
56
- };
57
- const spillMaximumHeightParameterDescriptor = {
58
- extendsDescriptor: spillMaximumParameterDescriptor,
59
- sortOrder: 1,
60
- name: "spillMaximumHeight"
61
- };
62
- const logLevelParameterDescriptor = {
63
- name: "logLevel",
64
- type: Types.String,
65
- multiplicity: Multiplicities.Singleton,
66
- isRequired: false
67
- };
68
- /**
69
- * Application utilities.
70
- *
71
- * @template ThrowError
72
- * If true, errors are reported through the throw/catch mechanism.
73
- *
74
- * @template TError
75
- * Error type.
76
- *
77
- * @template TInvocationContext
78
- * Application-specific invocation context type.
79
- *
80
- * @template TStreamingInvocationContext
81
- * Application-specific streaming invocation context type.
82
- *
83
- * @template TBigInt
84
- * Type to which big integer is mapped.
85
- */
86
- let AppHelperProxy = (() => {
87
- let _classDecorators = [proxy.describeClass(false, {
88
- category: "helper"
89
- })];
90
- let _classDescriptor;
91
- let _classExtraInitializers = [];
92
- let _classThis;
93
- let _classSuper = LibProxy;
94
- let _instanceExtraInitializers = [];
95
- let _version_decorators;
96
- let _spill_decorators;
97
- let _loggerMessages_decorators;
98
- let _loggerStream_decorators;
99
- var AppHelperProxy = class extends _classSuper {
100
- static { _classThis = this; }
101
- static {
102
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
103
- _version_decorators = [proxy.describeMethod({
104
- type: Types.String,
105
- multiplicity: Multiplicities.Singleton,
106
- parameterDescriptors: []
107
- })];
108
- _spill_decorators = [proxy.describeMethod({
109
- type: Types.Any,
110
- multiplicity: Multiplicities.Matrix,
111
- isAsync: true,
112
- requiresContext: true,
113
- parameterDescriptors: [spillArrayParameterDescriptor, spillMaximumHeightParameterDescriptor, spillMaximumWidthParameterDescriptor]
114
- })];
115
- _loggerMessages_decorators = [proxy.describeMethod({
116
- type: Types.String,
117
- multiplicity: Multiplicities.Array,
118
- isHidden: true,
119
- parameterDescriptors: [logLevelParameterDescriptor]
120
- })];
121
- _loggerStream_decorators = [proxy.describeMethod({
122
- type: Types.String,
123
- multiplicity: Multiplicities.Array,
124
- isHidden: true,
125
- isStream: true,
126
- parameterDescriptors: [logLevelParameterDescriptor]
127
- })];
128
- __esDecorate(this, null, _version_decorators, { kind: "method", name: "version", static: false, private: false, access: { has: obj => "version" in obj, get: obj => obj.version }, metadata: _metadata }, null, _instanceExtraInitializers);
129
- __esDecorate(this, null, _spill_decorators, { kind: "method", name: "spill", static: false, private: false, access: { has: obj => "spill" in obj, get: obj => obj.spill }, metadata: _metadata }, null, _instanceExtraInitializers);
130
- __esDecorate(this, null, _loggerMessages_decorators, { kind: "method", name: "loggerMessages", static: false, private: false, access: { has: obj => "loggerMessages" in obj, get: obj => obj.loggerMessages }, metadata: _metadata }, null, _instanceExtraInitializers);
131
- __esDecorate(this, null, _loggerStream_decorators, { kind: "method", name: "loggerStream", static: false, private: false, access: { has: obj => "loggerStream" in obj, get: obj => obj.loggerStream }, metadata: _metadata }, null, _instanceExtraInitializers);
132
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
133
- AppHelperProxy = _classThis = _classDescriptor.value;
134
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
135
- __runInitializers(_classThis, _classExtraInitializers);
136
- }
137
- /**
138
- * Get the version.
139
- *
140
- * @returns
141
- * Version.
142
- */
143
- version() {
144
- return this.appExtension.version;
145
- }
146
- /**
147
- * Provide default values for maximum width and height if required.
148
- *
149
- * @param maximumDimensions
150
- * Maximum dimensions provided to function.
151
- *
152
- * @param invocationContext
153
- * Invocation context.
154
- *
155
- * @returns
156
- * Array of maximum width and maximum height.
157
- */
158
- async #defaultMaximums(maximumDimensions, invocationContext) {
159
- if (isNullish(invocationContext)) {
160
- // Application error; no localization necessary.
161
- throw new Error("Invocation context not provided by application");
162
- }
163
- const maximumWidth = maximumDimensions.width;
164
- const maximumHeight = maximumDimensions.height;
165
- let definedMaximumWidth;
166
- let definedMaximumHeight;
167
- // Skip any extra work if both values are provided.
168
- if (isNullish(maximumWidth) || isNullish(maximumHeight)) {
169
- const sheetAddress = await this.appExtension.getSheetAddress(invocationContext);
170
- definedMaximumWidth = maximumWidth ?? this.appExtension.maximumWidth - sheetAddress.columnIndex;
171
- definedMaximumHeight = maximumHeight ?? this.appExtension.maximumHeight - sheetAddress.rowIndex;
172
- }
173
- else {
174
- definedMaximumWidth = maximumWidth;
175
- definedMaximumHeight = maximumHeight;
176
- }
177
- return {
178
- width: definedMaximumWidth,
179
- height: definedMaximumHeight
180
- };
181
- }
182
- /**
183
- * Spill a one-dimensional matrix to fit a rectangle within a given maximum height and width.
184
- *
185
- * @param arrayValues
186
- * Matrix values. Matrix is length 1 or contains arrays of length 1 with the values.
187
- *
188
- * @param maximumHeight
189
- * Maximum height.
190
- *
191
- * @param maximumWidth
192
- * Maximum width.
193
- *
194
- * @param invocationContext
195
- * Invocation context.
196
- *
197
- * @returns
198
- * Matrix spilled within maximum height and maximum width.
199
- */
200
- async spill(arrayValues, maximumHeight, maximumWidth, invocationContext) {
201
- let result;
202
- // Assume matrix is uniformly two-dimensional.
203
- const height = arrayValues.length;
204
- const width = height !== 0 ? arrayValues[0].length : 0;
205
- const isArrayOrError = this.singletonResult(() => {
206
- if (height > 1 && width > 1) {
207
- throw new RangeError(i18nextAppExtension.t("Proxy.matrixMustBeArray"));
208
- }
209
- return true;
210
- });
211
- if (isArrayOrError === true) {
212
- const maximumDimensions = await this.#defaultMaximums({
213
- width: maximumWidth,
214
- height: maximumHeight
215
- }, invocationContext);
216
- const isHorizontal = height === 1;
217
- const length = isHorizontal ? width : height;
218
- const maximumParallel = isHorizontal ? maximumDimensions.width : maximumDimensions.height;
219
- const maximumPerpendicular = isHorizontal ? maximumDimensions.height : maximumDimensions.width;
220
- const maximumArea = maximumParallel * maximumPerpendicular;
221
- // Lengths 0 and 1 are valid and require no special processing.
222
- if (length > 1 && length <= maximumArea) {
223
- const lengthSquareRoot = Math.sqrt(length);
224
- let spillParallel = undefined;
225
- // Array that has a length of a power of 10 is treated specially.
226
- if (Number.isInteger(Math.log10(length))) {
227
- // Try spill that is a power of 10, favouring the parallel direction.
228
- let spillParallel10 = 10 ** Math.ceil(Math.log10(lengthSquareRoot));
229
- // Favour the perpendicular direction if not enough parallel space.
230
- if (spillParallel10 > maximumParallel) {
231
- spillParallel10 /= 10;
232
- }
233
- // Take result as the spill parallel if it fits.
234
- if (spillParallel10 <= maximumParallel && length / spillParallel10 <= maximumPerpendicular) {
235
- spillParallel = spillParallel10;
236
- }
237
- }
238
- // Make spill as square as possible, favouring the parallel direction.
239
- spillParallel ??= Math.max(Math.min(Math.ceil(lengthSquareRoot), maximumParallel), Math.floor(length / maximumPerpendicular));
240
- const spillPerpendicular = Math.ceil(length / spillParallel);
241
- result = [];
242
- if (isHorizontal) {
243
- let startIndex = 0;
244
- do {
245
- const endIndex = startIndex + spillParallel;
246
- // Each row is a slice of the original single row.
247
- const row = arrayValues[0].slice(startIndex, endIndex);
248
- // Row length will be anywhere from 1 to spillParallel.
249
- if (row.length < spillParallel) {
250
- const rowLength = row.length;
251
- row.length = spillParallel;
252
- // Fill empty cells with empty string.
253
- row.fill("", rowLength, spillParallel);
254
- }
255
- result.push(row);
256
- startIndex = endIndex;
257
- } while (startIndex < length);
258
- }
259
- else {
260
- for (let rowIndex = 0; rowIndex < spillParallel; rowIndex++) {
261
- const row = [];
262
- // Each column is a slice of the original single column.
263
- for (let valueIndex = rowIndex; valueIndex < length; valueIndex += spillParallel) {
264
- row.push(arrayValues[valueIndex][0]);
265
- }
266
- // Row length will always be spillPerpendicular or spillPerpendicular - 1.
267
- if (row.length < spillPerpendicular) {
268
- row[spillPerpendicular - 1] = "";
269
- }
270
- result.push(row);
271
- }
272
- }
273
- }
274
- else {
275
- // Return matrix unmodified and let application handle spill error if any.
276
- result = arrayValues;
277
- }
278
- }
279
- else {
280
- // Return error as only element in matrix.
281
- result = [[isArrayOrError]];
282
- }
283
- return result;
284
- }
285
- /**
286
- * Get the logger messages. This is a snapshot, with the option to change the log level for the next call.
287
- *
288
- * @param logLevelString
289
- * Log level as string.
290
- *
291
- * @returns
292
- * Logger messages.
293
- */
294
- loggerMessages(logLevelString) {
295
- const appExtension = this.appExtension;
296
- let logLevel = undefined;
297
- if (!isNullish(logLevelString)) {
298
- try {
299
- logLevel = logLevelOf(logLevelString);
300
- }
301
- catch {
302
- // Ignore error.
303
- }
304
- }
305
- // Set log level if required.
306
- if (logLevel !== undefined) {
307
- appExtension.logger.settings.minLevel = logLevel;
308
- }
309
- return appExtension.memoryTransport.messages.map(message => [message]);
310
- }
311
- /**
312
- * Get the logger messages as a stream.
313
- *
314
- * @param logLevelString
315
- * Log level as string.
316
- *
317
- * @param streamingInvocationContext
318
- * Streaming invocation context.
319
- */
320
- loggerStream(logLevelString, streamingInvocationContext) {
321
- if (isNullish(streamingInvocationContext)) {
322
- // Application error; no localization necessary.
323
- throw new Error("Streaming invocation context not provided by application");
324
- }
325
- const appExtension = this.appExtension;
326
- let notificationCallbackAdded = false;
327
- let previousLogLevel = undefined;
328
- const streamingConsumerCallback = appExtension.setUpStreaming(streamingInvocationContext, () => {
329
- if (notificationCallbackAdded) {
330
- appExtension.memoryTransport.removeNotificationCallback("loggerMessages");
331
- }
332
- if (previousLogLevel !== undefined) {
333
- appExtension.logger.settings.minLevel = previousLogLevel;
334
- }
335
- });
336
- if (appExtension.memoryTransport.addNotificationCallback("loggerMessages", (_message, messages) => {
337
- streamingConsumerCallback(this.iterableResult(() => messages));
338
- })) {
339
- notificationCallbackAdded = true;
340
- let logLevel = undefined;
341
- if (!isNullish(logLevelString)) {
342
- try {
343
- logLevel = logLevelOf(logLevelString);
344
- }
345
- catch {
346
- // Ignore error.
347
- }
348
- }
349
- // Set log level if required.
350
- if (logLevel !== undefined) {
351
- previousLogLevel = appExtension.logger.settings.minLevel;
352
- appExtension.logger.settings.minLevel = logLevel;
353
- }
354
- }
355
- else {
356
- // Diagnostic tool; localization not required.
357
- streamingConsumerCallback([["Only one logger messages call allowable per workbook"]]);
358
- }
359
- }
360
- constructor() {
361
- super(...arguments);
362
- __runInitializers(this, _instanceExtraInitializers);
363
- }
364
- };
365
- return AppHelperProxy = _classThis;
366
- })();
367
- export { AppHelperProxy };
368
- //# sourceMappingURL=app-helper-proxy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-helper-proxy.js","sourceRoot":"","sources":["../src/app-helper-proxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAiB,UAAU,EAAyC,MAAM,oBAAoB,CAAC;AACjH,OAAO,EAAmC,cAAc,EAA4B,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,Y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1,44 +0,0 @@
1
- /**
2
- * Types supported by proxy methods.
3
- */
4
- export const Types = {
5
- /**
6
- * String.
7
- */
8
- String: 0,
9
- /**
10
- * Number or enumeration.
11
- */
12
- Number: 1,
13
- /**
14
- * Boolean.
15
- */
16
- Boolean: 2,
17
- /**
18
- * Any.
19
- */
20
- Any: 3
21
- };
22
- /**
23
- * Multiplicities supported by proxy methods.
24
- */
25
- export const Multiplicities = {
26
- /**
27
- * Parameter or return value is a singleton.
28
- */
29
- Singleton: 0,
30
- /**
31
- * Parameter or return value is a singleton or an array.
32
- */
33
- Array: 1,
34
- /**
35
- * Parameter or return value is a singleton, an array, or a matrix.
36
- */
37
- Matrix: 2,
38
- /**
39
- * Parameter value is a singleton or array but is treated as a singleton internally and doesn't drive multiplicity
40
- * of the return value. Return value is an array for use as a singleton array parameter.
41
- */
42
- SingletonArray: 3
43
- };
44
- //# sourceMappingURL=descriptor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../src/descriptor.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;OAEG;IACH,OAAO,EAAE,CAAC;IAEV;;OAEG;IACH,GAAG,EAAE,CAAC;CACA,CAAC;AAYX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,CAAC;IAER;;OAEG;IACH,MAAM,EAAE,CAAC;IAET;;;OAGG;IACH,cAAc,EAAE,CAAC;CACX,CAAC"}